Skip to content

Commit 4f4f92c

Browse files
chore(api): update composite API spec
1 parent e19adf5 commit 4f4f92c

File tree

169 files changed

+19822
-6690
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

169 files changed

+19822
-6690
lines changed

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1912
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cc732ca8d1d7f1c11a1ee579060ddfd8f953a3ad94fd5053056b53370129d040.yml
3-
openapi_spec_hash: a3e1e833dfe13845abd1e2227993a979
1+
configured_endpoints: 1875
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e425e4abe3f3161feed50a8cd861dd25c6ec32ee162b4eb4d225c4e5cb7b3ca9.yml
3+
openapi_spec_hash: 955676955a801dbe5084d8ffe2730791
44
config_hash: e4fdda880afe9a26b032ec5128e42dc2

api.md

Lines changed: 43 additions & 181 deletions
Large diffs are not rendered by default.

scripts/detect-breaking-changes

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -102,22 +102,6 @@ TEST_PATHS=(
102102
tests/api-resources/dns/zone-transfers/acls.test.ts
103103
tests/api-resources/dns/zone-transfers/peers.test.ts
104104
tests/api-resources/dns/zone-transfers/tsigs.test.ts
105-
tests/api-resources/email-security/email-security.test.ts
106-
tests/api-resources/email-security/investigate/investigate.test.ts
107-
tests/api-resources/email-security/investigate/detections.test.ts
108-
tests/api-resources/email-security/investigate/preview.test.ts
109-
tests/api-resources/email-security/investigate/raw.test.ts
110-
tests/api-resources/email-security/investigate/trace.test.ts
111-
tests/api-resources/email-security/investigate/move.test.ts
112-
tests/api-resources/email-security/investigate/reclassify.test.ts
113-
tests/api-resources/email-security/investigate/release.test.ts
114-
tests/api-resources/email-security/settings/settings.test.ts
115-
tests/api-resources/email-security/settings/allow-policies.test.ts
116-
tests/api-resources/email-security/settings/block-senders.test.ts
117-
tests/api-resources/email-security/settings/domains.test.ts
118-
tests/api-resources/email-security/settings/impersonation-registry.test.ts
119-
tests/api-resources/email-security/settings/trusted-domains.test.ts
120-
tests/api-resources/email-security/submissions.test.ts
121105
tests/api-resources/email-routing/email-routing.test.ts
122106
tests/api-resources/email-routing/dns.test.ts
123107
tests/api-resources/email-routing/rules/rules.test.ts

src/resources/abuse-reports/abuse-reports.ts

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,23 @@ export namespace AbuseReportListResponse {
109109
* The abuse report type
110110
*/
111111
type: 'PHISH' | 'GEN' | 'THREAT' | 'DMCA' | 'EMER' | 'TM' | 'REG_WHO' | 'NCSEI' | 'NETWORK';
112+
113+
/**
114+
* Justification for the report.
115+
*/
116+
justification?: string;
117+
118+
/**
119+
* Original work / Targeted brand in the alleged abuse.
120+
*/
121+
original_work?: string;
122+
123+
/**
124+
* Information about the submitter of the report.
125+
*/
126+
submitter?: Report.Submitter;
127+
128+
urls?: Array<string>;
112129
}
113130

114131
export namespace Report {
@@ -141,6 +158,19 @@ export namespace AbuseReportListResponse {
141158
*/
142159
pending_count: number;
143160
}
161+
162+
/**
163+
* Information about the submitter of the report.
164+
*/
165+
export interface Submitter {
166+
company?: string;
167+
168+
email?: string;
169+
170+
name?: string;
171+
172+
telephone?: string;
173+
}
144174
}
145175
}
146176

@@ -175,6 +205,23 @@ export interface AbuseReportGetResponse {
175205
* The abuse report type
176206
*/
177207
type: 'PHISH' | 'GEN' | 'THREAT' | 'DMCA' | 'EMER' | 'TM' | 'REG_WHO' | 'NCSEI' | 'NETWORK';
208+
209+
/**
210+
* Justification for the report.
211+
*/
212+
justification?: string;
213+
214+
/**
215+
* Original work / Targeted brand in the alleged abuse.
216+
*/
217+
original_work?: string;
218+
219+
/**
220+
* Information about the submitter of the report.
221+
*/
222+
submitter?: AbuseReportGetResponse.Submitter;
223+
224+
urls?: Array<string>;
178225
}
179226

180227
export namespace AbuseReportGetResponse {
@@ -207,6 +254,19 @@ export namespace AbuseReportGetResponse {
207254
*/
208255
pending_count: number;
209256
}
257+
258+
/**
259+
* Information about the submitter of the report.
260+
*/
261+
export interface Submitter {
262+
company?: string;
263+
264+
email?: string;
265+
266+
name?: string;
267+
268+
telephone?: string;
269+
}
210270
}
211271

212272
export type AbuseReportCreateParams =

src/resources/accounts/logs/audit.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,11 @@ export interface AuditListParams extends CursorPaginationAfterParams {
252252
*/
253253
since: string;
254254

255+
/**
256+
* Query param:
257+
*/
258+
id?: AuditListParams.ID;
259+
255260
/**
256261
* Query param:
257262
*/
@@ -302,11 +307,6 @@ export interface AuditListParams extends CursorPaginationAfterParams {
302307
*/
303308
actor_type?: AuditListParams.ActorType;
304309

305-
/**
306-
* Query param:
307-
*/
308-
audit_log_id?: AuditListParams.AuditLogID;
309-
310310
/**
311311
* Query param: Sets sorting order.
312312
*/
@@ -371,6 +371,13 @@ export interface AuditListParams extends CursorPaginationAfterParams {
371371
}
372372

373373
export namespace AuditListParams {
374+
export interface ID {
375+
/**
376+
* Filters out audit logs by their IDs.
377+
*/
378+
not?: Array<string>;
379+
}
380+
374381
export interface AccountName {
375382
/**
376383
* Filters out audit logs by the account name.
@@ -444,13 +451,6 @@ export namespace AuditListParams {
444451
not?: Array<'account' | 'cloudflare_admin' | 'system' | 'user'>;
445452
}
446453

447-
export interface AuditLogID {
448-
/**
449-
* Filters out audit logs by their IDs.
450-
*/
451-
not?: Array<string>;
452-
}
453-
454454
export interface RawCfRayID {
455455
/**
456456
* Filters out audit logs by the response CF Ray ID.

src/resources/cloudforce-one/threat-events/threat-events.ts

Lines changed: 51 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ export class ThreatEvents extends APIResource {
8787
* category: 'Domain Resolution',
8888
* date: '2022-04-01T00:00:00Z',
8989
* event: 'An attacker registered the domain domain.com',
90-
* indicatorType: 'domain',
9190
* raw: { data: { foo: 'bar' } },
9291
* tlp: 'amber',
9392
* });
@@ -165,7 +164,6 @@ export class ThreatEvents extends APIResource {
165164
* date: '2022-04-01T00:00:00Z',
166165
* event:
167166
* 'An attacker registered the domain domain.com',
168-
* indicatorType: 'domain',
169167
* raw: { data: { foo: 'bar' } },
170168
* tlp: 'amber',
171169
* },
@@ -235,6 +233,8 @@ export interface ThreatEventCreateResponse {
235233

236234
event: string;
237235

236+
hasChildren: boolean;
237+
238238
indicator: string;
239239

240240
indicatorType: string;
@@ -288,6 +288,8 @@ export namespace ThreatEventListResponse {
288288

289289
event: string;
290290

291+
hasChildren: boolean;
292+
291293
indicator: string;
292294

293295
indicatorType: string;
@@ -348,6 +350,8 @@ export interface ThreatEventEditResponse {
348350

349351
event: string;
350352

353+
hasChildren: boolean;
354+
351355
indicator: string;
352356

353357
indicatorType: string;
@@ -398,6 +402,8 @@ export interface ThreatEventGetResponse {
398402

399403
event: string;
400404

405+
hasChildren: boolean;
406+
401407
indicator: string;
402408

403409
indicatorType: string;
@@ -458,11 +464,6 @@ export interface ThreatEventCreateParams {
458464
*/
459465
event: string;
460466

461-
/**
462-
* Body param:
463-
*/
464-
indicatorType: string;
465-
466467
/**
467468
* Body param:
468469
*/
@@ -498,6 +499,17 @@ export interface ThreatEventCreateParams {
498499
*/
499500
indicator?: string;
500501

502+
/**
503+
* Body param: Array of indicators for this event. Supports multiple indicators per
504+
* event for complex scenarios.
505+
*/
506+
indicators?: Array<ThreatEventCreateParams.Indicator>;
507+
508+
/**
509+
* Body param:
510+
*/
511+
indicatorType?: string;
512+
501513
/**
502514
* Body param:
503515
*/
@@ -527,6 +539,18 @@ export namespace ThreatEventCreateParams {
527539

528540
tlp?: string;
529541
}
542+
543+
export interface Indicator {
544+
/**
545+
* The type of indicator (e.g., DOMAIN, IP, JA3, HASH)
546+
*/
547+
indicatorType: string;
548+
549+
/**
550+
* The indicator value (e.g., domain name, IP address, hash)
551+
*/
552+
value: string;
553+
}
530554
}
531555

532556
export interface ThreatEventListParams {
@@ -625,8 +649,6 @@ export namespace ThreatEventBulkCreateParams {
625649

626650
event: string;
627651

628-
indicatorType: string;
629-
630652
raw: Data.Raw;
631653

632654
tlp: string;
@@ -641,6 +663,14 @@ export namespace ThreatEventBulkCreateParams {
641663

642664
indicator?: string;
643665

666+
/**
667+
* Array of indicators for this event. Supports multiple indicators per event for
668+
* complex scenarios.
669+
*/
670+
indicators?: Array<Data.Indicator>;
671+
672+
indicatorType?: string;
673+
644674
insight?: string;
645675

646676
tags?: Array<string>;
@@ -658,6 +688,18 @@ export namespace ThreatEventBulkCreateParams {
658688

659689
tlp?: string;
660690
}
691+
692+
export interface Indicator {
693+
/**
694+
* The type of indicator (e.g., DOMAIN, IP, JA3, HASH)
695+
*/
696+
indicatorType: string;
697+
698+
/**
699+
* The indicator value (e.g., domain name, IP address, hash)
700+
*/
701+
value: string;
702+
}
661703
}
662704
}
663705

src/resources/email-security/email-security.ts

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,9 @@
22

33
import { APIResource } from '../../resource';
44
import * as SubmissionsAPI from './submissions';
5-
import {
6-
SubmissionListParams,
7-
SubmissionListResponse,
8-
SubmissionListResponsesV4PagePaginationArray,
9-
Submissions,
10-
} from './submissions';
5+
import { Submissions } from './submissions';
116
import * as InvestigateAPI from './investigate/investigate';
12-
import {
13-
Investigate,
14-
InvestigateGetParams,
15-
InvestigateGetResponse,
16-
InvestigateListParams,
17-
InvestigateListResponse,
18-
InvestigateListResponsesV4PagePaginationArray,
19-
} from './investigate/investigate';
7+
import { Investigate } from './investigate/investigate';
208
import * as SettingsAPI from './settings/settings';
219
import { Settings } from './settings/settings';
2210

@@ -27,27 +15,13 @@ export class EmailSecurity extends APIResource {
2715
}
2816

2917
EmailSecurity.Investigate = Investigate;
30-
EmailSecurity.InvestigateListResponsesV4PagePaginationArray = InvestigateListResponsesV4PagePaginationArray;
3118
EmailSecurity.Settings = Settings;
3219
EmailSecurity.Submissions = Submissions;
33-
EmailSecurity.SubmissionListResponsesV4PagePaginationArray = SubmissionListResponsesV4PagePaginationArray;
3420

3521
export declare namespace EmailSecurity {
36-
export {
37-
Investigate as Investigate,
38-
type InvestigateListResponse as InvestigateListResponse,
39-
type InvestigateGetResponse as InvestigateGetResponse,
40-
InvestigateListResponsesV4PagePaginationArray as InvestigateListResponsesV4PagePaginationArray,
41-
type InvestigateListParams as InvestigateListParams,
42-
type InvestigateGetParams as InvestigateGetParams,
43-
};
22+
export { Investigate as Investigate };
4423

4524
export { Settings as Settings };
4625

47-
export {
48-
Submissions as Submissions,
49-
type SubmissionListResponse as SubmissionListResponse,
50-
SubmissionListResponsesV4PagePaginationArray as SubmissionListResponsesV4PagePaginationArray,
51-
type SubmissionListParams as SubmissionListParams,
52-
};
26+
export { Submissions as Submissions };
5327
}
Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,6 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
export { EmailSecurity } from './email-security';
4-
export {
5-
InvestigateListResponsesV4PagePaginationArray,
6-
Investigate,
7-
type InvestigateListResponse,
8-
type InvestigateGetResponse,
9-
type InvestigateListParams,
10-
type InvestigateGetParams,
11-
} from './investigate/index';
4+
export { Investigate } from './investigate/index';
125
export { Settings } from './settings/index';
13-
export {
14-
SubmissionListResponsesV4PagePaginationArray,
15-
Submissions,
16-
type SubmissionListResponse,
17-
type SubmissionListParams,
18-
} from './submissions';
6+
export { Submissions } from './submissions';

0 commit comments

Comments
 (0)