Skip to content

Commit d68f4df

Browse files
chore(api): update composite API spec
1 parent 6b8dbe0 commit d68f4df

File tree

80 files changed

+1114
-6202
lines changed

Some content is hidden

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

80 files changed

+1114
-6202
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: 1864
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c0392dcf61647dfd80bd9cfba1b84336aa6348d8e85b59199172c0cf5a2e30c2.yml
3-
openapi_spec_hash: ddde86af37159dac5dc0f678abffcb72
1+
configured_endpoints: 1826
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-cceecd20dfd89884f795e75b433848994bed610b79802c65104f0c70d3ada54e.yml
3+
openapi_spec_hash: c33c0e26e48c004c1781a36748d0144c
44
config_hash: f02bc3ad56bdede6c515f996ca86012c

api.md

Lines changed: 5 additions & 169 deletions
Large diffs are not rendered by default.

scripts/detect-breaking-changes

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -145,14 +145,6 @@ TEST_PATHS=(
145145
tests/api-resources/logpush/jobs.test.ts
146146
tests/api-resources/logpush/ownership.test.ts
147147
tests/api-resources/logpush/validate.test.ts
148-
tests/api-resources/logs/logs.test.ts
149-
tests/api-resources/logs/control/control.test.ts
150-
tests/api-resources/logs/control/retention.test.ts
151-
tests/api-resources/logs/control/cmb/cmb.test.ts
152-
tests/api-resources/logs/control/cmb/config.test.ts
153-
tests/api-resources/logs/rayid.test.ts
154-
tests/api-resources/logs/received/received.test.ts
155-
tests/api-resources/logs/received/fields.test.ts
156148
tests/api-resources/origin-tls-client-auth/origin-tls-client-auth.test.ts
157149
tests/api-resources/origin-tls-client-auth/hostnames/hostnames.test.ts
158150
tests/api-resources/origin-tls-client-auth/hostnames/certificates.test.ts
@@ -193,8 +185,6 @@ TEST_PATHS=(
193185
tests/api-resources/workers/account-settings.test.ts
194186
tests/api-resources/workers/domains.test.ts
195187
tests/api-resources/workers/subdomains.test.ts
196-
tests/api-resources/workers/observability/observability.test.ts
197-
tests/api-resources/workers/observability/telemetry.test.ts
198188
tests/api-resources/kv/kv.test.ts
199189
tests/api-resources/kv/namespaces/namespaces.test.ts
200190
tests/api-resources/kv/namespaces/keys.test.ts
@@ -207,7 +197,6 @@ TEST_PATHS=(
207197
tests/api-resources/queues/messages.test.ts
208198
tests/api-resources/queues/purge.test.ts
209199
tests/api-resources/queues/consumers.test.ts
210-
tests/api-resources/queues/subscriptions.test.ts
211200
tests/api-resources/api-gateway/api-gateway.test.ts
212201
tests/api-resources/api-gateway/configurations.test.ts
213202
tests/api-resources/api-gateway/discovery/discovery.test.ts
@@ -690,7 +679,6 @@ TEST_PATHS=(
690679
tests/api-resources/cloudforce-one/threat-events/categories.test.ts
691680
tests/api-resources/cloudforce-one/threat-events/countries.test.ts
692681
tests/api-resources/cloudforce-one/threat-events/datasets/datasets.test.ts
693-
tests/api-resources/cloudforce-one/threat-events/indicator-types.test.ts
694682
tests/api-resources/cloudforce-one/threat-events/raw.test.ts
695683
tests/api-resources/cloudforce-one/threat-events/relate.test.ts
696684
tests/api-resources/cloudforce-one/threat-events/tags.test.ts
@@ -715,16 +703,9 @@ TEST_PATHS=(
715703
tests/api-resources/botnet-feed/configs/configs.test.ts
716704
tests/api-resources/botnet-feed/configs/asn.test.ts
717705
tests/api-resources/security-txt.test.ts
718-
tests/api-resources/workflows/workflows.test.ts
719-
tests/api-resources/workflows/instances/instances.test.ts
720-
tests/api-resources/workflows/instances/status.test.ts
721-
tests/api-resources/workflows/instances/events.test.ts
722-
tests/api-resources/workflows/versions.test.ts
723706
tests/api-resources/resource-sharing/resource-sharing.test.ts
724707
tests/api-resources/resource-sharing/recipients.test.ts
725708
tests/api-resources/resource-sharing/resources.test.ts
726-
tests/api-resources/leaked-credential-checks/leaked-credential-checks.test.ts
727-
tests/api-resources/leaked-credential-checks/detections.test.ts
728709
tests/api-resources/content-scanning/content-scanning.test.ts
729710
tests/api-resources/content-scanning/payloads.test.ts
730711
tests/api-resources/content-scanning/settings.test.ts

src/resources/alerting/policies.ts

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ export interface Policy {
211211
* possible values.
212212
*/
213213
alert_type?:
214+
| 'abuse_report_alert'
214215
| 'access_custom_certificate_expiration_type'
215216
| 'advanced_ddos_attack_l4_alert'
216217
| 'advanced_ddos_attack_l7_alert'
@@ -520,6 +521,11 @@ export interface PolicyFilter {
520521
*/
521522
tunnel_name?: Array<string>;
522523

524+
/**
525+
* Usage depends on specific alert type
526+
*/
527+
type?: Array<string>;
528+
523529
/**
524530
* Usage depends on specific alert type
525531
*/
@@ -739,6 +745,11 @@ export interface PolicyFilterParam {
739745
*/
740746
tunnel_name?: Array<string>;
741747

748+
/**
749+
* Usage depends on specific alert type
750+
*/
751+
type?: Array<string>;
752+
742753
/**
743754
* Usage depends on specific alert type
744755
*/
@@ -825,6 +836,7 @@ export interface PolicyCreateParams {
825836
* possible values.
826837
*/
827838
alert_type:
839+
| 'abuse_report_alert'
828840
| 'access_custom_certificate_expiration_type'
829841
| 'advanced_ddos_attack_l4_alert'
830842
| 'advanced_ddos_attack_l7_alert'
@@ -946,6 +958,7 @@ export interface PolicyUpdateParams {
946958
* possible values.
947959
*/
948960
alert_type?:
961+
| 'abuse_report_alert'
949962
| 'access_custom_certificate_expiration_type'
950963
| 'advanced_ddos_attack_l4_alert'
951964
| 'advanced_ddos_attack_l7_alert'

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,7 @@ export {
3636
type EventTagCreateParams,
3737
type EventTagDeleteParams,
3838
} from './event-tags';
39-
export {
40-
IndicatorTypes,
41-
type IndicatorTypeListResponse,
42-
type IndicatorTypeListParams,
43-
} from './indicator-types';
39+
export { IndicatorTypes } from './indicator-types';
4440
export { Insights } from './insights';
4541
export { Raw, type RawEditResponse, type RawGetResponse, type RawEditParams, type RawGetParams } from './raw';
4642
export { Relate, type RelateDeleteResponse, type RelateDeleteParams } from './relate';
Lines changed: 1 addition & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,5 @@
11
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
import { APIResource } from '../../../resource';
4-
import * as Core from '../../../core';
54

6-
export class IndicatorTypes extends APIResource {
7-
/**
8-
* Lists all indicator types
9-
*
10-
* @example
11-
* ```ts
12-
* const indicatorTypes =
13-
* await client.cloudforceOne.threatEvents.indicatorTypes.list(
14-
* { account_id: 'account_id' },
15-
* );
16-
* ```
17-
*/
18-
list(
19-
params: IndicatorTypeListParams,
20-
options?: Core.RequestOptions,
21-
): Core.APIPromise<IndicatorTypeListResponse> {
22-
const { account_id } = params;
23-
return this._client.get(`/accounts/${account_id}/cloudforce-one/events/indicatorTypes`, options);
24-
}
25-
}
26-
27-
export interface IndicatorTypeListResponse {
28-
items: IndicatorTypeListResponse.Items;
29-
30-
type: string;
31-
}
32-
33-
export namespace IndicatorTypeListResponse {
34-
export interface Items {
35-
type: string;
36-
}
37-
}
38-
39-
export interface IndicatorTypeListParams {
40-
/**
41-
* Account ID.
42-
*/
43-
account_id: string;
44-
}
45-
46-
export declare namespace IndicatorTypes {
47-
export {
48-
type IndicatorTypeListResponse as IndicatorTypeListResponse,
49-
type IndicatorTypeListParams as IndicatorTypeListParams,
50-
};
51-
}
5+
export class IndicatorTypes extends APIResource {}

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import {
3131
EventTags,
3232
} from './event-tags';
3333
import * as IndicatorTypesAPI from './indicator-types';
34-
import { IndicatorTypeListParams, IndicatorTypeListResponse, IndicatorTypes } from './indicator-types';
34+
import { IndicatorTypes } from './indicator-types';
3535
import * as InsightsAPI from './insights';
3636
import { Insights } from './insights';
3737
import * as RawAPI from './raw';
@@ -821,11 +821,7 @@ export declare namespace ThreatEvents {
821821
type DatasetRawParams as DatasetRawParams,
822822
};
823823

824-
export {
825-
IndicatorTypes as IndicatorTypes,
826-
type IndicatorTypeListResponse as IndicatorTypeListResponse,
827-
type IndicatorTypeListParams as IndicatorTypeListParams,
828-
};
824+
export { IndicatorTypes as IndicatorTypes };
829825

830826
export {
831827
RawAPIRaw as Raw,

src/resources/custom-pages.ts

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ export class CustomPages extends APIResource {
2424
*/
2525
update(
2626
identifier:
27-
| 'waf_block'
28-
| 'ip_block'
29-
| 'country_challenge'
30-
| '500_errors'
3127
| '1000_errors'
28+
| '500_errors'
29+
| 'basic_challenge'
30+
| 'country_challenge'
31+
| 'ip_block'
3232
| 'managed_challenge'
33-
| 'ratelimit_block',
33+
| 'ratelimit_block'
34+
| 'under_attack'
35+
| 'waf_block',
3436
params: CustomPageUpdateParams,
3537
options?: Core.RequestOptions,
3638
): Core.APIPromise<CustomPageUpdateResponse> {
@@ -123,36 +125,42 @@ export class CustomPages extends APIResource {
123125
*/
124126
get(
125127
identifier:
126-
| 'waf_block'
127-
| 'ip_block'
128-
| 'country_challenge'
129-
| '500_errors'
130128
| '1000_errors'
129+
| '500_errors'
130+
| 'basic_challenge'
131+
| 'country_challenge'
132+
| 'ip_block'
131133
| 'managed_challenge'
132-
| 'ratelimit_block',
134+
| 'ratelimit_block'
135+
| 'under_attack'
136+
| 'waf_block',
133137
params?: CustomPageGetParams,
134138
options?: Core.RequestOptions,
135139
): Core.APIPromise<CustomPageGetResponse>;
136140
get(
137141
identifier:
138-
| 'waf_block'
139-
| 'ip_block'
140-
| 'country_challenge'
141-
| '500_errors'
142142
| '1000_errors'
143+
| '500_errors'
144+
| 'basic_challenge'
145+
| 'country_challenge'
146+
| 'ip_block'
143147
| 'managed_challenge'
144-
| 'ratelimit_block',
148+
| 'ratelimit_block'
149+
| 'under_attack'
150+
| 'waf_block',
145151
options?: Core.RequestOptions,
146152
): Core.APIPromise<CustomPageGetResponse>;
147153
get(
148154
identifier:
149-
| 'waf_block'
150-
| 'ip_block'
151-
| 'country_challenge'
152-
| '500_errors'
153155
| '1000_errors'
156+
| '500_errors'
157+
| 'basic_challenge'
158+
| 'country_challenge'
159+
| 'ip_block'
154160
| 'managed_challenge'
155-
| 'ratelimit_block',
161+
| 'ratelimit_block'
162+
| 'under_attack'
163+
| 'waf_block',
156164
params: CustomPageGetParams | Core.RequestOptions = {},
157165
options?: Core.RequestOptions,
158166
): Core.APIPromise<CustomPageGetResponse> {

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

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,33 @@ export namespace InvestigateListResponse {
199199
}
200200

201201
export interface Finding {
202+
attachment?: string | null;
203+
202204
detail?: string | null;
203205

206+
detection?:
207+
| 'MALICIOUS'
208+
| 'MALICIOUS-BEC'
209+
| 'SUSPICIOUS'
210+
| 'SPOOF'
211+
| 'SPAM'
212+
| 'BULK'
213+
| 'ENCRYPTED'
214+
| 'EXTERNAL'
215+
| 'UNKNOWN'
216+
| 'NONE'
217+
| null;
218+
219+
field?: string | null;
220+
204221
name?: string | null;
205222

223+
portion?: string | null;
224+
225+
reason?: string | null;
226+
227+
score?: number | null;
228+
206229
value?: string | null;
207230
}
208231

@@ -321,10 +344,33 @@ export namespace InvestigateGetResponse {
321344
}
322345

323346
export interface Finding {
347+
attachment?: string | null;
348+
324349
detail?: string | null;
325350

351+
detection?:
352+
| 'MALICIOUS'
353+
| 'MALICIOUS-BEC'
354+
| 'SUSPICIOUS'
355+
| 'SPOOF'
356+
| 'SPAM'
357+
| 'BULK'
358+
| 'ENCRYPTED'
359+
| 'EXTERNAL'
360+
| 'UNKNOWN'
361+
| 'NONE'
362+
| null;
363+
364+
field?: string | null;
365+
326366
name?: string | null;
327367

368+
portion?: string | null;
369+
370+
reason?: string | null;
371+
372+
score?: number | null;
373+
328374
value?: string | null;
329375
}
330376

src/resources/kv/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,15 @@ export {
55
NamespacesV4PagePaginationArray,
66
Namespaces,
77
type Namespace,
8+
type NamespaceUpdateResponse,
89
type NamespaceDeleteResponse,
910
type NamespaceBulkDeleteResponse,
10-
type NamespaceBulkGetResponse,
1111
type NamespaceBulkUpdateResponse,
1212
type NamespaceCreateParams,
1313
type NamespaceUpdateParams,
1414
type NamespaceListParams,
1515
type NamespaceDeleteParams,
1616
type NamespaceBulkDeleteParams,
17-
type NamespaceBulkGetParams,
1817
type NamespaceBulkUpdateParams,
1918
type NamespaceGetParams,
2019
} from './namespaces/index';

0 commit comments

Comments
 (0)