@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
|
@@ -9,6 +9,8 @@ import { ClosedEnum } from "../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
+
export type ManagedRules = {};
|
|
13
|
+
|
|
12
14
|
export const PutFirewallConfigAction = {
|
|
13
15
|
Deny: "deny",
|
|
14
16
|
Log: "log",
|
|
@@ -257,6 +259,8 @@ export const PutFirewallConfigType = {
|
|
|
257
259
|
Ja4Digest: "ja4_digest",
|
|
258
260
|
Ja3Digest: "ja3_digest",
|
|
259
261
|
RateLimitApiId: "rate_limit_api_id",
|
|
262
|
+
BotName: "bot_name",
|
|
263
|
+
BotCategory: "bot_category",
|
|
260
264
|
} as const;
|
|
261
265
|
/**
|
|
262
266
|
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
@@ -342,7 +346,7 @@ export type Redirect1 = {
|
|
|
342
346
|
permanent: boolean;
|
|
343
347
|
};
|
|
344
348
|
|
|
345
|
-
export type
|
|
349
|
+
export type PutFirewallConfigRedirect = Redirect1 | any;
|
|
346
350
|
|
|
347
351
|
export type Mitigate = {
|
|
348
352
|
action: PutFirewallConfigSecurityRequestRequestBodyRulesActionAction;
|
|
@@ -356,6 +360,8 @@ export type PutFirewallConfigSecurityRequestRequestBodyRulesAction = {
|
|
|
356
360
|
mitigate?: Mitigate | undefined;
|
|
357
361
|
};
|
|
358
362
|
|
|
363
|
+
export type ValidationErrors = string | Array<string>;
|
|
364
|
+
|
|
359
365
|
export type PutFirewallConfigRules = {
|
|
360
366
|
id?: string | undefined;
|
|
361
367
|
name: string;
|
|
@@ -363,6 +369,8 @@ export type PutFirewallConfigRules = {
|
|
|
363
369
|
active: boolean;
|
|
364
370
|
conditionGroup: Array<ConditionGroup>;
|
|
365
371
|
action: PutFirewallConfigSecurityRequestRequestBodyRulesAction;
|
|
372
|
+
valid?: boolean | undefined;
|
|
373
|
+
validationErrors?: string | Array<string> | undefined;
|
|
366
374
|
};
|
|
367
375
|
|
|
368
376
|
export const PutFirewallConfigSecurityRequestRequestBodyIpsAction = {
|
|
@@ -385,7 +393,7 @@ export type Ips = {
|
|
|
385
393
|
|
|
386
394
|
export type PutFirewallConfigRequestBody = {
|
|
387
395
|
firewallEnabled: boolean;
|
|
388
|
-
managedRules?:
|
|
396
|
+
managedRules?: ManagedRules | undefined;
|
|
389
397
|
/**
|
|
390
398
|
* Custom Ruleset
|
|
391
399
|
*/
|
|
@@ -427,23 +435,20 @@ export type PutFirewallConfigSd = {
|
|
|
427
435
|
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction;
|
|
428
436
|
};
|
|
429
437
|
|
|
430
|
-
export const
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction
|
|
438
|
-
>;
|
|
438
|
+
export const PutFirewallConfigSecurityResponse200Action = {
|
|
439
|
+
Deny: "deny",
|
|
440
|
+
Log: "log",
|
|
441
|
+
} as const;
|
|
442
|
+
export type PutFirewallConfigSecurityResponse200Action = ClosedEnum<
|
|
443
|
+
typeof PutFirewallConfigSecurityResponse200Action
|
|
444
|
+
>;
|
|
439
445
|
|
|
440
446
|
/**
|
|
441
447
|
* Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
|
|
442
448
|
*/
|
|
443
449
|
export type PutFirewallConfigMa = {
|
|
444
450
|
active: boolean;
|
|
445
|
-
action:
|
|
446
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction;
|
|
451
|
+
action: PutFirewallConfigSecurityResponse200Action;
|
|
447
452
|
};
|
|
448
453
|
|
|
449
454
|
export const PutFirewallConfigSecurityResponse200ApplicationJSONAction = {
|
|
@@ -662,7 +667,7 @@ export type PutFirewallConfigCrs = {
|
|
|
662
667
|
java: PutFirewallConfigJava;
|
|
663
668
|
};
|
|
664
669
|
|
|
665
|
-
export const
|
|
670
|
+
export const PutFirewallConfigRulesType = {
|
|
666
671
|
Host: "host",
|
|
667
672
|
Path: "path",
|
|
668
673
|
Method: "method",
|
|
@@ -687,12 +692,14 @@ export const PutFirewallConfigSecurityType = {
|
|
|
687
692
|
Ja3Digest: "ja3_digest",
|
|
688
693
|
RateLimitApiId: "rate_limit_api_id",
|
|
689
694
|
ServerAction: "server_action",
|
|
695
|
+
BotName: "bot_name",
|
|
696
|
+
BotCategory: "bot_category",
|
|
690
697
|
} as const;
|
|
691
|
-
export type
|
|
692
|
-
typeof
|
|
698
|
+
export type PutFirewallConfigRulesType = ClosedEnum<
|
|
699
|
+
typeof PutFirewallConfigRulesType
|
|
693
700
|
>;
|
|
694
701
|
|
|
695
|
-
export const
|
|
702
|
+
export const PutFirewallConfigRulesOp = {
|
|
696
703
|
Re: "re",
|
|
697
704
|
Eq: "eq",
|
|
698
705
|
Ex: "ex",
|
|
@@ -708,100 +715,246 @@ export const PutFirewallConfigOp = {
|
|
|
708
715
|
Ninc: "ninc",
|
|
709
716
|
Neq: "neq",
|
|
710
717
|
} as const;
|
|
711
|
-
export type
|
|
718
|
+
export type PutFirewallConfigRulesOp = ClosedEnum<
|
|
719
|
+
typeof PutFirewallConfigRulesOp
|
|
720
|
+
>;
|
|
712
721
|
|
|
713
|
-
export type
|
|
722
|
+
export type PutFirewallConfigRulesValue = string | number | Array<string>;
|
|
714
723
|
|
|
715
|
-
export type
|
|
716
|
-
type:
|
|
717
|
-
op:
|
|
724
|
+
export type PutFirewallConfigRulesConditions = {
|
|
725
|
+
type: PutFirewallConfigRulesType;
|
|
726
|
+
op: PutFirewallConfigRulesOp;
|
|
718
727
|
neg?: boolean | undefined;
|
|
719
728
|
key?: string | undefined;
|
|
720
729
|
value?: string | number | Array<string> | undefined;
|
|
721
730
|
};
|
|
722
731
|
|
|
723
|
-
export type
|
|
724
|
-
conditions: Array<
|
|
732
|
+
export type PutFirewallConfigRulesConditionGroup = {
|
|
733
|
+
conditions: Array<PutFirewallConfigRulesConditions>;
|
|
725
734
|
};
|
|
726
735
|
|
|
727
|
-
export const
|
|
736
|
+
export const PutFirewallConfigRulesSecurityResponse200Action = {
|
|
737
|
+
Deny: "deny",
|
|
738
|
+
Log: "log",
|
|
739
|
+
Challenge: "challenge",
|
|
740
|
+
Bypass: "bypass",
|
|
741
|
+
RateLimit: "rate_limit",
|
|
742
|
+
Redirect: "redirect",
|
|
743
|
+
} as const;
|
|
744
|
+
export type PutFirewallConfigRulesSecurityResponse200Action = ClosedEnum<
|
|
745
|
+
typeof PutFirewallConfigRulesSecurityResponse200Action
|
|
746
|
+
>;
|
|
747
|
+
|
|
748
|
+
export const PutFirewallConfigRulesAlgo = {
|
|
749
|
+
FixedWindow: "fixed_window",
|
|
750
|
+
TokenBucket: "token_bucket",
|
|
751
|
+
} as const;
|
|
752
|
+
export type PutFirewallConfigRulesAlgo = ClosedEnum<
|
|
753
|
+
typeof PutFirewallConfigRulesAlgo
|
|
754
|
+
>;
|
|
755
|
+
|
|
756
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction =
|
|
728
757
|
{
|
|
729
758
|
Deny: "deny",
|
|
730
759
|
Log: "log",
|
|
731
760
|
Challenge: "challenge",
|
|
732
|
-
Bypass: "bypass",
|
|
733
761
|
RateLimit: "rate_limit",
|
|
734
|
-
Redirect: "redirect",
|
|
735
762
|
} as const;
|
|
736
|
-
export type
|
|
763
|
+
export type PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction =
|
|
737
764
|
ClosedEnum<
|
|
738
|
-
typeof
|
|
765
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
739
766
|
>;
|
|
740
767
|
|
|
741
|
-
export
|
|
768
|
+
export type PutFirewallConfigRulesRateLimit = {
|
|
769
|
+
algo: PutFirewallConfigRulesAlgo;
|
|
770
|
+
window: number;
|
|
771
|
+
limit: number;
|
|
772
|
+
keys: Array<string>;
|
|
773
|
+
action?:
|
|
774
|
+
| PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
775
|
+
| null
|
|
776
|
+
| undefined;
|
|
777
|
+
};
|
|
778
|
+
|
|
779
|
+
export type PutFirewallConfigRulesRedirect = {
|
|
780
|
+
location: string;
|
|
781
|
+
permanent: boolean;
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
export type PutFirewallConfigRulesMitigate = {
|
|
785
|
+
action: PutFirewallConfigRulesSecurityResponse200Action;
|
|
786
|
+
rateLimit?: PutFirewallConfigRulesRateLimit | null | undefined;
|
|
787
|
+
redirect?: PutFirewallConfigRulesRedirect | null | undefined;
|
|
788
|
+
actionDuration?: string | null | undefined;
|
|
789
|
+
bypassSystem?: boolean | null | undefined;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
export type PutFirewallConfigRulesAction = {
|
|
793
|
+
mitigate?: PutFirewallConfigRulesMitigate | undefined;
|
|
794
|
+
};
|
|
795
|
+
|
|
796
|
+
export type PutFirewallConfigRules2 = {
|
|
797
|
+
id: string;
|
|
798
|
+
name: string;
|
|
799
|
+
description?: string | undefined;
|
|
800
|
+
active: boolean;
|
|
801
|
+
conditionGroup: Array<PutFirewallConfigRulesConditionGroup>;
|
|
802
|
+
action: PutFirewallConfigRulesAction;
|
|
803
|
+
valid: boolean;
|
|
804
|
+
validationErrors: Array<string>;
|
|
805
|
+
};
|
|
806
|
+
|
|
807
|
+
export const PutFirewallConfigRulesSecurityType = {
|
|
808
|
+
Host: "host",
|
|
809
|
+
Path: "path",
|
|
810
|
+
Method: "method",
|
|
811
|
+
Header: "header",
|
|
812
|
+
Query: "query",
|
|
813
|
+
Cookie: "cookie",
|
|
814
|
+
TargetPath: "target_path",
|
|
815
|
+
Route: "route",
|
|
816
|
+
RawPath: "raw_path",
|
|
817
|
+
IpAddress: "ip_address",
|
|
818
|
+
Protocol: "protocol",
|
|
819
|
+
Region: "region",
|
|
820
|
+
Scheme: "scheme",
|
|
821
|
+
Environment: "environment",
|
|
822
|
+
UserAgent: "user_agent",
|
|
823
|
+
GeoContinent: "geo_continent",
|
|
824
|
+
GeoCountry: "geo_country",
|
|
825
|
+
GeoCountryRegion: "geo_country_region",
|
|
826
|
+
GeoCity: "geo_city",
|
|
827
|
+
GeoAsNumber: "geo_as_number",
|
|
828
|
+
Ja4Digest: "ja4_digest",
|
|
829
|
+
Ja3Digest: "ja3_digest",
|
|
830
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
831
|
+
ServerAction: "server_action",
|
|
832
|
+
BotName: "bot_name",
|
|
833
|
+
BotCategory: "bot_category",
|
|
834
|
+
} as const;
|
|
835
|
+
export type PutFirewallConfigRulesSecurityType = ClosedEnum<
|
|
836
|
+
typeof PutFirewallConfigRulesSecurityType
|
|
837
|
+
>;
|
|
838
|
+
|
|
839
|
+
export const PutFirewallConfigRulesSecurityOp = {
|
|
840
|
+
Re: "re",
|
|
841
|
+
Eq: "eq",
|
|
842
|
+
Ex: "ex",
|
|
843
|
+
Inc: "inc",
|
|
844
|
+
Pre: "pre",
|
|
845
|
+
Suf: "suf",
|
|
846
|
+
Sub: "sub",
|
|
847
|
+
Gt: "gt",
|
|
848
|
+
Gte: "gte",
|
|
849
|
+
Lt: "lt",
|
|
850
|
+
Lte: "lte",
|
|
851
|
+
Nex: "nex",
|
|
852
|
+
Ninc: "ninc",
|
|
853
|
+
Neq: "neq",
|
|
854
|
+
} as const;
|
|
855
|
+
export type PutFirewallConfigRulesSecurityOp = ClosedEnum<
|
|
856
|
+
typeof PutFirewallConfigRulesSecurityOp
|
|
857
|
+
>;
|
|
858
|
+
|
|
859
|
+
export type PutFirewallConfigRulesSecurityValue =
|
|
860
|
+
| string
|
|
861
|
+
| number
|
|
862
|
+
| Array<string>;
|
|
863
|
+
|
|
864
|
+
export type PutFirewallConfigRulesSecurityConditions = {
|
|
865
|
+
type: PutFirewallConfigRulesSecurityType;
|
|
866
|
+
op: PutFirewallConfigRulesSecurityOp;
|
|
867
|
+
neg?: boolean | undefined;
|
|
868
|
+
key?: string | undefined;
|
|
869
|
+
value?: string | number | Array<string> | undefined;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
export type PutFirewallConfigRulesSecurityConditionGroup = {
|
|
873
|
+
conditions: Array<PutFirewallConfigRulesSecurityConditions>;
|
|
874
|
+
};
|
|
875
|
+
|
|
876
|
+
export const PutFirewallConfigRulesSecurityResponseAction = {
|
|
877
|
+
Deny: "deny",
|
|
878
|
+
Log: "log",
|
|
879
|
+
Challenge: "challenge",
|
|
880
|
+
Bypass: "bypass",
|
|
881
|
+
RateLimit: "rate_limit",
|
|
882
|
+
Redirect: "redirect",
|
|
883
|
+
} as const;
|
|
884
|
+
export type PutFirewallConfigRulesSecurityResponseAction = ClosedEnum<
|
|
885
|
+
typeof PutFirewallConfigRulesSecurityResponseAction
|
|
886
|
+
>;
|
|
887
|
+
|
|
888
|
+
export const PutFirewallConfigRulesSecurityAlgo = {
|
|
742
889
|
FixedWindow: "fixed_window",
|
|
743
890
|
TokenBucket: "token_bucket",
|
|
744
891
|
} as const;
|
|
745
|
-
export type
|
|
892
|
+
export type PutFirewallConfigRulesSecurityAlgo = ClosedEnum<
|
|
893
|
+
typeof PutFirewallConfigRulesSecurityAlgo
|
|
894
|
+
>;
|
|
746
895
|
|
|
747
|
-
export const
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction =
|
|
896
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction = {
|
|
897
|
+
Deny: "deny",
|
|
898
|
+
Log: "log",
|
|
899
|
+
Challenge: "challenge",
|
|
900
|
+
RateLimit: "rate_limit",
|
|
901
|
+
} as const;
|
|
902
|
+
export type PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction =
|
|
755
903
|
ClosedEnum<
|
|
756
|
-
typeof
|
|
904
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
757
905
|
>;
|
|
758
906
|
|
|
759
|
-
export type
|
|
760
|
-
algo:
|
|
907
|
+
export type PutFirewallConfigRulesSecurityRateLimit = {
|
|
908
|
+
algo: PutFirewallConfigRulesSecurityAlgo;
|
|
761
909
|
window: number;
|
|
762
910
|
limit: number;
|
|
763
911
|
keys: Array<string>;
|
|
764
912
|
action?:
|
|
765
|
-
|
|
|
913
|
+
| PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
766
914
|
| null
|
|
767
915
|
| undefined;
|
|
768
916
|
};
|
|
769
917
|
|
|
770
|
-
export type
|
|
918
|
+
export type PutFirewallConfigRulesSecurityRedirect = {
|
|
771
919
|
location: string;
|
|
772
920
|
permanent: boolean;
|
|
773
921
|
};
|
|
774
922
|
|
|
775
|
-
export type
|
|
776
|
-
action:
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
redirect?: PutFirewallConfigRedirect | null | undefined;
|
|
923
|
+
export type PutFirewallConfigRulesSecurityMitigate = {
|
|
924
|
+
action: PutFirewallConfigRulesSecurityResponseAction;
|
|
925
|
+
rateLimit?: PutFirewallConfigRulesSecurityRateLimit | null | undefined;
|
|
926
|
+
redirect?: PutFirewallConfigRulesSecurityRedirect | null | undefined;
|
|
780
927
|
actionDuration?: string | null | undefined;
|
|
781
928
|
bypassSystem?: boolean | null | undefined;
|
|
782
929
|
};
|
|
783
930
|
|
|
784
|
-
export type
|
|
785
|
-
mitigate?:
|
|
931
|
+
export type PutFirewallConfigRulesSecurityAction = {
|
|
932
|
+
mitigate?: PutFirewallConfigRulesSecurityMitigate | undefined;
|
|
786
933
|
};
|
|
787
934
|
|
|
788
|
-
export type
|
|
935
|
+
export type PutFirewallConfigRules1 = {
|
|
789
936
|
id: string;
|
|
790
937
|
name: string;
|
|
791
938
|
description?: string | undefined;
|
|
792
939
|
active: boolean;
|
|
793
|
-
conditionGroup: Array<
|
|
794
|
-
action:
|
|
940
|
+
conditionGroup: Array<PutFirewallConfigRulesSecurityConditionGroup>;
|
|
941
|
+
action: PutFirewallConfigRulesSecurityAction;
|
|
942
|
+
valid: boolean;
|
|
943
|
+
validationErrors?: any | null | undefined;
|
|
795
944
|
};
|
|
796
945
|
|
|
797
|
-
export
|
|
946
|
+
export type PutFirewallConfigSecurityRules =
|
|
947
|
+
| PutFirewallConfigRules1
|
|
948
|
+
| PutFirewallConfigRules2;
|
|
949
|
+
|
|
950
|
+
export const PutFirewallConfigSecurityResponseAction = {
|
|
798
951
|
Deny: "deny",
|
|
799
952
|
Log: "log",
|
|
800
953
|
Challenge: "challenge",
|
|
801
954
|
Bypass: "bypass",
|
|
802
955
|
} as const;
|
|
803
|
-
export type
|
|
804
|
-
typeof
|
|
956
|
+
export type PutFirewallConfigSecurityResponseAction = ClosedEnum<
|
|
957
|
+
typeof PutFirewallConfigSecurityResponseAction
|
|
805
958
|
>;
|
|
806
959
|
|
|
807
960
|
export type PutFirewallConfigIps = {
|
|
@@ -809,7 +962,7 @@ export type PutFirewallConfigIps = {
|
|
|
809
962
|
hostname: string;
|
|
810
963
|
ip: string;
|
|
811
964
|
notes?: string | undefined;
|
|
812
|
-
action:
|
|
965
|
+
action: PutFirewallConfigSecurityResponseAction;
|
|
813
966
|
};
|
|
814
967
|
|
|
815
968
|
export type PutFirewallConfigChanges = {};
|
|
@@ -894,7 +1047,7 @@ export type Active = {
|
|
|
894
1047
|
* Custom Ruleset
|
|
895
1048
|
*/
|
|
896
1049
|
crs: PutFirewallConfigCrs;
|
|
897
|
-
rules: Array<
|
|
1050
|
+
rules: Array<PutFirewallConfigRules1 | PutFirewallConfigRules2>;
|
|
898
1051
|
ips: Array<PutFirewallConfigIps>;
|
|
899
1052
|
changes: Array<PutFirewallConfigChanges>;
|
|
900
1053
|
managedRules?: PutFirewallConfigManagedRules | undefined;
|
|
@@ -905,6 +1058,35 @@ export type PutFirewallConfigResponseBody = {
|
|
|
905
1058
|
active: Active;
|
|
906
1059
|
};
|
|
907
1060
|
|
|
1061
|
+
/** @internal */
|
|
1062
|
+
export const ManagedRules$inboundSchema: z.ZodType<
|
|
1063
|
+
ManagedRules,
|
|
1064
|
+
z.ZodTypeDef,
|
|
1065
|
+
unknown
|
|
1066
|
+
> = z.object({});
|
|
1067
|
+
/** @internal */
|
|
1068
|
+
export type ManagedRules$Outbound = {};
|
|
1069
|
+
|
|
1070
|
+
/** @internal */
|
|
1071
|
+
export const ManagedRules$outboundSchema: z.ZodType<
|
|
1072
|
+
ManagedRules$Outbound,
|
|
1073
|
+
z.ZodTypeDef,
|
|
1074
|
+
ManagedRules
|
|
1075
|
+
> = z.object({});
|
|
1076
|
+
|
|
1077
|
+
export function managedRulesToJSON(managedRules: ManagedRules): string {
|
|
1078
|
+
return JSON.stringify(ManagedRules$outboundSchema.parse(managedRules));
|
|
1079
|
+
}
|
|
1080
|
+
export function managedRulesFromJSON(
|
|
1081
|
+
jsonString: string,
|
|
1082
|
+
): SafeParseResult<ManagedRules, SDKValidationError> {
|
|
1083
|
+
return safeParse(
|
|
1084
|
+
jsonString,
|
|
1085
|
+
(x) => ManagedRules$inboundSchema.parse(JSON.parse(x)),
|
|
1086
|
+
`Failed to parse 'ManagedRules' from JSON`,
|
|
1087
|
+
);
|
|
1088
|
+
}
|
|
1089
|
+
|
|
908
1090
|
/** @internal */
|
|
909
1091
|
export const PutFirewallConfigAction$inboundSchema: z.ZodNativeEnum<
|
|
910
1092
|
typeof PutFirewallConfigAction
|
|
@@ -1733,31 +1915,35 @@ export function redirect1FromJSON(
|
|
|
1733
1915
|
}
|
|
1734
1916
|
|
|
1735
1917
|
/** @internal */
|
|
1736
|
-
export const
|
|
1737
|
-
|
|
1918
|
+
export const PutFirewallConfigRedirect$inboundSchema: z.ZodType<
|
|
1919
|
+
PutFirewallConfigRedirect,
|
|
1738
1920
|
z.ZodTypeDef,
|
|
1739
1921
|
unknown
|
|
1740
1922
|
> = z.union([z.lazy(() => Redirect1$inboundSchema), z.any()]);
|
|
1741
1923
|
/** @internal */
|
|
1742
|
-
export type
|
|
1924
|
+
export type PutFirewallConfigRedirect$Outbound = Redirect1$Outbound | any;
|
|
1743
1925
|
|
|
1744
1926
|
/** @internal */
|
|
1745
|
-
export const
|
|
1746
|
-
|
|
1927
|
+
export const PutFirewallConfigRedirect$outboundSchema: z.ZodType<
|
|
1928
|
+
PutFirewallConfigRedirect$Outbound,
|
|
1747
1929
|
z.ZodTypeDef,
|
|
1748
|
-
|
|
1930
|
+
PutFirewallConfigRedirect
|
|
1749
1931
|
> = z.union([z.lazy(() => Redirect1$outboundSchema), z.any()]);
|
|
1750
1932
|
|
|
1751
|
-
export function
|
|
1752
|
-
|
|
1933
|
+
export function putFirewallConfigRedirectToJSON(
|
|
1934
|
+
putFirewallConfigRedirect: PutFirewallConfigRedirect,
|
|
1935
|
+
): string {
|
|
1936
|
+
return JSON.stringify(
|
|
1937
|
+
PutFirewallConfigRedirect$outboundSchema.parse(putFirewallConfigRedirect),
|
|
1938
|
+
);
|
|
1753
1939
|
}
|
|
1754
|
-
export function
|
|
1940
|
+
export function putFirewallConfigRedirectFromJSON(
|
|
1755
1941
|
jsonString: string,
|
|
1756
|
-
): SafeParseResult<
|
|
1942
|
+
): SafeParseResult<PutFirewallConfigRedirect, SDKValidationError> {
|
|
1757
1943
|
return safeParse(
|
|
1758
1944
|
jsonString,
|
|
1759
|
-
(x) =>
|
|
1760
|
-
`Failed to parse '
|
|
1945
|
+
(x) => PutFirewallConfigRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
1946
|
+
`Failed to parse 'PutFirewallConfigRedirect' from JSON`,
|
|
1761
1947
|
);
|
|
1762
1948
|
}
|
|
1763
1949
|
|
|
@@ -1867,6 +2053,39 @@ export function putFirewallConfigSecurityRequestRequestBodyRulesActionFromJSON(
|
|
|
1867
2053
|
);
|
|
1868
2054
|
}
|
|
1869
2055
|
|
|
2056
|
+
/** @internal */
|
|
2057
|
+
export const ValidationErrors$inboundSchema: z.ZodType<
|
|
2058
|
+
ValidationErrors,
|
|
2059
|
+
z.ZodTypeDef,
|
|
2060
|
+
unknown
|
|
2061
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2062
|
+
/** @internal */
|
|
2063
|
+
export type ValidationErrors$Outbound = string | Array<string>;
|
|
2064
|
+
|
|
2065
|
+
/** @internal */
|
|
2066
|
+
export const ValidationErrors$outboundSchema: z.ZodType<
|
|
2067
|
+
ValidationErrors$Outbound,
|
|
2068
|
+
z.ZodTypeDef,
|
|
2069
|
+
ValidationErrors
|
|
2070
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2071
|
+
|
|
2072
|
+
export function validationErrorsToJSON(
|
|
2073
|
+
validationErrors: ValidationErrors,
|
|
2074
|
+
): string {
|
|
2075
|
+
return JSON.stringify(
|
|
2076
|
+
ValidationErrors$outboundSchema.parse(validationErrors),
|
|
2077
|
+
);
|
|
2078
|
+
}
|
|
2079
|
+
export function validationErrorsFromJSON(
|
|
2080
|
+
jsonString: string,
|
|
2081
|
+
): SafeParseResult<ValidationErrors, SDKValidationError> {
|
|
2082
|
+
return safeParse(
|
|
2083
|
+
jsonString,
|
|
2084
|
+
(x) => ValidationErrors$inboundSchema.parse(JSON.parse(x)),
|
|
2085
|
+
`Failed to parse 'ValidationErrors' from JSON`,
|
|
2086
|
+
);
|
|
2087
|
+
}
|
|
2088
|
+
|
|
1870
2089
|
/** @internal */
|
|
1871
2090
|
export const PutFirewallConfigRules$inboundSchema: z.ZodType<
|
|
1872
2091
|
PutFirewallConfigRules,
|
|
@@ -1881,6 +2100,8 @@ export const PutFirewallConfigRules$inboundSchema: z.ZodType<
|
|
|
1881
2100
|
action: z.lazy(() =>
|
|
1882
2101
|
PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema
|
|
1883
2102
|
),
|
|
2103
|
+
valid: z.boolean().optional(),
|
|
2104
|
+
validationErrors: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1884
2105
|
});
|
|
1885
2106
|
/** @internal */
|
|
1886
2107
|
export type PutFirewallConfigRules$Outbound = {
|
|
@@ -1890,6 +2111,8 @@ export type PutFirewallConfigRules$Outbound = {
|
|
|
1890
2111
|
active: boolean;
|
|
1891
2112
|
conditionGroup: Array<ConditionGroup$Outbound>;
|
|
1892
2113
|
action: PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound;
|
|
2114
|
+
valid?: boolean | undefined;
|
|
2115
|
+
validationErrors?: string | Array<string> | undefined;
|
|
1893
2116
|
};
|
|
1894
2117
|
|
|
1895
2118
|
/** @internal */
|
|
@@ -1906,6 +2129,8 @@ export const PutFirewallConfigRules$outboundSchema: z.ZodType<
|
|
|
1906
2129
|
action: z.lazy(() =>
|
|
1907
2130
|
PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema
|
|
1908
2131
|
),
|
|
2132
|
+
valid: z.boolean().optional(),
|
|
2133
|
+
validationErrors: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1909
2134
|
});
|
|
1910
2135
|
|
|
1911
2136
|
export function putFirewallConfigRulesToJSON(
|
|
@@ -1982,7 +2207,7 @@ export const PutFirewallConfigRequestBody$inboundSchema: z.ZodType<
|
|
|
1982
2207
|
unknown
|
|
1983
2208
|
> = z.object({
|
|
1984
2209
|
firewallEnabled: z.boolean(),
|
|
1985
|
-
managedRules: z.
|
|
2210
|
+
managedRules: z.lazy(() => ManagedRules$inboundSchema).optional(),
|
|
1986
2211
|
crs: z.lazy(() => Crs$inboundSchema).optional(),
|
|
1987
2212
|
rules: z.array(z.lazy(() => PutFirewallConfigRules$inboundSchema)).optional(),
|
|
1988
2213
|
ips: z.array(z.lazy(() => Ips$inboundSchema)).optional(),
|
|
@@ -1991,7 +2216,7 @@ export const PutFirewallConfigRequestBody$inboundSchema: z.ZodType<
|
|
|
1991
2216
|
/** @internal */
|
|
1992
2217
|
export type PutFirewallConfigRequestBody$Outbound = {
|
|
1993
2218
|
firewallEnabled: boolean;
|
|
1994
|
-
managedRules?:
|
|
2219
|
+
managedRules?: ManagedRules$Outbound | undefined;
|
|
1995
2220
|
crs?: Crs$Outbound | undefined;
|
|
1996
2221
|
rules?: Array<PutFirewallConfigRules$Outbound> | undefined;
|
|
1997
2222
|
ips?: Array<Ips$Outbound> | undefined;
|
|
@@ -2005,7 +2230,7 @@ export const PutFirewallConfigRequestBody$outboundSchema: z.ZodType<
|
|
|
2005
2230
|
PutFirewallConfigRequestBody
|
|
2006
2231
|
> = z.object({
|
|
2007
2232
|
firewallEnabled: z.boolean(),
|
|
2008
|
-
managedRules: z.
|
|
2233
|
+
managedRules: z.lazy(() => ManagedRules$outboundSchema).optional(),
|
|
2009
2234
|
crs: z.lazy(() => Crs$outboundSchema).optional(),
|
|
2010
2235
|
rules: z.array(z.lazy(() => PutFirewallConfigRules$outboundSchema))
|
|
2011
2236
|
.optional(),
|
|
@@ -2147,18 +2372,13 @@ export function putFirewallConfigSdFromJSON(
|
|
|
2147
2372
|
}
|
|
2148
2373
|
|
|
2149
2374
|
/** @internal */
|
|
2150
|
-
export const
|
|
2151
|
-
z.ZodNativeEnum<
|
|
2152
|
-
|
|
2153
|
-
> = z.nativeEnum(
|
|
2154
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction,
|
|
2155
|
-
);
|
|
2375
|
+
export const PutFirewallConfigSecurityResponse200Action$inboundSchema:
|
|
2376
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponse200Action> = z
|
|
2377
|
+
.nativeEnum(PutFirewallConfigSecurityResponse200Action);
|
|
2156
2378
|
/** @internal */
|
|
2157
|
-
export const
|
|
2158
|
-
z.ZodNativeEnum<
|
|
2159
|
-
|
|
2160
|
-
> =
|
|
2161
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema;
|
|
2379
|
+
export const PutFirewallConfigSecurityResponse200Action$outboundSchema:
|
|
2380
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponse200Action> =
|
|
2381
|
+
PutFirewallConfigSecurityResponse200Action$inboundSchema;
|
|
2162
2382
|
|
|
2163
2383
|
/** @internal */
|
|
2164
2384
|
export const PutFirewallConfigMa$inboundSchema: z.ZodType<
|
|
@@ -2167,8 +2387,7 @@ export const PutFirewallConfigMa$inboundSchema: z.ZodType<
|
|
|
2167
2387
|
unknown
|
|
2168
2388
|
> = z.object({
|
|
2169
2389
|
active: z.boolean(),
|
|
2170
|
-
action:
|
|
2171
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema,
|
|
2390
|
+
action: PutFirewallConfigSecurityResponse200Action$inboundSchema,
|
|
2172
2391
|
});
|
|
2173
2392
|
/** @internal */
|
|
2174
2393
|
export type PutFirewallConfigMa$Outbound = {
|
|
@@ -2183,8 +2402,7 @@ export const PutFirewallConfigMa$outboundSchema: z.ZodType<
|
|
|
2183
2402
|
PutFirewallConfigMa
|
|
2184
2403
|
> = z.object({
|
|
2185
2404
|
active: z.boolean(),
|
|
2186
|
-
action:
|
|
2187
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema,
|
|
2405
|
+
action: PutFirewallConfigSecurityResponse200Action$outboundSchema,
|
|
2188
2406
|
});
|
|
2189
2407
|
|
|
2190
2408
|
export function putFirewallConfigMaToJSON(
|
|
@@ -2793,70 +3011,75 @@ export function putFirewallConfigCrsFromJSON(
|
|
|
2793
3011
|
}
|
|
2794
3012
|
|
|
2795
3013
|
/** @internal */
|
|
2796
|
-
export const
|
|
2797
|
-
typeof
|
|
2798
|
-
> = z.nativeEnum(
|
|
3014
|
+
export const PutFirewallConfigRulesType$inboundSchema: z.ZodNativeEnum<
|
|
3015
|
+
typeof PutFirewallConfigRulesType
|
|
3016
|
+
> = z.nativeEnum(PutFirewallConfigRulesType);
|
|
2799
3017
|
/** @internal */
|
|
2800
|
-
export const
|
|
2801
|
-
typeof
|
|
2802
|
-
> =
|
|
3018
|
+
export const PutFirewallConfigRulesType$outboundSchema: z.ZodNativeEnum<
|
|
3019
|
+
typeof PutFirewallConfigRulesType
|
|
3020
|
+
> = PutFirewallConfigRulesType$inboundSchema;
|
|
2803
3021
|
|
|
2804
3022
|
/** @internal */
|
|
2805
|
-
export const
|
|
2806
|
-
typeof
|
|
2807
|
-
> = z.nativeEnum(
|
|
3023
|
+
export const PutFirewallConfigRulesOp$inboundSchema: z.ZodNativeEnum<
|
|
3024
|
+
typeof PutFirewallConfigRulesOp
|
|
3025
|
+
> = z.nativeEnum(PutFirewallConfigRulesOp);
|
|
2808
3026
|
/** @internal */
|
|
2809
|
-
export const
|
|
2810
|
-
typeof
|
|
2811
|
-
> =
|
|
3027
|
+
export const PutFirewallConfigRulesOp$outboundSchema: z.ZodNativeEnum<
|
|
3028
|
+
typeof PutFirewallConfigRulesOp
|
|
3029
|
+
> = PutFirewallConfigRulesOp$inboundSchema;
|
|
2812
3030
|
|
|
2813
3031
|
/** @internal */
|
|
2814
|
-
export const
|
|
2815
|
-
|
|
3032
|
+
export const PutFirewallConfigRulesValue$inboundSchema: z.ZodType<
|
|
3033
|
+
PutFirewallConfigRulesValue,
|
|
2816
3034
|
z.ZodTypeDef,
|
|
2817
3035
|
unknown
|
|
2818
3036
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
2819
3037
|
/** @internal */
|
|
2820
|
-
export type
|
|
3038
|
+
export type PutFirewallConfigRulesValue$Outbound =
|
|
3039
|
+
| string
|
|
3040
|
+
| number
|
|
3041
|
+
| Array<string>;
|
|
2821
3042
|
|
|
2822
3043
|
/** @internal */
|
|
2823
|
-
export const
|
|
2824
|
-
|
|
3044
|
+
export const PutFirewallConfigRulesValue$outboundSchema: z.ZodType<
|
|
3045
|
+
PutFirewallConfigRulesValue$Outbound,
|
|
2825
3046
|
z.ZodTypeDef,
|
|
2826
|
-
|
|
3047
|
+
PutFirewallConfigRulesValue
|
|
2827
3048
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
2828
3049
|
|
|
2829
|
-
export function
|
|
2830
|
-
|
|
3050
|
+
export function putFirewallConfigRulesValueToJSON(
|
|
3051
|
+
putFirewallConfigRulesValue: PutFirewallConfigRulesValue,
|
|
2831
3052
|
): string {
|
|
2832
3053
|
return JSON.stringify(
|
|
2833
|
-
|
|
3054
|
+
PutFirewallConfigRulesValue$outboundSchema.parse(
|
|
3055
|
+
putFirewallConfigRulesValue,
|
|
3056
|
+
),
|
|
2834
3057
|
);
|
|
2835
3058
|
}
|
|
2836
|
-
export function
|
|
3059
|
+
export function putFirewallConfigRulesValueFromJSON(
|
|
2837
3060
|
jsonString: string,
|
|
2838
|
-
): SafeParseResult<
|
|
3061
|
+
): SafeParseResult<PutFirewallConfigRulesValue, SDKValidationError> {
|
|
2839
3062
|
return safeParse(
|
|
2840
3063
|
jsonString,
|
|
2841
|
-
(x) =>
|
|
2842
|
-
`Failed to parse '
|
|
3064
|
+
(x) => PutFirewallConfigRulesValue$inboundSchema.parse(JSON.parse(x)),
|
|
3065
|
+
`Failed to parse 'PutFirewallConfigRulesValue' from JSON`,
|
|
2843
3066
|
);
|
|
2844
3067
|
}
|
|
2845
3068
|
|
|
2846
3069
|
/** @internal */
|
|
2847
|
-
export const
|
|
2848
|
-
|
|
3070
|
+
export const PutFirewallConfigRulesConditions$inboundSchema: z.ZodType<
|
|
3071
|
+
PutFirewallConfigRulesConditions,
|
|
2849
3072
|
z.ZodTypeDef,
|
|
2850
3073
|
unknown
|
|
2851
3074
|
> = z.object({
|
|
2852
|
-
type:
|
|
2853
|
-
op:
|
|
3075
|
+
type: PutFirewallConfigRulesType$inboundSchema,
|
|
3076
|
+
op: PutFirewallConfigRulesOp$inboundSchema,
|
|
2854
3077
|
neg: z.boolean().optional(),
|
|
2855
3078
|
key: z.string().optional(),
|
|
2856
3079
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
2857
3080
|
});
|
|
2858
3081
|
/** @internal */
|
|
2859
|
-
export type
|
|
3082
|
+
export type PutFirewallConfigRulesConditions$Outbound = {
|
|
2860
3083
|
type: string;
|
|
2861
3084
|
op: string;
|
|
2862
3085
|
neg?: boolean | undefined;
|
|
@@ -2865,131 +3088,131 @@ export type PutFirewallConfigConditions$Outbound = {
|
|
|
2865
3088
|
};
|
|
2866
3089
|
|
|
2867
3090
|
/** @internal */
|
|
2868
|
-
export const
|
|
2869
|
-
|
|
3091
|
+
export const PutFirewallConfigRulesConditions$outboundSchema: z.ZodType<
|
|
3092
|
+
PutFirewallConfigRulesConditions$Outbound,
|
|
2870
3093
|
z.ZodTypeDef,
|
|
2871
|
-
|
|
3094
|
+
PutFirewallConfigRulesConditions
|
|
2872
3095
|
> = z.object({
|
|
2873
|
-
type:
|
|
2874
|
-
op:
|
|
3096
|
+
type: PutFirewallConfigRulesType$outboundSchema,
|
|
3097
|
+
op: PutFirewallConfigRulesOp$outboundSchema,
|
|
2875
3098
|
neg: z.boolean().optional(),
|
|
2876
3099
|
key: z.string().optional(),
|
|
2877
3100
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
2878
3101
|
});
|
|
2879
3102
|
|
|
2880
|
-
export function
|
|
2881
|
-
|
|
3103
|
+
export function putFirewallConfigRulesConditionsToJSON(
|
|
3104
|
+
putFirewallConfigRulesConditions: PutFirewallConfigRulesConditions,
|
|
2882
3105
|
): string {
|
|
2883
3106
|
return JSON.stringify(
|
|
2884
|
-
|
|
2885
|
-
|
|
3107
|
+
PutFirewallConfigRulesConditions$outboundSchema.parse(
|
|
3108
|
+
putFirewallConfigRulesConditions,
|
|
2886
3109
|
),
|
|
2887
3110
|
);
|
|
2888
3111
|
}
|
|
2889
|
-
export function
|
|
3112
|
+
export function putFirewallConfigRulesConditionsFromJSON(
|
|
2890
3113
|
jsonString: string,
|
|
2891
|
-
): SafeParseResult<
|
|
3114
|
+
): SafeParseResult<PutFirewallConfigRulesConditions, SDKValidationError> {
|
|
2892
3115
|
return safeParse(
|
|
2893
3116
|
jsonString,
|
|
2894
|
-
(x) =>
|
|
2895
|
-
`Failed to parse '
|
|
3117
|
+
(x) => PutFirewallConfigRulesConditions$inboundSchema.parse(JSON.parse(x)),
|
|
3118
|
+
`Failed to parse 'PutFirewallConfigRulesConditions' from JSON`,
|
|
2896
3119
|
);
|
|
2897
3120
|
}
|
|
2898
3121
|
|
|
2899
3122
|
/** @internal */
|
|
2900
|
-
export const
|
|
2901
|
-
|
|
3123
|
+
export const PutFirewallConfigRulesConditionGroup$inboundSchema: z.ZodType<
|
|
3124
|
+
PutFirewallConfigRulesConditionGroup,
|
|
2902
3125
|
z.ZodTypeDef,
|
|
2903
3126
|
unknown
|
|
2904
3127
|
> = z.object({
|
|
2905
|
-
conditions: z.array(
|
|
3128
|
+
conditions: z.array(
|
|
3129
|
+
z.lazy(() => PutFirewallConfigRulesConditions$inboundSchema),
|
|
3130
|
+
),
|
|
2906
3131
|
});
|
|
2907
3132
|
/** @internal */
|
|
2908
|
-
export type
|
|
2909
|
-
conditions: Array<
|
|
3133
|
+
export type PutFirewallConfigRulesConditionGroup$Outbound = {
|
|
3134
|
+
conditions: Array<PutFirewallConfigRulesConditions$Outbound>;
|
|
2910
3135
|
};
|
|
2911
3136
|
|
|
2912
3137
|
/** @internal */
|
|
2913
|
-
export const
|
|
2914
|
-
|
|
3138
|
+
export const PutFirewallConfigRulesConditionGroup$outboundSchema: z.ZodType<
|
|
3139
|
+
PutFirewallConfigRulesConditionGroup$Outbound,
|
|
2915
3140
|
z.ZodTypeDef,
|
|
2916
|
-
|
|
3141
|
+
PutFirewallConfigRulesConditionGroup
|
|
2917
3142
|
> = z.object({
|
|
2918
|
-
conditions: z.array(
|
|
3143
|
+
conditions: z.array(
|
|
3144
|
+
z.lazy(() => PutFirewallConfigRulesConditions$outboundSchema),
|
|
3145
|
+
),
|
|
2919
3146
|
});
|
|
2920
3147
|
|
|
2921
|
-
export function
|
|
2922
|
-
|
|
3148
|
+
export function putFirewallConfigRulesConditionGroupToJSON(
|
|
3149
|
+
putFirewallConfigRulesConditionGroup: PutFirewallConfigRulesConditionGroup,
|
|
2923
3150
|
): string {
|
|
2924
3151
|
return JSON.stringify(
|
|
2925
|
-
|
|
2926
|
-
|
|
3152
|
+
PutFirewallConfigRulesConditionGroup$outboundSchema.parse(
|
|
3153
|
+
putFirewallConfigRulesConditionGroup,
|
|
2927
3154
|
),
|
|
2928
3155
|
);
|
|
2929
3156
|
}
|
|
2930
|
-
export function
|
|
3157
|
+
export function putFirewallConfigRulesConditionGroupFromJSON(
|
|
2931
3158
|
jsonString: string,
|
|
2932
|
-
): SafeParseResult<
|
|
3159
|
+
): SafeParseResult<PutFirewallConfigRulesConditionGroup, SDKValidationError> {
|
|
2933
3160
|
return safeParse(
|
|
2934
3161
|
jsonString,
|
|
2935
|
-
(x) =>
|
|
2936
|
-
|
|
3162
|
+
(x) =>
|
|
3163
|
+
PutFirewallConfigRulesConditionGroup$inboundSchema.parse(JSON.parse(x)),
|
|
3164
|
+
`Failed to parse 'PutFirewallConfigRulesConditionGroup' from JSON`,
|
|
2937
3165
|
);
|
|
2938
3166
|
}
|
|
2939
3167
|
|
|
2940
3168
|
/** @internal */
|
|
2941
|
-
export const
|
|
2942
|
-
z.ZodNativeEnum<
|
|
2943
|
-
|
|
2944
|
-
> = z.nativeEnum(
|
|
2945
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction,
|
|
2946
|
-
);
|
|
3169
|
+
export const PutFirewallConfigRulesSecurityResponse200Action$inboundSchema:
|
|
3170
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponse200Action> = z
|
|
3171
|
+
.nativeEnum(PutFirewallConfigRulesSecurityResponse200Action);
|
|
2947
3172
|
/** @internal */
|
|
2948
|
-
export const
|
|
2949
|
-
z.ZodNativeEnum<
|
|
2950
|
-
|
|
2951
|
-
> =
|
|
2952
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema;
|
|
3173
|
+
export const PutFirewallConfigRulesSecurityResponse200Action$outboundSchema:
|
|
3174
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponse200Action> =
|
|
3175
|
+
PutFirewallConfigRulesSecurityResponse200Action$inboundSchema;
|
|
2953
3176
|
|
|
2954
3177
|
/** @internal */
|
|
2955
|
-
export const
|
|
2956
|
-
typeof
|
|
2957
|
-
> = z.nativeEnum(
|
|
3178
|
+
export const PutFirewallConfigRulesAlgo$inboundSchema: z.ZodNativeEnum<
|
|
3179
|
+
typeof PutFirewallConfigRulesAlgo
|
|
3180
|
+
> = z.nativeEnum(PutFirewallConfigRulesAlgo);
|
|
2958
3181
|
/** @internal */
|
|
2959
|
-
export const
|
|
2960
|
-
typeof
|
|
2961
|
-
> =
|
|
3182
|
+
export const PutFirewallConfigRulesAlgo$outboundSchema: z.ZodNativeEnum<
|
|
3183
|
+
typeof PutFirewallConfigRulesAlgo
|
|
3184
|
+
> = PutFirewallConfigRulesAlgo$inboundSchema;
|
|
2962
3185
|
|
|
2963
3186
|
/** @internal */
|
|
2964
|
-
export const
|
|
3187
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema:
|
|
2965
3188
|
z.ZodNativeEnum<
|
|
2966
|
-
typeof
|
|
3189
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
2967
3190
|
> = z.nativeEnum(
|
|
2968
|
-
|
|
3191
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction,
|
|
2969
3192
|
);
|
|
2970
3193
|
/** @internal */
|
|
2971
|
-
export const
|
|
3194
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema:
|
|
2972
3195
|
z.ZodNativeEnum<
|
|
2973
|
-
typeof
|
|
3196
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
2974
3197
|
> =
|
|
2975
|
-
|
|
3198
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
|
|
2976
3199
|
|
|
2977
3200
|
/** @internal */
|
|
2978
|
-
export const
|
|
2979
|
-
|
|
3201
|
+
export const PutFirewallConfigRulesRateLimit$inboundSchema: z.ZodType<
|
|
3202
|
+
PutFirewallConfigRulesRateLimit,
|
|
2980
3203
|
z.ZodTypeDef,
|
|
2981
3204
|
unknown
|
|
2982
3205
|
> = z.object({
|
|
2983
|
-
algo:
|
|
3206
|
+
algo: PutFirewallConfigRulesAlgo$inboundSchema,
|
|
2984
3207
|
window: z.number(),
|
|
2985
3208
|
limit: z.number(),
|
|
2986
3209
|
keys: z.array(z.string()),
|
|
2987
3210
|
action: z.nullable(
|
|
2988
|
-
|
|
3211
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema,
|
|
2989
3212
|
).optional(),
|
|
2990
3213
|
});
|
|
2991
3214
|
/** @internal */
|
|
2992
|
-
export type
|
|
3215
|
+
export type PutFirewallConfigRulesRateLimit$Outbound = {
|
|
2993
3216
|
algo: string;
|
|
2994
3217
|
window: number;
|
|
2995
3218
|
limit: number;
|
|
@@ -2998,40 +3221,42 @@ export type PutFirewallConfigRateLimit$Outbound = {
|
|
|
2998
3221
|
};
|
|
2999
3222
|
|
|
3000
3223
|
/** @internal */
|
|
3001
|
-
export const
|
|
3002
|
-
|
|
3224
|
+
export const PutFirewallConfigRulesRateLimit$outboundSchema: z.ZodType<
|
|
3225
|
+
PutFirewallConfigRulesRateLimit$Outbound,
|
|
3003
3226
|
z.ZodTypeDef,
|
|
3004
|
-
|
|
3227
|
+
PutFirewallConfigRulesRateLimit
|
|
3005
3228
|
> = z.object({
|
|
3006
|
-
algo:
|
|
3229
|
+
algo: PutFirewallConfigRulesAlgo$outboundSchema,
|
|
3007
3230
|
window: z.number(),
|
|
3008
3231
|
limit: z.number(),
|
|
3009
3232
|
keys: z.array(z.string()),
|
|
3010
3233
|
action: z.nullable(
|
|
3011
|
-
|
|
3234
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema,
|
|
3012
3235
|
).optional(),
|
|
3013
3236
|
});
|
|
3014
3237
|
|
|
3015
|
-
export function
|
|
3016
|
-
|
|
3238
|
+
export function putFirewallConfigRulesRateLimitToJSON(
|
|
3239
|
+
putFirewallConfigRulesRateLimit: PutFirewallConfigRulesRateLimit,
|
|
3017
3240
|
): string {
|
|
3018
3241
|
return JSON.stringify(
|
|
3019
|
-
|
|
3242
|
+
PutFirewallConfigRulesRateLimit$outboundSchema.parse(
|
|
3243
|
+
putFirewallConfigRulesRateLimit,
|
|
3244
|
+
),
|
|
3020
3245
|
);
|
|
3021
3246
|
}
|
|
3022
|
-
export function
|
|
3247
|
+
export function putFirewallConfigRulesRateLimitFromJSON(
|
|
3023
3248
|
jsonString: string,
|
|
3024
|
-
): SafeParseResult<
|
|
3249
|
+
): SafeParseResult<PutFirewallConfigRulesRateLimit, SDKValidationError> {
|
|
3025
3250
|
return safeParse(
|
|
3026
3251
|
jsonString,
|
|
3027
|
-
(x) =>
|
|
3028
|
-
`Failed to parse '
|
|
3252
|
+
(x) => PutFirewallConfigRulesRateLimit$inboundSchema.parse(JSON.parse(x)),
|
|
3253
|
+
`Failed to parse 'PutFirewallConfigRulesRateLimit' from JSON`,
|
|
3029
3254
|
);
|
|
3030
3255
|
}
|
|
3031
3256
|
|
|
3032
3257
|
/** @internal */
|
|
3033
|
-
export const
|
|
3034
|
-
|
|
3258
|
+
export const PutFirewallConfigRulesRedirect$inboundSchema: z.ZodType<
|
|
3259
|
+
PutFirewallConfigRulesRedirect,
|
|
3035
3260
|
z.ZodTypeDef,
|
|
3036
3261
|
unknown
|
|
3037
3262
|
> = z.object({
|
|
@@ -3039,146 +3264,147 @@ export const PutFirewallConfigRedirect$inboundSchema: z.ZodType<
|
|
|
3039
3264
|
permanent: z.boolean(),
|
|
3040
3265
|
});
|
|
3041
3266
|
/** @internal */
|
|
3042
|
-
export type
|
|
3267
|
+
export type PutFirewallConfigRulesRedirect$Outbound = {
|
|
3043
3268
|
location: string;
|
|
3044
3269
|
permanent: boolean;
|
|
3045
3270
|
};
|
|
3046
3271
|
|
|
3047
3272
|
/** @internal */
|
|
3048
|
-
export const
|
|
3049
|
-
|
|
3273
|
+
export const PutFirewallConfigRulesRedirect$outboundSchema: z.ZodType<
|
|
3274
|
+
PutFirewallConfigRulesRedirect$Outbound,
|
|
3050
3275
|
z.ZodTypeDef,
|
|
3051
|
-
|
|
3276
|
+
PutFirewallConfigRulesRedirect
|
|
3052
3277
|
> = z.object({
|
|
3053
3278
|
location: z.string(),
|
|
3054
3279
|
permanent: z.boolean(),
|
|
3055
3280
|
});
|
|
3056
3281
|
|
|
3057
|
-
export function
|
|
3058
|
-
|
|
3282
|
+
export function putFirewallConfigRulesRedirectToJSON(
|
|
3283
|
+
putFirewallConfigRulesRedirect: PutFirewallConfigRulesRedirect,
|
|
3059
3284
|
): string {
|
|
3060
3285
|
return JSON.stringify(
|
|
3061
|
-
|
|
3286
|
+
PutFirewallConfigRulesRedirect$outboundSchema.parse(
|
|
3287
|
+
putFirewallConfigRulesRedirect,
|
|
3288
|
+
),
|
|
3062
3289
|
);
|
|
3063
3290
|
}
|
|
3064
|
-
export function
|
|
3291
|
+
export function putFirewallConfigRulesRedirectFromJSON(
|
|
3065
3292
|
jsonString: string,
|
|
3066
|
-
): SafeParseResult<
|
|
3293
|
+
): SafeParseResult<PutFirewallConfigRulesRedirect, SDKValidationError> {
|
|
3067
3294
|
return safeParse(
|
|
3068
3295
|
jsonString,
|
|
3069
|
-
(x) =>
|
|
3070
|
-
`Failed to parse '
|
|
3296
|
+
(x) => PutFirewallConfigRulesRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
3297
|
+
`Failed to parse 'PutFirewallConfigRulesRedirect' from JSON`,
|
|
3071
3298
|
);
|
|
3072
3299
|
}
|
|
3073
3300
|
|
|
3074
3301
|
/** @internal */
|
|
3075
|
-
export const
|
|
3076
|
-
|
|
3302
|
+
export const PutFirewallConfigRulesMitigate$inboundSchema: z.ZodType<
|
|
3303
|
+
PutFirewallConfigRulesMitigate,
|
|
3077
3304
|
z.ZodTypeDef,
|
|
3078
3305
|
unknown
|
|
3079
3306
|
> = z.object({
|
|
3080
|
-
action:
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
redirect: z.nullable(
|
|
3085
|
-
.
|
|
3307
|
+
action: PutFirewallConfigRulesSecurityResponse200Action$inboundSchema,
|
|
3308
|
+
rateLimit: z.nullable(
|
|
3309
|
+
z.lazy(() => PutFirewallConfigRulesRateLimit$inboundSchema),
|
|
3310
|
+
).optional(),
|
|
3311
|
+
redirect: z.nullable(
|
|
3312
|
+
z.lazy(() => PutFirewallConfigRulesRedirect$inboundSchema),
|
|
3313
|
+
).optional(),
|
|
3086
3314
|
actionDuration: z.nullable(z.string()).optional(),
|
|
3087
3315
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3088
3316
|
});
|
|
3089
3317
|
/** @internal */
|
|
3090
|
-
export type
|
|
3318
|
+
export type PutFirewallConfigRulesMitigate$Outbound = {
|
|
3091
3319
|
action: string;
|
|
3092
|
-
rateLimit?:
|
|
3093
|
-
redirect?:
|
|
3320
|
+
rateLimit?: PutFirewallConfigRulesRateLimit$Outbound | null | undefined;
|
|
3321
|
+
redirect?: PutFirewallConfigRulesRedirect$Outbound | null | undefined;
|
|
3094
3322
|
actionDuration?: string | null | undefined;
|
|
3095
3323
|
bypassSystem?: boolean | null | undefined;
|
|
3096
3324
|
};
|
|
3097
3325
|
|
|
3098
3326
|
/** @internal */
|
|
3099
|
-
export const
|
|
3100
|
-
|
|
3327
|
+
export const PutFirewallConfigRulesMitigate$outboundSchema: z.ZodType<
|
|
3328
|
+
PutFirewallConfigRulesMitigate$Outbound,
|
|
3101
3329
|
z.ZodTypeDef,
|
|
3102
|
-
|
|
3330
|
+
PutFirewallConfigRulesMitigate
|
|
3103
3331
|
> = z.object({
|
|
3104
|
-
action:
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
redirect: z.nullable(
|
|
3109
|
-
.
|
|
3332
|
+
action: PutFirewallConfigRulesSecurityResponse200Action$outboundSchema,
|
|
3333
|
+
rateLimit: z.nullable(
|
|
3334
|
+
z.lazy(() => PutFirewallConfigRulesRateLimit$outboundSchema),
|
|
3335
|
+
).optional(),
|
|
3336
|
+
redirect: z.nullable(
|
|
3337
|
+
z.lazy(() => PutFirewallConfigRulesRedirect$outboundSchema),
|
|
3338
|
+
).optional(),
|
|
3110
3339
|
actionDuration: z.nullable(z.string()).optional(),
|
|
3111
3340
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3112
3341
|
});
|
|
3113
3342
|
|
|
3114
|
-
export function
|
|
3115
|
-
|
|
3343
|
+
export function putFirewallConfigRulesMitigateToJSON(
|
|
3344
|
+
putFirewallConfigRulesMitigate: PutFirewallConfigRulesMitigate,
|
|
3116
3345
|
): string {
|
|
3117
3346
|
return JSON.stringify(
|
|
3118
|
-
|
|
3347
|
+
PutFirewallConfigRulesMitigate$outboundSchema.parse(
|
|
3348
|
+
putFirewallConfigRulesMitigate,
|
|
3349
|
+
),
|
|
3119
3350
|
);
|
|
3120
3351
|
}
|
|
3121
|
-
export function
|
|
3352
|
+
export function putFirewallConfigRulesMitigateFromJSON(
|
|
3122
3353
|
jsonString: string,
|
|
3123
|
-
): SafeParseResult<
|
|
3354
|
+
): SafeParseResult<PutFirewallConfigRulesMitigate, SDKValidationError> {
|
|
3124
3355
|
return safeParse(
|
|
3125
3356
|
jsonString,
|
|
3126
|
-
(x) =>
|
|
3127
|
-
`Failed to parse '
|
|
3357
|
+
(x) => PutFirewallConfigRulesMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
3358
|
+
`Failed to parse 'PutFirewallConfigRulesMitigate' from JSON`,
|
|
3128
3359
|
);
|
|
3129
3360
|
}
|
|
3130
3361
|
|
|
3131
3362
|
/** @internal */
|
|
3132
|
-
export const
|
|
3133
|
-
|
|
3363
|
+
export const PutFirewallConfigRulesAction$inboundSchema: z.ZodType<
|
|
3364
|
+
PutFirewallConfigRulesAction,
|
|
3134
3365
|
z.ZodTypeDef,
|
|
3135
3366
|
unknown
|
|
3136
3367
|
> = z.object({
|
|
3137
|
-
mitigate: z.lazy(() =>
|
|
3368
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesMitigate$inboundSchema)
|
|
3369
|
+
.optional(),
|
|
3138
3370
|
});
|
|
3139
3371
|
/** @internal */
|
|
3140
|
-
export type
|
|
3141
|
-
mitigate?:
|
|
3372
|
+
export type PutFirewallConfigRulesAction$Outbound = {
|
|
3373
|
+
mitigate?: PutFirewallConfigRulesMitigate$Outbound | undefined;
|
|
3142
3374
|
};
|
|
3143
3375
|
|
|
3144
3376
|
/** @internal */
|
|
3145
|
-
export const
|
|
3146
|
-
|
|
3377
|
+
export const PutFirewallConfigRulesAction$outboundSchema: z.ZodType<
|
|
3378
|
+
PutFirewallConfigRulesAction$Outbound,
|
|
3147
3379
|
z.ZodTypeDef,
|
|
3148
|
-
|
|
3380
|
+
PutFirewallConfigRulesAction
|
|
3149
3381
|
> = z.object({
|
|
3150
|
-
mitigate: z.lazy(() =>
|
|
3382
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesMitigate$outboundSchema)
|
|
3383
|
+
.optional(),
|
|
3151
3384
|
});
|
|
3152
3385
|
|
|
3153
|
-
export function
|
|
3154
|
-
|
|
3155
|
-
PutFirewallConfigSecurityResponseAction,
|
|
3386
|
+
export function putFirewallConfigRulesActionToJSON(
|
|
3387
|
+
putFirewallConfigRulesAction: PutFirewallConfigRulesAction,
|
|
3156
3388
|
): string {
|
|
3157
3389
|
return JSON.stringify(
|
|
3158
|
-
|
|
3159
|
-
|
|
3390
|
+
PutFirewallConfigRulesAction$outboundSchema.parse(
|
|
3391
|
+
putFirewallConfigRulesAction,
|
|
3160
3392
|
),
|
|
3161
3393
|
);
|
|
3162
3394
|
}
|
|
3163
|
-
export function
|
|
3395
|
+
export function putFirewallConfigRulesActionFromJSON(
|
|
3164
3396
|
jsonString: string,
|
|
3165
|
-
): SafeParseResult<
|
|
3166
|
-
PutFirewallConfigSecurityResponseAction,
|
|
3167
|
-
SDKValidationError
|
|
3168
|
-
> {
|
|
3397
|
+
): SafeParseResult<PutFirewallConfigRulesAction, SDKValidationError> {
|
|
3169
3398
|
return safeParse(
|
|
3170
3399
|
jsonString,
|
|
3171
|
-
(x) =>
|
|
3172
|
-
|
|
3173
|
-
JSON.parse(x),
|
|
3174
|
-
),
|
|
3175
|
-
`Failed to parse 'PutFirewallConfigSecurityResponseAction' from JSON`,
|
|
3400
|
+
(x) => PutFirewallConfigRulesAction$inboundSchema.parse(JSON.parse(x)),
|
|
3401
|
+
`Failed to parse 'PutFirewallConfigRulesAction' from JSON`,
|
|
3176
3402
|
);
|
|
3177
3403
|
}
|
|
3178
3404
|
|
|
3179
3405
|
/** @internal */
|
|
3180
|
-
export const
|
|
3181
|
-
|
|
3406
|
+
export const PutFirewallConfigRules2$inboundSchema: z.ZodType<
|
|
3407
|
+
PutFirewallConfigRules2,
|
|
3182
3408
|
z.ZodTypeDef,
|
|
3183
3409
|
unknown
|
|
3184
3410
|
> = z.object({
|
|
@@ -3187,41 +3413,575 @@ export const PutFirewallConfigSecurityRules$inboundSchema: z.ZodType<
|
|
|
3187
3413
|
description: z.string().optional(),
|
|
3188
3414
|
active: z.boolean(),
|
|
3189
3415
|
conditionGroup: z.array(
|
|
3190
|
-
z.lazy(() =>
|
|
3416
|
+
z.lazy(() => PutFirewallConfigRulesConditionGroup$inboundSchema),
|
|
3191
3417
|
),
|
|
3192
|
-
action: z.lazy(() =>
|
|
3418
|
+
action: z.lazy(() => PutFirewallConfigRulesAction$inboundSchema),
|
|
3419
|
+
valid: z.boolean(),
|
|
3420
|
+
validationErrors: z.array(z.string()),
|
|
3193
3421
|
});
|
|
3194
3422
|
/** @internal */
|
|
3195
|
-
export type
|
|
3423
|
+
export type PutFirewallConfigRules2$Outbound = {
|
|
3196
3424
|
id: string;
|
|
3197
3425
|
name: string;
|
|
3198
3426
|
description?: string | undefined;
|
|
3199
3427
|
active: boolean;
|
|
3200
|
-
conditionGroup: Array<
|
|
3201
|
-
action:
|
|
3428
|
+
conditionGroup: Array<PutFirewallConfigRulesConditionGroup$Outbound>;
|
|
3429
|
+
action: PutFirewallConfigRulesAction$Outbound;
|
|
3430
|
+
valid: boolean;
|
|
3431
|
+
validationErrors: Array<string>;
|
|
3202
3432
|
};
|
|
3203
3433
|
|
|
3204
3434
|
/** @internal */
|
|
3205
|
-
export const
|
|
3206
|
-
|
|
3435
|
+
export const PutFirewallConfigRules2$outboundSchema: z.ZodType<
|
|
3436
|
+
PutFirewallConfigRules2$Outbound,
|
|
3207
3437
|
z.ZodTypeDef,
|
|
3208
|
-
|
|
3438
|
+
PutFirewallConfigRules2
|
|
3209
3439
|
> = z.object({
|
|
3210
3440
|
id: z.string(),
|
|
3211
3441
|
name: z.string(),
|
|
3212
3442
|
description: z.string().optional(),
|
|
3213
3443
|
active: z.boolean(),
|
|
3214
3444
|
conditionGroup: z.array(
|
|
3215
|
-
z.lazy(() =>
|
|
3445
|
+
z.lazy(() => PutFirewallConfigRulesConditionGroup$outboundSchema),
|
|
3216
3446
|
),
|
|
3217
|
-
action: z.lazy(() =>
|
|
3447
|
+
action: z.lazy(() => PutFirewallConfigRulesAction$outboundSchema),
|
|
3448
|
+
valid: z.boolean(),
|
|
3449
|
+
validationErrors: z.array(z.string()),
|
|
3218
3450
|
});
|
|
3219
3451
|
|
|
3220
|
-
export function
|
|
3221
|
-
|
|
3452
|
+
export function putFirewallConfigRules2ToJSON(
|
|
3453
|
+
putFirewallConfigRules2: PutFirewallConfigRules2,
|
|
3222
3454
|
): string {
|
|
3223
3455
|
return JSON.stringify(
|
|
3224
|
-
|
|
3456
|
+
PutFirewallConfigRules2$outboundSchema.parse(putFirewallConfigRules2),
|
|
3457
|
+
);
|
|
3458
|
+
}
|
|
3459
|
+
export function putFirewallConfigRules2FromJSON(
|
|
3460
|
+
jsonString: string,
|
|
3461
|
+
): SafeParseResult<PutFirewallConfigRules2, SDKValidationError> {
|
|
3462
|
+
return safeParse(
|
|
3463
|
+
jsonString,
|
|
3464
|
+
(x) => PutFirewallConfigRules2$inboundSchema.parse(JSON.parse(x)),
|
|
3465
|
+
`Failed to parse 'PutFirewallConfigRules2' from JSON`,
|
|
3466
|
+
);
|
|
3467
|
+
}
|
|
3468
|
+
|
|
3469
|
+
/** @internal */
|
|
3470
|
+
export const PutFirewallConfigRulesSecurityType$inboundSchema: z.ZodNativeEnum<
|
|
3471
|
+
typeof PutFirewallConfigRulesSecurityType
|
|
3472
|
+
> = z.nativeEnum(PutFirewallConfigRulesSecurityType);
|
|
3473
|
+
/** @internal */
|
|
3474
|
+
export const PutFirewallConfigRulesSecurityType$outboundSchema: z.ZodNativeEnum<
|
|
3475
|
+
typeof PutFirewallConfigRulesSecurityType
|
|
3476
|
+
> = PutFirewallConfigRulesSecurityType$inboundSchema;
|
|
3477
|
+
|
|
3478
|
+
/** @internal */
|
|
3479
|
+
export const PutFirewallConfigRulesSecurityOp$inboundSchema: z.ZodNativeEnum<
|
|
3480
|
+
typeof PutFirewallConfigRulesSecurityOp
|
|
3481
|
+
> = z.nativeEnum(PutFirewallConfigRulesSecurityOp);
|
|
3482
|
+
/** @internal */
|
|
3483
|
+
export const PutFirewallConfigRulesSecurityOp$outboundSchema: z.ZodNativeEnum<
|
|
3484
|
+
typeof PutFirewallConfigRulesSecurityOp
|
|
3485
|
+
> = PutFirewallConfigRulesSecurityOp$inboundSchema;
|
|
3486
|
+
|
|
3487
|
+
/** @internal */
|
|
3488
|
+
export const PutFirewallConfigRulesSecurityValue$inboundSchema: z.ZodType<
|
|
3489
|
+
PutFirewallConfigRulesSecurityValue,
|
|
3490
|
+
z.ZodTypeDef,
|
|
3491
|
+
unknown
|
|
3492
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
3493
|
+
/** @internal */
|
|
3494
|
+
export type PutFirewallConfigRulesSecurityValue$Outbound =
|
|
3495
|
+
| string
|
|
3496
|
+
| number
|
|
3497
|
+
| Array<string>;
|
|
3498
|
+
|
|
3499
|
+
/** @internal */
|
|
3500
|
+
export const PutFirewallConfigRulesSecurityValue$outboundSchema: z.ZodType<
|
|
3501
|
+
PutFirewallConfigRulesSecurityValue$Outbound,
|
|
3502
|
+
z.ZodTypeDef,
|
|
3503
|
+
PutFirewallConfigRulesSecurityValue
|
|
3504
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
3505
|
+
|
|
3506
|
+
export function putFirewallConfigRulesSecurityValueToJSON(
|
|
3507
|
+
putFirewallConfigRulesSecurityValue: PutFirewallConfigRulesSecurityValue,
|
|
3508
|
+
): string {
|
|
3509
|
+
return JSON.stringify(
|
|
3510
|
+
PutFirewallConfigRulesSecurityValue$outboundSchema.parse(
|
|
3511
|
+
putFirewallConfigRulesSecurityValue,
|
|
3512
|
+
),
|
|
3513
|
+
);
|
|
3514
|
+
}
|
|
3515
|
+
export function putFirewallConfigRulesSecurityValueFromJSON(
|
|
3516
|
+
jsonString: string,
|
|
3517
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityValue, SDKValidationError> {
|
|
3518
|
+
return safeParse(
|
|
3519
|
+
jsonString,
|
|
3520
|
+
(x) =>
|
|
3521
|
+
PutFirewallConfigRulesSecurityValue$inboundSchema.parse(JSON.parse(x)),
|
|
3522
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityValue' from JSON`,
|
|
3523
|
+
);
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3526
|
+
/** @internal */
|
|
3527
|
+
export const PutFirewallConfigRulesSecurityConditions$inboundSchema: z.ZodType<
|
|
3528
|
+
PutFirewallConfigRulesSecurityConditions,
|
|
3529
|
+
z.ZodTypeDef,
|
|
3530
|
+
unknown
|
|
3531
|
+
> = z.object({
|
|
3532
|
+
type: PutFirewallConfigRulesSecurityType$inboundSchema,
|
|
3533
|
+
op: PutFirewallConfigRulesSecurityOp$inboundSchema,
|
|
3534
|
+
neg: z.boolean().optional(),
|
|
3535
|
+
key: z.string().optional(),
|
|
3536
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
3537
|
+
});
|
|
3538
|
+
/** @internal */
|
|
3539
|
+
export type PutFirewallConfigRulesSecurityConditions$Outbound = {
|
|
3540
|
+
type: string;
|
|
3541
|
+
op: string;
|
|
3542
|
+
neg?: boolean | undefined;
|
|
3543
|
+
key?: string | undefined;
|
|
3544
|
+
value?: string | number | Array<string> | undefined;
|
|
3545
|
+
};
|
|
3546
|
+
|
|
3547
|
+
/** @internal */
|
|
3548
|
+
export const PutFirewallConfigRulesSecurityConditions$outboundSchema: z.ZodType<
|
|
3549
|
+
PutFirewallConfigRulesSecurityConditions$Outbound,
|
|
3550
|
+
z.ZodTypeDef,
|
|
3551
|
+
PutFirewallConfigRulesSecurityConditions
|
|
3552
|
+
> = z.object({
|
|
3553
|
+
type: PutFirewallConfigRulesSecurityType$outboundSchema,
|
|
3554
|
+
op: PutFirewallConfigRulesSecurityOp$outboundSchema,
|
|
3555
|
+
neg: z.boolean().optional(),
|
|
3556
|
+
key: z.string().optional(),
|
|
3557
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
3558
|
+
});
|
|
3559
|
+
|
|
3560
|
+
export function putFirewallConfigRulesSecurityConditionsToJSON(
|
|
3561
|
+
putFirewallConfigRulesSecurityConditions:
|
|
3562
|
+
PutFirewallConfigRulesSecurityConditions,
|
|
3563
|
+
): string {
|
|
3564
|
+
return JSON.stringify(
|
|
3565
|
+
PutFirewallConfigRulesSecurityConditions$outboundSchema.parse(
|
|
3566
|
+
putFirewallConfigRulesSecurityConditions,
|
|
3567
|
+
),
|
|
3568
|
+
);
|
|
3569
|
+
}
|
|
3570
|
+
export function putFirewallConfigRulesSecurityConditionsFromJSON(
|
|
3571
|
+
jsonString: string,
|
|
3572
|
+
): SafeParseResult<
|
|
3573
|
+
PutFirewallConfigRulesSecurityConditions,
|
|
3574
|
+
SDKValidationError
|
|
3575
|
+
> {
|
|
3576
|
+
return safeParse(
|
|
3577
|
+
jsonString,
|
|
3578
|
+
(x) =>
|
|
3579
|
+
PutFirewallConfigRulesSecurityConditions$inboundSchema.parse(
|
|
3580
|
+
JSON.parse(x),
|
|
3581
|
+
),
|
|
3582
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityConditions' from JSON`,
|
|
3583
|
+
);
|
|
3584
|
+
}
|
|
3585
|
+
|
|
3586
|
+
/** @internal */
|
|
3587
|
+
export const PutFirewallConfigRulesSecurityConditionGroup$inboundSchema:
|
|
3588
|
+
z.ZodType<
|
|
3589
|
+
PutFirewallConfigRulesSecurityConditionGroup,
|
|
3590
|
+
z.ZodTypeDef,
|
|
3591
|
+
unknown
|
|
3592
|
+
> = z.object({
|
|
3593
|
+
conditions: z.array(
|
|
3594
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditions$inboundSchema),
|
|
3595
|
+
),
|
|
3596
|
+
});
|
|
3597
|
+
/** @internal */
|
|
3598
|
+
export type PutFirewallConfigRulesSecurityConditionGroup$Outbound = {
|
|
3599
|
+
conditions: Array<PutFirewallConfigRulesSecurityConditions$Outbound>;
|
|
3600
|
+
};
|
|
3601
|
+
|
|
3602
|
+
/** @internal */
|
|
3603
|
+
export const PutFirewallConfigRulesSecurityConditionGroup$outboundSchema:
|
|
3604
|
+
z.ZodType<
|
|
3605
|
+
PutFirewallConfigRulesSecurityConditionGroup$Outbound,
|
|
3606
|
+
z.ZodTypeDef,
|
|
3607
|
+
PutFirewallConfigRulesSecurityConditionGroup
|
|
3608
|
+
> = z.object({
|
|
3609
|
+
conditions: z.array(
|
|
3610
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditions$outboundSchema),
|
|
3611
|
+
),
|
|
3612
|
+
});
|
|
3613
|
+
|
|
3614
|
+
export function putFirewallConfigRulesSecurityConditionGroupToJSON(
|
|
3615
|
+
putFirewallConfigRulesSecurityConditionGroup:
|
|
3616
|
+
PutFirewallConfigRulesSecurityConditionGroup,
|
|
3617
|
+
): string {
|
|
3618
|
+
return JSON.stringify(
|
|
3619
|
+
PutFirewallConfigRulesSecurityConditionGroup$outboundSchema.parse(
|
|
3620
|
+
putFirewallConfigRulesSecurityConditionGroup,
|
|
3621
|
+
),
|
|
3622
|
+
);
|
|
3623
|
+
}
|
|
3624
|
+
export function putFirewallConfigRulesSecurityConditionGroupFromJSON(
|
|
3625
|
+
jsonString: string,
|
|
3626
|
+
): SafeParseResult<
|
|
3627
|
+
PutFirewallConfigRulesSecurityConditionGroup,
|
|
3628
|
+
SDKValidationError
|
|
3629
|
+
> {
|
|
3630
|
+
return safeParse(
|
|
3631
|
+
jsonString,
|
|
3632
|
+
(x) =>
|
|
3633
|
+
PutFirewallConfigRulesSecurityConditionGroup$inboundSchema.parse(
|
|
3634
|
+
JSON.parse(x),
|
|
3635
|
+
),
|
|
3636
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityConditionGroup' from JSON`,
|
|
3637
|
+
);
|
|
3638
|
+
}
|
|
3639
|
+
|
|
3640
|
+
/** @internal */
|
|
3641
|
+
export const PutFirewallConfigRulesSecurityResponseAction$inboundSchema:
|
|
3642
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponseAction> = z
|
|
3643
|
+
.nativeEnum(PutFirewallConfigRulesSecurityResponseAction);
|
|
3644
|
+
/** @internal */
|
|
3645
|
+
export const PutFirewallConfigRulesSecurityResponseAction$outboundSchema:
|
|
3646
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponseAction> =
|
|
3647
|
+
PutFirewallConfigRulesSecurityResponseAction$inboundSchema;
|
|
3648
|
+
|
|
3649
|
+
/** @internal */
|
|
3650
|
+
export const PutFirewallConfigRulesSecurityAlgo$inboundSchema: z.ZodNativeEnum<
|
|
3651
|
+
typeof PutFirewallConfigRulesSecurityAlgo
|
|
3652
|
+
> = z.nativeEnum(PutFirewallConfigRulesSecurityAlgo);
|
|
3653
|
+
/** @internal */
|
|
3654
|
+
export const PutFirewallConfigRulesSecurityAlgo$outboundSchema: z.ZodNativeEnum<
|
|
3655
|
+
typeof PutFirewallConfigRulesSecurityAlgo
|
|
3656
|
+
> = PutFirewallConfigRulesSecurityAlgo$inboundSchema;
|
|
3657
|
+
|
|
3658
|
+
/** @internal */
|
|
3659
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema:
|
|
3660
|
+
z.ZodNativeEnum<
|
|
3661
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
3662
|
+
> = z.nativeEnum(
|
|
3663
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction,
|
|
3664
|
+
);
|
|
3665
|
+
/** @internal */
|
|
3666
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema:
|
|
3667
|
+
z.ZodNativeEnum<
|
|
3668
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
3669
|
+
> =
|
|
3670
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
3671
|
+
|
|
3672
|
+
/** @internal */
|
|
3673
|
+
export const PutFirewallConfigRulesSecurityRateLimit$inboundSchema: z.ZodType<
|
|
3674
|
+
PutFirewallConfigRulesSecurityRateLimit,
|
|
3675
|
+
z.ZodTypeDef,
|
|
3676
|
+
unknown
|
|
3677
|
+
> = z.object({
|
|
3678
|
+
algo: PutFirewallConfigRulesSecurityAlgo$inboundSchema,
|
|
3679
|
+
window: z.number(),
|
|
3680
|
+
limit: z.number(),
|
|
3681
|
+
keys: z.array(z.string()),
|
|
3682
|
+
action: z.nullable(
|
|
3683
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema,
|
|
3684
|
+
).optional(),
|
|
3685
|
+
});
|
|
3686
|
+
/** @internal */
|
|
3687
|
+
export type PutFirewallConfigRulesSecurityRateLimit$Outbound = {
|
|
3688
|
+
algo: string;
|
|
3689
|
+
window: number;
|
|
3690
|
+
limit: number;
|
|
3691
|
+
keys: Array<string>;
|
|
3692
|
+
action?: string | null | undefined;
|
|
3693
|
+
};
|
|
3694
|
+
|
|
3695
|
+
/** @internal */
|
|
3696
|
+
export const PutFirewallConfigRulesSecurityRateLimit$outboundSchema: z.ZodType<
|
|
3697
|
+
PutFirewallConfigRulesSecurityRateLimit$Outbound,
|
|
3698
|
+
z.ZodTypeDef,
|
|
3699
|
+
PutFirewallConfigRulesSecurityRateLimit
|
|
3700
|
+
> = z.object({
|
|
3701
|
+
algo: PutFirewallConfigRulesSecurityAlgo$outboundSchema,
|
|
3702
|
+
window: z.number(),
|
|
3703
|
+
limit: z.number(),
|
|
3704
|
+
keys: z.array(z.string()),
|
|
3705
|
+
action: z.nullable(
|
|
3706
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema,
|
|
3707
|
+
).optional(),
|
|
3708
|
+
});
|
|
3709
|
+
|
|
3710
|
+
export function putFirewallConfigRulesSecurityRateLimitToJSON(
|
|
3711
|
+
putFirewallConfigRulesSecurityRateLimit:
|
|
3712
|
+
PutFirewallConfigRulesSecurityRateLimit,
|
|
3713
|
+
): string {
|
|
3714
|
+
return JSON.stringify(
|
|
3715
|
+
PutFirewallConfigRulesSecurityRateLimit$outboundSchema.parse(
|
|
3716
|
+
putFirewallConfigRulesSecurityRateLimit,
|
|
3717
|
+
),
|
|
3718
|
+
);
|
|
3719
|
+
}
|
|
3720
|
+
export function putFirewallConfigRulesSecurityRateLimitFromJSON(
|
|
3721
|
+
jsonString: string,
|
|
3722
|
+
): SafeParseResult<
|
|
3723
|
+
PutFirewallConfigRulesSecurityRateLimit,
|
|
3724
|
+
SDKValidationError
|
|
3725
|
+
> {
|
|
3726
|
+
return safeParse(
|
|
3727
|
+
jsonString,
|
|
3728
|
+
(x) =>
|
|
3729
|
+
PutFirewallConfigRulesSecurityRateLimit$inboundSchema.parse(
|
|
3730
|
+
JSON.parse(x),
|
|
3731
|
+
),
|
|
3732
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityRateLimit' from JSON`,
|
|
3733
|
+
);
|
|
3734
|
+
}
|
|
3735
|
+
|
|
3736
|
+
/** @internal */
|
|
3737
|
+
export const PutFirewallConfigRulesSecurityRedirect$inboundSchema: z.ZodType<
|
|
3738
|
+
PutFirewallConfigRulesSecurityRedirect,
|
|
3739
|
+
z.ZodTypeDef,
|
|
3740
|
+
unknown
|
|
3741
|
+
> = z.object({
|
|
3742
|
+
location: z.string(),
|
|
3743
|
+
permanent: z.boolean(),
|
|
3744
|
+
});
|
|
3745
|
+
/** @internal */
|
|
3746
|
+
export type PutFirewallConfigRulesSecurityRedirect$Outbound = {
|
|
3747
|
+
location: string;
|
|
3748
|
+
permanent: boolean;
|
|
3749
|
+
};
|
|
3750
|
+
|
|
3751
|
+
/** @internal */
|
|
3752
|
+
export const PutFirewallConfigRulesSecurityRedirect$outboundSchema: z.ZodType<
|
|
3753
|
+
PutFirewallConfigRulesSecurityRedirect$Outbound,
|
|
3754
|
+
z.ZodTypeDef,
|
|
3755
|
+
PutFirewallConfigRulesSecurityRedirect
|
|
3756
|
+
> = z.object({
|
|
3757
|
+
location: z.string(),
|
|
3758
|
+
permanent: z.boolean(),
|
|
3759
|
+
});
|
|
3760
|
+
|
|
3761
|
+
export function putFirewallConfigRulesSecurityRedirectToJSON(
|
|
3762
|
+
putFirewallConfigRulesSecurityRedirect:
|
|
3763
|
+
PutFirewallConfigRulesSecurityRedirect,
|
|
3764
|
+
): string {
|
|
3765
|
+
return JSON.stringify(
|
|
3766
|
+
PutFirewallConfigRulesSecurityRedirect$outboundSchema.parse(
|
|
3767
|
+
putFirewallConfigRulesSecurityRedirect,
|
|
3768
|
+
),
|
|
3769
|
+
);
|
|
3770
|
+
}
|
|
3771
|
+
export function putFirewallConfigRulesSecurityRedirectFromJSON(
|
|
3772
|
+
jsonString: string,
|
|
3773
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityRedirect, SDKValidationError> {
|
|
3774
|
+
return safeParse(
|
|
3775
|
+
jsonString,
|
|
3776
|
+
(x) =>
|
|
3777
|
+
PutFirewallConfigRulesSecurityRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
3778
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityRedirect' from JSON`,
|
|
3779
|
+
);
|
|
3780
|
+
}
|
|
3781
|
+
|
|
3782
|
+
/** @internal */
|
|
3783
|
+
export const PutFirewallConfigRulesSecurityMitigate$inboundSchema: z.ZodType<
|
|
3784
|
+
PutFirewallConfigRulesSecurityMitigate,
|
|
3785
|
+
z.ZodTypeDef,
|
|
3786
|
+
unknown
|
|
3787
|
+
> = z.object({
|
|
3788
|
+
action: PutFirewallConfigRulesSecurityResponseAction$inboundSchema,
|
|
3789
|
+
rateLimit: z.nullable(
|
|
3790
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRateLimit$inboundSchema),
|
|
3791
|
+
).optional(),
|
|
3792
|
+
redirect: z.nullable(
|
|
3793
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRedirect$inboundSchema),
|
|
3794
|
+
).optional(),
|
|
3795
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
3796
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3797
|
+
});
|
|
3798
|
+
/** @internal */
|
|
3799
|
+
export type PutFirewallConfigRulesSecurityMitigate$Outbound = {
|
|
3800
|
+
action: string;
|
|
3801
|
+
rateLimit?:
|
|
3802
|
+
| PutFirewallConfigRulesSecurityRateLimit$Outbound
|
|
3803
|
+
| null
|
|
3804
|
+
| undefined;
|
|
3805
|
+
redirect?: PutFirewallConfigRulesSecurityRedirect$Outbound | null | undefined;
|
|
3806
|
+
actionDuration?: string | null | undefined;
|
|
3807
|
+
bypassSystem?: boolean | null | undefined;
|
|
3808
|
+
};
|
|
3809
|
+
|
|
3810
|
+
/** @internal */
|
|
3811
|
+
export const PutFirewallConfigRulesSecurityMitigate$outboundSchema: z.ZodType<
|
|
3812
|
+
PutFirewallConfigRulesSecurityMitigate$Outbound,
|
|
3813
|
+
z.ZodTypeDef,
|
|
3814
|
+
PutFirewallConfigRulesSecurityMitigate
|
|
3815
|
+
> = z.object({
|
|
3816
|
+
action: PutFirewallConfigRulesSecurityResponseAction$outboundSchema,
|
|
3817
|
+
rateLimit: z.nullable(
|
|
3818
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRateLimit$outboundSchema),
|
|
3819
|
+
).optional(),
|
|
3820
|
+
redirect: z.nullable(
|
|
3821
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRedirect$outboundSchema),
|
|
3822
|
+
).optional(),
|
|
3823
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
3824
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3825
|
+
});
|
|
3826
|
+
|
|
3827
|
+
export function putFirewallConfigRulesSecurityMitigateToJSON(
|
|
3828
|
+
putFirewallConfigRulesSecurityMitigate:
|
|
3829
|
+
PutFirewallConfigRulesSecurityMitigate,
|
|
3830
|
+
): string {
|
|
3831
|
+
return JSON.stringify(
|
|
3832
|
+
PutFirewallConfigRulesSecurityMitigate$outboundSchema.parse(
|
|
3833
|
+
putFirewallConfigRulesSecurityMitigate,
|
|
3834
|
+
),
|
|
3835
|
+
);
|
|
3836
|
+
}
|
|
3837
|
+
export function putFirewallConfigRulesSecurityMitigateFromJSON(
|
|
3838
|
+
jsonString: string,
|
|
3839
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityMitigate, SDKValidationError> {
|
|
3840
|
+
return safeParse(
|
|
3841
|
+
jsonString,
|
|
3842
|
+
(x) =>
|
|
3843
|
+
PutFirewallConfigRulesSecurityMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
3844
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityMitigate' from JSON`,
|
|
3845
|
+
);
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
/** @internal */
|
|
3849
|
+
export const PutFirewallConfigRulesSecurityAction$inboundSchema: z.ZodType<
|
|
3850
|
+
PutFirewallConfigRulesSecurityAction,
|
|
3851
|
+
z.ZodTypeDef,
|
|
3852
|
+
unknown
|
|
3853
|
+
> = z.object({
|
|
3854
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesSecurityMitigate$inboundSchema)
|
|
3855
|
+
.optional(),
|
|
3856
|
+
});
|
|
3857
|
+
/** @internal */
|
|
3858
|
+
export type PutFirewallConfigRulesSecurityAction$Outbound = {
|
|
3859
|
+
mitigate?: PutFirewallConfigRulesSecurityMitigate$Outbound | undefined;
|
|
3860
|
+
};
|
|
3861
|
+
|
|
3862
|
+
/** @internal */
|
|
3863
|
+
export const PutFirewallConfigRulesSecurityAction$outboundSchema: z.ZodType<
|
|
3864
|
+
PutFirewallConfigRulesSecurityAction$Outbound,
|
|
3865
|
+
z.ZodTypeDef,
|
|
3866
|
+
PutFirewallConfigRulesSecurityAction
|
|
3867
|
+
> = z.object({
|
|
3868
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesSecurityMitigate$outboundSchema)
|
|
3869
|
+
.optional(),
|
|
3870
|
+
});
|
|
3871
|
+
|
|
3872
|
+
export function putFirewallConfigRulesSecurityActionToJSON(
|
|
3873
|
+
putFirewallConfigRulesSecurityAction: PutFirewallConfigRulesSecurityAction,
|
|
3874
|
+
): string {
|
|
3875
|
+
return JSON.stringify(
|
|
3876
|
+
PutFirewallConfigRulesSecurityAction$outboundSchema.parse(
|
|
3877
|
+
putFirewallConfigRulesSecurityAction,
|
|
3878
|
+
),
|
|
3879
|
+
);
|
|
3880
|
+
}
|
|
3881
|
+
export function putFirewallConfigRulesSecurityActionFromJSON(
|
|
3882
|
+
jsonString: string,
|
|
3883
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityAction, SDKValidationError> {
|
|
3884
|
+
return safeParse(
|
|
3885
|
+
jsonString,
|
|
3886
|
+
(x) =>
|
|
3887
|
+
PutFirewallConfigRulesSecurityAction$inboundSchema.parse(JSON.parse(x)),
|
|
3888
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityAction' from JSON`,
|
|
3889
|
+
);
|
|
3890
|
+
}
|
|
3891
|
+
|
|
3892
|
+
/** @internal */
|
|
3893
|
+
export const PutFirewallConfigRules1$inboundSchema: z.ZodType<
|
|
3894
|
+
PutFirewallConfigRules1,
|
|
3895
|
+
z.ZodTypeDef,
|
|
3896
|
+
unknown
|
|
3897
|
+
> = z.object({
|
|
3898
|
+
id: z.string(),
|
|
3899
|
+
name: z.string(),
|
|
3900
|
+
description: z.string().optional(),
|
|
3901
|
+
active: z.boolean(),
|
|
3902
|
+
conditionGroup: z.array(
|
|
3903
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditionGroup$inboundSchema),
|
|
3904
|
+
),
|
|
3905
|
+
action: z.lazy(() => PutFirewallConfigRulesSecurityAction$inboundSchema),
|
|
3906
|
+
valid: z.boolean(),
|
|
3907
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
3908
|
+
});
|
|
3909
|
+
/** @internal */
|
|
3910
|
+
export type PutFirewallConfigRules1$Outbound = {
|
|
3911
|
+
id: string;
|
|
3912
|
+
name: string;
|
|
3913
|
+
description?: string | undefined;
|
|
3914
|
+
active: boolean;
|
|
3915
|
+
conditionGroup: Array<PutFirewallConfigRulesSecurityConditionGroup$Outbound>;
|
|
3916
|
+
action: PutFirewallConfigRulesSecurityAction$Outbound;
|
|
3917
|
+
valid: boolean;
|
|
3918
|
+
validationErrors?: any | null | undefined;
|
|
3919
|
+
};
|
|
3920
|
+
|
|
3921
|
+
/** @internal */
|
|
3922
|
+
export const PutFirewallConfigRules1$outboundSchema: z.ZodType<
|
|
3923
|
+
PutFirewallConfigRules1$Outbound,
|
|
3924
|
+
z.ZodTypeDef,
|
|
3925
|
+
PutFirewallConfigRules1
|
|
3926
|
+
> = z.object({
|
|
3927
|
+
id: z.string(),
|
|
3928
|
+
name: z.string(),
|
|
3929
|
+
description: z.string().optional(),
|
|
3930
|
+
active: z.boolean(),
|
|
3931
|
+
conditionGroup: z.array(
|
|
3932
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditionGroup$outboundSchema),
|
|
3933
|
+
),
|
|
3934
|
+
action: z.lazy(() => PutFirewallConfigRulesSecurityAction$outboundSchema),
|
|
3935
|
+
valid: z.boolean(),
|
|
3936
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
3937
|
+
});
|
|
3938
|
+
|
|
3939
|
+
export function putFirewallConfigRules1ToJSON(
|
|
3940
|
+
putFirewallConfigRules1: PutFirewallConfigRules1,
|
|
3941
|
+
): string {
|
|
3942
|
+
return JSON.stringify(
|
|
3943
|
+
PutFirewallConfigRules1$outboundSchema.parse(putFirewallConfigRules1),
|
|
3944
|
+
);
|
|
3945
|
+
}
|
|
3946
|
+
export function putFirewallConfigRules1FromJSON(
|
|
3947
|
+
jsonString: string,
|
|
3948
|
+
): SafeParseResult<PutFirewallConfigRules1, SDKValidationError> {
|
|
3949
|
+
return safeParse(
|
|
3950
|
+
jsonString,
|
|
3951
|
+
(x) => PutFirewallConfigRules1$inboundSchema.parse(JSON.parse(x)),
|
|
3952
|
+
`Failed to parse 'PutFirewallConfigRules1' from JSON`,
|
|
3953
|
+
);
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3956
|
+
/** @internal */
|
|
3957
|
+
export const PutFirewallConfigSecurityRules$inboundSchema: z.ZodType<
|
|
3958
|
+
PutFirewallConfigSecurityRules,
|
|
3959
|
+
z.ZodTypeDef,
|
|
3960
|
+
unknown
|
|
3961
|
+
> = z.union([
|
|
3962
|
+
z.lazy(() => PutFirewallConfigRules1$inboundSchema),
|
|
3963
|
+
z.lazy(() => PutFirewallConfigRules2$inboundSchema),
|
|
3964
|
+
]);
|
|
3965
|
+
/** @internal */
|
|
3966
|
+
export type PutFirewallConfigSecurityRules$Outbound =
|
|
3967
|
+
| PutFirewallConfigRules1$Outbound
|
|
3968
|
+
| PutFirewallConfigRules2$Outbound;
|
|
3969
|
+
|
|
3970
|
+
/** @internal */
|
|
3971
|
+
export const PutFirewallConfigSecurityRules$outboundSchema: z.ZodType<
|
|
3972
|
+
PutFirewallConfigSecurityRules$Outbound,
|
|
3973
|
+
z.ZodTypeDef,
|
|
3974
|
+
PutFirewallConfigSecurityRules
|
|
3975
|
+
> = z.union([
|
|
3976
|
+
z.lazy(() => PutFirewallConfigRules1$outboundSchema),
|
|
3977
|
+
z.lazy(() => PutFirewallConfigRules2$outboundSchema),
|
|
3978
|
+
]);
|
|
3979
|
+
|
|
3980
|
+
export function putFirewallConfigSecurityRulesToJSON(
|
|
3981
|
+
putFirewallConfigSecurityRules: PutFirewallConfigSecurityRules,
|
|
3982
|
+
): string {
|
|
3983
|
+
return JSON.stringify(
|
|
3984
|
+
PutFirewallConfigSecurityRules$outboundSchema.parse(
|
|
3225
3985
|
putFirewallConfigSecurityRules,
|
|
3226
3986
|
),
|
|
3227
3987
|
);
|
|
@@ -3237,13 +3997,13 @@ export function putFirewallConfigSecurityRulesFromJSON(
|
|
|
3237
3997
|
}
|
|
3238
3998
|
|
|
3239
3999
|
/** @internal */
|
|
3240
|
-
export const
|
|
3241
|
-
z.ZodNativeEnum<typeof
|
|
3242
|
-
.nativeEnum(
|
|
4000
|
+
export const PutFirewallConfigSecurityResponseAction$inboundSchema:
|
|
4001
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponseAction> = z
|
|
4002
|
+
.nativeEnum(PutFirewallConfigSecurityResponseAction);
|
|
3243
4003
|
/** @internal */
|
|
3244
|
-
export const
|
|
3245
|
-
z.ZodNativeEnum<typeof
|
|
3246
|
-
|
|
4004
|
+
export const PutFirewallConfigSecurityResponseAction$outboundSchema:
|
|
4005
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponseAction> =
|
|
4006
|
+
PutFirewallConfigSecurityResponseAction$inboundSchema;
|
|
3247
4007
|
|
|
3248
4008
|
/** @internal */
|
|
3249
4009
|
export const PutFirewallConfigIps$inboundSchema: z.ZodType<
|
|
@@ -3255,7 +4015,7 @@ export const PutFirewallConfigIps$inboundSchema: z.ZodType<
|
|
|
3255
4015
|
hostname: z.string(),
|
|
3256
4016
|
ip: z.string(),
|
|
3257
4017
|
notes: z.string().optional(),
|
|
3258
|
-
action:
|
|
4018
|
+
action: PutFirewallConfigSecurityResponseAction$inboundSchema,
|
|
3259
4019
|
});
|
|
3260
4020
|
/** @internal */
|
|
3261
4021
|
export type PutFirewallConfigIps$Outbound = {
|
|
@@ -3276,7 +4036,7 @@ export const PutFirewallConfigIps$outboundSchema: z.ZodType<
|
|
|
3276
4036
|
hostname: z.string(),
|
|
3277
4037
|
ip: z.string(),
|
|
3278
4038
|
notes: z.string().optional(),
|
|
3279
|
-
action:
|
|
4039
|
+
action: PutFirewallConfigSecurityResponseAction$outboundSchema,
|
|
3280
4040
|
});
|
|
3281
4041
|
|
|
3282
4042
|
export function putFirewallConfigIpsToJSON(
|
|
@@ -3607,7 +4367,12 @@ export const Active$inboundSchema: z.ZodType<Active, z.ZodTypeDef, unknown> = z
|
|
|
3607
4367
|
updatedAt: z.string(),
|
|
3608
4368
|
firewallEnabled: z.boolean(),
|
|
3609
4369
|
crs: z.lazy(() => PutFirewallConfigCrs$inboundSchema),
|
|
3610
|
-
rules: z.array(
|
|
4370
|
+
rules: z.array(
|
|
4371
|
+
z.union([
|
|
4372
|
+
z.lazy(() => PutFirewallConfigRules1$inboundSchema),
|
|
4373
|
+
z.lazy(() => PutFirewallConfigRules2$inboundSchema),
|
|
4374
|
+
]),
|
|
4375
|
+
),
|
|
3611
4376
|
ips: z.array(z.lazy(() => PutFirewallConfigIps$inboundSchema)),
|
|
3612
4377
|
changes: z.array(z.lazy(() => PutFirewallConfigChanges$inboundSchema)),
|
|
3613
4378
|
managedRules: z.lazy(() => PutFirewallConfigManagedRules$inboundSchema)
|
|
@@ -3623,7 +4388,9 @@ export type Active$Outbound = {
|
|
|
3623
4388
|
updatedAt: string;
|
|
3624
4389
|
firewallEnabled: boolean;
|
|
3625
4390
|
crs: PutFirewallConfigCrs$Outbound;
|
|
3626
|
-
rules: Array<
|
|
4391
|
+
rules: Array<
|
|
4392
|
+
PutFirewallConfigRules1$Outbound | PutFirewallConfigRules2$Outbound
|
|
4393
|
+
>;
|
|
3627
4394
|
ips: Array<PutFirewallConfigIps$Outbound>;
|
|
3628
4395
|
changes: Array<PutFirewallConfigChanges$Outbound>;
|
|
3629
4396
|
managedRules?: PutFirewallConfigManagedRules$Outbound | undefined;
|
|
@@ -3643,7 +4410,12 @@ export const Active$outboundSchema: z.ZodType<
|
|
|
3643
4410
|
updatedAt: z.string(),
|
|
3644
4411
|
firewallEnabled: z.boolean(),
|
|
3645
4412
|
crs: z.lazy(() => PutFirewallConfigCrs$outboundSchema),
|
|
3646
|
-
rules: z.array(
|
|
4413
|
+
rules: z.array(
|
|
4414
|
+
z.union([
|
|
4415
|
+
z.lazy(() => PutFirewallConfigRules1$outboundSchema),
|
|
4416
|
+
z.lazy(() => PutFirewallConfigRules2$outboundSchema),
|
|
4417
|
+
]),
|
|
4418
|
+
),
|
|
3647
4419
|
ips: z.array(z.lazy(() => PutFirewallConfigIps$outboundSchema)),
|
|
3648
4420
|
changes: z.array(z.lazy(() => PutFirewallConfigChanges$outboundSchema)),
|
|
3649
4421
|
managedRules: z.lazy(() => PutFirewallConfigManagedRules$outboundSchema)
|