Skip to content

Commit 10fcf9c

Browse files
chore(api): update composite API spec
1 parent 544d964 commit 10fcf9c

File tree

5 files changed

+262
-166
lines changed

5 files changed

+262
-166
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1924
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-7620629163381cc0e5ad4d8da82a7e7c9fee276eea238ab2d5acd4979f19f20b.yml
3-
openapi_spec_hash: 5e202de5beb117cc09b66241192ae772
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5fc91fe703941755eabe8e53f6d53056d31c38bff2f098dfa2389512e52b586f.yml
3+
openapi_spec_hash: 7d4707f46e5b07408d6a083bfe164f51
44
config_hash: d300d915a7b88f436c0498af4048e337

src/resources/zero-trust/dlp/entries/custom.ts

Lines changed: 65 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ export interface CustomUpdateResponse {
171171
}
172172

173173
export type CustomListResponse =
174-
| CustomListResponse.Custom
175-
| CustomListResponse.Predefined
176-
| CustomListResponse.Integration
177-
| CustomListResponse.ExactData
178-
| CustomListResponse.DocumentFingerprint
179-
| CustomListResponse.WordList;
174+
| CustomListResponse.CustomEntry
175+
| CustomListResponse.PredefinedEntry
176+
| CustomListResponse.IntegrationEntry
177+
| CustomListResponse.ExactDataEntry
178+
| CustomListResponse.DocumentFingerprintEntry
179+
| CustomListResponse.WordListEntry;
180180

181181
export namespace CustomListResponse {
182-
export interface Custom {
182+
export interface CustomEntry {
183183
id: string;
184184

185185
created_at: string;
@@ -195,12 +195,14 @@ export namespace CustomListResponse {
195195
updated_at: string;
196196

197197
profile_id?: string | null;
198+
199+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
198200
}
199201

200-
export interface Predefined {
202+
export interface PredefinedEntry {
201203
id: string;
202204

203-
confidence: Predefined.Confidence;
205+
confidence: PredefinedEntry.Confidence;
204206

205207
enabled: boolean;
206208

@@ -210,10 +212,12 @@ export namespace CustomListResponse {
210212

211213
profile_id?: string | null;
212214

213-
variant?: Predefined.Variant;
215+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
216+
217+
variant?: PredefinedEntry.Variant;
214218
}
215219

216-
export namespace Predefined {
220+
export namespace PredefinedEntry {
217221
export interface Confidence {
218222
/**
219223
* Indicates whether this entry has AI remote service validation.
@@ -236,7 +240,7 @@ export namespace CustomListResponse {
236240
}
237241
}
238242

239-
export interface Integration {
243+
export interface IntegrationEntry {
240244
id: string;
241245

242246
created_at: string;
@@ -250,9 +254,11 @@ export namespace CustomListResponse {
250254
updated_at: string;
251255

252256
profile_id?: string | null;
257+
258+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
253259
}
254260

255-
export interface ExactData {
261+
export interface ExactDataEntry {
256262
id: string;
257263

258264
/**
@@ -272,9 +278,11 @@ export namespace CustomListResponse {
272278
type: 'exact_data';
273279

274280
updated_at: string;
281+
282+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
275283
}
276284

277-
export interface DocumentFingerprint {
285+
export interface DocumentFingerprintEntry {
278286
id: string;
279287

280288
created_at: string;
@@ -286,9 +294,11 @@ export namespace CustomListResponse {
286294
type: 'document_fingerprint';
287295

288296
updated_at: string;
297+
298+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
289299
}
290300

291-
export interface WordList {
301+
export interface WordListEntry {
292302
id: string;
293303

294304
created_at: string;
@@ -304,21 +314,23 @@ export namespace CustomListResponse {
304314
word_list: unknown;
305315

306316
profile_id?: string | null;
317+
318+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
307319
}
308320
}
309321

310322
export type CustomDeleteResponse = unknown;
311323

312324
export type CustomGetResponse =
313-
| CustomGetResponse.CustomEntry
314-
| CustomGetResponse.PredefinedEntry
315-
| CustomGetResponse.IntegrationEntry
316-
| CustomGetResponse.ExactDataEntry
317-
| CustomGetResponse.DocumentFingerprintEntry
318-
| CustomGetResponse.WordListEntry;
325+
| CustomGetResponse.UnionMember0
326+
| CustomGetResponse.UnionMember1
327+
| CustomGetResponse.UnionMember2
328+
| CustomGetResponse.UnionMember3
329+
| CustomGetResponse.UnionMember4
330+
| CustomGetResponse.UnionMember5;
319331

320332
export namespace CustomGetResponse {
321-
export interface CustomEntry {
333+
export interface UnionMember0 {
322334
id: string;
323335

324336
created_at: string;
@@ -335,10 +347,12 @@ export namespace CustomGetResponse {
335347

336348
profile_id?: string | null;
337349

338-
profiles?: Array<CustomEntry.Profile>;
350+
profiles?: Array<UnionMember0.Profile>;
351+
352+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
339353
}
340354

341-
export namespace CustomEntry {
355+
export namespace UnionMember0 {
342356
/**
343357
* Computed entry field for a profile that an entry is shared into.
344358
*/
@@ -349,10 +363,10 @@ export namespace CustomGetResponse {
349363
}
350364
}
351365

352-
export interface PredefinedEntry {
366+
export interface UnionMember1 {
353367
id: string;
354368

355-
confidence: PredefinedEntry.Confidence;
369+
confidence: UnionMember1.Confidence;
356370

357371
enabled: boolean;
358372

@@ -362,12 +376,14 @@ export namespace CustomGetResponse {
362376

363377
profile_id?: string | null;
364378

365-
profiles?: Array<PredefinedEntry.Profile>;
379+
profiles?: Array<UnionMember1.Profile>;
366380

367-
variant?: PredefinedEntry.Variant;
381+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
382+
383+
variant?: UnionMember1.Variant;
368384
}
369385

370-
export namespace PredefinedEntry {
386+
export namespace UnionMember1 {
371387
export interface Confidence {
372388
/**
373389
* Indicates whether this entry has AI remote service validation.
@@ -399,7 +415,7 @@ export namespace CustomGetResponse {
399415
}
400416
}
401417

402-
export interface IntegrationEntry {
418+
export interface UnionMember2 {
403419
id: string;
404420

405421
created_at: string;
@@ -414,10 +430,12 @@ export namespace CustomGetResponse {
414430

415431
profile_id?: string | null;
416432

417-
profiles?: Array<IntegrationEntry.Profile>;
433+
profiles?: Array<UnionMember2.Profile>;
434+
435+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
418436
}
419437

420-
export namespace IntegrationEntry {
438+
export namespace UnionMember2 {
421439
/**
422440
* Computed entry field for a profile that an entry is shared into.
423441
*/
@@ -428,7 +446,7 @@ export namespace CustomGetResponse {
428446
}
429447
}
430448

431-
export interface ExactDataEntry {
449+
export interface UnionMember3 {
432450
id: string;
433451

434452
/**
@@ -449,10 +467,12 @@ export namespace CustomGetResponse {
449467

450468
updated_at: string;
451469

452-
profiles?: Array<ExactDataEntry.Profile>;
470+
profiles?: Array<UnionMember3.Profile>;
471+
472+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
453473
}
454474

455-
export namespace ExactDataEntry {
475+
export namespace UnionMember3 {
456476
/**
457477
* Computed entry field for a profile that an entry is shared into.
458478
*/
@@ -463,7 +483,7 @@ export namespace CustomGetResponse {
463483
}
464484
}
465485

466-
export interface DocumentFingerprintEntry {
486+
export interface UnionMember4 {
467487
id: string;
468488

469489
created_at: string;
@@ -476,10 +496,12 @@ export namespace CustomGetResponse {
476496

477497
updated_at: string;
478498

479-
profiles?: Array<DocumentFingerprintEntry.Profile>;
499+
profiles?: Array<UnionMember4.Profile>;
500+
501+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
480502
}
481503

482-
export namespace DocumentFingerprintEntry {
504+
export namespace UnionMember4 {
483505
/**
484506
* Computed entry field for a profile that an entry is shared into.
485507
*/
@@ -490,7 +512,7 @@ export namespace CustomGetResponse {
490512
}
491513
}
492514

493-
export interface WordListEntry {
515+
export interface UnionMember5 {
494516
id: string;
495517

496518
created_at: string;
@@ -507,10 +529,12 @@ export namespace CustomGetResponse {
507529

508530
profile_id?: string | null;
509531

510-
profiles?: Array<WordListEntry.Profile>;
532+
profiles?: Array<UnionMember5.Profile>;
533+
534+
upload_status?: 'empty' | 'uploading' | 'pending' | 'processing' | 'failed' | 'complete';
511535
}
512536

513-
export namespace WordListEntry {
537+
export namespace UnionMember5 {
514538
/**
515539
* Computed entry field for a profile that an entry is shared into.
516540
*/

0 commit comments

Comments
 (0)