@vercel/sdk 1.6.3 → 1.6.5
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/README.md +2 -0
- package/bin/mcp-server.js +3517 -1245
- package/bin/mcp-server.js.map +29 -26
- package/docs/sdks/edgeconfig/README.md +2 -6
- package/docs/sdks/marketplace/README.md +2 -6
- package/docs/sdks/security/README.md +90 -0
- package/docs/sdks/webhooks/README.md +2 -6
- package/esm/__tests__/deployments.test.js +16 -1
- package/esm/__tests__/deployments.test.js.map +1 -1
- package/esm/__tests__/environment.test.js +3 -0
- package/esm/__tests__/environment.test.js.map +1 -1
- package/esm/__tests__/marketplace.test.js +7 -2
- package/esm/__tests__/marketplace.test.js.map +1 -1
- package/esm/__tests__/projects.test.js +4 -4
- package/esm/__tests__/projects.test.js.map +1 -1
- package/esm/__tests__/security.test.js +174 -3
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/projectsCreateProject.js +2 -2
- package/esm/funcs/projectsCreateProject.js.map +1 -1
- package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
- package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
- package/esm/funcs/securityPutFirewallConfig.js +88 -0
- package/esm/funcs/securityPutFirewallConfig.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +3 -1
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts +7 -0
- package/esm/mcp-server/tools/securityPutFirewallConfig.d.ts.map +1 -0
- package/esm/mcp-server/tools/securityPutFirewallConfig.js +28 -0
- package/esm/mcp-server/tools/securityPutFirewallConfig.js.map +1 -0
- package/esm/models/authtoken.d.ts +6 -0
- package/esm/models/authtoken.d.ts.map +1 -1
- package/esm/models/authtoken.js +2 -0
- package/esm/models/authtoken.js.map +1 -1
- package/esm/models/authuser.d.ts +46 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +28 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +274 -73
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +270 -72
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +274 -73
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +270 -72
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createprojectenvop.d.ts +12 -18
- package/esm/models/createprojectenvop.d.ts.map +1 -1
- package/esm/models/createprojectenvop.js +12 -12
- package/esm/models/createprojectenvop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +175 -13
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +157 -6
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/editprojectenvop.d.ts +4 -7
- package/esm/models/editprojectenvop.d.ts.map +1 -1
- package/esm/models/editprojectenvop.js +4 -4
- package/esm/models/editprojectenvop.js.map +1 -1
- package/esm/models/filterprojectenvsop.d.ts +18 -27
- package/esm/models/filterprojectenvsop.d.ts.map +1 -1
- package/esm/models/filterprojectenvsop.js +18 -18
- package/esm/models/filterprojectenvsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +574 -172
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +567 -171
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getfirewallconfigop.d.ts +214 -214
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +210 -231
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/getprojectdomainsop.d.ts +198 -36
- package/esm/models/getprojectdomainsop.d.ts.map +1 -1
- package/esm/models/getprojectdomainsop.js +193 -32
- package/esm/models/getprojectdomainsop.js.map +1 -1
- package/esm/models/getprojectenvop.d.ts +10 -16
- package/esm/models/getprojectenvop.d.ts.map +1 -1
- package/esm/models/getprojectenvop.js +10 -10
- package/esm/models/getprojectenvop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +175 -13
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +156 -6
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +31 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js +27 -0
- package/esm/models/getv9projectsidornamecustomenvironmentsop.js.map +1 -1
- package/esm/models/putfirewallconfigop.d.ts +2901 -0
- package/esm/models/putfirewallconfigop.d.ts.map +1 -0
- package/esm/models/putfirewallconfigop.js +2383 -0
- package/esm/models/putfirewallconfigop.js.map +1 -0
- package/esm/models/removeprojectenvop.d.ts +18 -27
- package/esm/models/removeprojectenvop.d.ts.map +1 -1
- package/esm/models/removeprojectenvop.js +18 -18
- package/esm/models/removeprojectenvop.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +323 -323
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +379 -357
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +183 -21
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +172 -18
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +175 -13
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +157 -6
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +46 -19
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +34 -10
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/security.d.ts +8 -0
- package/esm/sdk/security.d.ts.map +1 -1
- package/esm/sdk/security.js +10 -0
- package/esm/sdk/security.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/__tests__/deployments.test.ts +16 -1
- package/src/__tests__/environment.test.ts +3 -0
- package/src/__tests__/marketplace.test.ts +7 -2
- package/src/__tests__/projects.test.ts +4 -4
- package/src/__tests__/security.test.ts +176 -5
- package/src/funcs/projectsCreateProject.ts +2 -2
- package/src/funcs/securityPutFirewallConfig.ts +194 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
- package/src/models/authtoken.ts +2 -0
- package/src/models/authuser.ts +52 -0
- package/src/models/canceldeploymentop.ts +591 -148
- package/src/models/createdeploymentop.ts +616 -165
- package/src/models/createprojectenvop.ts +24 -30
- package/src/models/createprojectop.ts +336 -15
- package/src/models/editprojectenvop.ts +8 -11
- package/src/models/filterprojectenvsop.ts +36 -45
- package/src/models/getdeploymentop.ts +1288 -353
- package/src/models/getfirewallconfigop.ts +555 -410
- package/src/models/getprojectdomainsop.ts +470 -63
- package/src/models/getprojectenvop.ts +20 -26
- package/src/models/getprojectsop.ts +338 -16
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +62 -1
- package/src/models/putfirewallconfigop.ts +4932 -0
- package/src/models/removeprojectenvop.ts +36 -45
- package/src/models/updatefirewallconfigop.ts +820 -612
- package/src/models/updateprojectdatacacheop.ts +353 -34
- package/src/models/updateprojectop.ts +336 -15
- package/src/models/userevent.ts +54 -29
- package/src/sdk/security.ts +22 -0
- package/vercel-spec.json +1395 -291
|
@@ -100,7 +100,7 @@ export const UpdateFirewallConfigRequestBodySecurityType = {
|
|
|
100
100
|
/**
|
|
101
101
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value
|
|
102
102
|
*/
|
|
103
|
-
export const
|
|
103
|
+
export const UpdateFirewallConfigRequestBodyOp = {
|
|
104
104
|
Re: "re",
|
|
105
105
|
Eq: "eq",
|
|
106
106
|
Neq: "neq",
|
|
@@ -128,7 +128,7 @@ export const UpdateFirewallConfigRateLimitAlgo = {
|
|
|
128
128
|
FixedWindow: "fixed_window",
|
|
129
129
|
TokenBucket: "token_bucket",
|
|
130
130
|
};
|
|
131
|
-
export const
|
|
131
|
+
export const UpdateFirewallConfigActionSecurity1 = {
|
|
132
132
|
Log: "log",
|
|
133
133
|
Challenge: "challenge",
|
|
134
134
|
Deny: "deny",
|
|
@@ -167,7 +167,7 @@ export const UpdateFirewallConfigRequestBodyType = {
|
|
|
167
167
|
/**
|
|
168
168
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
|
|
169
169
|
*/
|
|
170
|
-
export const
|
|
170
|
+
export const RequestBodyOp = {
|
|
171
171
|
Re: "re",
|
|
172
172
|
Eq: "eq",
|
|
173
173
|
Neq: "neq",
|
|
@@ -195,7 +195,7 @@ export const RateLimitAlgo = {
|
|
|
195
195
|
FixedWindow: "fixed_window",
|
|
196
196
|
TokenBucket: "token_bucket",
|
|
197
197
|
};
|
|
198
|
-
export const
|
|
198
|
+
export const UpdateFirewallConfigAction1 = {
|
|
199
199
|
Log: "log",
|
|
200
200
|
Challenge: "challenge",
|
|
201
201
|
Deny: "deny",
|
|
@@ -440,14 +440,14 @@ export var UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$;
|
|
|
440
440
|
UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$.outboundSchema = UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$outboundSchema;
|
|
441
441
|
})(UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$ || (UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$ = {}));
|
|
442
442
|
/** @internal */
|
|
443
|
-
export const
|
|
443
|
+
export const UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema = z.object({
|
|
444
444
|
hostname: z.string(),
|
|
445
445
|
ip: z.string(),
|
|
446
446
|
notes: z.string().optional(),
|
|
447
447
|
action: UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$inboundSchema,
|
|
448
448
|
});
|
|
449
449
|
/** @internal */
|
|
450
|
-
export const
|
|
450
|
+
export const UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema = z.object({
|
|
451
451
|
hostname: z.string(),
|
|
452
452
|
ip: z.string(),
|
|
453
453
|
notes: z.string().optional(),
|
|
@@ -457,30 +457,30 @@ export const UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema
|
|
|
457
457
|
* @internal
|
|
458
458
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
459
459
|
*/
|
|
460
|
-
export var
|
|
461
|
-
(function (
|
|
462
|
-
/** @deprecated use `
|
|
463
|
-
|
|
464
|
-
/** @deprecated use `
|
|
465
|
-
|
|
466
|
-
})(
|
|
467
|
-
export function
|
|
468
|
-
return JSON.stringify(
|
|
460
|
+
export var UpdateFirewallConfigRequestBodySecurityRequest9Value$;
|
|
461
|
+
(function (UpdateFirewallConfigRequestBodySecurityRequest9Value$) {
|
|
462
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema` instead. */
|
|
463
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$.inboundSchema = UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema;
|
|
464
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema` instead. */
|
|
465
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$.outboundSchema = UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema;
|
|
466
|
+
})(UpdateFirewallConfigRequestBodySecurityRequest9Value$ || (UpdateFirewallConfigRequestBodySecurityRequest9Value$ = {}));
|
|
467
|
+
export function updateFirewallConfigRequestBodySecurityRequest9ValueToJSON(updateFirewallConfigRequestBodySecurityRequest9Value) {
|
|
468
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema.parse(updateFirewallConfigRequestBodySecurityRequest9Value));
|
|
469
469
|
}
|
|
470
|
-
export function
|
|
471
|
-
return safeParse(jsonString, (x) =>
|
|
470
|
+
export function updateFirewallConfigRequestBodySecurityRequest9ValueFromJSON(jsonString) {
|
|
471
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequest9Value' from JSON`);
|
|
472
472
|
}
|
|
473
473
|
/** @internal */
|
|
474
474
|
export const UpdateFirewallConfigRequestBody9$inboundSchema = z.object({
|
|
475
475
|
action: UpdateFirewallConfigRequestBodySecurityRequest9Action$inboundSchema,
|
|
476
476
|
id: z.string(),
|
|
477
|
-
value: z.lazy(() =>
|
|
477
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema),
|
|
478
478
|
});
|
|
479
479
|
/** @internal */
|
|
480
480
|
export const UpdateFirewallConfigRequestBody9$outboundSchema = z.object({
|
|
481
481
|
action: UpdateFirewallConfigRequestBodySecurityRequest9Action$outboundSchema,
|
|
482
482
|
id: z.string(),
|
|
483
|
-
value: z.lazy(() =>
|
|
483
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema),
|
|
484
484
|
});
|
|
485
485
|
/**
|
|
486
486
|
* @internal
|
|
@@ -530,14 +530,14 @@ export var UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$;
|
|
|
530
530
|
UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$.outboundSchema = UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$outboundSchema;
|
|
531
531
|
})(UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$ || (UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$ = {}));
|
|
532
532
|
/** @internal */
|
|
533
|
-
export const
|
|
533
|
+
export const UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema = z.object({
|
|
534
534
|
hostname: z.string(),
|
|
535
535
|
ip: z.string(),
|
|
536
536
|
notes: z.string().optional(),
|
|
537
537
|
action: UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$inboundSchema,
|
|
538
538
|
});
|
|
539
539
|
/** @internal */
|
|
540
|
-
export const
|
|
540
|
+
export const UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema = z.object({
|
|
541
541
|
hostname: z.string(),
|
|
542
542
|
ip: z.string(),
|
|
543
543
|
notes: z.string().optional(),
|
|
@@ -547,30 +547,30 @@ export const UpdateFirewallConfigRequestBodySecurityValue$outboundSchema = z.obj
|
|
|
547
547
|
* @internal
|
|
548
548
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
549
549
|
*/
|
|
550
|
-
export var
|
|
551
|
-
(function (
|
|
552
|
-
/** @deprecated use `
|
|
553
|
-
|
|
554
|
-
/** @deprecated use `
|
|
555
|
-
|
|
556
|
-
})(
|
|
557
|
-
export function
|
|
558
|
-
return JSON.stringify(
|
|
550
|
+
export var UpdateFirewallConfigRequestBodySecurityRequestValue$;
|
|
551
|
+
(function (UpdateFirewallConfigRequestBodySecurityRequestValue$) {
|
|
552
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema` instead. */
|
|
553
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$.inboundSchema = UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema;
|
|
554
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema` instead. */
|
|
555
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$.outboundSchema = UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema;
|
|
556
|
+
})(UpdateFirewallConfigRequestBodySecurityRequestValue$ || (UpdateFirewallConfigRequestBodySecurityRequestValue$ = {}));
|
|
557
|
+
export function updateFirewallConfigRequestBodySecurityRequestValueToJSON(updateFirewallConfigRequestBodySecurityRequestValue) {
|
|
558
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema.parse(updateFirewallConfigRequestBodySecurityRequestValue));
|
|
559
559
|
}
|
|
560
|
-
export function
|
|
561
|
-
return safeParse(jsonString, (x) =>
|
|
560
|
+
export function updateFirewallConfigRequestBodySecurityRequestValueFromJSON(jsonString) {
|
|
561
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequestValue' from JSON`);
|
|
562
562
|
}
|
|
563
563
|
/** @internal */
|
|
564
564
|
export const UpdateFirewallConfigRequestBody8$inboundSchema = z.object({
|
|
565
565
|
action: UpdateFirewallConfigRequestBodySecurityRequest8Action$inboundSchema,
|
|
566
566
|
id: z.nullable(z.any()).optional(),
|
|
567
|
-
value: z.lazy(() =>
|
|
567
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema),
|
|
568
568
|
});
|
|
569
569
|
/** @internal */
|
|
570
570
|
export const UpdateFirewallConfigRequestBody8$outboundSchema = z.object({
|
|
571
571
|
action: UpdateFirewallConfigRequestBodySecurityRequest8Action$outboundSchema,
|
|
572
572
|
id: z.nullable(z.any()).optional(),
|
|
573
|
-
value: z.lazy(() =>
|
|
573
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema),
|
|
574
574
|
});
|
|
575
575
|
/**
|
|
576
576
|
* @internal
|
|
@@ -679,12 +679,12 @@ export var UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$;
|
|
|
679
679
|
UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$.outboundSchema = UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$outboundSchema;
|
|
680
680
|
})(UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$ || (UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$ = {}));
|
|
681
681
|
/** @internal */
|
|
682
|
-
export const
|
|
682
|
+
export const UpdateFirewallConfigRequestBodySecurityValue$inboundSchema = z.object({
|
|
683
683
|
active: z.boolean(),
|
|
684
684
|
action: UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$inboundSchema,
|
|
685
685
|
});
|
|
686
686
|
/** @internal */
|
|
687
|
-
export const
|
|
687
|
+
export const UpdateFirewallConfigRequestBodySecurityValue$outboundSchema = z.object({
|
|
688
688
|
active: z.boolean(),
|
|
689
689
|
action: UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$outboundSchema,
|
|
690
690
|
});
|
|
@@ -692,30 +692,30 @@ export const UpdateFirewallConfigRequestBodyValue$outboundSchema = z.object({
|
|
|
692
692
|
* @internal
|
|
693
693
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
694
694
|
*/
|
|
695
|
-
export var
|
|
696
|
-
(function (
|
|
697
|
-
/** @deprecated use `
|
|
698
|
-
|
|
699
|
-
/** @deprecated use `
|
|
700
|
-
|
|
701
|
-
})(
|
|
702
|
-
export function
|
|
703
|
-
return JSON.stringify(
|
|
695
|
+
export var UpdateFirewallConfigRequestBodySecurityValue$;
|
|
696
|
+
(function (UpdateFirewallConfigRequestBodySecurityValue$) {
|
|
697
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityValue$inboundSchema` instead. */
|
|
698
|
+
UpdateFirewallConfigRequestBodySecurityValue$.inboundSchema = UpdateFirewallConfigRequestBodySecurityValue$inboundSchema;
|
|
699
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityValue$outboundSchema` instead. */
|
|
700
|
+
UpdateFirewallConfigRequestBodySecurityValue$.outboundSchema = UpdateFirewallConfigRequestBodySecurityValue$outboundSchema;
|
|
701
|
+
})(UpdateFirewallConfigRequestBodySecurityValue$ || (UpdateFirewallConfigRequestBodySecurityValue$ = {}));
|
|
702
|
+
export function updateFirewallConfigRequestBodySecurityValueToJSON(updateFirewallConfigRequestBodySecurityValue) {
|
|
703
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodySecurityValue$outboundSchema.parse(updateFirewallConfigRequestBodySecurityValue));
|
|
704
704
|
}
|
|
705
|
-
export function
|
|
706
|
-
return safeParse(jsonString, (x) =>
|
|
705
|
+
export function updateFirewallConfigRequestBodySecurityValueFromJSON(jsonString) {
|
|
706
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityValue' from JSON`);
|
|
707
707
|
}
|
|
708
708
|
/** @internal */
|
|
709
709
|
export const UpdateFirewallConfigRequestBody6$inboundSchema = z.object({
|
|
710
710
|
action: UpdateFirewallConfigRequestBodySecurityRequest6Action$inboundSchema,
|
|
711
711
|
id: Id$inboundSchema,
|
|
712
|
-
value: z.lazy(() =>
|
|
712
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodySecurityValue$inboundSchema),
|
|
713
713
|
});
|
|
714
714
|
/** @internal */
|
|
715
715
|
export const UpdateFirewallConfigRequestBody6$outboundSchema = z.object({
|
|
716
716
|
action: UpdateFirewallConfigRequestBodySecurityRequest6Action$outboundSchema,
|
|
717
717
|
id: Id$outboundSchema,
|
|
718
|
-
value: z.lazy(() =>
|
|
718
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodySecurityValue$outboundSchema),
|
|
719
719
|
});
|
|
720
720
|
/**
|
|
721
721
|
* @internal
|
|
@@ -855,20 +855,20 @@ export var UpdateFirewallConfigRequestBodySecurityType$;
|
|
|
855
855
|
UpdateFirewallConfigRequestBodySecurityType$.outboundSchema = UpdateFirewallConfigRequestBodySecurityType$outboundSchema;
|
|
856
856
|
})(UpdateFirewallConfigRequestBodySecurityType$ || (UpdateFirewallConfigRequestBodySecurityType$ = {}));
|
|
857
857
|
/** @internal */
|
|
858
|
-
export const
|
|
858
|
+
export const UpdateFirewallConfigRequestBodyOp$inboundSchema = z.nativeEnum(UpdateFirewallConfigRequestBodyOp);
|
|
859
859
|
/** @internal */
|
|
860
|
-
export const
|
|
860
|
+
export const UpdateFirewallConfigRequestBodyOp$outboundSchema = UpdateFirewallConfigRequestBodyOp$inboundSchema;
|
|
861
861
|
/**
|
|
862
862
|
* @internal
|
|
863
863
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
864
864
|
*/
|
|
865
|
-
export var
|
|
866
|
-
(function (
|
|
867
|
-
/** @deprecated use `
|
|
868
|
-
|
|
869
|
-
/** @deprecated use `
|
|
870
|
-
|
|
871
|
-
})(
|
|
865
|
+
export var UpdateFirewallConfigRequestBodyOp$;
|
|
866
|
+
(function (UpdateFirewallConfigRequestBodyOp$) {
|
|
867
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyOp$inboundSchema` instead. */
|
|
868
|
+
UpdateFirewallConfigRequestBodyOp$.inboundSchema = UpdateFirewallConfigRequestBodyOp$inboundSchema;
|
|
869
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyOp$outboundSchema` instead. */
|
|
870
|
+
UpdateFirewallConfigRequestBodyOp$.outboundSchema = UpdateFirewallConfigRequestBodyOp$outboundSchema;
|
|
871
|
+
})(UpdateFirewallConfigRequestBodyOp$ || (UpdateFirewallConfigRequestBodyOp$ = {}));
|
|
872
872
|
/** @internal */
|
|
873
873
|
export const UpdateFirewallConfigRequestBodySecurityRequest3Value$inboundSchema = z.union([z.string(), z.array(z.string()), z.number()]);
|
|
874
874
|
/** @internal */
|
|
@@ -891,17 +891,17 @@ export function updateFirewallConfigRequestBodySecurityRequest3ValueFromJSON(jso
|
|
|
891
891
|
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityRequest3Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequest3Value' from JSON`);
|
|
892
892
|
}
|
|
893
893
|
/** @internal */
|
|
894
|
-
export const
|
|
894
|
+
export const UpdateFirewallConfigRequestBodyConditions$inboundSchema = z.object({
|
|
895
895
|
type: UpdateFirewallConfigRequestBodySecurityType$inboundSchema,
|
|
896
|
-
op:
|
|
896
|
+
op: UpdateFirewallConfigRequestBodyOp$inboundSchema,
|
|
897
897
|
neg: z.boolean().optional(),
|
|
898
898
|
key: z.string().optional(),
|
|
899
899
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
900
900
|
});
|
|
901
901
|
/** @internal */
|
|
902
|
-
export const
|
|
902
|
+
export const UpdateFirewallConfigRequestBodyConditions$outboundSchema = z.object({
|
|
903
903
|
type: UpdateFirewallConfigRequestBodySecurityType$outboundSchema,
|
|
904
|
-
op:
|
|
904
|
+
op: UpdateFirewallConfigRequestBodyOp$outboundSchema,
|
|
905
905
|
neg: z.boolean().optional(),
|
|
906
906
|
key: z.string().optional(),
|
|
907
907
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
@@ -910,43 +910,43 @@ export const RequestBodyConditions$outboundSchema = z.object({
|
|
|
910
910
|
* @internal
|
|
911
911
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
912
912
|
*/
|
|
913
|
-
export var
|
|
914
|
-
(function (
|
|
915
|
-
/** @deprecated use `
|
|
916
|
-
|
|
917
|
-
/** @deprecated use `
|
|
918
|
-
|
|
919
|
-
})(
|
|
920
|
-
export function
|
|
921
|
-
return JSON.stringify(
|
|
913
|
+
export var UpdateFirewallConfigRequestBodyConditions$;
|
|
914
|
+
(function (UpdateFirewallConfigRequestBodyConditions$) {
|
|
915
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditions$inboundSchema` instead. */
|
|
916
|
+
UpdateFirewallConfigRequestBodyConditions$.inboundSchema = UpdateFirewallConfigRequestBodyConditions$inboundSchema;
|
|
917
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditions$outboundSchema` instead. */
|
|
918
|
+
UpdateFirewallConfigRequestBodyConditions$.outboundSchema = UpdateFirewallConfigRequestBodyConditions$outboundSchema;
|
|
919
|
+
})(UpdateFirewallConfigRequestBodyConditions$ || (UpdateFirewallConfigRequestBodyConditions$ = {}));
|
|
920
|
+
export function updateFirewallConfigRequestBodyConditionsToJSON(updateFirewallConfigRequestBodyConditions) {
|
|
921
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodyConditions$outboundSchema.parse(updateFirewallConfigRequestBodyConditions));
|
|
922
922
|
}
|
|
923
|
-
export function
|
|
924
|
-
return safeParse(jsonString, (x) =>
|
|
923
|
+
export function updateFirewallConfigRequestBodyConditionsFromJSON(jsonString) {
|
|
924
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodyConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodyConditions' from JSON`);
|
|
925
925
|
}
|
|
926
926
|
/** @internal */
|
|
927
|
-
export const
|
|
928
|
-
conditions: z.array(z.lazy(() =>
|
|
927
|
+
export const UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema = z.object({
|
|
928
|
+
conditions: z.array(z.lazy(() => UpdateFirewallConfigRequestBodyConditions$inboundSchema)),
|
|
929
929
|
});
|
|
930
930
|
/** @internal */
|
|
931
|
-
export const
|
|
932
|
-
conditions: z.array(z.lazy(() =>
|
|
931
|
+
export const UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema = z.object({
|
|
932
|
+
conditions: z.array(z.lazy(() => UpdateFirewallConfigRequestBodyConditions$outboundSchema)),
|
|
933
933
|
});
|
|
934
934
|
/**
|
|
935
935
|
* @internal
|
|
936
936
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
937
937
|
*/
|
|
938
|
-
export var
|
|
939
|
-
(function (
|
|
940
|
-
/** @deprecated use `
|
|
941
|
-
|
|
942
|
-
/** @deprecated use `
|
|
943
|
-
|
|
944
|
-
})(
|
|
945
|
-
export function
|
|
946
|
-
return JSON.stringify(
|
|
938
|
+
export var UpdateFirewallConfigRequestBodyConditionGroup$;
|
|
939
|
+
(function (UpdateFirewallConfigRequestBodyConditionGroup$) {
|
|
940
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema` instead. */
|
|
941
|
+
UpdateFirewallConfigRequestBodyConditionGroup$.inboundSchema = UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema;
|
|
942
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema` instead. */
|
|
943
|
+
UpdateFirewallConfigRequestBodyConditionGroup$.outboundSchema = UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema;
|
|
944
|
+
})(UpdateFirewallConfigRequestBodyConditionGroup$ || (UpdateFirewallConfigRequestBodyConditionGroup$ = {}));
|
|
945
|
+
export function updateFirewallConfigRequestBodyConditionGroupToJSON(updateFirewallConfigRequestBodyConditionGroup) {
|
|
946
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema.parse(updateFirewallConfigRequestBodyConditionGroup));
|
|
947
947
|
}
|
|
948
|
-
export function
|
|
949
|
-
return safeParse(jsonString, (x) =>
|
|
948
|
+
export function updateFirewallConfigRequestBodyConditionGroupFromJSON(jsonString) {
|
|
949
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodyConditionGroup' from JSON`);
|
|
950
950
|
}
|
|
951
951
|
/** @internal */
|
|
952
952
|
export const UpdateFirewallConfigRequestBodySecurityRequest3ValueAction$inboundSchema = z.nativeEnum(UpdateFirewallConfigRequestBodySecurityRequest3ValueAction);
|
|
@@ -979,108 +979,108 @@ export var UpdateFirewallConfigRateLimitAlgo$;
|
|
|
979
979
|
UpdateFirewallConfigRateLimitAlgo$.outboundSchema = UpdateFirewallConfigRateLimitAlgo$outboundSchema;
|
|
980
980
|
})(UpdateFirewallConfigRateLimitAlgo$ || (UpdateFirewallConfigRateLimitAlgo$ = {}));
|
|
981
981
|
/** @internal */
|
|
982
|
-
export const
|
|
982
|
+
export const UpdateFirewallConfigActionSecurity1$inboundSchema = z.nativeEnum(UpdateFirewallConfigActionSecurity1);
|
|
983
983
|
/** @internal */
|
|
984
|
-
export const
|
|
984
|
+
export const UpdateFirewallConfigActionSecurity1$outboundSchema = UpdateFirewallConfigActionSecurity1$inboundSchema;
|
|
985
985
|
/**
|
|
986
986
|
* @internal
|
|
987
987
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
988
988
|
*/
|
|
989
|
-
export var
|
|
990
|
-
(function (
|
|
991
|
-
/** @deprecated use `
|
|
992
|
-
|
|
993
|
-
/** @deprecated use `
|
|
994
|
-
|
|
995
|
-
})(
|
|
989
|
+
export var UpdateFirewallConfigActionSecurity1$;
|
|
990
|
+
(function (UpdateFirewallConfigActionSecurity1$) {
|
|
991
|
+
/** @deprecated use `UpdateFirewallConfigActionSecurity1$inboundSchema` instead. */
|
|
992
|
+
UpdateFirewallConfigActionSecurity1$.inboundSchema = UpdateFirewallConfigActionSecurity1$inboundSchema;
|
|
993
|
+
/** @deprecated use `UpdateFirewallConfigActionSecurity1$outboundSchema` instead. */
|
|
994
|
+
UpdateFirewallConfigActionSecurity1$.outboundSchema = UpdateFirewallConfigActionSecurity1$outboundSchema;
|
|
995
|
+
})(UpdateFirewallConfigActionSecurity1$ || (UpdateFirewallConfigActionSecurity1$ = {}));
|
|
996
996
|
/** @internal */
|
|
997
|
-
export const
|
|
997
|
+
export const UpdateFirewallConfigRateLimitSecurityAction$inboundSchema = z.union([UpdateFirewallConfigActionSecurity1$inboundSchema, z.any()]);
|
|
998
998
|
/** @internal */
|
|
999
|
-
export const
|
|
999
|
+
export const UpdateFirewallConfigRateLimitSecurityAction$outboundSchema = z.union([UpdateFirewallConfigActionSecurity1$outboundSchema, z.any()]);
|
|
1000
1000
|
/**
|
|
1001
1001
|
* @internal
|
|
1002
1002
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1003
1003
|
*/
|
|
1004
|
-
export var
|
|
1005
|
-
(function (
|
|
1006
|
-
/** @deprecated use `
|
|
1007
|
-
|
|
1008
|
-
/** @deprecated use `
|
|
1009
|
-
|
|
1010
|
-
})(
|
|
1011
|
-
export function
|
|
1012
|
-
return JSON.stringify(
|
|
1004
|
+
export var UpdateFirewallConfigRateLimitSecurityAction$;
|
|
1005
|
+
(function (UpdateFirewallConfigRateLimitSecurityAction$) {
|
|
1006
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurityAction$inboundSchema` instead. */
|
|
1007
|
+
UpdateFirewallConfigRateLimitSecurityAction$.inboundSchema = UpdateFirewallConfigRateLimitSecurityAction$inboundSchema;
|
|
1008
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurityAction$outboundSchema` instead. */
|
|
1009
|
+
UpdateFirewallConfigRateLimitSecurityAction$.outboundSchema = UpdateFirewallConfigRateLimitSecurityAction$outboundSchema;
|
|
1010
|
+
})(UpdateFirewallConfigRateLimitSecurityAction$ || (UpdateFirewallConfigRateLimitSecurityAction$ = {}));
|
|
1011
|
+
export function updateFirewallConfigRateLimitSecurityActionToJSON(updateFirewallConfigRateLimitSecurityAction) {
|
|
1012
|
+
return JSON.stringify(UpdateFirewallConfigRateLimitSecurityAction$outboundSchema.parse(updateFirewallConfigRateLimitSecurityAction));
|
|
1013
1013
|
}
|
|
1014
|
-
export function
|
|
1015
|
-
return safeParse(jsonString, (x) =>
|
|
1014
|
+
export function updateFirewallConfigRateLimitSecurityActionFromJSON(jsonString) {
|
|
1015
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRateLimitSecurityAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRateLimitSecurityAction' from JSON`);
|
|
1016
1016
|
}
|
|
1017
1017
|
/** @internal */
|
|
1018
|
-
export const
|
|
1018
|
+
export const UpdateFirewallConfigRateLimitSecurity1$inboundSchema = z.object({
|
|
1019
1019
|
algo: UpdateFirewallConfigRateLimitAlgo$inboundSchema,
|
|
1020
1020
|
window: z.number(),
|
|
1021
1021
|
limit: z.number(),
|
|
1022
1022
|
keys: z.array(z.string()),
|
|
1023
|
-
action: z.nullable(z.union([
|
|
1023
|
+
action: z.nullable(z.union([UpdateFirewallConfigActionSecurity1$inboundSchema, z.any()])).optional(),
|
|
1024
1024
|
});
|
|
1025
1025
|
/** @internal */
|
|
1026
|
-
export const
|
|
1026
|
+
export const UpdateFirewallConfigRateLimitSecurity1$outboundSchema = z.object({
|
|
1027
1027
|
algo: UpdateFirewallConfigRateLimitAlgo$outboundSchema,
|
|
1028
1028
|
window: z.number(),
|
|
1029
1029
|
limit: z.number(),
|
|
1030
1030
|
keys: z.array(z.string()),
|
|
1031
|
-
action: z.nullable(z.union([
|
|
1031
|
+
action: z.nullable(z.union([UpdateFirewallConfigActionSecurity1$outboundSchema, z.any()])).optional(),
|
|
1032
1032
|
});
|
|
1033
1033
|
/**
|
|
1034
1034
|
* @internal
|
|
1035
1035
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1036
1036
|
*/
|
|
1037
|
-
export var
|
|
1038
|
-
(function (
|
|
1039
|
-
/** @deprecated use `
|
|
1040
|
-
|
|
1041
|
-
/** @deprecated use `
|
|
1042
|
-
|
|
1043
|
-
})(
|
|
1044
|
-
export function
|
|
1045
|
-
return JSON.stringify(
|
|
1037
|
+
export var UpdateFirewallConfigRateLimitSecurity1$;
|
|
1038
|
+
(function (UpdateFirewallConfigRateLimitSecurity1$) {
|
|
1039
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurity1$inboundSchema` instead. */
|
|
1040
|
+
UpdateFirewallConfigRateLimitSecurity1$.inboundSchema = UpdateFirewallConfigRateLimitSecurity1$inboundSchema;
|
|
1041
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurity1$outboundSchema` instead. */
|
|
1042
|
+
UpdateFirewallConfigRateLimitSecurity1$.outboundSchema = UpdateFirewallConfigRateLimitSecurity1$outboundSchema;
|
|
1043
|
+
})(UpdateFirewallConfigRateLimitSecurity1$ || (UpdateFirewallConfigRateLimitSecurity1$ = {}));
|
|
1044
|
+
export function updateFirewallConfigRateLimitSecurity1ToJSON(updateFirewallConfigRateLimitSecurity1) {
|
|
1045
|
+
return JSON.stringify(UpdateFirewallConfigRateLimitSecurity1$outboundSchema.parse(updateFirewallConfigRateLimitSecurity1));
|
|
1046
1046
|
}
|
|
1047
|
-
export function
|
|
1048
|
-
return safeParse(jsonString, (x) =>
|
|
1047
|
+
export function updateFirewallConfigRateLimitSecurity1FromJSON(jsonString) {
|
|
1048
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRateLimitSecurity1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRateLimitSecurity1' from JSON`);
|
|
1049
1049
|
}
|
|
1050
1050
|
/** @internal */
|
|
1051
|
-
export const
|
|
1052
|
-
z.lazy(() =>
|
|
1051
|
+
export const UpdateFirewallConfigRequestBodyRateLimit$inboundSchema = z.union([
|
|
1052
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$inboundSchema),
|
|
1053
1053
|
z.any(),
|
|
1054
1054
|
]);
|
|
1055
1055
|
/** @internal */
|
|
1056
|
-
export const
|
|
1057
|
-
z.lazy(() =>
|
|
1056
|
+
export const UpdateFirewallConfigRequestBodyRateLimit$outboundSchema = z.union([
|
|
1057
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$outboundSchema),
|
|
1058
1058
|
z.any(),
|
|
1059
1059
|
]);
|
|
1060
1060
|
/**
|
|
1061
1061
|
* @internal
|
|
1062
1062
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1063
1063
|
*/
|
|
1064
|
-
export var
|
|
1065
|
-
(function (
|
|
1066
|
-
/** @deprecated use `
|
|
1067
|
-
|
|
1068
|
-
/** @deprecated use `
|
|
1069
|
-
|
|
1070
|
-
})(
|
|
1071
|
-
export function
|
|
1072
|
-
return JSON.stringify(
|
|
1064
|
+
export var UpdateFirewallConfigRequestBodyRateLimit$;
|
|
1065
|
+
(function (UpdateFirewallConfigRequestBodyRateLimit$) {
|
|
1066
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRateLimit$inboundSchema` instead. */
|
|
1067
|
+
UpdateFirewallConfigRequestBodyRateLimit$.inboundSchema = UpdateFirewallConfigRequestBodyRateLimit$inboundSchema;
|
|
1068
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRateLimit$outboundSchema` instead. */
|
|
1069
|
+
UpdateFirewallConfigRequestBodyRateLimit$.outboundSchema = UpdateFirewallConfigRequestBodyRateLimit$outboundSchema;
|
|
1070
|
+
})(UpdateFirewallConfigRequestBodyRateLimit$ || (UpdateFirewallConfigRequestBodyRateLimit$ = {}));
|
|
1071
|
+
export function updateFirewallConfigRequestBodyRateLimitToJSON(updateFirewallConfigRequestBodyRateLimit) {
|
|
1072
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodyRateLimit$outboundSchema.parse(updateFirewallConfigRequestBodyRateLimit));
|
|
1073
1073
|
}
|
|
1074
|
-
export function
|
|
1075
|
-
return safeParse(jsonString, (x) =>
|
|
1074
|
+
export function updateFirewallConfigRequestBodyRateLimitFromJSON(jsonString) {
|
|
1075
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodyRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodyRateLimit' from JSON`);
|
|
1076
1076
|
}
|
|
1077
1077
|
/** @internal */
|
|
1078
|
-
export const
|
|
1078
|
+
export const UpdateFirewallConfigRedirectSecurity1$inboundSchema = z.object({
|
|
1079
1079
|
location: z.string(),
|
|
1080
1080
|
permanent: z.boolean(),
|
|
1081
1081
|
});
|
|
1082
1082
|
/** @internal */
|
|
1083
|
-
export const
|
|
1083
|
+
export const UpdateFirewallConfigRedirectSecurity1$outboundSchema = z.object({
|
|
1084
1084
|
location: z.string(),
|
|
1085
1085
|
permanent: z.boolean(),
|
|
1086
1086
|
});
|
|
@@ -1088,69 +1088,69 @@ export const UpdateFirewallConfigRedirect1$outboundSchema = z.object({
|
|
|
1088
1088
|
* @internal
|
|
1089
1089
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1090
1090
|
*/
|
|
1091
|
-
export var
|
|
1092
|
-
(function (
|
|
1093
|
-
/** @deprecated use `
|
|
1094
|
-
|
|
1095
|
-
/** @deprecated use `
|
|
1096
|
-
|
|
1097
|
-
})(
|
|
1098
|
-
export function
|
|
1099
|
-
return JSON.stringify(
|
|
1091
|
+
export var UpdateFirewallConfigRedirectSecurity1$;
|
|
1092
|
+
(function (UpdateFirewallConfigRedirectSecurity1$) {
|
|
1093
|
+
/** @deprecated use `UpdateFirewallConfigRedirectSecurity1$inboundSchema` instead. */
|
|
1094
|
+
UpdateFirewallConfigRedirectSecurity1$.inboundSchema = UpdateFirewallConfigRedirectSecurity1$inboundSchema;
|
|
1095
|
+
/** @deprecated use `UpdateFirewallConfigRedirectSecurity1$outboundSchema` instead. */
|
|
1096
|
+
UpdateFirewallConfigRedirectSecurity1$.outboundSchema = UpdateFirewallConfigRedirectSecurity1$outboundSchema;
|
|
1097
|
+
})(UpdateFirewallConfigRedirectSecurity1$ || (UpdateFirewallConfigRedirectSecurity1$ = {}));
|
|
1098
|
+
export function updateFirewallConfigRedirectSecurity1ToJSON(updateFirewallConfigRedirectSecurity1) {
|
|
1099
|
+
return JSON.stringify(UpdateFirewallConfigRedirectSecurity1$outboundSchema.parse(updateFirewallConfigRedirectSecurity1));
|
|
1100
1100
|
}
|
|
1101
|
-
export function
|
|
1102
|
-
return safeParse(jsonString, (x) =>
|
|
1101
|
+
export function updateFirewallConfigRedirectSecurity1FromJSON(jsonString) {
|
|
1102
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRedirectSecurity1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRedirectSecurity1' from JSON`);
|
|
1103
1103
|
}
|
|
1104
1104
|
/** @internal */
|
|
1105
|
-
export const
|
|
1106
|
-
z.lazy(() =>
|
|
1105
|
+
export const UpdateFirewallConfigRequestBodyRedirect$inboundSchema = z.union([
|
|
1106
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$inboundSchema),
|
|
1107
1107
|
z.any(),
|
|
1108
1108
|
]);
|
|
1109
1109
|
/** @internal */
|
|
1110
|
-
export const
|
|
1111
|
-
z.lazy(() =>
|
|
1110
|
+
export const UpdateFirewallConfigRequestBodyRedirect$outboundSchema = z.union([
|
|
1111
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$outboundSchema),
|
|
1112
1112
|
z.any(),
|
|
1113
1113
|
]);
|
|
1114
1114
|
/**
|
|
1115
1115
|
* @internal
|
|
1116
1116
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1117
1117
|
*/
|
|
1118
|
-
export var
|
|
1119
|
-
(function (
|
|
1120
|
-
/** @deprecated use `
|
|
1121
|
-
|
|
1122
|
-
/** @deprecated use `
|
|
1123
|
-
|
|
1124
|
-
})(
|
|
1125
|
-
export function
|
|
1126
|
-
return JSON.stringify(
|
|
1118
|
+
export var UpdateFirewallConfigRequestBodyRedirect$;
|
|
1119
|
+
(function (UpdateFirewallConfigRequestBodyRedirect$) {
|
|
1120
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRedirect$inboundSchema` instead. */
|
|
1121
|
+
UpdateFirewallConfigRequestBodyRedirect$.inboundSchema = UpdateFirewallConfigRequestBodyRedirect$inboundSchema;
|
|
1122
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRedirect$outboundSchema` instead. */
|
|
1123
|
+
UpdateFirewallConfigRequestBodyRedirect$.outboundSchema = UpdateFirewallConfigRequestBodyRedirect$outboundSchema;
|
|
1124
|
+
})(UpdateFirewallConfigRequestBodyRedirect$ || (UpdateFirewallConfigRequestBodyRedirect$ = {}));
|
|
1125
|
+
export function updateFirewallConfigRequestBodyRedirectToJSON(updateFirewallConfigRequestBodyRedirect) {
|
|
1126
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodyRedirect$outboundSchema.parse(updateFirewallConfigRequestBodyRedirect));
|
|
1127
1127
|
}
|
|
1128
|
-
export function
|
|
1129
|
-
return safeParse(jsonString, (x) =>
|
|
1128
|
+
export function updateFirewallConfigRequestBodyRedirectFromJSON(jsonString) {
|
|
1129
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodyRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodyRedirect' from JSON`);
|
|
1130
1130
|
}
|
|
1131
1131
|
/** @internal */
|
|
1132
|
-
export const
|
|
1132
|
+
export const UpdateFirewallConfigRequestBodyMitigate$inboundSchema = z.object({
|
|
1133
1133
|
action: UpdateFirewallConfigRequestBodySecurityRequest3ValueAction$inboundSchema,
|
|
1134
1134
|
rateLimit: z.nullable(z.union([
|
|
1135
|
-
z.lazy(() =>
|
|
1135
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$inboundSchema),
|
|
1136
1136
|
z.any(),
|
|
1137
1137
|
])).optional(),
|
|
1138
1138
|
redirect: z.nullable(z.union([
|
|
1139
|
-
z.lazy(() =>
|
|
1139
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$inboundSchema),
|
|
1140
1140
|
z.any(),
|
|
1141
1141
|
])).optional(),
|
|
1142
1142
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1143
1143
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1144
1144
|
});
|
|
1145
1145
|
/** @internal */
|
|
1146
|
-
export const
|
|
1146
|
+
export const UpdateFirewallConfigRequestBodyMitigate$outboundSchema = z.object({
|
|
1147
1147
|
action: UpdateFirewallConfigRequestBodySecurityRequest3ValueAction$outboundSchema,
|
|
1148
1148
|
rateLimit: z.nullable(z.union([
|
|
1149
|
-
z.lazy(() =>
|
|
1149
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$outboundSchema),
|
|
1150
1150
|
z.any(),
|
|
1151
1151
|
])).optional(),
|
|
1152
1152
|
redirect: z.nullable(z.union([
|
|
1153
|
-
z.lazy(() =>
|
|
1153
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$outboundSchema),
|
|
1154
1154
|
z.any(),
|
|
1155
1155
|
])).optional(),
|
|
1156
1156
|
actionDuration: z.nullable(z.string()).optional(),
|
|
@@ -1160,26 +1160,26 @@ export const RequestBodyMitigate$outboundSchema = z.object({
|
|
|
1160
1160
|
* @internal
|
|
1161
1161
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1162
1162
|
*/
|
|
1163
|
-
export var
|
|
1164
|
-
(function (
|
|
1165
|
-
/** @deprecated use `
|
|
1166
|
-
|
|
1167
|
-
/** @deprecated use `
|
|
1168
|
-
|
|
1169
|
-
})(
|
|
1170
|
-
export function
|
|
1171
|
-
return JSON.stringify(
|
|
1163
|
+
export var UpdateFirewallConfigRequestBodyMitigate$;
|
|
1164
|
+
(function (UpdateFirewallConfigRequestBodyMitigate$) {
|
|
1165
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyMitigate$inboundSchema` instead. */
|
|
1166
|
+
UpdateFirewallConfigRequestBodyMitigate$.inboundSchema = UpdateFirewallConfigRequestBodyMitigate$inboundSchema;
|
|
1167
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyMitigate$outboundSchema` instead. */
|
|
1168
|
+
UpdateFirewallConfigRequestBodyMitigate$.outboundSchema = UpdateFirewallConfigRequestBodyMitigate$outboundSchema;
|
|
1169
|
+
})(UpdateFirewallConfigRequestBodyMitigate$ || (UpdateFirewallConfigRequestBodyMitigate$ = {}));
|
|
1170
|
+
export function updateFirewallConfigRequestBodyMitigateToJSON(updateFirewallConfigRequestBodyMitigate) {
|
|
1171
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodyMitigate$outboundSchema.parse(updateFirewallConfigRequestBodyMitigate));
|
|
1172
1172
|
}
|
|
1173
|
-
export function
|
|
1174
|
-
return safeParse(jsonString, (x) =>
|
|
1173
|
+
export function updateFirewallConfigRequestBodyMitigateFromJSON(jsonString) {
|
|
1174
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodyMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodyMitigate' from JSON`);
|
|
1175
1175
|
}
|
|
1176
1176
|
/** @internal */
|
|
1177
1177
|
export const UpdateFirewallConfigRequestBodySecurityRequest3Action$inboundSchema = z.object({
|
|
1178
|
-
mitigate: z.lazy(() =>
|
|
1178
|
+
mitigate: z.lazy(() => UpdateFirewallConfigRequestBodyMitigate$inboundSchema).optional(),
|
|
1179
1179
|
});
|
|
1180
1180
|
/** @internal */
|
|
1181
1181
|
export const UpdateFirewallConfigRequestBodySecurityRequest3Action$outboundSchema = z.object({
|
|
1182
|
-
mitigate: z.lazy(() =>
|
|
1182
|
+
mitigate: z.lazy(() => UpdateFirewallConfigRequestBodyMitigate$outboundSchema).optional(),
|
|
1183
1183
|
});
|
|
1184
1184
|
/**
|
|
1185
1185
|
* @internal
|
|
@@ -1199,49 +1199,49 @@ export function updateFirewallConfigRequestBodySecurityRequest3ActionFromJSON(js
|
|
|
1199
1199
|
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityRequest3Action$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequest3Action' from JSON`);
|
|
1200
1200
|
}
|
|
1201
1201
|
/** @internal */
|
|
1202
|
-
export const
|
|
1202
|
+
export const UpdateFirewallConfigRequestBodyValue$inboundSchema = z.object({
|
|
1203
1203
|
name: z.string(),
|
|
1204
1204
|
description: z.string().optional(),
|
|
1205
1205
|
active: z.boolean(),
|
|
1206
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
1206
|
+
conditionGroup: z.array(z.lazy(() => UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema)),
|
|
1207
1207
|
action: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequest3Action$inboundSchema),
|
|
1208
1208
|
});
|
|
1209
1209
|
/** @internal */
|
|
1210
|
-
export const
|
|
1210
|
+
export const UpdateFirewallConfigRequestBodyValue$outboundSchema = z.object({
|
|
1211
1211
|
name: z.string(),
|
|
1212
1212
|
description: z.string().optional(),
|
|
1213
1213
|
active: z.boolean(),
|
|
1214
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
1214
|
+
conditionGroup: z.array(z.lazy(() => UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema)),
|
|
1215
1215
|
action: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequest3Action$outboundSchema),
|
|
1216
1216
|
});
|
|
1217
1217
|
/**
|
|
1218
1218
|
* @internal
|
|
1219
1219
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1220
1220
|
*/
|
|
1221
|
-
export var
|
|
1222
|
-
(function (
|
|
1223
|
-
/** @deprecated use `
|
|
1224
|
-
|
|
1225
|
-
/** @deprecated use `
|
|
1226
|
-
|
|
1227
|
-
})(
|
|
1228
|
-
export function
|
|
1229
|
-
return JSON.stringify(
|
|
1221
|
+
export var UpdateFirewallConfigRequestBodyValue$;
|
|
1222
|
+
(function (UpdateFirewallConfigRequestBodyValue$) {
|
|
1223
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyValue$inboundSchema` instead. */
|
|
1224
|
+
UpdateFirewallConfigRequestBodyValue$.inboundSchema = UpdateFirewallConfigRequestBodyValue$inboundSchema;
|
|
1225
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyValue$outboundSchema` instead. */
|
|
1226
|
+
UpdateFirewallConfigRequestBodyValue$.outboundSchema = UpdateFirewallConfigRequestBodyValue$outboundSchema;
|
|
1227
|
+
})(UpdateFirewallConfigRequestBodyValue$ || (UpdateFirewallConfigRequestBodyValue$ = {}));
|
|
1228
|
+
export function updateFirewallConfigRequestBodyValueToJSON(updateFirewallConfigRequestBodyValue) {
|
|
1229
|
+
return JSON.stringify(UpdateFirewallConfigRequestBodyValue$outboundSchema.parse(updateFirewallConfigRequestBodyValue));
|
|
1230
1230
|
}
|
|
1231
|
-
export function
|
|
1232
|
-
return safeParse(jsonString, (x) =>
|
|
1231
|
+
export function updateFirewallConfigRequestBodyValueFromJSON(jsonString) {
|
|
1232
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodyValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodyValue' from JSON`);
|
|
1233
1233
|
}
|
|
1234
1234
|
/** @internal */
|
|
1235
1235
|
export const UpdateFirewallConfigRequestBody3$inboundSchema = z.object({
|
|
1236
1236
|
action: UpdateFirewallConfigRequestBodySecurityAction$inboundSchema,
|
|
1237
1237
|
id: z.string(),
|
|
1238
|
-
value: z.lazy(() =>
|
|
1238
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodyValue$inboundSchema),
|
|
1239
1239
|
});
|
|
1240
1240
|
/** @internal */
|
|
1241
1241
|
export const UpdateFirewallConfigRequestBody3$outboundSchema = z.object({
|
|
1242
1242
|
action: UpdateFirewallConfigRequestBodySecurityAction$outboundSchema,
|
|
1243
1243
|
id: z.string(),
|
|
1244
|
-
value: z.lazy(() =>
|
|
1244
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodyValue$outboundSchema),
|
|
1245
1245
|
});
|
|
1246
1246
|
/**
|
|
1247
1247
|
* @internal
|
|
@@ -1291,20 +1291,20 @@ export var UpdateFirewallConfigRequestBodyType$;
|
|
|
1291
1291
|
UpdateFirewallConfigRequestBodyType$.outboundSchema = UpdateFirewallConfigRequestBodyType$outboundSchema;
|
|
1292
1292
|
})(UpdateFirewallConfigRequestBodyType$ || (UpdateFirewallConfigRequestBodyType$ = {}));
|
|
1293
1293
|
/** @internal */
|
|
1294
|
-
export const
|
|
1294
|
+
export const RequestBodyOp$inboundSchema = z.nativeEnum(RequestBodyOp);
|
|
1295
1295
|
/** @internal */
|
|
1296
|
-
export const
|
|
1296
|
+
export const RequestBodyOp$outboundSchema = RequestBodyOp$inboundSchema;
|
|
1297
1297
|
/**
|
|
1298
1298
|
* @internal
|
|
1299
1299
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1300
1300
|
*/
|
|
1301
|
-
export var
|
|
1302
|
-
(function (
|
|
1303
|
-
/** @deprecated use `
|
|
1304
|
-
|
|
1305
|
-
/** @deprecated use `
|
|
1306
|
-
|
|
1307
|
-
})(
|
|
1301
|
+
export var RequestBodyOp$;
|
|
1302
|
+
(function (RequestBodyOp$) {
|
|
1303
|
+
/** @deprecated use `RequestBodyOp$inboundSchema` instead. */
|
|
1304
|
+
RequestBodyOp$.inboundSchema = RequestBodyOp$inboundSchema;
|
|
1305
|
+
/** @deprecated use `RequestBodyOp$outboundSchema` instead. */
|
|
1306
|
+
RequestBodyOp$.outboundSchema = RequestBodyOp$outboundSchema;
|
|
1307
|
+
})(RequestBodyOp$ || (RequestBodyOp$ = {}));
|
|
1308
1308
|
/** @internal */
|
|
1309
1309
|
export const UpdateFirewallConfigRequestBodySecurityRequest2Value$inboundSchema = z.union([z.string(), z.array(z.string()), z.number()]);
|
|
1310
1310
|
/** @internal */
|
|
@@ -1327,17 +1327,17 @@ export function updateFirewallConfigRequestBodySecurityRequest2ValueFromJSON(jso
|
|
|
1327
1327
|
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityRequest2Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequest2Value' from JSON`);
|
|
1328
1328
|
}
|
|
1329
1329
|
/** @internal */
|
|
1330
|
-
export const
|
|
1330
|
+
export const RequestBodyConditions$inboundSchema = z.object({
|
|
1331
1331
|
type: UpdateFirewallConfigRequestBodyType$inboundSchema,
|
|
1332
|
-
op:
|
|
1332
|
+
op: RequestBodyOp$inboundSchema,
|
|
1333
1333
|
neg: z.boolean().optional(),
|
|
1334
1334
|
key: z.string().optional(),
|
|
1335
1335
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
1336
1336
|
});
|
|
1337
1337
|
/** @internal */
|
|
1338
|
-
export const
|
|
1338
|
+
export const RequestBodyConditions$outboundSchema = z.object({
|
|
1339
1339
|
type: UpdateFirewallConfigRequestBodyType$outboundSchema,
|
|
1340
|
-
op:
|
|
1340
|
+
op: RequestBodyOp$outboundSchema,
|
|
1341
1341
|
neg: z.boolean().optional(),
|
|
1342
1342
|
key: z.string().optional(),
|
|
1343
1343
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
@@ -1346,43 +1346,43 @@ export const Conditions$outboundSchema = z.object({
|
|
|
1346
1346
|
* @internal
|
|
1347
1347
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1348
1348
|
*/
|
|
1349
|
-
export var
|
|
1350
|
-
(function (
|
|
1351
|
-
/** @deprecated use `
|
|
1352
|
-
|
|
1353
|
-
/** @deprecated use `
|
|
1354
|
-
|
|
1355
|
-
})(
|
|
1356
|
-
export function
|
|
1357
|
-
return JSON.stringify(
|
|
1349
|
+
export var RequestBodyConditions$;
|
|
1350
|
+
(function (RequestBodyConditions$) {
|
|
1351
|
+
/** @deprecated use `RequestBodyConditions$inboundSchema` instead. */
|
|
1352
|
+
RequestBodyConditions$.inboundSchema = RequestBodyConditions$inboundSchema;
|
|
1353
|
+
/** @deprecated use `RequestBodyConditions$outboundSchema` instead. */
|
|
1354
|
+
RequestBodyConditions$.outboundSchema = RequestBodyConditions$outboundSchema;
|
|
1355
|
+
})(RequestBodyConditions$ || (RequestBodyConditions$ = {}));
|
|
1356
|
+
export function requestBodyConditionsToJSON(requestBodyConditions) {
|
|
1357
|
+
return JSON.stringify(RequestBodyConditions$outboundSchema.parse(requestBodyConditions));
|
|
1358
1358
|
}
|
|
1359
|
-
export function
|
|
1360
|
-
return safeParse(jsonString, (x) =>
|
|
1359
|
+
export function requestBodyConditionsFromJSON(jsonString) {
|
|
1360
|
+
return safeParse(jsonString, (x) => RequestBodyConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyConditions' from JSON`);
|
|
1361
1361
|
}
|
|
1362
1362
|
/** @internal */
|
|
1363
|
-
export const
|
|
1364
|
-
conditions: z.array(z.lazy(() =>
|
|
1363
|
+
export const RequestBodyConditionGroup$inboundSchema = z.object({
|
|
1364
|
+
conditions: z.array(z.lazy(() => RequestBodyConditions$inboundSchema)),
|
|
1365
1365
|
});
|
|
1366
1366
|
/** @internal */
|
|
1367
|
-
export const
|
|
1368
|
-
conditions: z.array(z.lazy(() =>
|
|
1367
|
+
export const RequestBodyConditionGroup$outboundSchema = z.object({
|
|
1368
|
+
conditions: z.array(z.lazy(() => RequestBodyConditions$outboundSchema)),
|
|
1369
1369
|
});
|
|
1370
1370
|
/**
|
|
1371
1371
|
* @internal
|
|
1372
1372
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1373
1373
|
*/
|
|
1374
|
-
export var
|
|
1375
|
-
(function (
|
|
1376
|
-
/** @deprecated use `
|
|
1377
|
-
|
|
1378
|
-
/** @deprecated use `
|
|
1379
|
-
|
|
1380
|
-
})(
|
|
1381
|
-
export function
|
|
1382
|
-
return JSON.stringify(
|
|
1374
|
+
export var RequestBodyConditionGroup$;
|
|
1375
|
+
(function (RequestBodyConditionGroup$) {
|
|
1376
|
+
/** @deprecated use `RequestBodyConditionGroup$inboundSchema` instead. */
|
|
1377
|
+
RequestBodyConditionGroup$.inboundSchema = RequestBodyConditionGroup$inboundSchema;
|
|
1378
|
+
/** @deprecated use `RequestBodyConditionGroup$outboundSchema` instead. */
|
|
1379
|
+
RequestBodyConditionGroup$.outboundSchema = RequestBodyConditionGroup$outboundSchema;
|
|
1380
|
+
})(RequestBodyConditionGroup$ || (RequestBodyConditionGroup$ = {}));
|
|
1381
|
+
export function requestBodyConditionGroupToJSON(requestBodyConditionGroup) {
|
|
1382
|
+
return JSON.stringify(RequestBodyConditionGroup$outboundSchema.parse(requestBodyConditionGroup));
|
|
1383
1383
|
}
|
|
1384
|
-
export function
|
|
1385
|
-
return safeParse(jsonString, (x) =>
|
|
1384
|
+
export function requestBodyConditionGroupFromJSON(jsonString) {
|
|
1385
|
+
return safeParse(jsonString, (x) => RequestBodyConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyConditionGroup' from JSON`);
|
|
1386
1386
|
}
|
|
1387
1387
|
/** @internal */
|
|
1388
1388
|
export const UpdateFirewallConfigRequestBodySecurityRequest2ValueAction$inboundSchema = z.nativeEnum(UpdateFirewallConfigRequestBodySecurityRequest2ValueAction);
|
|
@@ -1415,103 +1415,108 @@ export var RateLimitAlgo$;
|
|
|
1415
1415
|
RateLimitAlgo$.outboundSchema = RateLimitAlgo$outboundSchema;
|
|
1416
1416
|
})(RateLimitAlgo$ || (RateLimitAlgo$ = {}));
|
|
1417
1417
|
/** @internal */
|
|
1418
|
-
export const
|
|
1419
|
-
.nativeEnum(Action1);
|
|
1418
|
+
export const UpdateFirewallConfigAction1$inboundSchema = z.nativeEnum(UpdateFirewallConfigAction1);
|
|
1420
1419
|
/** @internal */
|
|
1421
|
-
export const
|
|
1420
|
+
export const UpdateFirewallConfigAction1$outboundSchema = UpdateFirewallConfigAction1$inboundSchema;
|
|
1422
1421
|
/**
|
|
1423
1422
|
* @internal
|
|
1424
1423
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1425
1424
|
*/
|
|
1426
|
-
export var
|
|
1427
|
-
(function (
|
|
1428
|
-
/** @deprecated use `
|
|
1429
|
-
|
|
1430
|
-
/** @deprecated use `
|
|
1431
|
-
|
|
1432
|
-
})(
|
|
1425
|
+
export var UpdateFirewallConfigAction1$;
|
|
1426
|
+
(function (UpdateFirewallConfigAction1$) {
|
|
1427
|
+
/** @deprecated use `UpdateFirewallConfigAction1$inboundSchema` instead. */
|
|
1428
|
+
UpdateFirewallConfigAction1$.inboundSchema = UpdateFirewallConfigAction1$inboundSchema;
|
|
1429
|
+
/** @deprecated use `UpdateFirewallConfigAction1$outboundSchema` instead. */
|
|
1430
|
+
UpdateFirewallConfigAction1$.outboundSchema = UpdateFirewallConfigAction1$outboundSchema;
|
|
1431
|
+
})(UpdateFirewallConfigAction1$ || (UpdateFirewallConfigAction1$ = {}));
|
|
1433
1432
|
/** @internal */
|
|
1434
|
-
export const
|
|
1433
|
+
export const UpdateFirewallConfigRateLimitAction$inboundSchema = z.union([UpdateFirewallConfigAction1$inboundSchema, z.any()]);
|
|
1435
1434
|
/** @internal */
|
|
1436
|
-
export const
|
|
1435
|
+
export const UpdateFirewallConfigRateLimitAction$outboundSchema = z.union([UpdateFirewallConfigAction1$outboundSchema, z.any()]);
|
|
1437
1436
|
/**
|
|
1438
1437
|
* @internal
|
|
1439
1438
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1440
1439
|
*/
|
|
1441
|
-
export var
|
|
1442
|
-
(function (
|
|
1443
|
-
/** @deprecated use `
|
|
1444
|
-
|
|
1445
|
-
/** @deprecated use `
|
|
1446
|
-
|
|
1447
|
-
})(
|
|
1448
|
-
export function
|
|
1449
|
-
return JSON.stringify(
|
|
1440
|
+
export var UpdateFirewallConfigRateLimitAction$;
|
|
1441
|
+
(function (UpdateFirewallConfigRateLimitAction$) {
|
|
1442
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitAction$inboundSchema` instead. */
|
|
1443
|
+
UpdateFirewallConfigRateLimitAction$.inboundSchema = UpdateFirewallConfigRateLimitAction$inboundSchema;
|
|
1444
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitAction$outboundSchema` instead. */
|
|
1445
|
+
UpdateFirewallConfigRateLimitAction$.outboundSchema = UpdateFirewallConfigRateLimitAction$outboundSchema;
|
|
1446
|
+
})(UpdateFirewallConfigRateLimitAction$ || (UpdateFirewallConfigRateLimitAction$ = {}));
|
|
1447
|
+
export function updateFirewallConfigRateLimitActionToJSON(updateFirewallConfigRateLimitAction) {
|
|
1448
|
+
return JSON.stringify(UpdateFirewallConfigRateLimitAction$outboundSchema.parse(updateFirewallConfigRateLimitAction));
|
|
1450
1449
|
}
|
|
1451
|
-
export function
|
|
1452
|
-
return safeParse(jsonString, (x) =>
|
|
1450
|
+
export function updateFirewallConfigRateLimitActionFromJSON(jsonString) {
|
|
1451
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRateLimitAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRateLimitAction' from JSON`);
|
|
1453
1452
|
}
|
|
1454
1453
|
/** @internal */
|
|
1455
|
-
export const
|
|
1454
|
+
export const UpdateFirewallConfigRateLimit1$inboundSchema = z.object({
|
|
1456
1455
|
algo: RateLimitAlgo$inboundSchema,
|
|
1457
1456
|
window: z.number(),
|
|
1458
1457
|
limit: z.number(),
|
|
1459
1458
|
keys: z.array(z.string()),
|
|
1460
|
-
action: z.nullable(z.union([
|
|
1459
|
+
action: z.nullable(z.union([UpdateFirewallConfigAction1$inboundSchema, z.any()])).optional(),
|
|
1461
1460
|
});
|
|
1462
1461
|
/** @internal */
|
|
1463
|
-
export const
|
|
1462
|
+
export const UpdateFirewallConfigRateLimit1$outboundSchema = z.object({
|
|
1464
1463
|
algo: RateLimitAlgo$outboundSchema,
|
|
1465
1464
|
window: z.number(),
|
|
1466
1465
|
limit: z.number(),
|
|
1467
1466
|
keys: z.array(z.string()),
|
|
1468
|
-
action: z.nullable(z.union([
|
|
1467
|
+
action: z.nullable(z.union([UpdateFirewallConfigAction1$outboundSchema, z.any()])).optional(),
|
|
1469
1468
|
});
|
|
1470
1469
|
/**
|
|
1471
1470
|
* @internal
|
|
1472
1471
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1473
1472
|
*/
|
|
1474
|
-
export var
|
|
1475
|
-
(function (
|
|
1476
|
-
/** @deprecated use `
|
|
1477
|
-
|
|
1478
|
-
/** @deprecated use `
|
|
1479
|
-
|
|
1480
|
-
})(
|
|
1481
|
-
export function
|
|
1482
|
-
return JSON.stringify(
|
|
1473
|
+
export var UpdateFirewallConfigRateLimit1$;
|
|
1474
|
+
(function (UpdateFirewallConfigRateLimit1$) {
|
|
1475
|
+
/** @deprecated use `UpdateFirewallConfigRateLimit1$inboundSchema` instead. */
|
|
1476
|
+
UpdateFirewallConfigRateLimit1$.inboundSchema = UpdateFirewallConfigRateLimit1$inboundSchema;
|
|
1477
|
+
/** @deprecated use `UpdateFirewallConfigRateLimit1$outboundSchema` instead. */
|
|
1478
|
+
UpdateFirewallConfigRateLimit1$.outboundSchema = UpdateFirewallConfigRateLimit1$outboundSchema;
|
|
1479
|
+
})(UpdateFirewallConfigRateLimit1$ || (UpdateFirewallConfigRateLimit1$ = {}));
|
|
1480
|
+
export function updateFirewallConfigRateLimit1ToJSON(updateFirewallConfigRateLimit1) {
|
|
1481
|
+
return JSON.stringify(UpdateFirewallConfigRateLimit1$outboundSchema.parse(updateFirewallConfigRateLimit1));
|
|
1483
1482
|
}
|
|
1484
|
-
export function
|
|
1485
|
-
return safeParse(jsonString, (x) =>
|
|
1483
|
+
export function updateFirewallConfigRateLimit1FromJSON(jsonString) {
|
|
1484
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRateLimit1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRateLimit1' from JSON`);
|
|
1486
1485
|
}
|
|
1487
1486
|
/** @internal */
|
|
1488
|
-
export const
|
|
1487
|
+
export const RequestBodyRateLimit$inboundSchema = z.union([
|
|
1488
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$inboundSchema),
|
|
1489
|
+
z.any(),
|
|
1490
|
+
]);
|
|
1489
1491
|
/** @internal */
|
|
1490
|
-
export const
|
|
1492
|
+
export const RequestBodyRateLimit$outboundSchema = z.union([
|
|
1493
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$outboundSchema),
|
|
1494
|
+
z.any(),
|
|
1495
|
+
]);
|
|
1491
1496
|
/**
|
|
1492
1497
|
* @internal
|
|
1493
1498
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1494
1499
|
*/
|
|
1495
|
-
export var
|
|
1496
|
-
(function (
|
|
1497
|
-
/** @deprecated use `
|
|
1498
|
-
|
|
1499
|
-
/** @deprecated use `
|
|
1500
|
-
|
|
1501
|
-
})(
|
|
1502
|
-
export function
|
|
1503
|
-
return JSON.stringify(
|
|
1500
|
+
export var RequestBodyRateLimit$;
|
|
1501
|
+
(function (RequestBodyRateLimit$) {
|
|
1502
|
+
/** @deprecated use `RequestBodyRateLimit$inboundSchema` instead. */
|
|
1503
|
+
RequestBodyRateLimit$.inboundSchema = RequestBodyRateLimit$inboundSchema;
|
|
1504
|
+
/** @deprecated use `RequestBodyRateLimit$outboundSchema` instead. */
|
|
1505
|
+
RequestBodyRateLimit$.outboundSchema = RequestBodyRateLimit$outboundSchema;
|
|
1506
|
+
})(RequestBodyRateLimit$ || (RequestBodyRateLimit$ = {}));
|
|
1507
|
+
export function requestBodyRateLimitToJSON(requestBodyRateLimit) {
|
|
1508
|
+
return JSON.stringify(RequestBodyRateLimit$outboundSchema.parse(requestBodyRateLimit));
|
|
1504
1509
|
}
|
|
1505
|
-
export function
|
|
1506
|
-
return safeParse(jsonString, (x) =>
|
|
1510
|
+
export function requestBodyRateLimitFromJSON(jsonString) {
|
|
1511
|
+
return safeParse(jsonString, (x) => RequestBodyRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyRateLimit' from JSON`);
|
|
1507
1512
|
}
|
|
1508
1513
|
/** @internal */
|
|
1509
|
-
export const
|
|
1514
|
+
export const UpdateFirewallConfigRedirect1$inboundSchema = z.object({
|
|
1510
1515
|
location: z.string(),
|
|
1511
1516
|
permanent: z.boolean(),
|
|
1512
1517
|
});
|
|
1513
1518
|
/** @internal */
|
|
1514
|
-
export const
|
|
1519
|
+
export const UpdateFirewallConfigRedirect1$outboundSchema = z.object({
|
|
1515
1520
|
location: z.string(),
|
|
1516
1521
|
permanent: z.boolean(),
|
|
1517
1522
|
});
|
|
@@ -1519,53 +1524,71 @@ export const Redirect1$outboundSchema = z.object({
|
|
|
1519
1524
|
* @internal
|
|
1520
1525
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1521
1526
|
*/
|
|
1522
|
-
export var
|
|
1523
|
-
(function (
|
|
1524
|
-
/** @deprecated use `
|
|
1525
|
-
|
|
1526
|
-
/** @deprecated use `
|
|
1527
|
-
|
|
1528
|
-
})(
|
|
1529
|
-
export function
|
|
1530
|
-
return JSON.stringify(
|
|
1527
|
+
export var UpdateFirewallConfigRedirect1$;
|
|
1528
|
+
(function (UpdateFirewallConfigRedirect1$) {
|
|
1529
|
+
/** @deprecated use `UpdateFirewallConfigRedirect1$inboundSchema` instead. */
|
|
1530
|
+
UpdateFirewallConfigRedirect1$.inboundSchema = UpdateFirewallConfigRedirect1$inboundSchema;
|
|
1531
|
+
/** @deprecated use `UpdateFirewallConfigRedirect1$outboundSchema` instead. */
|
|
1532
|
+
UpdateFirewallConfigRedirect1$.outboundSchema = UpdateFirewallConfigRedirect1$outboundSchema;
|
|
1533
|
+
})(UpdateFirewallConfigRedirect1$ || (UpdateFirewallConfigRedirect1$ = {}));
|
|
1534
|
+
export function updateFirewallConfigRedirect1ToJSON(updateFirewallConfigRedirect1) {
|
|
1535
|
+
return JSON.stringify(UpdateFirewallConfigRedirect1$outboundSchema.parse(updateFirewallConfigRedirect1));
|
|
1531
1536
|
}
|
|
1532
|
-
export function
|
|
1533
|
-
return safeParse(jsonString, (x) =>
|
|
1537
|
+
export function updateFirewallConfigRedirect1FromJSON(jsonString) {
|
|
1538
|
+
return safeParse(jsonString, (x) => UpdateFirewallConfigRedirect1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRedirect1' from JSON`);
|
|
1534
1539
|
}
|
|
1535
1540
|
/** @internal */
|
|
1536
|
-
export const
|
|
1541
|
+
export const RequestBodyRedirect$inboundSchema = z.union([
|
|
1542
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$inboundSchema),
|
|
1543
|
+
z.any(),
|
|
1544
|
+
]);
|
|
1537
1545
|
/** @internal */
|
|
1538
|
-
export const
|
|
1546
|
+
export const RequestBodyRedirect$outboundSchema = z.union([
|
|
1547
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$outboundSchema),
|
|
1548
|
+
z.any(),
|
|
1549
|
+
]);
|
|
1539
1550
|
/**
|
|
1540
1551
|
* @internal
|
|
1541
1552
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1542
1553
|
*/
|
|
1543
|
-
export var
|
|
1544
|
-
(function (
|
|
1545
|
-
/** @deprecated use `
|
|
1546
|
-
|
|
1547
|
-
/** @deprecated use `
|
|
1548
|
-
|
|
1549
|
-
})(
|
|
1550
|
-
export function
|
|
1551
|
-
return JSON.stringify(
|
|
1554
|
+
export var RequestBodyRedirect$;
|
|
1555
|
+
(function (RequestBodyRedirect$) {
|
|
1556
|
+
/** @deprecated use `RequestBodyRedirect$inboundSchema` instead. */
|
|
1557
|
+
RequestBodyRedirect$.inboundSchema = RequestBodyRedirect$inboundSchema;
|
|
1558
|
+
/** @deprecated use `RequestBodyRedirect$outboundSchema` instead. */
|
|
1559
|
+
RequestBodyRedirect$.outboundSchema = RequestBodyRedirect$outboundSchema;
|
|
1560
|
+
})(RequestBodyRedirect$ || (RequestBodyRedirect$ = {}));
|
|
1561
|
+
export function requestBodyRedirectToJSON(requestBodyRedirect) {
|
|
1562
|
+
return JSON.stringify(RequestBodyRedirect$outboundSchema.parse(requestBodyRedirect));
|
|
1552
1563
|
}
|
|
1553
|
-
export function
|
|
1554
|
-
return safeParse(jsonString, (x) =>
|
|
1564
|
+
export function requestBodyRedirectFromJSON(jsonString) {
|
|
1565
|
+
return safeParse(jsonString, (x) => RequestBodyRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyRedirect' from JSON`);
|
|
1555
1566
|
}
|
|
1556
1567
|
/** @internal */
|
|
1557
|
-
export const
|
|
1568
|
+
export const RequestBodyMitigate$inboundSchema = z.object({
|
|
1558
1569
|
action: UpdateFirewallConfigRequestBodySecurityRequest2ValueAction$inboundSchema,
|
|
1559
|
-
rateLimit: z.nullable(z.union([
|
|
1560
|
-
|
|
1570
|
+
rateLimit: z.nullable(z.union([
|
|
1571
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$inboundSchema),
|
|
1572
|
+
z.any(),
|
|
1573
|
+
])).optional(),
|
|
1574
|
+
redirect: z.nullable(z.union([
|
|
1575
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$inboundSchema),
|
|
1576
|
+
z.any(),
|
|
1577
|
+
])).optional(),
|
|
1561
1578
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1562
1579
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1563
1580
|
});
|
|
1564
1581
|
/** @internal */
|
|
1565
|
-
export const
|
|
1582
|
+
export const RequestBodyMitigate$outboundSchema = z.object({
|
|
1566
1583
|
action: UpdateFirewallConfigRequestBodySecurityRequest2ValueAction$outboundSchema,
|
|
1567
|
-
rateLimit: z.nullable(z.union([
|
|
1568
|
-
|
|
1584
|
+
rateLimit: z.nullable(z.union([
|
|
1585
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$outboundSchema),
|
|
1586
|
+
z.any(),
|
|
1587
|
+
])).optional(),
|
|
1588
|
+
redirect: z.nullable(z.union([
|
|
1589
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$outboundSchema),
|
|
1590
|
+
z.any(),
|
|
1591
|
+
])).optional(),
|
|
1569
1592
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1570
1593
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1571
1594
|
});
|
|
@@ -1573,26 +1596,26 @@ export const Mitigate$outboundSchema = z.object({
|
|
|
1573
1596
|
* @internal
|
|
1574
1597
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1575
1598
|
*/
|
|
1576
|
-
export var
|
|
1577
|
-
(function (
|
|
1578
|
-
/** @deprecated use `
|
|
1579
|
-
|
|
1580
|
-
/** @deprecated use `
|
|
1581
|
-
|
|
1582
|
-
})(
|
|
1583
|
-
export function
|
|
1584
|
-
return JSON.stringify(
|
|
1599
|
+
export var RequestBodyMitigate$;
|
|
1600
|
+
(function (RequestBodyMitigate$) {
|
|
1601
|
+
/** @deprecated use `RequestBodyMitigate$inboundSchema` instead. */
|
|
1602
|
+
RequestBodyMitigate$.inboundSchema = RequestBodyMitigate$inboundSchema;
|
|
1603
|
+
/** @deprecated use `RequestBodyMitigate$outboundSchema` instead. */
|
|
1604
|
+
RequestBodyMitigate$.outboundSchema = RequestBodyMitigate$outboundSchema;
|
|
1605
|
+
})(RequestBodyMitigate$ || (RequestBodyMitigate$ = {}));
|
|
1606
|
+
export function requestBodyMitigateToJSON(requestBodyMitigate) {
|
|
1607
|
+
return JSON.stringify(RequestBodyMitigate$outboundSchema.parse(requestBodyMitigate));
|
|
1585
1608
|
}
|
|
1586
|
-
export function
|
|
1587
|
-
return safeParse(jsonString, (x) =>
|
|
1609
|
+
export function requestBodyMitigateFromJSON(jsonString) {
|
|
1610
|
+
return safeParse(jsonString, (x) => RequestBodyMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyMitigate' from JSON`);
|
|
1588
1611
|
}
|
|
1589
1612
|
/** @internal */
|
|
1590
1613
|
export const UpdateFirewallConfigRequestBodySecurityRequest2Action$inboundSchema = z.object({
|
|
1591
|
-
mitigate: z.lazy(() =>
|
|
1614
|
+
mitigate: z.lazy(() => RequestBodyMitigate$inboundSchema).optional(),
|
|
1592
1615
|
});
|
|
1593
1616
|
/** @internal */
|
|
1594
1617
|
export const UpdateFirewallConfigRequestBodySecurityRequest2Action$outboundSchema = z.object({
|
|
1595
|
-
mitigate: z.lazy(() =>
|
|
1618
|
+
mitigate: z.lazy(() => RequestBodyMitigate$outboundSchema).optional(),
|
|
1596
1619
|
});
|
|
1597
1620
|
/**
|
|
1598
1621
|
* @internal
|
|
@@ -1612,50 +1635,49 @@ export function updateFirewallConfigRequestBodySecurityRequest2ActionFromJSON(js
|
|
|
1612
1635
|
return safeParse(jsonString, (x) => UpdateFirewallConfigRequestBodySecurityRequest2Action$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequest2Action' from JSON`);
|
|
1613
1636
|
}
|
|
1614
1637
|
/** @internal */
|
|
1615
|
-
export const
|
|
1616
|
-
.object({
|
|
1638
|
+
export const RequestBodyValue$inboundSchema = z.object({
|
|
1617
1639
|
name: z.string(),
|
|
1618
1640
|
description: z.string().optional(),
|
|
1619
1641
|
active: z.boolean(),
|
|
1620
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
1642
|
+
conditionGroup: z.array(z.lazy(() => RequestBodyConditionGroup$inboundSchema)),
|
|
1621
1643
|
action: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequest2Action$inboundSchema),
|
|
1622
1644
|
});
|
|
1623
1645
|
/** @internal */
|
|
1624
|
-
export const
|
|
1646
|
+
export const RequestBodyValue$outboundSchema = z.object({
|
|
1625
1647
|
name: z.string(),
|
|
1626
1648
|
description: z.string().optional(),
|
|
1627
1649
|
active: z.boolean(),
|
|
1628
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
1650
|
+
conditionGroup: z.array(z.lazy(() => RequestBodyConditionGroup$outboundSchema)),
|
|
1629
1651
|
action: z.lazy(() => UpdateFirewallConfigRequestBodySecurityRequest2Action$outboundSchema),
|
|
1630
1652
|
});
|
|
1631
1653
|
/**
|
|
1632
1654
|
* @internal
|
|
1633
1655
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1634
1656
|
*/
|
|
1635
|
-
export var
|
|
1636
|
-
(function (
|
|
1637
|
-
/** @deprecated use `
|
|
1638
|
-
|
|
1639
|
-
/** @deprecated use `
|
|
1640
|
-
|
|
1641
|
-
})(
|
|
1642
|
-
export function
|
|
1643
|
-
return JSON.stringify(
|
|
1657
|
+
export var RequestBodyValue$;
|
|
1658
|
+
(function (RequestBodyValue$) {
|
|
1659
|
+
/** @deprecated use `RequestBodyValue$inboundSchema` instead. */
|
|
1660
|
+
RequestBodyValue$.inboundSchema = RequestBodyValue$inboundSchema;
|
|
1661
|
+
/** @deprecated use `RequestBodyValue$outboundSchema` instead. */
|
|
1662
|
+
RequestBodyValue$.outboundSchema = RequestBodyValue$outboundSchema;
|
|
1663
|
+
})(RequestBodyValue$ || (RequestBodyValue$ = {}));
|
|
1664
|
+
export function requestBodyValueToJSON(requestBodyValue) {
|
|
1665
|
+
return JSON.stringify(RequestBodyValue$outboundSchema.parse(requestBodyValue));
|
|
1644
1666
|
}
|
|
1645
|
-
export function
|
|
1646
|
-
return safeParse(jsonString, (x) =>
|
|
1667
|
+
export function requestBodyValueFromJSON(jsonString) {
|
|
1668
|
+
return safeParse(jsonString, (x) => RequestBodyValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RequestBodyValue' from JSON`);
|
|
1647
1669
|
}
|
|
1648
1670
|
/** @internal */
|
|
1649
1671
|
export const UpdateFirewallConfigRequestBody2$inboundSchema = z.object({
|
|
1650
1672
|
action: UpdateFirewallConfigRequestBodyAction$inboundSchema,
|
|
1651
1673
|
id: z.nullable(z.any()).optional(),
|
|
1652
|
-
value: z.lazy(() =>
|
|
1674
|
+
value: z.lazy(() => RequestBodyValue$inboundSchema),
|
|
1653
1675
|
});
|
|
1654
1676
|
/** @internal */
|
|
1655
1677
|
export const UpdateFirewallConfigRequestBody2$outboundSchema = z.object({
|
|
1656
1678
|
action: UpdateFirewallConfigRequestBodyAction$outboundSchema,
|
|
1657
1679
|
id: z.nullable(z.any()).optional(),
|
|
1658
|
-
value: z.lazy(() =>
|
|
1680
|
+
value: z.lazy(() => RequestBodyValue$outboundSchema),
|
|
1659
1681
|
});
|
|
1660
1682
|
/**
|
|
1661
1683
|
* @internal
|