Skip to content

Commit 7876fe9

Browse files
feat: update via SDK Studio (#92)
1 parent 7ee051f commit 7876fe9

File tree

29 files changed

+328
-255
lines changed

29 files changed

+328
-255
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
configured_endpoints: 1235
1+
configured_endpoints: 1236

api.md

+11-30
Original file line numberDiff line numberDiff line change
@@ -4105,6 +4105,7 @@ Methods:
41054105

41064106
Types:
41074107

4108+
- <code><a href="./src/resources/request-tracers/traces.ts">HhgJaXcvTrace</a></code>
41084109
- <code><a href="./src/resources/request-tracers/traces.ts">TraceCreateResponse</a></code>
41094110

41104111
Methods:
@@ -5097,6 +5098,16 @@ Methods:
50975098
- <code title="patch /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/settings">client.workersForPlatforms.dispatch.namespaces.scripts.settings.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts">edit</a>(dispatchNamespace, scriptName, { ...params }) -> SettingEditResponse</code>
50985099
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/settings">client.workersForPlatforms.dispatch.namespaces.scripts.settings.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/settings.ts">get</a>(dispatchNamespace, scriptName, { ...params }) -> SettingGetResponse</code>
50995100

5101+
##### Bindings
5102+
5103+
Types:
5104+
5105+
- <code><a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts">BindingGetResponse</a></code>
5106+
5107+
Methods:
5108+
5109+
- <code title="get /accounts/{account_id}/workers/dispatch/namespaces/{dispatch_namespace}/scripts/{script_name}/bindings">client.workersForPlatforms.dispatch.namespaces.scripts.bindings.<a href="./src/resources/workers-for-platforms/dispatch/namespaces/scripts/bindings.ts">get</a>(dispatchNamespace, scriptName, { ...params }) -> BindingGetResponse</code>
5110+
51005111
# ZeroTrust
51015112

51025113
## ConnectivitySettings
@@ -5484,36 +5495,6 @@ Methods:
54845495

54855496
### Security
54865497

5487-
#### Top
5488-
5489-
##### Ases
5490-
5491-
###### ARC
5492-
5493-
###### DKIM
5494-
5495-
###### DMARC
5496-
5497-
###### Malicious
5498-
5499-
###### Spam
5500-
5501-
###### SPF
5502-
5503-
##### Locations
5504-
5505-
###### ARC
5506-
5507-
###### DKIM
5508-
5509-
###### DMARC
5510-
5511-
###### Malicious
5512-
5513-
###### Spam
5514-
5515-
###### SPF
5516-
55175498
#### Summary
55185499

55195500
Types:

src/resources/radar/email/security/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,3 @@ export {
3535
TimeseriesGroupThreatCategoryParams,
3636
TimeseriesGroups,
3737
} from './timeseries-groups';
38-
export { Top } from './top/index';

src/resources/radar/email/security/security.ts

-3
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,15 @@
33
import { APIResource } from 'cloudflare/resource';
44
import * as SummaryAPI from 'cloudflare/resources/radar/email/security/summary';
55
import * as TimeseriesGroupsAPI from 'cloudflare/resources/radar/email/security/timeseries-groups';
6-
import * as TopAPI from 'cloudflare/resources/radar/email/security/top/top';
76

87
export class Security extends APIResource {
9-
top: TopAPI.Top = new TopAPI.Top(this._client);
108
summary: SummaryAPI.Summary = new SummaryAPI.Summary(this._client);
119
timeseriesGroups: TimeseriesGroupsAPI.TimeseriesGroups = new TimeseriesGroupsAPI.TimeseriesGroups(
1210
this._client,
1311
);
1412
}
1513

1614
export namespace Security {
17-
export import Top = TopAPI.Top;
1815
export import Summary = SummaryAPI.Summary;
1916
export import SummaryARCResponse = SummaryAPI.SummaryARCResponse;
2017
export import SummaryDKIMResponse = SummaryAPI.SummaryDKIMResponse;

src/resources/radar/email/security/top/ases/arc.ts

-5
This file was deleted.

src/resources/radar/email/security/top/ases/ases.ts

-27
This file was deleted.

src/resources/radar/email/security/top/ases/dkim.ts

-5
This file was deleted.

src/resources/radar/email/security/top/ases/dmarc.ts

-5
This file was deleted.

src/resources/radar/email/security/top/ases/index.ts

-9
This file was deleted.

src/resources/radar/email/security/top/ases/malicious.ts

-5
This file was deleted.

src/resources/radar/email/security/top/ases/spam.ts

-5
This file was deleted.

src/resources/radar/email/security/top/ases/spf.ts

-5
This file was deleted.

src/resources/radar/email/security/top/index.ts

-5
This file was deleted.

src/resources/radar/email/security/top/locations/arc.ts

-5
This file was deleted.

src/resources/radar/email/security/top/locations/dkim.ts

-5
This file was deleted.

src/resources/radar/email/security/top/locations/dmarc.ts

-5
This file was deleted.

src/resources/radar/email/security/top/locations/index.ts

-9
This file was deleted.

src/resources/radar/email/security/top/locations/locations.ts

-27
This file was deleted.

src/resources/radar/email/security/top/locations/malicious.ts

-5
This file was deleted.

src/resources/radar/email/security/top/locations/spam.ts

-5
This file was deleted.

src/resources/radar/email/security/top/locations/spf.ts

-5
This file was deleted.

src/resources/radar/email/security/top/top.ts

-15
This file was deleted.
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// File generated from our OpenAPI spec by Stainless.
22

3+
export { HhgJaXcvTrace, TraceCreateResponse, TraceCreateParams, Traces } from './traces';
34
export { RequestTracers } from './request-tracers';
4-
export { TraceCreateResponse, TraceCreateParams, Traces } from './traces';

src/resources/request-tracers/request-tracers.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export class RequestTracers extends APIResource {
99

1010
export namespace RequestTracers {
1111
export import Traces = TracesAPI.Traces;
12+
export import HhgJaXcvTrace = TracesAPI.HhgJaXcvTrace;
1213
export import TraceCreateResponse = TracesAPI.TraceCreateResponse;
1314
export import TraceCreateParams = TracesAPI.TraceCreateParams;
1415
}

src/resources/request-tracers/traces.ts

+16-67
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,13 @@ export class Traces extends APIResource {
2222
}
2323
}
2424

25-
/**
26-
* Trace result with an origin status code
27-
*/
28-
export interface TraceCreateResponse {
29-
/**
30-
* HTTP Status code of zone response
31-
*/
32-
status_code?: number;
33-
34-
trace?: Array<TraceCreateResponse.Trace>;
35-
}
25+
export type HhgJaXcvTrace = Array<HhgJaXcvTrace.HhgJaXcvTraceItem>;
3626

37-
export namespace TraceCreateResponse {
27+
export namespace HhgJaXcvTrace {
3828
/**
3929
* List of steps acting on request/response
4030
*/
41-
export interface Trace {
31+
export interface HhgJaXcvTraceItem {
4232
/**
4333
* If step type is rule, then action performed by this rule
4434
*/
@@ -79,67 +69,25 @@ export namespace TraceCreateResponse {
7969
*/
8070
step_name?: string;
8171

82-
trace?: Array<Trace.Trace>;
72+
trace?: TracesAPI.HhgJaXcvTrace;
8373

8474
/**
8575
* Tracing step type
8676
*/
8777
type?: string;
8878
}
79+
}
8980

90-
export namespace Trace {
91-
/**
92-
* List of steps acting on request/response
93-
*/
94-
export interface Trace {
95-
/**
96-
* If step type is rule, then action performed by this rule
97-
*/
98-
action?: string;
99-
100-
/**
101-
* If step type is rule, then action parameters of this rule as JSON
102-
*/
103-
action_parameters?: unknown;
104-
105-
/**
106-
* If step type is rule or ruleset, the description of this entity
107-
*/
108-
description?: string;
109-
110-
/**
111-
* If step type is rule, then expression used to match for this rule
112-
*/
113-
expression?: string;
114-
115-
/**
116-
* If step type is ruleset, then kind of this ruleset
117-
*/
118-
kind?: string;
119-
120-
/**
121-
* Whether tracing step affected tracing request/response
122-
*/
123-
matched?: boolean;
124-
125-
/**
126-
* If step type is ruleset, then name of this ruleset
127-
*/
128-
name?: string;
129-
130-
/**
131-
* Tracing step identifying name
132-
*/
133-
step_name?: string;
134-
135-
trace?: unknown;
136-
137-
/**
138-
* Tracing step type
139-
*/
140-
type?: string;
141-
}
142-
}
81+
/**
82+
* Trace result with an origin status code
83+
*/
84+
export interface TraceCreateResponse {
85+
/**
86+
* HTTP Status code of zone response
87+
*/
88+
status_code?: number;
89+
90+
trace?: HhgJaXcvTrace;
14391
}
14492

14593
export interface TraceCreateParams {
@@ -253,6 +201,7 @@ export namespace TraceCreateParams {
253201
}
254202

255203
export namespace Traces {
204+
export import HhgJaXcvTrace = TracesAPI.HhgJaXcvTrace;
256205
export import TraceCreateResponse = TracesAPI.TraceCreateResponse;
257206
export import TraceCreateParams = TracesAPI.TraceCreateParams;
258207
}

0 commit comments

Comments
 (0)