@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
package/src/services/firewall.ts
CHANGED
|
@@ -16,18 +16,45 @@ import { type DefaultErrors } from "../errors.ts";
|
|
|
16
16
|
// AccessRule
|
|
17
17
|
// =============================================================================
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const GetAccessRuleBaseFields = {
|
|
20
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
21
|
+
} as const;
|
|
22
|
+
|
|
23
|
+
interface GetAccessRuleBaseRequest {
|
|
20
24
|
ruleId: string;
|
|
21
25
|
}
|
|
22
26
|
|
|
23
|
-
export
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
export interface GetAccessRuleForAccountRequest extends GetAccessRuleBaseRequest {
|
|
28
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
29
|
+
accountId: string;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export interface GetAccessRuleForZoneRequest extends GetAccessRuleBaseRequest {
|
|
33
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
34
|
+
zoneId: string;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export const GetAccessRuleForAccountRequest =
|
|
38
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
39
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
40
|
+
...GetAccessRuleBaseFields,
|
|
41
|
+
}).pipe(
|
|
42
|
+
T.Http({
|
|
43
|
+
method: "GET",
|
|
44
|
+
path: "/accounts/{account_id}/firewall/access_rules/rules/{ruleId}",
|
|
45
|
+
}),
|
|
46
|
+
) as unknown as Schema.Schema<GetAccessRuleForAccountRequest>;
|
|
47
|
+
|
|
48
|
+
export const GetAccessRuleForZoneRequest =
|
|
49
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
50
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
51
|
+
...GetAccessRuleBaseFields,
|
|
52
|
+
}).pipe(
|
|
53
|
+
T.Http({
|
|
54
|
+
method: "GET",
|
|
55
|
+
path: "/zones/{zone_id}/firewall/access_rules/rules/{ruleId}",
|
|
56
|
+
}),
|
|
57
|
+
) as unknown as Schema.Schema<GetAccessRuleForZoneRequest>;
|
|
31
58
|
|
|
32
59
|
export interface GetAccessRuleResponse {
|
|
33
60
|
/** The unique identifier of the IP Access rule. */
|
|
@@ -155,27 +182,63 @@ export const GetAccessRuleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
155
182
|
|
|
156
183
|
export type GetAccessRuleError = DefaultErrors;
|
|
157
184
|
|
|
158
|
-
export const
|
|
159
|
-
|
|
185
|
+
export const getAccessRuleForAccount: API.OperationMethod<
|
|
186
|
+
GetAccessRuleForAccountRequest,
|
|
160
187
|
GetAccessRuleResponse,
|
|
161
188
|
GetAccessRuleError,
|
|
162
189
|
Credentials | HttpClient.HttpClient
|
|
163
190
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
164
|
-
input:
|
|
191
|
+
input: GetAccessRuleForAccountRequest,
|
|
165
192
|
output: GetAccessRuleResponse,
|
|
166
193
|
errors: [],
|
|
167
194
|
}));
|
|
168
195
|
|
|
169
|
-
export
|
|
196
|
+
export const getAccessRuleForZone: API.OperationMethod<
|
|
197
|
+
GetAccessRuleForZoneRequest,
|
|
198
|
+
GetAccessRuleResponse,
|
|
199
|
+
GetAccessRuleError,
|
|
200
|
+
Credentials | HttpClient.HttpClient
|
|
201
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
202
|
+
input: GetAccessRuleForZoneRequest,
|
|
203
|
+
output: GetAccessRuleResponse,
|
|
204
|
+
errors: [],
|
|
205
|
+
}));
|
|
170
206
|
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
207
|
+
const ListAccessRulesBaseFields = {} as const;
|
|
208
|
+
|
|
209
|
+
interface ListAccessRulesBaseRequest {}
|
|
210
|
+
|
|
211
|
+
export interface ListAccessRulesForAccountRequest extends ListAccessRulesBaseRequest {
|
|
212
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
213
|
+
accountId: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export interface ListAccessRulesForZoneRequest extends ListAccessRulesBaseRequest {
|
|
217
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
218
|
+
zoneId: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export const ListAccessRulesForAccountRequest =
|
|
222
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
223
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
224
|
+
...ListAccessRulesBaseFields,
|
|
225
|
+
}).pipe(
|
|
226
|
+
T.Http({
|
|
227
|
+
method: "GET",
|
|
228
|
+
path: "/accounts/{account_id}/firewall/access_rules/rules",
|
|
229
|
+
}),
|
|
230
|
+
) as unknown as Schema.Schema<ListAccessRulesForAccountRequest>;
|
|
231
|
+
|
|
232
|
+
export const ListAccessRulesForZoneRequest =
|
|
233
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
234
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
235
|
+
...ListAccessRulesBaseFields,
|
|
236
|
+
}).pipe(
|
|
237
|
+
T.Http({
|
|
238
|
+
method: "GET",
|
|
239
|
+
path: "/zones/{zone_id}/firewall/access_rules/rules",
|
|
240
|
+
}),
|
|
241
|
+
) as unknown as Schema.Schema<ListAccessRulesForZoneRequest>;
|
|
179
242
|
|
|
180
243
|
export interface ListAccessRulesResponse {
|
|
181
244
|
result: {
|
|
@@ -208,12 +271,12 @@ export interface ListAccessRulesResponse {
|
|
|
208
271
|
type?: "user" | "organization" | null;
|
|
209
272
|
} | null;
|
|
210
273
|
}[];
|
|
211
|
-
resultInfo
|
|
274
|
+
resultInfo?: {
|
|
212
275
|
count?: number | null;
|
|
213
276
|
page?: number | null;
|
|
214
277
|
perPage?: number | null;
|
|
215
278
|
totalCount?: number | null;
|
|
216
|
-
};
|
|
279
|
+
} | null;
|
|
217
280
|
}
|
|
218
281
|
|
|
219
282
|
export const ListAccessRulesResponse =
|
|
@@ -302,18 +365,25 @@ export const ListAccessRulesResponse =
|
|
|
302
365
|
}),
|
|
303
366
|
),
|
|
304
367
|
),
|
|
305
|
-
resultInfo: Schema.
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
368
|
+
resultInfo: Schema.optional(
|
|
369
|
+
Schema.Union([
|
|
370
|
+
Schema.Struct({
|
|
371
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
372
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
373
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
374
|
+
totalCount: Schema.optional(
|
|
375
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
376
|
+
),
|
|
377
|
+
}).pipe(
|
|
378
|
+
Schema.encodeKeys({
|
|
379
|
+
count: "count",
|
|
380
|
+
page: "page",
|
|
381
|
+
perPage: "per_page",
|
|
382
|
+
totalCount: "total_count",
|
|
383
|
+
}),
|
|
384
|
+
),
|
|
385
|
+
Schema.Null,
|
|
386
|
+
]),
|
|
317
387
|
),
|
|
318
388
|
}).pipe(
|
|
319
389
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -321,13 +391,13 @@ export const ListAccessRulesResponse =
|
|
|
321
391
|
|
|
322
392
|
export type ListAccessRulesError = DefaultErrors;
|
|
323
393
|
|
|
324
|
-
export const
|
|
325
|
-
|
|
394
|
+
export const listAccessRulesForAccount: API.PaginatedOperationMethod<
|
|
395
|
+
ListAccessRulesForAccountRequest,
|
|
326
396
|
ListAccessRulesResponse,
|
|
327
397
|
ListAccessRulesError,
|
|
328
398
|
Credentials | HttpClient.HttpClient
|
|
329
399
|
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
330
|
-
input:
|
|
400
|
+
input: ListAccessRulesForAccountRequest,
|
|
331
401
|
output: ListAccessRulesResponse,
|
|
332
402
|
errors: [],
|
|
333
403
|
pagination: {
|
|
@@ -339,11 +409,58 @@ export const listAccessRules: API.PaginatedOperationMethod<
|
|
|
339
409
|
} as const,
|
|
340
410
|
}));
|
|
341
411
|
|
|
342
|
-
export
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
412
|
+
export const listAccessRulesForZone: API.PaginatedOperationMethod<
|
|
413
|
+
ListAccessRulesForZoneRequest,
|
|
414
|
+
ListAccessRulesResponse,
|
|
415
|
+
ListAccessRulesError,
|
|
416
|
+
Credentials | HttpClient.HttpClient
|
|
417
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
418
|
+
input: ListAccessRulesForZoneRequest,
|
|
419
|
+
output: ListAccessRulesResponse,
|
|
420
|
+
errors: [],
|
|
421
|
+
pagination: {
|
|
422
|
+
mode: "page",
|
|
423
|
+
inputToken: "page",
|
|
424
|
+
outputToken: "resultInfo.page",
|
|
425
|
+
items: "result",
|
|
426
|
+
pageSize: "perPage",
|
|
427
|
+
} as const,
|
|
428
|
+
}));
|
|
429
|
+
|
|
430
|
+
const CreateAccessRuleBaseFields = {
|
|
431
|
+
configuration: Schema.Union([
|
|
432
|
+
Schema.Struct({
|
|
433
|
+
target: Schema.optional(Schema.Literal("ip")),
|
|
434
|
+
value: Schema.optional(Schema.String),
|
|
435
|
+
}),
|
|
436
|
+
Schema.Struct({
|
|
437
|
+
target: Schema.optional(Schema.Literal("ip6")),
|
|
438
|
+
value: Schema.optional(Schema.String),
|
|
439
|
+
}),
|
|
440
|
+
Schema.Struct({
|
|
441
|
+
target: Schema.optional(Schema.Literal("ip_range")),
|
|
442
|
+
value: Schema.optional(Schema.String),
|
|
443
|
+
}),
|
|
444
|
+
Schema.Struct({
|
|
445
|
+
target: Schema.optional(Schema.Literal("asn")),
|
|
446
|
+
value: Schema.optional(Schema.String),
|
|
447
|
+
}),
|
|
448
|
+
Schema.Struct({
|
|
449
|
+
target: Schema.optional(Schema.Literal("country")),
|
|
450
|
+
value: Schema.optional(Schema.String),
|
|
451
|
+
}),
|
|
452
|
+
]),
|
|
453
|
+
mode: Schema.Literals([
|
|
454
|
+
"block",
|
|
455
|
+
"challenge",
|
|
456
|
+
"whitelist",
|
|
457
|
+
"js_challenge",
|
|
458
|
+
"managed_challenge",
|
|
459
|
+
]),
|
|
460
|
+
notes: Schema.optional(Schema.String),
|
|
461
|
+
} as const;
|
|
462
|
+
|
|
463
|
+
interface CreateAccessRuleBaseRequest {
|
|
347
464
|
/** Body param: The rule configuration. */
|
|
348
465
|
configuration:
|
|
349
466
|
| { target?: "ip"; value?: string }
|
|
@@ -362,46 +479,37 @@ export interface CreateAccessRuleRequest {
|
|
|
362
479
|
notes?: string;
|
|
363
480
|
}
|
|
364
481
|
|
|
365
|
-
export
|
|
482
|
+
export interface CreateAccessRuleForAccountRequest extends CreateAccessRuleBaseRequest {
|
|
483
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
484
|
+
accountId: string;
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
export interface CreateAccessRuleForZoneRequest extends CreateAccessRuleBaseRequest {
|
|
488
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
489
|
+
zoneId: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export const CreateAccessRuleForAccountRequest =
|
|
366
493
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
367
494
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
495
|
+
...CreateAccessRuleBaseFields,
|
|
496
|
+
}).pipe(
|
|
497
|
+
T.Http({
|
|
498
|
+
method: "POST",
|
|
499
|
+
path: "/accounts/{account_id}/firewall/access_rules/rules",
|
|
500
|
+
}),
|
|
501
|
+
) as unknown as Schema.Schema<CreateAccessRuleForAccountRequest>;
|
|
502
|
+
|
|
503
|
+
export const CreateAccessRuleForZoneRequest =
|
|
504
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
368
505
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
369
|
-
|
|
370
|
-
Schema.Struct({
|
|
371
|
-
target: Schema.optional(Schema.Literal("ip")),
|
|
372
|
-
value: Schema.optional(Schema.String),
|
|
373
|
-
}),
|
|
374
|
-
Schema.Struct({
|
|
375
|
-
target: Schema.optional(Schema.Literal("ip6")),
|
|
376
|
-
value: Schema.optional(Schema.String),
|
|
377
|
-
}),
|
|
378
|
-
Schema.Struct({
|
|
379
|
-
target: Schema.optional(Schema.Literal("ip_range")),
|
|
380
|
-
value: Schema.optional(Schema.String),
|
|
381
|
-
}),
|
|
382
|
-
Schema.Struct({
|
|
383
|
-
target: Schema.optional(Schema.Literal("asn")),
|
|
384
|
-
value: Schema.optional(Schema.String),
|
|
385
|
-
}),
|
|
386
|
-
Schema.Struct({
|
|
387
|
-
target: Schema.optional(Schema.Literal("country")),
|
|
388
|
-
value: Schema.optional(Schema.String),
|
|
389
|
-
}),
|
|
390
|
-
]),
|
|
391
|
-
mode: Schema.Literals([
|
|
392
|
-
"block",
|
|
393
|
-
"challenge",
|
|
394
|
-
"whitelist",
|
|
395
|
-
"js_challenge",
|
|
396
|
-
"managed_challenge",
|
|
397
|
-
]),
|
|
398
|
-
notes: Schema.optional(Schema.String),
|
|
506
|
+
...CreateAccessRuleBaseFields,
|
|
399
507
|
}).pipe(
|
|
400
508
|
T.Http({
|
|
401
509
|
method: "POST",
|
|
402
|
-
path: "/
|
|
510
|
+
path: "/zones/{zone_id}/firewall/access_rules/rules",
|
|
403
511
|
}),
|
|
404
|
-
) as unknown as Schema.Schema<
|
|
512
|
+
) as unknown as Schema.Schema<CreateAccessRuleForZoneRequest>;
|
|
405
513
|
|
|
406
514
|
export interface CreateAccessRuleResponse {
|
|
407
515
|
/** The unique identifier of the IP Access rule. */
|
|
@@ -530,23 +638,64 @@ export const CreateAccessRuleResponse =
|
|
|
530
638
|
|
|
531
639
|
export type CreateAccessRuleError = DefaultErrors;
|
|
532
640
|
|
|
533
|
-
export const
|
|
534
|
-
|
|
641
|
+
export const createAccessRuleForAccount: API.OperationMethod<
|
|
642
|
+
CreateAccessRuleForAccountRequest,
|
|
535
643
|
CreateAccessRuleResponse,
|
|
536
644
|
CreateAccessRuleError,
|
|
537
645
|
Credentials | HttpClient.HttpClient
|
|
538
646
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
539
|
-
input:
|
|
647
|
+
input: CreateAccessRuleForAccountRequest,
|
|
540
648
|
output: CreateAccessRuleResponse,
|
|
541
649
|
errors: [],
|
|
542
650
|
}));
|
|
543
651
|
|
|
544
|
-
export
|
|
652
|
+
export const createAccessRuleForZone: API.OperationMethod<
|
|
653
|
+
CreateAccessRuleForZoneRequest,
|
|
654
|
+
CreateAccessRuleResponse,
|
|
655
|
+
CreateAccessRuleError,
|
|
656
|
+
Credentials | HttpClient.HttpClient
|
|
657
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
658
|
+
input: CreateAccessRuleForZoneRequest,
|
|
659
|
+
output: CreateAccessRuleResponse,
|
|
660
|
+
errors: [],
|
|
661
|
+
}));
|
|
662
|
+
|
|
663
|
+
const PatchAccessRuleBaseFields = {
|
|
664
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
665
|
+
configuration: Schema.Union([
|
|
666
|
+
Schema.Struct({
|
|
667
|
+
target: Schema.optional(Schema.Literal("ip")),
|
|
668
|
+
value: Schema.optional(Schema.String),
|
|
669
|
+
}),
|
|
670
|
+
Schema.Struct({
|
|
671
|
+
target: Schema.optional(Schema.Literal("ip6")),
|
|
672
|
+
value: Schema.optional(Schema.String),
|
|
673
|
+
}),
|
|
674
|
+
Schema.Struct({
|
|
675
|
+
target: Schema.optional(Schema.Literal("ip_range")),
|
|
676
|
+
value: Schema.optional(Schema.String),
|
|
677
|
+
}),
|
|
678
|
+
Schema.Struct({
|
|
679
|
+
target: Schema.optional(Schema.Literal("asn")),
|
|
680
|
+
value: Schema.optional(Schema.String),
|
|
681
|
+
}),
|
|
682
|
+
Schema.Struct({
|
|
683
|
+
target: Schema.optional(Schema.Literal("country")),
|
|
684
|
+
value: Schema.optional(Schema.String),
|
|
685
|
+
}),
|
|
686
|
+
]),
|
|
687
|
+
mode: Schema.Literals([
|
|
688
|
+
"block",
|
|
689
|
+
"challenge",
|
|
690
|
+
"whitelist",
|
|
691
|
+
"js_challenge",
|
|
692
|
+
"managed_challenge",
|
|
693
|
+
]),
|
|
694
|
+
notes: Schema.optional(Schema.String),
|
|
695
|
+
} as const;
|
|
696
|
+
|
|
697
|
+
interface PatchAccessRuleBaseRequest {
|
|
545
698
|
ruleId: string;
|
|
546
|
-
/** Path param: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID. */
|
|
547
|
-
accountId?: string;
|
|
548
|
-
/** Path param: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. */
|
|
549
|
-
zoneId?: string;
|
|
550
699
|
/** Body param: The rule configuration. */
|
|
551
700
|
configuration:
|
|
552
701
|
| { target?: "ip"; value?: string }
|
|
@@ -565,48 +714,37 @@ export interface PatchAccessRuleRequest {
|
|
|
565
714
|
notes?: string;
|
|
566
715
|
}
|
|
567
716
|
|
|
568
|
-
export
|
|
569
|
-
|
|
570
|
-
|
|
717
|
+
export interface PatchAccessRuleForAccountRequest extends PatchAccessRuleBaseRequest {
|
|
718
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
719
|
+
accountId: string;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
export interface PatchAccessRuleForZoneRequest extends PatchAccessRuleBaseRequest {
|
|
723
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
724
|
+
zoneId: string;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
export const PatchAccessRuleForAccountRequest =
|
|
728
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
571
729
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
730
|
+
...PatchAccessRuleBaseFields,
|
|
731
|
+
}).pipe(
|
|
732
|
+
T.Http({
|
|
733
|
+
method: "PATCH",
|
|
734
|
+
path: "/accounts/{account_id}/firewall/access_rules/rules/{ruleId}",
|
|
735
|
+
}),
|
|
736
|
+
) as unknown as Schema.Schema<PatchAccessRuleForAccountRequest>;
|
|
737
|
+
|
|
738
|
+
export const PatchAccessRuleForZoneRequest =
|
|
739
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
572
740
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
value: Schema.optional(Schema.String),
|
|
581
|
-
}),
|
|
582
|
-
Schema.Struct({
|
|
583
|
-
target: Schema.optional(Schema.Literal("ip_range")),
|
|
584
|
-
value: Schema.optional(Schema.String),
|
|
585
|
-
}),
|
|
586
|
-
Schema.Struct({
|
|
587
|
-
target: Schema.optional(Schema.Literal("asn")),
|
|
588
|
-
value: Schema.optional(Schema.String),
|
|
589
|
-
}),
|
|
590
|
-
Schema.Struct({
|
|
591
|
-
target: Schema.optional(Schema.Literal("country")),
|
|
592
|
-
value: Schema.optional(Schema.String),
|
|
593
|
-
}),
|
|
594
|
-
]),
|
|
595
|
-
mode: Schema.Literals([
|
|
596
|
-
"block",
|
|
597
|
-
"challenge",
|
|
598
|
-
"whitelist",
|
|
599
|
-
"js_challenge",
|
|
600
|
-
"managed_challenge",
|
|
601
|
-
]),
|
|
602
|
-
notes: Schema.optional(Schema.String),
|
|
603
|
-
},
|
|
604
|
-
).pipe(
|
|
605
|
-
T.Http({
|
|
606
|
-
method: "PATCH",
|
|
607
|
-
path: "/{accountOrZone}/{accountOrZoneId}/firewall/access_rules/rules/{ruleId}",
|
|
608
|
-
}),
|
|
609
|
-
) as unknown as Schema.Schema<PatchAccessRuleRequest>;
|
|
741
|
+
...PatchAccessRuleBaseFields,
|
|
742
|
+
}).pipe(
|
|
743
|
+
T.Http({
|
|
744
|
+
method: "PATCH",
|
|
745
|
+
path: "/zones/{zone_id}/firewall/access_rules/rules/{ruleId}",
|
|
746
|
+
}),
|
|
747
|
+
) as unknown as Schema.Schema<PatchAccessRuleForZoneRequest>;
|
|
610
748
|
|
|
611
749
|
export interface PatchAccessRuleResponse {
|
|
612
750
|
/** The unique identifier of the IP Access rule. */
|
|
@@ -735,30 +873,67 @@ export const PatchAccessRuleResponse =
|
|
|
735
873
|
|
|
736
874
|
export type PatchAccessRuleError = DefaultErrors;
|
|
737
875
|
|
|
738
|
-
export const
|
|
739
|
-
|
|
876
|
+
export const patchAccessRuleForAccount: API.OperationMethod<
|
|
877
|
+
PatchAccessRuleForAccountRequest,
|
|
740
878
|
PatchAccessRuleResponse,
|
|
741
879
|
PatchAccessRuleError,
|
|
742
880
|
Credentials | HttpClient.HttpClient
|
|
743
881
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
744
|
-
input:
|
|
882
|
+
input: PatchAccessRuleForAccountRequest,
|
|
745
883
|
output: PatchAccessRuleResponse,
|
|
746
884
|
errors: [],
|
|
747
885
|
}));
|
|
748
886
|
|
|
749
|
-
export
|
|
887
|
+
export const patchAccessRuleForZone: API.OperationMethod<
|
|
888
|
+
PatchAccessRuleForZoneRequest,
|
|
889
|
+
PatchAccessRuleResponse,
|
|
890
|
+
PatchAccessRuleError,
|
|
891
|
+
Credentials | HttpClient.HttpClient
|
|
892
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
893
|
+
input: PatchAccessRuleForZoneRequest,
|
|
894
|
+
output: PatchAccessRuleResponse,
|
|
895
|
+
errors: [],
|
|
896
|
+
}));
|
|
897
|
+
|
|
898
|
+
const DeleteAccessRuleBaseFields = {
|
|
899
|
+
ruleId: Schema.String.pipe(T.HttpPath("ruleId")),
|
|
900
|
+
} as const;
|
|
901
|
+
|
|
902
|
+
interface DeleteAccessRuleBaseRequest {
|
|
750
903
|
ruleId: string;
|
|
751
904
|
}
|
|
752
905
|
|
|
753
|
-
export
|
|
906
|
+
export interface DeleteAccessRuleForAccountRequest extends DeleteAccessRuleBaseRequest {
|
|
907
|
+
/** Path param: The Account ID to use for this endpoint. */
|
|
908
|
+
accountId: string;
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
export interface DeleteAccessRuleForZoneRequest extends DeleteAccessRuleBaseRequest {
|
|
912
|
+
/** Path param: The Zone ID to use for this endpoint. */
|
|
913
|
+
zoneId: string;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
export const DeleteAccessRuleForAccountRequest =
|
|
754
917
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
755
|
-
|
|
918
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
919
|
+
...DeleteAccessRuleBaseFields,
|
|
920
|
+
}).pipe(
|
|
921
|
+
T.Http({
|
|
922
|
+
method: "DELETE",
|
|
923
|
+
path: "/accounts/{account_id}/firewall/access_rules/rules/{ruleId}",
|
|
924
|
+
}),
|
|
925
|
+
) as unknown as Schema.Schema<DeleteAccessRuleForAccountRequest>;
|
|
926
|
+
|
|
927
|
+
export const DeleteAccessRuleForZoneRequest =
|
|
928
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
929
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
930
|
+
...DeleteAccessRuleBaseFields,
|
|
756
931
|
}).pipe(
|
|
757
932
|
T.Http({
|
|
758
933
|
method: "DELETE",
|
|
759
|
-
path: "/
|
|
934
|
+
path: "/zones/{zone_id}/firewall/access_rules/rules/{ruleId}",
|
|
760
935
|
}),
|
|
761
|
-
) as unknown as Schema.Schema<
|
|
936
|
+
) as unknown as Schema.Schema<DeleteAccessRuleForZoneRequest>;
|
|
762
937
|
|
|
763
938
|
export interface DeleteAccessRuleResponse {
|
|
764
939
|
/** Defines an identifier. */
|
|
@@ -774,13 +949,24 @@ export const DeleteAccessRuleResponse =
|
|
|
774
949
|
|
|
775
950
|
export type DeleteAccessRuleError = DefaultErrors;
|
|
776
951
|
|
|
777
|
-
export const
|
|
778
|
-
|
|
952
|
+
export const deleteAccessRuleForAccount: API.OperationMethod<
|
|
953
|
+
DeleteAccessRuleForAccountRequest,
|
|
779
954
|
DeleteAccessRuleResponse,
|
|
780
955
|
DeleteAccessRuleError,
|
|
781
956
|
Credentials | HttpClient.HttpClient
|
|
782
957
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
783
|
-
input:
|
|
958
|
+
input: DeleteAccessRuleForAccountRequest,
|
|
959
|
+
output: DeleteAccessRuleResponse,
|
|
960
|
+
errors: [],
|
|
961
|
+
}));
|
|
962
|
+
|
|
963
|
+
export const deleteAccessRuleForZone: API.OperationMethod<
|
|
964
|
+
DeleteAccessRuleForZoneRequest,
|
|
965
|
+
DeleteAccessRuleResponse,
|
|
966
|
+
DeleteAccessRuleError,
|
|
967
|
+
Credentials | HttpClient.HttpClient
|
|
968
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
969
|
+
input: DeleteAccessRuleForZoneRequest,
|
|
784
970
|
output: DeleteAccessRuleResponse,
|
|
785
971
|
errors: [],
|
|
786
972
|
}));
|
|
@@ -936,12 +1122,12 @@ export interface ListLockdownsResponse {
|
|
|
936
1122
|
paused: boolean;
|
|
937
1123
|
urls: string[];
|
|
938
1124
|
}[];
|
|
939
|
-
resultInfo
|
|
1125
|
+
resultInfo?: {
|
|
940
1126
|
count?: number | null;
|
|
941
1127
|
page?: number | null;
|
|
942
1128
|
perPage?: number | null;
|
|
943
1129
|
totalCount?: number | null;
|
|
944
|
-
};
|
|
1130
|
+
} | null;
|
|
945
1131
|
}
|
|
946
1132
|
|
|
947
1133
|
export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -981,18 +1167,23 @@ export const ListLockdownsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
981
1167
|
}),
|
|
982
1168
|
),
|
|
983
1169
|
),
|
|
984
|
-
resultInfo: Schema.
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
1170
|
+
resultInfo: Schema.optional(
|
|
1171
|
+
Schema.Union([
|
|
1172
|
+
Schema.Struct({
|
|
1173
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1174
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1175
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1176
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1177
|
+
}).pipe(
|
|
1178
|
+
Schema.encodeKeys({
|
|
1179
|
+
count: "count",
|
|
1180
|
+
page: "page",
|
|
1181
|
+
perPage: "per_page",
|
|
1182
|
+
totalCount: "total_count",
|
|
1183
|
+
}),
|
|
1184
|
+
),
|
|
1185
|
+
Schema.Null,
|
|
1186
|
+
]),
|
|
996
1187
|
),
|
|
997
1188
|
}).pipe(
|
|
998
1189
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -1624,12 +1815,12 @@ export interface ListRulesResponse {
|
|
|
1624
1815
|
| null;
|
|
1625
1816
|
ref?: string | null;
|
|
1626
1817
|
}[];
|
|
1627
|
-
resultInfo
|
|
1818
|
+
resultInfo?: {
|
|
1628
1819
|
count?: number | null;
|
|
1629
1820
|
page?: number | null;
|
|
1630
1821
|
perPage?: number | null;
|
|
1631
1822
|
totalCount?: number | null;
|
|
1632
|
-
};
|
|
1823
|
+
} | null;
|
|
1633
1824
|
}
|
|
1634
1825
|
|
|
1635
1826
|
export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1696,18 +1887,23 @@ export const ListRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1696
1887
|
ref: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1697
1888
|
}),
|
|
1698
1889
|
),
|
|
1699
|
-
resultInfo: Schema.
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1890
|
+
resultInfo: Schema.optional(
|
|
1891
|
+
Schema.Union([
|
|
1892
|
+
Schema.Struct({
|
|
1893
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1894
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1895
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1896
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1897
|
+
}).pipe(
|
|
1898
|
+
Schema.encodeKeys({
|
|
1899
|
+
count: "count",
|
|
1900
|
+
page: "page",
|
|
1901
|
+
perPage: "per_page",
|
|
1902
|
+
totalCount: "total_count",
|
|
1903
|
+
}),
|
|
1904
|
+
),
|
|
1905
|
+
Schema.Null,
|
|
1906
|
+
]),
|
|
1711
1907
|
),
|
|
1712
1908
|
}).pipe(
|
|
1713
1909
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -2744,12 +2940,12 @@ export interface ListUaRulesResponse {
|
|
|
2744
2940
|
mode?: "block" | "challenge" | "js_challenge" | "managed_challenge" | null;
|
|
2745
2941
|
paused?: boolean | null;
|
|
2746
2942
|
}[];
|
|
2747
|
-
resultInfo
|
|
2943
|
+
resultInfo?: {
|
|
2748
2944
|
count?: number | null;
|
|
2749
2945
|
page?: number | null;
|
|
2750
2946
|
perPage?: number | null;
|
|
2751
2947
|
totalCount?: number | null;
|
|
2752
|
-
};
|
|
2948
|
+
} | null;
|
|
2753
2949
|
}
|
|
2754
2950
|
|
|
2755
2951
|
export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2780,18 +2976,23 @@ export const ListUaRulesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2780
2976
|
paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2781
2977
|
}),
|
|
2782
2978
|
),
|
|
2783
|
-
resultInfo: Schema.
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2979
|
+
resultInfo: Schema.optional(
|
|
2980
|
+
Schema.Union([
|
|
2981
|
+
Schema.Struct({
|
|
2982
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2983
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2984
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2985
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2986
|
+
}).pipe(
|
|
2987
|
+
Schema.encodeKeys({
|
|
2988
|
+
count: "count",
|
|
2989
|
+
page: "page",
|
|
2990
|
+
perPage: "per_page",
|
|
2991
|
+
totalCount: "total_count",
|
|
2992
|
+
}),
|
|
2993
|
+
),
|
|
2994
|
+
Schema.Null,
|
|
2995
|
+
]),
|
|
2795
2996
|
),
|
|
2796
2997
|
}).pipe(
|
|
2797
2998
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -3324,12 +3525,12 @@ export interface ListWafOverridesResponse {
|
|
|
3324
3525
|
rules?: Record<string, unknown> | null;
|
|
3325
3526
|
urls?: string[] | null;
|
|
3326
3527
|
}[];
|
|
3327
|
-
resultInfo
|
|
3528
|
+
resultInfo?: {
|
|
3328
3529
|
count?: number | null;
|
|
3329
3530
|
page?: number | null;
|
|
3330
3531
|
perPage?: number | null;
|
|
3331
3532
|
totalCount?: number | null;
|
|
3332
|
-
};
|
|
3533
|
+
} | null;
|
|
3333
3534
|
}
|
|
3334
3535
|
|
|
3335
3536
|
export const ListWafOverridesResponse =
|
|
@@ -3437,18 +3638,25 @@ export const ListWafOverridesResponse =
|
|
|
3437
3638
|
}),
|
|
3438
3639
|
),
|
|
3439
3640
|
),
|
|
3440
|
-
resultInfo: Schema.
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3641
|
+
resultInfo: Schema.optional(
|
|
3642
|
+
Schema.Union([
|
|
3643
|
+
Schema.Struct({
|
|
3644
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3645
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3646
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
3647
|
+
totalCount: Schema.optional(
|
|
3648
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
3649
|
+
),
|
|
3650
|
+
}).pipe(
|
|
3651
|
+
Schema.encodeKeys({
|
|
3652
|
+
count: "count",
|
|
3653
|
+
page: "page",
|
|
3654
|
+
perPage: "per_page",
|
|
3655
|
+
totalCount: "total_count",
|
|
3656
|
+
}),
|
|
3657
|
+
),
|
|
3658
|
+
Schema.Null,
|
|
3659
|
+
]),
|
|
3452
3660
|
),
|
|
3453
3661
|
}).pipe(
|
|
3454
3662
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -4065,29 +4273,36 @@ export const ListWafPackagesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
4065
4273
|
|
|
4066
4274
|
export interface ListWafPackagesResponse {
|
|
4067
4275
|
result: unknown[];
|
|
4068
|
-
resultInfo
|
|
4276
|
+
resultInfo?: {
|
|
4069
4277
|
count?: number | null;
|
|
4070
4278
|
page?: number | null;
|
|
4071
4279
|
perPage?: number | null;
|
|
4072
4280
|
totalCount?: number | null;
|
|
4073
|
-
};
|
|
4281
|
+
} | null;
|
|
4074
4282
|
}
|
|
4075
4283
|
|
|
4076
4284
|
export const ListWafPackagesResponse =
|
|
4077
4285
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4078
4286
|
result: Schema.Array(Schema.Unknown),
|
|
4079
|
-
resultInfo: Schema.
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4287
|
+
resultInfo: Schema.optional(
|
|
4288
|
+
Schema.Union([
|
|
4289
|
+
Schema.Struct({
|
|
4290
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4291
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4292
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4293
|
+
totalCount: Schema.optional(
|
|
4294
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
4295
|
+
),
|
|
4296
|
+
}).pipe(
|
|
4297
|
+
Schema.encodeKeys({
|
|
4298
|
+
count: "count",
|
|
4299
|
+
page: "page",
|
|
4300
|
+
perPage: "per_page",
|
|
4301
|
+
totalCount: "total_count",
|
|
4302
|
+
}),
|
|
4303
|
+
),
|
|
4304
|
+
Schema.Null,
|
|
4305
|
+
]),
|
|
4091
4306
|
),
|
|
4092
4307
|
}).pipe(
|
|
4093
4308
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -4214,12 +4429,12 @@ export interface ListWafPackageGroupsResponse {
|
|
|
4214
4429
|
modifiedRulesCount?: number | null;
|
|
4215
4430
|
packageId?: string | null;
|
|
4216
4431
|
}[];
|
|
4217
|
-
resultInfo
|
|
4432
|
+
resultInfo?: {
|
|
4218
4433
|
count?: number | null;
|
|
4219
4434
|
page?: number | null;
|
|
4220
4435
|
perPage?: number | null;
|
|
4221
4436
|
totalCount?: number | null;
|
|
4222
|
-
};
|
|
4437
|
+
} | null;
|
|
4223
4438
|
}
|
|
4224
4439
|
|
|
4225
4440
|
export const ListWafPackageGroupsResponse =
|
|
@@ -4254,18 +4469,25 @@ export const ListWafPackageGroupsResponse =
|
|
|
4254
4469
|
}),
|
|
4255
4470
|
),
|
|
4256
4471
|
),
|
|
4257
|
-
resultInfo: Schema.
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4472
|
+
resultInfo: Schema.optional(
|
|
4473
|
+
Schema.Union([
|
|
4474
|
+
Schema.Struct({
|
|
4475
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4476
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4477
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4478
|
+
totalCount: Schema.optional(
|
|
4479
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
4480
|
+
),
|
|
4481
|
+
}).pipe(
|
|
4482
|
+
Schema.encodeKeys({
|
|
4483
|
+
count: "count",
|
|
4484
|
+
page: "page",
|
|
4485
|
+
perPage: "per_page",
|
|
4486
|
+
totalCount: "total_count",
|
|
4487
|
+
}),
|
|
4488
|
+
),
|
|
4489
|
+
Schema.Null,
|
|
4490
|
+
]),
|
|
4269
4491
|
),
|
|
4270
4492
|
}).pipe(
|
|
4271
4493
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
@@ -4456,12 +4678,12 @@ export interface ListWafPackageRulesResponse {
|
|
|
4456
4678
|
priority: string;
|
|
4457
4679
|
}
|
|
4458
4680
|
)[];
|
|
4459
|
-
resultInfo
|
|
4681
|
+
resultInfo?: {
|
|
4460
4682
|
count?: number | null;
|
|
4461
4683
|
page?: number | null;
|
|
4462
4684
|
perPage?: number | null;
|
|
4463
4685
|
totalCount?: number | null;
|
|
4464
|
-
};
|
|
4686
|
+
} | null;
|
|
4465
4687
|
}
|
|
4466
4688
|
|
|
4467
4689
|
export const ListWafPackageRulesResponse =
|
|
@@ -4535,18 +4757,25 @@ export const ListWafPackageRulesResponse =
|
|
|
4535
4757
|
),
|
|
4536
4758
|
]),
|
|
4537
4759
|
),
|
|
4538
|
-
resultInfo: Schema.
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4760
|
+
resultInfo: Schema.optional(
|
|
4761
|
+
Schema.Union([
|
|
4762
|
+
Schema.Struct({
|
|
4763
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4764
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4765
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
4766
|
+
totalCount: Schema.optional(
|
|
4767
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
4768
|
+
),
|
|
4769
|
+
}).pipe(
|
|
4770
|
+
Schema.encodeKeys({
|
|
4771
|
+
count: "count",
|
|
4772
|
+
page: "page",
|
|
4773
|
+
perPage: "per_page",
|
|
4774
|
+
totalCount: "total_count",
|
|
4775
|
+
}),
|
|
4776
|
+
),
|
|
4777
|
+
Schema.Null,
|
|
4778
|
+
]),
|
|
4550
4779
|
),
|
|
4551
4780
|
}).pipe(
|
|
4552
4781
|
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|