@vercel/sdk 1.6.2 → 1.6.4
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 -10
- package/bin/mcp-server.js +4541 -3497
- package/bin/mcp-server.js.map +36 -48
- package/docs/sdks/edgeconfig/README.md +2 -6
- package/docs/sdks/integrations/README.md +0 -161
- package/docs/sdks/logdrains/README.md +0 -260
- 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__/integrations.test.js +5 -40
- package/esm/__tests__/integrations.test.js.map +1 -1
- package/esm/__tests__/logdrains.test.js +7 -89
- package/esm/__tests__/logdrains.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 +164 -17
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/funcs/securityPutFirewallConfig.d.ts +19 -0
- package/esm/funcs/securityPutFirewallConfig.d.ts.map +1 -0
- package/esm/funcs/{logDrainsCreateConfigurableLogDrain.js → securityPutFirewallConfig.js} +13 -11
- 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/lib/matchers.d.ts +3 -1
- package/esm/lib/matchers.d.ts.map +1 -1
- package/esm/lib/matchers.js +10 -0
- package/esm/lib/matchers.js.map +1 -1
- package/esm/lib/sdks.js +7 -2
- package/esm/lib/sdks.js.map +1 -1
- 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 -11
- 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/{integrationsGitNamespaces.js.map → securityPutFirewallConfig.js.map} +1 -1
- 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 +87 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +57 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +277 -76
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +271 -73
- 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/createlogdrainop.d.ts +51 -51
- package/esm/models/createlogdrainop.d.ts.map +1 -1
- package/esm/models/createlogdrainop.js +74 -75
- package/esm/models/createlogdrainop.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 +221 -29
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +174 -11
- 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/exchangessotokenop.d.ts +34 -0
- package/esm/models/exchangessotokenop.d.ts.map +1 -1
- package/esm/models/exchangessotokenop.js +25 -0
- package/esm/models/exchangessotokenop.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/getconfigurationsop.d.ts +19 -16
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +25 -27
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getcustomenvironmentop.d.ts +3 -0
- package/esm/models/getcustomenvironmentop.d.ts.map +1 -1
- package/esm/models/getcustomenvironmentop.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/getintegrationlogdrainsop.d.ts +11 -11
- package/esm/models/getintegrationlogdrainsop.d.ts.map +1 -1
- package/esm/models/getintegrationlogdrainsop.js +14 -13
- package/esm/models/getintegrationlogdrainsop.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 +221 -29
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +173 -11
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getteammembersop.d.ts +9 -9
- package/esm/models/getteammembersop.js +3 -3
- package/esm/models/getteammembersop.js.map +1 -1
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts +3 -0
- package/esm/models/getv9projectsidornamecustomenvironmentsop.d.ts.map +1 -1
- 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 +229 -37
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +189 -23
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +221 -29
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +174 -11
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/userevent.d.ts +608 -524
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +748 -666
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/integrations.d.ts +0 -16
- package/esm/sdk/integrations.d.ts.map +1 -1
- package/esm/sdk/integrations.js +0 -20
- package/esm/sdk/integrations.js.map +1 -1
- package/esm/sdk/logdrains.d.ts +0 -24
- package/esm/sdk/logdrains.d.ts.map +1 -1
- package/esm/sdk/logdrains.js +0 -30
- package/esm/sdk/logdrains.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__/integrations.test.ts +9 -44
- package/src/__tests__/logdrains.test.ts +13 -95
- package/src/__tests__/marketplace.test.ts +7 -2
- package/src/__tests__/projects.test.ts +4 -4
- package/src/__tests__/security.test.ts +166 -19
- package/src/funcs/{logDrainsCreateConfigurableLogDrain.ts → securityPutFirewallConfig.ts} +31 -22
- package/src/lib/config.ts +3 -3
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +8 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -11
- package/src/mcp-server/tools/securityPutFirewallConfig.ts +37 -0
- package/src/models/authtoken.ts +2 -0
- package/src/models/authuser.ts +126 -0
- package/src/models/canceldeploymentop.ts +592 -149
- package/src/models/createdeploymentop.ts +616 -165
- package/src/models/createlogdrainop.ts +95 -112
- package/src/models/createprojectenvop.ts +24 -30
- package/src/models/createprojectop.ts +378 -21
- package/src/models/editprojectenvop.ts +8 -11
- package/src/models/exchangessotokenop.ts +44 -0
- package/src/models/filterprojectenvsop.ts +36 -45
- package/src/models/getconfigurationsop.ts +34 -39
- package/src/models/getcustomenvironmentop.ts +3 -0
- package/src/models/getdeploymentop.ts +1288 -353
- package/src/models/getfirewallconfigop.ts +555 -410
- package/src/models/getintegrationlogdrainsop.ts +15 -20
- package/src/models/getprojectdomainsop.ts +470 -63
- package/src/models/getprojectenvop.ts +20 -26
- package/src/models/getprojectsop.ts +380 -22
- package/src/models/getteammembersop.ts +3 -3
- package/src/models/getv9projectsidornamecustomenvironmentsop.ts +3 -0
- 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 +395 -40
- package/src/models/updateprojectop.ts +378 -21
- package/src/models/userevent.ts +1363 -1203
- package/src/sdk/integrations.ts +0 -44
- package/src/sdk/logdrains.ts +0 -66
- package/src/sdk/security.ts +22 -0
- package/vercel-spec.json +1780 -1622
- package/esm/funcs/integrationsGitNamespaces.d.ts +0 -18
- package/esm/funcs/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/funcs/integrationsGitNamespaces.js +0 -86
- package/esm/funcs/integrationsGitNamespaces.js.map +0 -1
- package/esm/funcs/integrationsSearchRepo.d.ts +0 -17
- package/esm/funcs/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/funcs/integrationsSearchRepo.js +0 -89
- package/esm/funcs/integrationsSearchRepo.js.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts +0 -18
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts +0 -18
- package/esm/funcs/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetAllLogDrains.js +0 -88
- package/esm/funcs/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts +0 -19
- package/esm/funcs/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js +0 -92
- package/esm/funcs/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsGitNamespaces.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsGitNamespaces.js +0 -28
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts +0 -7
- package/esm/mcp-server/tools/integrationsSearchRepo.d.ts.map +0 -1
- package/esm/mcp-server/tools/integrationsSearchRepo.js +0 -28
- package/esm/mcp-server/tools/integrationsSearchRepo.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsCreateConfigurableLogDrain.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetAllLogDrains.js.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts +0 -7
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.d.ts.map +0 -1
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js +0 -28
- package/esm/mcp-server/tools/logDrainsGetConfigurableLogDrain.js.map +0 -1
- package/esm/models/createconfigurablelogdrainop.d.ts +0 -451
- package/esm/models/createconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/createconfigurablelogdrainop.js +0 -348
- package/esm/models/createconfigurablelogdrainop.js.map +0 -1
- package/esm/models/getalllogdrainsop.d.ts +0 -294
- package/esm/models/getalllogdrainsop.d.ts.map +0 -1
- package/esm/models/getalllogdrainsop.js +0 -231
- package/esm/models/getalllogdrainsop.js.map +0 -1
- package/esm/models/getconfigurablelogdrainop.d.ts +0 -292
- package/esm/models/getconfigurablelogdrainop.d.ts.map +0 -1
- package/esm/models/getconfigurablelogdrainop.js +0 -230
- package/esm/models/getconfigurablelogdrainop.js.map +0 -1
- package/esm/models/gitnamespacesop.d.ts +0 -126
- package/esm/models/gitnamespacesop.d.ts.map +0 -1
- package/esm/models/gitnamespacesop.js +0 -115
- package/esm/models/gitnamespacesop.js.map +0 -1
- package/esm/models/searchrepoop.d.ts +0 -421
- package/esm/models/searchrepoop.d.ts.map +0 -1
- package/esm/models/searchrepoop.js +0 -385
- package/esm/models/searchrepoop.js.map +0 -1
- package/src/funcs/integrationsGitNamespaces.ts +0 -185
- package/src/funcs/integrationsSearchRepo.ts +0 -181
- package/src/funcs/logDrainsGetAllLogDrains.ts +0 -187
- package/src/funcs/logDrainsGetConfigurableLogDrain.ts +0 -199
- package/src/mcp-server/tools/integrationsGitNamespaces.ts +0 -37
- package/src/mcp-server/tools/integrationsSearchRepo.ts +0 -37
- package/src/mcp-server/tools/logDrainsCreateConfigurableLogDrain.ts +0 -39
- package/src/mcp-server/tools/logDrainsGetAllLogDrains.ts +0 -37
- package/src/mcp-server/tools/logDrainsGetConfigurableLogDrain.ts +0 -39
- package/src/models/createconfigurablelogdrainop.ts +0 -652
- package/src/models/getalllogdrainsop.ts +0 -416
- package/src/models/getconfigurablelogdrainop.ts +0 -420
- package/src/models/gitnamespacesop.ts +0 -235
- package/src/models/searchrepoop.ts +0 -784
|
@@ -97,7 +97,7 @@ export const UpdateFirewallConfigRequestBodySecurityRequest9ValueAction = {
|
|
|
97
97
|
export type UpdateFirewallConfigRequestBodySecurityRequest9ValueAction =
|
|
98
98
|
ClosedEnum<typeof UpdateFirewallConfigRequestBodySecurityRequest9ValueAction>;
|
|
99
99
|
|
|
100
|
-
export type
|
|
100
|
+
export type UpdateFirewallConfigRequestBodySecurityRequest9Value = {
|
|
101
101
|
hostname: string;
|
|
102
102
|
ip: string;
|
|
103
103
|
notes?: string | undefined;
|
|
@@ -110,7 +110,7 @@ export type UpdateFirewallConfigRequestBodySecurityRequestValue = {
|
|
|
110
110
|
export type UpdateFirewallConfigRequestBody9 = {
|
|
111
111
|
action: UpdateFirewallConfigRequestBodySecurityRequest9Action;
|
|
112
112
|
id: string;
|
|
113
|
-
value:
|
|
113
|
+
value: UpdateFirewallConfigRequestBodySecurityRequest9Value;
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
export const UpdateFirewallConfigRequestBodySecurityRequest8Action = {
|
|
@@ -129,7 +129,7 @@ export const UpdateFirewallConfigRequestBodySecurityRequest8ValueAction = {
|
|
|
129
129
|
export type UpdateFirewallConfigRequestBodySecurityRequest8ValueAction =
|
|
130
130
|
ClosedEnum<typeof UpdateFirewallConfigRequestBodySecurityRequest8ValueAction>;
|
|
131
131
|
|
|
132
|
-
export type
|
|
132
|
+
export type UpdateFirewallConfigRequestBodySecurityRequestValue = {
|
|
133
133
|
hostname: string;
|
|
134
134
|
ip: string;
|
|
135
135
|
notes?: string | undefined;
|
|
@@ -142,7 +142,7 @@ export type UpdateFirewallConfigRequestBodySecurityValue = {
|
|
|
142
142
|
export type UpdateFirewallConfigRequestBody8 = {
|
|
143
143
|
action: UpdateFirewallConfigRequestBodySecurityRequest8Action;
|
|
144
144
|
id?: any | null | undefined;
|
|
145
|
-
value:
|
|
145
|
+
value: UpdateFirewallConfigRequestBodySecurityRequestValue;
|
|
146
146
|
};
|
|
147
147
|
|
|
148
148
|
export const UpdateFirewallConfigRequestBodySecurityRequest7Action = {
|
|
@@ -190,7 +190,7 @@ export const UpdateFirewallConfigRequestBodySecurityRequest6ValueAction = {
|
|
|
190
190
|
export type UpdateFirewallConfigRequestBodySecurityRequest6ValueAction =
|
|
191
191
|
ClosedEnum<typeof UpdateFirewallConfigRequestBodySecurityRequest6ValueAction>;
|
|
192
192
|
|
|
193
|
-
export type
|
|
193
|
+
export type UpdateFirewallConfigRequestBodySecurityValue = {
|
|
194
194
|
active: boolean;
|
|
195
195
|
action: UpdateFirewallConfigRequestBodySecurityRequest6ValueAction;
|
|
196
196
|
};
|
|
@@ -201,7 +201,7 @@ export type UpdateFirewallConfigRequestBodyValue = {
|
|
|
201
201
|
export type UpdateFirewallConfigRequestBody6 = {
|
|
202
202
|
action: UpdateFirewallConfigRequestBodySecurityRequest6Action;
|
|
203
203
|
id: Id;
|
|
204
|
-
value:
|
|
204
|
+
value: UpdateFirewallConfigRequestBodySecurityValue;
|
|
205
205
|
};
|
|
206
206
|
|
|
207
207
|
export const UpdateFirewallConfigRequestBodySecurityRequest5Action = {
|
|
@@ -280,7 +280,7 @@ export type UpdateFirewallConfigRequestBodySecurityType = ClosedEnum<
|
|
|
280
280
|
/**
|
|
281
281
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value
|
|
282
282
|
*/
|
|
283
|
-
export const
|
|
283
|
+
export const UpdateFirewallConfigRequestBodyOp = {
|
|
284
284
|
Re: "re",
|
|
285
285
|
Eq: "eq",
|
|
286
286
|
Neq: "neq",
|
|
@@ -299,14 +299,16 @@ export const RequestBodyOp = {
|
|
|
299
299
|
/**
|
|
300
300
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value
|
|
301
301
|
*/
|
|
302
|
-
export type
|
|
302
|
+
export type UpdateFirewallConfigRequestBodyOp = ClosedEnum<
|
|
303
|
+
typeof UpdateFirewallConfigRequestBodyOp
|
|
304
|
+
>;
|
|
303
305
|
|
|
304
306
|
export type UpdateFirewallConfigRequestBodySecurityRequest3Value =
|
|
305
307
|
| string
|
|
306
308
|
| Array<string>
|
|
307
309
|
| number;
|
|
308
310
|
|
|
309
|
-
export type
|
|
311
|
+
export type UpdateFirewallConfigRequestBodyConditions = {
|
|
310
312
|
/**
|
|
311
313
|
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
312
314
|
*/
|
|
@@ -314,14 +316,14 @@ export type RequestBodyConditions = {
|
|
|
314
316
|
/**
|
|
315
317
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value
|
|
316
318
|
*/
|
|
317
|
-
op:
|
|
319
|
+
op: UpdateFirewallConfigRequestBodyOp;
|
|
318
320
|
neg?: boolean | undefined;
|
|
319
321
|
key?: string | undefined;
|
|
320
322
|
value?: string | Array<string> | number | undefined;
|
|
321
323
|
};
|
|
322
324
|
|
|
323
|
-
export type
|
|
324
|
-
conditions: Array<
|
|
325
|
+
export type UpdateFirewallConfigRequestBodyConditionGroup = {
|
|
326
|
+
conditions: Array<UpdateFirewallConfigRequestBodyConditions>;
|
|
325
327
|
};
|
|
326
328
|
|
|
327
329
|
export const UpdateFirewallConfigRequestBodySecurityRequest3ValueAction = {
|
|
@@ -343,54 +345,58 @@ export type UpdateFirewallConfigRateLimitAlgo = ClosedEnum<
|
|
|
343
345
|
typeof UpdateFirewallConfigRateLimitAlgo
|
|
344
346
|
>;
|
|
345
347
|
|
|
346
|
-
export const
|
|
348
|
+
export const UpdateFirewallConfigActionSecurity1 = {
|
|
347
349
|
Log: "log",
|
|
348
350
|
Challenge: "challenge",
|
|
349
351
|
Deny: "deny",
|
|
350
352
|
RateLimit: "rate_limit",
|
|
351
353
|
} as const;
|
|
352
|
-
export type
|
|
353
|
-
typeof
|
|
354
|
+
export type UpdateFirewallConfigActionSecurity1 = ClosedEnum<
|
|
355
|
+
typeof UpdateFirewallConfigActionSecurity1
|
|
354
356
|
>;
|
|
355
357
|
|
|
356
|
-
export type
|
|
357
|
-
|
|
|
358
|
+
export type UpdateFirewallConfigRateLimitSecurityAction =
|
|
359
|
+
| UpdateFirewallConfigActionSecurity1
|
|
358
360
|
| any;
|
|
359
361
|
|
|
360
|
-
export type
|
|
362
|
+
export type UpdateFirewallConfigRateLimitSecurity1 = {
|
|
361
363
|
algo: UpdateFirewallConfigRateLimitAlgo;
|
|
362
364
|
window: number;
|
|
363
365
|
limit: number;
|
|
364
366
|
keys: Array<string>;
|
|
365
|
-
action?:
|
|
367
|
+
action?: UpdateFirewallConfigActionSecurity1 | any | null | undefined;
|
|
366
368
|
};
|
|
367
369
|
|
|
368
|
-
export type
|
|
370
|
+
export type UpdateFirewallConfigRequestBodyRateLimit =
|
|
371
|
+
| UpdateFirewallConfigRateLimitSecurity1
|
|
372
|
+
| any;
|
|
369
373
|
|
|
370
|
-
export type
|
|
374
|
+
export type UpdateFirewallConfigRedirectSecurity1 = {
|
|
371
375
|
location: string;
|
|
372
376
|
permanent: boolean;
|
|
373
377
|
};
|
|
374
378
|
|
|
375
|
-
export type
|
|
379
|
+
export type UpdateFirewallConfigRequestBodyRedirect =
|
|
380
|
+
| UpdateFirewallConfigRedirectSecurity1
|
|
381
|
+
| any;
|
|
376
382
|
|
|
377
|
-
export type
|
|
383
|
+
export type UpdateFirewallConfigRequestBodyMitigate = {
|
|
378
384
|
action: UpdateFirewallConfigRequestBodySecurityRequest3ValueAction;
|
|
379
|
-
rateLimit?:
|
|
380
|
-
redirect?:
|
|
385
|
+
rateLimit?: UpdateFirewallConfigRateLimitSecurity1 | any | null | undefined;
|
|
386
|
+
redirect?: UpdateFirewallConfigRedirectSecurity1 | any | null | undefined;
|
|
381
387
|
actionDuration?: string | null | undefined;
|
|
382
388
|
bypassSystem?: boolean | null | undefined;
|
|
383
389
|
};
|
|
384
390
|
|
|
385
391
|
export type UpdateFirewallConfigRequestBodySecurityRequest3Action = {
|
|
386
|
-
mitigate?:
|
|
392
|
+
mitigate?: UpdateFirewallConfigRequestBodyMitigate | undefined;
|
|
387
393
|
};
|
|
388
394
|
|
|
389
|
-
export type
|
|
395
|
+
export type UpdateFirewallConfigRequestBodyValue = {
|
|
390
396
|
name: string;
|
|
391
397
|
description?: string | undefined;
|
|
392
398
|
active: boolean;
|
|
393
|
-
conditionGroup: Array<
|
|
399
|
+
conditionGroup: Array<UpdateFirewallConfigRequestBodyConditionGroup>;
|
|
394
400
|
action: UpdateFirewallConfigRequestBodySecurityRequest3Action;
|
|
395
401
|
};
|
|
396
402
|
|
|
@@ -400,7 +406,7 @@ export type RequestBodyValue = {
|
|
|
400
406
|
export type UpdateFirewallConfigRequestBody3 = {
|
|
401
407
|
action: UpdateFirewallConfigRequestBodySecurityAction;
|
|
402
408
|
id: string;
|
|
403
|
-
value:
|
|
409
|
+
value: UpdateFirewallConfigRequestBodyValue;
|
|
404
410
|
};
|
|
405
411
|
|
|
406
412
|
export const UpdateFirewallConfigRequestBodyAction = {
|
|
@@ -447,7 +453,7 @@ export type UpdateFirewallConfigRequestBodyType = ClosedEnum<
|
|
|
447
453
|
/**
|
|
448
454
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
|
|
449
455
|
*/
|
|
450
|
-
export const
|
|
456
|
+
export const RequestBodyOp = {
|
|
451
457
|
Re: "re",
|
|
452
458
|
Eq: "eq",
|
|
453
459
|
Neq: "neq",
|
|
@@ -466,14 +472,14 @@ export const Op = {
|
|
|
466
472
|
/**
|
|
467
473
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
|
|
468
474
|
*/
|
|
469
|
-
export type
|
|
475
|
+
export type RequestBodyOp = ClosedEnum<typeof RequestBodyOp>;
|
|
470
476
|
|
|
471
477
|
export type UpdateFirewallConfigRequestBodySecurityRequest2Value =
|
|
472
478
|
| string
|
|
473
479
|
| Array<string>
|
|
474
480
|
| number;
|
|
475
481
|
|
|
476
|
-
export type
|
|
482
|
+
export type RequestBodyConditions = {
|
|
477
483
|
/**
|
|
478
484
|
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
479
485
|
*/
|
|
@@ -481,14 +487,14 @@ export type Conditions = {
|
|
|
481
487
|
/**
|
|
482
488
|
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
|
|
483
489
|
*/
|
|
484
|
-
op:
|
|
490
|
+
op: RequestBodyOp;
|
|
485
491
|
neg?: boolean | undefined;
|
|
486
492
|
key?: string | undefined;
|
|
487
493
|
value?: string | Array<string> | number | undefined;
|
|
488
494
|
};
|
|
489
495
|
|
|
490
|
-
export type
|
|
491
|
-
conditions: Array<
|
|
496
|
+
export type RequestBodyConditionGroup = {
|
|
497
|
+
conditions: Array<RequestBodyConditions>;
|
|
492
498
|
};
|
|
493
499
|
|
|
494
500
|
export const UpdateFirewallConfigRequestBodySecurityRequest2ValueAction = {
|
|
@@ -508,50 +514,54 @@ export const RateLimitAlgo = {
|
|
|
508
514
|
} as const;
|
|
509
515
|
export type RateLimitAlgo = ClosedEnum<typeof RateLimitAlgo>;
|
|
510
516
|
|
|
511
|
-
export const
|
|
517
|
+
export const UpdateFirewallConfigAction1 = {
|
|
512
518
|
Log: "log",
|
|
513
519
|
Challenge: "challenge",
|
|
514
520
|
Deny: "deny",
|
|
515
521
|
RateLimit: "rate_limit",
|
|
516
522
|
} as const;
|
|
517
|
-
export type
|
|
523
|
+
export type UpdateFirewallConfigAction1 = ClosedEnum<
|
|
524
|
+
typeof UpdateFirewallConfigAction1
|
|
525
|
+
>;
|
|
518
526
|
|
|
519
|
-
export type
|
|
527
|
+
export type UpdateFirewallConfigRateLimitAction =
|
|
528
|
+
| UpdateFirewallConfigAction1
|
|
529
|
+
| any;
|
|
520
530
|
|
|
521
|
-
export type
|
|
531
|
+
export type UpdateFirewallConfigRateLimit1 = {
|
|
522
532
|
algo: RateLimitAlgo;
|
|
523
533
|
window: number;
|
|
524
534
|
limit: number;
|
|
525
535
|
keys: Array<string>;
|
|
526
|
-
action?:
|
|
536
|
+
action?: UpdateFirewallConfigAction1 | any | null | undefined;
|
|
527
537
|
};
|
|
528
538
|
|
|
529
|
-
export type
|
|
539
|
+
export type RequestBodyRateLimit = UpdateFirewallConfigRateLimit1 | any;
|
|
530
540
|
|
|
531
|
-
export type
|
|
541
|
+
export type UpdateFirewallConfigRedirect1 = {
|
|
532
542
|
location: string;
|
|
533
543
|
permanent: boolean;
|
|
534
544
|
};
|
|
535
545
|
|
|
536
|
-
export type
|
|
546
|
+
export type RequestBodyRedirect = UpdateFirewallConfigRedirect1 | any;
|
|
537
547
|
|
|
538
|
-
export type
|
|
548
|
+
export type RequestBodyMitigate = {
|
|
539
549
|
action: UpdateFirewallConfigRequestBodySecurityRequest2ValueAction;
|
|
540
|
-
rateLimit?:
|
|
541
|
-
redirect?:
|
|
550
|
+
rateLimit?: UpdateFirewallConfigRateLimit1 | any | null | undefined;
|
|
551
|
+
redirect?: UpdateFirewallConfigRedirect1 | any | null | undefined;
|
|
542
552
|
actionDuration?: string | null | undefined;
|
|
543
553
|
bypassSystem?: boolean | null | undefined;
|
|
544
554
|
};
|
|
545
555
|
|
|
546
556
|
export type UpdateFirewallConfigRequestBodySecurityRequest2Action = {
|
|
547
|
-
mitigate?:
|
|
557
|
+
mitigate?: RequestBodyMitigate | undefined;
|
|
548
558
|
};
|
|
549
559
|
|
|
550
|
-
export type
|
|
560
|
+
export type RequestBodyValue = {
|
|
551
561
|
name: string;
|
|
552
562
|
description?: string | undefined;
|
|
553
563
|
active: boolean;
|
|
554
|
-
conditionGroup: Array<
|
|
564
|
+
conditionGroup: Array<RequestBodyConditionGroup>;
|
|
555
565
|
action: UpdateFirewallConfigRequestBodySecurityRequest2Action;
|
|
556
566
|
};
|
|
557
567
|
|
|
@@ -561,7 +571,7 @@ export type Value = {
|
|
|
561
571
|
export type UpdateFirewallConfigRequestBody2 = {
|
|
562
572
|
action: UpdateFirewallConfigRequestBodyAction;
|
|
563
573
|
id?: any | null | undefined;
|
|
564
|
-
value:
|
|
574
|
+
value: RequestBodyValue;
|
|
565
575
|
};
|
|
566
576
|
|
|
567
577
|
export const RequestBodyAction = {
|
|
@@ -1108,9 +1118,9 @@ export namespace UpdateFirewallConfigRequestBodySecurityRequest9ValueAction$ {
|
|
|
1108
1118
|
}
|
|
1109
1119
|
|
|
1110
1120
|
/** @internal */
|
|
1111
|
-
export const
|
|
1121
|
+
export const UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema:
|
|
1112
1122
|
z.ZodType<
|
|
1113
|
-
|
|
1123
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value,
|
|
1114
1124
|
z.ZodTypeDef,
|
|
1115
1125
|
unknown
|
|
1116
1126
|
> = z.object({
|
|
@@ -1122,7 +1132,7 @@ export const UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema:
|
|
|
1122
1132
|
});
|
|
1123
1133
|
|
|
1124
1134
|
/** @internal */
|
|
1125
|
-
export type
|
|
1135
|
+
export type UpdateFirewallConfigRequestBodySecurityRequest9Value$Outbound = {
|
|
1126
1136
|
hostname: string;
|
|
1127
1137
|
ip: string;
|
|
1128
1138
|
notes?: string | undefined;
|
|
@@ -1130,11 +1140,11 @@ export type UpdateFirewallConfigRequestBodySecurityRequestValue$Outbound = {
|
|
|
1130
1140
|
};
|
|
1131
1141
|
|
|
1132
1142
|
/** @internal */
|
|
1133
|
-
export const
|
|
1143
|
+
export const UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema:
|
|
1134
1144
|
z.ZodType<
|
|
1135
|
-
|
|
1145
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$Outbound,
|
|
1136
1146
|
z.ZodTypeDef,
|
|
1137
|
-
|
|
1147
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value
|
|
1138
1148
|
> = z.object({
|
|
1139
1149
|
hostname: z.string(),
|
|
1140
1150
|
ip: z.string(),
|
|
@@ -1147,42 +1157,42 @@ export const UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema:
|
|
|
1147
1157
|
* @internal
|
|
1148
1158
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1149
1159
|
*/
|
|
1150
|
-
export namespace
|
|
1151
|
-
/** @deprecated use `
|
|
1160
|
+
export namespace UpdateFirewallConfigRequestBodySecurityRequest9Value$ {
|
|
1161
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema` instead. */
|
|
1152
1162
|
export const inboundSchema =
|
|
1153
|
-
|
|
1154
|
-
/** @deprecated use `
|
|
1163
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema;
|
|
1164
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema` instead. */
|
|
1155
1165
|
export const outboundSchema =
|
|
1156
|
-
|
|
1157
|
-
/** @deprecated use `
|
|
1166
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema;
|
|
1167
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequest9Value$Outbound` instead. */
|
|
1158
1168
|
export type Outbound =
|
|
1159
|
-
|
|
1169
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$Outbound;
|
|
1160
1170
|
}
|
|
1161
1171
|
|
|
1162
|
-
export function
|
|
1163
|
-
|
|
1164
|
-
|
|
1172
|
+
export function updateFirewallConfigRequestBodySecurityRequest9ValueToJSON(
|
|
1173
|
+
updateFirewallConfigRequestBodySecurityRequest9Value:
|
|
1174
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value,
|
|
1165
1175
|
): string {
|
|
1166
1176
|
return JSON.stringify(
|
|
1167
|
-
|
|
1168
|
-
|
|
1177
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema.parse(
|
|
1178
|
+
updateFirewallConfigRequestBodySecurityRequest9Value,
|
|
1169
1179
|
),
|
|
1170
1180
|
);
|
|
1171
1181
|
}
|
|
1172
1182
|
|
|
1173
|
-
export function
|
|
1183
|
+
export function updateFirewallConfigRequestBodySecurityRequest9ValueFromJSON(
|
|
1174
1184
|
jsonString: string,
|
|
1175
1185
|
): SafeParseResult<
|
|
1176
|
-
|
|
1186
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value,
|
|
1177
1187
|
SDKValidationError
|
|
1178
1188
|
> {
|
|
1179
1189
|
return safeParse(
|
|
1180
1190
|
jsonString,
|
|
1181
1191
|
(x) =>
|
|
1182
|
-
|
|
1192
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema.parse(
|
|
1183
1193
|
JSON.parse(x),
|
|
1184
1194
|
),
|
|
1185
|
-
`Failed to parse '
|
|
1195
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequest9Value' from JSON`,
|
|
1186
1196
|
);
|
|
1187
1197
|
}
|
|
1188
1198
|
|
|
@@ -1195,7 +1205,7 @@ export const UpdateFirewallConfigRequestBody9$inboundSchema: z.ZodType<
|
|
|
1195
1205
|
action: UpdateFirewallConfigRequestBodySecurityRequest9Action$inboundSchema,
|
|
1196
1206
|
id: z.string(),
|
|
1197
1207
|
value: z.lazy(() =>
|
|
1198
|
-
|
|
1208
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$inboundSchema
|
|
1199
1209
|
),
|
|
1200
1210
|
});
|
|
1201
1211
|
|
|
@@ -1203,7 +1213,7 @@ export const UpdateFirewallConfigRequestBody9$inboundSchema: z.ZodType<
|
|
|
1203
1213
|
export type UpdateFirewallConfigRequestBody9$Outbound = {
|
|
1204
1214
|
action: string;
|
|
1205
1215
|
id: string;
|
|
1206
|
-
value:
|
|
1216
|
+
value: UpdateFirewallConfigRequestBodySecurityRequest9Value$Outbound;
|
|
1207
1217
|
};
|
|
1208
1218
|
|
|
1209
1219
|
/** @internal */
|
|
@@ -1215,7 +1225,7 @@ export const UpdateFirewallConfigRequestBody9$outboundSchema: z.ZodType<
|
|
|
1215
1225
|
action: UpdateFirewallConfigRequestBodySecurityRequest9Action$outboundSchema,
|
|
1216
1226
|
id: z.string(),
|
|
1217
1227
|
value: z.lazy(() =>
|
|
1218
|
-
|
|
1228
|
+
UpdateFirewallConfigRequestBodySecurityRequest9Value$outboundSchema
|
|
1219
1229
|
),
|
|
1220
1230
|
});
|
|
1221
1231
|
|
|
@@ -1303,9 +1313,9 @@ export namespace UpdateFirewallConfigRequestBodySecurityRequest8ValueAction$ {
|
|
|
1303
1313
|
}
|
|
1304
1314
|
|
|
1305
1315
|
/** @internal */
|
|
1306
|
-
export const
|
|
1316
|
+
export const UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema:
|
|
1307
1317
|
z.ZodType<
|
|
1308
|
-
|
|
1318
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue,
|
|
1309
1319
|
z.ZodTypeDef,
|
|
1310
1320
|
unknown
|
|
1311
1321
|
> = z.object({
|
|
@@ -1317,7 +1327,7 @@ export const UpdateFirewallConfigRequestBodySecurityValue$inboundSchema:
|
|
|
1317
1327
|
});
|
|
1318
1328
|
|
|
1319
1329
|
/** @internal */
|
|
1320
|
-
export type
|
|
1330
|
+
export type UpdateFirewallConfigRequestBodySecurityRequestValue$Outbound = {
|
|
1321
1331
|
hostname: string;
|
|
1322
1332
|
ip: string;
|
|
1323
1333
|
notes?: string | undefined;
|
|
@@ -1325,11 +1335,11 @@ export type UpdateFirewallConfigRequestBodySecurityValue$Outbound = {
|
|
|
1325
1335
|
};
|
|
1326
1336
|
|
|
1327
1337
|
/** @internal */
|
|
1328
|
-
export const
|
|
1338
|
+
export const UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema:
|
|
1329
1339
|
z.ZodType<
|
|
1330
|
-
|
|
1340
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$Outbound,
|
|
1331
1341
|
z.ZodTypeDef,
|
|
1332
|
-
|
|
1342
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue
|
|
1333
1343
|
> = z.object({
|
|
1334
1344
|
hostname: z.string(),
|
|
1335
1345
|
ip: z.string(),
|
|
@@ -1342,41 +1352,42 @@ export const UpdateFirewallConfigRequestBodySecurityValue$outboundSchema:
|
|
|
1342
1352
|
* @internal
|
|
1343
1353
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1344
1354
|
*/
|
|
1345
|
-
export namespace
|
|
1346
|
-
/** @deprecated use `
|
|
1355
|
+
export namespace UpdateFirewallConfigRequestBodySecurityRequestValue$ {
|
|
1356
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema` instead. */
|
|
1347
1357
|
export const inboundSchema =
|
|
1348
|
-
|
|
1349
|
-
/** @deprecated use `
|
|
1358
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema;
|
|
1359
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema` instead. */
|
|
1350
1360
|
export const outboundSchema =
|
|
1351
|
-
|
|
1352
|
-
/** @deprecated use `
|
|
1353
|
-
export type Outbound =
|
|
1361
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema;
|
|
1362
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityRequestValue$Outbound` instead. */
|
|
1363
|
+
export type Outbound =
|
|
1364
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$Outbound;
|
|
1354
1365
|
}
|
|
1355
1366
|
|
|
1356
|
-
export function
|
|
1357
|
-
|
|
1358
|
-
|
|
1367
|
+
export function updateFirewallConfigRequestBodySecurityRequestValueToJSON(
|
|
1368
|
+
updateFirewallConfigRequestBodySecurityRequestValue:
|
|
1369
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue,
|
|
1359
1370
|
): string {
|
|
1360
1371
|
return JSON.stringify(
|
|
1361
|
-
|
|
1362
|
-
|
|
1372
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema.parse(
|
|
1373
|
+
updateFirewallConfigRequestBodySecurityRequestValue,
|
|
1363
1374
|
),
|
|
1364
1375
|
);
|
|
1365
1376
|
}
|
|
1366
1377
|
|
|
1367
|
-
export function
|
|
1378
|
+
export function updateFirewallConfigRequestBodySecurityRequestValueFromJSON(
|
|
1368
1379
|
jsonString: string,
|
|
1369
1380
|
): SafeParseResult<
|
|
1370
|
-
|
|
1381
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue,
|
|
1371
1382
|
SDKValidationError
|
|
1372
1383
|
> {
|
|
1373
1384
|
return safeParse(
|
|
1374
1385
|
jsonString,
|
|
1375
1386
|
(x) =>
|
|
1376
|
-
|
|
1387
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema.parse(
|
|
1377
1388
|
JSON.parse(x),
|
|
1378
1389
|
),
|
|
1379
|
-
`Failed to parse '
|
|
1390
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodySecurityRequestValue' from JSON`,
|
|
1380
1391
|
);
|
|
1381
1392
|
}
|
|
1382
1393
|
|
|
@@ -1389,7 +1400,7 @@ export const UpdateFirewallConfigRequestBody8$inboundSchema: z.ZodType<
|
|
|
1389
1400
|
action: UpdateFirewallConfigRequestBodySecurityRequest8Action$inboundSchema,
|
|
1390
1401
|
id: z.nullable(z.any()).optional(),
|
|
1391
1402
|
value: z.lazy(() =>
|
|
1392
|
-
|
|
1403
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$inboundSchema
|
|
1393
1404
|
),
|
|
1394
1405
|
});
|
|
1395
1406
|
|
|
@@ -1397,7 +1408,7 @@ export const UpdateFirewallConfigRequestBody8$inboundSchema: z.ZodType<
|
|
|
1397
1408
|
export type UpdateFirewallConfigRequestBody8$Outbound = {
|
|
1398
1409
|
action: string;
|
|
1399
1410
|
id?: any | null | undefined;
|
|
1400
|
-
value:
|
|
1411
|
+
value: UpdateFirewallConfigRequestBodySecurityRequestValue$Outbound;
|
|
1401
1412
|
};
|
|
1402
1413
|
|
|
1403
1414
|
/** @internal */
|
|
@@ -1409,7 +1420,7 @@ export const UpdateFirewallConfigRequestBody8$outboundSchema: z.ZodType<
|
|
|
1409
1420
|
action: UpdateFirewallConfigRequestBodySecurityRequest8Action$outboundSchema,
|
|
1410
1421
|
id: z.nullable(z.any()).optional(),
|
|
1411
1422
|
value: z.lazy(() =>
|
|
1412
|
-
|
|
1423
|
+
UpdateFirewallConfigRequestBodySecurityRequestValue$outboundSchema
|
|
1413
1424
|
),
|
|
1414
1425
|
});
|
|
1415
1426
|
|
|
@@ -1601,66 +1612,74 @@ export namespace UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$ {
|
|
|
1601
1612
|
}
|
|
1602
1613
|
|
|
1603
1614
|
/** @internal */
|
|
1604
|
-
export const
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1615
|
+
export const UpdateFirewallConfigRequestBodySecurityValue$inboundSchema:
|
|
1616
|
+
z.ZodType<
|
|
1617
|
+
UpdateFirewallConfigRequestBodySecurityValue,
|
|
1618
|
+
z.ZodTypeDef,
|
|
1619
|
+
unknown
|
|
1620
|
+
> = z.object({
|
|
1621
|
+
active: z.boolean(),
|
|
1622
|
+
action:
|
|
1623
|
+
UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$inboundSchema,
|
|
1624
|
+
});
|
|
1613
1625
|
|
|
1614
1626
|
/** @internal */
|
|
1615
|
-
export type
|
|
1627
|
+
export type UpdateFirewallConfigRequestBodySecurityValue$Outbound = {
|
|
1616
1628
|
active: boolean;
|
|
1617
1629
|
action: string;
|
|
1618
1630
|
};
|
|
1619
1631
|
|
|
1620
1632
|
/** @internal */
|
|
1621
|
-
export const
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1633
|
+
export const UpdateFirewallConfigRequestBodySecurityValue$outboundSchema:
|
|
1634
|
+
z.ZodType<
|
|
1635
|
+
UpdateFirewallConfigRequestBodySecurityValue$Outbound,
|
|
1636
|
+
z.ZodTypeDef,
|
|
1637
|
+
UpdateFirewallConfigRequestBodySecurityValue
|
|
1638
|
+
> = z.object({
|
|
1639
|
+
active: z.boolean(),
|
|
1640
|
+
action:
|
|
1641
|
+
UpdateFirewallConfigRequestBodySecurityRequest6ValueAction$outboundSchema,
|
|
1642
|
+
});
|
|
1630
1643
|
|
|
1631
1644
|
/**
|
|
1632
1645
|
* @internal
|
|
1633
1646
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1634
1647
|
*/
|
|
1635
|
-
export namespace
|
|
1636
|
-
/** @deprecated use `
|
|
1648
|
+
export namespace UpdateFirewallConfigRequestBodySecurityValue$ {
|
|
1649
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityValue$inboundSchema` instead. */
|
|
1637
1650
|
export const inboundSchema =
|
|
1638
|
-
|
|
1639
|
-
/** @deprecated use `
|
|
1651
|
+
UpdateFirewallConfigRequestBodySecurityValue$inboundSchema;
|
|
1652
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityValue$outboundSchema` instead. */
|
|
1640
1653
|
export const outboundSchema =
|
|
1641
|
-
|
|
1642
|
-
/** @deprecated use `
|
|
1643
|
-
export type Outbound =
|
|
1654
|
+
UpdateFirewallConfigRequestBodySecurityValue$outboundSchema;
|
|
1655
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodySecurityValue$Outbound` instead. */
|
|
1656
|
+
export type Outbound = UpdateFirewallConfigRequestBodySecurityValue$Outbound;
|
|
1644
1657
|
}
|
|
1645
1658
|
|
|
1646
|
-
export function
|
|
1647
|
-
|
|
1659
|
+
export function updateFirewallConfigRequestBodySecurityValueToJSON(
|
|
1660
|
+
updateFirewallConfigRequestBodySecurityValue:
|
|
1661
|
+
UpdateFirewallConfigRequestBodySecurityValue,
|
|
1648
1662
|
): string {
|
|
1649
1663
|
return JSON.stringify(
|
|
1650
|
-
|
|
1651
|
-
|
|
1664
|
+
UpdateFirewallConfigRequestBodySecurityValue$outboundSchema.parse(
|
|
1665
|
+
updateFirewallConfigRequestBodySecurityValue,
|
|
1652
1666
|
),
|
|
1653
1667
|
);
|
|
1654
1668
|
}
|
|
1655
1669
|
|
|
1656
|
-
export function
|
|
1670
|
+
export function updateFirewallConfigRequestBodySecurityValueFromJSON(
|
|
1657
1671
|
jsonString: string,
|
|
1658
|
-
): SafeParseResult<
|
|
1672
|
+
): SafeParseResult<
|
|
1673
|
+
UpdateFirewallConfigRequestBodySecurityValue,
|
|
1674
|
+
SDKValidationError
|
|
1675
|
+
> {
|
|
1659
1676
|
return safeParse(
|
|
1660
1677
|
jsonString,
|
|
1661
1678
|
(x) =>
|
|
1662
|
-
|
|
1663
|
-
|
|
1679
|
+
UpdateFirewallConfigRequestBodySecurityValue$inboundSchema.parse(
|
|
1680
|
+
JSON.parse(x),
|
|
1681
|
+
),
|
|
1682
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodySecurityValue' from JSON`,
|
|
1664
1683
|
);
|
|
1665
1684
|
}
|
|
1666
1685
|
|
|
@@ -1672,14 +1691,16 @@ export const UpdateFirewallConfigRequestBody6$inboundSchema: z.ZodType<
|
|
|
1672
1691
|
> = z.object({
|
|
1673
1692
|
action: UpdateFirewallConfigRequestBodySecurityRequest6Action$inboundSchema,
|
|
1674
1693
|
id: Id$inboundSchema,
|
|
1675
|
-
value: z.lazy(() =>
|
|
1694
|
+
value: z.lazy(() =>
|
|
1695
|
+
UpdateFirewallConfigRequestBodySecurityValue$inboundSchema
|
|
1696
|
+
),
|
|
1676
1697
|
});
|
|
1677
1698
|
|
|
1678
1699
|
/** @internal */
|
|
1679
1700
|
export type UpdateFirewallConfigRequestBody6$Outbound = {
|
|
1680
1701
|
action: string;
|
|
1681
1702
|
id: string;
|
|
1682
|
-
value:
|
|
1703
|
+
value: UpdateFirewallConfigRequestBodySecurityValue$Outbound;
|
|
1683
1704
|
};
|
|
1684
1705
|
|
|
1685
1706
|
/** @internal */
|
|
@@ -1690,7 +1711,9 @@ export const UpdateFirewallConfigRequestBody6$outboundSchema: z.ZodType<
|
|
|
1690
1711
|
> = z.object({
|
|
1691
1712
|
action: UpdateFirewallConfigRequestBodySecurityRequest6Action$outboundSchema,
|
|
1692
1713
|
id: Id$outboundSchema,
|
|
1693
|
-
value: z.lazy(() =>
|
|
1714
|
+
value: z.lazy(() =>
|
|
1715
|
+
UpdateFirewallConfigRequestBodySecurityValue$outboundSchema
|
|
1716
|
+
),
|
|
1694
1717
|
});
|
|
1695
1718
|
|
|
1696
1719
|
/**
|
|
@@ -1945,24 +1968,25 @@ export namespace UpdateFirewallConfigRequestBodySecurityType$ {
|
|
|
1945
1968
|
}
|
|
1946
1969
|
|
|
1947
1970
|
/** @internal */
|
|
1948
|
-
export const
|
|
1949
|
-
typeof
|
|
1950
|
-
> = z.nativeEnum(
|
|
1971
|
+
export const UpdateFirewallConfigRequestBodyOp$inboundSchema: z.ZodNativeEnum<
|
|
1972
|
+
typeof UpdateFirewallConfigRequestBodyOp
|
|
1973
|
+
> = z.nativeEnum(UpdateFirewallConfigRequestBodyOp);
|
|
1951
1974
|
|
|
1952
1975
|
/** @internal */
|
|
1953
|
-
export const
|
|
1954
|
-
typeof
|
|
1955
|
-
> =
|
|
1976
|
+
export const UpdateFirewallConfigRequestBodyOp$outboundSchema: z.ZodNativeEnum<
|
|
1977
|
+
typeof UpdateFirewallConfigRequestBodyOp
|
|
1978
|
+
> = UpdateFirewallConfigRequestBodyOp$inboundSchema;
|
|
1956
1979
|
|
|
1957
1980
|
/**
|
|
1958
1981
|
* @internal
|
|
1959
1982
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1960
1983
|
*/
|
|
1961
|
-
export namespace
|
|
1962
|
-
/** @deprecated use `
|
|
1963
|
-
export const inboundSchema =
|
|
1964
|
-
/** @deprecated use `
|
|
1965
|
-
export const outboundSchema =
|
|
1984
|
+
export namespace UpdateFirewallConfigRequestBodyOp$ {
|
|
1985
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyOp$inboundSchema` instead. */
|
|
1986
|
+
export const inboundSchema = UpdateFirewallConfigRequestBodyOp$inboundSchema;
|
|
1987
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyOp$outboundSchema` instead. */
|
|
1988
|
+
export const outboundSchema =
|
|
1989
|
+
UpdateFirewallConfigRequestBodyOp$outboundSchema;
|
|
1966
1990
|
}
|
|
1967
1991
|
|
|
1968
1992
|
/** @internal */
|
|
@@ -2031,20 +2055,20 @@ export function updateFirewallConfigRequestBodySecurityRequest3ValueFromJSON(
|
|
|
2031
2055
|
}
|
|
2032
2056
|
|
|
2033
2057
|
/** @internal */
|
|
2034
|
-
export const
|
|
2035
|
-
|
|
2058
|
+
export const UpdateFirewallConfigRequestBodyConditions$inboundSchema: z.ZodType<
|
|
2059
|
+
UpdateFirewallConfigRequestBodyConditions,
|
|
2036
2060
|
z.ZodTypeDef,
|
|
2037
2061
|
unknown
|
|
2038
2062
|
> = z.object({
|
|
2039
2063
|
type: UpdateFirewallConfigRequestBodySecurityType$inboundSchema,
|
|
2040
|
-
op:
|
|
2064
|
+
op: UpdateFirewallConfigRequestBodyOp$inboundSchema,
|
|
2041
2065
|
neg: z.boolean().optional(),
|
|
2042
2066
|
key: z.string().optional(),
|
|
2043
2067
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
2044
2068
|
});
|
|
2045
2069
|
|
|
2046
2070
|
/** @internal */
|
|
2047
|
-
export type
|
|
2071
|
+
export type UpdateFirewallConfigRequestBodyConditions$Outbound = {
|
|
2048
2072
|
type: string;
|
|
2049
2073
|
op: string;
|
|
2050
2074
|
neg?: boolean | undefined;
|
|
@@ -2053,100 +2077,129 @@ export type RequestBodyConditions$Outbound = {
|
|
|
2053
2077
|
};
|
|
2054
2078
|
|
|
2055
2079
|
/** @internal */
|
|
2056
|
-
export const
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2080
|
+
export const UpdateFirewallConfigRequestBodyConditions$outboundSchema:
|
|
2081
|
+
z.ZodType<
|
|
2082
|
+
UpdateFirewallConfigRequestBodyConditions$Outbound,
|
|
2083
|
+
z.ZodTypeDef,
|
|
2084
|
+
UpdateFirewallConfigRequestBodyConditions
|
|
2085
|
+
> = z.object({
|
|
2086
|
+
type: UpdateFirewallConfigRequestBodySecurityType$outboundSchema,
|
|
2087
|
+
op: UpdateFirewallConfigRequestBodyOp$outboundSchema,
|
|
2088
|
+
neg: z.boolean().optional(),
|
|
2089
|
+
key: z.string().optional(),
|
|
2090
|
+
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
2091
|
+
});
|
|
2067
2092
|
|
|
2068
2093
|
/**
|
|
2069
2094
|
* @internal
|
|
2070
2095
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2071
2096
|
*/
|
|
2072
|
-
export namespace
|
|
2073
|
-
/** @deprecated use `
|
|
2074
|
-
export const inboundSchema =
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2097
|
+
export namespace UpdateFirewallConfigRequestBodyConditions$ {
|
|
2098
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditions$inboundSchema` instead. */
|
|
2099
|
+
export const inboundSchema =
|
|
2100
|
+
UpdateFirewallConfigRequestBodyConditions$inboundSchema;
|
|
2101
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditions$outboundSchema` instead. */
|
|
2102
|
+
export const outboundSchema =
|
|
2103
|
+
UpdateFirewallConfigRequestBodyConditions$outboundSchema;
|
|
2104
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditions$Outbound` instead. */
|
|
2105
|
+
export type Outbound = UpdateFirewallConfigRequestBodyConditions$Outbound;
|
|
2079
2106
|
}
|
|
2080
2107
|
|
|
2081
|
-
export function
|
|
2082
|
-
|
|
2108
|
+
export function updateFirewallConfigRequestBodyConditionsToJSON(
|
|
2109
|
+
updateFirewallConfigRequestBodyConditions:
|
|
2110
|
+
UpdateFirewallConfigRequestBodyConditions,
|
|
2083
2111
|
): string {
|
|
2084
2112
|
return JSON.stringify(
|
|
2085
|
-
|
|
2113
|
+
UpdateFirewallConfigRequestBodyConditions$outboundSchema.parse(
|
|
2114
|
+
updateFirewallConfigRequestBodyConditions,
|
|
2115
|
+
),
|
|
2086
2116
|
);
|
|
2087
2117
|
}
|
|
2088
2118
|
|
|
2089
|
-
export function
|
|
2119
|
+
export function updateFirewallConfigRequestBodyConditionsFromJSON(
|
|
2090
2120
|
jsonString: string,
|
|
2091
|
-
): SafeParseResult<
|
|
2121
|
+
): SafeParseResult<
|
|
2122
|
+
UpdateFirewallConfigRequestBodyConditions,
|
|
2123
|
+
SDKValidationError
|
|
2124
|
+
> {
|
|
2092
2125
|
return safeParse(
|
|
2093
2126
|
jsonString,
|
|
2094
|
-
(x) =>
|
|
2095
|
-
|
|
2127
|
+
(x) =>
|
|
2128
|
+
UpdateFirewallConfigRequestBodyConditions$inboundSchema.parse(
|
|
2129
|
+
JSON.parse(x),
|
|
2130
|
+
),
|
|
2131
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodyConditions' from JSON`,
|
|
2096
2132
|
);
|
|
2097
2133
|
}
|
|
2098
2134
|
|
|
2099
2135
|
/** @internal */
|
|
2100
|
-
export const
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2136
|
+
export const UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema:
|
|
2137
|
+
z.ZodType<
|
|
2138
|
+
UpdateFirewallConfigRequestBodyConditionGroup,
|
|
2139
|
+
z.ZodTypeDef,
|
|
2140
|
+
unknown
|
|
2141
|
+
> = z.object({
|
|
2142
|
+
conditions: z.array(
|
|
2143
|
+
z.lazy(() => UpdateFirewallConfigRequestBodyConditions$inboundSchema),
|
|
2144
|
+
),
|
|
2145
|
+
});
|
|
2107
2146
|
|
|
2108
2147
|
/** @internal */
|
|
2109
|
-
export type
|
|
2110
|
-
conditions: Array<
|
|
2148
|
+
export type UpdateFirewallConfigRequestBodyConditionGroup$Outbound = {
|
|
2149
|
+
conditions: Array<UpdateFirewallConfigRequestBodyConditions$Outbound>;
|
|
2111
2150
|
};
|
|
2112
2151
|
|
|
2113
2152
|
/** @internal */
|
|
2114
|
-
export const
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2153
|
+
export const UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema:
|
|
2154
|
+
z.ZodType<
|
|
2155
|
+
UpdateFirewallConfigRequestBodyConditionGroup$Outbound,
|
|
2156
|
+
z.ZodTypeDef,
|
|
2157
|
+
UpdateFirewallConfigRequestBodyConditionGroup
|
|
2158
|
+
> = z.object({
|
|
2159
|
+
conditions: z.array(
|
|
2160
|
+
z.lazy(() => UpdateFirewallConfigRequestBodyConditions$outboundSchema),
|
|
2161
|
+
),
|
|
2162
|
+
});
|
|
2121
2163
|
|
|
2122
2164
|
/**
|
|
2123
2165
|
* @internal
|
|
2124
2166
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2125
2167
|
*/
|
|
2126
|
-
export namespace
|
|
2127
|
-
/** @deprecated use `
|
|
2128
|
-
export const inboundSchema =
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2168
|
+
export namespace UpdateFirewallConfigRequestBodyConditionGroup$ {
|
|
2169
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema` instead. */
|
|
2170
|
+
export const inboundSchema =
|
|
2171
|
+
UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema;
|
|
2172
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema` instead. */
|
|
2173
|
+
export const outboundSchema =
|
|
2174
|
+
UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema;
|
|
2175
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyConditionGroup$Outbound` instead. */
|
|
2176
|
+
export type Outbound = UpdateFirewallConfigRequestBodyConditionGroup$Outbound;
|
|
2133
2177
|
}
|
|
2134
2178
|
|
|
2135
|
-
export function
|
|
2136
|
-
|
|
2179
|
+
export function updateFirewallConfigRequestBodyConditionGroupToJSON(
|
|
2180
|
+
updateFirewallConfigRequestBodyConditionGroup:
|
|
2181
|
+
UpdateFirewallConfigRequestBodyConditionGroup,
|
|
2137
2182
|
): string {
|
|
2138
2183
|
return JSON.stringify(
|
|
2139
|
-
|
|
2184
|
+
UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema.parse(
|
|
2185
|
+
updateFirewallConfigRequestBodyConditionGroup,
|
|
2186
|
+
),
|
|
2140
2187
|
);
|
|
2141
2188
|
}
|
|
2142
2189
|
|
|
2143
|
-
export function
|
|
2190
|
+
export function updateFirewallConfigRequestBodyConditionGroupFromJSON(
|
|
2144
2191
|
jsonString: string,
|
|
2145
|
-
): SafeParseResult<
|
|
2192
|
+
): SafeParseResult<
|
|
2193
|
+
UpdateFirewallConfigRequestBodyConditionGroup,
|
|
2194
|
+
SDKValidationError
|
|
2195
|
+
> {
|
|
2146
2196
|
return safeParse(
|
|
2147
2197
|
jsonString,
|
|
2148
|
-
(x) =>
|
|
2149
|
-
|
|
2198
|
+
(x) =>
|
|
2199
|
+
UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema.parse(
|
|
2200
|
+
JSON.parse(x),
|
|
2201
|
+
),
|
|
2202
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodyConditionGroup' from JSON`,
|
|
2150
2203
|
);
|
|
2151
2204
|
}
|
|
2152
2205
|
|
|
@@ -2198,82 +2251,92 @@ export namespace UpdateFirewallConfigRateLimitAlgo$ {
|
|
|
2198
2251
|
}
|
|
2199
2252
|
|
|
2200
2253
|
/** @internal */
|
|
2201
|
-
export const
|
|
2202
|
-
typeof
|
|
2203
|
-
> = z.nativeEnum(
|
|
2254
|
+
export const UpdateFirewallConfigActionSecurity1$inboundSchema: z.ZodNativeEnum<
|
|
2255
|
+
typeof UpdateFirewallConfigActionSecurity1
|
|
2256
|
+
> = z.nativeEnum(UpdateFirewallConfigActionSecurity1);
|
|
2204
2257
|
|
|
2205
2258
|
/** @internal */
|
|
2206
|
-
export const
|
|
2207
|
-
typeof
|
|
2208
|
-
|
|
2259
|
+
export const UpdateFirewallConfigActionSecurity1$outboundSchema:
|
|
2260
|
+
z.ZodNativeEnum<typeof UpdateFirewallConfigActionSecurity1> =
|
|
2261
|
+
UpdateFirewallConfigActionSecurity1$inboundSchema;
|
|
2209
2262
|
|
|
2210
2263
|
/**
|
|
2211
2264
|
* @internal
|
|
2212
2265
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2213
2266
|
*/
|
|
2214
|
-
export namespace
|
|
2215
|
-
/** @deprecated use `
|
|
2216
|
-
export const inboundSchema =
|
|
2217
|
-
|
|
2218
|
-
|
|
2267
|
+
export namespace UpdateFirewallConfigActionSecurity1$ {
|
|
2268
|
+
/** @deprecated use `UpdateFirewallConfigActionSecurity1$inboundSchema` instead. */
|
|
2269
|
+
export const inboundSchema =
|
|
2270
|
+
UpdateFirewallConfigActionSecurity1$inboundSchema;
|
|
2271
|
+
/** @deprecated use `UpdateFirewallConfigActionSecurity1$outboundSchema` instead. */
|
|
2272
|
+
export const outboundSchema =
|
|
2273
|
+
UpdateFirewallConfigActionSecurity1$outboundSchema;
|
|
2219
2274
|
}
|
|
2220
2275
|
|
|
2221
2276
|
/** @internal */
|
|
2222
|
-
export const
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2277
|
+
export const UpdateFirewallConfigRateLimitSecurityAction$inboundSchema:
|
|
2278
|
+
z.ZodType<
|
|
2279
|
+
UpdateFirewallConfigRateLimitSecurityAction,
|
|
2280
|
+
z.ZodTypeDef,
|
|
2281
|
+
unknown
|
|
2282
|
+
> = z.union([UpdateFirewallConfigActionSecurity1$inboundSchema, z.any()]);
|
|
2227
2283
|
|
|
2228
2284
|
/** @internal */
|
|
2229
|
-
export type
|
|
2285
|
+
export type UpdateFirewallConfigRateLimitSecurityAction$Outbound = string | any;
|
|
2230
2286
|
|
|
2231
2287
|
/** @internal */
|
|
2232
|
-
export const
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2288
|
+
export const UpdateFirewallConfigRateLimitSecurityAction$outboundSchema:
|
|
2289
|
+
z.ZodType<
|
|
2290
|
+
UpdateFirewallConfigRateLimitSecurityAction$Outbound,
|
|
2291
|
+
z.ZodTypeDef,
|
|
2292
|
+
UpdateFirewallConfigRateLimitSecurityAction
|
|
2293
|
+
> = z.union([UpdateFirewallConfigActionSecurity1$outboundSchema, z.any()]);
|
|
2237
2294
|
|
|
2238
2295
|
/**
|
|
2239
2296
|
* @internal
|
|
2240
2297
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2241
2298
|
*/
|
|
2242
|
-
export namespace
|
|
2243
|
-
/** @deprecated use `
|
|
2299
|
+
export namespace UpdateFirewallConfigRateLimitSecurityAction$ {
|
|
2300
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurityAction$inboundSchema` instead. */
|
|
2244
2301
|
export const inboundSchema =
|
|
2245
|
-
|
|
2246
|
-
/** @deprecated use `
|
|
2302
|
+
UpdateFirewallConfigRateLimitSecurityAction$inboundSchema;
|
|
2303
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurityAction$outboundSchema` instead. */
|
|
2247
2304
|
export const outboundSchema =
|
|
2248
|
-
|
|
2249
|
-
/** @deprecated use `
|
|
2250
|
-
export type Outbound =
|
|
2305
|
+
UpdateFirewallConfigRateLimitSecurityAction$outboundSchema;
|
|
2306
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurityAction$Outbound` instead. */
|
|
2307
|
+
export type Outbound = UpdateFirewallConfigRateLimitSecurityAction$Outbound;
|
|
2251
2308
|
}
|
|
2252
2309
|
|
|
2253
|
-
export function
|
|
2254
|
-
|
|
2310
|
+
export function updateFirewallConfigRateLimitSecurityActionToJSON(
|
|
2311
|
+
updateFirewallConfigRateLimitSecurityAction:
|
|
2312
|
+
UpdateFirewallConfigRateLimitSecurityAction,
|
|
2255
2313
|
): string {
|
|
2256
2314
|
return JSON.stringify(
|
|
2257
|
-
|
|
2258
|
-
|
|
2315
|
+
UpdateFirewallConfigRateLimitSecurityAction$outboundSchema.parse(
|
|
2316
|
+
updateFirewallConfigRateLimitSecurityAction,
|
|
2259
2317
|
),
|
|
2260
2318
|
);
|
|
2261
2319
|
}
|
|
2262
2320
|
|
|
2263
|
-
export function
|
|
2321
|
+
export function updateFirewallConfigRateLimitSecurityActionFromJSON(
|
|
2264
2322
|
jsonString: string,
|
|
2265
|
-
): SafeParseResult<
|
|
2323
|
+
): SafeParseResult<
|
|
2324
|
+
UpdateFirewallConfigRateLimitSecurityAction,
|
|
2325
|
+
SDKValidationError
|
|
2326
|
+
> {
|
|
2266
2327
|
return safeParse(
|
|
2267
2328
|
jsonString,
|
|
2268
2329
|
(x) =>
|
|
2269
|
-
|
|
2270
|
-
|
|
2330
|
+
UpdateFirewallConfigRateLimitSecurityAction$inboundSchema.parse(
|
|
2331
|
+
JSON.parse(x),
|
|
2332
|
+
),
|
|
2333
|
+
`Failed to parse 'UpdateFirewallConfigRateLimitSecurityAction' from JSON`,
|
|
2271
2334
|
);
|
|
2272
2335
|
}
|
|
2273
2336
|
|
|
2274
2337
|
/** @internal */
|
|
2275
|
-
export const
|
|
2276
|
-
|
|
2338
|
+
export const UpdateFirewallConfigRateLimitSecurity1$inboundSchema: z.ZodType<
|
|
2339
|
+
UpdateFirewallConfigRateLimitSecurity1,
|
|
2277
2340
|
z.ZodTypeDef,
|
|
2278
2341
|
unknown
|
|
2279
2342
|
> = z.object({
|
|
@@ -2282,12 +2345,12 @@ export const UpdateFirewallConfigRateLimit1$inboundSchema: z.ZodType<
|
|
|
2282
2345
|
limit: z.number(),
|
|
2283
2346
|
keys: z.array(z.string()),
|
|
2284
2347
|
action: z.nullable(
|
|
2285
|
-
z.union([
|
|
2348
|
+
z.union([UpdateFirewallConfigActionSecurity1$inboundSchema, z.any()]),
|
|
2286
2349
|
).optional(),
|
|
2287
2350
|
});
|
|
2288
2351
|
|
|
2289
2352
|
/** @internal */
|
|
2290
|
-
export type
|
|
2353
|
+
export type UpdateFirewallConfigRateLimitSecurity1$Outbound = {
|
|
2291
2354
|
algo: string;
|
|
2292
2355
|
window: number;
|
|
2293
2356
|
limit: number;
|
|
@@ -2296,17 +2359,17 @@ export type UpdateFirewallConfigRateLimit1$Outbound = {
|
|
|
2296
2359
|
};
|
|
2297
2360
|
|
|
2298
2361
|
/** @internal */
|
|
2299
|
-
export const
|
|
2300
|
-
|
|
2362
|
+
export const UpdateFirewallConfigRateLimitSecurity1$outboundSchema: z.ZodType<
|
|
2363
|
+
UpdateFirewallConfigRateLimitSecurity1$Outbound,
|
|
2301
2364
|
z.ZodTypeDef,
|
|
2302
|
-
|
|
2365
|
+
UpdateFirewallConfigRateLimitSecurity1
|
|
2303
2366
|
> = z.object({
|
|
2304
2367
|
algo: UpdateFirewallConfigRateLimitAlgo$outboundSchema,
|
|
2305
2368
|
window: z.number(),
|
|
2306
2369
|
limit: z.number(),
|
|
2307
2370
|
keys: z.array(z.string()),
|
|
2308
2371
|
action: z.nullable(
|
|
2309
|
-
z.union([
|
|
2372
|
+
z.union([UpdateFirewallConfigActionSecurity1$outboundSchema, z.any()]),
|
|
2310
2373
|
).optional(),
|
|
2311
2374
|
});
|
|
2312
2375
|
|
|
@@ -2314,57 +2377,61 @@ export const UpdateFirewallConfigRateLimit1$outboundSchema: z.ZodType<
|
|
|
2314
2377
|
* @internal
|
|
2315
2378
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2316
2379
|
*/
|
|
2317
|
-
export namespace
|
|
2318
|
-
/** @deprecated use `
|
|
2319
|
-
export const inboundSchema =
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2380
|
+
export namespace UpdateFirewallConfigRateLimitSecurity1$ {
|
|
2381
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurity1$inboundSchema` instead. */
|
|
2382
|
+
export const inboundSchema =
|
|
2383
|
+
UpdateFirewallConfigRateLimitSecurity1$inboundSchema;
|
|
2384
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurity1$outboundSchema` instead. */
|
|
2385
|
+
export const outboundSchema =
|
|
2386
|
+
UpdateFirewallConfigRateLimitSecurity1$outboundSchema;
|
|
2387
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitSecurity1$Outbound` instead. */
|
|
2388
|
+
export type Outbound = UpdateFirewallConfigRateLimitSecurity1$Outbound;
|
|
2324
2389
|
}
|
|
2325
2390
|
|
|
2326
|
-
export function
|
|
2327
|
-
|
|
2391
|
+
export function updateFirewallConfigRateLimitSecurity1ToJSON(
|
|
2392
|
+
updateFirewallConfigRateLimitSecurity1:
|
|
2393
|
+
UpdateFirewallConfigRateLimitSecurity1,
|
|
2328
2394
|
): string {
|
|
2329
2395
|
return JSON.stringify(
|
|
2330
|
-
|
|
2331
|
-
|
|
2396
|
+
UpdateFirewallConfigRateLimitSecurity1$outboundSchema.parse(
|
|
2397
|
+
updateFirewallConfigRateLimitSecurity1,
|
|
2332
2398
|
),
|
|
2333
2399
|
);
|
|
2334
2400
|
}
|
|
2335
2401
|
|
|
2336
|
-
export function
|
|
2402
|
+
export function updateFirewallConfigRateLimitSecurity1FromJSON(
|
|
2337
2403
|
jsonString: string,
|
|
2338
|
-
): SafeParseResult<
|
|
2404
|
+
): SafeParseResult<UpdateFirewallConfigRateLimitSecurity1, SDKValidationError> {
|
|
2339
2405
|
return safeParse(
|
|
2340
2406
|
jsonString,
|
|
2341
|
-
(x) =>
|
|
2342
|
-
|
|
2407
|
+
(x) =>
|
|
2408
|
+
UpdateFirewallConfigRateLimitSecurity1$inboundSchema.parse(JSON.parse(x)),
|
|
2409
|
+
`Failed to parse 'UpdateFirewallConfigRateLimitSecurity1' from JSON`,
|
|
2343
2410
|
);
|
|
2344
2411
|
}
|
|
2345
2412
|
|
|
2346
2413
|
/** @internal */
|
|
2347
|
-
export const
|
|
2348
|
-
|
|
2414
|
+
export const UpdateFirewallConfigRequestBodyRateLimit$inboundSchema: z.ZodType<
|
|
2415
|
+
UpdateFirewallConfigRequestBodyRateLimit,
|
|
2349
2416
|
z.ZodTypeDef,
|
|
2350
2417
|
unknown
|
|
2351
2418
|
> = z.union([
|
|
2352
|
-
z.lazy(() =>
|
|
2419
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$inboundSchema),
|
|
2353
2420
|
z.any(),
|
|
2354
2421
|
]);
|
|
2355
2422
|
|
|
2356
2423
|
/** @internal */
|
|
2357
|
-
export type
|
|
2358
|
-
|
|
|
2424
|
+
export type UpdateFirewallConfigRequestBodyRateLimit$Outbound =
|
|
2425
|
+
| UpdateFirewallConfigRateLimitSecurity1$Outbound
|
|
2359
2426
|
| any;
|
|
2360
2427
|
|
|
2361
2428
|
/** @internal */
|
|
2362
|
-
export const
|
|
2363
|
-
|
|
2429
|
+
export const UpdateFirewallConfigRequestBodyRateLimit$outboundSchema: z.ZodType<
|
|
2430
|
+
UpdateFirewallConfigRequestBodyRateLimit$Outbound,
|
|
2364
2431
|
z.ZodTypeDef,
|
|
2365
|
-
|
|
2432
|
+
UpdateFirewallConfigRequestBodyRateLimit
|
|
2366
2433
|
> = z.union([
|
|
2367
|
-
z.lazy(() =>
|
|
2434
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$outboundSchema),
|
|
2368
2435
|
z.any(),
|
|
2369
2436
|
]);
|
|
2370
2437
|
|
|
@@ -2372,36 +2439,47 @@ export const RequestBodyRateLimit$outboundSchema: z.ZodType<
|
|
|
2372
2439
|
* @internal
|
|
2373
2440
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2374
2441
|
*/
|
|
2375
|
-
export namespace
|
|
2376
|
-
/** @deprecated use `
|
|
2377
|
-
export const inboundSchema =
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2442
|
+
export namespace UpdateFirewallConfigRequestBodyRateLimit$ {
|
|
2443
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRateLimit$inboundSchema` instead. */
|
|
2444
|
+
export const inboundSchema =
|
|
2445
|
+
UpdateFirewallConfigRequestBodyRateLimit$inboundSchema;
|
|
2446
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRateLimit$outboundSchema` instead. */
|
|
2447
|
+
export const outboundSchema =
|
|
2448
|
+
UpdateFirewallConfigRequestBodyRateLimit$outboundSchema;
|
|
2449
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRateLimit$Outbound` instead. */
|
|
2450
|
+
export type Outbound = UpdateFirewallConfigRequestBodyRateLimit$Outbound;
|
|
2382
2451
|
}
|
|
2383
2452
|
|
|
2384
|
-
export function
|
|
2385
|
-
|
|
2453
|
+
export function updateFirewallConfigRequestBodyRateLimitToJSON(
|
|
2454
|
+
updateFirewallConfigRequestBodyRateLimit:
|
|
2455
|
+
UpdateFirewallConfigRequestBodyRateLimit,
|
|
2386
2456
|
): string {
|
|
2387
2457
|
return JSON.stringify(
|
|
2388
|
-
|
|
2458
|
+
UpdateFirewallConfigRequestBodyRateLimit$outboundSchema.parse(
|
|
2459
|
+
updateFirewallConfigRequestBodyRateLimit,
|
|
2460
|
+
),
|
|
2389
2461
|
);
|
|
2390
2462
|
}
|
|
2391
2463
|
|
|
2392
|
-
export function
|
|
2464
|
+
export function updateFirewallConfigRequestBodyRateLimitFromJSON(
|
|
2393
2465
|
jsonString: string,
|
|
2394
|
-
): SafeParseResult<
|
|
2466
|
+
): SafeParseResult<
|
|
2467
|
+
UpdateFirewallConfigRequestBodyRateLimit,
|
|
2468
|
+
SDKValidationError
|
|
2469
|
+
> {
|
|
2395
2470
|
return safeParse(
|
|
2396
2471
|
jsonString,
|
|
2397
|
-
(x) =>
|
|
2398
|
-
|
|
2472
|
+
(x) =>
|
|
2473
|
+
UpdateFirewallConfigRequestBodyRateLimit$inboundSchema.parse(
|
|
2474
|
+
JSON.parse(x),
|
|
2475
|
+
),
|
|
2476
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodyRateLimit' from JSON`,
|
|
2399
2477
|
);
|
|
2400
2478
|
}
|
|
2401
2479
|
|
|
2402
2480
|
/** @internal */
|
|
2403
|
-
export const
|
|
2404
|
-
|
|
2481
|
+
export const UpdateFirewallConfigRedirectSecurity1$inboundSchema: z.ZodType<
|
|
2482
|
+
UpdateFirewallConfigRedirectSecurity1,
|
|
2405
2483
|
z.ZodTypeDef,
|
|
2406
2484
|
unknown
|
|
2407
2485
|
> = z.object({
|
|
@@ -2410,16 +2488,16 @@ export const UpdateFirewallConfigRedirect1$inboundSchema: z.ZodType<
|
|
|
2410
2488
|
});
|
|
2411
2489
|
|
|
2412
2490
|
/** @internal */
|
|
2413
|
-
export type
|
|
2491
|
+
export type UpdateFirewallConfigRedirectSecurity1$Outbound = {
|
|
2414
2492
|
location: string;
|
|
2415
2493
|
permanent: boolean;
|
|
2416
2494
|
};
|
|
2417
2495
|
|
|
2418
2496
|
/** @internal */
|
|
2419
|
-
export const
|
|
2420
|
-
|
|
2497
|
+
export const UpdateFirewallConfigRedirectSecurity1$outboundSchema: z.ZodType<
|
|
2498
|
+
UpdateFirewallConfigRedirectSecurity1$Outbound,
|
|
2421
2499
|
z.ZodTypeDef,
|
|
2422
|
-
|
|
2500
|
+
UpdateFirewallConfigRedirectSecurity1
|
|
2423
2501
|
> = z.object({
|
|
2424
2502
|
location: z.string(),
|
|
2425
2503
|
permanent: z.boolean(),
|
|
@@ -2429,57 +2507,60 @@ export const UpdateFirewallConfigRedirect1$outboundSchema: z.ZodType<
|
|
|
2429
2507
|
* @internal
|
|
2430
2508
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2431
2509
|
*/
|
|
2432
|
-
export namespace
|
|
2433
|
-
/** @deprecated use `
|
|
2434
|
-
export const inboundSchema =
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2510
|
+
export namespace UpdateFirewallConfigRedirectSecurity1$ {
|
|
2511
|
+
/** @deprecated use `UpdateFirewallConfigRedirectSecurity1$inboundSchema` instead. */
|
|
2512
|
+
export const inboundSchema =
|
|
2513
|
+
UpdateFirewallConfigRedirectSecurity1$inboundSchema;
|
|
2514
|
+
/** @deprecated use `UpdateFirewallConfigRedirectSecurity1$outboundSchema` instead. */
|
|
2515
|
+
export const outboundSchema =
|
|
2516
|
+
UpdateFirewallConfigRedirectSecurity1$outboundSchema;
|
|
2517
|
+
/** @deprecated use `UpdateFirewallConfigRedirectSecurity1$Outbound` instead. */
|
|
2518
|
+
export type Outbound = UpdateFirewallConfigRedirectSecurity1$Outbound;
|
|
2439
2519
|
}
|
|
2440
2520
|
|
|
2441
|
-
export function
|
|
2442
|
-
|
|
2521
|
+
export function updateFirewallConfigRedirectSecurity1ToJSON(
|
|
2522
|
+
updateFirewallConfigRedirectSecurity1: UpdateFirewallConfigRedirectSecurity1,
|
|
2443
2523
|
): string {
|
|
2444
2524
|
return JSON.stringify(
|
|
2445
|
-
|
|
2446
|
-
|
|
2525
|
+
UpdateFirewallConfigRedirectSecurity1$outboundSchema.parse(
|
|
2526
|
+
updateFirewallConfigRedirectSecurity1,
|
|
2447
2527
|
),
|
|
2448
2528
|
);
|
|
2449
2529
|
}
|
|
2450
2530
|
|
|
2451
|
-
export function
|
|
2531
|
+
export function updateFirewallConfigRedirectSecurity1FromJSON(
|
|
2452
2532
|
jsonString: string,
|
|
2453
|
-
): SafeParseResult<
|
|
2533
|
+
): SafeParseResult<UpdateFirewallConfigRedirectSecurity1, SDKValidationError> {
|
|
2454
2534
|
return safeParse(
|
|
2455
2535
|
jsonString,
|
|
2456
|
-
(x) =>
|
|
2457
|
-
|
|
2536
|
+
(x) =>
|
|
2537
|
+
UpdateFirewallConfigRedirectSecurity1$inboundSchema.parse(JSON.parse(x)),
|
|
2538
|
+
`Failed to parse 'UpdateFirewallConfigRedirectSecurity1' from JSON`,
|
|
2458
2539
|
);
|
|
2459
2540
|
}
|
|
2460
2541
|
|
|
2461
2542
|
/** @internal */
|
|
2462
|
-
export const
|
|
2463
|
-
|
|
2543
|
+
export const UpdateFirewallConfigRequestBodyRedirect$inboundSchema: z.ZodType<
|
|
2544
|
+
UpdateFirewallConfigRequestBodyRedirect,
|
|
2464
2545
|
z.ZodTypeDef,
|
|
2465
2546
|
unknown
|
|
2466
2547
|
> = z.union([
|
|
2467
|
-
z.lazy(() =>
|
|
2548
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$inboundSchema),
|
|
2468
2549
|
z.any(),
|
|
2469
2550
|
]);
|
|
2470
2551
|
|
|
2471
2552
|
/** @internal */
|
|
2472
|
-
export type
|
|
2473
|
-
|
|
|
2553
|
+
export type UpdateFirewallConfigRequestBodyRedirect$Outbound =
|
|
2554
|
+
| UpdateFirewallConfigRedirectSecurity1$Outbound
|
|
2474
2555
|
| any;
|
|
2475
2556
|
|
|
2476
2557
|
/** @internal */
|
|
2477
|
-
export const
|
|
2478
|
-
|
|
2558
|
+
export const UpdateFirewallConfigRequestBodyRedirect$outboundSchema: z.ZodType<
|
|
2559
|
+
UpdateFirewallConfigRequestBodyRedirect$Outbound,
|
|
2479
2560
|
z.ZodTypeDef,
|
|
2480
|
-
|
|
2561
|
+
UpdateFirewallConfigRequestBodyRedirect
|
|
2481
2562
|
> = z.union([
|
|
2482
|
-
z.lazy(() =>
|
|
2563
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$outboundSchema),
|
|
2483
2564
|
z.any(),
|
|
2484
2565
|
]);
|
|
2485
2566
|
|
|
@@ -2487,36 +2568,47 @@ export const RequestBodyRedirect$outboundSchema: z.ZodType<
|
|
|
2487
2568
|
* @internal
|
|
2488
2569
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2489
2570
|
*/
|
|
2490
|
-
export namespace
|
|
2491
|
-
/** @deprecated use `
|
|
2492
|
-
export const inboundSchema =
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2571
|
+
export namespace UpdateFirewallConfigRequestBodyRedirect$ {
|
|
2572
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRedirect$inboundSchema` instead. */
|
|
2573
|
+
export const inboundSchema =
|
|
2574
|
+
UpdateFirewallConfigRequestBodyRedirect$inboundSchema;
|
|
2575
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRedirect$outboundSchema` instead. */
|
|
2576
|
+
export const outboundSchema =
|
|
2577
|
+
UpdateFirewallConfigRequestBodyRedirect$outboundSchema;
|
|
2578
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyRedirect$Outbound` instead. */
|
|
2579
|
+
export type Outbound = UpdateFirewallConfigRequestBodyRedirect$Outbound;
|
|
2497
2580
|
}
|
|
2498
2581
|
|
|
2499
|
-
export function
|
|
2500
|
-
|
|
2582
|
+
export function updateFirewallConfigRequestBodyRedirectToJSON(
|
|
2583
|
+
updateFirewallConfigRequestBodyRedirect:
|
|
2584
|
+
UpdateFirewallConfigRequestBodyRedirect,
|
|
2501
2585
|
): string {
|
|
2502
2586
|
return JSON.stringify(
|
|
2503
|
-
|
|
2587
|
+
UpdateFirewallConfigRequestBodyRedirect$outboundSchema.parse(
|
|
2588
|
+
updateFirewallConfigRequestBodyRedirect,
|
|
2589
|
+
),
|
|
2504
2590
|
);
|
|
2505
2591
|
}
|
|
2506
2592
|
|
|
2507
|
-
export function
|
|
2593
|
+
export function updateFirewallConfigRequestBodyRedirectFromJSON(
|
|
2508
2594
|
jsonString: string,
|
|
2509
|
-
): SafeParseResult<
|
|
2595
|
+
): SafeParseResult<
|
|
2596
|
+
UpdateFirewallConfigRequestBodyRedirect,
|
|
2597
|
+
SDKValidationError
|
|
2598
|
+
> {
|
|
2510
2599
|
return safeParse(
|
|
2511
2600
|
jsonString,
|
|
2512
|
-
(x) =>
|
|
2513
|
-
|
|
2601
|
+
(x) =>
|
|
2602
|
+
UpdateFirewallConfigRequestBodyRedirect$inboundSchema.parse(
|
|
2603
|
+
JSON.parse(x),
|
|
2604
|
+
),
|
|
2605
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodyRedirect' from JSON`,
|
|
2514
2606
|
);
|
|
2515
2607
|
}
|
|
2516
2608
|
|
|
2517
2609
|
/** @internal */
|
|
2518
|
-
export const
|
|
2519
|
-
|
|
2610
|
+
export const UpdateFirewallConfigRequestBodyMitigate$inboundSchema: z.ZodType<
|
|
2611
|
+
UpdateFirewallConfigRequestBodyMitigate,
|
|
2520
2612
|
z.ZodTypeDef,
|
|
2521
2613
|
unknown
|
|
2522
2614
|
> = z.object({
|
|
@@ -2524,13 +2616,13 @@ export const RequestBodyMitigate$inboundSchema: z.ZodType<
|
|
|
2524
2616
|
UpdateFirewallConfigRequestBodySecurityRequest3ValueAction$inboundSchema,
|
|
2525
2617
|
rateLimit: z.nullable(
|
|
2526
2618
|
z.union([
|
|
2527
|
-
z.lazy(() =>
|
|
2619
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$inboundSchema),
|
|
2528
2620
|
z.any(),
|
|
2529
2621
|
]),
|
|
2530
2622
|
).optional(),
|
|
2531
2623
|
redirect: z.nullable(
|
|
2532
2624
|
z.union([
|
|
2533
|
-
z.lazy(() =>
|
|
2625
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$inboundSchema),
|
|
2534
2626
|
z.any(),
|
|
2535
2627
|
]),
|
|
2536
2628
|
).optional(),
|
|
@@ -2539,31 +2631,39 @@ export const RequestBodyMitigate$inboundSchema: z.ZodType<
|
|
|
2539
2631
|
});
|
|
2540
2632
|
|
|
2541
2633
|
/** @internal */
|
|
2542
|
-
export type
|
|
2634
|
+
export type UpdateFirewallConfigRequestBodyMitigate$Outbound = {
|
|
2543
2635
|
action: string;
|
|
2544
|
-
rateLimit?:
|
|
2545
|
-
|
|
2636
|
+
rateLimit?:
|
|
2637
|
+
| UpdateFirewallConfigRateLimitSecurity1$Outbound
|
|
2638
|
+
| any
|
|
2639
|
+
| null
|
|
2640
|
+
| undefined;
|
|
2641
|
+
redirect?:
|
|
2642
|
+
| UpdateFirewallConfigRedirectSecurity1$Outbound
|
|
2643
|
+
| any
|
|
2644
|
+
| null
|
|
2645
|
+
| undefined;
|
|
2546
2646
|
actionDuration?: string | null | undefined;
|
|
2547
2647
|
bypassSystem?: boolean | null | undefined;
|
|
2548
2648
|
};
|
|
2549
2649
|
|
|
2550
2650
|
/** @internal */
|
|
2551
|
-
export const
|
|
2552
|
-
|
|
2651
|
+
export const UpdateFirewallConfigRequestBodyMitigate$outboundSchema: z.ZodType<
|
|
2652
|
+
UpdateFirewallConfigRequestBodyMitigate$Outbound,
|
|
2553
2653
|
z.ZodTypeDef,
|
|
2554
|
-
|
|
2654
|
+
UpdateFirewallConfigRequestBodyMitigate
|
|
2555
2655
|
> = z.object({
|
|
2556
2656
|
action:
|
|
2557
2657
|
UpdateFirewallConfigRequestBodySecurityRequest3ValueAction$outboundSchema,
|
|
2558
2658
|
rateLimit: z.nullable(
|
|
2559
2659
|
z.union([
|
|
2560
|
-
z.lazy(() =>
|
|
2660
|
+
z.lazy(() => UpdateFirewallConfigRateLimitSecurity1$outboundSchema),
|
|
2561
2661
|
z.any(),
|
|
2562
2662
|
]),
|
|
2563
2663
|
).optional(),
|
|
2564
2664
|
redirect: z.nullable(
|
|
2565
2665
|
z.union([
|
|
2566
|
-
z.lazy(() =>
|
|
2666
|
+
z.lazy(() => UpdateFirewallConfigRedirectSecurity1$outboundSchema),
|
|
2567
2667
|
z.any(),
|
|
2568
2668
|
]),
|
|
2569
2669
|
).optional(),
|
|
@@ -2575,30 +2675,41 @@ export const RequestBodyMitigate$outboundSchema: z.ZodType<
|
|
|
2575
2675
|
* @internal
|
|
2576
2676
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2577
2677
|
*/
|
|
2578
|
-
export namespace
|
|
2579
|
-
/** @deprecated use `
|
|
2580
|
-
export const inboundSchema =
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2678
|
+
export namespace UpdateFirewallConfigRequestBodyMitigate$ {
|
|
2679
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyMitigate$inboundSchema` instead. */
|
|
2680
|
+
export const inboundSchema =
|
|
2681
|
+
UpdateFirewallConfigRequestBodyMitigate$inboundSchema;
|
|
2682
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyMitigate$outboundSchema` instead. */
|
|
2683
|
+
export const outboundSchema =
|
|
2684
|
+
UpdateFirewallConfigRequestBodyMitigate$outboundSchema;
|
|
2685
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyMitigate$Outbound` instead. */
|
|
2686
|
+
export type Outbound = UpdateFirewallConfigRequestBodyMitigate$Outbound;
|
|
2585
2687
|
}
|
|
2586
2688
|
|
|
2587
|
-
export function
|
|
2588
|
-
|
|
2689
|
+
export function updateFirewallConfigRequestBodyMitigateToJSON(
|
|
2690
|
+
updateFirewallConfigRequestBodyMitigate:
|
|
2691
|
+
UpdateFirewallConfigRequestBodyMitigate,
|
|
2589
2692
|
): string {
|
|
2590
2693
|
return JSON.stringify(
|
|
2591
|
-
|
|
2694
|
+
UpdateFirewallConfigRequestBodyMitigate$outboundSchema.parse(
|
|
2695
|
+
updateFirewallConfigRequestBodyMitigate,
|
|
2696
|
+
),
|
|
2592
2697
|
);
|
|
2593
2698
|
}
|
|
2594
2699
|
|
|
2595
|
-
export function
|
|
2700
|
+
export function updateFirewallConfigRequestBodyMitigateFromJSON(
|
|
2596
2701
|
jsonString: string,
|
|
2597
|
-
): SafeParseResult<
|
|
2702
|
+
): SafeParseResult<
|
|
2703
|
+
UpdateFirewallConfigRequestBodyMitigate,
|
|
2704
|
+
SDKValidationError
|
|
2705
|
+
> {
|
|
2598
2706
|
return safeParse(
|
|
2599
2707
|
jsonString,
|
|
2600
|
-
(x) =>
|
|
2601
|
-
|
|
2708
|
+
(x) =>
|
|
2709
|
+
UpdateFirewallConfigRequestBodyMitigate$inboundSchema.parse(
|
|
2710
|
+
JSON.parse(x),
|
|
2711
|
+
),
|
|
2712
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodyMitigate' from JSON`,
|
|
2602
2713
|
);
|
|
2603
2714
|
}
|
|
2604
2715
|
|
|
@@ -2609,12 +2720,14 @@ export const UpdateFirewallConfigRequestBodySecurityRequest3Action$inboundSchema
|
|
|
2609
2720
|
z.ZodTypeDef,
|
|
2610
2721
|
unknown
|
|
2611
2722
|
> = z.object({
|
|
2612
|
-
mitigate: z.lazy(() =>
|
|
2723
|
+
mitigate: z.lazy(() =>
|
|
2724
|
+
UpdateFirewallConfigRequestBodyMitigate$inboundSchema
|
|
2725
|
+
).optional(),
|
|
2613
2726
|
});
|
|
2614
2727
|
|
|
2615
2728
|
/** @internal */
|
|
2616
2729
|
export type UpdateFirewallConfigRequestBodySecurityRequest3Action$Outbound = {
|
|
2617
|
-
mitigate?:
|
|
2730
|
+
mitigate?: UpdateFirewallConfigRequestBodyMitigate$Outbound | undefined;
|
|
2618
2731
|
};
|
|
2619
2732
|
|
|
2620
2733
|
/** @internal */
|
|
@@ -2624,7 +2737,9 @@ export const UpdateFirewallConfigRequestBodySecurityRequest3Action$outboundSchem
|
|
|
2624
2737
|
z.ZodTypeDef,
|
|
2625
2738
|
UpdateFirewallConfigRequestBodySecurityRequest3Action
|
|
2626
2739
|
> = z.object({
|
|
2627
|
-
mitigate: z.lazy(() =>
|
|
2740
|
+
mitigate: z.lazy(() =>
|
|
2741
|
+
UpdateFirewallConfigRequestBodyMitigate$outboundSchema
|
|
2742
|
+
).optional(),
|
|
2628
2743
|
});
|
|
2629
2744
|
|
|
2630
2745
|
/**
|
|
@@ -2671,8 +2786,8 @@ export function updateFirewallConfigRequestBodySecurityRequest3ActionFromJSON(
|
|
|
2671
2786
|
}
|
|
2672
2787
|
|
|
2673
2788
|
/** @internal */
|
|
2674
|
-
export const
|
|
2675
|
-
|
|
2789
|
+
export const UpdateFirewallConfigRequestBodyValue$inboundSchema: z.ZodType<
|
|
2790
|
+
UpdateFirewallConfigRequestBodyValue,
|
|
2676
2791
|
z.ZodTypeDef,
|
|
2677
2792
|
unknown
|
|
2678
2793
|
> = z.object({
|
|
@@ -2680,7 +2795,7 @@ export const RequestBodyValue$inboundSchema: z.ZodType<
|
|
|
2680
2795
|
description: z.string().optional(),
|
|
2681
2796
|
active: z.boolean(),
|
|
2682
2797
|
conditionGroup: z.array(
|
|
2683
|
-
z.lazy(() =>
|
|
2798
|
+
z.lazy(() => UpdateFirewallConfigRequestBodyConditionGroup$inboundSchema),
|
|
2684
2799
|
),
|
|
2685
2800
|
action: z.lazy(() =>
|
|
2686
2801
|
UpdateFirewallConfigRequestBodySecurityRequest3Action$inboundSchema
|
|
@@ -2688,25 +2803,25 @@ export const RequestBodyValue$inboundSchema: z.ZodType<
|
|
|
2688
2803
|
});
|
|
2689
2804
|
|
|
2690
2805
|
/** @internal */
|
|
2691
|
-
export type
|
|
2806
|
+
export type UpdateFirewallConfigRequestBodyValue$Outbound = {
|
|
2692
2807
|
name: string;
|
|
2693
2808
|
description?: string | undefined;
|
|
2694
2809
|
active: boolean;
|
|
2695
|
-
conditionGroup: Array<
|
|
2810
|
+
conditionGroup: Array<UpdateFirewallConfigRequestBodyConditionGroup$Outbound>;
|
|
2696
2811
|
action: UpdateFirewallConfigRequestBodySecurityRequest3Action$Outbound;
|
|
2697
2812
|
};
|
|
2698
2813
|
|
|
2699
2814
|
/** @internal */
|
|
2700
|
-
export const
|
|
2701
|
-
|
|
2815
|
+
export const UpdateFirewallConfigRequestBodyValue$outboundSchema: z.ZodType<
|
|
2816
|
+
UpdateFirewallConfigRequestBodyValue$Outbound,
|
|
2702
2817
|
z.ZodTypeDef,
|
|
2703
|
-
|
|
2818
|
+
UpdateFirewallConfigRequestBodyValue
|
|
2704
2819
|
> = z.object({
|
|
2705
2820
|
name: z.string(),
|
|
2706
2821
|
description: z.string().optional(),
|
|
2707
2822
|
active: z.boolean(),
|
|
2708
2823
|
conditionGroup: z.array(
|
|
2709
|
-
z.lazy(() =>
|
|
2824
|
+
z.lazy(() => UpdateFirewallConfigRequestBodyConditionGroup$outboundSchema),
|
|
2710
2825
|
),
|
|
2711
2826
|
action: z.lazy(() =>
|
|
2712
2827
|
UpdateFirewallConfigRequestBodySecurityRequest3Action$outboundSchema
|
|
@@ -2717,30 +2832,35 @@ export const RequestBodyValue$outboundSchema: z.ZodType<
|
|
|
2717
2832
|
* @internal
|
|
2718
2833
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2719
2834
|
*/
|
|
2720
|
-
export namespace
|
|
2721
|
-
/** @deprecated use `
|
|
2722
|
-
export const inboundSchema =
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2835
|
+
export namespace UpdateFirewallConfigRequestBodyValue$ {
|
|
2836
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyValue$inboundSchema` instead. */
|
|
2837
|
+
export const inboundSchema =
|
|
2838
|
+
UpdateFirewallConfigRequestBodyValue$inboundSchema;
|
|
2839
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyValue$outboundSchema` instead. */
|
|
2840
|
+
export const outboundSchema =
|
|
2841
|
+
UpdateFirewallConfigRequestBodyValue$outboundSchema;
|
|
2842
|
+
/** @deprecated use `UpdateFirewallConfigRequestBodyValue$Outbound` instead. */
|
|
2843
|
+
export type Outbound = UpdateFirewallConfigRequestBodyValue$Outbound;
|
|
2727
2844
|
}
|
|
2728
2845
|
|
|
2729
|
-
export function
|
|
2730
|
-
|
|
2846
|
+
export function updateFirewallConfigRequestBodyValueToJSON(
|
|
2847
|
+
updateFirewallConfigRequestBodyValue: UpdateFirewallConfigRequestBodyValue,
|
|
2731
2848
|
): string {
|
|
2732
2849
|
return JSON.stringify(
|
|
2733
|
-
|
|
2850
|
+
UpdateFirewallConfigRequestBodyValue$outboundSchema.parse(
|
|
2851
|
+
updateFirewallConfigRequestBodyValue,
|
|
2852
|
+
),
|
|
2734
2853
|
);
|
|
2735
2854
|
}
|
|
2736
2855
|
|
|
2737
|
-
export function
|
|
2856
|
+
export function updateFirewallConfigRequestBodyValueFromJSON(
|
|
2738
2857
|
jsonString: string,
|
|
2739
|
-
): SafeParseResult<
|
|
2858
|
+
): SafeParseResult<UpdateFirewallConfigRequestBodyValue, SDKValidationError> {
|
|
2740
2859
|
return safeParse(
|
|
2741
2860
|
jsonString,
|
|
2742
|
-
(x) =>
|
|
2743
|
-
|
|
2861
|
+
(x) =>
|
|
2862
|
+
UpdateFirewallConfigRequestBodyValue$inboundSchema.parse(JSON.parse(x)),
|
|
2863
|
+
`Failed to parse 'UpdateFirewallConfigRequestBodyValue' from JSON`,
|
|
2744
2864
|
);
|
|
2745
2865
|
}
|
|
2746
2866
|
|
|
@@ -2752,14 +2872,14 @@ export const UpdateFirewallConfigRequestBody3$inboundSchema: z.ZodType<
|
|
|
2752
2872
|
> = z.object({
|
|
2753
2873
|
action: UpdateFirewallConfigRequestBodySecurityAction$inboundSchema,
|
|
2754
2874
|
id: z.string(),
|
|
2755
|
-
value: z.lazy(() =>
|
|
2875
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodyValue$inboundSchema),
|
|
2756
2876
|
});
|
|
2757
2877
|
|
|
2758
2878
|
/** @internal */
|
|
2759
2879
|
export type UpdateFirewallConfigRequestBody3$Outbound = {
|
|
2760
2880
|
action: string;
|
|
2761
2881
|
id: string;
|
|
2762
|
-
value:
|
|
2882
|
+
value: UpdateFirewallConfigRequestBodyValue$Outbound;
|
|
2763
2883
|
};
|
|
2764
2884
|
|
|
2765
2885
|
/** @internal */
|
|
@@ -2770,7 +2890,7 @@ export const UpdateFirewallConfigRequestBody3$outboundSchema: z.ZodType<
|
|
|
2770
2890
|
> = z.object({
|
|
2771
2891
|
action: UpdateFirewallConfigRequestBodySecurityAction$outboundSchema,
|
|
2772
2892
|
id: z.string(),
|
|
2773
|
-
value: z.lazy(() =>
|
|
2893
|
+
value: z.lazy(() => UpdateFirewallConfigRequestBodyValue$outboundSchema),
|
|
2774
2894
|
});
|
|
2775
2895
|
|
|
2776
2896
|
/**
|
|
@@ -2854,20 +2974,24 @@ export namespace UpdateFirewallConfigRequestBodyType$ {
|
|
|
2854
2974
|
}
|
|
2855
2975
|
|
|
2856
2976
|
/** @internal */
|
|
2857
|
-
export const
|
|
2977
|
+
export const RequestBodyOp$inboundSchema: z.ZodNativeEnum<
|
|
2978
|
+
typeof RequestBodyOp
|
|
2979
|
+
> = z.nativeEnum(RequestBodyOp);
|
|
2858
2980
|
|
|
2859
2981
|
/** @internal */
|
|
2860
|
-
export const
|
|
2982
|
+
export const RequestBodyOp$outboundSchema: z.ZodNativeEnum<
|
|
2983
|
+
typeof RequestBodyOp
|
|
2984
|
+
> = RequestBodyOp$inboundSchema;
|
|
2861
2985
|
|
|
2862
2986
|
/**
|
|
2863
2987
|
* @internal
|
|
2864
2988
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2865
2989
|
*/
|
|
2866
|
-
export namespace
|
|
2867
|
-
/** @deprecated use `
|
|
2868
|
-
export const inboundSchema =
|
|
2869
|
-
/** @deprecated use `
|
|
2870
|
-
export const outboundSchema =
|
|
2990
|
+
export namespace RequestBodyOp$ {
|
|
2991
|
+
/** @deprecated use `RequestBodyOp$inboundSchema` instead. */
|
|
2992
|
+
export const inboundSchema = RequestBodyOp$inboundSchema;
|
|
2993
|
+
/** @deprecated use `RequestBodyOp$outboundSchema` instead. */
|
|
2994
|
+
export const outboundSchema = RequestBodyOp$outboundSchema;
|
|
2871
2995
|
}
|
|
2872
2996
|
|
|
2873
2997
|
/** @internal */
|
|
@@ -2936,20 +3060,20 @@ export function updateFirewallConfigRequestBodySecurityRequest2ValueFromJSON(
|
|
|
2936
3060
|
}
|
|
2937
3061
|
|
|
2938
3062
|
/** @internal */
|
|
2939
|
-
export const
|
|
2940
|
-
|
|
3063
|
+
export const RequestBodyConditions$inboundSchema: z.ZodType<
|
|
3064
|
+
RequestBodyConditions,
|
|
2941
3065
|
z.ZodTypeDef,
|
|
2942
3066
|
unknown
|
|
2943
3067
|
> = z.object({
|
|
2944
3068
|
type: UpdateFirewallConfigRequestBodyType$inboundSchema,
|
|
2945
|
-
op:
|
|
3069
|
+
op: RequestBodyOp$inboundSchema,
|
|
2946
3070
|
neg: z.boolean().optional(),
|
|
2947
3071
|
key: z.string().optional(),
|
|
2948
3072
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
2949
3073
|
});
|
|
2950
3074
|
|
|
2951
3075
|
/** @internal */
|
|
2952
|
-
export type
|
|
3076
|
+
export type RequestBodyConditions$Outbound = {
|
|
2953
3077
|
type: string;
|
|
2954
3078
|
op: string;
|
|
2955
3079
|
neg?: boolean | undefined;
|
|
@@ -2958,13 +3082,13 @@ export type Conditions$Outbound = {
|
|
|
2958
3082
|
};
|
|
2959
3083
|
|
|
2960
3084
|
/** @internal */
|
|
2961
|
-
export const
|
|
2962
|
-
|
|
3085
|
+
export const RequestBodyConditions$outboundSchema: z.ZodType<
|
|
3086
|
+
RequestBodyConditions$Outbound,
|
|
2963
3087
|
z.ZodTypeDef,
|
|
2964
|
-
|
|
3088
|
+
RequestBodyConditions
|
|
2965
3089
|
> = z.object({
|
|
2966
3090
|
type: UpdateFirewallConfigRequestBodyType$outboundSchema,
|
|
2967
|
-
op:
|
|
3091
|
+
op: RequestBodyOp$outboundSchema,
|
|
2968
3092
|
neg: z.boolean().optional(),
|
|
2969
3093
|
key: z.string().optional(),
|
|
2970
3094
|
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
@@ -2974,76 +3098,84 @@ export const Conditions$outboundSchema: z.ZodType<
|
|
|
2974
3098
|
* @internal
|
|
2975
3099
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2976
3100
|
*/
|
|
2977
|
-
export namespace
|
|
2978
|
-
/** @deprecated use `
|
|
2979
|
-
export const inboundSchema =
|
|
2980
|
-
/** @deprecated use `
|
|
2981
|
-
export const outboundSchema =
|
|
2982
|
-
/** @deprecated use `
|
|
2983
|
-
export type Outbound =
|
|
3101
|
+
export namespace RequestBodyConditions$ {
|
|
3102
|
+
/** @deprecated use `RequestBodyConditions$inboundSchema` instead. */
|
|
3103
|
+
export const inboundSchema = RequestBodyConditions$inboundSchema;
|
|
3104
|
+
/** @deprecated use `RequestBodyConditions$outboundSchema` instead. */
|
|
3105
|
+
export const outboundSchema = RequestBodyConditions$outboundSchema;
|
|
3106
|
+
/** @deprecated use `RequestBodyConditions$Outbound` instead. */
|
|
3107
|
+
export type Outbound = RequestBodyConditions$Outbound;
|
|
2984
3108
|
}
|
|
2985
3109
|
|
|
2986
|
-
export function
|
|
2987
|
-
|
|
3110
|
+
export function requestBodyConditionsToJSON(
|
|
3111
|
+
requestBodyConditions: RequestBodyConditions,
|
|
3112
|
+
): string {
|
|
3113
|
+
return JSON.stringify(
|
|
3114
|
+
RequestBodyConditions$outboundSchema.parse(requestBodyConditions),
|
|
3115
|
+
);
|
|
2988
3116
|
}
|
|
2989
3117
|
|
|
2990
|
-
export function
|
|
3118
|
+
export function requestBodyConditionsFromJSON(
|
|
2991
3119
|
jsonString: string,
|
|
2992
|
-
): SafeParseResult<
|
|
3120
|
+
): SafeParseResult<RequestBodyConditions, SDKValidationError> {
|
|
2993
3121
|
return safeParse(
|
|
2994
3122
|
jsonString,
|
|
2995
|
-
(x) =>
|
|
2996
|
-
`Failed to parse '
|
|
3123
|
+
(x) => RequestBodyConditions$inboundSchema.parse(JSON.parse(x)),
|
|
3124
|
+
`Failed to parse 'RequestBodyConditions' from JSON`,
|
|
2997
3125
|
);
|
|
2998
3126
|
}
|
|
2999
3127
|
|
|
3000
3128
|
/** @internal */
|
|
3001
|
-
export const
|
|
3002
|
-
|
|
3129
|
+
export const RequestBodyConditionGroup$inboundSchema: z.ZodType<
|
|
3130
|
+
RequestBodyConditionGroup,
|
|
3003
3131
|
z.ZodTypeDef,
|
|
3004
3132
|
unknown
|
|
3005
3133
|
> = z.object({
|
|
3006
|
-
conditions: z.array(z.lazy(() =>
|
|
3134
|
+
conditions: z.array(z.lazy(() => RequestBodyConditions$inboundSchema)),
|
|
3007
3135
|
});
|
|
3008
3136
|
|
|
3009
3137
|
/** @internal */
|
|
3010
|
-
export type
|
|
3011
|
-
conditions: Array<
|
|
3138
|
+
export type RequestBodyConditionGroup$Outbound = {
|
|
3139
|
+
conditions: Array<RequestBodyConditions$Outbound>;
|
|
3012
3140
|
};
|
|
3013
3141
|
|
|
3014
3142
|
/** @internal */
|
|
3015
|
-
export const
|
|
3016
|
-
|
|
3143
|
+
export const RequestBodyConditionGroup$outboundSchema: z.ZodType<
|
|
3144
|
+
RequestBodyConditionGroup$Outbound,
|
|
3017
3145
|
z.ZodTypeDef,
|
|
3018
|
-
|
|
3146
|
+
RequestBodyConditionGroup
|
|
3019
3147
|
> = z.object({
|
|
3020
|
-
conditions: z.array(z.lazy(() =>
|
|
3148
|
+
conditions: z.array(z.lazy(() => RequestBodyConditions$outboundSchema)),
|
|
3021
3149
|
});
|
|
3022
3150
|
|
|
3023
3151
|
/**
|
|
3024
3152
|
* @internal
|
|
3025
3153
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3026
3154
|
*/
|
|
3027
|
-
export namespace
|
|
3028
|
-
/** @deprecated use `
|
|
3029
|
-
export const inboundSchema =
|
|
3030
|
-
/** @deprecated use `
|
|
3031
|
-
export const outboundSchema =
|
|
3032
|
-
/** @deprecated use `
|
|
3033
|
-
export type Outbound =
|
|
3155
|
+
export namespace RequestBodyConditionGroup$ {
|
|
3156
|
+
/** @deprecated use `RequestBodyConditionGroup$inboundSchema` instead. */
|
|
3157
|
+
export const inboundSchema = RequestBodyConditionGroup$inboundSchema;
|
|
3158
|
+
/** @deprecated use `RequestBodyConditionGroup$outboundSchema` instead. */
|
|
3159
|
+
export const outboundSchema = RequestBodyConditionGroup$outboundSchema;
|
|
3160
|
+
/** @deprecated use `RequestBodyConditionGroup$Outbound` instead. */
|
|
3161
|
+
export type Outbound = RequestBodyConditionGroup$Outbound;
|
|
3034
3162
|
}
|
|
3035
3163
|
|
|
3036
|
-
export function
|
|
3037
|
-
|
|
3164
|
+
export function requestBodyConditionGroupToJSON(
|
|
3165
|
+
requestBodyConditionGroup: RequestBodyConditionGroup,
|
|
3166
|
+
): string {
|
|
3167
|
+
return JSON.stringify(
|
|
3168
|
+
RequestBodyConditionGroup$outboundSchema.parse(requestBodyConditionGroup),
|
|
3169
|
+
);
|
|
3038
3170
|
}
|
|
3039
3171
|
|
|
3040
|
-
export function
|
|
3172
|
+
export function requestBodyConditionGroupFromJSON(
|
|
3041
3173
|
jsonString: string,
|
|
3042
|
-
): SafeParseResult<
|
|
3174
|
+
): SafeParseResult<RequestBodyConditionGroup, SDKValidationError> {
|
|
3043
3175
|
return safeParse(
|
|
3044
3176
|
jsonString,
|
|
3045
|
-
(x) =>
|
|
3046
|
-
`Failed to parse '
|
|
3177
|
+
(x) => RequestBodyConditionGroup$inboundSchema.parse(JSON.parse(x)),
|
|
3178
|
+
`Failed to parse 'RequestBodyConditionGroup' from JSON`,
|
|
3047
3179
|
);
|
|
3048
3180
|
}
|
|
3049
3181
|
|
|
@@ -3094,73 +3226,82 @@ export namespace RateLimitAlgo$ {
|
|
|
3094
3226
|
}
|
|
3095
3227
|
|
|
3096
3228
|
/** @internal */
|
|
3097
|
-
export const
|
|
3098
|
-
|
|
3229
|
+
export const UpdateFirewallConfigAction1$inboundSchema: z.ZodNativeEnum<
|
|
3230
|
+
typeof UpdateFirewallConfigAction1
|
|
3231
|
+
> = z.nativeEnum(UpdateFirewallConfigAction1);
|
|
3099
3232
|
|
|
3100
3233
|
/** @internal */
|
|
3101
|
-
export const
|
|
3102
|
-
|
|
3234
|
+
export const UpdateFirewallConfigAction1$outboundSchema: z.ZodNativeEnum<
|
|
3235
|
+
typeof UpdateFirewallConfigAction1
|
|
3236
|
+
> = UpdateFirewallConfigAction1$inboundSchema;
|
|
3103
3237
|
|
|
3104
3238
|
/**
|
|
3105
3239
|
* @internal
|
|
3106
3240
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3107
3241
|
*/
|
|
3108
|
-
export namespace
|
|
3109
|
-
/** @deprecated use `
|
|
3110
|
-
export const inboundSchema =
|
|
3111
|
-
/** @deprecated use `
|
|
3112
|
-
export const outboundSchema =
|
|
3242
|
+
export namespace UpdateFirewallConfigAction1$ {
|
|
3243
|
+
/** @deprecated use `UpdateFirewallConfigAction1$inboundSchema` instead. */
|
|
3244
|
+
export const inboundSchema = UpdateFirewallConfigAction1$inboundSchema;
|
|
3245
|
+
/** @deprecated use `UpdateFirewallConfigAction1$outboundSchema` instead. */
|
|
3246
|
+
export const outboundSchema = UpdateFirewallConfigAction1$outboundSchema;
|
|
3113
3247
|
}
|
|
3114
3248
|
|
|
3115
3249
|
/** @internal */
|
|
3116
|
-
export const
|
|
3117
|
-
|
|
3250
|
+
export const UpdateFirewallConfigRateLimitAction$inboundSchema: z.ZodType<
|
|
3251
|
+
UpdateFirewallConfigRateLimitAction,
|
|
3118
3252
|
z.ZodTypeDef,
|
|
3119
3253
|
unknown
|
|
3120
|
-
> = z.union([
|
|
3254
|
+
> = z.union([UpdateFirewallConfigAction1$inboundSchema, z.any()]);
|
|
3121
3255
|
|
|
3122
3256
|
/** @internal */
|
|
3123
|
-
export type
|
|
3257
|
+
export type UpdateFirewallConfigRateLimitAction$Outbound = string | any;
|
|
3124
3258
|
|
|
3125
3259
|
/** @internal */
|
|
3126
|
-
export const
|
|
3127
|
-
|
|
3260
|
+
export const UpdateFirewallConfigRateLimitAction$outboundSchema: z.ZodType<
|
|
3261
|
+
UpdateFirewallConfigRateLimitAction$Outbound,
|
|
3128
3262
|
z.ZodTypeDef,
|
|
3129
|
-
|
|
3130
|
-
> = z.union([
|
|
3263
|
+
UpdateFirewallConfigRateLimitAction
|
|
3264
|
+
> = z.union([UpdateFirewallConfigAction1$outboundSchema, z.any()]);
|
|
3131
3265
|
|
|
3132
3266
|
/**
|
|
3133
3267
|
* @internal
|
|
3134
3268
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3135
3269
|
*/
|
|
3136
|
-
export namespace
|
|
3137
|
-
/** @deprecated use `
|
|
3138
|
-
export const inboundSchema =
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3270
|
+
export namespace UpdateFirewallConfigRateLimitAction$ {
|
|
3271
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitAction$inboundSchema` instead. */
|
|
3272
|
+
export const inboundSchema =
|
|
3273
|
+
UpdateFirewallConfigRateLimitAction$inboundSchema;
|
|
3274
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitAction$outboundSchema` instead. */
|
|
3275
|
+
export const outboundSchema =
|
|
3276
|
+
UpdateFirewallConfigRateLimitAction$outboundSchema;
|
|
3277
|
+
/** @deprecated use `UpdateFirewallConfigRateLimitAction$Outbound` instead. */
|
|
3278
|
+
export type Outbound = UpdateFirewallConfigRateLimitAction$Outbound;
|
|
3143
3279
|
}
|
|
3144
3280
|
|
|
3145
|
-
export function
|
|
3146
|
-
|
|
3281
|
+
export function updateFirewallConfigRateLimitActionToJSON(
|
|
3282
|
+
updateFirewallConfigRateLimitAction: UpdateFirewallConfigRateLimitAction,
|
|
3147
3283
|
): string {
|
|
3148
|
-
return JSON.stringify(
|
|
3284
|
+
return JSON.stringify(
|
|
3285
|
+
UpdateFirewallConfigRateLimitAction$outboundSchema.parse(
|
|
3286
|
+
updateFirewallConfigRateLimitAction,
|
|
3287
|
+
),
|
|
3288
|
+
);
|
|
3149
3289
|
}
|
|
3150
3290
|
|
|
3151
|
-
export function
|
|
3291
|
+
export function updateFirewallConfigRateLimitActionFromJSON(
|
|
3152
3292
|
jsonString: string,
|
|
3153
|
-
): SafeParseResult<
|
|
3293
|
+
): SafeParseResult<UpdateFirewallConfigRateLimitAction, SDKValidationError> {
|
|
3154
3294
|
return safeParse(
|
|
3155
3295
|
jsonString,
|
|
3156
|
-
(x) =>
|
|
3157
|
-
|
|
3296
|
+
(x) =>
|
|
3297
|
+
UpdateFirewallConfigRateLimitAction$inboundSchema.parse(JSON.parse(x)),
|
|
3298
|
+
`Failed to parse 'UpdateFirewallConfigRateLimitAction' from JSON`,
|
|
3158
3299
|
);
|
|
3159
3300
|
}
|
|
3160
3301
|
|
|
3161
3302
|
/** @internal */
|
|
3162
|
-
export const
|
|
3163
|
-
|
|
3303
|
+
export const UpdateFirewallConfigRateLimit1$inboundSchema: z.ZodType<
|
|
3304
|
+
UpdateFirewallConfigRateLimit1,
|
|
3164
3305
|
z.ZodTypeDef,
|
|
3165
3306
|
unknown
|
|
3166
3307
|
> = z.object({
|
|
@@ -3168,11 +3309,13 @@ export const RateLimit1$inboundSchema: z.ZodType<
|
|
|
3168
3309
|
window: z.number(),
|
|
3169
3310
|
limit: z.number(),
|
|
3170
3311
|
keys: z.array(z.string()),
|
|
3171
|
-
action: z.nullable(
|
|
3312
|
+
action: z.nullable(
|
|
3313
|
+
z.union([UpdateFirewallConfigAction1$inboundSchema, z.any()]),
|
|
3314
|
+
).optional(),
|
|
3172
3315
|
});
|
|
3173
3316
|
|
|
3174
3317
|
/** @internal */
|
|
3175
|
-
export type
|
|
3318
|
+
export type UpdateFirewallConfigRateLimit1$Outbound = {
|
|
3176
3319
|
algo: string;
|
|
3177
3320
|
window: number;
|
|
3178
3321
|
limit: number;
|
|
@@ -3181,92 +3324,112 @@ export type RateLimit1$Outbound = {
|
|
|
3181
3324
|
};
|
|
3182
3325
|
|
|
3183
3326
|
/** @internal */
|
|
3184
|
-
export const
|
|
3185
|
-
|
|
3327
|
+
export const UpdateFirewallConfigRateLimit1$outboundSchema: z.ZodType<
|
|
3328
|
+
UpdateFirewallConfigRateLimit1$Outbound,
|
|
3186
3329
|
z.ZodTypeDef,
|
|
3187
|
-
|
|
3330
|
+
UpdateFirewallConfigRateLimit1
|
|
3188
3331
|
> = z.object({
|
|
3189
3332
|
algo: RateLimitAlgo$outboundSchema,
|
|
3190
3333
|
window: z.number(),
|
|
3191
3334
|
limit: z.number(),
|
|
3192
3335
|
keys: z.array(z.string()),
|
|
3193
|
-
action: z.nullable(
|
|
3336
|
+
action: z.nullable(
|
|
3337
|
+
z.union([UpdateFirewallConfigAction1$outboundSchema, z.any()]),
|
|
3338
|
+
).optional(),
|
|
3194
3339
|
});
|
|
3195
3340
|
|
|
3196
3341
|
/**
|
|
3197
3342
|
* @internal
|
|
3198
3343
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3199
3344
|
*/
|
|
3200
|
-
export namespace
|
|
3201
|
-
/** @deprecated use `
|
|
3202
|
-
export const inboundSchema =
|
|
3203
|
-
/** @deprecated use `
|
|
3204
|
-
export const outboundSchema =
|
|
3205
|
-
/** @deprecated use `
|
|
3206
|
-
export type Outbound =
|
|
3345
|
+
export namespace UpdateFirewallConfigRateLimit1$ {
|
|
3346
|
+
/** @deprecated use `UpdateFirewallConfigRateLimit1$inboundSchema` instead. */
|
|
3347
|
+
export const inboundSchema = UpdateFirewallConfigRateLimit1$inboundSchema;
|
|
3348
|
+
/** @deprecated use `UpdateFirewallConfigRateLimit1$outboundSchema` instead. */
|
|
3349
|
+
export const outboundSchema = UpdateFirewallConfigRateLimit1$outboundSchema;
|
|
3350
|
+
/** @deprecated use `UpdateFirewallConfigRateLimit1$Outbound` instead. */
|
|
3351
|
+
export type Outbound = UpdateFirewallConfigRateLimit1$Outbound;
|
|
3207
3352
|
}
|
|
3208
3353
|
|
|
3209
|
-
export function
|
|
3210
|
-
|
|
3354
|
+
export function updateFirewallConfigRateLimit1ToJSON(
|
|
3355
|
+
updateFirewallConfigRateLimit1: UpdateFirewallConfigRateLimit1,
|
|
3356
|
+
): string {
|
|
3357
|
+
return JSON.stringify(
|
|
3358
|
+
UpdateFirewallConfigRateLimit1$outboundSchema.parse(
|
|
3359
|
+
updateFirewallConfigRateLimit1,
|
|
3360
|
+
),
|
|
3361
|
+
);
|
|
3211
3362
|
}
|
|
3212
3363
|
|
|
3213
|
-
export function
|
|
3364
|
+
export function updateFirewallConfigRateLimit1FromJSON(
|
|
3214
3365
|
jsonString: string,
|
|
3215
|
-
): SafeParseResult<
|
|
3366
|
+
): SafeParseResult<UpdateFirewallConfigRateLimit1, SDKValidationError> {
|
|
3216
3367
|
return safeParse(
|
|
3217
3368
|
jsonString,
|
|
3218
|
-
(x) =>
|
|
3219
|
-
`Failed to parse '
|
|
3369
|
+
(x) => UpdateFirewallConfigRateLimit1$inboundSchema.parse(JSON.parse(x)),
|
|
3370
|
+
`Failed to parse 'UpdateFirewallConfigRateLimit1' from JSON`,
|
|
3220
3371
|
);
|
|
3221
3372
|
}
|
|
3222
3373
|
|
|
3223
3374
|
/** @internal */
|
|
3224
|
-
export const
|
|
3225
|
-
|
|
3375
|
+
export const RequestBodyRateLimit$inboundSchema: z.ZodType<
|
|
3376
|
+
RequestBodyRateLimit,
|
|
3226
3377
|
z.ZodTypeDef,
|
|
3227
3378
|
unknown
|
|
3228
|
-
> = z.union([
|
|
3379
|
+
> = z.union([
|
|
3380
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$inboundSchema),
|
|
3381
|
+
z.any(),
|
|
3382
|
+
]);
|
|
3229
3383
|
|
|
3230
3384
|
/** @internal */
|
|
3231
|
-
export type
|
|
3385
|
+
export type RequestBodyRateLimit$Outbound =
|
|
3386
|
+
| UpdateFirewallConfigRateLimit1$Outbound
|
|
3387
|
+
| any;
|
|
3232
3388
|
|
|
3233
3389
|
/** @internal */
|
|
3234
|
-
export const
|
|
3235
|
-
|
|
3390
|
+
export const RequestBodyRateLimit$outboundSchema: z.ZodType<
|
|
3391
|
+
RequestBodyRateLimit$Outbound,
|
|
3236
3392
|
z.ZodTypeDef,
|
|
3237
|
-
|
|
3238
|
-
> = z.union([
|
|
3393
|
+
RequestBodyRateLimit
|
|
3394
|
+
> = z.union([
|
|
3395
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$outboundSchema),
|
|
3396
|
+
z.any(),
|
|
3397
|
+
]);
|
|
3239
3398
|
|
|
3240
3399
|
/**
|
|
3241
3400
|
* @internal
|
|
3242
3401
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3243
3402
|
*/
|
|
3244
|
-
export namespace
|
|
3245
|
-
/** @deprecated use `
|
|
3246
|
-
export const inboundSchema =
|
|
3247
|
-
/** @deprecated use `
|
|
3248
|
-
export const outboundSchema =
|
|
3249
|
-
/** @deprecated use `
|
|
3250
|
-
export type Outbound =
|
|
3403
|
+
export namespace RequestBodyRateLimit$ {
|
|
3404
|
+
/** @deprecated use `RequestBodyRateLimit$inboundSchema` instead. */
|
|
3405
|
+
export const inboundSchema = RequestBodyRateLimit$inboundSchema;
|
|
3406
|
+
/** @deprecated use `RequestBodyRateLimit$outboundSchema` instead. */
|
|
3407
|
+
export const outboundSchema = RequestBodyRateLimit$outboundSchema;
|
|
3408
|
+
/** @deprecated use `RequestBodyRateLimit$Outbound` instead. */
|
|
3409
|
+
export type Outbound = RequestBodyRateLimit$Outbound;
|
|
3251
3410
|
}
|
|
3252
3411
|
|
|
3253
|
-
export function
|
|
3254
|
-
|
|
3412
|
+
export function requestBodyRateLimitToJSON(
|
|
3413
|
+
requestBodyRateLimit: RequestBodyRateLimit,
|
|
3414
|
+
): string {
|
|
3415
|
+
return JSON.stringify(
|
|
3416
|
+
RequestBodyRateLimit$outboundSchema.parse(requestBodyRateLimit),
|
|
3417
|
+
);
|
|
3255
3418
|
}
|
|
3256
3419
|
|
|
3257
|
-
export function
|
|
3420
|
+
export function requestBodyRateLimitFromJSON(
|
|
3258
3421
|
jsonString: string,
|
|
3259
|
-
): SafeParseResult<
|
|
3422
|
+
): SafeParseResult<RequestBodyRateLimit, SDKValidationError> {
|
|
3260
3423
|
return safeParse(
|
|
3261
3424
|
jsonString,
|
|
3262
|
-
(x) =>
|
|
3263
|
-
`Failed to parse '
|
|
3425
|
+
(x) => RequestBodyRateLimit$inboundSchema.parse(JSON.parse(x)),
|
|
3426
|
+
`Failed to parse 'RequestBodyRateLimit' from JSON`,
|
|
3264
3427
|
);
|
|
3265
3428
|
}
|
|
3266
3429
|
|
|
3267
3430
|
/** @internal */
|
|
3268
|
-
export const
|
|
3269
|
-
|
|
3431
|
+
export const UpdateFirewallConfigRedirect1$inboundSchema: z.ZodType<
|
|
3432
|
+
UpdateFirewallConfigRedirect1,
|
|
3270
3433
|
z.ZodTypeDef,
|
|
3271
3434
|
unknown
|
|
3272
3435
|
> = z.object({
|
|
@@ -3275,16 +3438,16 @@ export const Redirect1$inboundSchema: z.ZodType<
|
|
|
3275
3438
|
});
|
|
3276
3439
|
|
|
3277
3440
|
/** @internal */
|
|
3278
|
-
export type
|
|
3441
|
+
export type UpdateFirewallConfigRedirect1$Outbound = {
|
|
3279
3442
|
location: string;
|
|
3280
3443
|
permanent: boolean;
|
|
3281
3444
|
};
|
|
3282
3445
|
|
|
3283
3446
|
/** @internal */
|
|
3284
|
-
export const
|
|
3285
|
-
|
|
3447
|
+
export const UpdateFirewallConfigRedirect1$outboundSchema: z.ZodType<
|
|
3448
|
+
UpdateFirewallConfigRedirect1$Outbound,
|
|
3286
3449
|
z.ZodTypeDef,
|
|
3287
|
-
|
|
3450
|
+
UpdateFirewallConfigRedirect1
|
|
3288
3451
|
> = z.object({
|
|
3289
3452
|
location: z.string(),
|
|
3290
3453
|
permanent: z.boolean(),
|
|
@@ -3294,113 +3457,143 @@ export const Redirect1$outboundSchema: z.ZodType<
|
|
|
3294
3457
|
* @internal
|
|
3295
3458
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3296
3459
|
*/
|
|
3297
|
-
export namespace
|
|
3298
|
-
/** @deprecated use `
|
|
3299
|
-
export const inboundSchema =
|
|
3300
|
-
/** @deprecated use `
|
|
3301
|
-
export const outboundSchema =
|
|
3302
|
-
/** @deprecated use `
|
|
3303
|
-
export type Outbound =
|
|
3460
|
+
export namespace UpdateFirewallConfigRedirect1$ {
|
|
3461
|
+
/** @deprecated use `UpdateFirewallConfigRedirect1$inboundSchema` instead. */
|
|
3462
|
+
export const inboundSchema = UpdateFirewallConfigRedirect1$inboundSchema;
|
|
3463
|
+
/** @deprecated use `UpdateFirewallConfigRedirect1$outboundSchema` instead. */
|
|
3464
|
+
export const outboundSchema = UpdateFirewallConfigRedirect1$outboundSchema;
|
|
3465
|
+
/** @deprecated use `UpdateFirewallConfigRedirect1$Outbound` instead. */
|
|
3466
|
+
export type Outbound = UpdateFirewallConfigRedirect1$Outbound;
|
|
3304
3467
|
}
|
|
3305
3468
|
|
|
3306
|
-
export function
|
|
3307
|
-
|
|
3469
|
+
export function updateFirewallConfigRedirect1ToJSON(
|
|
3470
|
+
updateFirewallConfigRedirect1: UpdateFirewallConfigRedirect1,
|
|
3471
|
+
): string {
|
|
3472
|
+
return JSON.stringify(
|
|
3473
|
+
UpdateFirewallConfigRedirect1$outboundSchema.parse(
|
|
3474
|
+
updateFirewallConfigRedirect1,
|
|
3475
|
+
),
|
|
3476
|
+
);
|
|
3308
3477
|
}
|
|
3309
3478
|
|
|
3310
|
-
export function
|
|
3479
|
+
export function updateFirewallConfigRedirect1FromJSON(
|
|
3311
3480
|
jsonString: string,
|
|
3312
|
-
): SafeParseResult<
|
|
3481
|
+
): SafeParseResult<UpdateFirewallConfigRedirect1, SDKValidationError> {
|
|
3313
3482
|
return safeParse(
|
|
3314
3483
|
jsonString,
|
|
3315
|
-
(x) =>
|
|
3316
|
-
`Failed to parse '
|
|
3484
|
+
(x) => UpdateFirewallConfigRedirect1$inboundSchema.parse(JSON.parse(x)),
|
|
3485
|
+
`Failed to parse 'UpdateFirewallConfigRedirect1' from JSON`,
|
|
3317
3486
|
);
|
|
3318
3487
|
}
|
|
3319
3488
|
|
|
3320
3489
|
/** @internal */
|
|
3321
|
-
export const
|
|
3322
|
-
|
|
3490
|
+
export const RequestBodyRedirect$inboundSchema: z.ZodType<
|
|
3491
|
+
RequestBodyRedirect,
|
|
3323
3492
|
z.ZodTypeDef,
|
|
3324
3493
|
unknown
|
|
3325
|
-
> = z.union([
|
|
3494
|
+
> = z.union([
|
|
3495
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$inboundSchema),
|
|
3496
|
+
z.any(),
|
|
3497
|
+
]);
|
|
3326
3498
|
|
|
3327
3499
|
/** @internal */
|
|
3328
|
-
export type
|
|
3500
|
+
export type RequestBodyRedirect$Outbound =
|
|
3501
|
+
| UpdateFirewallConfigRedirect1$Outbound
|
|
3502
|
+
| any;
|
|
3329
3503
|
|
|
3330
3504
|
/** @internal */
|
|
3331
|
-
export const
|
|
3332
|
-
|
|
3505
|
+
export const RequestBodyRedirect$outboundSchema: z.ZodType<
|
|
3506
|
+
RequestBodyRedirect$Outbound,
|
|
3333
3507
|
z.ZodTypeDef,
|
|
3334
|
-
|
|
3335
|
-
> = z.union([
|
|
3508
|
+
RequestBodyRedirect
|
|
3509
|
+
> = z.union([
|
|
3510
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$outboundSchema),
|
|
3511
|
+
z.any(),
|
|
3512
|
+
]);
|
|
3336
3513
|
|
|
3337
3514
|
/**
|
|
3338
3515
|
* @internal
|
|
3339
3516
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3340
3517
|
*/
|
|
3341
|
-
export namespace
|
|
3342
|
-
/** @deprecated use `
|
|
3343
|
-
export const inboundSchema =
|
|
3344
|
-
/** @deprecated use `
|
|
3345
|
-
export const outboundSchema =
|
|
3346
|
-
/** @deprecated use `
|
|
3347
|
-
export type Outbound =
|
|
3518
|
+
export namespace RequestBodyRedirect$ {
|
|
3519
|
+
/** @deprecated use `RequestBodyRedirect$inboundSchema` instead. */
|
|
3520
|
+
export const inboundSchema = RequestBodyRedirect$inboundSchema;
|
|
3521
|
+
/** @deprecated use `RequestBodyRedirect$outboundSchema` instead. */
|
|
3522
|
+
export const outboundSchema = RequestBodyRedirect$outboundSchema;
|
|
3523
|
+
/** @deprecated use `RequestBodyRedirect$Outbound` instead. */
|
|
3524
|
+
export type Outbound = RequestBodyRedirect$Outbound;
|
|
3348
3525
|
}
|
|
3349
3526
|
|
|
3350
|
-
export function
|
|
3351
|
-
|
|
3527
|
+
export function requestBodyRedirectToJSON(
|
|
3528
|
+
requestBodyRedirect: RequestBodyRedirect,
|
|
3529
|
+
): string {
|
|
3530
|
+
return JSON.stringify(
|
|
3531
|
+
RequestBodyRedirect$outboundSchema.parse(requestBodyRedirect),
|
|
3532
|
+
);
|
|
3352
3533
|
}
|
|
3353
3534
|
|
|
3354
|
-
export function
|
|
3535
|
+
export function requestBodyRedirectFromJSON(
|
|
3355
3536
|
jsonString: string,
|
|
3356
|
-
): SafeParseResult<
|
|
3537
|
+
): SafeParseResult<RequestBodyRedirect, SDKValidationError> {
|
|
3357
3538
|
return safeParse(
|
|
3358
3539
|
jsonString,
|
|
3359
|
-
(x) =>
|
|
3360
|
-
`Failed to parse '
|
|
3540
|
+
(x) => RequestBodyRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
3541
|
+
`Failed to parse 'RequestBodyRedirect' from JSON`,
|
|
3361
3542
|
);
|
|
3362
3543
|
}
|
|
3363
3544
|
|
|
3364
3545
|
/** @internal */
|
|
3365
|
-
export const
|
|
3366
|
-
|
|
3546
|
+
export const RequestBodyMitigate$inboundSchema: z.ZodType<
|
|
3547
|
+
RequestBodyMitigate,
|
|
3367
3548
|
z.ZodTypeDef,
|
|
3368
3549
|
unknown
|
|
3369
3550
|
> = z.object({
|
|
3370
3551
|
action:
|
|
3371
3552
|
UpdateFirewallConfigRequestBodySecurityRequest2ValueAction$inboundSchema,
|
|
3372
3553
|
rateLimit: z.nullable(
|
|
3373
|
-
z.union([
|
|
3554
|
+
z.union([
|
|
3555
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$inboundSchema),
|
|
3556
|
+
z.any(),
|
|
3557
|
+
]),
|
|
3374
3558
|
).optional(),
|
|
3375
3559
|
redirect: z.nullable(
|
|
3376
|
-
z.union([
|
|
3560
|
+
z.union([
|
|
3561
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$inboundSchema),
|
|
3562
|
+
z.any(),
|
|
3563
|
+
]),
|
|
3377
3564
|
).optional(),
|
|
3378
3565
|
actionDuration: z.nullable(z.string()).optional(),
|
|
3379
3566
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3380
3567
|
});
|
|
3381
3568
|
|
|
3382
3569
|
/** @internal */
|
|
3383
|
-
export type
|
|
3570
|
+
export type RequestBodyMitigate$Outbound = {
|
|
3384
3571
|
action: string;
|
|
3385
|
-
rateLimit?:
|
|
3386
|
-
redirect?:
|
|
3572
|
+
rateLimit?: UpdateFirewallConfigRateLimit1$Outbound | any | null | undefined;
|
|
3573
|
+
redirect?: UpdateFirewallConfigRedirect1$Outbound | any | null | undefined;
|
|
3387
3574
|
actionDuration?: string | null | undefined;
|
|
3388
3575
|
bypassSystem?: boolean | null | undefined;
|
|
3389
3576
|
};
|
|
3390
3577
|
|
|
3391
3578
|
/** @internal */
|
|
3392
|
-
export const
|
|
3393
|
-
|
|
3579
|
+
export const RequestBodyMitigate$outboundSchema: z.ZodType<
|
|
3580
|
+
RequestBodyMitigate$Outbound,
|
|
3394
3581
|
z.ZodTypeDef,
|
|
3395
|
-
|
|
3582
|
+
RequestBodyMitigate
|
|
3396
3583
|
> = z.object({
|
|
3397
3584
|
action:
|
|
3398
3585
|
UpdateFirewallConfigRequestBodySecurityRequest2ValueAction$outboundSchema,
|
|
3399
3586
|
rateLimit: z.nullable(
|
|
3400
|
-
z.union([
|
|
3587
|
+
z.union([
|
|
3588
|
+
z.lazy(() => UpdateFirewallConfigRateLimit1$outboundSchema),
|
|
3589
|
+
z.any(),
|
|
3590
|
+
]),
|
|
3401
3591
|
).optional(),
|
|
3402
3592
|
redirect: z.nullable(
|
|
3403
|
-
z.union([
|
|
3593
|
+
z.union([
|
|
3594
|
+
z.lazy(() => UpdateFirewallConfigRedirect1$outboundSchema),
|
|
3595
|
+
z.any(),
|
|
3596
|
+
]),
|
|
3404
3597
|
).optional(),
|
|
3405
3598
|
actionDuration: z.nullable(z.string()).optional(),
|
|
3406
3599
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
@@ -3410,26 +3603,30 @@ export const Mitigate$outboundSchema: z.ZodType<
|
|
|
3410
3603
|
* @internal
|
|
3411
3604
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3412
3605
|
*/
|
|
3413
|
-
export namespace
|
|
3414
|
-
/** @deprecated use `
|
|
3415
|
-
export const inboundSchema =
|
|
3416
|
-
/** @deprecated use `
|
|
3417
|
-
export const outboundSchema =
|
|
3418
|
-
/** @deprecated use `
|
|
3419
|
-
export type Outbound =
|
|
3606
|
+
export namespace RequestBodyMitigate$ {
|
|
3607
|
+
/** @deprecated use `RequestBodyMitigate$inboundSchema` instead. */
|
|
3608
|
+
export const inboundSchema = RequestBodyMitigate$inboundSchema;
|
|
3609
|
+
/** @deprecated use `RequestBodyMitigate$outboundSchema` instead. */
|
|
3610
|
+
export const outboundSchema = RequestBodyMitigate$outboundSchema;
|
|
3611
|
+
/** @deprecated use `RequestBodyMitigate$Outbound` instead. */
|
|
3612
|
+
export type Outbound = RequestBodyMitigate$Outbound;
|
|
3420
3613
|
}
|
|
3421
3614
|
|
|
3422
|
-
export function
|
|
3423
|
-
|
|
3615
|
+
export function requestBodyMitigateToJSON(
|
|
3616
|
+
requestBodyMitigate: RequestBodyMitigate,
|
|
3617
|
+
): string {
|
|
3618
|
+
return JSON.stringify(
|
|
3619
|
+
RequestBodyMitigate$outboundSchema.parse(requestBodyMitigate),
|
|
3620
|
+
);
|
|
3424
3621
|
}
|
|
3425
3622
|
|
|
3426
|
-
export function
|
|
3623
|
+
export function requestBodyMitigateFromJSON(
|
|
3427
3624
|
jsonString: string,
|
|
3428
|
-
): SafeParseResult<
|
|
3625
|
+
): SafeParseResult<RequestBodyMitigate, SDKValidationError> {
|
|
3429
3626
|
return safeParse(
|
|
3430
3627
|
jsonString,
|
|
3431
|
-
(x) =>
|
|
3432
|
-
`Failed to parse '
|
|
3628
|
+
(x) => RequestBodyMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
3629
|
+
`Failed to parse 'RequestBodyMitigate' from JSON`,
|
|
3433
3630
|
);
|
|
3434
3631
|
}
|
|
3435
3632
|
|
|
@@ -3440,12 +3637,12 @@ export const UpdateFirewallConfigRequestBodySecurityRequest2Action$inboundSchema
|
|
|
3440
3637
|
z.ZodTypeDef,
|
|
3441
3638
|
unknown
|
|
3442
3639
|
> = z.object({
|
|
3443
|
-
mitigate: z.lazy(() =>
|
|
3640
|
+
mitigate: z.lazy(() => RequestBodyMitigate$inboundSchema).optional(),
|
|
3444
3641
|
});
|
|
3445
3642
|
|
|
3446
3643
|
/** @internal */
|
|
3447
3644
|
export type UpdateFirewallConfigRequestBodySecurityRequest2Action$Outbound = {
|
|
3448
|
-
mitigate?:
|
|
3645
|
+
mitigate?: RequestBodyMitigate$Outbound | undefined;
|
|
3449
3646
|
};
|
|
3450
3647
|
|
|
3451
3648
|
/** @internal */
|
|
@@ -3455,7 +3652,7 @@ export const UpdateFirewallConfigRequestBodySecurityRequest2Action$outboundSchem
|
|
|
3455
3652
|
z.ZodTypeDef,
|
|
3456
3653
|
UpdateFirewallConfigRequestBodySecurityRequest2Action
|
|
3457
3654
|
> = z.object({
|
|
3458
|
-
mitigate: z.lazy(() =>
|
|
3655
|
+
mitigate: z.lazy(() => RequestBodyMitigate$outboundSchema).optional(),
|
|
3459
3656
|
});
|
|
3460
3657
|
|
|
3461
3658
|
/**
|
|
@@ -3502,36 +3699,43 @@ export function updateFirewallConfigRequestBodySecurityRequest2ActionFromJSON(
|
|
|
3502
3699
|
}
|
|
3503
3700
|
|
|
3504
3701
|
/** @internal */
|
|
3505
|
-
export const
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3702
|
+
export const RequestBodyValue$inboundSchema: z.ZodType<
|
|
3703
|
+
RequestBodyValue,
|
|
3704
|
+
z.ZodTypeDef,
|
|
3705
|
+
unknown
|
|
3706
|
+
> = z.object({
|
|
3707
|
+
name: z.string(),
|
|
3708
|
+
description: z.string().optional(),
|
|
3709
|
+
active: z.boolean(),
|
|
3710
|
+
conditionGroup: z.array(
|
|
3711
|
+
z.lazy(() => RequestBodyConditionGroup$inboundSchema),
|
|
3712
|
+
),
|
|
3713
|
+
action: z.lazy(() =>
|
|
3714
|
+
UpdateFirewallConfigRequestBodySecurityRequest2Action$inboundSchema
|
|
3715
|
+
),
|
|
3716
|
+
});
|
|
3515
3717
|
|
|
3516
3718
|
/** @internal */
|
|
3517
|
-
export type
|
|
3719
|
+
export type RequestBodyValue$Outbound = {
|
|
3518
3720
|
name: string;
|
|
3519
3721
|
description?: string | undefined;
|
|
3520
3722
|
active: boolean;
|
|
3521
|
-
conditionGroup: Array<
|
|
3723
|
+
conditionGroup: Array<RequestBodyConditionGroup$Outbound>;
|
|
3522
3724
|
action: UpdateFirewallConfigRequestBodySecurityRequest2Action$Outbound;
|
|
3523
3725
|
};
|
|
3524
3726
|
|
|
3525
3727
|
/** @internal */
|
|
3526
|
-
export const
|
|
3527
|
-
|
|
3728
|
+
export const RequestBodyValue$outboundSchema: z.ZodType<
|
|
3729
|
+
RequestBodyValue$Outbound,
|
|
3528
3730
|
z.ZodTypeDef,
|
|
3529
|
-
|
|
3731
|
+
RequestBodyValue
|
|
3530
3732
|
> = z.object({
|
|
3531
3733
|
name: z.string(),
|
|
3532
3734
|
description: z.string().optional(),
|
|
3533
3735
|
active: z.boolean(),
|
|
3534
|
-
conditionGroup: z.array(
|
|
3736
|
+
conditionGroup: z.array(
|
|
3737
|
+
z.lazy(() => RequestBodyConditionGroup$outboundSchema),
|
|
3738
|
+
),
|
|
3535
3739
|
action: z.lazy(() =>
|
|
3536
3740
|
UpdateFirewallConfigRequestBodySecurityRequest2Action$outboundSchema
|
|
3537
3741
|
),
|
|
@@ -3541,26 +3745,30 @@ export const Value$outboundSchema: z.ZodType<
|
|
|
3541
3745
|
* @internal
|
|
3542
3746
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3543
3747
|
*/
|
|
3544
|
-
export namespace
|
|
3545
|
-
/** @deprecated use `
|
|
3546
|
-
export const inboundSchema =
|
|
3547
|
-
/** @deprecated use `
|
|
3548
|
-
export const outboundSchema =
|
|
3549
|
-
/** @deprecated use `
|
|
3550
|
-
export type Outbound =
|
|
3748
|
+
export namespace RequestBodyValue$ {
|
|
3749
|
+
/** @deprecated use `RequestBodyValue$inboundSchema` instead. */
|
|
3750
|
+
export const inboundSchema = RequestBodyValue$inboundSchema;
|
|
3751
|
+
/** @deprecated use `RequestBodyValue$outboundSchema` instead. */
|
|
3752
|
+
export const outboundSchema = RequestBodyValue$outboundSchema;
|
|
3753
|
+
/** @deprecated use `RequestBodyValue$Outbound` instead. */
|
|
3754
|
+
export type Outbound = RequestBodyValue$Outbound;
|
|
3551
3755
|
}
|
|
3552
3756
|
|
|
3553
|
-
export function
|
|
3554
|
-
|
|
3757
|
+
export function requestBodyValueToJSON(
|
|
3758
|
+
requestBodyValue: RequestBodyValue,
|
|
3759
|
+
): string {
|
|
3760
|
+
return JSON.stringify(
|
|
3761
|
+
RequestBodyValue$outboundSchema.parse(requestBodyValue),
|
|
3762
|
+
);
|
|
3555
3763
|
}
|
|
3556
3764
|
|
|
3557
|
-
export function
|
|
3765
|
+
export function requestBodyValueFromJSON(
|
|
3558
3766
|
jsonString: string,
|
|
3559
|
-
): SafeParseResult<
|
|
3767
|
+
): SafeParseResult<RequestBodyValue, SDKValidationError> {
|
|
3560
3768
|
return safeParse(
|
|
3561
3769
|
jsonString,
|
|
3562
|
-
(x) =>
|
|
3563
|
-
`Failed to parse '
|
|
3770
|
+
(x) => RequestBodyValue$inboundSchema.parse(JSON.parse(x)),
|
|
3771
|
+
`Failed to parse 'RequestBodyValue' from JSON`,
|
|
3564
3772
|
);
|
|
3565
3773
|
}
|
|
3566
3774
|
|
|
@@ -3572,14 +3780,14 @@ export const UpdateFirewallConfigRequestBody2$inboundSchema: z.ZodType<
|
|
|
3572
3780
|
> = z.object({
|
|
3573
3781
|
action: UpdateFirewallConfigRequestBodyAction$inboundSchema,
|
|
3574
3782
|
id: z.nullable(z.any()).optional(),
|
|
3575
|
-
value: z.lazy(() =>
|
|
3783
|
+
value: z.lazy(() => RequestBodyValue$inboundSchema),
|
|
3576
3784
|
});
|
|
3577
3785
|
|
|
3578
3786
|
/** @internal */
|
|
3579
3787
|
export type UpdateFirewallConfigRequestBody2$Outbound = {
|
|
3580
3788
|
action: string;
|
|
3581
3789
|
id?: any | null | undefined;
|
|
3582
|
-
value:
|
|
3790
|
+
value: RequestBodyValue$Outbound;
|
|
3583
3791
|
};
|
|
3584
3792
|
|
|
3585
3793
|
/** @internal */
|
|
@@ -3590,7 +3798,7 @@ export const UpdateFirewallConfigRequestBody2$outboundSchema: z.ZodType<
|
|
|
3590
3798
|
> = z.object({
|
|
3591
3799
|
action: UpdateFirewallConfigRequestBodyAction$outboundSchema,
|
|
3592
3800
|
id: z.nullable(z.any()).optional(),
|
|
3593
|
-
value: z.lazy(() =>
|
|
3801
|
+
value: z.lazy(() => RequestBodyValue$outboundSchema),
|
|
3594
3802
|
});
|
|
3595
3803
|
|
|
3596
3804
|
/**
|