@vercel/sdk 1.18.2 → 1.18.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 +43 -26
- package/bin/mcp-server.js +4634 -2791
- package/bin/mcp-server.js.map +56 -35
- package/esm/__tests__/accessgroups.test.js +1 -3
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/bulkredirects.test.d.ts +2 -0
- package/esm/__tests__/bulkredirects.test.d.ts.map +1 -0
- package/esm/__tests__/bulkredirects.test.js +171 -0
- package/esm/__tests__/bulkredirects.test.js.map +1 -0
- package/esm/__tests__/domains.test.js +11 -44
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +6 -2
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +26 -32
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +16 -0
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +21 -0
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsDeleteRedirects.js +84 -0
- package/esm/funcs/bulkRedirectsDeleteRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsEditRedirect.d.ts +17 -0
- package/esm/funcs/bulkRedirectsEditRedirect.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsEditRedirect.js +84 -0
- package/esm/funcs/bulkRedirectsEditRedirect.js.map +1 -0
- package/esm/funcs/bulkRedirectsGetRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsGetRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsGetRedirects.js +90 -0
- package/esm/funcs/bulkRedirectsGetRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsGetVersions.d.ts +17 -0
- package/esm/funcs/bulkRedirectsGetVersions.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsGetVersions.js +83 -0
- package/esm/funcs/bulkRedirectsGetVersions.js.map +1 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.js +84 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsStageRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsStageRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsStageRedirects.js +83 -0
- package/esm/funcs/bulkRedirectsStageRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsUpdateVersion.d.ts +17 -0
- package/esm/funcs/bulkRedirectsUpdateVersion.d.ts.map +1 -0
- package/esm/funcs/{domainsBuyDomain.js → bulkRedirectsUpdateVersion.js} +11 -10
- package/esm/funcs/bulkRedirectsUpdateVersion.js.map +1 -0
- package/esm/funcs/domainsCreateOrTransferDomain.js +2 -2
- package/esm/funcs/domainsCreateOrTransferDomain.js.map +1 -1
- package/esm/funcs/teamsPostTeamDsyncRoles.d.ts +17 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.d.ts.map +1 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.js +88 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +17 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js.map +1 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.d.ts +7 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.d.ts.map +1 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.js +28 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.js.map +1 -0
- package/esm/models/canceldeploymentop.d.ts +46 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +42 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +46 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +46 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createedgeconfigop.d.ts +5 -0
- package/esm/models/createedgeconfigop.d.ts.map +1 -1
- package/esm/models/createedgeconfigop.js +2 -0
- package/esm/models/createedgeconfigop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +154 -152
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +220 -218
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createortransferdomainop.d.ts +4 -40
- package/esm/models/createortransferdomainop.d.ts.map +1 -1
- package/esm/models/createortransferdomainop.js +0 -24
- package/esm/models/createortransferdomainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +112 -2
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +103 -2
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +4 -2
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -2
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/deleteredirectsop.d.ts +112 -0
- package/esm/models/deleteredirectsop.d.ts.map +1 -0
- package/esm/models/deleteredirectsop.js +99 -0
- package/esm/models/deleteredirectsop.js.map +1 -0
- package/esm/models/editredirectop.d.ts +143 -0
- package/esm/models/editredirectop.d.ts.map +1 -0
- package/esm/models/editredirectop.js +123 -0
- package/esm/models/editredirectop.js.map +1 -0
- package/esm/models/getconfigurationproductsop.d.ts +200 -200
- package/esm/models/getconfigurationproductsop.js +290 -290
- package/esm/models/getconfigurationsop.d.ts +1 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +1 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymenteventsop.d.ts +6 -6
- package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
- package/esm/models/getdeploymenteventsop.js +6 -6
- package/esm/models/getdeploymenteventsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +90 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +82 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getedgeconfigop.d.ts +5 -0
- package/esm/models/getedgeconfigop.d.ts.map +1 -1
- package/esm/models/getedgeconfigop.js +2 -0
- package/esm/models/getedgeconfigop.js.map +1 -1
- package/esm/models/getfirewallconfigop.d.ts +344 -111
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +368 -106
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/getprojectdomainsop.d.ts +5 -5
- package/esm/models/getprojectdomainsop.d.ts.map +1 -1
- package/esm/models/getprojectdomainsop.js +5 -6
- package/esm/models/getprojectdomainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +88 -2
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +76 -2
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getredirectsop.d.ts +200 -0
- package/esm/models/getredirectsop.d.ts.map +1 -0
- package/esm/models/getredirectsop.js +205 -0
- package/esm/models/getredirectsop.js.map +1 -0
- package/esm/models/getversionsop.d.ts +90 -0
- package/esm/models/getversionsop.d.ts.map +1 -0
- package/esm/models/getversionsop.js +68 -0
- package/esm/models/getversionsop.js.map +1 -0
- package/esm/models/getwebhookop.d.ts +2 -1
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -1
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +4 -2
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +4 -2
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/postteamdsyncrolesop.d.ts +98 -0
- package/esm/models/postteamdsyncrolesop.d.ts.map +1 -0
- package/esm/models/postteamdsyncrolesop.js +113 -0
- package/esm/models/postteamdsyncrolesop.js.map +1 -0
- package/esm/models/putfirewallconfigop.d.ts +368 -106
- package/esm/models/putfirewallconfigop.d.ts.map +1 -1
- package/esm/models/putfirewallconfigop.js +391 -104
- package/esm/models/putfirewallconfigop.js.map +1 -1
- package/esm/models/restoreredirectsop.d.ts +114 -0
- package/esm/models/restoreredirectsop.d.ts.map +1 -0
- package/esm/models/restoreredirectsop.js +101 -0
- package/esm/models/restoreredirectsop.js.map +1 -0
- package/esm/models/stageredirectsop.d.ts +145 -0
- package/esm/models/stageredirectsop.d.ts.map +1 -0
- package/esm/models/stageredirectsop.js +136 -0
- package/esm/models/stageredirectsop.js.map +1 -0
- package/esm/models/team.d.ts +6 -6
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +6 -4
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateedgeconfigop.d.ts +5 -0
- package/esm/models/updateedgeconfigop.d.ts.map +1 -1
- package/esm/models/updateedgeconfigop.js +2 -0
- package/esm/models/updateedgeconfigop.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +30 -0
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +32 -0
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +103 -17
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +97 -20
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +112 -2
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +103 -2
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.d.ts +49 -0
- package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.js +27 -0
- package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
- package/esm/models/updateversionop.d.ts +120 -0
- package/esm/models/updateversionop.d.ts.map +1 -0
- package/esm/models/updateversionop.js +106 -0
- package/esm/models/updateversionop.js.map +1 -0
- package/esm/models/userevent.d.ts +756 -968
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +1012 -1247
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/bulkredirects.d.ts +60 -0
- package/esm/sdk/bulkredirects.d.ts.map +1 -0
- package/esm/sdk/bulkredirects.js +78 -0
- package/esm/sdk/bulkredirects.js.map +1 -0
- package/esm/sdk/domains.d.ts +0 -8
- package/esm/sdk/domains.d.ts.map +1 -1
- package/esm/sdk/domains.js +0 -10
- package/esm/sdk/domains.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/teams.d.ts +8 -0
- package/esm/sdk/teams.d.ts.map +1 -1
- package/esm/sdk/teams.js +10 -0
- package/esm/sdk/teams.js.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/accessgroups.test.ts +1 -3
- package/src/__tests__/bulkredirects.test.ts +192 -0
- package/src/__tests__/domains.test.ts +13 -47
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +6 -2
- package/src/__tests__/security.test.ts +26 -32
- package/src/__tests__/teams.test.ts +19 -0
- package/src/__tests__/vercel.test.ts +42 -0
- package/src/funcs/bulkRedirectsDeleteRedirects.ts +172 -0
- package/src/funcs/bulkRedirectsEditRedirect.ts +172 -0
- package/src/funcs/bulkRedirectsGetRedirects.ts +178 -0
- package/src/funcs/bulkRedirectsGetVersions.ts +171 -0
- package/src/funcs/bulkRedirectsRestoreRedirects.ts +172 -0
- package/src/funcs/{domainsBuyDomain.ts → bulkRedirectsStageRedirects.ts} +21 -22
- package/src/funcs/bulkRedirectsUpdateVersion.ts +172 -0
- package/src/funcs/domainsCreateOrTransferDomain.ts +2 -2
- package/src/funcs/teamsPostTeamDsyncRoles.ts +177 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -3
- package/src/mcp-server/tools/bulkRedirectsDeleteRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsEditRedirect.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsGetRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsGetVersions.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsRestoreRedirects.ts +38 -0
- package/src/mcp-server/tools/bulkRedirectsStageRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsUpdateVersion.ts +38 -0
- package/src/mcp-server/tools/teamsPostTeamDsyncRoles.ts +37 -0
- package/src/models/canceldeploymentop.ts +129 -0
- package/src/models/createdeploymentop.ts +112 -0
- package/src/models/createedgeconfigop.ts +7 -0
- package/src/models/createintegrationstoredirectop.ts +475 -471
- package/src/models/createortransferdomainop.ts +0 -83
- package/src/models/createprojectop.ts +293 -4
- package/src/models/createwebhookop.ts +4 -2
- package/src/models/deleteredirectsop.ts +275 -0
- package/src/models/editredirectop.ts +340 -0
- package/src/models/getconfigurationproductsop.ts +627 -627
- package/src/models/getconfigurationsop.ts +1 -0
- package/src/models/getdeploymenteventsop.ts +17 -13
- package/src/models/getdeploymentop.ts +263 -0
- package/src/models/getedgeconfigop.ts +7 -0
- package/src/models/getfirewallconfigop.ts +860 -291
- package/src/models/getprojectdomainsop.ts +11 -9
- package/src/models/getprojectsop.ts +214 -4
- package/src/models/getredirectsop.ts +492 -0
- package/src/models/getversionsop.ts +200 -0
- package/src/models/getwebhookop.ts +2 -1
- package/src/models/getwebhooksop.ts +4 -2
- package/src/models/postteamdsyncrolesop.ts +291 -0
- package/src/models/putfirewallconfigop.ts +1051 -279
- package/src/models/restoreredirectsop.ts +281 -0
- package/src/models/stageredirectsop.ts +367 -0
- package/src/models/team.ts +14 -10
- package/src/models/updateedgeconfigop.ts +7 -0
- package/src/models/updatefirewallconfigop.ts +107 -0
- package/src/models/updateprojectdatacacheop.ts +276 -55
- package/src/models/updateprojectop.ts +293 -4
- package/src/models/updateprojectprotectionbypassop.ts +84 -0
- package/src/models/updateversionop.ts +285 -0
- package/src/models/userevent.ts +2357 -2909
- package/src/sdk/bulkredirects.ts +162 -0
- package/src/sdk/domains.ts +0 -19
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/teams.ts +22 -0
- package/vercel-spec.json +3184 -1264
- package/esm/funcs/domainsBuyDomain.d.ts +0 -17
- package/esm/funcs/domainsBuyDomain.d.ts.map +0 -1
- package/esm/funcs/domainsBuyDomain.js.map +0 -1
- package/esm/mcp-server/tools/domainsBuyDomain.d.ts +0 -7
- package/esm/mcp-server/tools/domainsBuyDomain.d.ts.map +0 -1
- package/esm/mcp-server/tools/domainsBuyDomain.js +0 -28
- package/esm/mcp-server/tools/domainsBuyDomain.js.map +0 -1
- package/esm/models/buydomainop.d.ts +0 -180
- package/esm/models/buydomainop.d.ts.map +0 -1
- package/esm/models/buydomainop.js +0 -159
- package/esm/models/buydomainop.js.map +0 -1
- package/src/mcp-server/tools/domainsBuyDomain.ts +0 -37
- package/src/models/buydomainop.ts +0 -453
|
@@ -75,6 +75,8 @@ export const PutFirewallConfigType = {
|
|
|
75
75
|
Ja4Digest: "ja4_digest",
|
|
76
76
|
Ja3Digest: "ja3_digest",
|
|
77
77
|
RateLimitApiId: "rate_limit_api_id",
|
|
78
|
+
BotName: "bot_name",
|
|
79
|
+
BotCategory: "bot_category",
|
|
78
80
|
};
|
|
79
81
|
export const Op = {
|
|
80
82
|
Re: "re",
|
|
@@ -120,7 +122,7 @@ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActi
|
|
|
120
122
|
Deny: "deny",
|
|
121
123
|
Log: "log",
|
|
122
124
|
};
|
|
123
|
-
export const
|
|
125
|
+
export const PutFirewallConfigSecurityResponse200Action = {
|
|
124
126
|
Deny: "deny",
|
|
125
127
|
Log: "log",
|
|
126
128
|
};
|
|
@@ -160,7 +162,7 @@ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActi
|
|
|
160
162
|
Deny: "deny",
|
|
161
163
|
Log: "log",
|
|
162
164
|
};
|
|
163
|
-
export const
|
|
165
|
+
export const PutFirewallConfigRulesType = {
|
|
164
166
|
Host: "host",
|
|
165
167
|
Path: "path",
|
|
166
168
|
Method: "method",
|
|
@@ -185,8 +187,10 @@ export const PutFirewallConfigSecurityType = {
|
|
|
185
187
|
Ja3Digest: "ja3_digest",
|
|
186
188
|
RateLimitApiId: "rate_limit_api_id",
|
|
187
189
|
ServerAction: "server_action",
|
|
190
|
+
BotName: "bot_name",
|
|
191
|
+
BotCategory: "bot_category",
|
|
188
192
|
};
|
|
189
|
-
export const
|
|
193
|
+
export const PutFirewallConfigRulesOp = {
|
|
190
194
|
Re: "re",
|
|
191
195
|
Eq: "eq",
|
|
192
196
|
Ex: "ex",
|
|
@@ -202,7 +206,7 @@ export const PutFirewallConfigOp = {
|
|
|
202
206
|
Ninc: "ninc",
|
|
203
207
|
Neq: "neq",
|
|
204
208
|
};
|
|
205
|
-
export const
|
|
209
|
+
export const PutFirewallConfigRulesSecurityResponse200Action = {
|
|
206
210
|
Deny: "deny",
|
|
207
211
|
Log: "log",
|
|
208
212
|
Challenge: "challenge",
|
|
@@ -210,17 +214,79 @@ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActi
|
|
|
210
214
|
RateLimit: "rate_limit",
|
|
211
215
|
Redirect: "redirect",
|
|
212
216
|
};
|
|
213
|
-
export const
|
|
217
|
+
export const PutFirewallConfigRulesAlgo = {
|
|
214
218
|
FixedWindow: "fixed_window",
|
|
215
219
|
TokenBucket: "token_bucket",
|
|
216
220
|
};
|
|
217
|
-
export const
|
|
221
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction = {
|
|
218
222
|
Deny: "deny",
|
|
219
223
|
Log: "log",
|
|
220
224
|
Challenge: "challenge",
|
|
221
225
|
RateLimit: "rate_limit",
|
|
222
226
|
};
|
|
223
|
-
export const
|
|
227
|
+
export const PutFirewallConfigRulesSecurityType = {
|
|
228
|
+
Host: "host",
|
|
229
|
+
Path: "path",
|
|
230
|
+
Method: "method",
|
|
231
|
+
Header: "header",
|
|
232
|
+
Query: "query",
|
|
233
|
+
Cookie: "cookie",
|
|
234
|
+
TargetPath: "target_path",
|
|
235
|
+
Route: "route",
|
|
236
|
+
RawPath: "raw_path",
|
|
237
|
+
IpAddress: "ip_address",
|
|
238
|
+
Protocol: "protocol",
|
|
239
|
+
Region: "region",
|
|
240
|
+
Scheme: "scheme",
|
|
241
|
+
Environment: "environment",
|
|
242
|
+
UserAgent: "user_agent",
|
|
243
|
+
GeoContinent: "geo_continent",
|
|
244
|
+
GeoCountry: "geo_country",
|
|
245
|
+
GeoCountryRegion: "geo_country_region",
|
|
246
|
+
GeoCity: "geo_city",
|
|
247
|
+
GeoAsNumber: "geo_as_number",
|
|
248
|
+
Ja4Digest: "ja4_digest",
|
|
249
|
+
Ja3Digest: "ja3_digest",
|
|
250
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
251
|
+
ServerAction: "server_action",
|
|
252
|
+
BotName: "bot_name",
|
|
253
|
+
BotCategory: "bot_category",
|
|
254
|
+
};
|
|
255
|
+
export const PutFirewallConfigRulesSecurityOp = {
|
|
256
|
+
Re: "re",
|
|
257
|
+
Eq: "eq",
|
|
258
|
+
Ex: "ex",
|
|
259
|
+
Inc: "inc",
|
|
260
|
+
Pre: "pre",
|
|
261
|
+
Suf: "suf",
|
|
262
|
+
Sub: "sub",
|
|
263
|
+
Gt: "gt",
|
|
264
|
+
Gte: "gte",
|
|
265
|
+
Lt: "lt",
|
|
266
|
+
Lte: "lte",
|
|
267
|
+
Nex: "nex",
|
|
268
|
+
Ninc: "ninc",
|
|
269
|
+
Neq: "neq",
|
|
270
|
+
};
|
|
271
|
+
export const PutFirewallConfigRulesSecurityResponseAction = {
|
|
272
|
+
Deny: "deny",
|
|
273
|
+
Log: "log",
|
|
274
|
+
Challenge: "challenge",
|
|
275
|
+
Bypass: "bypass",
|
|
276
|
+
RateLimit: "rate_limit",
|
|
277
|
+
Redirect: "redirect",
|
|
278
|
+
};
|
|
279
|
+
export const PutFirewallConfigRulesSecurityAlgo = {
|
|
280
|
+
FixedWindow: "fixed_window",
|
|
281
|
+
TokenBucket: "token_bucket",
|
|
282
|
+
};
|
|
283
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction = {
|
|
284
|
+
Deny: "deny",
|
|
285
|
+
Log: "log",
|
|
286
|
+
Challenge: "challenge",
|
|
287
|
+
RateLimit: "rate_limit",
|
|
288
|
+
};
|
|
289
|
+
export const PutFirewallConfigSecurityResponseAction = {
|
|
224
290
|
Deny: "deny",
|
|
225
291
|
Log: "log",
|
|
226
292
|
Challenge: "challenge",
|
|
@@ -242,6 +308,16 @@ export const PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActi
|
|
|
242
308
|
Challenge: "challenge",
|
|
243
309
|
};
|
|
244
310
|
/** @internal */
|
|
311
|
+
export const ManagedRules$inboundSchema = z.object({});
|
|
312
|
+
/** @internal */
|
|
313
|
+
export const ManagedRules$outboundSchema = z.object({});
|
|
314
|
+
export function managedRulesToJSON(managedRules) {
|
|
315
|
+
return JSON.stringify(ManagedRules$outboundSchema.parse(managedRules));
|
|
316
|
+
}
|
|
317
|
+
export function managedRulesFromJSON(jsonString) {
|
|
318
|
+
return safeParse(jsonString, (x) => ManagedRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ManagedRules' from JSON`);
|
|
319
|
+
}
|
|
320
|
+
/** @internal */
|
|
245
321
|
export const PutFirewallConfigAction$inboundSchema = z.nativeEnum(PutFirewallConfigAction);
|
|
246
322
|
/** @internal */
|
|
247
323
|
export const PutFirewallConfigAction$outboundSchema = PutFirewallConfigAction$inboundSchema;
|
|
@@ -642,14 +718,14 @@ export function redirect1FromJSON(jsonString) {
|
|
|
642
718
|
return safeParse(jsonString, (x) => Redirect1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Redirect1' from JSON`);
|
|
643
719
|
}
|
|
644
720
|
/** @internal */
|
|
645
|
-
export const
|
|
721
|
+
export const PutFirewallConfigRedirect$inboundSchema = z.union([z.lazy(() => Redirect1$inboundSchema), z.any()]);
|
|
646
722
|
/** @internal */
|
|
647
|
-
export const
|
|
648
|
-
export function
|
|
649
|
-
return JSON.stringify(
|
|
723
|
+
export const PutFirewallConfigRedirect$outboundSchema = z.union([z.lazy(() => Redirect1$outboundSchema), z.any()]);
|
|
724
|
+
export function putFirewallConfigRedirectToJSON(putFirewallConfigRedirect) {
|
|
725
|
+
return JSON.stringify(PutFirewallConfigRedirect$outboundSchema.parse(putFirewallConfigRedirect));
|
|
650
726
|
}
|
|
651
|
-
export function
|
|
652
|
-
return safeParse(jsonString, (x) =>
|
|
727
|
+
export function putFirewallConfigRedirectFromJSON(jsonString) {
|
|
728
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRedirect' from JSON`);
|
|
653
729
|
}
|
|
654
730
|
/** @internal */
|
|
655
731
|
export const Mitigate$inboundSchema = z.object({
|
|
@@ -689,6 +765,16 @@ export function putFirewallConfigSecurityRequestRequestBodyRulesActionFromJSON(j
|
|
|
689
765
|
.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSecurityRequestRequestBodyRulesAction' from JSON`);
|
|
690
766
|
}
|
|
691
767
|
/** @internal */
|
|
768
|
+
export const ValidationErrors$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
769
|
+
/** @internal */
|
|
770
|
+
export const ValidationErrors$outboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
771
|
+
export function validationErrorsToJSON(validationErrors) {
|
|
772
|
+
return JSON.stringify(ValidationErrors$outboundSchema.parse(validationErrors));
|
|
773
|
+
}
|
|
774
|
+
export function validationErrorsFromJSON(jsonString) {
|
|
775
|
+
return safeParse(jsonString, (x) => ValidationErrors$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ValidationErrors' from JSON`);
|
|
776
|
+
}
|
|
777
|
+
/** @internal */
|
|
692
778
|
export const PutFirewallConfigRules$inboundSchema = z.object({
|
|
693
779
|
id: z.string().optional(),
|
|
694
780
|
name: z.string(),
|
|
@@ -696,6 +782,8 @@ export const PutFirewallConfigRules$inboundSchema = z.object({
|
|
|
696
782
|
active: z.boolean(),
|
|
697
783
|
conditionGroup: z.array(z.lazy(() => ConditionGroup$inboundSchema)),
|
|
698
784
|
action: z.lazy(() => PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema),
|
|
785
|
+
valid: z.boolean().optional(),
|
|
786
|
+
validationErrors: z.union([z.string(), z.array(z.string())]).optional(),
|
|
699
787
|
});
|
|
700
788
|
/** @internal */
|
|
701
789
|
export const PutFirewallConfigRules$outboundSchema = z.object({
|
|
@@ -705,6 +793,8 @@ export const PutFirewallConfigRules$outboundSchema = z.object({
|
|
|
705
793
|
active: z.boolean(),
|
|
706
794
|
conditionGroup: z.array(z.lazy(() => ConditionGroup$outboundSchema)),
|
|
707
795
|
action: z.lazy(() => PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema),
|
|
796
|
+
valid: z.boolean().optional(),
|
|
797
|
+
validationErrors: z.union([z.string(), z.array(z.string())]).optional(),
|
|
708
798
|
});
|
|
709
799
|
export function putFirewallConfigRulesToJSON(putFirewallConfigRules) {
|
|
710
800
|
return JSON.stringify(PutFirewallConfigRules$outboundSchema.parse(putFirewallConfigRules));
|
|
@@ -743,7 +833,7 @@ export function ipsFromJSON(jsonString) {
|
|
|
743
833
|
/** @internal */
|
|
744
834
|
export const PutFirewallConfigRequestBody$inboundSchema = z.object({
|
|
745
835
|
firewallEnabled: z.boolean(),
|
|
746
|
-
managedRules: z.
|
|
836
|
+
managedRules: z.lazy(() => ManagedRules$inboundSchema).optional(),
|
|
747
837
|
crs: z.lazy(() => Crs$inboundSchema).optional(),
|
|
748
838
|
rules: z.array(z.lazy(() => PutFirewallConfigRules$inboundSchema)).optional(),
|
|
749
839
|
ips: z.array(z.lazy(() => Ips$inboundSchema)).optional(),
|
|
@@ -752,7 +842,7 @@ export const PutFirewallConfigRequestBody$inboundSchema = z.object({
|
|
|
752
842
|
/** @internal */
|
|
753
843
|
export const PutFirewallConfigRequestBody$outboundSchema = z.object({
|
|
754
844
|
firewallEnabled: z.boolean(),
|
|
755
|
-
managedRules: z.
|
|
845
|
+
managedRules: z.lazy(() => ManagedRules$outboundSchema).optional(),
|
|
756
846
|
crs: z.lazy(() => Crs$outboundSchema).optional(),
|
|
757
847
|
rules: z.array(z.lazy(() => PutFirewallConfigRules$outboundSchema))
|
|
758
848
|
.optional(),
|
|
@@ -814,18 +904,19 @@ export function putFirewallConfigSdFromJSON(jsonString) {
|
|
|
814
904
|
return safeParse(jsonString, (x) => PutFirewallConfigSd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSd' from JSON`);
|
|
815
905
|
}
|
|
816
906
|
/** @internal */
|
|
817
|
-
export const
|
|
907
|
+
export const PutFirewallConfigSecurityResponse200Action$inboundSchema = z
|
|
908
|
+
.nativeEnum(PutFirewallConfigSecurityResponse200Action);
|
|
818
909
|
/** @internal */
|
|
819
|
-
export const
|
|
910
|
+
export const PutFirewallConfigSecurityResponse200Action$outboundSchema = PutFirewallConfigSecurityResponse200Action$inboundSchema;
|
|
820
911
|
/** @internal */
|
|
821
912
|
export const PutFirewallConfigMa$inboundSchema = z.object({
|
|
822
913
|
active: z.boolean(),
|
|
823
|
-
action:
|
|
914
|
+
action: PutFirewallConfigSecurityResponse200Action$inboundSchema,
|
|
824
915
|
});
|
|
825
916
|
/** @internal */
|
|
826
917
|
export const PutFirewallConfigMa$outboundSchema = z.object({
|
|
827
918
|
active: z.boolean(),
|
|
828
|
-
action:
|
|
919
|
+
action: PutFirewallConfigSecurityResponse200Action$outboundSchema,
|
|
829
920
|
});
|
|
830
921
|
export function putFirewallConfigMaToJSON(putFirewallConfigMa) {
|
|
831
922
|
return JSON.stringify(PutFirewallConfigMa$outboundSchema.parse(putFirewallConfigMa));
|
|
@@ -1048,167 +1139,357 @@ export function putFirewallConfigCrsFromJSON(jsonString) {
|
|
|
1048
1139
|
return safeParse(jsonString, (x) => PutFirewallConfigCrs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigCrs' from JSON`);
|
|
1049
1140
|
}
|
|
1050
1141
|
/** @internal */
|
|
1051
|
-
export const
|
|
1142
|
+
export const PutFirewallConfigRulesType$inboundSchema = z.nativeEnum(PutFirewallConfigRulesType);
|
|
1052
1143
|
/** @internal */
|
|
1053
|
-
export const
|
|
1144
|
+
export const PutFirewallConfigRulesType$outboundSchema = PutFirewallConfigRulesType$inboundSchema;
|
|
1054
1145
|
/** @internal */
|
|
1055
|
-
export const
|
|
1146
|
+
export const PutFirewallConfigRulesOp$inboundSchema = z.nativeEnum(PutFirewallConfigRulesOp);
|
|
1056
1147
|
/** @internal */
|
|
1057
|
-
export const
|
|
1148
|
+
export const PutFirewallConfigRulesOp$outboundSchema = PutFirewallConfigRulesOp$inboundSchema;
|
|
1058
1149
|
/** @internal */
|
|
1059
|
-
export const
|
|
1150
|
+
export const PutFirewallConfigRulesValue$inboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1060
1151
|
/** @internal */
|
|
1061
|
-
export const
|
|
1062
|
-
export function
|
|
1063
|
-
return JSON.stringify(
|
|
1152
|
+
export const PutFirewallConfigRulesValue$outboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1153
|
+
export function putFirewallConfigRulesValueToJSON(putFirewallConfigRulesValue) {
|
|
1154
|
+
return JSON.stringify(PutFirewallConfigRulesValue$outboundSchema.parse(putFirewallConfigRulesValue));
|
|
1064
1155
|
}
|
|
1065
|
-
export function
|
|
1066
|
-
return safeParse(jsonString, (x) =>
|
|
1156
|
+
export function putFirewallConfigRulesValueFromJSON(jsonString) {
|
|
1157
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesValue' from JSON`);
|
|
1067
1158
|
}
|
|
1068
1159
|
/** @internal */
|
|
1069
|
-
export const
|
|
1070
|
-
type:
|
|
1071
|
-
op:
|
|
1160
|
+
export const PutFirewallConfigRulesConditions$inboundSchema = z.object({
|
|
1161
|
+
type: PutFirewallConfigRulesType$inboundSchema,
|
|
1162
|
+
op: PutFirewallConfigRulesOp$inboundSchema,
|
|
1072
1163
|
neg: z.boolean().optional(),
|
|
1073
1164
|
key: z.string().optional(),
|
|
1074
1165
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1075
1166
|
});
|
|
1076
1167
|
/** @internal */
|
|
1077
|
-
export const
|
|
1078
|
-
type:
|
|
1079
|
-
op:
|
|
1168
|
+
export const PutFirewallConfigRulesConditions$outboundSchema = z.object({
|
|
1169
|
+
type: PutFirewallConfigRulesType$outboundSchema,
|
|
1170
|
+
op: PutFirewallConfigRulesOp$outboundSchema,
|
|
1080
1171
|
neg: z.boolean().optional(),
|
|
1081
1172
|
key: z.string().optional(),
|
|
1082
1173
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1083
1174
|
});
|
|
1084
|
-
export function
|
|
1085
|
-
return JSON.stringify(
|
|
1175
|
+
export function putFirewallConfigRulesConditionsToJSON(putFirewallConfigRulesConditions) {
|
|
1176
|
+
return JSON.stringify(PutFirewallConfigRulesConditions$outboundSchema.parse(putFirewallConfigRulesConditions));
|
|
1086
1177
|
}
|
|
1087
|
-
export function
|
|
1088
|
-
return safeParse(jsonString, (x) =>
|
|
1178
|
+
export function putFirewallConfigRulesConditionsFromJSON(jsonString) {
|
|
1179
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesConditions' from JSON`);
|
|
1089
1180
|
}
|
|
1090
1181
|
/** @internal */
|
|
1091
|
-
export const
|
|
1092
|
-
conditions: z.array(z.lazy(() =>
|
|
1182
|
+
export const PutFirewallConfigRulesConditionGroup$inboundSchema = z.object({
|
|
1183
|
+
conditions: z.array(z.lazy(() => PutFirewallConfigRulesConditions$inboundSchema)),
|
|
1093
1184
|
});
|
|
1094
1185
|
/** @internal */
|
|
1095
|
-
export const
|
|
1096
|
-
conditions: z.array(z.lazy(() =>
|
|
1186
|
+
export const PutFirewallConfigRulesConditionGroup$outboundSchema = z.object({
|
|
1187
|
+
conditions: z.array(z.lazy(() => PutFirewallConfigRulesConditions$outboundSchema)),
|
|
1097
1188
|
});
|
|
1098
|
-
export function
|
|
1099
|
-
return JSON.stringify(
|
|
1189
|
+
export function putFirewallConfigRulesConditionGroupToJSON(putFirewallConfigRulesConditionGroup) {
|
|
1190
|
+
return JSON.stringify(PutFirewallConfigRulesConditionGroup$outboundSchema.parse(putFirewallConfigRulesConditionGroup));
|
|
1100
1191
|
}
|
|
1101
|
-
export function
|
|
1102
|
-
return safeParse(jsonString, (x) =>
|
|
1192
|
+
export function putFirewallConfigRulesConditionGroupFromJSON(jsonString) {
|
|
1193
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesConditionGroup' from JSON`);
|
|
1103
1194
|
}
|
|
1104
1195
|
/** @internal */
|
|
1105
|
-
export const
|
|
1196
|
+
export const PutFirewallConfigRulesSecurityResponse200Action$inboundSchema = z
|
|
1197
|
+
.nativeEnum(PutFirewallConfigRulesSecurityResponse200Action);
|
|
1106
1198
|
/** @internal */
|
|
1107
|
-
export const
|
|
1199
|
+
export const PutFirewallConfigRulesSecurityResponse200Action$outboundSchema = PutFirewallConfigRulesSecurityResponse200Action$inboundSchema;
|
|
1108
1200
|
/** @internal */
|
|
1109
|
-
export const
|
|
1201
|
+
export const PutFirewallConfigRulesAlgo$inboundSchema = z.nativeEnum(PutFirewallConfigRulesAlgo);
|
|
1110
1202
|
/** @internal */
|
|
1111
|
-
export const
|
|
1203
|
+
export const PutFirewallConfigRulesAlgo$outboundSchema = PutFirewallConfigRulesAlgo$inboundSchema;
|
|
1112
1204
|
/** @internal */
|
|
1113
|
-
export const
|
|
1205
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema = z.nativeEnum(PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction);
|
|
1114
1206
|
/** @internal */
|
|
1115
|
-
export const
|
|
1207
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema = PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
|
|
1116
1208
|
/** @internal */
|
|
1117
|
-
export const
|
|
1118
|
-
algo:
|
|
1209
|
+
export const PutFirewallConfigRulesRateLimit$inboundSchema = z.object({
|
|
1210
|
+
algo: PutFirewallConfigRulesAlgo$inboundSchema,
|
|
1119
1211
|
window: z.number(),
|
|
1120
1212
|
limit: z.number(),
|
|
1121
1213
|
keys: z.array(z.string()),
|
|
1122
|
-
action: z.nullable(
|
|
1214
|
+
action: z.nullable(PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema).optional(),
|
|
1123
1215
|
});
|
|
1124
1216
|
/** @internal */
|
|
1125
|
-
export const
|
|
1126
|
-
algo:
|
|
1217
|
+
export const PutFirewallConfigRulesRateLimit$outboundSchema = z.object({
|
|
1218
|
+
algo: PutFirewallConfigRulesAlgo$outboundSchema,
|
|
1127
1219
|
window: z.number(),
|
|
1128
1220
|
limit: z.number(),
|
|
1129
1221
|
keys: z.array(z.string()),
|
|
1130
|
-
action: z.nullable(
|
|
1222
|
+
action: z.nullable(PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema).optional(),
|
|
1131
1223
|
});
|
|
1132
|
-
export function
|
|
1133
|
-
return JSON.stringify(
|
|
1224
|
+
export function putFirewallConfigRulesRateLimitToJSON(putFirewallConfigRulesRateLimit) {
|
|
1225
|
+
return JSON.stringify(PutFirewallConfigRulesRateLimit$outboundSchema.parse(putFirewallConfigRulesRateLimit));
|
|
1134
1226
|
}
|
|
1135
|
-
export function
|
|
1136
|
-
return safeParse(jsonString, (x) =>
|
|
1227
|
+
export function putFirewallConfigRulesRateLimitFromJSON(jsonString) {
|
|
1228
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesRateLimit' from JSON`);
|
|
1137
1229
|
}
|
|
1138
1230
|
/** @internal */
|
|
1139
|
-
export const
|
|
1231
|
+
export const PutFirewallConfigRulesRedirect$inboundSchema = z.object({
|
|
1140
1232
|
location: z.string(),
|
|
1141
1233
|
permanent: z.boolean(),
|
|
1142
1234
|
});
|
|
1143
1235
|
/** @internal */
|
|
1144
|
-
export const
|
|
1236
|
+
export const PutFirewallConfigRulesRedirect$outboundSchema = z.object({
|
|
1145
1237
|
location: z.string(),
|
|
1146
1238
|
permanent: z.boolean(),
|
|
1147
1239
|
});
|
|
1148
|
-
export function
|
|
1149
|
-
return JSON.stringify(
|
|
1240
|
+
export function putFirewallConfigRulesRedirectToJSON(putFirewallConfigRulesRedirect) {
|
|
1241
|
+
return JSON.stringify(PutFirewallConfigRulesRedirect$outboundSchema.parse(putFirewallConfigRulesRedirect));
|
|
1150
1242
|
}
|
|
1151
|
-
export function
|
|
1152
|
-
return safeParse(jsonString, (x) =>
|
|
1243
|
+
export function putFirewallConfigRulesRedirectFromJSON(jsonString) {
|
|
1244
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesRedirect' from JSON`);
|
|
1153
1245
|
}
|
|
1154
1246
|
/** @internal */
|
|
1155
|
-
export const
|
|
1156
|
-
action:
|
|
1157
|
-
rateLimit: z.nullable(z.lazy(() =>
|
|
1158
|
-
|
|
1159
|
-
redirect: z.nullable(z.lazy(() => PutFirewallConfigRedirect$inboundSchema))
|
|
1160
|
-
.optional(),
|
|
1247
|
+
export const PutFirewallConfigRulesMitigate$inboundSchema = z.object({
|
|
1248
|
+
action: PutFirewallConfigRulesSecurityResponse200Action$inboundSchema,
|
|
1249
|
+
rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRulesRateLimit$inboundSchema)).optional(),
|
|
1250
|
+
redirect: z.nullable(z.lazy(() => PutFirewallConfigRulesRedirect$inboundSchema)).optional(),
|
|
1161
1251
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1162
1252
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1163
1253
|
});
|
|
1164
1254
|
/** @internal */
|
|
1165
|
-
export const
|
|
1166
|
-
action:
|
|
1167
|
-
rateLimit: z.nullable(z.lazy(() =>
|
|
1255
|
+
export const PutFirewallConfigRulesMitigate$outboundSchema = z.object({
|
|
1256
|
+
action: PutFirewallConfigRulesSecurityResponse200Action$outboundSchema,
|
|
1257
|
+
rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRulesRateLimit$outboundSchema)).optional(),
|
|
1258
|
+
redirect: z.nullable(z.lazy(() => PutFirewallConfigRulesRedirect$outboundSchema)).optional(),
|
|
1259
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
1260
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1261
|
+
});
|
|
1262
|
+
export function putFirewallConfigRulesMitigateToJSON(putFirewallConfigRulesMitigate) {
|
|
1263
|
+
return JSON.stringify(PutFirewallConfigRulesMitigate$outboundSchema.parse(putFirewallConfigRulesMitigate));
|
|
1264
|
+
}
|
|
1265
|
+
export function putFirewallConfigRulesMitigateFromJSON(jsonString) {
|
|
1266
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesMitigate' from JSON`);
|
|
1267
|
+
}
|
|
1268
|
+
/** @internal */
|
|
1269
|
+
export const PutFirewallConfigRulesAction$inboundSchema = z.object({
|
|
1270
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesMitigate$inboundSchema)
|
|
1168
1271
|
.optional(),
|
|
1169
|
-
|
|
1272
|
+
});
|
|
1273
|
+
/** @internal */
|
|
1274
|
+
export const PutFirewallConfigRulesAction$outboundSchema = z.object({
|
|
1275
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesMitigate$outboundSchema)
|
|
1170
1276
|
.optional(),
|
|
1277
|
+
});
|
|
1278
|
+
export function putFirewallConfigRulesActionToJSON(putFirewallConfigRulesAction) {
|
|
1279
|
+
return JSON.stringify(PutFirewallConfigRulesAction$outboundSchema.parse(putFirewallConfigRulesAction));
|
|
1280
|
+
}
|
|
1281
|
+
export function putFirewallConfigRulesActionFromJSON(jsonString) {
|
|
1282
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesAction' from JSON`);
|
|
1283
|
+
}
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
export const PutFirewallConfigRules2$inboundSchema = z.object({
|
|
1286
|
+
id: z.string(),
|
|
1287
|
+
name: z.string(),
|
|
1288
|
+
description: z.string().optional(),
|
|
1289
|
+
active: z.boolean(),
|
|
1290
|
+
conditionGroup: z.array(z.lazy(() => PutFirewallConfigRulesConditionGroup$inboundSchema)),
|
|
1291
|
+
action: z.lazy(() => PutFirewallConfigRulesAction$inboundSchema),
|
|
1292
|
+
valid: z.boolean(),
|
|
1293
|
+
validationErrors: z.array(z.string()),
|
|
1294
|
+
});
|
|
1295
|
+
/** @internal */
|
|
1296
|
+
export const PutFirewallConfigRules2$outboundSchema = z.object({
|
|
1297
|
+
id: z.string(),
|
|
1298
|
+
name: z.string(),
|
|
1299
|
+
description: z.string().optional(),
|
|
1300
|
+
active: z.boolean(),
|
|
1301
|
+
conditionGroup: z.array(z.lazy(() => PutFirewallConfigRulesConditionGroup$outboundSchema)),
|
|
1302
|
+
action: z.lazy(() => PutFirewallConfigRulesAction$outboundSchema),
|
|
1303
|
+
valid: z.boolean(),
|
|
1304
|
+
validationErrors: z.array(z.string()),
|
|
1305
|
+
});
|
|
1306
|
+
export function putFirewallConfigRules2ToJSON(putFirewallConfigRules2) {
|
|
1307
|
+
return JSON.stringify(PutFirewallConfigRules2$outboundSchema.parse(putFirewallConfigRules2));
|
|
1308
|
+
}
|
|
1309
|
+
export function putFirewallConfigRules2FromJSON(jsonString) {
|
|
1310
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRules2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRules2' from JSON`);
|
|
1311
|
+
}
|
|
1312
|
+
/** @internal */
|
|
1313
|
+
export const PutFirewallConfigRulesSecurityType$inboundSchema = z.nativeEnum(PutFirewallConfigRulesSecurityType);
|
|
1314
|
+
/** @internal */
|
|
1315
|
+
export const PutFirewallConfigRulesSecurityType$outboundSchema = PutFirewallConfigRulesSecurityType$inboundSchema;
|
|
1316
|
+
/** @internal */
|
|
1317
|
+
export const PutFirewallConfigRulesSecurityOp$inboundSchema = z.nativeEnum(PutFirewallConfigRulesSecurityOp);
|
|
1318
|
+
/** @internal */
|
|
1319
|
+
export const PutFirewallConfigRulesSecurityOp$outboundSchema = PutFirewallConfigRulesSecurityOp$inboundSchema;
|
|
1320
|
+
/** @internal */
|
|
1321
|
+
export const PutFirewallConfigRulesSecurityValue$inboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1322
|
+
/** @internal */
|
|
1323
|
+
export const PutFirewallConfigRulesSecurityValue$outboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1324
|
+
export function putFirewallConfigRulesSecurityValueToJSON(putFirewallConfigRulesSecurityValue) {
|
|
1325
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityValue$outboundSchema.parse(putFirewallConfigRulesSecurityValue));
|
|
1326
|
+
}
|
|
1327
|
+
export function putFirewallConfigRulesSecurityValueFromJSON(jsonString) {
|
|
1328
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityValue' from JSON`);
|
|
1329
|
+
}
|
|
1330
|
+
/** @internal */
|
|
1331
|
+
export const PutFirewallConfigRulesSecurityConditions$inboundSchema = z.object({
|
|
1332
|
+
type: PutFirewallConfigRulesSecurityType$inboundSchema,
|
|
1333
|
+
op: PutFirewallConfigRulesSecurityOp$inboundSchema,
|
|
1334
|
+
neg: z.boolean().optional(),
|
|
1335
|
+
key: z.string().optional(),
|
|
1336
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1337
|
+
});
|
|
1338
|
+
/** @internal */
|
|
1339
|
+
export const PutFirewallConfigRulesSecurityConditions$outboundSchema = z.object({
|
|
1340
|
+
type: PutFirewallConfigRulesSecurityType$outboundSchema,
|
|
1341
|
+
op: PutFirewallConfigRulesSecurityOp$outboundSchema,
|
|
1342
|
+
neg: z.boolean().optional(),
|
|
1343
|
+
key: z.string().optional(),
|
|
1344
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1345
|
+
});
|
|
1346
|
+
export function putFirewallConfigRulesSecurityConditionsToJSON(putFirewallConfigRulesSecurityConditions) {
|
|
1347
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityConditions$outboundSchema.parse(putFirewallConfigRulesSecurityConditions));
|
|
1348
|
+
}
|
|
1349
|
+
export function putFirewallConfigRulesSecurityConditionsFromJSON(jsonString) {
|
|
1350
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityConditions' from JSON`);
|
|
1351
|
+
}
|
|
1352
|
+
/** @internal */
|
|
1353
|
+
export const PutFirewallConfigRulesSecurityConditionGroup$inboundSchema = z.object({
|
|
1354
|
+
conditions: z.array(z.lazy(() => PutFirewallConfigRulesSecurityConditions$inboundSchema)),
|
|
1355
|
+
});
|
|
1356
|
+
/** @internal */
|
|
1357
|
+
export const PutFirewallConfigRulesSecurityConditionGroup$outboundSchema = z.object({
|
|
1358
|
+
conditions: z.array(z.lazy(() => PutFirewallConfigRulesSecurityConditions$outboundSchema)),
|
|
1359
|
+
});
|
|
1360
|
+
export function putFirewallConfigRulesSecurityConditionGroupToJSON(putFirewallConfigRulesSecurityConditionGroup) {
|
|
1361
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityConditionGroup$outboundSchema.parse(putFirewallConfigRulesSecurityConditionGroup));
|
|
1362
|
+
}
|
|
1363
|
+
export function putFirewallConfigRulesSecurityConditionGroupFromJSON(jsonString) {
|
|
1364
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityConditionGroup' from JSON`);
|
|
1365
|
+
}
|
|
1366
|
+
/** @internal */
|
|
1367
|
+
export const PutFirewallConfigRulesSecurityResponseAction$inboundSchema = z
|
|
1368
|
+
.nativeEnum(PutFirewallConfigRulesSecurityResponseAction);
|
|
1369
|
+
/** @internal */
|
|
1370
|
+
export const PutFirewallConfigRulesSecurityResponseAction$outboundSchema = PutFirewallConfigRulesSecurityResponseAction$inboundSchema;
|
|
1371
|
+
/** @internal */
|
|
1372
|
+
export const PutFirewallConfigRulesSecurityAlgo$inboundSchema = z.nativeEnum(PutFirewallConfigRulesSecurityAlgo);
|
|
1373
|
+
/** @internal */
|
|
1374
|
+
export const PutFirewallConfigRulesSecurityAlgo$outboundSchema = PutFirewallConfigRulesSecurityAlgo$inboundSchema;
|
|
1375
|
+
/** @internal */
|
|
1376
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema = z.nativeEnum(PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction);
|
|
1377
|
+
/** @internal */
|
|
1378
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema = PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
1379
|
+
/** @internal */
|
|
1380
|
+
export const PutFirewallConfigRulesSecurityRateLimit$inboundSchema = z.object({
|
|
1381
|
+
algo: PutFirewallConfigRulesSecurityAlgo$inboundSchema,
|
|
1382
|
+
window: z.number(),
|
|
1383
|
+
limit: z.number(),
|
|
1384
|
+
keys: z.array(z.string()),
|
|
1385
|
+
action: z.nullable(PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema).optional(),
|
|
1386
|
+
});
|
|
1387
|
+
/** @internal */
|
|
1388
|
+
export const PutFirewallConfigRulesSecurityRateLimit$outboundSchema = z.object({
|
|
1389
|
+
algo: PutFirewallConfigRulesSecurityAlgo$outboundSchema,
|
|
1390
|
+
window: z.number(),
|
|
1391
|
+
limit: z.number(),
|
|
1392
|
+
keys: z.array(z.string()),
|
|
1393
|
+
action: z.nullable(PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema).optional(),
|
|
1394
|
+
});
|
|
1395
|
+
export function putFirewallConfigRulesSecurityRateLimitToJSON(putFirewallConfigRulesSecurityRateLimit) {
|
|
1396
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityRateLimit$outboundSchema.parse(putFirewallConfigRulesSecurityRateLimit));
|
|
1397
|
+
}
|
|
1398
|
+
export function putFirewallConfigRulesSecurityRateLimitFromJSON(jsonString) {
|
|
1399
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityRateLimit' from JSON`);
|
|
1400
|
+
}
|
|
1401
|
+
/** @internal */
|
|
1402
|
+
export const PutFirewallConfigRulesSecurityRedirect$inboundSchema = z.object({
|
|
1403
|
+
location: z.string(),
|
|
1404
|
+
permanent: z.boolean(),
|
|
1405
|
+
});
|
|
1406
|
+
/** @internal */
|
|
1407
|
+
export const PutFirewallConfigRulesSecurityRedirect$outboundSchema = z.object({
|
|
1408
|
+
location: z.string(),
|
|
1409
|
+
permanent: z.boolean(),
|
|
1410
|
+
});
|
|
1411
|
+
export function putFirewallConfigRulesSecurityRedirectToJSON(putFirewallConfigRulesSecurityRedirect) {
|
|
1412
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityRedirect$outboundSchema.parse(putFirewallConfigRulesSecurityRedirect));
|
|
1413
|
+
}
|
|
1414
|
+
export function putFirewallConfigRulesSecurityRedirectFromJSON(jsonString) {
|
|
1415
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityRedirect' from JSON`);
|
|
1416
|
+
}
|
|
1417
|
+
/** @internal */
|
|
1418
|
+
export const PutFirewallConfigRulesSecurityMitigate$inboundSchema = z.object({
|
|
1419
|
+
action: PutFirewallConfigRulesSecurityResponseAction$inboundSchema,
|
|
1420
|
+
rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRulesSecurityRateLimit$inboundSchema)).optional(),
|
|
1421
|
+
redirect: z.nullable(z.lazy(() => PutFirewallConfigRulesSecurityRedirect$inboundSchema)).optional(),
|
|
1171
1422
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1172
1423
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1173
1424
|
});
|
|
1174
|
-
|
|
1175
|
-
|
|
1425
|
+
/** @internal */
|
|
1426
|
+
export const PutFirewallConfigRulesSecurityMitigate$outboundSchema = z.object({
|
|
1427
|
+
action: PutFirewallConfigRulesSecurityResponseAction$outboundSchema,
|
|
1428
|
+
rateLimit: z.nullable(z.lazy(() => PutFirewallConfigRulesSecurityRateLimit$outboundSchema)).optional(),
|
|
1429
|
+
redirect: z.nullable(z.lazy(() => PutFirewallConfigRulesSecurityRedirect$outboundSchema)).optional(),
|
|
1430
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
1431
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1432
|
+
});
|
|
1433
|
+
export function putFirewallConfigRulesSecurityMitigateToJSON(putFirewallConfigRulesSecurityMitigate) {
|
|
1434
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityMitigate$outboundSchema.parse(putFirewallConfigRulesSecurityMitigate));
|
|
1176
1435
|
}
|
|
1177
|
-
export function
|
|
1178
|
-
return safeParse(jsonString, (x) =>
|
|
1436
|
+
export function putFirewallConfigRulesSecurityMitigateFromJSON(jsonString) {
|
|
1437
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityMitigate' from JSON`);
|
|
1179
1438
|
}
|
|
1180
1439
|
/** @internal */
|
|
1181
|
-
export const
|
|
1182
|
-
mitigate: z.lazy(() =>
|
|
1440
|
+
export const PutFirewallConfigRulesSecurityAction$inboundSchema = z.object({
|
|
1441
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesSecurityMitigate$inboundSchema)
|
|
1442
|
+
.optional(),
|
|
1183
1443
|
});
|
|
1184
1444
|
/** @internal */
|
|
1185
|
-
export const
|
|
1186
|
-
mitigate: z.lazy(() =>
|
|
1445
|
+
export const PutFirewallConfigRulesSecurityAction$outboundSchema = z.object({
|
|
1446
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesSecurityMitigate$outboundSchema)
|
|
1447
|
+
.optional(),
|
|
1187
1448
|
});
|
|
1188
|
-
export function
|
|
1189
|
-
return JSON.stringify(
|
|
1449
|
+
export function putFirewallConfigRulesSecurityActionToJSON(putFirewallConfigRulesSecurityAction) {
|
|
1450
|
+
return JSON.stringify(PutFirewallConfigRulesSecurityAction$outboundSchema.parse(putFirewallConfigRulesSecurityAction));
|
|
1190
1451
|
}
|
|
1191
|
-
export function
|
|
1192
|
-
return safeParse(jsonString, (x) =>
|
|
1452
|
+
export function putFirewallConfigRulesSecurityActionFromJSON(jsonString) {
|
|
1453
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRulesSecurityAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRulesSecurityAction' from JSON`);
|
|
1193
1454
|
}
|
|
1194
1455
|
/** @internal */
|
|
1195
|
-
export const
|
|
1456
|
+
export const PutFirewallConfigRules1$inboundSchema = z.object({
|
|
1196
1457
|
id: z.string(),
|
|
1197
1458
|
name: z.string(),
|
|
1198
1459
|
description: z.string().optional(),
|
|
1199
1460
|
active: z.boolean(),
|
|
1200
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
1201
|
-
action: z.lazy(() =>
|
|
1461
|
+
conditionGroup: z.array(z.lazy(() => PutFirewallConfigRulesSecurityConditionGroup$inboundSchema)),
|
|
1462
|
+
action: z.lazy(() => PutFirewallConfigRulesSecurityAction$inboundSchema),
|
|
1463
|
+
valid: z.boolean(),
|
|
1464
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
1202
1465
|
});
|
|
1203
1466
|
/** @internal */
|
|
1204
|
-
export const
|
|
1467
|
+
export const PutFirewallConfigRules1$outboundSchema = z.object({
|
|
1205
1468
|
id: z.string(),
|
|
1206
1469
|
name: z.string(),
|
|
1207
1470
|
description: z.string().optional(),
|
|
1208
1471
|
active: z.boolean(),
|
|
1209
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
1210
|
-
action: z.lazy(() =>
|
|
1472
|
+
conditionGroup: z.array(z.lazy(() => PutFirewallConfigRulesSecurityConditionGroup$outboundSchema)),
|
|
1473
|
+
action: z.lazy(() => PutFirewallConfigRulesSecurityAction$outboundSchema),
|
|
1474
|
+
valid: z.boolean(),
|
|
1475
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
1211
1476
|
});
|
|
1477
|
+
export function putFirewallConfigRules1ToJSON(putFirewallConfigRules1) {
|
|
1478
|
+
return JSON.stringify(PutFirewallConfigRules1$outboundSchema.parse(putFirewallConfigRules1));
|
|
1479
|
+
}
|
|
1480
|
+
export function putFirewallConfigRules1FromJSON(jsonString) {
|
|
1481
|
+
return safeParse(jsonString, (x) => PutFirewallConfigRules1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigRules1' from JSON`);
|
|
1482
|
+
}
|
|
1483
|
+
/** @internal */
|
|
1484
|
+
export const PutFirewallConfigSecurityRules$inboundSchema = z.union([
|
|
1485
|
+
z.lazy(() => PutFirewallConfigRules1$inboundSchema),
|
|
1486
|
+
z.lazy(() => PutFirewallConfigRules2$inboundSchema),
|
|
1487
|
+
]);
|
|
1488
|
+
/** @internal */
|
|
1489
|
+
export const PutFirewallConfigSecurityRules$outboundSchema = z.union([
|
|
1490
|
+
z.lazy(() => PutFirewallConfigRules1$outboundSchema),
|
|
1491
|
+
z.lazy(() => PutFirewallConfigRules2$outboundSchema),
|
|
1492
|
+
]);
|
|
1212
1493
|
export function putFirewallConfigSecurityRulesToJSON(putFirewallConfigSecurityRules) {
|
|
1213
1494
|
return JSON.stringify(PutFirewallConfigSecurityRules$outboundSchema.parse(putFirewallConfigSecurityRules));
|
|
1214
1495
|
}
|
|
@@ -1216,17 +1497,17 @@ export function putFirewallConfigSecurityRulesFromJSON(jsonString) {
|
|
|
1216
1497
|
return safeParse(jsonString, (x) => PutFirewallConfigSecurityRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PutFirewallConfigSecurityRules' from JSON`);
|
|
1217
1498
|
}
|
|
1218
1499
|
/** @internal */
|
|
1219
|
-
export const
|
|
1220
|
-
.nativeEnum(
|
|
1500
|
+
export const PutFirewallConfigSecurityResponseAction$inboundSchema = z
|
|
1501
|
+
.nativeEnum(PutFirewallConfigSecurityResponseAction);
|
|
1221
1502
|
/** @internal */
|
|
1222
|
-
export const
|
|
1503
|
+
export const PutFirewallConfigSecurityResponseAction$outboundSchema = PutFirewallConfigSecurityResponseAction$inboundSchema;
|
|
1223
1504
|
/** @internal */
|
|
1224
1505
|
export const PutFirewallConfigIps$inboundSchema = z.object({
|
|
1225
1506
|
id: z.string(),
|
|
1226
1507
|
hostname: z.string(),
|
|
1227
1508
|
ip: z.string(),
|
|
1228
1509
|
notes: z.string().optional(),
|
|
1229
|
-
action:
|
|
1510
|
+
action: PutFirewallConfigSecurityResponseAction$inboundSchema,
|
|
1230
1511
|
});
|
|
1231
1512
|
/** @internal */
|
|
1232
1513
|
export const PutFirewallConfigIps$outboundSchema = z.object({
|
|
@@ -1234,7 +1515,7 @@ export const PutFirewallConfigIps$outboundSchema = z.object({
|
|
|
1234
1515
|
hostname: z.string(),
|
|
1235
1516
|
ip: z.string(),
|
|
1236
1517
|
notes: z.string().optional(),
|
|
1237
|
-
action:
|
|
1518
|
+
action: PutFirewallConfigSecurityResponseAction$outboundSchema,
|
|
1238
1519
|
});
|
|
1239
1520
|
export function putFirewallConfigIpsToJSON(putFirewallConfigIps) {
|
|
1240
1521
|
return JSON.stringify(PutFirewallConfigIps$outboundSchema.parse(putFirewallConfigIps));
|
|
@@ -1376,7 +1657,10 @@ export const Active$inboundSchema = z
|
|
|
1376
1657
|
updatedAt: z.string(),
|
|
1377
1658
|
firewallEnabled: z.boolean(),
|
|
1378
1659
|
crs: z.lazy(() => PutFirewallConfigCrs$inboundSchema),
|
|
1379
|
-
rules: z.array(z.
|
|
1660
|
+
rules: z.array(z.union([
|
|
1661
|
+
z.lazy(() => PutFirewallConfigRules1$inboundSchema),
|
|
1662
|
+
z.lazy(() => PutFirewallConfigRules2$inboundSchema),
|
|
1663
|
+
])),
|
|
1380
1664
|
ips: z.array(z.lazy(() => PutFirewallConfigIps$inboundSchema)),
|
|
1381
1665
|
changes: z.array(z.lazy(() => PutFirewallConfigChanges$inboundSchema)),
|
|
1382
1666
|
managedRules: z.lazy(() => PutFirewallConfigManagedRules$inboundSchema)
|
|
@@ -1392,7 +1676,10 @@ export const Active$outboundSchema = z.object({
|
|
|
1392
1676
|
updatedAt: z.string(),
|
|
1393
1677
|
firewallEnabled: z.boolean(),
|
|
1394
1678
|
crs: z.lazy(() => PutFirewallConfigCrs$outboundSchema),
|
|
1395
|
-
rules: z.array(z.
|
|
1679
|
+
rules: z.array(z.union([
|
|
1680
|
+
z.lazy(() => PutFirewallConfigRules1$outboundSchema),
|
|
1681
|
+
z.lazy(() => PutFirewallConfigRules2$outboundSchema),
|
|
1682
|
+
])),
|
|
1396
1683
|
ips: z.array(z.lazy(() => PutFirewallConfigIps$outboundSchema)),
|
|
1397
1684
|
changes: z.array(z.lazy(() => PutFirewallConfigChanges$outboundSchema)),
|
|
1398
1685
|
managedRules: z.lazy(() => PutFirewallConfigManagedRules$outboundSchema)
|