@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
|
@@ -0,0 +1,2383 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
export const ManagedRulesAction = {
|
|
8
|
+
Log: "log",
|
|
9
|
+
Challenge: "challenge",
|
|
10
|
+
Deny: "deny",
|
|
11
|
+
};
|
|
12
|
+
export const PutFirewallConfigManagedRulesAction = {
|
|
13
|
+
Log: "log",
|
|
14
|
+
Challenge: "challenge",
|
|
15
|
+
Deny: "deny",
|
|
16
|
+
};
|
|
17
|
+
export const PutFirewallConfigAction = {
|
|
18
|
+
Deny: "deny",
|
|
19
|
+
Log: "log",
|
|
20
|
+
};
|
|
21
|
+
export const PutFirewallConfigSecurityAction = {
|
|
22
|
+
Deny: "deny",
|
|
23
|
+
Log: "log",
|
|
24
|
+
};
|
|
25
|
+
export const PutFirewallConfigSecurityRequestAction = {
|
|
26
|
+
Deny: "deny",
|
|
27
|
+
Log: "log",
|
|
28
|
+
};
|
|
29
|
+
export const PutFirewallConfigSecurityRequestRequestBodyAction = {
|
|
30
|
+
Deny: "deny",
|
|
31
|
+
Log: "log",
|
|
32
|
+
};
|
|
33
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsAction = {
|
|
34
|
+
Deny: "deny",
|
|
35
|
+
Log: "log",
|
|
36
|
+
};
|
|
37
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction = {
|
|
38
|
+
Deny: "deny",
|
|
39
|
+
Log: "log",
|
|
40
|
+
};
|
|
41
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsGenAction = {
|
|
42
|
+
Deny: "deny",
|
|
43
|
+
Log: "log",
|
|
44
|
+
};
|
|
45
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsXssAction = {
|
|
46
|
+
Deny: "deny",
|
|
47
|
+
Log: "log",
|
|
48
|
+
};
|
|
49
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction = {
|
|
50
|
+
Deny: "deny",
|
|
51
|
+
Log: "log",
|
|
52
|
+
};
|
|
53
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsSfAction = {
|
|
54
|
+
Deny: "deny",
|
|
55
|
+
Log: "log",
|
|
56
|
+
};
|
|
57
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction = {
|
|
58
|
+
Deny: "deny",
|
|
59
|
+
Log: "log",
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
63
|
+
*/
|
|
64
|
+
export const PutFirewallConfigType = {
|
|
65
|
+
Host: "host",
|
|
66
|
+
Path: "path",
|
|
67
|
+
Method: "method",
|
|
68
|
+
Header: "header",
|
|
69
|
+
Query: "query",
|
|
70
|
+
Cookie: "cookie",
|
|
71
|
+
TargetPath: "target_path",
|
|
72
|
+
RawPath: "raw_path",
|
|
73
|
+
IpAddress: "ip_address",
|
|
74
|
+
Region: "region",
|
|
75
|
+
Protocol: "protocol",
|
|
76
|
+
Scheme: "scheme",
|
|
77
|
+
Environment: "environment",
|
|
78
|
+
UserAgent: "user_agent",
|
|
79
|
+
GeoContinent: "geo_continent",
|
|
80
|
+
GeoCountry: "geo_country",
|
|
81
|
+
GeoCountryRegion: "geo_country_region",
|
|
82
|
+
GeoCity: "geo_city",
|
|
83
|
+
GeoAsNumber: "geo_as_number",
|
|
84
|
+
Ja4Digest: "ja4_digest",
|
|
85
|
+
Ja3Digest: "ja3_digest",
|
|
86
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* [Operator](https://vercel.com/docs/security/vercel-waf/rule-configuration#operators) used to compare the parameter with a value.
|
|
90
|
+
*/
|
|
91
|
+
export const Op = {
|
|
92
|
+
Re: "re",
|
|
93
|
+
Eq: "eq",
|
|
94
|
+
Neq: "neq",
|
|
95
|
+
Ex: "ex",
|
|
96
|
+
Nex: "nex",
|
|
97
|
+
Inc: "inc",
|
|
98
|
+
Ninc: "ninc",
|
|
99
|
+
Pre: "pre",
|
|
100
|
+
Suf: "suf",
|
|
101
|
+
Sub: "sub",
|
|
102
|
+
Gt: "gt",
|
|
103
|
+
Gte: "gte",
|
|
104
|
+
Lt: "lt",
|
|
105
|
+
Lte: "lte",
|
|
106
|
+
};
|
|
107
|
+
export const PutFirewallConfigSecurityRequestRequestBodyRulesActionAction = {
|
|
108
|
+
Log: "log",
|
|
109
|
+
Challenge: "challenge",
|
|
110
|
+
Deny: "deny",
|
|
111
|
+
Bypass: "bypass",
|
|
112
|
+
RateLimit: "rate_limit",
|
|
113
|
+
Redirect: "redirect",
|
|
114
|
+
};
|
|
115
|
+
export const Algo = {
|
|
116
|
+
FixedWindow: "fixed_window",
|
|
117
|
+
TokenBucket: "token_bucket",
|
|
118
|
+
};
|
|
119
|
+
export const Action1 = {
|
|
120
|
+
Log: "log",
|
|
121
|
+
Challenge: "challenge",
|
|
122
|
+
Deny: "deny",
|
|
123
|
+
RateLimit: "rate_limit",
|
|
124
|
+
};
|
|
125
|
+
export const PutFirewallConfigSecurityRequestRequestBodyIpsAction = {
|
|
126
|
+
Deny: "deny",
|
|
127
|
+
Challenge: "challenge",
|
|
128
|
+
Log: "log",
|
|
129
|
+
Bypass: "bypass",
|
|
130
|
+
};
|
|
131
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction = {
|
|
132
|
+
Deny: "deny",
|
|
133
|
+
Log: "log",
|
|
134
|
+
};
|
|
135
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction = {
|
|
136
|
+
Deny: "deny",
|
|
137
|
+
Log: "log",
|
|
138
|
+
};
|
|
139
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction = {
|
|
140
|
+
Deny: "deny",
|
|
141
|
+
Log: "log",
|
|
142
|
+
};
|
|
143
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction = {
|
|
144
|
+
Deny: "deny",
|
|
145
|
+
Log: "log",
|
|
146
|
+
};
|
|
147
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction = {
|
|
148
|
+
Deny: "deny",
|
|
149
|
+
Log: "log",
|
|
150
|
+
};
|
|
151
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction = {
|
|
152
|
+
Deny: "deny",
|
|
153
|
+
Log: "log",
|
|
154
|
+
};
|
|
155
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction = {
|
|
156
|
+
Deny: "deny",
|
|
157
|
+
Log: "log",
|
|
158
|
+
};
|
|
159
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction = {
|
|
160
|
+
Deny: "deny",
|
|
161
|
+
Log: "log",
|
|
162
|
+
};
|
|
163
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction = {
|
|
164
|
+
Deny: "deny",
|
|
165
|
+
Log: "log",
|
|
166
|
+
};
|
|
167
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction = {
|
|
168
|
+
Deny: "deny",
|
|
169
|
+
Log: "log",
|
|
170
|
+
};
|
|
171
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction = {
|
|
172
|
+
Deny: "deny",
|
|
173
|
+
Log: "log",
|
|
174
|
+
};
|
|
175
|
+
export const PutFirewallConfigSecurityType = {
|
|
176
|
+
Host: "host",
|
|
177
|
+
Path: "path",
|
|
178
|
+
Method: "method",
|
|
179
|
+
Header: "header",
|
|
180
|
+
Query: "query",
|
|
181
|
+
Cookie: "cookie",
|
|
182
|
+
TargetPath: "target_path",
|
|
183
|
+
RawPath: "raw_path",
|
|
184
|
+
IpAddress: "ip_address",
|
|
185
|
+
Protocol: "protocol",
|
|
186
|
+
Region: "region",
|
|
187
|
+
Scheme: "scheme",
|
|
188
|
+
Environment: "environment",
|
|
189
|
+
UserAgent: "user_agent",
|
|
190
|
+
GeoContinent: "geo_continent",
|
|
191
|
+
GeoCountry: "geo_country",
|
|
192
|
+
GeoCountryRegion: "geo_country_region",
|
|
193
|
+
GeoCity: "geo_city",
|
|
194
|
+
GeoAsNumber: "geo_as_number",
|
|
195
|
+
Ja4Digest: "ja4_digest",
|
|
196
|
+
Ja3Digest: "ja3_digest",
|
|
197
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
198
|
+
};
|
|
199
|
+
export const PutFirewallConfigOp = {
|
|
200
|
+
Re: "re",
|
|
201
|
+
Eq: "eq",
|
|
202
|
+
Ex: "ex",
|
|
203
|
+
Inc: "inc",
|
|
204
|
+
Pre: "pre",
|
|
205
|
+
Suf: "suf",
|
|
206
|
+
Sub: "sub",
|
|
207
|
+
Gt: "gt",
|
|
208
|
+
Gte: "gte",
|
|
209
|
+
Lt: "lt",
|
|
210
|
+
Lte: "lte",
|
|
211
|
+
Nex: "nex",
|
|
212
|
+
Ninc: "ninc",
|
|
213
|
+
Neq: "neq",
|
|
214
|
+
};
|
|
215
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction = {
|
|
216
|
+
Deny: "deny",
|
|
217
|
+
Log: "log",
|
|
218
|
+
Challenge: "challenge",
|
|
219
|
+
Bypass: "bypass",
|
|
220
|
+
RateLimit: "rate_limit",
|
|
221
|
+
Redirect: "redirect",
|
|
222
|
+
};
|
|
223
|
+
export const PutFirewallConfigAlgo = {
|
|
224
|
+
FixedWindow: "fixed_window",
|
|
225
|
+
TokenBucket: "token_bucket",
|
|
226
|
+
};
|
|
227
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction = {
|
|
228
|
+
Deny: "deny",
|
|
229
|
+
Log: "log",
|
|
230
|
+
Challenge: "challenge",
|
|
231
|
+
RateLimit: "rate_limit",
|
|
232
|
+
};
|
|
233
|
+
export const PutFirewallConfigSecurityResponse200Action = {
|
|
234
|
+
Deny: "deny",
|
|
235
|
+
Log: "log",
|
|
236
|
+
Challenge: "challenge",
|
|
237
|
+
Bypass: "bypass",
|
|
238
|
+
};
|
|
239
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONAction = {
|
|
240
|
+
Deny: "deny",
|
|
241
|
+
Log: "log",
|
|
242
|
+
Challenge: "challenge",
|
|
243
|
+
};
|
|
244
|
+
/** @internal */
|
|
245
|
+
export const ManagedRulesAction$inboundSchema = z.nativeEnum(ManagedRulesAction);
|
|
246
|
+
/** @internal */
|
|
247
|
+
export const ManagedRulesAction$outboundSchema = ManagedRulesAction$inboundSchema;
|
|
248
|
+
/**
|
|
249
|
+
* @internal
|
|
250
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
251
|
+
*/
|
|
252
|
+
export var ManagedRulesAction$;
|
|
253
|
+
(function (ManagedRulesAction$) {
|
|
254
|
+
/** @deprecated use `ManagedRulesAction$inboundSchema` instead. */
|
|
255
|
+
ManagedRulesAction$.inboundSchema = ManagedRulesAction$inboundSchema;
|
|
256
|
+
/** @deprecated use `ManagedRulesAction$outboundSchema` instead. */
|
|
257
|
+
ManagedRulesAction$.outboundSchema = ManagedRulesAction$outboundSchema;
|
|
258
|
+
})(ManagedRulesAction$ || (ManagedRulesAction$ = {}));
|
|
259
|
+
/** @internal */
|
|
260
|
+
export const PutFirewallConfigManagedRulesAction$inboundSchema = z.nativeEnum(PutFirewallConfigManagedRulesAction);
|
|
261
|
+
/** @internal */
|
|
262
|
+
export const PutFirewallConfigManagedRulesAction$outboundSchema = PutFirewallConfigManagedRulesAction$inboundSchema;
|
|
263
|
+
/**
|
|
264
|
+
* @internal
|
|
265
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
266
|
+
*/
|
|
267
|
+
export var PutFirewallConfigManagedRulesAction$;
|
|
268
|
+
(function (PutFirewallConfigManagedRulesAction$) {
|
|
269
|
+
/** @deprecated use `PutFirewallConfigManagedRulesAction$inboundSchema` instead. */
|
|
270
|
+
PutFirewallConfigManagedRulesAction$.inboundSchema = PutFirewallConfigManagedRulesAction$inboundSchema;
|
|
271
|
+
/** @deprecated use `PutFirewallConfigManagedRulesAction$outboundSchema` instead. */
|
|
272
|
+
PutFirewallConfigManagedRulesAction$.outboundSchema = PutFirewallConfigManagedRulesAction$outboundSchema;
|
|
273
|
+
})(PutFirewallConfigManagedRulesAction$ || (PutFirewallConfigManagedRulesAction$ = {}));
|
|
274
|
+
/** @internal */
|
|
275
|
+
export const RuleGroups$inboundSchema = z.object({
|
|
276
|
+
active: z.boolean().optional(),
|
|
277
|
+
action: PutFirewallConfigManagedRulesAction$inboundSchema.optional(),
|
|
278
|
+
});
|
|
279
|
+
/** @internal */
|
|
280
|
+
export const RuleGroups$outboundSchema = z.object({
|
|
281
|
+
active: z.boolean().optional(),
|
|
282
|
+
action: PutFirewallConfigManagedRulesAction$outboundSchema.optional(),
|
|
283
|
+
});
|
|
284
|
+
/**
|
|
285
|
+
* @internal
|
|
286
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
287
|
+
*/
|
|
288
|
+
export var RuleGroups$;
|
|
289
|
+
(function (RuleGroups$) {
|
|
290
|
+
/** @deprecated use `RuleGroups$inboundSchema` instead. */
|
|
291
|
+
RuleGroups$.inboundSchema = RuleGroups$inboundSchema;
|
|
292
|
+
/** @deprecated use `RuleGroups$outboundSchema` instead. */
|
|
293
|
+
RuleGroups$.outboundSchema = RuleGroups$outboundSchema;
|
|
294
|
+
})(RuleGroups$ || (RuleGroups$ = {}));
|
|
295
|
+
export function ruleGroupsToJSON(ruleGroups) {
|
|
296
|
+
return JSON.stringify(RuleGroups$outboundSchema.parse(ruleGroups));
|
|
297
|
+
}
|
|
298
|
+
export function ruleGroupsFromJSON(jsonString) {
|
|
299
|
+
return safeParse(jsonString, (x) => RuleGroups$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RuleGroups' from JSON`);
|
|
300
|
+
}
|
|
301
|
+
/** @internal */
|
|
302
|
+
export const ManagedRules1$inboundSchema = z.object({
|
|
303
|
+
active: z.boolean(),
|
|
304
|
+
action: ManagedRulesAction$inboundSchema.optional(),
|
|
305
|
+
ruleGroups: z.record(z.lazy(() => RuleGroups$inboundSchema)).optional(),
|
|
306
|
+
});
|
|
307
|
+
/** @internal */
|
|
308
|
+
export const ManagedRules1$outboundSchema = z.object({
|
|
309
|
+
active: z.boolean(),
|
|
310
|
+
action: ManagedRulesAction$outboundSchema.optional(),
|
|
311
|
+
ruleGroups: z.record(z.lazy(() => RuleGroups$outboundSchema)).optional(),
|
|
312
|
+
});
|
|
313
|
+
/**
|
|
314
|
+
* @internal
|
|
315
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
316
|
+
*/
|
|
317
|
+
export var ManagedRules1$;
|
|
318
|
+
(function (ManagedRules1$) {
|
|
319
|
+
/** @deprecated use `ManagedRules1$inboundSchema` instead. */
|
|
320
|
+
ManagedRules1$.inboundSchema = ManagedRules1$inboundSchema;
|
|
321
|
+
/** @deprecated use `ManagedRules1$outboundSchema` instead. */
|
|
322
|
+
ManagedRules1$.outboundSchema = ManagedRules1$outboundSchema;
|
|
323
|
+
})(ManagedRules1$ || (ManagedRules1$ = {}));
|
|
324
|
+
export function managedRules1ToJSON(managedRules1) {
|
|
325
|
+
return JSON.stringify(ManagedRules1$outboundSchema.parse(managedRules1));
|
|
326
|
+
}
|
|
327
|
+
export function managedRules1FromJSON(jsonString) {
|
|
328
|
+
return safeParse(jsonString, (x) => ManagedRules1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ManagedRules1' from JSON`);
|
|
329
|
+
}
|
|
330
|
+
/** @internal */
|
|
331
|
+
export const ManagedRules$inboundSchema = z.lazy(() => ManagedRules1$inboundSchema);
|
|
332
|
+
/** @internal */
|
|
333
|
+
export const ManagedRules$outboundSchema = z.lazy(() => ManagedRules1$outboundSchema);
|
|
334
|
+
/**
|
|
335
|
+
* @internal
|
|
336
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
337
|
+
*/
|
|
338
|
+
export var ManagedRules$;
|
|
339
|
+
(function (ManagedRules$) {
|
|
340
|
+
/** @deprecated use `ManagedRules$inboundSchema` instead. */
|
|
341
|
+
ManagedRules$.inboundSchema = ManagedRules$inboundSchema;
|
|
342
|
+
/** @deprecated use `ManagedRules$outboundSchema` instead. */
|
|
343
|
+
ManagedRules$.outboundSchema = ManagedRules$outboundSchema;
|
|
344
|
+
})(ManagedRules$ || (ManagedRules$ = {}));
|
|
345
|
+
export function managedRulesToJSON(managedRules) {
|
|
346
|
+
return JSON.stringify(ManagedRules$outboundSchema.parse(managedRules));
|
|
347
|
+
}
|
|
348
|
+
export function managedRulesFromJSON(jsonString) {
|
|
349
|
+
return safeParse(jsonString, (x) => ManagedRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ManagedRules' from JSON`);
|
|
350
|
+
}
|
|
351
|
+
/** @internal */
|
|
352
|
+
export const PutFirewallConfigAction$inboundSchema = z.nativeEnum(PutFirewallConfigAction);
|
|
353
|
+
/** @internal */
|
|
354
|
+
export const PutFirewallConfigAction$outboundSchema = PutFirewallConfigAction$inboundSchema;
|
|
355
|
+
/**
|
|
356
|
+
* @internal
|
|
357
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
358
|
+
*/
|
|
359
|
+
export var PutFirewallConfigAction$;
|
|
360
|
+
(function (PutFirewallConfigAction$) {
|
|
361
|
+
/** @deprecated use `PutFirewallConfigAction$inboundSchema` instead. */
|
|
362
|
+
PutFirewallConfigAction$.inboundSchema = PutFirewallConfigAction$inboundSchema;
|
|
363
|
+
/** @deprecated use `PutFirewallConfigAction$outboundSchema` instead. */
|
|
364
|
+
PutFirewallConfigAction$.outboundSchema = PutFirewallConfigAction$outboundSchema;
|
|
365
|
+
})(PutFirewallConfigAction$ || (PutFirewallConfigAction$ = {}));
|
|
366
|
+
/** @internal */
|
|
367
|
+
export const Sd$inboundSchema = z.object({
|
|
368
|
+
active: z.boolean(),
|
|
369
|
+
action: PutFirewallConfigAction$inboundSchema,
|
|
370
|
+
});
|
|
371
|
+
/** @internal */
|
|
372
|
+
export const Sd$outboundSchema = z
|
|
373
|
+
.object({
|
|
374
|
+
active: z.boolean(),
|
|
375
|
+
action: PutFirewallConfigAction$outboundSchema,
|
|
376
|
+
});
|
|
377
|
+
/**
|
|
378
|
+
* @internal
|
|
379
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
380
|
+
*/
|
|
381
|
+
export var Sd$;
|
|
382
|
+
(function (Sd$) {
|
|
383
|
+
/** @deprecated use `Sd$inboundSchema` instead. */
|
|
384
|
+
Sd$.inboundSchema = Sd$inboundSchema;
|
|
385
|
+
/** @deprecated use `Sd$outboundSchema` instead. */
|
|
386
|
+
Sd$.outboundSchema = Sd$outboundSchema;
|
|
387
|
+
})(Sd$ || (Sd$ = {}));
|
|
388
|
+
export function sdToJSON(sd) {
|
|
389
|
+
return JSON.stringify(Sd$outboundSchema.parse(sd));
|
|
390
|
+
}
|
|
391
|
+
export function sdFromJSON(jsonString) {
|
|
392
|
+
return safeParse(jsonString, (x) => Sd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Sd' from JSON`);
|
|
393
|
+
}
|
|
394
|
+
/** @internal */
|
|
395
|
+
export const PutFirewallConfigSecurityAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityAction);
|
|
396
|
+
/** @internal */
|
|
397
|
+
export const PutFirewallConfigSecurityAction$outboundSchema = PutFirewallConfigSecurityAction$inboundSchema;
|
|
398
|
+
/**
|
|
399
|
+
* @internal
|
|
400
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
401
|
+
*/
|
|
402
|
+
export var PutFirewallConfigSecurityAction$;
|
|
403
|
+
(function (PutFirewallConfigSecurityAction$) {
|
|
404
|
+
/** @deprecated use `PutFirewallConfigSecurityAction$inboundSchema` instead. */
|
|
405
|
+
PutFirewallConfigSecurityAction$.inboundSchema = PutFirewallConfigSecurityAction$inboundSchema;
|
|
406
|
+
/** @deprecated use `PutFirewallConfigSecurityAction$outboundSchema` instead. */
|
|
407
|
+
PutFirewallConfigSecurityAction$.outboundSchema = PutFirewallConfigSecurityAction$outboundSchema;
|
|
408
|
+
})(PutFirewallConfigSecurityAction$ || (PutFirewallConfigSecurityAction$ = {}));
|
|
409
|
+
/** @internal */
|
|
410
|
+
export const Ma$inboundSchema = z.object({
|
|
411
|
+
active: z.boolean(),
|
|
412
|
+
action: PutFirewallConfigSecurityAction$inboundSchema,
|
|
413
|
+
});
|
|
414
|
+
/** @internal */
|
|
415
|
+
export const Ma$outboundSchema = z
|
|
416
|
+
.object({
|
|
417
|
+
active: z.boolean(),
|
|
418
|
+
action: PutFirewallConfigSecurityAction$outboundSchema,
|
|
419
|
+
});
|
|
420
|
+
/**
|
|
421
|
+
* @internal
|
|
422
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
423
|
+
*/
|
|
424
|
+
export var Ma$;
|
|
425
|
+
(function (Ma$) {
|
|
426
|
+
/** @deprecated use `Ma$inboundSchema` instead. */
|
|
427
|
+
Ma$.inboundSchema = Ma$inboundSchema;
|
|
428
|
+
/** @deprecated use `Ma$outboundSchema` instead. */
|
|
429
|
+
Ma$.outboundSchema = Ma$outboundSchema;
|
|
430
|
+
})(Ma$ || (Ma$ = {}));
|
|
431
|
+
export function maToJSON(ma) {
|
|
432
|
+
return JSON.stringify(Ma$outboundSchema.parse(ma));
|
|
433
|
+
}
|
|
434
|
+
export function maFromJSON(jsonString) {
|
|
435
|
+
return safeParse(jsonString, (x) => Ma$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ma' from JSON`);
|
|
436
|
+
}
|
|
437
|
+
/** @internal */
|
|
438
|
+
export const PutFirewallConfigSecurityRequestAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestAction);
|
|
439
|
+
/** @internal */
|
|
440
|
+
export const PutFirewallConfigSecurityRequestAction$outboundSchema = PutFirewallConfigSecurityRequestAction$inboundSchema;
|
|
441
|
+
/**
|
|
442
|
+
* @internal
|
|
443
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
444
|
+
*/
|
|
445
|
+
export var PutFirewallConfigSecurityRequestAction$;
|
|
446
|
+
(function (PutFirewallConfigSecurityRequestAction$) {
|
|
447
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestAction$inboundSchema` instead. */
|
|
448
|
+
PutFirewallConfigSecurityRequestAction$.inboundSchema = PutFirewallConfigSecurityRequestAction$inboundSchema;
|
|
449
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestAction$outboundSchema` instead. */
|
|
450
|
+
PutFirewallConfigSecurityRequestAction$.outboundSchema = PutFirewallConfigSecurityRequestAction$outboundSchema;
|
|
451
|
+
})(PutFirewallConfigSecurityRequestAction$ || (PutFirewallConfigSecurityRequestAction$ = {}));
|
|
452
|
+
/** @internal */
|
|
453
|
+
export const Lfi$inboundSchema = z
|
|
454
|
+
.object({
|
|
455
|
+
active: z.boolean(),
|
|
456
|
+
action: PutFirewallConfigSecurityRequestAction$inboundSchema,
|
|
457
|
+
});
|
|
458
|
+
/** @internal */
|
|
459
|
+
export const Lfi$outboundSchema = z
|
|
460
|
+
.object({
|
|
461
|
+
active: z.boolean(),
|
|
462
|
+
action: PutFirewallConfigSecurityRequestAction$outboundSchema,
|
|
463
|
+
});
|
|
464
|
+
/**
|
|
465
|
+
* @internal
|
|
466
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
467
|
+
*/
|
|
468
|
+
export var Lfi$;
|
|
469
|
+
(function (Lfi$) {
|
|
470
|
+
/** @deprecated use `Lfi$inboundSchema` instead. */
|
|
471
|
+
Lfi$.inboundSchema = Lfi$inboundSchema;
|
|
472
|
+
/** @deprecated use `Lfi$outboundSchema` instead. */
|
|
473
|
+
Lfi$.outboundSchema = Lfi$outboundSchema;
|
|
474
|
+
})(Lfi$ || (Lfi$ = {}));
|
|
475
|
+
export function lfiToJSON(lfi) {
|
|
476
|
+
return JSON.stringify(Lfi$outboundSchema.parse(lfi));
|
|
477
|
+
}
|
|
478
|
+
export function lfiFromJSON(jsonString) {
|
|
479
|
+
return safeParse(jsonString, (x) => Lfi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Lfi' from JSON`);
|
|
480
|
+
}
|
|
481
|
+
/** @internal */
|
|
482
|
+
export const PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema = z
|
|
483
|
+
.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyAction);
|
|
484
|
+
/** @internal */
|
|
485
|
+
export const PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema;
|
|
486
|
+
/**
|
|
487
|
+
* @internal
|
|
488
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
489
|
+
*/
|
|
490
|
+
export var PutFirewallConfigSecurityRequestRequestBodyAction$;
|
|
491
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyAction$) {
|
|
492
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema` instead. */
|
|
493
|
+
PutFirewallConfigSecurityRequestRequestBodyAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema;
|
|
494
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema` instead. */
|
|
495
|
+
PutFirewallConfigSecurityRequestRequestBodyAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema;
|
|
496
|
+
})(PutFirewallConfigSecurityRequestRequestBodyAction$ || (PutFirewallConfigSecurityRequestRequestBodyAction$ = {}));
|
|
497
|
+
/** @internal */
|
|
498
|
+
export const Rfi$inboundSchema = z
|
|
499
|
+
.object({
|
|
500
|
+
active: z.boolean(),
|
|
501
|
+
action: PutFirewallConfigSecurityRequestRequestBodyAction$inboundSchema,
|
|
502
|
+
});
|
|
503
|
+
/** @internal */
|
|
504
|
+
export const Rfi$outboundSchema = z
|
|
505
|
+
.object({
|
|
506
|
+
active: z.boolean(),
|
|
507
|
+
action: PutFirewallConfigSecurityRequestRequestBodyAction$outboundSchema,
|
|
508
|
+
});
|
|
509
|
+
/**
|
|
510
|
+
* @internal
|
|
511
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
512
|
+
*/
|
|
513
|
+
export var Rfi$;
|
|
514
|
+
(function (Rfi$) {
|
|
515
|
+
/** @deprecated use `Rfi$inboundSchema` instead. */
|
|
516
|
+
Rfi$.inboundSchema = Rfi$inboundSchema;
|
|
517
|
+
/** @deprecated use `Rfi$outboundSchema` instead. */
|
|
518
|
+
Rfi$.outboundSchema = Rfi$outboundSchema;
|
|
519
|
+
})(Rfi$ || (Rfi$ = {}));
|
|
520
|
+
export function rfiToJSON(rfi) {
|
|
521
|
+
return JSON.stringify(Rfi$outboundSchema.parse(rfi));
|
|
522
|
+
}
|
|
523
|
+
export function rfiFromJSON(jsonString) {
|
|
524
|
+
return safeParse(jsonString, (x) => Rfi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Rfi' from JSON`);
|
|
525
|
+
}
|
|
526
|
+
/** @internal */
|
|
527
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsAction);
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema;
|
|
530
|
+
/**
|
|
531
|
+
* @internal
|
|
532
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
533
|
+
*/
|
|
534
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsAction$;
|
|
535
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsAction$) {
|
|
536
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema` instead. */
|
|
537
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema;
|
|
538
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema` instead. */
|
|
539
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema;
|
|
540
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsAction$ = {}));
|
|
541
|
+
/** @internal */
|
|
542
|
+
export const Rce$inboundSchema = z
|
|
543
|
+
.object({
|
|
544
|
+
active: z.boolean(),
|
|
545
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsAction$inboundSchema,
|
|
546
|
+
});
|
|
547
|
+
/** @internal */
|
|
548
|
+
export const Rce$outboundSchema = z
|
|
549
|
+
.object({
|
|
550
|
+
active: z.boolean(),
|
|
551
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsAction$outboundSchema,
|
|
552
|
+
});
|
|
553
|
+
/**
|
|
554
|
+
* @internal
|
|
555
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
556
|
+
*/
|
|
557
|
+
export var Rce$;
|
|
558
|
+
(function (Rce$) {
|
|
559
|
+
/** @deprecated use `Rce$inboundSchema` instead. */
|
|
560
|
+
Rce$.inboundSchema = Rce$inboundSchema;
|
|
561
|
+
/** @deprecated use `Rce$outboundSchema` instead. */
|
|
562
|
+
Rce$.outboundSchema = Rce$outboundSchema;
|
|
563
|
+
})(Rce$ || (Rce$ = {}));
|
|
564
|
+
export function rceToJSON(rce) {
|
|
565
|
+
return JSON.stringify(Rce$outboundSchema.parse(rce));
|
|
566
|
+
}
|
|
567
|
+
export function rceFromJSON(jsonString) {
|
|
568
|
+
return safeParse(jsonString, (x) => Rce$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Rce' from JSON`);
|
|
569
|
+
}
|
|
570
|
+
/** @internal */
|
|
571
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction);
|
|
572
|
+
/** @internal */
|
|
573
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema;
|
|
574
|
+
/**
|
|
575
|
+
* @internal
|
|
576
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
577
|
+
*/
|
|
578
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$;
|
|
579
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$) {
|
|
580
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema` instead. */
|
|
581
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema;
|
|
582
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema` instead. */
|
|
583
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema;
|
|
584
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$ = {}));
|
|
585
|
+
/** @internal */
|
|
586
|
+
export const Php$inboundSchema = z
|
|
587
|
+
.object({
|
|
588
|
+
active: z.boolean(),
|
|
589
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$inboundSchema,
|
|
590
|
+
});
|
|
591
|
+
/** @internal */
|
|
592
|
+
export const Php$outboundSchema = z
|
|
593
|
+
.object({
|
|
594
|
+
active: z.boolean(),
|
|
595
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsPhpAction$outboundSchema,
|
|
596
|
+
});
|
|
597
|
+
/**
|
|
598
|
+
* @internal
|
|
599
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
600
|
+
*/
|
|
601
|
+
export var Php$;
|
|
602
|
+
(function (Php$) {
|
|
603
|
+
/** @deprecated use `Php$inboundSchema` instead. */
|
|
604
|
+
Php$.inboundSchema = Php$inboundSchema;
|
|
605
|
+
/** @deprecated use `Php$outboundSchema` instead. */
|
|
606
|
+
Php$.outboundSchema = Php$outboundSchema;
|
|
607
|
+
})(Php$ || (Php$ = {}));
|
|
608
|
+
export function phpToJSON(php) {
|
|
609
|
+
return JSON.stringify(Php$outboundSchema.parse(php));
|
|
610
|
+
}
|
|
611
|
+
export function phpFromJSON(jsonString) {
|
|
612
|
+
return safeParse(jsonString, (x) => Php$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Php' from JSON`);
|
|
613
|
+
}
|
|
614
|
+
/** @internal */
|
|
615
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsGenAction);
|
|
616
|
+
/** @internal */
|
|
617
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema;
|
|
618
|
+
/**
|
|
619
|
+
* @internal
|
|
620
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
621
|
+
*/
|
|
622
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$;
|
|
623
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$) {
|
|
624
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema` instead. */
|
|
625
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema;
|
|
626
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema` instead. */
|
|
627
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema;
|
|
628
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$ = {}));
|
|
629
|
+
/** @internal */
|
|
630
|
+
export const Gen$inboundSchema = z
|
|
631
|
+
.object({
|
|
632
|
+
active: z.boolean(),
|
|
633
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$inboundSchema,
|
|
634
|
+
});
|
|
635
|
+
/** @internal */
|
|
636
|
+
export const Gen$outboundSchema = z
|
|
637
|
+
.object({
|
|
638
|
+
active: z.boolean(),
|
|
639
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsGenAction$outboundSchema,
|
|
640
|
+
});
|
|
641
|
+
/**
|
|
642
|
+
* @internal
|
|
643
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
644
|
+
*/
|
|
645
|
+
export var Gen$;
|
|
646
|
+
(function (Gen$) {
|
|
647
|
+
/** @deprecated use `Gen$inboundSchema` instead. */
|
|
648
|
+
Gen$.inboundSchema = Gen$inboundSchema;
|
|
649
|
+
/** @deprecated use `Gen$outboundSchema` instead. */
|
|
650
|
+
Gen$.outboundSchema = Gen$outboundSchema;
|
|
651
|
+
})(Gen$ || (Gen$ = {}));
|
|
652
|
+
export function genToJSON(gen) {
|
|
653
|
+
return JSON.stringify(Gen$outboundSchema.parse(gen));
|
|
654
|
+
}
|
|
655
|
+
export function genFromJSON(jsonString) {
|
|
656
|
+
return safeParse(jsonString, (x) => Gen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Gen' from JSON`);
|
|
657
|
+
}
|
|
658
|
+
/** @internal */
|
|
659
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsXssAction);
|
|
660
|
+
/** @internal */
|
|
661
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema;
|
|
662
|
+
/**
|
|
663
|
+
* @internal
|
|
664
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
665
|
+
*/
|
|
666
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$;
|
|
667
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$) {
|
|
668
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema` instead. */
|
|
669
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema;
|
|
670
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema` instead. */
|
|
671
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema;
|
|
672
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$ = {}));
|
|
673
|
+
/** @internal */
|
|
674
|
+
export const Xss$inboundSchema = z
|
|
675
|
+
.object({
|
|
676
|
+
active: z.boolean(),
|
|
677
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$inboundSchema,
|
|
678
|
+
});
|
|
679
|
+
/** @internal */
|
|
680
|
+
export const Xss$outboundSchema = z
|
|
681
|
+
.object({
|
|
682
|
+
active: z.boolean(),
|
|
683
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsXssAction$outboundSchema,
|
|
684
|
+
});
|
|
685
|
+
/**
|
|
686
|
+
* @internal
|
|
687
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
688
|
+
*/
|
|
689
|
+
export var Xss$;
|
|
690
|
+
(function (Xss$) {
|
|
691
|
+
/** @deprecated use `Xss$inboundSchema` instead. */
|
|
692
|
+
Xss$.inboundSchema = Xss$inboundSchema;
|
|
693
|
+
/** @deprecated use `Xss$outboundSchema` instead. */
|
|
694
|
+
Xss$.outboundSchema = Xss$outboundSchema;
|
|
695
|
+
})(Xss$ || (Xss$ = {}));
|
|
696
|
+
export function xssToJSON(xss) {
|
|
697
|
+
return JSON.stringify(Xss$outboundSchema.parse(xss));
|
|
698
|
+
}
|
|
699
|
+
export function xssFromJSON(jsonString) {
|
|
700
|
+
return safeParse(jsonString, (x) => Xss$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Xss' from JSON`);
|
|
701
|
+
}
|
|
702
|
+
/** @internal */
|
|
703
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction);
|
|
704
|
+
/** @internal */
|
|
705
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema;
|
|
706
|
+
/**
|
|
707
|
+
* @internal
|
|
708
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
709
|
+
*/
|
|
710
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$;
|
|
711
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$) {
|
|
712
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema` instead. */
|
|
713
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema;
|
|
714
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema` instead. */
|
|
715
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema;
|
|
716
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$ = {}));
|
|
717
|
+
/** @internal */
|
|
718
|
+
export const Sqli$inboundSchema = z
|
|
719
|
+
.object({
|
|
720
|
+
active: z.boolean(),
|
|
721
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$inboundSchema,
|
|
722
|
+
});
|
|
723
|
+
/** @internal */
|
|
724
|
+
export const Sqli$outboundSchema = z.object({
|
|
725
|
+
active: z.boolean(),
|
|
726
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsSqliAction$outboundSchema,
|
|
727
|
+
});
|
|
728
|
+
/**
|
|
729
|
+
* @internal
|
|
730
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
731
|
+
*/
|
|
732
|
+
export var Sqli$;
|
|
733
|
+
(function (Sqli$) {
|
|
734
|
+
/** @deprecated use `Sqli$inboundSchema` instead. */
|
|
735
|
+
Sqli$.inboundSchema = Sqli$inboundSchema;
|
|
736
|
+
/** @deprecated use `Sqli$outboundSchema` instead. */
|
|
737
|
+
Sqli$.outboundSchema = Sqli$outboundSchema;
|
|
738
|
+
})(Sqli$ || (Sqli$ = {}));
|
|
739
|
+
export function sqliToJSON(sqli) {
|
|
740
|
+
return JSON.stringify(Sqli$outboundSchema.parse(sqli));
|
|
741
|
+
}
|
|
742
|
+
export function sqliFromJSON(jsonString) {
|
|
743
|
+
return safeParse(jsonString, (x) => Sqli$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Sqli' from JSON`);
|
|
744
|
+
}
|
|
745
|
+
/** @internal */
|
|
746
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsSfAction);
|
|
747
|
+
/** @internal */
|
|
748
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema;
|
|
749
|
+
/**
|
|
750
|
+
* @internal
|
|
751
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
752
|
+
*/
|
|
753
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$;
|
|
754
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$) {
|
|
755
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema` instead. */
|
|
756
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema;
|
|
757
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema` instead. */
|
|
758
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema;
|
|
759
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$ = {}));
|
|
760
|
+
/** @internal */
|
|
761
|
+
export const Sf$inboundSchema = z.object({
|
|
762
|
+
active: z.boolean(),
|
|
763
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$inboundSchema,
|
|
764
|
+
});
|
|
765
|
+
/** @internal */
|
|
766
|
+
export const Sf$outboundSchema = z
|
|
767
|
+
.object({
|
|
768
|
+
active: z.boolean(),
|
|
769
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsSfAction$outboundSchema,
|
|
770
|
+
});
|
|
771
|
+
/**
|
|
772
|
+
* @internal
|
|
773
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
774
|
+
*/
|
|
775
|
+
export var Sf$;
|
|
776
|
+
(function (Sf$) {
|
|
777
|
+
/** @deprecated use `Sf$inboundSchema` instead. */
|
|
778
|
+
Sf$.inboundSchema = Sf$inboundSchema;
|
|
779
|
+
/** @deprecated use `Sf$outboundSchema` instead. */
|
|
780
|
+
Sf$.outboundSchema = Sf$outboundSchema;
|
|
781
|
+
})(Sf$ || (Sf$ = {}));
|
|
782
|
+
export function sfToJSON(sf) {
|
|
783
|
+
return JSON.stringify(Sf$outboundSchema.parse(sf));
|
|
784
|
+
}
|
|
785
|
+
export function sfFromJSON(jsonString) {
|
|
786
|
+
return safeParse(jsonString, (x) => Sf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Sf' from JSON`);
|
|
787
|
+
}
|
|
788
|
+
/** @internal */
|
|
789
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction);
|
|
790
|
+
/** @internal */
|
|
791
|
+
export const PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema;
|
|
792
|
+
/**
|
|
793
|
+
* @internal
|
|
794
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
795
|
+
*/
|
|
796
|
+
export var PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$;
|
|
797
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$) {
|
|
798
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema` instead. */
|
|
799
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema;
|
|
800
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema` instead. */
|
|
801
|
+
PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema;
|
|
802
|
+
})(PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$ || (PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$ = {}));
|
|
803
|
+
/** @internal */
|
|
804
|
+
export const Java$inboundSchema = z
|
|
805
|
+
.object({
|
|
806
|
+
active: z.boolean(),
|
|
807
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$inboundSchema,
|
|
808
|
+
});
|
|
809
|
+
/** @internal */
|
|
810
|
+
export const Java$outboundSchema = z.object({
|
|
811
|
+
active: z.boolean(),
|
|
812
|
+
action: PutFirewallConfigSecurityRequestRequestBodyCrsJavaAction$outboundSchema,
|
|
813
|
+
});
|
|
814
|
+
/**
|
|
815
|
+
* @internal
|
|
816
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
817
|
+
*/
|
|
818
|
+
export var Java$;
|
|
819
|
+
(function (Java$) {
|
|
820
|
+
/** @deprecated use `Java$inboundSchema` instead. */
|
|
821
|
+
Java$.inboundSchema = Java$inboundSchema;
|
|
822
|
+
/** @deprecated use `Java$outboundSchema` instead. */
|
|
823
|
+
Java$.outboundSchema = Java$outboundSchema;
|
|
824
|
+
})(Java$ || (Java$ = {}));
|
|
825
|
+
export function javaToJSON(java) {
|
|
826
|
+
return JSON.stringify(Java$outboundSchema.parse(java));
|
|
827
|
+
}
|
|
828
|
+
export function javaFromJSON(jsonString) {
|
|
829
|
+
return safeParse(jsonString, (x) => Java$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Java' from JSON`);
|
|
830
|
+
}
|
|
831
|
+
/** @internal */
|
|
832
|
+
export const Crs$inboundSchema = z
|
|
833
|
+
.object({
|
|
834
|
+
sd: z.lazy(() => Sd$inboundSchema).optional(),
|
|
835
|
+
ma: z.lazy(() => Ma$inboundSchema).optional(),
|
|
836
|
+
lfi: z.lazy(() => Lfi$inboundSchema).optional(),
|
|
837
|
+
rfi: z.lazy(() => Rfi$inboundSchema).optional(),
|
|
838
|
+
rce: z.lazy(() => Rce$inboundSchema).optional(),
|
|
839
|
+
php: z.lazy(() => Php$inboundSchema).optional(),
|
|
840
|
+
gen: z.lazy(() => Gen$inboundSchema).optional(),
|
|
841
|
+
xss: z.lazy(() => Xss$inboundSchema).optional(),
|
|
842
|
+
sqli: z.lazy(() => Sqli$inboundSchema).optional(),
|
|
843
|
+
sf: z.lazy(() => Sf$inboundSchema).optional(),
|
|
844
|
+
java: z.lazy(() => Java$inboundSchema).optional(),
|
|
845
|
+
});
|
|
846
|
+
/** @internal */
|
|
847
|
+
export const Crs$outboundSchema = z
|
|
848
|
+
.object({
|
|
849
|
+
sd: z.lazy(() => Sd$outboundSchema).optional(),
|
|
850
|
+
ma: z.lazy(() => Ma$outboundSchema).optional(),
|
|
851
|
+
lfi: z.lazy(() => Lfi$outboundSchema).optional(),
|
|
852
|
+
rfi: z.lazy(() => Rfi$outboundSchema).optional(),
|
|
853
|
+
rce: z.lazy(() => Rce$outboundSchema).optional(),
|
|
854
|
+
php: z.lazy(() => Php$outboundSchema).optional(),
|
|
855
|
+
gen: z.lazy(() => Gen$outboundSchema).optional(),
|
|
856
|
+
xss: z.lazy(() => Xss$outboundSchema).optional(),
|
|
857
|
+
sqli: z.lazy(() => Sqli$outboundSchema).optional(),
|
|
858
|
+
sf: z.lazy(() => Sf$outboundSchema).optional(),
|
|
859
|
+
java: z.lazy(() => Java$outboundSchema).optional(),
|
|
860
|
+
});
|
|
861
|
+
/**
|
|
862
|
+
* @internal
|
|
863
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
864
|
+
*/
|
|
865
|
+
export var Crs$;
|
|
866
|
+
(function (Crs$) {
|
|
867
|
+
/** @deprecated use `Crs$inboundSchema` instead. */
|
|
868
|
+
Crs$.inboundSchema = Crs$inboundSchema;
|
|
869
|
+
/** @deprecated use `Crs$outboundSchema` instead. */
|
|
870
|
+
Crs$.outboundSchema = Crs$outboundSchema;
|
|
871
|
+
})(Crs$ || (Crs$ = {}));
|
|
872
|
+
export function crsToJSON(crs) {
|
|
873
|
+
return JSON.stringify(Crs$outboundSchema.parse(crs));
|
|
874
|
+
}
|
|
875
|
+
export function crsFromJSON(jsonString) {
|
|
876
|
+
return safeParse(jsonString, (x) => Crs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Crs' from JSON`);
|
|
877
|
+
}
|
|
878
|
+
/** @internal */
|
|
879
|
+
export const PutFirewallConfigType$inboundSchema = z.nativeEnum(PutFirewallConfigType);
|
|
880
|
+
/** @internal */
|
|
881
|
+
export const PutFirewallConfigType$outboundSchema = PutFirewallConfigType$inboundSchema;
|
|
882
|
+
/**
|
|
883
|
+
* @internal
|
|
884
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
885
|
+
*/
|
|
886
|
+
export var PutFirewallConfigType$;
|
|
887
|
+
(function (PutFirewallConfigType$) {
|
|
888
|
+
/** @deprecated use `PutFirewallConfigType$inboundSchema` instead. */
|
|
889
|
+
PutFirewallConfigType$.inboundSchema = PutFirewallConfigType$inboundSchema;
|
|
890
|
+
/** @deprecated use `PutFirewallConfigType$outboundSchema` instead. */
|
|
891
|
+
PutFirewallConfigType$.outboundSchema = PutFirewallConfigType$outboundSchema;
|
|
892
|
+
})(PutFirewallConfigType$ || (PutFirewallConfigType$ = {}));
|
|
893
|
+
/** @internal */
|
|
894
|
+
export const Op$inboundSchema = z.nativeEnum(Op);
|
|
895
|
+
/** @internal */
|
|
896
|
+
export const Op$outboundSchema = Op$inboundSchema;
|
|
897
|
+
/**
|
|
898
|
+
* @internal
|
|
899
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
900
|
+
*/
|
|
901
|
+
export var Op$;
|
|
902
|
+
(function (Op$) {
|
|
903
|
+
/** @deprecated use `Op$inboundSchema` instead. */
|
|
904
|
+
Op$.inboundSchema = Op$inboundSchema;
|
|
905
|
+
/** @deprecated use `Op$outboundSchema` instead. */
|
|
906
|
+
Op$.outboundSchema = Op$outboundSchema;
|
|
907
|
+
})(Op$ || (Op$ = {}));
|
|
908
|
+
/** @internal */
|
|
909
|
+
export const Value$inboundSchema = z
|
|
910
|
+
.union([z.string(), z.array(z.string()), z.number()]);
|
|
911
|
+
/** @internal */
|
|
912
|
+
export const Value$outboundSchema = z.union([z.string(), z.array(z.string()), z.number()]);
|
|
913
|
+
/**
|
|
914
|
+
* @internal
|
|
915
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
916
|
+
*/
|
|
917
|
+
export var Value$;
|
|
918
|
+
(function (Value$) {
|
|
919
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
920
|
+
Value$.inboundSchema = Value$inboundSchema;
|
|
921
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
922
|
+
Value$.outboundSchema = Value$outboundSchema;
|
|
923
|
+
})(Value$ || (Value$ = {}));
|
|
924
|
+
export function valueToJSON(value) {
|
|
925
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
926
|
+
}
|
|
927
|
+
export function valueFromJSON(jsonString) {
|
|
928
|
+
return safeParse(jsonString, (x) => Value$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Value' from JSON`);
|
|
929
|
+
}
|
|
930
|
+
/** @internal */
|
|
931
|
+
export const Conditions$inboundSchema = z.object({
|
|
932
|
+
type: PutFirewallConfigType$inboundSchema,
|
|
933
|
+
op: Op$inboundSchema,
|
|
934
|
+
neg: z.boolean().optional(),
|
|
935
|
+
key: z.string().optional(),
|
|
936
|
+
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
937
|
+
});
|
|
938
|
+
/** @internal */
|
|
939
|
+
export const Conditions$outboundSchema = z.object({
|
|
940
|
+
type: PutFirewallConfigType$outboundSchema,
|
|
941
|
+
op: Op$outboundSchema,
|
|
942
|
+
neg: z.boolean().optional(),
|
|
943
|
+
key: z.string().optional(),
|
|
944
|
+
value: z.union([z.string(), z.array(z.string()), z.number()]).optional(),
|
|
945
|
+
});
|
|
946
|
+
/**
|
|
947
|
+
* @internal
|
|
948
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
949
|
+
*/
|
|
950
|
+
export var Conditions$;
|
|
951
|
+
(function (Conditions$) {
|
|
952
|
+
/** @deprecated use `Conditions$inboundSchema` instead. */
|
|
953
|
+
Conditions$.inboundSchema = Conditions$inboundSchema;
|
|
954
|
+
/** @deprecated use `Conditions$outboundSchema` instead. */
|
|
955
|
+
Conditions$.outboundSchema = Conditions$outboundSchema;
|
|
956
|
+
})(Conditions$ || (Conditions$ = {}));
|
|
957
|
+
export function conditionsToJSON(conditions) {
|
|
958
|
+
return JSON.stringify(Conditions$outboundSchema.parse(conditions));
|
|
959
|
+
}
|
|
960
|
+
export function conditionsFromJSON(jsonString) {
|
|
961
|
+
return safeParse(jsonString, (x) => Conditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Conditions' from JSON`);
|
|
962
|
+
}
|
|
963
|
+
/** @internal */
|
|
964
|
+
export const ConditionGroup$inboundSchema = z.object({
|
|
965
|
+
conditions: z.array(z.lazy(() => Conditions$inboundSchema)),
|
|
966
|
+
});
|
|
967
|
+
/** @internal */
|
|
968
|
+
export const ConditionGroup$outboundSchema = z.object({
|
|
969
|
+
conditions: z.array(z.lazy(() => Conditions$outboundSchema)),
|
|
970
|
+
});
|
|
971
|
+
/**
|
|
972
|
+
* @internal
|
|
973
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
974
|
+
*/
|
|
975
|
+
export var ConditionGroup$;
|
|
976
|
+
(function (ConditionGroup$) {
|
|
977
|
+
/** @deprecated use `ConditionGroup$inboundSchema` instead. */
|
|
978
|
+
ConditionGroup$.inboundSchema = ConditionGroup$inboundSchema;
|
|
979
|
+
/** @deprecated use `ConditionGroup$outboundSchema` instead. */
|
|
980
|
+
ConditionGroup$.outboundSchema = ConditionGroup$outboundSchema;
|
|
981
|
+
})(ConditionGroup$ || (ConditionGroup$ = {}));
|
|
982
|
+
export function conditionGroupToJSON(conditionGroup) {
|
|
983
|
+
return JSON.stringify(ConditionGroup$outboundSchema.parse(conditionGroup));
|
|
984
|
+
}
|
|
985
|
+
export function conditionGroupFromJSON(jsonString) {
|
|
986
|
+
return safeParse(jsonString, (x) => ConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ConditionGroup' from JSON`);
|
|
987
|
+
}
|
|
988
|
+
/** @internal */
|
|
989
|
+
export const PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyRulesActionAction);
|
|
990
|
+
/** @internal */
|
|
991
|
+
export const PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema;
|
|
992
|
+
/**
|
|
993
|
+
* @internal
|
|
994
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
995
|
+
*/
|
|
996
|
+
export var PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$;
|
|
997
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$) {
|
|
998
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema` instead. */
|
|
999
|
+
PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema;
|
|
1000
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema` instead. */
|
|
1001
|
+
PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema;
|
|
1002
|
+
})(PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$ || (PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$ = {}));
|
|
1003
|
+
/** @internal */
|
|
1004
|
+
export const Algo$inboundSchema = z.nativeEnum(Algo);
|
|
1005
|
+
/** @internal */
|
|
1006
|
+
export const Algo$outboundSchema = Algo$inboundSchema;
|
|
1007
|
+
/**
|
|
1008
|
+
* @internal
|
|
1009
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1010
|
+
*/
|
|
1011
|
+
export var Algo$;
|
|
1012
|
+
(function (Algo$) {
|
|
1013
|
+
/** @deprecated use `Algo$inboundSchema` instead. */
|
|
1014
|
+
Algo$.inboundSchema = Algo$inboundSchema;
|
|
1015
|
+
/** @deprecated use `Algo$outboundSchema` instead. */
|
|
1016
|
+
Algo$.outboundSchema = Algo$outboundSchema;
|
|
1017
|
+
})(Algo$ || (Algo$ = {}));
|
|
1018
|
+
/** @internal */
|
|
1019
|
+
export const Action1$inboundSchema = z
|
|
1020
|
+
.nativeEnum(Action1);
|
|
1021
|
+
/** @internal */
|
|
1022
|
+
export const Action1$outboundSchema = Action1$inboundSchema;
|
|
1023
|
+
/**
|
|
1024
|
+
* @internal
|
|
1025
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1026
|
+
*/
|
|
1027
|
+
export var Action1$;
|
|
1028
|
+
(function (Action1$) {
|
|
1029
|
+
/** @deprecated use `Action1$inboundSchema` instead. */
|
|
1030
|
+
Action1$.inboundSchema = Action1$inboundSchema;
|
|
1031
|
+
/** @deprecated use `Action1$outboundSchema` instead. */
|
|
1032
|
+
Action1$.outboundSchema = Action1$outboundSchema;
|
|
1033
|
+
})(Action1$ || (Action1$ = {}));
|
|
1034
|
+
/** @internal */
|
|
1035
|
+
export const RateLimitAction$inboundSchema = z.union([Action1$inboundSchema, z.any()]);
|
|
1036
|
+
/** @internal */
|
|
1037
|
+
export const RateLimitAction$outboundSchema = z.union([Action1$outboundSchema, z.any()]);
|
|
1038
|
+
/**
|
|
1039
|
+
* @internal
|
|
1040
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1041
|
+
*/
|
|
1042
|
+
export var RateLimitAction$;
|
|
1043
|
+
(function (RateLimitAction$) {
|
|
1044
|
+
/** @deprecated use `RateLimitAction$inboundSchema` instead. */
|
|
1045
|
+
RateLimitAction$.inboundSchema = RateLimitAction$inboundSchema;
|
|
1046
|
+
/** @deprecated use `RateLimitAction$outboundSchema` instead. */
|
|
1047
|
+
RateLimitAction$.outboundSchema = RateLimitAction$outboundSchema;
|
|
1048
|
+
})(RateLimitAction$ || (RateLimitAction$ = {}));
|
|
1049
|
+
export function rateLimitActionToJSON(rateLimitAction) {
|
|
1050
|
+
return JSON.stringify(RateLimitAction$outboundSchema.parse(rateLimitAction));
|
|
1051
|
+
}
|
|
1052
|
+
export function rateLimitActionFromJSON(jsonString) {
|
|
1053
|
+
return safeParse(jsonString, (x) => RateLimitAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RateLimitAction' from JSON`);
|
|
1054
|
+
}
|
|
1055
|
+
/** @internal */
|
|
1056
|
+
export const RateLimit1$inboundSchema = z.object({
|
|
1057
|
+
algo: Algo$inboundSchema,
|
|
1058
|
+
window: z.number(),
|
|
1059
|
+
limit: z.number(),
|
|
1060
|
+
keys: z.array(z.string()),
|
|
1061
|
+
action: z.nullable(z.union([Action1$inboundSchema, z.any()])).optional(),
|
|
1062
|
+
});
|
|
1063
|
+
/** @internal */
|
|
1064
|
+
export const RateLimit1$outboundSchema = z.object({
|
|
1065
|
+
algo: Algo$outboundSchema,
|
|
1066
|
+
window: z.number(),
|
|
1067
|
+
limit: z.number(),
|
|
1068
|
+
keys: z.array(z.string()),
|
|
1069
|
+
action: z.nullable(z.union([Action1$outboundSchema, z.any()])).optional(),
|
|
1070
|
+
});
|
|
1071
|
+
/**
|
|
1072
|
+
* @internal
|
|
1073
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1074
|
+
*/
|
|
1075
|
+
export var RateLimit1$;
|
|
1076
|
+
(function (RateLimit1$) {
|
|
1077
|
+
/** @deprecated use `RateLimit1$inboundSchema` instead. */
|
|
1078
|
+
RateLimit1$.inboundSchema = RateLimit1$inboundSchema;
|
|
1079
|
+
/** @deprecated use `RateLimit1$outboundSchema` instead. */
|
|
1080
|
+
RateLimit1$.outboundSchema = RateLimit1$outboundSchema;
|
|
1081
|
+
})(RateLimit1$ || (RateLimit1$ = {}));
|
|
1082
|
+
export function rateLimit1ToJSON(rateLimit1) {
|
|
1083
|
+
return JSON.stringify(RateLimit1$outboundSchema.parse(rateLimit1));
|
|
1084
|
+
}
|
|
1085
|
+
export function rateLimit1FromJSON(jsonString) {
|
|
1086
|
+
return safeParse(jsonString, (x) => RateLimit1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RateLimit1' from JSON`);
|
|
1087
|
+
}
|
|
1088
|
+
/** @internal */
|
|
1089
|
+
export const RateLimit$inboundSchema = z.union([z.lazy(() => RateLimit1$inboundSchema), z.any()]);
|
|
1090
|
+
/** @internal */
|
|
1091
|
+
export const RateLimit$outboundSchema = z.union([z.lazy(() => RateLimit1$outboundSchema), z.any()]);
|
|
1092
|
+
/**
|
|
1093
|
+
* @internal
|
|
1094
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1095
|
+
*/
|
|
1096
|
+
export var RateLimit$;
|
|
1097
|
+
(function (RateLimit$) {
|
|
1098
|
+
/** @deprecated use `RateLimit$inboundSchema` instead. */
|
|
1099
|
+
RateLimit$.inboundSchema = RateLimit$inboundSchema;
|
|
1100
|
+
/** @deprecated use `RateLimit$outboundSchema` instead. */
|
|
1101
|
+
RateLimit$.outboundSchema = RateLimit$outboundSchema;
|
|
1102
|
+
})(RateLimit$ || (RateLimit$ = {}));
|
|
1103
|
+
export function rateLimitToJSON(rateLimit) {
|
|
1104
|
+
return JSON.stringify(RateLimit$outboundSchema.parse(rateLimit));
|
|
1105
|
+
}
|
|
1106
|
+
export function rateLimitFromJSON(jsonString) {
|
|
1107
|
+
return safeParse(jsonString, (x) => RateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RateLimit' from JSON`);
|
|
1108
|
+
}
|
|
1109
|
+
/** @internal */
|
|
1110
|
+
export const Redirect1$inboundSchema = z.object({
|
|
1111
|
+
location: z.string(),
|
|
1112
|
+
permanent: z.boolean(),
|
|
1113
|
+
});
|
|
1114
|
+
/** @internal */
|
|
1115
|
+
export const Redirect1$outboundSchema = z.object({
|
|
1116
|
+
location: z.string(),
|
|
1117
|
+
permanent: z.boolean(),
|
|
1118
|
+
});
|
|
1119
|
+
/**
|
|
1120
|
+
* @internal
|
|
1121
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1122
|
+
*/
|
|
1123
|
+
export var Redirect1$;
|
|
1124
|
+
(function (Redirect1$) {
|
|
1125
|
+
/** @deprecated use `Redirect1$inboundSchema` instead. */
|
|
1126
|
+
Redirect1$.inboundSchema = Redirect1$inboundSchema;
|
|
1127
|
+
/** @deprecated use `Redirect1$outboundSchema` instead. */
|
|
1128
|
+
Redirect1$.outboundSchema = Redirect1$outboundSchema;
|
|
1129
|
+
})(Redirect1$ || (Redirect1$ = {}));
|
|
1130
|
+
export function redirect1ToJSON(redirect1) {
|
|
1131
|
+
return JSON.stringify(Redirect1$outboundSchema.parse(redirect1));
|
|
1132
|
+
}
|
|
1133
|
+
export function redirect1FromJSON(jsonString) {
|
|
1134
|
+
return safeParse(jsonString, (x) => Redirect1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redirect1' from JSON`);
|
|
1135
|
+
}
|
|
1136
|
+
/** @internal */
|
|
1137
|
+
export const Redirect$inboundSchema = z.union([z.lazy(() => Redirect1$inboundSchema), z.any()]);
|
|
1138
|
+
/** @internal */
|
|
1139
|
+
export const Redirect$outboundSchema = z.union([z.lazy(() => Redirect1$outboundSchema), z.any()]);
|
|
1140
|
+
/**
|
|
1141
|
+
* @internal
|
|
1142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1143
|
+
*/
|
|
1144
|
+
export var Redirect$;
|
|
1145
|
+
(function (Redirect$) {
|
|
1146
|
+
/** @deprecated use `Redirect$inboundSchema` instead. */
|
|
1147
|
+
Redirect$.inboundSchema = Redirect$inboundSchema;
|
|
1148
|
+
/** @deprecated use `Redirect$outboundSchema` instead. */
|
|
1149
|
+
Redirect$.outboundSchema = Redirect$outboundSchema;
|
|
1150
|
+
})(Redirect$ || (Redirect$ = {}));
|
|
1151
|
+
export function redirectToJSON(redirect) {
|
|
1152
|
+
return JSON.stringify(Redirect$outboundSchema.parse(redirect));
|
|
1153
|
+
}
|
|
1154
|
+
export function redirectFromJSON(jsonString) {
|
|
1155
|
+
return safeParse(jsonString, (x) => Redirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redirect' from JSON`);
|
|
1156
|
+
}
|
|
1157
|
+
/** @internal */
|
|
1158
|
+
export const Mitigate$inboundSchema = z.object({
|
|
1159
|
+
action: PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$inboundSchema,
|
|
1160
|
+
rateLimit: z.nullable(z.union([z.lazy(() => RateLimit1$inboundSchema), z.any()])).optional(),
|
|
1161
|
+
redirect: z.nullable(z.union([z.lazy(() => Redirect1$inboundSchema), z.any()])).optional(),
|
|
1162
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
1163
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1164
|
+
});
|
|
1165
|
+
/** @internal */
|
|
1166
|
+
export const Mitigate$outboundSchema = z.object({
|
|
1167
|
+
action: PutFirewallConfigSecurityRequestRequestBodyRulesActionAction$outboundSchema,
|
|
1168
|
+
rateLimit: z.nullable(z.union([z.lazy(() => RateLimit1$outboundSchema), z.any()])).optional(),
|
|
1169
|
+
redirect: z.nullable(z.union([z.lazy(() => Redirect1$outboundSchema), z.any()])).optional(),
|
|
1170
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
1171
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1172
|
+
});
|
|
1173
|
+
/**
|
|
1174
|
+
* @internal
|
|
1175
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1176
|
+
*/
|
|
1177
|
+
export var Mitigate$;
|
|
1178
|
+
(function (Mitigate$) {
|
|
1179
|
+
/** @deprecated use `Mitigate$inboundSchema` instead. */
|
|
1180
|
+
Mitigate$.inboundSchema = Mitigate$inboundSchema;
|
|
1181
|
+
/** @deprecated use `Mitigate$outboundSchema` instead. */
|
|
1182
|
+
Mitigate$.outboundSchema = Mitigate$outboundSchema;
|
|
1183
|
+
})(Mitigate$ || (Mitigate$ = {}));
|
|
1184
|
+
export function mitigateToJSON(mitigate) {
|
|
1185
|
+
return JSON.stringify(Mitigate$outboundSchema.parse(mitigate));
|
|
1186
|
+
}
|
|
1187
|
+
export function mitigateFromJSON(jsonString) {
|
|
1188
|
+
return safeParse(jsonString, (x) => Mitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Mitigate' from JSON`);
|
|
1189
|
+
}
|
|
1190
|
+
/** @internal */
|
|
1191
|
+
export const PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema = z.object({
|
|
1192
|
+
mitigate: z.lazy(() => Mitigate$inboundSchema).optional(),
|
|
1193
|
+
});
|
|
1194
|
+
/** @internal */
|
|
1195
|
+
export const PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema = z.object({
|
|
1196
|
+
mitigate: z.lazy(() => Mitigate$outboundSchema).optional(),
|
|
1197
|
+
});
|
|
1198
|
+
/**
|
|
1199
|
+
* @internal
|
|
1200
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1201
|
+
*/
|
|
1202
|
+
export var PutFirewallConfigSecurityRequestRequestBodyRulesAction$;
|
|
1203
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyRulesAction$) {
|
|
1204
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema` instead. */
|
|
1205
|
+
PutFirewallConfigSecurityRequestRequestBodyRulesAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema;
|
|
1206
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema` instead. */
|
|
1207
|
+
PutFirewallConfigSecurityRequestRequestBodyRulesAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema;
|
|
1208
|
+
})(PutFirewallConfigSecurityRequestRequestBodyRulesAction$ || (PutFirewallConfigSecurityRequestRequestBodyRulesAction$ = {}));
|
|
1209
|
+
export function putFirewallConfigSecurityRequestRequestBodyRulesActionToJSON(putFirewallConfigSecurityRequestRequestBodyRulesAction) {
|
|
1210
|
+
return JSON.stringify(PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema.parse(putFirewallConfigSecurityRequestRequestBodyRulesAction));
|
|
1211
|
+
}
|
|
1212
|
+
export function putFirewallConfigSecurityRequestRequestBodyRulesActionFromJSON(jsonString) {
|
|
1213
|
+
return safeParse(jsonString, (x) => PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema
|
|
1214
|
+
.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSecurityRequestRequestBodyRulesAction' from JSON`);
|
|
1215
|
+
}
|
|
1216
|
+
/** @internal */
|
|
1217
|
+
export const PutFirewallConfigRules$inboundSchema = z.object({
|
|
1218
|
+
id: z.string().optional(),
|
|
1219
|
+
name: z.string(),
|
|
1220
|
+
description: z.string().optional(),
|
|
1221
|
+
active: z.boolean(),
|
|
1222
|
+
conditionGroup: z.array(z.lazy(() => ConditionGroup$inboundSchema)),
|
|
1223
|
+
action: z.lazy(() => PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema),
|
|
1224
|
+
});
|
|
1225
|
+
/** @internal */
|
|
1226
|
+
export const PutFirewallConfigRules$outboundSchema = z.object({
|
|
1227
|
+
id: z.string().optional(),
|
|
1228
|
+
name: z.string(),
|
|
1229
|
+
description: z.string().optional(),
|
|
1230
|
+
active: z.boolean(),
|
|
1231
|
+
conditionGroup: z.array(z.lazy(() => ConditionGroup$outboundSchema)),
|
|
1232
|
+
action: z.lazy(() => PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema),
|
|
1233
|
+
});
|
|
1234
|
+
/**
|
|
1235
|
+
* @internal
|
|
1236
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1237
|
+
*/
|
|
1238
|
+
export var PutFirewallConfigRules$;
|
|
1239
|
+
(function (PutFirewallConfigRules$) {
|
|
1240
|
+
/** @deprecated use `PutFirewallConfigRules$inboundSchema` instead. */
|
|
1241
|
+
PutFirewallConfigRules$.inboundSchema = PutFirewallConfigRules$inboundSchema;
|
|
1242
|
+
/** @deprecated use `PutFirewallConfigRules$outboundSchema` instead. */
|
|
1243
|
+
PutFirewallConfigRules$.outboundSchema = PutFirewallConfigRules$outboundSchema;
|
|
1244
|
+
})(PutFirewallConfigRules$ || (PutFirewallConfigRules$ = {}));
|
|
1245
|
+
export function putFirewallConfigRulesToJSON(putFirewallConfigRules) {
|
|
1246
|
+
return JSON.stringify(PutFirewallConfigRules$outboundSchema.parse(putFirewallConfigRules));
|
|
1247
|
+
}
|
|
1248
|
+
export function putFirewallConfigRulesFromJSON(jsonString) {
|
|
1249
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRules' from JSON`);
|
|
1250
|
+
}
|
|
1251
|
+
/** @internal */
|
|
1252
|
+
export const PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityRequestRequestBodyIpsAction);
|
|
1253
|
+
/** @internal */
|
|
1254
|
+
export const PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema = PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema;
|
|
1255
|
+
/**
|
|
1256
|
+
* @internal
|
|
1257
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1258
|
+
*/
|
|
1259
|
+
export var PutFirewallConfigSecurityRequestRequestBodyIpsAction$;
|
|
1260
|
+
(function (PutFirewallConfigSecurityRequestRequestBodyIpsAction$) {
|
|
1261
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema` instead. */
|
|
1262
|
+
PutFirewallConfigSecurityRequestRequestBodyIpsAction$.inboundSchema = PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema;
|
|
1263
|
+
/** @deprecated use `PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema` instead. */
|
|
1264
|
+
PutFirewallConfigSecurityRequestRequestBodyIpsAction$.outboundSchema = PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema;
|
|
1265
|
+
})(PutFirewallConfigSecurityRequestRequestBodyIpsAction$ || (PutFirewallConfigSecurityRequestRequestBodyIpsAction$ = {}));
|
|
1266
|
+
/** @internal */
|
|
1267
|
+
export const Ips$inboundSchema = z
|
|
1268
|
+
.object({
|
|
1269
|
+
id: z.string().optional(),
|
|
1270
|
+
hostname: z.string(),
|
|
1271
|
+
ip: z.string(),
|
|
1272
|
+
notes: z.string().optional(),
|
|
1273
|
+
action: PutFirewallConfigSecurityRequestRequestBodyIpsAction$inboundSchema,
|
|
1274
|
+
});
|
|
1275
|
+
/** @internal */
|
|
1276
|
+
export const Ips$outboundSchema = z
|
|
1277
|
+
.object({
|
|
1278
|
+
id: z.string().optional(),
|
|
1279
|
+
hostname: z.string(),
|
|
1280
|
+
ip: z.string(),
|
|
1281
|
+
notes: z.string().optional(),
|
|
1282
|
+
action: PutFirewallConfigSecurityRequestRequestBodyIpsAction$outboundSchema,
|
|
1283
|
+
});
|
|
1284
|
+
/**
|
|
1285
|
+
* @internal
|
|
1286
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1287
|
+
*/
|
|
1288
|
+
export var Ips$;
|
|
1289
|
+
(function (Ips$) {
|
|
1290
|
+
/** @deprecated use `Ips$inboundSchema` instead. */
|
|
1291
|
+
Ips$.inboundSchema = Ips$inboundSchema;
|
|
1292
|
+
/** @deprecated use `Ips$outboundSchema` instead. */
|
|
1293
|
+
Ips$.outboundSchema = Ips$outboundSchema;
|
|
1294
|
+
})(Ips$ || (Ips$ = {}));
|
|
1295
|
+
export function ipsToJSON(ips) {
|
|
1296
|
+
return JSON.stringify(Ips$outboundSchema.parse(ips));
|
|
1297
|
+
}
|
|
1298
|
+
export function ipsFromJSON(jsonString) {
|
|
1299
|
+
return safeParse(jsonString, (x) => Ips$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Ips' from JSON`);
|
|
1300
|
+
}
|
|
1301
|
+
/** @internal */
|
|
1302
|
+
export const PutFirewallConfigRequestBody$inboundSchema = z.object({
|
|
1303
|
+
firewallEnabled: z.boolean(),
|
|
1304
|
+
managedRules: z.record(z.lazy(() => ManagedRules1$inboundSchema)).optional(),
|
|
1305
|
+
crs: z.lazy(() => Crs$inboundSchema).optional(),
|
|
1306
|
+
rules: z.array(z.lazy(() => PutFirewallConfigRules$inboundSchema)).optional(),
|
|
1307
|
+
ips: z.array(z.lazy(() => Ips$inboundSchema)).optional(),
|
|
1308
|
+
});
|
|
1309
|
+
/** @internal */
|
|
1310
|
+
export const PutFirewallConfigRequestBody$outboundSchema = z.object({
|
|
1311
|
+
firewallEnabled: z.boolean(),
|
|
1312
|
+
managedRules: z.record(z.lazy(() => ManagedRules1$outboundSchema)).optional(),
|
|
1313
|
+
crs: z.lazy(() => Crs$outboundSchema).optional(),
|
|
1314
|
+
rules: z.array(z.lazy(() => PutFirewallConfigRules$outboundSchema))
|
|
1315
|
+
.optional(),
|
|
1316
|
+
ips: z.array(z.lazy(() => Ips$outboundSchema)).optional(),
|
|
1317
|
+
});
|
|
1318
|
+
/**
|
|
1319
|
+
* @internal
|
|
1320
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1321
|
+
*/
|
|
1322
|
+
export var PutFirewallConfigRequestBody$;
|
|
1323
|
+
(function (PutFirewallConfigRequestBody$) {
|
|
1324
|
+
/** @deprecated use `PutFirewallConfigRequestBody$inboundSchema` instead. */
|
|
1325
|
+
PutFirewallConfigRequestBody$.inboundSchema = PutFirewallConfigRequestBody$inboundSchema;
|
|
1326
|
+
/** @deprecated use `PutFirewallConfigRequestBody$outboundSchema` instead. */
|
|
1327
|
+
PutFirewallConfigRequestBody$.outboundSchema = PutFirewallConfigRequestBody$outboundSchema;
|
|
1328
|
+
})(PutFirewallConfigRequestBody$ || (PutFirewallConfigRequestBody$ = {}));
|
|
1329
|
+
export function putFirewallConfigRequestBodyToJSON(putFirewallConfigRequestBody) {
|
|
1330
|
+
return JSON.stringify(PutFirewallConfigRequestBody$outboundSchema.parse(putFirewallConfigRequestBody));
|
|
1331
|
+
}
|
|
1332
|
+
export function putFirewallConfigRequestBodyFromJSON(jsonString) {
|
|
1333
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRequestBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRequestBody' from JSON`);
|
|
1334
|
+
}
|
|
1335
|
+
/** @internal */
|
|
1336
|
+
export const PutFirewallConfigRequest$inboundSchema = z.object({
|
|
1337
|
+
projectId: z.string(),
|
|
1338
|
+
teamId: z.string().optional(),
|
|
1339
|
+
slug: z.string().optional(),
|
|
1340
|
+
RequestBody: z.lazy(() => PutFirewallConfigRequestBody$inboundSchema),
|
|
1341
|
+
}).transform((v) => {
|
|
1342
|
+
return remap$(v, {
|
|
1343
|
+
"RequestBody": "requestBody",
|
|
1344
|
+
});
|
|
1345
|
+
});
|
|
1346
|
+
/** @internal */
|
|
1347
|
+
export const PutFirewallConfigRequest$outboundSchema = z.object({
|
|
1348
|
+
projectId: z.string(),
|
|
1349
|
+
teamId: z.string().optional(),
|
|
1350
|
+
slug: z.string().optional(),
|
|
1351
|
+
requestBody: z.lazy(() => PutFirewallConfigRequestBody$outboundSchema),
|
|
1352
|
+
}).transform((v) => {
|
|
1353
|
+
return remap$(v, {
|
|
1354
|
+
requestBody: "RequestBody",
|
|
1355
|
+
});
|
|
1356
|
+
});
|
|
1357
|
+
/**
|
|
1358
|
+
* @internal
|
|
1359
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1360
|
+
*/
|
|
1361
|
+
export var PutFirewallConfigRequest$;
|
|
1362
|
+
(function (PutFirewallConfigRequest$) {
|
|
1363
|
+
/** @deprecated use `PutFirewallConfigRequest$inboundSchema` instead. */
|
|
1364
|
+
PutFirewallConfigRequest$.inboundSchema = PutFirewallConfigRequest$inboundSchema;
|
|
1365
|
+
/** @deprecated use `PutFirewallConfigRequest$outboundSchema` instead. */
|
|
1366
|
+
PutFirewallConfigRequest$.outboundSchema = PutFirewallConfigRequest$outboundSchema;
|
|
1367
|
+
})(PutFirewallConfigRequest$ || (PutFirewallConfigRequest$ = {}));
|
|
1368
|
+
export function putFirewallConfigRequestToJSON(putFirewallConfigRequest) {
|
|
1369
|
+
return JSON.stringify(PutFirewallConfigRequest$outboundSchema.parse(putFirewallConfigRequest));
|
|
1370
|
+
}
|
|
1371
|
+
export function putFirewallConfigRequestFromJSON(jsonString) {
|
|
1372
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRequest' from JSON`);
|
|
1373
|
+
}
|
|
1374
|
+
/** @internal */
|
|
1375
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction);
|
|
1376
|
+
/** @internal */
|
|
1377
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema;
|
|
1378
|
+
/**
|
|
1379
|
+
* @internal
|
|
1380
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1381
|
+
*/
|
|
1382
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$;
|
|
1383
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$) {
|
|
1384
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema` instead. */
|
|
1385
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema;
|
|
1386
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema` instead. */
|
|
1387
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema;
|
|
1388
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$ = {}));
|
|
1389
|
+
/** @internal */
|
|
1390
|
+
export const PutFirewallConfigSd$inboundSchema = z.object({
|
|
1391
|
+
active: z.boolean(),
|
|
1392
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$inboundSchema,
|
|
1393
|
+
});
|
|
1394
|
+
/** @internal */
|
|
1395
|
+
export const PutFirewallConfigSd$outboundSchema = z.object({
|
|
1396
|
+
active: z.boolean(),
|
|
1397
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction$outboundSchema,
|
|
1398
|
+
});
|
|
1399
|
+
/**
|
|
1400
|
+
* @internal
|
|
1401
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1402
|
+
*/
|
|
1403
|
+
export var PutFirewallConfigSd$;
|
|
1404
|
+
(function (PutFirewallConfigSd$) {
|
|
1405
|
+
/** @deprecated use `PutFirewallConfigSd$inboundSchema` instead. */
|
|
1406
|
+
PutFirewallConfigSd$.inboundSchema = PutFirewallConfigSd$inboundSchema;
|
|
1407
|
+
/** @deprecated use `PutFirewallConfigSd$outboundSchema` instead. */
|
|
1408
|
+
PutFirewallConfigSd$.outboundSchema = PutFirewallConfigSd$outboundSchema;
|
|
1409
|
+
})(PutFirewallConfigSd$ || (PutFirewallConfigSd$ = {}));
|
|
1410
|
+
export function putFirewallConfigSdToJSON(putFirewallConfigSd) {
|
|
1411
|
+
return JSON.stringify(PutFirewallConfigSd$outboundSchema.parse(putFirewallConfigSd));
|
|
1412
|
+
}
|
|
1413
|
+
export function putFirewallConfigSdFromJSON(jsonString) {
|
|
1414
|
+
return safeParse(jsonString, (x) => PutFirewallConfigSd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSd' from JSON`);
|
|
1415
|
+
}
|
|
1416
|
+
/** @internal */
|
|
1417
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction);
|
|
1418
|
+
/** @internal */
|
|
1419
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema;
|
|
1420
|
+
/**
|
|
1421
|
+
* @internal
|
|
1422
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1423
|
+
*/
|
|
1424
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$;
|
|
1425
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$) {
|
|
1426
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema` instead. */
|
|
1427
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema;
|
|
1428
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema` instead. */
|
|
1429
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema;
|
|
1430
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$ = {}));
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export const PutFirewallConfigMa$inboundSchema = z.object({
|
|
1433
|
+
active: z.boolean(),
|
|
1434
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema,
|
|
1435
|
+
});
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export const PutFirewallConfigMa$outboundSchema = z.object({
|
|
1438
|
+
active: z.boolean(),
|
|
1439
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema,
|
|
1440
|
+
});
|
|
1441
|
+
/**
|
|
1442
|
+
* @internal
|
|
1443
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1444
|
+
*/
|
|
1445
|
+
export var PutFirewallConfigMa$;
|
|
1446
|
+
(function (PutFirewallConfigMa$) {
|
|
1447
|
+
/** @deprecated use `PutFirewallConfigMa$inboundSchema` instead. */
|
|
1448
|
+
PutFirewallConfigMa$.inboundSchema = PutFirewallConfigMa$inboundSchema;
|
|
1449
|
+
/** @deprecated use `PutFirewallConfigMa$outboundSchema` instead. */
|
|
1450
|
+
PutFirewallConfigMa$.outboundSchema = PutFirewallConfigMa$outboundSchema;
|
|
1451
|
+
})(PutFirewallConfigMa$ || (PutFirewallConfigMa$ = {}));
|
|
1452
|
+
export function putFirewallConfigMaToJSON(putFirewallConfigMa) {
|
|
1453
|
+
return JSON.stringify(PutFirewallConfigMa$outboundSchema.parse(putFirewallConfigMa));
|
|
1454
|
+
}
|
|
1455
|
+
export function putFirewallConfigMaFromJSON(jsonString) {
|
|
1456
|
+
return safeParse(jsonString, (x) => PutFirewallConfigMa$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigMa' from JSON`);
|
|
1457
|
+
}
|
|
1458
|
+
/** @internal */
|
|
1459
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction);
|
|
1460
|
+
/** @internal */
|
|
1461
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema;
|
|
1462
|
+
/**
|
|
1463
|
+
* @internal
|
|
1464
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1465
|
+
*/
|
|
1466
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$;
|
|
1467
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$) {
|
|
1468
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema` instead. */
|
|
1469
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema;
|
|
1470
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema` instead. */
|
|
1471
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema;
|
|
1472
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$ = {}));
|
|
1473
|
+
/** @internal */
|
|
1474
|
+
export const PutFirewallConfigLfi$inboundSchema = z.object({
|
|
1475
|
+
active: z.boolean(),
|
|
1476
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$inboundSchema,
|
|
1477
|
+
});
|
|
1478
|
+
/** @internal */
|
|
1479
|
+
export const PutFirewallConfigLfi$outboundSchema = z.object({
|
|
1480
|
+
active: z.boolean(),
|
|
1481
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsLfiAction$outboundSchema,
|
|
1482
|
+
});
|
|
1483
|
+
/**
|
|
1484
|
+
* @internal
|
|
1485
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1486
|
+
*/
|
|
1487
|
+
export var PutFirewallConfigLfi$;
|
|
1488
|
+
(function (PutFirewallConfigLfi$) {
|
|
1489
|
+
/** @deprecated use `PutFirewallConfigLfi$inboundSchema` instead. */
|
|
1490
|
+
PutFirewallConfigLfi$.inboundSchema = PutFirewallConfigLfi$inboundSchema;
|
|
1491
|
+
/** @deprecated use `PutFirewallConfigLfi$outboundSchema` instead. */
|
|
1492
|
+
PutFirewallConfigLfi$.outboundSchema = PutFirewallConfigLfi$outboundSchema;
|
|
1493
|
+
})(PutFirewallConfigLfi$ || (PutFirewallConfigLfi$ = {}));
|
|
1494
|
+
export function putFirewallConfigLfiToJSON(putFirewallConfigLfi) {
|
|
1495
|
+
return JSON.stringify(PutFirewallConfigLfi$outboundSchema.parse(putFirewallConfigLfi));
|
|
1496
|
+
}
|
|
1497
|
+
export function putFirewallConfigLfiFromJSON(jsonString) {
|
|
1498
|
+
return safeParse(jsonString, (x) => PutFirewallConfigLfi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigLfi' from JSON`);
|
|
1499
|
+
}
|
|
1500
|
+
/** @internal */
|
|
1501
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction);
|
|
1502
|
+
/** @internal */
|
|
1503
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
|
|
1504
|
+
/**
|
|
1505
|
+
* @internal
|
|
1506
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1507
|
+
*/
|
|
1508
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$;
|
|
1509
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$) {
|
|
1510
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema` instead. */
|
|
1511
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
|
|
1512
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema` instead. */
|
|
1513
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema;
|
|
1514
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$ = {}));
|
|
1515
|
+
/** @internal */
|
|
1516
|
+
export const PutFirewallConfigRfi$inboundSchema = z.object({
|
|
1517
|
+
active: z.boolean(),
|
|
1518
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema,
|
|
1519
|
+
});
|
|
1520
|
+
/** @internal */
|
|
1521
|
+
export const PutFirewallConfigRfi$outboundSchema = z.object({
|
|
1522
|
+
active: z.boolean(),
|
|
1523
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema,
|
|
1524
|
+
});
|
|
1525
|
+
/**
|
|
1526
|
+
* @internal
|
|
1527
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1528
|
+
*/
|
|
1529
|
+
export var PutFirewallConfigRfi$;
|
|
1530
|
+
(function (PutFirewallConfigRfi$) {
|
|
1531
|
+
/** @deprecated use `PutFirewallConfigRfi$inboundSchema` instead. */
|
|
1532
|
+
PutFirewallConfigRfi$.inboundSchema = PutFirewallConfigRfi$inboundSchema;
|
|
1533
|
+
/** @deprecated use `PutFirewallConfigRfi$outboundSchema` instead. */
|
|
1534
|
+
PutFirewallConfigRfi$.outboundSchema = PutFirewallConfigRfi$outboundSchema;
|
|
1535
|
+
})(PutFirewallConfigRfi$ || (PutFirewallConfigRfi$ = {}));
|
|
1536
|
+
export function putFirewallConfigRfiToJSON(putFirewallConfigRfi) {
|
|
1537
|
+
return JSON.stringify(PutFirewallConfigRfi$outboundSchema.parse(putFirewallConfigRfi));
|
|
1538
|
+
}
|
|
1539
|
+
export function putFirewallConfigRfiFromJSON(jsonString) {
|
|
1540
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRfi$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRfi' from JSON`);
|
|
1541
|
+
}
|
|
1542
|
+
/** @internal */
|
|
1543
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction);
|
|
1544
|
+
/** @internal */
|
|
1545
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema;
|
|
1546
|
+
/**
|
|
1547
|
+
* @internal
|
|
1548
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1549
|
+
*/
|
|
1550
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$;
|
|
1551
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$) {
|
|
1552
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema` instead. */
|
|
1553
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema;
|
|
1554
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema` instead. */
|
|
1555
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema;
|
|
1556
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$ = {}));
|
|
1557
|
+
/** @internal */
|
|
1558
|
+
export const PutFirewallConfigRce$inboundSchema = z.object({
|
|
1559
|
+
active: z.boolean(),
|
|
1560
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$inboundSchema,
|
|
1561
|
+
});
|
|
1562
|
+
/** @internal */
|
|
1563
|
+
export const PutFirewallConfigRce$outboundSchema = z.object({
|
|
1564
|
+
active: z.boolean(),
|
|
1565
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveAction$outboundSchema,
|
|
1566
|
+
});
|
|
1567
|
+
/**
|
|
1568
|
+
* @internal
|
|
1569
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1570
|
+
*/
|
|
1571
|
+
export var PutFirewallConfigRce$;
|
|
1572
|
+
(function (PutFirewallConfigRce$) {
|
|
1573
|
+
/** @deprecated use `PutFirewallConfigRce$inboundSchema` instead. */
|
|
1574
|
+
PutFirewallConfigRce$.inboundSchema = PutFirewallConfigRce$inboundSchema;
|
|
1575
|
+
/** @deprecated use `PutFirewallConfigRce$outboundSchema` instead. */
|
|
1576
|
+
PutFirewallConfigRce$.outboundSchema = PutFirewallConfigRce$outboundSchema;
|
|
1577
|
+
})(PutFirewallConfigRce$ || (PutFirewallConfigRce$ = {}));
|
|
1578
|
+
export function putFirewallConfigRceToJSON(putFirewallConfigRce) {
|
|
1579
|
+
return JSON.stringify(PutFirewallConfigRce$outboundSchema.parse(putFirewallConfigRce));
|
|
1580
|
+
}
|
|
1581
|
+
export function putFirewallConfigRceFromJSON(jsonString) {
|
|
1582
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRce$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRce' from JSON`);
|
|
1583
|
+
}
|
|
1584
|
+
/** @internal */
|
|
1585
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction);
|
|
1586
|
+
/** @internal */
|
|
1587
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema;
|
|
1588
|
+
/**
|
|
1589
|
+
* @internal
|
|
1590
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1591
|
+
*/
|
|
1592
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$;
|
|
1593
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$) {
|
|
1594
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema` instead. */
|
|
1595
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema;
|
|
1596
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema` instead. */
|
|
1597
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema;
|
|
1598
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$ = {}));
|
|
1599
|
+
/** @internal */
|
|
1600
|
+
export const PutFirewallConfigPhp$inboundSchema = z.object({
|
|
1601
|
+
active: z.boolean(),
|
|
1602
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$inboundSchema,
|
|
1603
|
+
});
|
|
1604
|
+
/** @internal */
|
|
1605
|
+
export const PutFirewallConfigPhp$outboundSchema = z.object({
|
|
1606
|
+
active: z.boolean(),
|
|
1607
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsAction$outboundSchema,
|
|
1608
|
+
});
|
|
1609
|
+
/**
|
|
1610
|
+
* @internal
|
|
1611
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1612
|
+
*/
|
|
1613
|
+
export var PutFirewallConfigPhp$;
|
|
1614
|
+
(function (PutFirewallConfigPhp$) {
|
|
1615
|
+
/** @deprecated use `PutFirewallConfigPhp$inboundSchema` instead. */
|
|
1616
|
+
PutFirewallConfigPhp$.inboundSchema = PutFirewallConfigPhp$inboundSchema;
|
|
1617
|
+
/** @deprecated use `PutFirewallConfigPhp$outboundSchema` instead. */
|
|
1618
|
+
PutFirewallConfigPhp$.outboundSchema = PutFirewallConfigPhp$outboundSchema;
|
|
1619
|
+
})(PutFirewallConfigPhp$ || (PutFirewallConfigPhp$ = {}));
|
|
1620
|
+
export function putFirewallConfigPhpToJSON(putFirewallConfigPhp) {
|
|
1621
|
+
return JSON.stringify(PutFirewallConfigPhp$outboundSchema.parse(putFirewallConfigPhp));
|
|
1622
|
+
}
|
|
1623
|
+
export function putFirewallConfigPhpFromJSON(jsonString) {
|
|
1624
|
+
return safeParse(jsonString, (x) => PutFirewallConfigPhp$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigPhp' from JSON`);
|
|
1625
|
+
}
|
|
1626
|
+
/** @internal */
|
|
1627
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction);
|
|
1628
|
+
/** @internal */
|
|
1629
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema;
|
|
1630
|
+
/**
|
|
1631
|
+
* @internal
|
|
1632
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1633
|
+
*/
|
|
1634
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$;
|
|
1635
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$) {
|
|
1636
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema` instead. */
|
|
1637
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema;
|
|
1638
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema` instead. */
|
|
1639
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema;
|
|
1640
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$ = {}));
|
|
1641
|
+
/** @internal */
|
|
1642
|
+
export const PutFirewallConfigGen$inboundSchema = z.object({
|
|
1643
|
+
active: z.boolean(),
|
|
1644
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$inboundSchema,
|
|
1645
|
+
});
|
|
1646
|
+
/** @internal */
|
|
1647
|
+
export const PutFirewallConfigGen$outboundSchema = z.object({
|
|
1648
|
+
active: z.boolean(),
|
|
1649
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsGenAction$outboundSchema,
|
|
1650
|
+
});
|
|
1651
|
+
/**
|
|
1652
|
+
* @internal
|
|
1653
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1654
|
+
*/
|
|
1655
|
+
export var PutFirewallConfigGen$;
|
|
1656
|
+
(function (PutFirewallConfigGen$) {
|
|
1657
|
+
/** @deprecated use `PutFirewallConfigGen$inboundSchema` instead. */
|
|
1658
|
+
PutFirewallConfigGen$.inboundSchema = PutFirewallConfigGen$inboundSchema;
|
|
1659
|
+
/** @deprecated use `PutFirewallConfigGen$outboundSchema` instead. */
|
|
1660
|
+
PutFirewallConfigGen$.outboundSchema = PutFirewallConfigGen$outboundSchema;
|
|
1661
|
+
})(PutFirewallConfigGen$ || (PutFirewallConfigGen$ = {}));
|
|
1662
|
+
export function putFirewallConfigGenToJSON(putFirewallConfigGen) {
|
|
1663
|
+
return JSON.stringify(PutFirewallConfigGen$outboundSchema.parse(putFirewallConfigGen));
|
|
1664
|
+
}
|
|
1665
|
+
export function putFirewallConfigGenFromJSON(jsonString) {
|
|
1666
|
+
return safeParse(jsonString, (x) => PutFirewallConfigGen$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigGen' from JSON`);
|
|
1667
|
+
}
|
|
1668
|
+
/** @internal */
|
|
1669
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction);
|
|
1670
|
+
/** @internal */
|
|
1671
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema;
|
|
1672
|
+
/**
|
|
1673
|
+
* @internal
|
|
1674
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1675
|
+
*/
|
|
1676
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$;
|
|
1677
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$) {
|
|
1678
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema` instead. */
|
|
1679
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema;
|
|
1680
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema` instead. */
|
|
1681
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema;
|
|
1682
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$ = {}));
|
|
1683
|
+
/** @internal */
|
|
1684
|
+
export const PutFirewallConfigXss$inboundSchema = z.object({
|
|
1685
|
+
active: z.boolean(),
|
|
1686
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$inboundSchema,
|
|
1687
|
+
});
|
|
1688
|
+
/** @internal */
|
|
1689
|
+
export const PutFirewallConfigXss$outboundSchema = z.object({
|
|
1690
|
+
active: z.boolean(),
|
|
1691
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsXssAction$outboundSchema,
|
|
1692
|
+
});
|
|
1693
|
+
/**
|
|
1694
|
+
* @internal
|
|
1695
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1696
|
+
*/
|
|
1697
|
+
export var PutFirewallConfigXss$;
|
|
1698
|
+
(function (PutFirewallConfigXss$) {
|
|
1699
|
+
/** @deprecated use `PutFirewallConfigXss$inboundSchema` instead. */
|
|
1700
|
+
PutFirewallConfigXss$.inboundSchema = PutFirewallConfigXss$inboundSchema;
|
|
1701
|
+
/** @deprecated use `PutFirewallConfigXss$outboundSchema` instead. */
|
|
1702
|
+
PutFirewallConfigXss$.outboundSchema = PutFirewallConfigXss$outboundSchema;
|
|
1703
|
+
})(PutFirewallConfigXss$ || (PutFirewallConfigXss$ = {}));
|
|
1704
|
+
export function putFirewallConfigXssToJSON(putFirewallConfigXss) {
|
|
1705
|
+
return JSON.stringify(PutFirewallConfigXss$outboundSchema.parse(putFirewallConfigXss));
|
|
1706
|
+
}
|
|
1707
|
+
export function putFirewallConfigXssFromJSON(jsonString) {
|
|
1708
|
+
return safeParse(jsonString, (x) => PutFirewallConfigXss$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigXss' from JSON`);
|
|
1709
|
+
}
|
|
1710
|
+
/** @internal */
|
|
1711
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction);
|
|
1712
|
+
/** @internal */
|
|
1713
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema;
|
|
1714
|
+
/**
|
|
1715
|
+
* @internal
|
|
1716
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1717
|
+
*/
|
|
1718
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$;
|
|
1719
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$) {
|
|
1720
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema` instead. */
|
|
1721
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema;
|
|
1722
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema` instead. */
|
|
1723
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema;
|
|
1724
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$ = {}));
|
|
1725
|
+
/** @internal */
|
|
1726
|
+
export const PutFirewallConfigSqli$inboundSchema = z.object({
|
|
1727
|
+
active: z.boolean(),
|
|
1728
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$inboundSchema,
|
|
1729
|
+
});
|
|
1730
|
+
/** @internal */
|
|
1731
|
+
export const PutFirewallConfigSqli$outboundSchema = z.object({
|
|
1732
|
+
active: z.boolean(),
|
|
1733
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSqliAction$outboundSchema,
|
|
1734
|
+
});
|
|
1735
|
+
/**
|
|
1736
|
+
* @internal
|
|
1737
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1738
|
+
*/
|
|
1739
|
+
export var PutFirewallConfigSqli$;
|
|
1740
|
+
(function (PutFirewallConfigSqli$) {
|
|
1741
|
+
/** @deprecated use `PutFirewallConfigSqli$inboundSchema` instead. */
|
|
1742
|
+
PutFirewallConfigSqli$.inboundSchema = PutFirewallConfigSqli$inboundSchema;
|
|
1743
|
+
/** @deprecated use `PutFirewallConfigSqli$outboundSchema` instead. */
|
|
1744
|
+
PutFirewallConfigSqli$.outboundSchema = PutFirewallConfigSqli$outboundSchema;
|
|
1745
|
+
})(PutFirewallConfigSqli$ || (PutFirewallConfigSqli$ = {}));
|
|
1746
|
+
export function putFirewallConfigSqliToJSON(putFirewallConfigSqli) {
|
|
1747
|
+
return JSON.stringify(PutFirewallConfigSqli$outboundSchema.parse(putFirewallConfigSqli));
|
|
1748
|
+
}
|
|
1749
|
+
export function putFirewallConfigSqliFromJSON(jsonString) {
|
|
1750
|
+
return safeParse(jsonString, (x) => PutFirewallConfigSqli$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSqli' from JSON`);
|
|
1751
|
+
}
|
|
1752
|
+
/** @internal */
|
|
1753
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction);
|
|
1754
|
+
/** @internal */
|
|
1755
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema;
|
|
1756
|
+
/**
|
|
1757
|
+
* @internal
|
|
1758
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1759
|
+
*/
|
|
1760
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$;
|
|
1761
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$) {
|
|
1762
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema` instead. */
|
|
1763
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema;
|
|
1764
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema` instead. */
|
|
1765
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema;
|
|
1766
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$ = {}));
|
|
1767
|
+
/** @internal */
|
|
1768
|
+
export const PutFirewallConfigSf$inboundSchema = z.object({
|
|
1769
|
+
active: z.boolean(),
|
|
1770
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$inboundSchema,
|
|
1771
|
+
});
|
|
1772
|
+
/** @internal */
|
|
1773
|
+
export const PutFirewallConfigSf$outboundSchema = z.object({
|
|
1774
|
+
active: z.boolean(),
|
|
1775
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSfAction$outboundSchema,
|
|
1776
|
+
});
|
|
1777
|
+
/**
|
|
1778
|
+
* @internal
|
|
1779
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1780
|
+
*/
|
|
1781
|
+
export var PutFirewallConfigSf$;
|
|
1782
|
+
(function (PutFirewallConfigSf$) {
|
|
1783
|
+
/** @deprecated use `PutFirewallConfigSf$inboundSchema` instead. */
|
|
1784
|
+
PutFirewallConfigSf$.inboundSchema = PutFirewallConfigSf$inboundSchema;
|
|
1785
|
+
/** @deprecated use `PutFirewallConfigSf$outboundSchema` instead. */
|
|
1786
|
+
PutFirewallConfigSf$.outboundSchema = PutFirewallConfigSf$outboundSchema;
|
|
1787
|
+
})(PutFirewallConfigSf$ || (PutFirewallConfigSf$ = {}));
|
|
1788
|
+
export function putFirewallConfigSfToJSON(putFirewallConfigSf) {
|
|
1789
|
+
return JSON.stringify(PutFirewallConfigSf$outboundSchema.parse(putFirewallConfigSf));
|
|
1790
|
+
}
|
|
1791
|
+
export function putFirewallConfigSfFromJSON(jsonString) {
|
|
1792
|
+
return safeParse(jsonString, (x) => PutFirewallConfigSf$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSf' from JSON`);
|
|
1793
|
+
}
|
|
1794
|
+
/** @internal */
|
|
1795
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction);
|
|
1796
|
+
/** @internal */
|
|
1797
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema;
|
|
1798
|
+
/**
|
|
1799
|
+
* @internal
|
|
1800
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1801
|
+
*/
|
|
1802
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$;
|
|
1803
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$) {
|
|
1804
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema` instead. */
|
|
1805
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema;
|
|
1806
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema` instead. */
|
|
1807
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema;
|
|
1808
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$ = {}));
|
|
1809
|
+
/** @internal */
|
|
1810
|
+
export const PutFirewallConfigJava$inboundSchema = z.object({
|
|
1811
|
+
active: z.boolean(),
|
|
1812
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$inboundSchema,
|
|
1813
|
+
});
|
|
1814
|
+
/** @internal */
|
|
1815
|
+
export const PutFirewallConfigJava$outboundSchema = z.object({
|
|
1816
|
+
active: z.boolean(),
|
|
1817
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsJavaAction$outboundSchema,
|
|
1818
|
+
});
|
|
1819
|
+
/**
|
|
1820
|
+
* @internal
|
|
1821
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1822
|
+
*/
|
|
1823
|
+
export var PutFirewallConfigJava$;
|
|
1824
|
+
(function (PutFirewallConfigJava$) {
|
|
1825
|
+
/** @deprecated use `PutFirewallConfigJava$inboundSchema` instead. */
|
|
1826
|
+
PutFirewallConfigJava$.inboundSchema = PutFirewallConfigJava$inboundSchema;
|
|
1827
|
+
/** @deprecated use `PutFirewallConfigJava$outboundSchema` instead. */
|
|
1828
|
+
PutFirewallConfigJava$.outboundSchema = PutFirewallConfigJava$outboundSchema;
|
|
1829
|
+
})(PutFirewallConfigJava$ || (PutFirewallConfigJava$ = {}));
|
|
1830
|
+
export function putFirewallConfigJavaToJSON(putFirewallConfigJava) {
|
|
1831
|
+
return JSON.stringify(PutFirewallConfigJava$outboundSchema.parse(putFirewallConfigJava));
|
|
1832
|
+
}
|
|
1833
|
+
export function putFirewallConfigJavaFromJSON(jsonString) {
|
|
1834
|
+
return safeParse(jsonString, (x) => PutFirewallConfigJava$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigJava' from JSON`);
|
|
1835
|
+
}
|
|
1836
|
+
/** @internal */
|
|
1837
|
+
export const PutFirewallConfigCrs$inboundSchema = z.object({
|
|
1838
|
+
sd: z.lazy(() => PutFirewallConfigSd$inboundSchema),
|
|
1839
|
+
ma: z.lazy(() => PutFirewallConfigMa$inboundSchema),
|
|
1840
|
+
lfi: z.lazy(() => PutFirewallConfigLfi$inboundSchema),
|
|
1841
|
+
rfi: z.lazy(() => PutFirewallConfigRfi$inboundSchema),
|
|
1842
|
+
rce: z.lazy(() => PutFirewallConfigRce$inboundSchema),
|
|
1843
|
+
php: z.lazy(() => PutFirewallConfigPhp$inboundSchema),
|
|
1844
|
+
gen: z.lazy(() => PutFirewallConfigGen$inboundSchema),
|
|
1845
|
+
xss: z.lazy(() => PutFirewallConfigXss$inboundSchema),
|
|
1846
|
+
sqli: z.lazy(() => PutFirewallConfigSqli$inboundSchema),
|
|
1847
|
+
sf: z.lazy(() => PutFirewallConfigSf$inboundSchema),
|
|
1848
|
+
java: z.lazy(() => PutFirewallConfigJava$inboundSchema),
|
|
1849
|
+
});
|
|
1850
|
+
/** @internal */
|
|
1851
|
+
export const PutFirewallConfigCrs$outboundSchema = z.object({
|
|
1852
|
+
sd: z.lazy(() => PutFirewallConfigSd$outboundSchema),
|
|
1853
|
+
ma: z.lazy(() => PutFirewallConfigMa$outboundSchema),
|
|
1854
|
+
lfi: z.lazy(() => PutFirewallConfigLfi$outboundSchema),
|
|
1855
|
+
rfi: z.lazy(() => PutFirewallConfigRfi$outboundSchema),
|
|
1856
|
+
rce: z.lazy(() => PutFirewallConfigRce$outboundSchema),
|
|
1857
|
+
php: z.lazy(() => PutFirewallConfigPhp$outboundSchema),
|
|
1858
|
+
gen: z.lazy(() => PutFirewallConfigGen$outboundSchema),
|
|
1859
|
+
xss: z.lazy(() => PutFirewallConfigXss$outboundSchema),
|
|
1860
|
+
sqli: z.lazy(() => PutFirewallConfigSqli$outboundSchema),
|
|
1861
|
+
sf: z.lazy(() => PutFirewallConfigSf$outboundSchema),
|
|
1862
|
+
java: z.lazy(() => PutFirewallConfigJava$outboundSchema),
|
|
1863
|
+
});
|
|
1864
|
+
/**
|
|
1865
|
+
* @internal
|
|
1866
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1867
|
+
*/
|
|
1868
|
+
export var PutFirewallConfigCrs$;
|
|
1869
|
+
(function (PutFirewallConfigCrs$) {
|
|
1870
|
+
/** @deprecated use `PutFirewallConfigCrs$inboundSchema` instead. */
|
|
1871
|
+
PutFirewallConfigCrs$.inboundSchema = PutFirewallConfigCrs$inboundSchema;
|
|
1872
|
+
/** @deprecated use `PutFirewallConfigCrs$outboundSchema` instead. */
|
|
1873
|
+
PutFirewallConfigCrs$.outboundSchema = PutFirewallConfigCrs$outboundSchema;
|
|
1874
|
+
})(PutFirewallConfigCrs$ || (PutFirewallConfigCrs$ = {}));
|
|
1875
|
+
export function putFirewallConfigCrsToJSON(putFirewallConfigCrs) {
|
|
1876
|
+
return JSON.stringify(PutFirewallConfigCrs$outboundSchema.parse(putFirewallConfigCrs));
|
|
1877
|
+
}
|
|
1878
|
+
export function putFirewallConfigCrsFromJSON(jsonString) {
|
|
1879
|
+
return safeParse(jsonString, (x) => PutFirewallConfigCrs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigCrs' from JSON`);
|
|
1880
|
+
}
|
|
1881
|
+
/** @internal */
|
|
1882
|
+
export const PutFirewallConfigSecurityType$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityType);
|
|
1883
|
+
/** @internal */
|
|
1884
|
+
export const PutFirewallConfigSecurityType$outboundSchema = PutFirewallConfigSecurityType$inboundSchema;
|
|
1885
|
+
/**
|
|
1886
|
+
* @internal
|
|
1887
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1888
|
+
*/
|
|
1889
|
+
export var PutFirewallConfigSecurityType$;
|
|
1890
|
+
(function (PutFirewallConfigSecurityType$) {
|
|
1891
|
+
/** @deprecated use `PutFirewallConfigSecurityType$inboundSchema` instead. */
|
|
1892
|
+
PutFirewallConfigSecurityType$.inboundSchema = PutFirewallConfigSecurityType$inboundSchema;
|
|
1893
|
+
/** @deprecated use `PutFirewallConfigSecurityType$outboundSchema` instead. */
|
|
1894
|
+
PutFirewallConfigSecurityType$.outboundSchema = PutFirewallConfigSecurityType$outboundSchema;
|
|
1895
|
+
})(PutFirewallConfigSecurityType$ || (PutFirewallConfigSecurityType$ = {}));
|
|
1896
|
+
/** @internal */
|
|
1897
|
+
export const PutFirewallConfigOp$inboundSchema = z.nativeEnum(PutFirewallConfigOp);
|
|
1898
|
+
/** @internal */
|
|
1899
|
+
export const PutFirewallConfigOp$outboundSchema = PutFirewallConfigOp$inboundSchema;
|
|
1900
|
+
/**
|
|
1901
|
+
* @internal
|
|
1902
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1903
|
+
*/
|
|
1904
|
+
export var PutFirewallConfigOp$;
|
|
1905
|
+
(function (PutFirewallConfigOp$) {
|
|
1906
|
+
/** @deprecated use `PutFirewallConfigOp$inboundSchema` instead. */
|
|
1907
|
+
PutFirewallConfigOp$.inboundSchema = PutFirewallConfigOp$inboundSchema;
|
|
1908
|
+
/** @deprecated use `PutFirewallConfigOp$outboundSchema` instead. */
|
|
1909
|
+
PutFirewallConfigOp$.outboundSchema = PutFirewallConfigOp$outboundSchema;
|
|
1910
|
+
})(PutFirewallConfigOp$ || (PutFirewallConfigOp$ = {}));
|
|
1911
|
+
/** @internal */
|
|
1912
|
+
export const PutFirewallConfigValue$inboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1913
|
+
/** @internal */
|
|
1914
|
+
export const PutFirewallConfigValue$outboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1915
|
+
/**
|
|
1916
|
+
* @internal
|
|
1917
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1918
|
+
*/
|
|
1919
|
+
export var PutFirewallConfigValue$;
|
|
1920
|
+
(function (PutFirewallConfigValue$) {
|
|
1921
|
+
/** @deprecated use `PutFirewallConfigValue$inboundSchema` instead. */
|
|
1922
|
+
PutFirewallConfigValue$.inboundSchema = PutFirewallConfigValue$inboundSchema;
|
|
1923
|
+
/** @deprecated use `PutFirewallConfigValue$outboundSchema` instead. */
|
|
1924
|
+
PutFirewallConfigValue$.outboundSchema = PutFirewallConfigValue$outboundSchema;
|
|
1925
|
+
})(PutFirewallConfigValue$ || (PutFirewallConfigValue$ = {}));
|
|
1926
|
+
export function putFirewallConfigValueToJSON(putFirewallConfigValue) {
|
|
1927
|
+
return JSON.stringify(PutFirewallConfigValue$outboundSchema.parse(putFirewallConfigValue));
|
|
1928
|
+
}
|
|
1929
|
+
export function putFirewallConfigValueFromJSON(jsonString) {
|
|
1930
|
+
return safeParse(jsonString, (x) => PutFirewallConfigValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigValue' from JSON`);
|
|
1931
|
+
}
|
|
1932
|
+
/** @internal */
|
|
1933
|
+
export const PutFirewallConfigConditions$inboundSchema = z.object({
|
|
1934
|
+
type: PutFirewallConfigSecurityType$inboundSchema,
|
|
1935
|
+
op: PutFirewallConfigOp$inboundSchema,
|
|
1936
|
+
neg: z.boolean().optional(),
|
|
1937
|
+
key: z.string().optional(),
|
|
1938
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1939
|
+
});
|
|
1940
|
+
/** @internal */
|
|
1941
|
+
export const PutFirewallConfigConditions$outboundSchema = z.object({
|
|
1942
|
+
type: PutFirewallConfigSecurityType$outboundSchema,
|
|
1943
|
+
op: PutFirewallConfigOp$outboundSchema,
|
|
1944
|
+
neg: z.boolean().optional(),
|
|
1945
|
+
key: z.string().optional(),
|
|
1946
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1947
|
+
});
|
|
1948
|
+
/**
|
|
1949
|
+
* @internal
|
|
1950
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1951
|
+
*/
|
|
1952
|
+
export var PutFirewallConfigConditions$;
|
|
1953
|
+
(function (PutFirewallConfigConditions$) {
|
|
1954
|
+
/** @deprecated use `PutFirewallConfigConditions$inboundSchema` instead. */
|
|
1955
|
+
PutFirewallConfigConditions$.inboundSchema = PutFirewallConfigConditions$inboundSchema;
|
|
1956
|
+
/** @deprecated use `PutFirewallConfigConditions$outboundSchema` instead. */
|
|
1957
|
+
PutFirewallConfigConditions$.outboundSchema = PutFirewallConfigConditions$outboundSchema;
|
|
1958
|
+
})(PutFirewallConfigConditions$ || (PutFirewallConfigConditions$ = {}));
|
|
1959
|
+
export function putFirewallConfigConditionsToJSON(putFirewallConfigConditions) {
|
|
1960
|
+
return JSON.stringify(PutFirewallConfigConditions$outboundSchema.parse(putFirewallConfigConditions));
|
|
1961
|
+
}
|
|
1962
|
+
export function putFirewallConfigConditionsFromJSON(jsonString) {
|
|
1963
|
+
return safeParse(jsonString, (x) => PutFirewallConfigConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigConditions' from JSON`);
|
|
1964
|
+
}
|
|
1965
|
+
/** @internal */
|
|
1966
|
+
export const PutFirewallConfigConditionGroup$inboundSchema = z.object({
|
|
1967
|
+
conditions: z.array(z.lazy(() => PutFirewallConfigConditions$inboundSchema)),
|
|
1968
|
+
});
|
|
1969
|
+
/** @internal */
|
|
1970
|
+
export const PutFirewallConfigConditionGroup$outboundSchema = z.object({
|
|
1971
|
+
conditions: z.array(z.lazy(() => PutFirewallConfigConditions$outboundSchema)),
|
|
1972
|
+
});
|
|
1973
|
+
/**
|
|
1974
|
+
* @internal
|
|
1975
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1976
|
+
*/
|
|
1977
|
+
export var PutFirewallConfigConditionGroup$;
|
|
1978
|
+
(function (PutFirewallConfigConditionGroup$) {
|
|
1979
|
+
/** @deprecated use `PutFirewallConfigConditionGroup$inboundSchema` instead. */
|
|
1980
|
+
PutFirewallConfigConditionGroup$.inboundSchema = PutFirewallConfigConditionGroup$inboundSchema;
|
|
1981
|
+
/** @deprecated use `PutFirewallConfigConditionGroup$outboundSchema` instead. */
|
|
1982
|
+
PutFirewallConfigConditionGroup$.outboundSchema = PutFirewallConfigConditionGroup$outboundSchema;
|
|
1983
|
+
})(PutFirewallConfigConditionGroup$ || (PutFirewallConfigConditionGroup$ = {}));
|
|
1984
|
+
export function putFirewallConfigConditionGroupToJSON(putFirewallConfigConditionGroup) {
|
|
1985
|
+
return JSON.stringify(PutFirewallConfigConditionGroup$outboundSchema.parse(putFirewallConfigConditionGroup));
|
|
1986
|
+
}
|
|
1987
|
+
export function putFirewallConfigConditionGroupFromJSON(jsonString) {
|
|
1988
|
+
return safeParse(jsonString, (x) => PutFirewallConfigConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigConditionGroup' from JSON`);
|
|
1989
|
+
}
|
|
1990
|
+
/** @internal */
|
|
1991
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction);
|
|
1992
|
+
/** @internal */
|
|
1993
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema;
|
|
1994
|
+
/**
|
|
1995
|
+
* @internal
|
|
1996
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1997
|
+
*/
|
|
1998
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$;
|
|
1999
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$) {
|
|
2000
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema` instead. */
|
|
2001
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema;
|
|
2002
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema` instead. */
|
|
2003
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema;
|
|
2004
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$ = {}));
|
|
2005
|
+
/** @internal */
|
|
2006
|
+
export const PutFirewallConfigAlgo$inboundSchema = z.nativeEnum(PutFirewallConfigAlgo);
|
|
2007
|
+
/** @internal */
|
|
2008
|
+
export const PutFirewallConfigAlgo$outboundSchema = PutFirewallConfigAlgo$inboundSchema;
|
|
2009
|
+
/**
|
|
2010
|
+
* @internal
|
|
2011
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2012
|
+
*/
|
|
2013
|
+
export var PutFirewallConfigAlgo$;
|
|
2014
|
+
(function (PutFirewallConfigAlgo$) {
|
|
2015
|
+
/** @deprecated use `PutFirewallConfigAlgo$inboundSchema` instead. */
|
|
2016
|
+
PutFirewallConfigAlgo$.inboundSchema = PutFirewallConfigAlgo$inboundSchema;
|
|
2017
|
+
/** @deprecated use `PutFirewallConfigAlgo$outboundSchema` instead. */
|
|
2018
|
+
PutFirewallConfigAlgo$.outboundSchema = PutFirewallConfigAlgo$outboundSchema;
|
|
2019
|
+
})(PutFirewallConfigAlgo$ || (PutFirewallConfigAlgo$ = {}));
|
|
2020
|
+
/** @internal */
|
|
2021
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction);
|
|
2022
|
+
/** @internal */
|
|
2023
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema;
|
|
2024
|
+
/**
|
|
2025
|
+
* @internal
|
|
2026
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2027
|
+
*/
|
|
2028
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$;
|
|
2029
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$) {
|
|
2030
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema` instead. */
|
|
2031
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema;
|
|
2032
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema` instead. */
|
|
2033
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema;
|
|
2034
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$ = {}));
|
|
2035
|
+
/** @internal */
|
|
2036
|
+
export const PutFirewallConfigRateLimit$inboundSchema = z.object({
|
|
2037
|
+
algo: PutFirewallConfigAlgo$inboundSchema,
|
|
2038
|
+
window: z.number(),
|
|
2039
|
+
limit: z.number(),
|
|
2040
|
+
keys: z.array(z.string()),
|
|
2041
|
+
action: z.nullable(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$inboundSchema).optional(),
|
|
2042
|
+
});
|
|
2043
|
+
/** @internal */
|
|
2044
|
+
export const PutFirewallConfigRateLimit$outboundSchema = z.object({
|
|
2045
|
+
algo: PutFirewallConfigAlgo$outboundSchema,
|
|
2046
|
+
window: z.number(),
|
|
2047
|
+
limit: z.number(),
|
|
2048
|
+
keys: z.array(z.string()),
|
|
2049
|
+
action: z.nullable(PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction$outboundSchema).optional(),
|
|
2050
|
+
});
|
|
2051
|
+
/**
|
|
2052
|
+
* @internal
|
|
2053
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2054
|
+
*/
|
|
2055
|
+
export var PutFirewallConfigRateLimit$;
|
|
2056
|
+
(function (PutFirewallConfigRateLimit$) {
|
|
2057
|
+
/** @deprecated use `PutFirewallConfigRateLimit$inboundSchema` instead. */
|
|
2058
|
+
PutFirewallConfigRateLimit$.inboundSchema = PutFirewallConfigRateLimit$inboundSchema;
|
|
2059
|
+
/** @deprecated use `PutFirewallConfigRateLimit$outboundSchema` instead. */
|
|
2060
|
+
PutFirewallConfigRateLimit$.outboundSchema = PutFirewallConfigRateLimit$outboundSchema;
|
|
2061
|
+
})(PutFirewallConfigRateLimit$ || (PutFirewallConfigRateLimit$ = {}));
|
|
2062
|
+
export function putFirewallConfigRateLimitToJSON(putFirewallConfigRateLimit) {
|
|
2063
|
+
return JSON.stringify(PutFirewallConfigRateLimit$outboundSchema.parse(putFirewallConfigRateLimit));
|
|
2064
|
+
}
|
|
2065
|
+
export function putFirewallConfigRateLimitFromJSON(jsonString) {
|
|
2066
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRateLimit' from JSON`);
|
|
2067
|
+
}
|
|
2068
|
+
/** @internal */
|
|
2069
|
+
export const PutFirewallConfigRedirect$inboundSchema = z.object({
|
|
2070
|
+
location: z.string(),
|
|
2071
|
+
permanent: z.boolean(),
|
|
2072
|
+
});
|
|
2073
|
+
/** @internal */
|
|
2074
|
+
export const PutFirewallConfigRedirect$outboundSchema = z.object({
|
|
2075
|
+
location: z.string(),
|
|
2076
|
+
permanent: z.boolean(),
|
|
2077
|
+
});
|
|
2078
|
+
/**
|
|
2079
|
+
* @internal
|
|
2080
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2081
|
+
*/
|
|
2082
|
+
export var PutFirewallConfigRedirect$;
|
|
2083
|
+
(function (PutFirewallConfigRedirect$) {
|
|
2084
|
+
/** @deprecated use `PutFirewallConfigRedirect$inboundSchema` instead. */
|
|
2085
|
+
PutFirewallConfigRedirect$.inboundSchema = PutFirewallConfigRedirect$inboundSchema;
|
|
2086
|
+
/** @deprecated use `PutFirewallConfigRedirect$outboundSchema` instead. */
|
|
2087
|
+
PutFirewallConfigRedirect$.outboundSchema = PutFirewallConfigRedirect$outboundSchema;
|
|
2088
|
+
})(PutFirewallConfigRedirect$ || (PutFirewallConfigRedirect$ = {}));
|
|
2089
|
+
export function putFirewallConfigRedirectToJSON(putFirewallConfigRedirect) {
|
|
2090
|
+
return JSON.stringify(PutFirewallConfigRedirect$outboundSchema.parse(putFirewallConfigRedirect));
|
|
2091
|
+
}
|
|
2092
|
+
export function putFirewallConfigRedirectFromJSON(jsonString) {
|
|
2093
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRedirect' from JSON`);
|
|
2094
|
+
}
|
|
2095
|
+
/** @internal */
|
|
2096
|
+
export const PutFirewallConfigMitigate$inboundSchema = z.object({
|
|
2097
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema,
|
|
2098
|
+
rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRateLimit$inboundSchema))
|
|
2099
|
+
.optional(),
|
|
2100
|
+
redirect: z.nullable(z.lazy(() => PutFirewallConfigRedirect$inboundSchema))
|
|
2101
|
+
.optional(),
|
|
2102
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
2103
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
2104
|
+
});
|
|
2105
|
+
/** @internal */
|
|
2106
|
+
export const PutFirewallConfigMitigate$outboundSchema = z.object({
|
|
2107
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$outboundSchema,
|
|
2108
|
+
rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRateLimit$outboundSchema))
|
|
2109
|
+
.optional(),
|
|
2110
|
+
redirect: z.nullable(z.lazy(() => PutFirewallConfigRedirect$outboundSchema))
|
|
2111
|
+
.optional(),
|
|
2112
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
2113
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
2114
|
+
});
|
|
2115
|
+
/**
|
|
2116
|
+
* @internal
|
|
2117
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2118
|
+
*/
|
|
2119
|
+
export var PutFirewallConfigMitigate$;
|
|
2120
|
+
(function (PutFirewallConfigMitigate$) {
|
|
2121
|
+
/** @deprecated use `PutFirewallConfigMitigate$inboundSchema` instead. */
|
|
2122
|
+
PutFirewallConfigMitigate$.inboundSchema = PutFirewallConfigMitigate$inboundSchema;
|
|
2123
|
+
/** @deprecated use `PutFirewallConfigMitigate$outboundSchema` instead. */
|
|
2124
|
+
PutFirewallConfigMitigate$.outboundSchema = PutFirewallConfigMitigate$outboundSchema;
|
|
2125
|
+
})(PutFirewallConfigMitigate$ || (PutFirewallConfigMitigate$ = {}));
|
|
2126
|
+
export function putFirewallConfigMitigateToJSON(putFirewallConfigMitigate) {
|
|
2127
|
+
return JSON.stringify(PutFirewallConfigMitigate$outboundSchema.parse(putFirewallConfigMitigate));
|
|
2128
|
+
}
|
|
2129
|
+
export function putFirewallConfigMitigateFromJSON(jsonString) {
|
|
2130
|
+
return safeParse(jsonString, (x) => PutFirewallConfigMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigMitigate' from JSON`);
|
|
2131
|
+
}
|
|
2132
|
+
/** @internal */
|
|
2133
|
+
export const PutFirewallConfigSecurityResponseAction$inboundSchema = z.object({
|
|
2134
|
+
mitigate: z.lazy(() => PutFirewallConfigMitigate$inboundSchema).optional(),
|
|
2135
|
+
});
|
|
2136
|
+
/** @internal */
|
|
2137
|
+
export const PutFirewallConfigSecurityResponseAction$outboundSchema = z.object({
|
|
2138
|
+
mitigate: z.lazy(() => PutFirewallConfigMitigate$outboundSchema).optional(),
|
|
2139
|
+
});
|
|
2140
|
+
/**
|
|
2141
|
+
* @internal
|
|
2142
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2143
|
+
*/
|
|
2144
|
+
export var PutFirewallConfigSecurityResponseAction$;
|
|
2145
|
+
(function (PutFirewallConfigSecurityResponseAction$) {
|
|
2146
|
+
/** @deprecated use `PutFirewallConfigSecurityResponseAction$inboundSchema` instead. */
|
|
2147
|
+
PutFirewallConfigSecurityResponseAction$.inboundSchema = PutFirewallConfigSecurityResponseAction$inboundSchema;
|
|
2148
|
+
/** @deprecated use `PutFirewallConfigSecurityResponseAction$outboundSchema` instead. */
|
|
2149
|
+
PutFirewallConfigSecurityResponseAction$.outboundSchema = PutFirewallConfigSecurityResponseAction$outboundSchema;
|
|
2150
|
+
})(PutFirewallConfigSecurityResponseAction$ || (PutFirewallConfigSecurityResponseAction$ = {}));
|
|
2151
|
+
export function putFirewallConfigSecurityResponseActionToJSON(putFirewallConfigSecurityResponseAction) {
|
|
2152
|
+
return JSON.stringify(PutFirewallConfigSecurityResponseAction$outboundSchema.parse(putFirewallConfigSecurityResponseAction));
|
|
2153
|
+
}
|
|
2154
|
+
export function putFirewallConfigSecurityResponseActionFromJSON(jsonString) {
|
|
2155
|
+
return safeParse(jsonString, (x) => PutFirewallConfigSecurityResponseAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSecurityResponseAction' from JSON`);
|
|
2156
|
+
}
|
|
2157
|
+
/** @internal */
|
|
2158
|
+
export const PutFirewallConfigSecurityRules$inboundSchema = z.object({
|
|
2159
|
+
id: z.string(),
|
|
2160
|
+
name: z.string(),
|
|
2161
|
+
description: z.string().optional(),
|
|
2162
|
+
active: z.boolean(),
|
|
2163
|
+
conditionGroup: z.array(z.lazy(() => PutFirewallConfigConditionGroup$inboundSchema)),
|
|
2164
|
+
action: z.lazy(() => PutFirewallConfigSecurityResponseAction$inboundSchema),
|
|
2165
|
+
});
|
|
2166
|
+
/** @internal */
|
|
2167
|
+
export const PutFirewallConfigSecurityRules$outboundSchema = z.object({
|
|
2168
|
+
id: z.string(),
|
|
2169
|
+
name: z.string(),
|
|
2170
|
+
description: z.string().optional(),
|
|
2171
|
+
active: z.boolean(),
|
|
2172
|
+
conditionGroup: z.array(z.lazy(() => PutFirewallConfigConditionGroup$outboundSchema)),
|
|
2173
|
+
action: z.lazy(() => PutFirewallConfigSecurityResponseAction$outboundSchema),
|
|
2174
|
+
});
|
|
2175
|
+
/**
|
|
2176
|
+
* @internal
|
|
2177
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2178
|
+
*/
|
|
2179
|
+
export var PutFirewallConfigSecurityRules$;
|
|
2180
|
+
(function (PutFirewallConfigSecurityRules$) {
|
|
2181
|
+
/** @deprecated use `PutFirewallConfigSecurityRules$inboundSchema` instead. */
|
|
2182
|
+
PutFirewallConfigSecurityRules$.inboundSchema = PutFirewallConfigSecurityRules$inboundSchema;
|
|
2183
|
+
/** @deprecated use `PutFirewallConfigSecurityRules$outboundSchema` instead. */
|
|
2184
|
+
PutFirewallConfigSecurityRules$.outboundSchema = PutFirewallConfigSecurityRules$outboundSchema;
|
|
2185
|
+
})(PutFirewallConfigSecurityRules$ || (PutFirewallConfigSecurityRules$ = {}));
|
|
2186
|
+
export function putFirewallConfigSecurityRulesToJSON(putFirewallConfigSecurityRules) {
|
|
2187
|
+
return JSON.stringify(PutFirewallConfigSecurityRules$outboundSchema.parse(putFirewallConfigSecurityRules));
|
|
2188
|
+
}
|
|
2189
|
+
export function putFirewallConfigSecurityRulesFromJSON(jsonString) {
|
|
2190
|
+
return safeParse(jsonString, (x) => PutFirewallConfigSecurityRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSecurityRules' from JSON`);
|
|
2191
|
+
}
|
|
2192
|
+
/** @internal */
|
|
2193
|
+
export const PutFirewallConfigSecurityResponse200Action$inboundSchema = z
|
|
2194
|
+
.nativeEnum(PutFirewallConfigSecurityResponse200Action);
|
|
2195
|
+
/** @internal */
|
|
2196
|
+
export const PutFirewallConfigSecurityResponse200Action$outboundSchema = PutFirewallConfigSecurityResponse200Action$inboundSchema;
|
|
2197
|
+
/**
|
|
2198
|
+
* @internal
|
|
2199
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2200
|
+
*/
|
|
2201
|
+
export var PutFirewallConfigSecurityResponse200Action$;
|
|
2202
|
+
(function (PutFirewallConfigSecurityResponse200Action$) {
|
|
2203
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200Action$inboundSchema` instead. */
|
|
2204
|
+
PutFirewallConfigSecurityResponse200Action$.inboundSchema = PutFirewallConfigSecurityResponse200Action$inboundSchema;
|
|
2205
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200Action$outboundSchema` instead. */
|
|
2206
|
+
PutFirewallConfigSecurityResponse200Action$.outboundSchema = PutFirewallConfigSecurityResponse200Action$outboundSchema;
|
|
2207
|
+
})(PutFirewallConfigSecurityResponse200Action$ || (PutFirewallConfigSecurityResponse200Action$ = {}));
|
|
2208
|
+
/** @internal */
|
|
2209
|
+
export const PutFirewallConfigIps$inboundSchema = z.object({
|
|
2210
|
+
id: z.string(),
|
|
2211
|
+
hostname: z.string(),
|
|
2212
|
+
ip: z.string(),
|
|
2213
|
+
notes: z.string().optional(),
|
|
2214
|
+
action: PutFirewallConfigSecurityResponse200Action$inboundSchema,
|
|
2215
|
+
});
|
|
2216
|
+
/** @internal */
|
|
2217
|
+
export const PutFirewallConfigIps$outboundSchema = z.object({
|
|
2218
|
+
id: z.string(),
|
|
2219
|
+
hostname: z.string(),
|
|
2220
|
+
ip: z.string(),
|
|
2221
|
+
notes: z.string().optional(),
|
|
2222
|
+
action: PutFirewallConfigSecurityResponse200Action$outboundSchema,
|
|
2223
|
+
});
|
|
2224
|
+
/**
|
|
2225
|
+
* @internal
|
|
2226
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2227
|
+
*/
|
|
2228
|
+
export var PutFirewallConfigIps$;
|
|
2229
|
+
(function (PutFirewallConfigIps$) {
|
|
2230
|
+
/** @deprecated use `PutFirewallConfigIps$inboundSchema` instead. */
|
|
2231
|
+
PutFirewallConfigIps$.inboundSchema = PutFirewallConfigIps$inboundSchema;
|
|
2232
|
+
/** @deprecated use `PutFirewallConfigIps$outboundSchema` instead. */
|
|
2233
|
+
PutFirewallConfigIps$.outboundSchema = PutFirewallConfigIps$outboundSchema;
|
|
2234
|
+
})(PutFirewallConfigIps$ || (PutFirewallConfigIps$ = {}));
|
|
2235
|
+
export function putFirewallConfigIpsToJSON(putFirewallConfigIps) {
|
|
2236
|
+
return JSON.stringify(PutFirewallConfigIps$outboundSchema.parse(putFirewallConfigIps));
|
|
2237
|
+
}
|
|
2238
|
+
export function putFirewallConfigIpsFromJSON(jsonString) {
|
|
2239
|
+
return safeParse(jsonString, (x) => PutFirewallConfigIps$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigIps' from JSON`);
|
|
2240
|
+
}
|
|
2241
|
+
/** @internal */
|
|
2242
|
+
export const PutFirewallConfigChanges$inboundSchema = z.object({});
|
|
2243
|
+
/** @internal */
|
|
2244
|
+
export const PutFirewallConfigChanges$outboundSchema = z.object({});
|
|
2245
|
+
/**
|
|
2246
|
+
* @internal
|
|
2247
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2248
|
+
*/
|
|
2249
|
+
export var PutFirewallConfigChanges$;
|
|
2250
|
+
(function (PutFirewallConfigChanges$) {
|
|
2251
|
+
/** @deprecated use `PutFirewallConfigChanges$inboundSchema` instead. */
|
|
2252
|
+
PutFirewallConfigChanges$.inboundSchema = PutFirewallConfigChanges$inboundSchema;
|
|
2253
|
+
/** @deprecated use `PutFirewallConfigChanges$outboundSchema` instead. */
|
|
2254
|
+
PutFirewallConfigChanges$.outboundSchema = PutFirewallConfigChanges$outboundSchema;
|
|
2255
|
+
})(PutFirewallConfigChanges$ || (PutFirewallConfigChanges$ = {}));
|
|
2256
|
+
export function putFirewallConfigChangesToJSON(putFirewallConfigChanges) {
|
|
2257
|
+
return JSON.stringify(PutFirewallConfigChanges$outboundSchema.parse(putFirewallConfigChanges));
|
|
2258
|
+
}
|
|
2259
|
+
export function putFirewallConfigChangesFromJSON(jsonString) {
|
|
2260
|
+
return safeParse(jsonString, (x) => PutFirewallConfigChanges$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigChanges' from JSON`);
|
|
2261
|
+
}
|
|
2262
|
+
/** @internal */
|
|
2263
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema = z.nativeEnum(PutFirewallConfigSecurityResponse200ApplicationJSONAction);
|
|
2264
|
+
/** @internal */
|
|
2265
|
+
export const PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
2266
|
+
/**
|
|
2267
|
+
* @internal
|
|
2268
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2269
|
+
*/
|
|
2270
|
+
export var PutFirewallConfigSecurityResponse200ApplicationJSONAction$;
|
|
2271
|
+
(function (PutFirewallConfigSecurityResponse200ApplicationJSONAction$) {
|
|
2272
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema` instead. */
|
|
2273
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONAction$.inboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
2274
|
+
/** @deprecated use `PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema` instead. */
|
|
2275
|
+
PutFirewallConfigSecurityResponse200ApplicationJSONAction$.outboundSchema = PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema;
|
|
2276
|
+
})(PutFirewallConfigSecurityResponse200ApplicationJSONAction$ || (PutFirewallConfigSecurityResponse200ApplicationJSONAction$ = {}));
|
|
2277
|
+
/** @internal */
|
|
2278
|
+
export const PutFirewallConfigManagedRules$inboundSchema = z.object({
|
|
2279
|
+
active: z.boolean(),
|
|
2280
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONAction$inboundSchema
|
|
2281
|
+
.optional(),
|
|
2282
|
+
updatedAt: z.string().optional(),
|
|
2283
|
+
userId: z.string().optional(),
|
|
2284
|
+
username: z.string().optional(),
|
|
2285
|
+
});
|
|
2286
|
+
/** @internal */
|
|
2287
|
+
export const PutFirewallConfigManagedRules$outboundSchema = z.object({
|
|
2288
|
+
active: z.boolean(),
|
|
2289
|
+
action: PutFirewallConfigSecurityResponse200ApplicationJSONAction$outboundSchema
|
|
2290
|
+
.optional(),
|
|
2291
|
+
updatedAt: z.string().optional(),
|
|
2292
|
+
userId: z.string().optional(),
|
|
2293
|
+
username: z.string().optional(),
|
|
2294
|
+
});
|
|
2295
|
+
/**
|
|
2296
|
+
* @internal
|
|
2297
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2298
|
+
*/
|
|
2299
|
+
export var PutFirewallConfigManagedRules$;
|
|
2300
|
+
(function (PutFirewallConfigManagedRules$) {
|
|
2301
|
+
/** @deprecated use `PutFirewallConfigManagedRules$inboundSchema` instead. */
|
|
2302
|
+
PutFirewallConfigManagedRules$.inboundSchema = PutFirewallConfigManagedRules$inboundSchema;
|
|
2303
|
+
/** @deprecated use `PutFirewallConfigManagedRules$outboundSchema` instead. */
|
|
2304
|
+
PutFirewallConfigManagedRules$.outboundSchema = PutFirewallConfigManagedRules$outboundSchema;
|
|
2305
|
+
})(PutFirewallConfigManagedRules$ || (PutFirewallConfigManagedRules$ = {}));
|
|
2306
|
+
export function putFirewallConfigManagedRulesToJSON(putFirewallConfigManagedRules) {
|
|
2307
|
+
return JSON.stringify(PutFirewallConfigManagedRules$outboundSchema.parse(putFirewallConfigManagedRules));
|
|
2308
|
+
}
|
|
2309
|
+
export function putFirewallConfigManagedRulesFromJSON(jsonString) {
|
|
2310
|
+
return safeParse(jsonString, (x) => PutFirewallConfigManagedRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigManagedRules' from JSON`);
|
|
2311
|
+
}
|
|
2312
|
+
/** @internal */
|
|
2313
|
+
export const Active$inboundSchema = z
|
|
2314
|
+
.object({
|
|
2315
|
+
ownerId: z.string(),
|
|
2316
|
+
projectKey: z.string(),
|
|
2317
|
+
id: z.string(),
|
|
2318
|
+
version: z.number(),
|
|
2319
|
+
updatedAt: z.string(),
|
|
2320
|
+
firewallEnabled: z.boolean(),
|
|
2321
|
+
crs: z.lazy(() => PutFirewallConfigCrs$inboundSchema),
|
|
2322
|
+
rules: z.array(z.lazy(() => PutFirewallConfigSecurityRules$inboundSchema)),
|
|
2323
|
+
ips: z.array(z.lazy(() => PutFirewallConfigIps$inboundSchema)),
|
|
2324
|
+
changes: z.array(z.lazy(() => PutFirewallConfigChanges$inboundSchema)),
|
|
2325
|
+
managedRules: z.record(z.lazy(() => PutFirewallConfigManagedRules$inboundSchema)).optional(),
|
|
2326
|
+
});
|
|
2327
|
+
/** @internal */
|
|
2328
|
+
export const Active$outboundSchema = z.object({
|
|
2329
|
+
ownerId: z.string(),
|
|
2330
|
+
projectKey: z.string(),
|
|
2331
|
+
id: z.string(),
|
|
2332
|
+
version: z.number(),
|
|
2333
|
+
updatedAt: z.string(),
|
|
2334
|
+
firewallEnabled: z.boolean(),
|
|
2335
|
+
crs: z.lazy(() => PutFirewallConfigCrs$outboundSchema),
|
|
2336
|
+
rules: z.array(z.lazy(() => PutFirewallConfigSecurityRules$outboundSchema)),
|
|
2337
|
+
ips: z.array(z.lazy(() => PutFirewallConfigIps$outboundSchema)),
|
|
2338
|
+
changes: z.array(z.lazy(() => PutFirewallConfigChanges$outboundSchema)),
|
|
2339
|
+
managedRules: z.record(z.lazy(() => PutFirewallConfigManagedRules$outboundSchema)).optional(),
|
|
2340
|
+
});
|
|
2341
|
+
/**
|
|
2342
|
+
* @internal
|
|
2343
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2344
|
+
*/
|
|
2345
|
+
export var Active$;
|
|
2346
|
+
(function (Active$) {
|
|
2347
|
+
/** @deprecated use `Active$inboundSchema` instead. */
|
|
2348
|
+
Active$.inboundSchema = Active$inboundSchema;
|
|
2349
|
+
/** @deprecated use `Active$outboundSchema` instead. */
|
|
2350
|
+
Active$.outboundSchema = Active$outboundSchema;
|
|
2351
|
+
})(Active$ || (Active$ = {}));
|
|
2352
|
+
export function activeToJSON(active) {
|
|
2353
|
+
return JSON.stringify(Active$outboundSchema.parse(active));
|
|
2354
|
+
}
|
|
2355
|
+
export function activeFromJSON(jsonString) {
|
|
2356
|
+
return safeParse(jsonString, (x) => Active$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Active' from JSON`);
|
|
2357
|
+
}
|
|
2358
|
+
/** @internal */
|
|
2359
|
+
export const PutFirewallConfigResponseBody$inboundSchema = z.object({
|
|
2360
|
+
active: z.lazy(() => Active$inboundSchema),
|
|
2361
|
+
});
|
|
2362
|
+
/** @internal */
|
|
2363
|
+
export const PutFirewallConfigResponseBody$outboundSchema = z.object({
|
|
2364
|
+
active: z.lazy(() => Active$outboundSchema),
|
|
2365
|
+
});
|
|
2366
|
+
/**
|
|
2367
|
+
* @internal
|
|
2368
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2369
|
+
*/
|
|
2370
|
+
export var PutFirewallConfigResponseBody$;
|
|
2371
|
+
(function (PutFirewallConfigResponseBody$) {
|
|
2372
|
+
/** @deprecated use `PutFirewallConfigResponseBody$inboundSchema` instead. */
|
|
2373
|
+
PutFirewallConfigResponseBody$.inboundSchema = PutFirewallConfigResponseBody$inboundSchema;
|
|
2374
|
+
/** @deprecated use `PutFirewallConfigResponseBody$outboundSchema` instead. */
|
|
2375
|
+
PutFirewallConfigResponseBody$.outboundSchema = PutFirewallConfigResponseBody$outboundSchema;
|
|
2376
|
+
})(PutFirewallConfigResponseBody$ || (PutFirewallConfigResponseBody$ = {}));
|
|
2377
|
+
export function putFirewallConfigResponseBodyToJSON(putFirewallConfigResponseBody) {
|
|
2378
|
+
return JSON.stringify(PutFirewallConfigResponseBody$outboundSchema.parse(putFirewallConfigResponseBody));
|
|
2379
|
+
}
|
|
2380
|
+
export function putFirewallConfigResponseBodyFromJSON(jsonString) {
|
|
2381
|
+
return safeParse(jsonString, (x) => PutFirewallConfigResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigResponseBody' from JSON`);
|
|
2382
|
+
}
|
|
2383
|
+
//# sourceMappingURL=putfirewallconfigop.js.map
|