@distilled.cloud/cloudflare 0.18.2 → 0.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/schemas.d.ts +7 -8
- package/lib/schemas.d.ts.map +1 -1
- package/lib/schemas.js +9 -12
- package/lib/schemas.js.map +1 -1
- package/lib/services/abuse-reports.d.ts +4 -4
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +28 -22
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +10 -10
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +67 -52
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +10 -10
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +70 -55
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +2 -2
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +14 -11
- package/lib/services/ai.js.map +1 -1
- package/lib/services/alerting.d.ts +2 -2
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +14 -11
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +10 -10
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +70 -55
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +2 -2
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +14 -11
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/client-certificates.d.ts +2 -2
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +14 -11
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +2 -2
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +14 -11
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +2 -2
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +14 -11
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-pages.d.ts +40 -13
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +68 -15
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +2 -2
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +14 -11
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +2 -2
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +14 -11
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +4 -4
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +28 -22
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +4 -4
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +25 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +4 -4
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +28 -22
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +14 -14
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +98 -77
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +2 -2
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +14 -11
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +82 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +232 -114
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +2 -2
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +14 -11
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/images.d.ts +2 -2
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +14 -11
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +6 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +30 -22
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts +4 -4
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +25 -19
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +2 -2
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +14 -11
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +157 -64
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +292 -63
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +2 -2
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +14 -11
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/memberships.d.ts +2 -2
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +14 -11
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +2 -2
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +14 -11
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/pages.d.ts +4 -4
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +28 -22
- package/lib/services/pages.js.map +1 -1
- package/lib/services/queues.d.ts +2 -2
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +14 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +97 -2
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +125 -6
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +4 -4
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +28 -22
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +2 -2
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +14 -11
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +6 -6
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +42 -33
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +2 -2
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +11 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +202 -67
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +383 -84
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +2 -2
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +14 -11
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +4 -4
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +28 -22
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +4 -4
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +28 -22
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +68 -21
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +142 -33
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/snippets.d.ts +2 -2
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +14 -11
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +2 -2
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +14 -11
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +2 -2
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +14 -11
- package/lib/services/speed.js.map +1 -1
- package/lib/services/token-validation.d.ts +4 -4
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +28 -22
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +2 -2
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +14 -11
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/user.d.ts +8 -8
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +56 -44
- package/lib/services/user.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +18 -7
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +53 -29
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/workers.d.ts +17 -17
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +53 -44
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +6 -6
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +42 -33
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zero-trust.d.ts +639 -264
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +1575 -594
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +2 -2
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +14 -11
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/schemas.ts +19 -17
- package/src/services/abuse-reports.ts +42 -28
- package/src/services/accounts.ts +94 -67
- package/src/services/ai-gateway.ts +101 -70
- package/src/services/ai.ts +19 -14
- package/src/services/alerting.ts +19 -14
- package/src/services/api-gateway.ts +105 -70
- package/src/services/audit-logs.ts +19 -14
- package/src/services/client-certificates.ts +21 -14
- package/src/services/custom-certificates.ts +21 -14
- package/src/services/custom-hostnames.ts +21 -14
- package/src/services/custom-pages.ts +170 -66
- package/src/services/d1.ts +19 -14
- package/src/services/dns-firewall.ts +21 -14
- package/src/services/dns.ts +40 -28
- package/src/services/durable-objects.ts +39 -25
- package/src/services/email-routing.ts +38 -28
- package/src/services/email-security.ts +147 -98
- package/src/services/filters.ts +19 -14
- package/src/services/firewall.ts +462 -233
- package/src/services/healthchecks.ts +21 -14
- package/src/services/images.ts +19 -14
- package/src/services/intel.ts +44 -28
- package/src/services/kv.ts +39 -25
- package/src/services/load-balancers.ts +19 -14
- package/src/services/logpush.ts +798 -372
- package/src/services/magic-cloud-networking.ts +19 -14
- package/src/services/memberships.ts +21 -14
- package/src/services/origin-ca-certificates.ts +21 -14
- package/src/services/pages.ts +40 -28
- package/src/services/queues.ts +21 -14
- package/src/services/r2.ts +307 -9
- package/src/services/radar.ts +42 -28
- package/src/services/rate-limits.ts +21 -14
- package/src/services/resource-sharing.ts +61 -42
- package/src/services/rules.ts +18 -11
- package/src/services/rulesets.ts +3990 -3420
- package/src/services/rum.ts +19 -14
- package/src/services/schema-validation.ts +40 -28
- package/src/services/secrets-store.ts +40 -28
- package/src/services/security-center.ts +266 -77
- package/src/services/snippets.ts +19 -14
- package/src/services/spectrum.ts +19 -14
- package/src/services/speed.ts +19 -14
- package/src/services/token-validation.ts +40 -28
- package/src/services/turnstile.ts +19 -14
- package/src/services/user.ts +80 -56
- package/src/services/waiting-rooms.ts +89 -39
- package/src/services/workers.ts +85 -64
- package/src/services/workflows.ts +57 -42
- package/src/services/zero-trust.ts +4536 -2654
- package/src/services/zones.ts +19 -14
|
@@ -16,7 +16,22 @@ import { type DefaultErrors } from "../errors.ts";
|
|
|
16
16
|
// CustomPage
|
|
17
17
|
// =============================================================================
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const GetCustomPageBaseFields = {
|
|
20
|
+
identifier: Schema.Literals([
|
|
21
|
+
"1000_errors",
|
|
22
|
+
"500_errors",
|
|
23
|
+
"basic_challenge",
|
|
24
|
+
"country_challenge",
|
|
25
|
+
"ip_block",
|
|
26
|
+
"managed_challenge",
|
|
27
|
+
"ratelimit_block",
|
|
28
|
+
"under_attack",
|
|
29
|
+
"waf_block",
|
|
30
|
+
"waf_challenge",
|
|
31
|
+
]).pipe(T.HttpPath("identifier")),
|
|
32
|
+
} as const;
|
|
33
|
+
|
|
34
|
+
interface GetCustomPageBaseRequest {
|
|
20
35
|
identifier:
|
|
21
36
|
| "1000_errors"
|
|
22
37
|
| "500_errors"
|
|
@@ -30,25 +45,37 @@ export interface GetCustomPageRequest {
|
|
|
30
45
|
| "waf_challenge";
|
|
31
46
|
}
|
|
32
47
|
|
|
33
|
-
export
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
)
|
|
48
|
+
export interface GetCustomPageForAccountRequest extends GetCustomPageBaseRequest {
|
|
49
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
50
|
+
accountId: string;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface GetCustomPageForZoneRequest extends GetCustomPageBaseRequest {
|
|
54
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
55
|
+
zoneId: string;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export const GetCustomPageForAccountRequest =
|
|
59
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
60
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
61
|
+
...GetCustomPageBaseFields,
|
|
62
|
+
}).pipe(
|
|
63
|
+
T.Http({
|
|
64
|
+
method: "GET",
|
|
65
|
+
path: "/accounts/{account_id}/custom_pages/{identifier}",
|
|
66
|
+
}),
|
|
67
|
+
) as unknown as Schema.Schema<GetCustomPageForAccountRequest>;
|
|
68
|
+
|
|
69
|
+
export const GetCustomPageForZoneRequest =
|
|
70
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
71
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
72
|
+
...GetCustomPageBaseFields,
|
|
73
|
+
}).pipe(
|
|
74
|
+
T.Http({
|
|
75
|
+
method: "GET",
|
|
76
|
+
path: "/zones/{zone_id}/custom_pages/{identifier}",
|
|
77
|
+
}),
|
|
78
|
+
) as unknown as Schema.Schema<GetCustomPageForZoneRequest>;
|
|
52
79
|
|
|
53
80
|
export interface GetCustomPageResponse {
|
|
54
81
|
id?: string | null;
|
|
@@ -95,27 +122,57 @@ export const GetCustomPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
95
122
|
|
|
96
123
|
export type GetCustomPageError = DefaultErrors;
|
|
97
124
|
|
|
98
|
-
export const
|
|
99
|
-
|
|
125
|
+
export const getCustomPageForAccount: API.OperationMethod<
|
|
126
|
+
GetCustomPageForAccountRequest,
|
|
100
127
|
GetCustomPageResponse,
|
|
101
128
|
GetCustomPageError,
|
|
102
129
|
Credentials | HttpClient.HttpClient
|
|
103
130
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
104
|
-
input:
|
|
131
|
+
input: GetCustomPageForAccountRequest,
|
|
105
132
|
output: GetCustomPageResponse,
|
|
106
133
|
errors: [],
|
|
107
134
|
}));
|
|
108
135
|
|
|
109
|
-
export
|
|
136
|
+
export const getCustomPageForZone: API.OperationMethod<
|
|
137
|
+
GetCustomPageForZoneRequest,
|
|
138
|
+
GetCustomPageResponse,
|
|
139
|
+
GetCustomPageError,
|
|
140
|
+
Credentials | HttpClient.HttpClient
|
|
141
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
142
|
+
input: GetCustomPageForZoneRequest,
|
|
143
|
+
output: GetCustomPageResponse,
|
|
144
|
+
errors: [],
|
|
145
|
+
}));
|
|
110
146
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
147
|
+
const ListCustomPagesBaseFields = {} as const;
|
|
148
|
+
|
|
149
|
+
interface ListCustomPagesBaseRequest {}
|
|
150
|
+
|
|
151
|
+
export interface ListCustomPagesForAccountRequest extends ListCustomPagesBaseRequest {
|
|
152
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
153
|
+
accountId: string;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export interface ListCustomPagesForZoneRequest extends ListCustomPagesBaseRequest {
|
|
157
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
158
|
+
zoneId: string;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export const ListCustomPagesForAccountRequest =
|
|
162
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
163
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
164
|
+
...ListCustomPagesBaseFields,
|
|
165
|
+
}).pipe(
|
|
166
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/custom_pages" }),
|
|
167
|
+
) as unknown as Schema.Schema<ListCustomPagesForAccountRequest>;
|
|
168
|
+
|
|
169
|
+
export const ListCustomPagesForZoneRequest =
|
|
170
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
171
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
172
|
+
...ListCustomPagesBaseFields,
|
|
173
|
+
}).pipe(
|
|
174
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/custom_pages" }),
|
|
175
|
+
) as unknown as Schema.Schema<ListCustomPagesForZoneRequest>;
|
|
119
176
|
|
|
120
177
|
export interface ListCustomPagesResponse {
|
|
121
178
|
result: {
|
|
@@ -170,13 +227,28 @@ export const ListCustomPagesResponse =
|
|
|
170
227
|
|
|
171
228
|
export type ListCustomPagesError = DefaultErrors;
|
|
172
229
|
|
|
173
|
-
export const
|
|
174
|
-
|
|
230
|
+
export const listCustomPagesForAccount: API.PaginatedOperationMethod<
|
|
231
|
+
ListCustomPagesForAccountRequest,
|
|
232
|
+
ListCustomPagesResponse,
|
|
233
|
+
ListCustomPagesError,
|
|
234
|
+
Credentials | HttpClient.HttpClient
|
|
235
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
236
|
+
input: ListCustomPagesForAccountRequest,
|
|
237
|
+
output: ListCustomPagesResponse,
|
|
238
|
+
errors: [],
|
|
239
|
+
pagination: {
|
|
240
|
+
mode: "single",
|
|
241
|
+
items: "result",
|
|
242
|
+
} as const,
|
|
243
|
+
}));
|
|
244
|
+
|
|
245
|
+
export const listCustomPagesForZone: API.PaginatedOperationMethod<
|
|
246
|
+
ListCustomPagesForZoneRequest,
|
|
175
247
|
ListCustomPagesResponse,
|
|
176
248
|
ListCustomPagesError,
|
|
177
249
|
Credentials | HttpClient.HttpClient
|
|
178
250
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
179
|
-
input:
|
|
251
|
+
input: ListCustomPagesForZoneRequest,
|
|
180
252
|
output: ListCustomPagesResponse,
|
|
181
253
|
errors: [],
|
|
182
254
|
pagination: {
|
|
@@ -185,7 +257,24 @@ export const listCustomPages: API.PaginatedOperationMethod<
|
|
|
185
257
|
} as const,
|
|
186
258
|
}));
|
|
187
259
|
|
|
188
|
-
|
|
260
|
+
const PutCustomPageBaseFields = {
|
|
261
|
+
identifier: Schema.Literals([
|
|
262
|
+
"1000_errors",
|
|
263
|
+
"500_errors",
|
|
264
|
+
"basic_challenge",
|
|
265
|
+
"country_challenge",
|
|
266
|
+
"ip_block",
|
|
267
|
+
"managed_challenge",
|
|
268
|
+
"ratelimit_block",
|
|
269
|
+
"under_attack",
|
|
270
|
+
"waf_block",
|
|
271
|
+
"waf_challenge",
|
|
272
|
+
]).pipe(T.HttpPath("identifier")),
|
|
273
|
+
state: Schema.Literals(["default", "customized"]),
|
|
274
|
+
url: Schema.String,
|
|
275
|
+
} as const;
|
|
276
|
+
|
|
277
|
+
interface PutCustomPageBaseRequest {
|
|
189
278
|
identifier:
|
|
190
279
|
| "1000_errors"
|
|
191
280
|
| "500_errors"
|
|
@@ -197,39 +286,43 @@ export interface PutCustomPageRequest {
|
|
|
197
286
|
| "under_attack"
|
|
198
287
|
| "waf_block"
|
|
199
288
|
| "waf_challenge";
|
|
200
|
-
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
201
|
-
accountId?: string;
|
|
202
|
-
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
203
|
-
zoneId?: string;
|
|
204
289
|
/** Body param: The custom page state. */
|
|
205
290
|
state: "default" | "customized";
|
|
206
291
|
/** Body param: The URL associated with the custom page. */
|
|
207
292
|
url: string;
|
|
208
293
|
}
|
|
209
294
|
|
|
210
|
-
export
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
295
|
+
export interface PutCustomPageForAccountRequest extends PutCustomPageBaseRequest {
|
|
296
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
297
|
+
accountId: string;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
export interface PutCustomPageForZoneRequest extends PutCustomPageBaseRequest {
|
|
301
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
302
|
+
zoneId: string;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export const PutCustomPageForAccountRequest =
|
|
306
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
307
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
308
|
+
...PutCustomPageBaseFields,
|
|
309
|
+
}).pipe(
|
|
310
|
+
T.Http({
|
|
311
|
+
method: "PUT",
|
|
312
|
+
path: "/accounts/{account_id}/custom_pages/{identifier}",
|
|
313
|
+
}),
|
|
314
|
+
) as unknown as Schema.Schema<PutCustomPageForAccountRequest>;
|
|
315
|
+
|
|
316
|
+
export const PutCustomPageForZoneRequest =
|
|
317
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
318
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
319
|
+
...PutCustomPageBaseFields,
|
|
320
|
+
}).pipe(
|
|
321
|
+
T.Http({
|
|
322
|
+
method: "PUT",
|
|
323
|
+
path: "/zones/{zone_id}/custom_pages/{identifier}",
|
|
324
|
+
}),
|
|
325
|
+
) as unknown as Schema.Schema<PutCustomPageForZoneRequest>;
|
|
233
326
|
|
|
234
327
|
export interface PutCustomPageResponse {
|
|
235
328
|
id?: string | null;
|
|
@@ -276,13 +369,24 @@ export const PutCustomPageResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
276
369
|
|
|
277
370
|
export type PutCustomPageError = DefaultErrors;
|
|
278
371
|
|
|
279
|
-
export const
|
|
280
|
-
|
|
372
|
+
export const putCustomPageForAccount: API.OperationMethod<
|
|
373
|
+
PutCustomPageForAccountRequest,
|
|
374
|
+
PutCustomPageResponse,
|
|
375
|
+
PutCustomPageError,
|
|
376
|
+
Credentials | HttpClient.HttpClient
|
|
377
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
378
|
+
input: PutCustomPageForAccountRequest,
|
|
379
|
+
output: PutCustomPageResponse,
|
|
380
|
+
errors: [],
|
|
381
|
+
}));
|
|
382
|
+
|
|
383
|
+
export const putCustomPageForZone: API.OperationMethod<
|
|
384
|
+
PutCustomPageForZoneRequest,
|
|
281
385
|
PutCustomPageResponse,
|
|
282
386
|
PutCustomPageError,
|
|
283
387
|
Credentials | HttpClient.HttpClient
|
|
284
388
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
285
|
-
input:
|
|
389
|
+
input: PutCustomPageForZoneRequest,
|
|
286
390
|
output: PutCustomPageResponse,
|
|
287
391
|
errors: [],
|
|
288
392
|
}));
|
package/src/services/d1.ts
CHANGED
|
@@ -158,12 +158,12 @@ export interface ListDatabasesResponse {
|
|
|
158
158
|
uuid?: string | null;
|
|
159
159
|
version?: string | null;
|
|
160
160
|
}[];
|
|
161
|
-
resultInfo
|
|
161
|
+
resultInfo?: {
|
|
162
162
|
count?: number | null;
|
|
163
163
|
page?: number | null;
|
|
164
164
|
perPage?: number | null;
|
|
165
165
|
totalCount?: number | null;
|
|
166
|
-
};
|
|
166
|
+
} | null;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
169
|
export const ListDatabasesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -182,18 +182,23 @@ export const ListDatabasesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
182
182
|
}),
|
|
183
183
|
),
|
|
184
184
|
),
|
|
185
|
-
resultInfo: Schema.
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
185
|
+
resultInfo: Schema.optional(
|
|
186
|
+
Schema.Union([
|
|
187
|
+
Schema.Struct({
|
|
188
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
189
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
190
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
191
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
192
|
+
}).pipe(
|
|
193
|
+
Schema.encodeKeys({
|
|
194
|
+
count: "count",
|
|
195
|
+
page: "page",
|
|
196
|
+
perPage: "per_page",
|
|
197
|
+
totalCount: "total_count",
|
|
198
|
+
}),
|
|
199
|
+
),
|
|
200
|
+
Schema.Null,
|
|
201
|
+
]),
|
|
197
202
|
),
|
|
198
203
|
}).pipe(
|
|
199
204
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -465,12 +465,12 @@ export interface ListDnsFirewallsResponse {
|
|
|
465
465
|
onlyWhenUpstreamUnhealthy?: boolean | null;
|
|
466
466
|
} | null;
|
|
467
467
|
}[];
|
|
468
|
-
resultInfo
|
|
468
|
+
resultInfo?: {
|
|
469
469
|
count?: number | null;
|
|
470
470
|
page?: number | null;
|
|
471
471
|
perPage?: number | null;
|
|
472
472
|
totalCount?: number | null;
|
|
473
|
-
};
|
|
473
|
+
} | null;
|
|
474
474
|
}
|
|
475
475
|
|
|
476
476
|
export const ListDnsFirewallsResponse =
|
|
@@ -525,18 +525,25 @@ export const ListDnsFirewallsResponse =
|
|
|
525
525
|
}),
|
|
526
526
|
),
|
|
527
527
|
),
|
|
528
|
-
resultInfo: Schema.
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
528
|
+
resultInfo: Schema.optional(
|
|
529
|
+
Schema.Union([
|
|
530
|
+
Schema.Struct({
|
|
531
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
532
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
533
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
534
|
+
totalCount: Schema.optional(
|
|
535
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
536
|
+
),
|
|
537
|
+
}).pipe(
|
|
538
|
+
Schema.encodeKeys({
|
|
539
|
+
count: "count",
|
|
540
|
+
page: "page",
|
|
541
|
+
perPage: "per_page",
|
|
542
|
+
totalCount: "total_count",
|
|
543
|
+
}),
|
|
544
|
+
),
|
|
545
|
+
Schema.Null,
|
|
546
|
+
]),
|
|
540
547
|
),
|
|
541
548
|
}).pipe(
|
|
542
549
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
package/src/services/dns.ts
CHANGED
|
@@ -5276,12 +5276,12 @@ export interface ListRecordsResponse {
|
|
|
5276
5276
|
tagsModifiedOn?: string | null;
|
|
5277
5277
|
}
|
|
5278
5278
|
)[];
|
|
5279
|
-
resultInfo
|
|
5279
|
+
resultInfo?: {
|
|
5280
5280
|
count?: number | null;
|
|
5281
5281
|
page?: number | null;
|
|
5282
5282
|
perPage?: number | null;
|
|
5283
5283
|
totalCount?: number | null;
|
|
5284
|
-
};
|
|
5284
|
+
} | null;
|
|
5285
5285
|
}
|
|
5286
5286
|
|
|
5287
5287
|
export const ListRecordsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -6817,18 +6817,23 @@ export const ListRecordsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6817
6817
|
),
|
|
6818
6818
|
]),
|
|
6819
6819
|
),
|
|
6820
|
-
resultInfo: Schema.
|
|
6821
|
-
|
|
6822
|
-
|
|
6823
|
-
|
|
6824
|
-
|
|
6825
|
-
|
|
6826
|
-
|
|
6827
|
-
|
|
6828
|
-
|
|
6829
|
-
|
|
6830
|
-
|
|
6831
|
-
|
|
6820
|
+
resultInfo: Schema.optional(
|
|
6821
|
+
Schema.Union([
|
|
6822
|
+
Schema.Struct({
|
|
6823
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6824
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6825
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6826
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
6827
|
+
}).pipe(
|
|
6828
|
+
Schema.encodeKeys({
|
|
6829
|
+
count: "count",
|
|
6830
|
+
page: "page",
|
|
6831
|
+
perPage: "per_page",
|
|
6832
|
+
totalCount: "total_count",
|
|
6833
|
+
}),
|
|
6834
|
+
),
|
|
6835
|
+
Schema.Null,
|
|
6836
|
+
]),
|
|
6832
6837
|
),
|
|
6833
6838
|
}).pipe(
|
|
6834
6839
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -27723,12 +27728,12 @@ export interface ListSettingAccountViewsResponse {
|
|
|
27723
27728
|
name: string;
|
|
27724
27729
|
zones: string[];
|
|
27725
27730
|
}[];
|
|
27726
|
-
resultInfo
|
|
27731
|
+
resultInfo?: {
|
|
27727
27732
|
count?: number | null;
|
|
27728
27733
|
page?: number | null;
|
|
27729
27734
|
perPage?: number | null;
|
|
27730
27735
|
totalCount?: number | null;
|
|
27731
|
-
};
|
|
27736
|
+
} | null;
|
|
27732
27737
|
}
|
|
27733
27738
|
|
|
27734
27739
|
export const ListSettingAccountViewsResponse =
|
|
@@ -27750,18 +27755,25 @@ export const ListSettingAccountViewsResponse =
|
|
|
27750
27755
|
}),
|
|
27751
27756
|
),
|
|
27752
27757
|
),
|
|
27753
|
-
resultInfo: Schema.
|
|
27754
|
-
|
|
27755
|
-
|
|
27756
|
-
|
|
27757
|
-
|
|
27758
|
-
|
|
27759
|
-
|
|
27760
|
-
|
|
27761
|
-
|
|
27762
|
-
|
|
27763
|
-
|
|
27764
|
-
|
|
27758
|
+
resultInfo: Schema.optional(
|
|
27759
|
+
Schema.Union([
|
|
27760
|
+
Schema.Struct({
|
|
27761
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
27762
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
27763
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
27764
|
+
totalCount: Schema.optional(
|
|
27765
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
27766
|
+
),
|
|
27767
|
+
}).pipe(
|
|
27768
|
+
Schema.encodeKeys({
|
|
27769
|
+
count: "count",
|
|
27770
|
+
page: "page",
|
|
27771
|
+
perPage: "per_page",
|
|
27772
|
+
totalCount: "total_count",
|
|
27773
|
+
}),
|
|
27774
|
+
),
|
|
27775
|
+
Schema.Null,
|
|
27776
|
+
]),
|
|
27765
27777
|
),
|
|
27766
27778
|
}).pipe(
|
|
27767
27779
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -64,12 +64,12 @@ export interface ListNamespacesResponse {
|
|
|
64
64
|
script?: string | null;
|
|
65
65
|
useSqlite?: boolean | null;
|
|
66
66
|
}[];
|
|
67
|
-
resultInfo
|
|
67
|
+
resultInfo?: {
|
|
68
68
|
count?: number | null;
|
|
69
69
|
page?: number | null;
|
|
70
70
|
perPage?: number | null;
|
|
71
71
|
totalCount?: number | null;
|
|
72
|
-
};
|
|
72
|
+
} | null;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
@@ -91,18 +91,25 @@ export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
91
91
|
}),
|
|
92
92
|
),
|
|
93
93
|
),
|
|
94
|
-
resultInfo: Schema.
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
resultInfo: Schema.optional(
|
|
95
|
+
Schema.Union([
|
|
96
|
+
Schema.Struct({
|
|
97
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
98
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
99
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
100
|
+
totalCount: Schema.optional(
|
|
101
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
102
|
+
),
|
|
103
|
+
}).pipe(
|
|
104
|
+
Schema.encodeKeys({
|
|
105
|
+
count: "count",
|
|
106
|
+
page: "page",
|
|
107
|
+
perPage: "per_page",
|
|
108
|
+
totalCount: "total_count",
|
|
109
|
+
}),
|
|
110
|
+
),
|
|
111
|
+
Schema.Null,
|
|
112
|
+
]),
|
|
106
113
|
),
|
|
107
114
|
},
|
|
108
115
|
).pipe(
|
|
@@ -157,7 +164,7 @@ export const ListNamespaceObjectsRequest =
|
|
|
157
164
|
|
|
158
165
|
export interface ListNamespaceObjectsResponse {
|
|
159
166
|
result: { id?: string | null; hasStoredData?: boolean | null }[];
|
|
160
|
-
resultInfo
|
|
167
|
+
resultInfo?: { cursors?: { after?: string | null } | null } | null;
|
|
161
168
|
}
|
|
162
169
|
|
|
163
170
|
export const ListNamespaceObjectsResponse =
|
|
@@ -170,16 +177,23 @@ export const ListNamespaceObjectsResponse =
|
|
|
170
177
|
),
|
|
171
178
|
}),
|
|
172
179
|
),
|
|
173
|
-
resultInfo: Schema.
|
|
174
|
-
|
|
175
|
-
Schema.
|
|
176
|
-
Schema.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
180
|
+
resultInfo: Schema.optional(
|
|
181
|
+
Schema.Union([
|
|
182
|
+
Schema.Struct({
|
|
183
|
+
cursors: Schema.optional(
|
|
184
|
+
Schema.Union([
|
|
185
|
+
Schema.Struct({
|
|
186
|
+
after: Schema.optional(
|
|
187
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
188
|
+
),
|
|
189
|
+
}),
|
|
190
|
+
Schema.Null,
|
|
191
|
+
]),
|
|
192
|
+
),
|
|
193
|
+
}),
|
|
194
|
+
Schema.Null,
|
|
195
|
+
]),
|
|
196
|
+
),
|
|
183
197
|
}).pipe(
|
|
184
198
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
185
199
|
) as unknown as Schema.Schema<ListNamespaceObjectsResponse>;
|