@vercel/sdk 1.18.1 → 1.18.3
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 +75 -80
- package/bin/mcp-server.js +4746 -2929
- package/bin/mcp-server.js.map +63 -45
- package/esm/__tests__/domains.test.js +12 -65
- 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 +20 -35
- 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 +150 -1
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/deleteV1BulkRedirects.d.ts +14 -0
- package/esm/funcs/deleteV1BulkRedirects.d.ts.map +1 -0
- package/esm/funcs/deleteV1BulkRedirects.js +74 -0
- package/esm/funcs/deleteV1BulkRedirects.js.map +1 -0
- package/esm/funcs/domainsCreateOrTransferDomain.js +2 -2
- package/esm/funcs/domainsCreateOrTransferDomain.js.map +1 -1
- package/esm/funcs/getV1BulkRedirects.d.ts +14 -0
- package/esm/funcs/getV1BulkRedirects.d.ts.map +1 -0
- package/esm/funcs/getV1BulkRedirects.js +80 -0
- package/esm/funcs/getV1BulkRedirects.js.map +1 -0
- package/esm/funcs/getV1BulkRedirectsVersions.d.ts +14 -0
- package/esm/funcs/getV1BulkRedirectsVersions.d.ts.map +1 -0
- package/esm/funcs/getV1BulkRedirectsVersions.js +73 -0
- package/esm/funcs/getV1BulkRedirectsVersions.js.map +1 -0
- package/esm/funcs/integrationsGetBillingPlans.js +1 -0
- package/esm/funcs/integrationsGetBillingPlans.js.map +1 -1
- package/esm/funcs/patchV1BulkRedirects.d.ts +14 -0
- package/esm/funcs/patchV1BulkRedirects.d.ts.map +1 -0
- package/esm/funcs/patchV1BulkRedirects.js +74 -0
- package/esm/funcs/patchV1BulkRedirects.js.map +1 -0
- package/esm/funcs/postV1BulkRedirectsRestore.d.ts +14 -0
- package/esm/funcs/postV1BulkRedirectsRestore.d.ts.map +1 -0
- package/esm/funcs/postV1BulkRedirectsRestore.js +74 -0
- package/esm/funcs/postV1BulkRedirectsRestore.js.map +1 -0
- package/esm/funcs/postV1BulkRedirectsVersions.d.ts +14 -0
- package/esm/funcs/postV1BulkRedirectsVersions.d.ts.map +1 -0
- package/esm/funcs/postV1BulkRedirectsVersions.js +74 -0
- package/esm/funcs/postV1BulkRedirectsVersions.js.map +1 -0
- package/esm/funcs/putV1BulkRedirects.d.ts +11 -0
- package/esm/funcs/putV1BulkRedirects.d.ts.map +1 -0
- package/esm/funcs/putV1BulkRedirects.js +69 -0
- package/esm/funcs/putV1BulkRedirects.js.map +1 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.d.ts +17 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.d.ts.map +1 -0
- package/esm/funcs/{domainsBuyDomain.js → teamsPostTeamDsyncRoles.js} +17 -12
- 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 -5
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/deleteV1BulkRedirects.js +26 -0
- package/esm/mcp-server/tools/deleteV1BulkRedirects.js.map +1 -0
- package/esm/mcp-server/tools/getV1BulkRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/getV1BulkRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/getV1BulkRedirects.js +26 -0
- package/esm/mcp-server/tools/getV1BulkRedirects.js.map +1 -0
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts +7 -0
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts.map +1 -0
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js +26 -0
- package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js.map +1 -0
- package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/patchV1BulkRedirects.js +26 -0
- package/esm/mcp-server/tools/patchV1BulkRedirects.js.map +1 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts +7 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts.map +1 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js +26 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js.map +1 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts +7 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts.map +1 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js +26 -0
- package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js.map +1 -0
- package/esm/mcp-server/tools/putV1BulkRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/putV1BulkRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/putV1BulkRedirects.js +26 -0
- package/esm/mcp-server/tools/putV1BulkRedirects.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/artifactqueryop.d.ts +8 -8
- package/esm/models/artifactqueryop.d.ts.map +1 -1
- package/esm/models/artifactqueryop.js +8 -8
- package/esm/models/artifactqueryop.js.map +1 -1
- package/esm/models/authuser.d.ts +5 -0
- package/esm/models/authuser.d.ts.map +1 -1
- package/esm/models/authuser.js +2 -0
- package/esm/models/authuser.js.map +1 -1
- package/esm/models/canceldeploymentop.d.ts +48 -2
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +44 -2
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +48 -2
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +48 -2
- 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 +222 -152
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +298 -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 +138 -6
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +126 -6
- 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/deletev1bulkredirectsop.d.ts +102 -0
- package/esm/models/deletev1bulkredirectsop.d.ts.map +1 -0
- package/esm/models/deletev1bulkredirectsop.js +95 -0
- package/esm/models/deletev1bulkredirectsop.js.map +1 -0
- package/esm/models/getbillingplansop.d.ts +2 -0
- package/esm/models/getbillingplansop.d.ts.map +1 -1
- package/esm/models/getbillingplansop.js +2 -0
- package/esm/models/getbillingplansop.js.map +1 -1
- package/esm/models/getconfigurationop.d.ts +61 -1
- package/esm/models/getconfigurationop.d.ts.map +1 -1
- package/esm/models/getconfigurationop.js +44 -1
- package/esm/models/getconfigurationop.js.map +1 -1
- package/esm/models/getconfigurationproductsop.d.ts +200 -200
- package/esm/models/getconfigurationproductsop.js +290 -290
- package/esm/models/getconfigurationsop.d.ts +61 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +44 -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 +94 -4
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +86 -4
- 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 +336 -103
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +358 -98
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/getorderop.d.ts +126 -42
- package/esm/models/getorderop.d.ts.map +1 -1
- package/esm/models/getorderop.js +138 -24
- package/esm/models/getorderop.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 +109 -6
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +97 -6
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getv1bulkredirectsop.d.ts +190 -0
- package/esm/models/getv1bulkredirectsop.d.ts.map +1 -0
- package/esm/models/getv1bulkredirectsop.js +195 -0
- package/esm/models/getv1bulkredirectsop.js.map +1 -0
- package/esm/models/getv1bulkredirectsversionsop.d.ts +80 -0
- package/esm/models/getv1bulkredirectsversionsop.d.ts.map +1 -0
- package/esm/models/getv1bulkredirectsversionsop.js +64 -0
- package/esm/models/getv1bulkredirectsversionsop.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/listaccessgroupsop.d.ts +8 -8
- package/esm/models/listaccessgroupsop.d.ts.map +1 -1
- package/esm/models/listaccessgroupsop.js +8 -8
- package/esm/models/listaccessgroupsop.js.map +1 -1
- package/esm/models/patchv1bulkredirectsop.d.ts +133 -0
- package/esm/models/patchv1bulkredirectsop.d.ts.map +1 -0
- package/esm/models/patchv1bulkredirectsop.js +121 -0
- package/esm/models/patchv1bulkredirectsop.js.map +1 -0
- 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/postv1bulkredirectsrestoreop.d.ts +104 -0
- package/esm/models/postv1bulkredirectsrestoreop.d.ts.map +1 -0
- package/esm/models/postv1bulkredirectsrestoreop.js +96 -0
- package/esm/models/postv1bulkredirectsrestoreop.js.map +1 -0
- package/esm/models/postv1bulkredirectsversionsop.d.ts +110 -0
- package/esm/models/postv1bulkredirectsversionsop.d.ts.map +1 -0
- package/esm/models/postv1bulkredirectsversionsop.js +102 -0
- package/esm/models/postv1bulkredirectsversionsop.js.map +1 -0
- package/esm/models/putfirewallconfigop.d.ts +357 -100
- package/esm/models/putfirewallconfigop.d.ts.map +1 -1
- package/esm/models/putfirewallconfigop.js +379 -102
- package/esm/models/putfirewallconfigop.js.map +1 -1
- package/esm/models/putv1bulkredirectsop.d.ts +122 -0
- package/esm/models/putv1bulkredirectsop.d.ts.map +1 -0
- package/esm/models/putv1bulkredirectsop.js +108 -0
- package/esm/models/putv1bulkredirectsop.js.map +1 -0
- 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/updateinstallationop.d.ts +18 -0
- package/esm/models/updateinstallationop.d.ts.map +1 -1
- package/esm/models/updateinstallationop.js +17 -0
- package/esm/models/updateinstallationop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +124 -21
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +118 -24
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +138 -6
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +126 -6
- 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/userevent.d.ts +792 -966
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +1047 -1248
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/domains.d.ts +0 -16
- package/esm/sdk/domains.d.ts.map +1 -1
- package/esm/sdk/domains.js +0 -20
- package/esm/sdk/domains.js.map +1 -1
- package/esm/sdk/sdk.d.ts +33 -1
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +47 -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__/domains.test.ts +16 -70
- 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 +20 -35
- package/src/__tests__/teams.test.ts +19 -0
- package/src/__tests__/vercel.test.ts +177 -1
- package/src/funcs/deleteV1BulkRedirects.ts +161 -0
- package/src/funcs/domainsCreateOrTransferDomain.ts +2 -2
- package/src/funcs/getV1BulkRedirects.ts +167 -0
- package/src/funcs/getV1BulkRedirectsVersions.ts +160 -0
- package/src/funcs/integrationsGetBillingPlans.ts +1 -0
- package/src/funcs/patchV1BulkRedirects.ts +161 -0
- package/src/funcs/postV1BulkRedirectsRestore.ts +161 -0
- package/src/funcs/postV1BulkRedirectsVersions.ts +161 -0
- package/src/funcs/putV1BulkRedirects.ts +156 -0
- package/src/funcs/{domainsBuyDomain.ts → teamsPostTeamDsyncRoles.ts} +29 -24
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -5
- package/src/mcp-server/tools/deleteV1BulkRedirects.ts +36 -0
- package/src/mcp-server/tools/getV1BulkRedirects.ts +35 -0
- package/src/mcp-server/tools/getV1BulkRedirectsVersions.ts +35 -0
- package/src/mcp-server/tools/patchV1BulkRedirects.ts +36 -0
- package/src/mcp-server/tools/postV1BulkRedirectsRestore.ts +36 -0
- package/src/mcp-server/tools/postV1BulkRedirectsVersions.ts +36 -0
- package/src/mcp-server/tools/putV1BulkRedirects.ts +35 -0
- package/src/mcp-server/tools/teamsPostTeamDsyncRoles.ts +37 -0
- package/src/models/artifactqueryop.ts +21 -17
- package/src/models/authuser.ts +7 -0
- package/src/models/canceldeploymentop.ts +133 -4
- package/src/models/createdeploymentop.ts +116 -4
- package/src/models/createedgeconfigop.ts +7 -0
- package/src/models/createintegrationstoredirectop.ts +708 -471
- package/src/models/createortransferdomainop.ts +0 -83
- package/src/models/createprojectop.ts +346 -12
- package/src/models/createwebhookop.ts +4 -2
- package/src/models/deletev1bulkredirectsop.ts +267 -0
- package/src/models/getbillingplansop.ts +4 -0
- package/src/models/getconfigurationop.ts +87 -1
- package/src/models/getconfigurationproductsop.ts +627 -627
- package/src/models/getconfigurationsop.ts +87 -0
- package/src/models/getdeploymenteventsop.ts +17 -13
- package/src/models/getdeploymentop.ts +271 -8
- package/src/models/getedgeconfigop.ts +7 -0
- package/src/models/getfirewallconfigop.ts +835 -274
- package/src/models/getorderop.ts +469 -112
- package/src/models/getprojectdomainsop.ts +11 -9
- package/src/models/getprojectsop.ts +260 -12
- package/src/models/getv1bulkredirectsop.ts +467 -0
- package/src/models/getv1bulkredirectsversionsop.ts +192 -0
- package/src/models/getwebhookop.ts +2 -1
- package/src/models/getwebhooksop.ts +4 -2
- package/src/models/listaccessgroupsop.ts +26 -18
- package/src/models/patchv1bulkredirectsop.ts +336 -0
- package/src/models/postteamdsyncrolesop.ts +291 -0
- package/src/models/postv1bulkredirectsrestoreop.ts +275 -0
- package/src/models/postv1bulkredirectsversionsop.ts +296 -0
- package/src/models/putfirewallconfigop.ts +1025 -284
- package/src/models/putv1bulkredirectsop.ts +304 -0
- package/src/models/updateedgeconfigop.ts +7 -0
- package/src/models/updatefirewallconfigop.ts +107 -0
- package/src/models/updateinstallationop.ts +30 -0
- package/src/models/updateprojectdatacacheop.ts +322 -63
- package/src/models/updateprojectop.ts +346 -12
- package/src/models/updateprojectprotectionbypassop.ts +84 -0
- package/src/models/userevent.ts +2415 -2887
- package/src/sdk/domains.ts +0 -41
- package/src/sdk/sdk.ts +132 -1
- package/src/sdk/teams.ts +22 -0
- package/vercel-spec.json +3260 -1294
- 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
|
@@ -257,6 +257,8 @@ export const PutFirewallConfigType = {
|
|
|
257
257
|
Ja4Digest: "ja4_digest",
|
|
258
258
|
Ja3Digest: "ja3_digest",
|
|
259
259
|
RateLimitApiId: "rate_limit_api_id",
|
|
260
|
+
BotName: "bot_name",
|
|
261
|
+
BotCategory: "bot_category",
|
|
260
262
|
} as const;
|
|
261
263
|
/**
|
|
262
264
|
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
@@ -342,7 +344,7 @@ export type Redirect1 = {
|
|
|
342
344
|
permanent: boolean;
|
|
343
345
|
};
|
|
344
346
|
|
|
345
|
-
export type
|
|
347
|
+
export type PutFirewallConfigRedirect = Redirect1 | any;
|
|
346
348
|
|
|
347
349
|
export type Mitigate = {
|
|
348
350
|
action: PutFirewallConfigSecurityRequestRequestBodyRulesActionAction;
|
|
@@ -356,6 +358,8 @@ export type PutFirewallConfigSecurityRequestRequestBodyRulesAction = {
|
|
|
356
358
|
mitigate?: Mitigate | undefined;
|
|
357
359
|
};
|
|
358
360
|
|
|
361
|
+
export type ValidationErrors = string | Array<string>;
|
|
362
|
+
|
|
359
363
|
export type PutFirewallConfigRules = {
|
|
360
364
|
id?: string | undefined;
|
|
361
365
|
name: string;
|
|
@@ -363,6 +367,8 @@ export type PutFirewallConfigRules = {
|
|
|
363
367
|
active: boolean;
|
|
364
368
|
conditionGroup: Array<ConditionGroup>;
|
|
365
369
|
action: PutFirewallConfigSecurityRequestRequestBodyRulesAction;
|
|
370
|
+
valid?: boolean | undefined;
|
|
371
|
+
validationErrors?: string | Array<string> | undefined;
|
|
366
372
|
};
|
|
367
373
|
|
|
368
374
|
export const PutFirewallConfigSecurityRequestRequestBodyIpsAction = {
|
|
@@ -427,23 +433,20 @@ export type PutFirewallConfigSd = {
|
|
|
427
433
|
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsSdAction;
|
|
428
434
|
};
|
|
429
435
|
|
|
430
|
-
export const
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
typeof PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction
|
|
438
|
-
>;
|
|
436
|
+
export const PutFirewallConfigSecurityResponse200Action = {
|
|
437
|
+
Deny: "deny",
|
|
438
|
+
Log: "log",
|
|
439
|
+
} as const;
|
|
440
|
+
export type PutFirewallConfigSecurityResponse200Action = ClosedEnum<
|
|
441
|
+
typeof PutFirewallConfigSecurityResponse200Action
|
|
442
|
+
>;
|
|
439
443
|
|
|
440
444
|
/**
|
|
441
445
|
* Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
|
|
442
446
|
*/
|
|
443
447
|
export type PutFirewallConfigMa = {
|
|
444
448
|
active: boolean;
|
|
445
|
-
action:
|
|
446
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction;
|
|
449
|
+
action: PutFirewallConfigSecurityResponse200Action;
|
|
447
450
|
};
|
|
448
451
|
|
|
449
452
|
export const PutFirewallConfigSecurityResponse200ApplicationJSONAction = {
|
|
@@ -662,7 +665,7 @@ export type PutFirewallConfigCrs = {
|
|
|
662
665
|
java: PutFirewallConfigJava;
|
|
663
666
|
};
|
|
664
667
|
|
|
665
|
-
export const
|
|
668
|
+
export const PutFirewallConfigRulesType = {
|
|
666
669
|
Host: "host",
|
|
667
670
|
Path: "path",
|
|
668
671
|
Method: "method",
|
|
@@ -687,12 +690,14 @@ export const PutFirewallConfigSecurityType = {
|
|
|
687
690
|
Ja3Digest: "ja3_digest",
|
|
688
691
|
RateLimitApiId: "rate_limit_api_id",
|
|
689
692
|
ServerAction: "server_action",
|
|
693
|
+
BotName: "bot_name",
|
|
694
|
+
BotCategory: "bot_category",
|
|
690
695
|
} as const;
|
|
691
|
-
export type
|
|
692
|
-
typeof
|
|
696
|
+
export type PutFirewallConfigRulesType = ClosedEnum<
|
|
697
|
+
typeof PutFirewallConfigRulesType
|
|
693
698
|
>;
|
|
694
699
|
|
|
695
|
-
export const
|
|
700
|
+
export const PutFirewallConfigRulesOp = {
|
|
696
701
|
Re: "re",
|
|
697
702
|
Eq: "eq",
|
|
698
703
|
Ex: "ex",
|
|
@@ -708,100 +713,246 @@ export const PutFirewallConfigOp = {
|
|
|
708
713
|
Ninc: "ninc",
|
|
709
714
|
Neq: "neq",
|
|
710
715
|
} as const;
|
|
711
|
-
export type
|
|
716
|
+
export type PutFirewallConfigRulesOp = ClosedEnum<
|
|
717
|
+
typeof PutFirewallConfigRulesOp
|
|
718
|
+
>;
|
|
712
719
|
|
|
713
|
-
export type
|
|
720
|
+
export type PutFirewallConfigRulesValue = string | number | Array<string>;
|
|
714
721
|
|
|
715
|
-
export type
|
|
716
|
-
type:
|
|
717
|
-
op:
|
|
722
|
+
export type PutFirewallConfigRulesConditions = {
|
|
723
|
+
type: PutFirewallConfigRulesType;
|
|
724
|
+
op: PutFirewallConfigRulesOp;
|
|
718
725
|
neg?: boolean | undefined;
|
|
719
726
|
key?: string | undefined;
|
|
720
727
|
value?: string | number | Array<string> | undefined;
|
|
721
728
|
};
|
|
722
729
|
|
|
723
|
-
export type
|
|
724
|
-
conditions: Array<
|
|
730
|
+
export type PutFirewallConfigRulesConditionGroup = {
|
|
731
|
+
conditions: Array<PutFirewallConfigRulesConditions>;
|
|
725
732
|
};
|
|
726
733
|
|
|
727
|
-
export const
|
|
734
|
+
export const PutFirewallConfigRulesSecurityResponse200Action = {
|
|
735
|
+
Deny: "deny",
|
|
736
|
+
Log: "log",
|
|
737
|
+
Challenge: "challenge",
|
|
738
|
+
Bypass: "bypass",
|
|
739
|
+
RateLimit: "rate_limit",
|
|
740
|
+
Redirect: "redirect",
|
|
741
|
+
} as const;
|
|
742
|
+
export type PutFirewallConfigRulesSecurityResponse200Action = ClosedEnum<
|
|
743
|
+
typeof PutFirewallConfigRulesSecurityResponse200Action
|
|
744
|
+
>;
|
|
745
|
+
|
|
746
|
+
export const PutFirewallConfigRulesAlgo = {
|
|
747
|
+
FixedWindow: "fixed_window",
|
|
748
|
+
TokenBucket: "token_bucket",
|
|
749
|
+
} as const;
|
|
750
|
+
export type PutFirewallConfigRulesAlgo = ClosedEnum<
|
|
751
|
+
typeof PutFirewallConfigRulesAlgo
|
|
752
|
+
>;
|
|
753
|
+
|
|
754
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction =
|
|
728
755
|
{
|
|
729
756
|
Deny: "deny",
|
|
730
757
|
Log: "log",
|
|
731
758
|
Challenge: "challenge",
|
|
732
|
-
Bypass: "bypass",
|
|
733
759
|
RateLimit: "rate_limit",
|
|
734
|
-
Redirect: "redirect",
|
|
735
760
|
} as const;
|
|
736
|
-
export type
|
|
761
|
+
export type PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction =
|
|
737
762
|
ClosedEnum<
|
|
738
|
-
typeof
|
|
763
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
739
764
|
>;
|
|
740
765
|
|
|
741
|
-
export
|
|
766
|
+
export type PutFirewallConfigRulesRateLimit = {
|
|
767
|
+
algo: PutFirewallConfigRulesAlgo;
|
|
768
|
+
window: number;
|
|
769
|
+
limit: number;
|
|
770
|
+
keys: Array<string>;
|
|
771
|
+
action?:
|
|
772
|
+
| PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
773
|
+
| null
|
|
774
|
+
| undefined;
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
export type PutFirewallConfigRulesRedirect = {
|
|
778
|
+
location: string;
|
|
779
|
+
permanent: boolean;
|
|
780
|
+
};
|
|
781
|
+
|
|
782
|
+
export type PutFirewallConfigRulesMitigate = {
|
|
783
|
+
action: PutFirewallConfigRulesSecurityResponse200Action;
|
|
784
|
+
rateLimit?: PutFirewallConfigRulesRateLimit | null | undefined;
|
|
785
|
+
redirect?: PutFirewallConfigRulesRedirect | null | undefined;
|
|
786
|
+
actionDuration?: string | null | undefined;
|
|
787
|
+
bypassSystem?: boolean | null | undefined;
|
|
788
|
+
};
|
|
789
|
+
|
|
790
|
+
export type PutFirewallConfigRulesAction = {
|
|
791
|
+
mitigate?: PutFirewallConfigRulesMitigate | undefined;
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
export type PutFirewallConfigRules2 = {
|
|
795
|
+
id: string;
|
|
796
|
+
name: string;
|
|
797
|
+
description?: string | undefined;
|
|
798
|
+
active: boolean;
|
|
799
|
+
conditionGroup: Array<PutFirewallConfigRulesConditionGroup>;
|
|
800
|
+
action: PutFirewallConfigRulesAction;
|
|
801
|
+
valid: boolean;
|
|
802
|
+
validationErrors: Array<string>;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
export const PutFirewallConfigRulesSecurityType = {
|
|
806
|
+
Host: "host",
|
|
807
|
+
Path: "path",
|
|
808
|
+
Method: "method",
|
|
809
|
+
Header: "header",
|
|
810
|
+
Query: "query",
|
|
811
|
+
Cookie: "cookie",
|
|
812
|
+
TargetPath: "target_path",
|
|
813
|
+
Route: "route",
|
|
814
|
+
RawPath: "raw_path",
|
|
815
|
+
IpAddress: "ip_address",
|
|
816
|
+
Protocol: "protocol",
|
|
817
|
+
Region: "region",
|
|
818
|
+
Scheme: "scheme",
|
|
819
|
+
Environment: "environment",
|
|
820
|
+
UserAgent: "user_agent",
|
|
821
|
+
GeoContinent: "geo_continent",
|
|
822
|
+
GeoCountry: "geo_country",
|
|
823
|
+
GeoCountryRegion: "geo_country_region",
|
|
824
|
+
GeoCity: "geo_city",
|
|
825
|
+
GeoAsNumber: "geo_as_number",
|
|
826
|
+
Ja4Digest: "ja4_digest",
|
|
827
|
+
Ja3Digest: "ja3_digest",
|
|
828
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
829
|
+
ServerAction: "server_action",
|
|
830
|
+
BotName: "bot_name",
|
|
831
|
+
BotCategory: "bot_category",
|
|
832
|
+
} as const;
|
|
833
|
+
export type PutFirewallConfigRulesSecurityType = ClosedEnum<
|
|
834
|
+
typeof PutFirewallConfigRulesSecurityType
|
|
835
|
+
>;
|
|
836
|
+
|
|
837
|
+
export const PutFirewallConfigRulesSecurityOp = {
|
|
838
|
+
Re: "re",
|
|
839
|
+
Eq: "eq",
|
|
840
|
+
Ex: "ex",
|
|
841
|
+
Inc: "inc",
|
|
842
|
+
Pre: "pre",
|
|
843
|
+
Suf: "suf",
|
|
844
|
+
Sub: "sub",
|
|
845
|
+
Gt: "gt",
|
|
846
|
+
Gte: "gte",
|
|
847
|
+
Lt: "lt",
|
|
848
|
+
Lte: "lte",
|
|
849
|
+
Nex: "nex",
|
|
850
|
+
Ninc: "ninc",
|
|
851
|
+
Neq: "neq",
|
|
852
|
+
} as const;
|
|
853
|
+
export type PutFirewallConfigRulesSecurityOp = ClosedEnum<
|
|
854
|
+
typeof PutFirewallConfigRulesSecurityOp
|
|
855
|
+
>;
|
|
856
|
+
|
|
857
|
+
export type PutFirewallConfigRulesSecurityValue =
|
|
858
|
+
| string
|
|
859
|
+
| number
|
|
860
|
+
| Array<string>;
|
|
861
|
+
|
|
862
|
+
export type PutFirewallConfigRulesSecurityConditions = {
|
|
863
|
+
type: PutFirewallConfigRulesSecurityType;
|
|
864
|
+
op: PutFirewallConfigRulesSecurityOp;
|
|
865
|
+
neg?: boolean | undefined;
|
|
866
|
+
key?: string | undefined;
|
|
867
|
+
value?: string | number | Array<string> | undefined;
|
|
868
|
+
};
|
|
869
|
+
|
|
870
|
+
export type PutFirewallConfigRulesSecurityConditionGroup = {
|
|
871
|
+
conditions: Array<PutFirewallConfigRulesSecurityConditions>;
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
export const PutFirewallConfigRulesSecurityResponseAction = {
|
|
875
|
+
Deny: "deny",
|
|
876
|
+
Log: "log",
|
|
877
|
+
Challenge: "challenge",
|
|
878
|
+
Bypass: "bypass",
|
|
879
|
+
RateLimit: "rate_limit",
|
|
880
|
+
Redirect: "redirect",
|
|
881
|
+
} as const;
|
|
882
|
+
export type PutFirewallConfigRulesSecurityResponseAction = ClosedEnum<
|
|
883
|
+
typeof PutFirewallConfigRulesSecurityResponseAction
|
|
884
|
+
>;
|
|
885
|
+
|
|
886
|
+
export const PutFirewallConfigRulesSecurityAlgo = {
|
|
742
887
|
FixedWindow: "fixed_window",
|
|
743
888
|
TokenBucket: "token_bucket",
|
|
744
889
|
} as const;
|
|
745
|
-
export type
|
|
890
|
+
export type PutFirewallConfigRulesSecurityAlgo = ClosedEnum<
|
|
891
|
+
typeof PutFirewallConfigRulesSecurityAlgo
|
|
892
|
+
>;
|
|
746
893
|
|
|
747
|
-
export const
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
export type PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesActionAction =
|
|
894
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction = {
|
|
895
|
+
Deny: "deny",
|
|
896
|
+
Log: "log",
|
|
897
|
+
Challenge: "challenge",
|
|
898
|
+
RateLimit: "rate_limit",
|
|
899
|
+
} as const;
|
|
900
|
+
export type PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction =
|
|
755
901
|
ClosedEnum<
|
|
756
|
-
typeof
|
|
902
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
757
903
|
>;
|
|
758
904
|
|
|
759
|
-
export type
|
|
760
|
-
algo:
|
|
905
|
+
export type PutFirewallConfigRulesSecurityRateLimit = {
|
|
906
|
+
algo: PutFirewallConfigRulesSecurityAlgo;
|
|
761
907
|
window: number;
|
|
762
908
|
limit: number;
|
|
763
909
|
keys: Array<string>;
|
|
764
910
|
action?:
|
|
765
|
-
|
|
|
911
|
+
| PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
766
912
|
| null
|
|
767
913
|
| undefined;
|
|
768
914
|
};
|
|
769
915
|
|
|
770
|
-
export type
|
|
916
|
+
export type PutFirewallConfigRulesSecurityRedirect = {
|
|
771
917
|
location: string;
|
|
772
918
|
permanent: boolean;
|
|
773
919
|
};
|
|
774
920
|
|
|
775
|
-
export type
|
|
776
|
-
action:
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
redirect?: PutFirewallConfigRedirect | null | undefined;
|
|
921
|
+
export type PutFirewallConfigRulesSecurityMitigate = {
|
|
922
|
+
action: PutFirewallConfigRulesSecurityResponseAction;
|
|
923
|
+
rateLimit?: PutFirewallConfigRulesSecurityRateLimit | null | undefined;
|
|
924
|
+
redirect?: PutFirewallConfigRulesSecurityRedirect | null | undefined;
|
|
780
925
|
actionDuration?: string | null | undefined;
|
|
781
926
|
bypassSystem?: boolean | null | undefined;
|
|
782
927
|
};
|
|
783
928
|
|
|
784
|
-
export type
|
|
785
|
-
mitigate?:
|
|
929
|
+
export type PutFirewallConfigRulesSecurityAction = {
|
|
930
|
+
mitigate?: PutFirewallConfigRulesSecurityMitigate | undefined;
|
|
786
931
|
};
|
|
787
932
|
|
|
788
|
-
export type
|
|
933
|
+
export type PutFirewallConfigRules1 = {
|
|
789
934
|
id: string;
|
|
790
935
|
name: string;
|
|
791
936
|
description?: string | undefined;
|
|
792
937
|
active: boolean;
|
|
793
|
-
conditionGroup: Array<
|
|
794
|
-
action:
|
|
938
|
+
conditionGroup: Array<PutFirewallConfigRulesSecurityConditionGroup>;
|
|
939
|
+
action: PutFirewallConfigRulesSecurityAction;
|
|
940
|
+
valid: boolean;
|
|
941
|
+
validationErrors?: any | null | undefined;
|
|
795
942
|
};
|
|
796
943
|
|
|
797
|
-
export
|
|
944
|
+
export type PutFirewallConfigSecurityRules =
|
|
945
|
+
| PutFirewallConfigRules1
|
|
946
|
+
| PutFirewallConfigRules2;
|
|
947
|
+
|
|
948
|
+
export const PutFirewallConfigSecurityResponseAction = {
|
|
798
949
|
Deny: "deny",
|
|
799
950
|
Log: "log",
|
|
800
951
|
Challenge: "challenge",
|
|
801
952
|
Bypass: "bypass",
|
|
802
953
|
} as const;
|
|
803
|
-
export type
|
|
804
|
-
typeof
|
|
954
|
+
export type PutFirewallConfigSecurityResponseAction = ClosedEnum<
|
|
955
|
+
typeof PutFirewallConfigSecurityResponseAction
|
|
805
956
|
>;
|
|
806
957
|
|
|
807
958
|
export type PutFirewallConfigIps = {
|
|
@@ -809,7 +960,7 @@ export type PutFirewallConfigIps = {
|
|
|
809
960
|
hostname: string;
|
|
810
961
|
ip: string;
|
|
811
962
|
notes?: string | undefined;
|
|
812
|
-
action:
|
|
963
|
+
action: PutFirewallConfigSecurityResponseAction;
|
|
813
964
|
};
|
|
814
965
|
|
|
815
966
|
export type PutFirewallConfigChanges = {};
|
|
@@ -894,7 +1045,7 @@ export type Active = {
|
|
|
894
1045
|
* Custom Ruleset
|
|
895
1046
|
*/
|
|
896
1047
|
crs: PutFirewallConfigCrs;
|
|
897
|
-
rules: Array<
|
|
1048
|
+
rules: Array<PutFirewallConfigRules1 | PutFirewallConfigRules2>;
|
|
898
1049
|
ips: Array<PutFirewallConfigIps>;
|
|
899
1050
|
changes: Array<PutFirewallConfigChanges>;
|
|
900
1051
|
managedRules?: PutFirewallConfigManagedRules | undefined;
|
|
@@ -1733,31 +1884,35 @@ export function redirect1FromJSON(
|
|
|
1733
1884
|
}
|
|
1734
1885
|
|
|
1735
1886
|
/** @internal */
|
|
1736
|
-
export const
|
|
1737
|
-
|
|
1887
|
+
export const PutFirewallConfigRedirect$inboundSchema: z.ZodType<
|
|
1888
|
+
PutFirewallConfigRedirect,
|
|
1738
1889
|
z.ZodTypeDef,
|
|
1739
1890
|
unknown
|
|
1740
1891
|
> = z.union([z.lazy(() => Redirect1$inboundSchema), z.any()]);
|
|
1741
1892
|
/** @internal */
|
|
1742
|
-
export type
|
|
1893
|
+
export type PutFirewallConfigRedirect$Outbound = Redirect1$Outbound | any;
|
|
1743
1894
|
|
|
1744
1895
|
/** @internal */
|
|
1745
|
-
export const
|
|
1746
|
-
|
|
1896
|
+
export const PutFirewallConfigRedirect$outboundSchema: z.ZodType<
|
|
1897
|
+
PutFirewallConfigRedirect$Outbound,
|
|
1747
1898
|
z.ZodTypeDef,
|
|
1748
|
-
|
|
1899
|
+
PutFirewallConfigRedirect
|
|
1749
1900
|
> = z.union([z.lazy(() => Redirect1$outboundSchema), z.any()]);
|
|
1750
1901
|
|
|
1751
|
-
export function
|
|
1752
|
-
|
|
1902
|
+
export function putFirewallConfigRedirectToJSON(
|
|
1903
|
+
putFirewallConfigRedirect: PutFirewallConfigRedirect,
|
|
1904
|
+
): string {
|
|
1905
|
+
return JSON.stringify(
|
|
1906
|
+
PutFirewallConfigRedirect$outboundSchema.parse(putFirewallConfigRedirect),
|
|
1907
|
+
);
|
|
1753
1908
|
}
|
|
1754
|
-
export function
|
|
1909
|
+
export function putFirewallConfigRedirectFromJSON(
|
|
1755
1910
|
jsonString: string,
|
|
1756
|
-
): SafeParseResult<
|
|
1911
|
+
): SafeParseResult<PutFirewallConfigRedirect, SDKValidationError> {
|
|
1757
1912
|
return safeParse(
|
|
1758
1913
|
jsonString,
|
|
1759
|
-
(x) =>
|
|
1760
|
-
`Failed to parse '
|
|
1914
|
+
(x) => PutFirewallConfigRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
1915
|
+
`Failed to parse 'PutFirewallConfigRedirect' from JSON`,
|
|
1761
1916
|
);
|
|
1762
1917
|
}
|
|
1763
1918
|
|
|
@@ -1867,6 +2022,39 @@ export function putFirewallConfigSecurityRequestRequestBodyRulesActionFromJSON(
|
|
|
1867
2022
|
);
|
|
1868
2023
|
}
|
|
1869
2024
|
|
|
2025
|
+
/** @internal */
|
|
2026
|
+
export const ValidationErrors$inboundSchema: z.ZodType<
|
|
2027
|
+
ValidationErrors,
|
|
2028
|
+
z.ZodTypeDef,
|
|
2029
|
+
unknown
|
|
2030
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2031
|
+
/** @internal */
|
|
2032
|
+
export type ValidationErrors$Outbound = string | Array<string>;
|
|
2033
|
+
|
|
2034
|
+
/** @internal */
|
|
2035
|
+
export const ValidationErrors$outboundSchema: z.ZodType<
|
|
2036
|
+
ValidationErrors$Outbound,
|
|
2037
|
+
z.ZodTypeDef,
|
|
2038
|
+
ValidationErrors
|
|
2039
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2040
|
+
|
|
2041
|
+
export function validationErrorsToJSON(
|
|
2042
|
+
validationErrors: ValidationErrors,
|
|
2043
|
+
): string {
|
|
2044
|
+
return JSON.stringify(
|
|
2045
|
+
ValidationErrors$outboundSchema.parse(validationErrors),
|
|
2046
|
+
);
|
|
2047
|
+
}
|
|
2048
|
+
export function validationErrorsFromJSON(
|
|
2049
|
+
jsonString: string,
|
|
2050
|
+
): SafeParseResult<ValidationErrors, SDKValidationError> {
|
|
2051
|
+
return safeParse(
|
|
2052
|
+
jsonString,
|
|
2053
|
+
(x) => ValidationErrors$inboundSchema.parse(JSON.parse(x)),
|
|
2054
|
+
`Failed to parse 'ValidationErrors' from JSON`,
|
|
2055
|
+
);
|
|
2056
|
+
}
|
|
2057
|
+
|
|
1870
2058
|
/** @internal */
|
|
1871
2059
|
export const PutFirewallConfigRules$inboundSchema: z.ZodType<
|
|
1872
2060
|
PutFirewallConfigRules,
|
|
@@ -1881,6 +2069,8 @@ export const PutFirewallConfigRules$inboundSchema: z.ZodType<
|
|
|
1881
2069
|
action: z.lazy(() =>
|
|
1882
2070
|
PutFirewallConfigSecurityRequestRequestBodyRulesAction$inboundSchema
|
|
1883
2071
|
),
|
|
2072
|
+
valid: z.boolean().optional(),
|
|
2073
|
+
validationErrors: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1884
2074
|
});
|
|
1885
2075
|
/** @internal */
|
|
1886
2076
|
export type PutFirewallConfigRules$Outbound = {
|
|
@@ -1890,6 +2080,8 @@ export type PutFirewallConfigRules$Outbound = {
|
|
|
1890
2080
|
active: boolean;
|
|
1891
2081
|
conditionGroup: Array<ConditionGroup$Outbound>;
|
|
1892
2082
|
action: PutFirewallConfigSecurityRequestRequestBodyRulesAction$Outbound;
|
|
2083
|
+
valid?: boolean | undefined;
|
|
2084
|
+
validationErrors?: string | Array<string> | undefined;
|
|
1893
2085
|
};
|
|
1894
2086
|
|
|
1895
2087
|
/** @internal */
|
|
@@ -1906,6 +2098,8 @@ export const PutFirewallConfigRules$outboundSchema: z.ZodType<
|
|
|
1906
2098
|
action: z.lazy(() =>
|
|
1907
2099
|
PutFirewallConfigSecurityRequestRequestBodyRulesAction$outboundSchema
|
|
1908
2100
|
),
|
|
2101
|
+
valid: z.boolean().optional(),
|
|
2102
|
+
validationErrors: z.union([z.string(), z.array(z.string())]).optional(),
|
|
1909
2103
|
});
|
|
1910
2104
|
|
|
1911
2105
|
export function putFirewallConfigRulesToJSON(
|
|
@@ -2147,18 +2341,13 @@ export function putFirewallConfigSdFromJSON(
|
|
|
2147
2341
|
}
|
|
2148
2342
|
|
|
2149
2343
|
/** @internal */
|
|
2150
|
-
export const
|
|
2151
|
-
z.ZodNativeEnum<
|
|
2152
|
-
|
|
2153
|
-
> = z.nativeEnum(
|
|
2154
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction,
|
|
2155
|
-
);
|
|
2344
|
+
export const PutFirewallConfigSecurityResponse200Action$inboundSchema:
|
|
2345
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponse200Action> = z
|
|
2346
|
+
.nativeEnum(PutFirewallConfigSecurityResponse200Action);
|
|
2156
2347
|
/** @internal */
|
|
2157
|
-
export const
|
|
2158
|
-
z.ZodNativeEnum<
|
|
2159
|
-
|
|
2160
|
-
> =
|
|
2161
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema;
|
|
2348
|
+
export const PutFirewallConfigSecurityResponse200Action$outboundSchema:
|
|
2349
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponse200Action> =
|
|
2350
|
+
PutFirewallConfigSecurityResponse200Action$inboundSchema;
|
|
2162
2351
|
|
|
2163
2352
|
/** @internal */
|
|
2164
2353
|
export const PutFirewallConfigMa$inboundSchema: z.ZodType<
|
|
@@ -2167,8 +2356,7 @@ export const PutFirewallConfigMa$inboundSchema: z.ZodType<
|
|
|
2167
2356
|
unknown
|
|
2168
2357
|
> = z.object({
|
|
2169
2358
|
active: z.boolean(),
|
|
2170
|
-
action:
|
|
2171
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$inboundSchema,
|
|
2359
|
+
action: PutFirewallConfigSecurityResponse200Action$inboundSchema,
|
|
2172
2360
|
});
|
|
2173
2361
|
/** @internal */
|
|
2174
2362
|
export type PutFirewallConfigMa$Outbound = {
|
|
@@ -2183,8 +2371,7 @@ export const PutFirewallConfigMa$outboundSchema: z.ZodType<
|
|
|
2183
2371
|
PutFirewallConfigMa
|
|
2184
2372
|
> = z.object({
|
|
2185
2373
|
active: z.boolean(),
|
|
2186
|
-
action:
|
|
2187
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveCrsMaAction$outboundSchema,
|
|
2374
|
+
action: PutFirewallConfigSecurityResponse200Action$outboundSchema,
|
|
2188
2375
|
});
|
|
2189
2376
|
|
|
2190
2377
|
export function putFirewallConfigMaToJSON(
|
|
@@ -2793,70 +2980,75 @@ export function putFirewallConfigCrsFromJSON(
|
|
|
2793
2980
|
}
|
|
2794
2981
|
|
|
2795
2982
|
/** @internal */
|
|
2796
|
-
export const
|
|
2797
|
-
typeof
|
|
2798
|
-
> = z.nativeEnum(
|
|
2983
|
+
export const PutFirewallConfigRulesType$inboundSchema: z.ZodNativeEnum<
|
|
2984
|
+
typeof PutFirewallConfigRulesType
|
|
2985
|
+
> = z.nativeEnum(PutFirewallConfigRulesType);
|
|
2799
2986
|
/** @internal */
|
|
2800
|
-
export const
|
|
2801
|
-
typeof
|
|
2802
|
-
> =
|
|
2987
|
+
export const PutFirewallConfigRulesType$outboundSchema: z.ZodNativeEnum<
|
|
2988
|
+
typeof PutFirewallConfigRulesType
|
|
2989
|
+
> = PutFirewallConfigRulesType$inboundSchema;
|
|
2803
2990
|
|
|
2804
2991
|
/** @internal */
|
|
2805
|
-
export const
|
|
2806
|
-
typeof
|
|
2807
|
-
> = z.nativeEnum(
|
|
2992
|
+
export const PutFirewallConfigRulesOp$inboundSchema: z.ZodNativeEnum<
|
|
2993
|
+
typeof PutFirewallConfigRulesOp
|
|
2994
|
+
> = z.nativeEnum(PutFirewallConfigRulesOp);
|
|
2808
2995
|
/** @internal */
|
|
2809
|
-
export const
|
|
2810
|
-
typeof
|
|
2811
|
-
> =
|
|
2996
|
+
export const PutFirewallConfigRulesOp$outboundSchema: z.ZodNativeEnum<
|
|
2997
|
+
typeof PutFirewallConfigRulesOp
|
|
2998
|
+
> = PutFirewallConfigRulesOp$inboundSchema;
|
|
2812
2999
|
|
|
2813
3000
|
/** @internal */
|
|
2814
|
-
export const
|
|
2815
|
-
|
|
3001
|
+
export const PutFirewallConfigRulesValue$inboundSchema: z.ZodType<
|
|
3002
|
+
PutFirewallConfigRulesValue,
|
|
2816
3003
|
z.ZodTypeDef,
|
|
2817
3004
|
unknown
|
|
2818
3005
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
2819
3006
|
/** @internal */
|
|
2820
|
-
export type
|
|
3007
|
+
export type PutFirewallConfigRulesValue$Outbound =
|
|
3008
|
+
| string
|
|
3009
|
+
| number
|
|
3010
|
+
| Array<string>;
|
|
2821
3011
|
|
|
2822
3012
|
/** @internal */
|
|
2823
|
-
export const
|
|
2824
|
-
|
|
3013
|
+
export const PutFirewallConfigRulesValue$outboundSchema: z.ZodType<
|
|
3014
|
+
PutFirewallConfigRulesValue$Outbound,
|
|
2825
3015
|
z.ZodTypeDef,
|
|
2826
|
-
|
|
3016
|
+
PutFirewallConfigRulesValue
|
|
2827
3017
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
2828
3018
|
|
|
2829
|
-
export function
|
|
2830
|
-
|
|
3019
|
+
export function putFirewallConfigRulesValueToJSON(
|
|
3020
|
+
putFirewallConfigRulesValue: PutFirewallConfigRulesValue,
|
|
2831
3021
|
): string {
|
|
2832
3022
|
return JSON.stringify(
|
|
2833
|
-
|
|
3023
|
+
PutFirewallConfigRulesValue$outboundSchema.parse(
|
|
3024
|
+
putFirewallConfigRulesValue,
|
|
3025
|
+
),
|
|
2834
3026
|
);
|
|
2835
3027
|
}
|
|
2836
|
-
export function
|
|
3028
|
+
export function putFirewallConfigRulesValueFromJSON(
|
|
2837
3029
|
jsonString: string,
|
|
2838
|
-
): SafeParseResult<
|
|
3030
|
+
): SafeParseResult<PutFirewallConfigRulesValue, SDKValidationError> {
|
|
2839
3031
|
return safeParse(
|
|
2840
3032
|
jsonString,
|
|
2841
|
-
(x) =>
|
|
2842
|
-
`Failed to parse '
|
|
3033
|
+
(x) => PutFirewallConfigRulesValue$inboundSchema.parse(JSON.parse(x)),
|
|
3034
|
+
`Failed to parse 'PutFirewallConfigRulesValue' from JSON`,
|
|
2843
3035
|
);
|
|
2844
3036
|
}
|
|
2845
3037
|
|
|
2846
3038
|
/** @internal */
|
|
2847
|
-
export const
|
|
2848
|
-
|
|
3039
|
+
export const PutFirewallConfigRulesConditions$inboundSchema: z.ZodType<
|
|
3040
|
+
PutFirewallConfigRulesConditions,
|
|
2849
3041
|
z.ZodTypeDef,
|
|
2850
3042
|
unknown
|
|
2851
3043
|
> = z.object({
|
|
2852
|
-
type:
|
|
2853
|
-
op:
|
|
3044
|
+
type: PutFirewallConfigRulesType$inboundSchema,
|
|
3045
|
+
op: PutFirewallConfigRulesOp$inboundSchema,
|
|
2854
3046
|
neg: z.boolean().optional(),
|
|
2855
3047
|
key: z.string().optional(),
|
|
2856
3048
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
2857
3049
|
});
|
|
2858
3050
|
/** @internal */
|
|
2859
|
-
export type
|
|
3051
|
+
export type PutFirewallConfigRulesConditions$Outbound = {
|
|
2860
3052
|
type: string;
|
|
2861
3053
|
op: string;
|
|
2862
3054
|
neg?: boolean | undefined;
|
|
@@ -2865,131 +3057,131 @@ export type PutFirewallConfigConditions$Outbound = {
|
|
|
2865
3057
|
};
|
|
2866
3058
|
|
|
2867
3059
|
/** @internal */
|
|
2868
|
-
export const
|
|
2869
|
-
|
|
3060
|
+
export const PutFirewallConfigRulesConditions$outboundSchema: z.ZodType<
|
|
3061
|
+
PutFirewallConfigRulesConditions$Outbound,
|
|
2870
3062
|
z.ZodTypeDef,
|
|
2871
|
-
|
|
3063
|
+
PutFirewallConfigRulesConditions
|
|
2872
3064
|
> = z.object({
|
|
2873
|
-
type:
|
|
2874
|
-
op:
|
|
3065
|
+
type: PutFirewallConfigRulesType$outboundSchema,
|
|
3066
|
+
op: PutFirewallConfigRulesOp$outboundSchema,
|
|
2875
3067
|
neg: z.boolean().optional(),
|
|
2876
3068
|
key: z.string().optional(),
|
|
2877
3069
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
2878
3070
|
});
|
|
2879
3071
|
|
|
2880
|
-
export function
|
|
2881
|
-
|
|
3072
|
+
export function putFirewallConfigRulesConditionsToJSON(
|
|
3073
|
+
putFirewallConfigRulesConditions: PutFirewallConfigRulesConditions,
|
|
2882
3074
|
): string {
|
|
2883
3075
|
return JSON.stringify(
|
|
2884
|
-
|
|
2885
|
-
|
|
3076
|
+
PutFirewallConfigRulesConditions$outboundSchema.parse(
|
|
3077
|
+
putFirewallConfigRulesConditions,
|
|
2886
3078
|
),
|
|
2887
3079
|
);
|
|
2888
3080
|
}
|
|
2889
|
-
export function
|
|
3081
|
+
export function putFirewallConfigRulesConditionsFromJSON(
|
|
2890
3082
|
jsonString: string,
|
|
2891
|
-
): SafeParseResult<
|
|
3083
|
+
): SafeParseResult<PutFirewallConfigRulesConditions, SDKValidationError> {
|
|
2892
3084
|
return safeParse(
|
|
2893
3085
|
jsonString,
|
|
2894
|
-
(x) =>
|
|
2895
|
-
`Failed to parse '
|
|
3086
|
+
(x) => PutFirewallConfigRulesConditions$inboundSchema.parse(JSON.parse(x)),
|
|
3087
|
+
`Failed to parse 'PutFirewallConfigRulesConditions' from JSON`,
|
|
2896
3088
|
);
|
|
2897
3089
|
}
|
|
2898
3090
|
|
|
2899
3091
|
/** @internal */
|
|
2900
|
-
export const
|
|
2901
|
-
|
|
3092
|
+
export const PutFirewallConfigRulesConditionGroup$inboundSchema: z.ZodType<
|
|
3093
|
+
PutFirewallConfigRulesConditionGroup,
|
|
2902
3094
|
z.ZodTypeDef,
|
|
2903
3095
|
unknown
|
|
2904
3096
|
> = z.object({
|
|
2905
|
-
conditions: z.array(
|
|
3097
|
+
conditions: z.array(
|
|
3098
|
+
z.lazy(() => PutFirewallConfigRulesConditions$inboundSchema),
|
|
3099
|
+
),
|
|
2906
3100
|
});
|
|
2907
3101
|
/** @internal */
|
|
2908
|
-
export type
|
|
2909
|
-
conditions: Array<
|
|
3102
|
+
export type PutFirewallConfigRulesConditionGroup$Outbound = {
|
|
3103
|
+
conditions: Array<PutFirewallConfigRulesConditions$Outbound>;
|
|
2910
3104
|
};
|
|
2911
3105
|
|
|
2912
3106
|
/** @internal */
|
|
2913
|
-
export const
|
|
2914
|
-
|
|
3107
|
+
export const PutFirewallConfigRulesConditionGroup$outboundSchema: z.ZodType<
|
|
3108
|
+
PutFirewallConfigRulesConditionGroup$Outbound,
|
|
2915
3109
|
z.ZodTypeDef,
|
|
2916
|
-
|
|
3110
|
+
PutFirewallConfigRulesConditionGroup
|
|
2917
3111
|
> = z.object({
|
|
2918
|
-
conditions: z.array(
|
|
3112
|
+
conditions: z.array(
|
|
3113
|
+
z.lazy(() => PutFirewallConfigRulesConditions$outboundSchema),
|
|
3114
|
+
),
|
|
2919
3115
|
});
|
|
2920
3116
|
|
|
2921
|
-
export function
|
|
2922
|
-
|
|
3117
|
+
export function putFirewallConfigRulesConditionGroupToJSON(
|
|
3118
|
+
putFirewallConfigRulesConditionGroup: PutFirewallConfigRulesConditionGroup,
|
|
2923
3119
|
): string {
|
|
2924
3120
|
return JSON.stringify(
|
|
2925
|
-
|
|
2926
|
-
|
|
3121
|
+
PutFirewallConfigRulesConditionGroup$outboundSchema.parse(
|
|
3122
|
+
putFirewallConfigRulesConditionGroup,
|
|
2927
3123
|
),
|
|
2928
3124
|
);
|
|
2929
3125
|
}
|
|
2930
|
-
export function
|
|
3126
|
+
export function putFirewallConfigRulesConditionGroupFromJSON(
|
|
2931
3127
|
jsonString: string,
|
|
2932
|
-
): SafeParseResult<
|
|
3128
|
+
): SafeParseResult<PutFirewallConfigRulesConditionGroup, SDKValidationError> {
|
|
2933
3129
|
return safeParse(
|
|
2934
3130
|
jsonString,
|
|
2935
|
-
(x) =>
|
|
2936
|
-
|
|
3131
|
+
(x) =>
|
|
3132
|
+
PutFirewallConfigRulesConditionGroup$inboundSchema.parse(JSON.parse(x)),
|
|
3133
|
+
`Failed to parse 'PutFirewallConfigRulesConditionGroup' from JSON`,
|
|
2937
3134
|
);
|
|
2938
3135
|
}
|
|
2939
3136
|
|
|
2940
3137
|
/** @internal */
|
|
2941
|
-
export const
|
|
2942
|
-
z.ZodNativeEnum<
|
|
2943
|
-
|
|
2944
|
-
> = z.nativeEnum(
|
|
2945
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction,
|
|
2946
|
-
);
|
|
3138
|
+
export const PutFirewallConfigRulesSecurityResponse200Action$inboundSchema:
|
|
3139
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponse200Action> = z
|
|
3140
|
+
.nativeEnum(PutFirewallConfigRulesSecurityResponse200Action);
|
|
2947
3141
|
/** @internal */
|
|
2948
|
-
export const
|
|
2949
|
-
z.ZodNativeEnum<
|
|
2950
|
-
|
|
2951
|
-
> =
|
|
2952
|
-
PutFirewallConfigSecurityResponse200ApplicationJSONResponseBodyActiveRulesAction$inboundSchema;
|
|
3142
|
+
export const PutFirewallConfigRulesSecurityResponse200Action$outboundSchema:
|
|
3143
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponse200Action> =
|
|
3144
|
+
PutFirewallConfigRulesSecurityResponse200Action$inboundSchema;
|
|
2953
3145
|
|
|
2954
3146
|
/** @internal */
|
|
2955
|
-
export const
|
|
2956
|
-
typeof
|
|
2957
|
-
> = z.nativeEnum(
|
|
3147
|
+
export const PutFirewallConfigRulesAlgo$inboundSchema: z.ZodNativeEnum<
|
|
3148
|
+
typeof PutFirewallConfigRulesAlgo
|
|
3149
|
+
> = z.nativeEnum(PutFirewallConfigRulesAlgo);
|
|
2958
3150
|
/** @internal */
|
|
2959
|
-
export const
|
|
2960
|
-
typeof
|
|
2961
|
-
> =
|
|
3151
|
+
export const PutFirewallConfigRulesAlgo$outboundSchema: z.ZodNativeEnum<
|
|
3152
|
+
typeof PutFirewallConfigRulesAlgo
|
|
3153
|
+
> = PutFirewallConfigRulesAlgo$inboundSchema;
|
|
2962
3154
|
|
|
2963
3155
|
/** @internal */
|
|
2964
|
-
export const
|
|
3156
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema:
|
|
2965
3157
|
z.ZodNativeEnum<
|
|
2966
|
-
typeof
|
|
3158
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
2967
3159
|
> = z.nativeEnum(
|
|
2968
|
-
|
|
3160
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction,
|
|
2969
3161
|
);
|
|
2970
3162
|
/** @internal */
|
|
2971
|
-
export const
|
|
3163
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema:
|
|
2972
3164
|
z.ZodNativeEnum<
|
|
2973
|
-
typeof
|
|
3165
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction
|
|
2974
3166
|
> =
|
|
2975
|
-
|
|
3167
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema;
|
|
2976
3168
|
|
|
2977
3169
|
/** @internal */
|
|
2978
|
-
export const
|
|
2979
|
-
|
|
3170
|
+
export const PutFirewallConfigRulesRateLimit$inboundSchema: z.ZodType<
|
|
3171
|
+
PutFirewallConfigRulesRateLimit,
|
|
2980
3172
|
z.ZodTypeDef,
|
|
2981
3173
|
unknown
|
|
2982
3174
|
> = z.object({
|
|
2983
|
-
algo:
|
|
3175
|
+
algo: PutFirewallConfigRulesAlgo$inboundSchema,
|
|
2984
3176
|
window: z.number(),
|
|
2985
3177
|
limit: z.number(),
|
|
2986
3178
|
keys: z.array(z.string()),
|
|
2987
3179
|
action: z.nullable(
|
|
2988
|
-
|
|
3180
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$inboundSchema,
|
|
2989
3181
|
).optional(),
|
|
2990
3182
|
});
|
|
2991
3183
|
/** @internal */
|
|
2992
|
-
export type
|
|
3184
|
+
export type PutFirewallConfigRulesRateLimit$Outbound = {
|
|
2993
3185
|
algo: string;
|
|
2994
3186
|
window: number;
|
|
2995
3187
|
limit: number;
|
|
@@ -2998,40 +3190,42 @@ export type PutFirewallConfigRateLimit$Outbound = {
|
|
|
2998
3190
|
};
|
|
2999
3191
|
|
|
3000
3192
|
/** @internal */
|
|
3001
|
-
export const
|
|
3002
|
-
|
|
3193
|
+
export const PutFirewallConfigRulesRateLimit$outboundSchema: z.ZodType<
|
|
3194
|
+
PutFirewallConfigRulesRateLimit$Outbound,
|
|
3003
3195
|
z.ZodTypeDef,
|
|
3004
|
-
|
|
3196
|
+
PutFirewallConfigRulesRateLimit
|
|
3005
3197
|
> = z.object({
|
|
3006
|
-
algo:
|
|
3198
|
+
algo: PutFirewallConfigRulesAlgo$outboundSchema,
|
|
3007
3199
|
window: z.number(),
|
|
3008
3200
|
limit: z.number(),
|
|
3009
3201
|
keys: z.array(z.string()),
|
|
3010
3202
|
action: z.nullable(
|
|
3011
|
-
|
|
3203
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONResponseBodyAction$outboundSchema,
|
|
3012
3204
|
).optional(),
|
|
3013
3205
|
});
|
|
3014
3206
|
|
|
3015
|
-
export function
|
|
3016
|
-
|
|
3207
|
+
export function putFirewallConfigRulesRateLimitToJSON(
|
|
3208
|
+
putFirewallConfigRulesRateLimit: PutFirewallConfigRulesRateLimit,
|
|
3017
3209
|
): string {
|
|
3018
3210
|
return JSON.stringify(
|
|
3019
|
-
|
|
3211
|
+
PutFirewallConfigRulesRateLimit$outboundSchema.parse(
|
|
3212
|
+
putFirewallConfigRulesRateLimit,
|
|
3213
|
+
),
|
|
3020
3214
|
);
|
|
3021
3215
|
}
|
|
3022
|
-
export function
|
|
3216
|
+
export function putFirewallConfigRulesRateLimitFromJSON(
|
|
3023
3217
|
jsonString: string,
|
|
3024
|
-
): SafeParseResult<
|
|
3218
|
+
): SafeParseResult<PutFirewallConfigRulesRateLimit, SDKValidationError> {
|
|
3025
3219
|
return safeParse(
|
|
3026
3220
|
jsonString,
|
|
3027
|
-
(x) =>
|
|
3028
|
-
`Failed to parse '
|
|
3221
|
+
(x) => PutFirewallConfigRulesRateLimit$inboundSchema.parse(JSON.parse(x)),
|
|
3222
|
+
`Failed to parse 'PutFirewallConfigRulesRateLimit' from JSON`,
|
|
3029
3223
|
);
|
|
3030
3224
|
}
|
|
3031
3225
|
|
|
3032
3226
|
/** @internal */
|
|
3033
|
-
export const
|
|
3034
|
-
|
|
3227
|
+
export const PutFirewallConfigRulesRedirect$inboundSchema: z.ZodType<
|
|
3228
|
+
PutFirewallConfigRulesRedirect,
|
|
3035
3229
|
z.ZodTypeDef,
|
|
3036
3230
|
unknown
|
|
3037
3231
|
> = z.object({
|
|
@@ -3039,146 +3233,147 @@ export const PutFirewallConfigRedirect$inboundSchema: z.ZodType<
|
|
|
3039
3233
|
permanent: z.boolean(),
|
|
3040
3234
|
});
|
|
3041
3235
|
/** @internal */
|
|
3042
|
-
export type
|
|
3236
|
+
export type PutFirewallConfigRulesRedirect$Outbound = {
|
|
3043
3237
|
location: string;
|
|
3044
3238
|
permanent: boolean;
|
|
3045
3239
|
};
|
|
3046
3240
|
|
|
3047
3241
|
/** @internal */
|
|
3048
|
-
export const
|
|
3049
|
-
|
|
3242
|
+
export const PutFirewallConfigRulesRedirect$outboundSchema: z.ZodType<
|
|
3243
|
+
PutFirewallConfigRulesRedirect$Outbound,
|
|
3050
3244
|
z.ZodTypeDef,
|
|
3051
|
-
|
|
3245
|
+
PutFirewallConfigRulesRedirect
|
|
3052
3246
|
> = z.object({
|
|
3053
3247
|
location: z.string(),
|
|
3054
3248
|
permanent: z.boolean(),
|
|
3055
3249
|
});
|
|
3056
3250
|
|
|
3057
|
-
export function
|
|
3058
|
-
|
|
3251
|
+
export function putFirewallConfigRulesRedirectToJSON(
|
|
3252
|
+
putFirewallConfigRulesRedirect: PutFirewallConfigRulesRedirect,
|
|
3059
3253
|
): string {
|
|
3060
3254
|
return JSON.stringify(
|
|
3061
|
-
|
|
3255
|
+
PutFirewallConfigRulesRedirect$outboundSchema.parse(
|
|
3256
|
+
putFirewallConfigRulesRedirect,
|
|
3257
|
+
),
|
|
3062
3258
|
);
|
|
3063
3259
|
}
|
|
3064
|
-
export function
|
|
3260
|
+
export function putFirewallConfigRulesRedirectFromJSON(
|
|
3065
3261
|
jsonString: string,
|
|
3066
|
-
): SafeParseResult<
|
|
3262
|
+
): SafeParseResult<PutFirewallConfigRulesRedirect, SDKValidationError> {
|
|
3067
3263
|
return safeParse(
|
|
3068
3264
|
jsonString,
|
|
3069
|
-
(x) =>
|
|
3070
|
-
`Failed to parse '
|
|
3265
|
+
(x) => PutFirewallConfigRulesRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
3266
|
+
`Failed to parse 'PutFirewallConfigRulesRedirect' from JSON`,
|
|
3071
3267
|
);
|
|
3072
3268
|
}
|
|
3073
3269
|
|
|
3074
3270
|
/** @internal */
|
|
3075
|
-
export const
|
|
3076
|
-
|
|
3271
|
+
export const PutFirewallConfigRulesMitigate$inboundSchema: z.ZodType<
|
|
3272
|
+
PutFirewallConfigRulesMitigate,
|
|
3077
3273
|
z.ZodTypeDef,
|
|
3078
3274
|
unknown
|
|
3079
3275
|
> = z.object({
|
|
3080
|
-
action:
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
redirect: z.nullable(
|
|
3085
|
-
.
|
|
3276
|
+
action: PutFirewallConfigRulesSecurityResponse200Action$inboundSchema,
|
|
3277
|
+
rateLimit: z.nullable(
|
|
3278
|
+
z.lazy(() => PutFirewallConfigRulesRateLimit$inboundSchema),
|
|
3279
|
+
).optional(),
|
|
3280
|
+
redirect: z.nullable(
|
|
3281
|
+
z.lazy(() => PutFirewallConfigRulesRedirect$inboundSchema),
|
|
3282
|
+
).optional(),
|
|
3086
3283
|
actionDuration: z.nullable(z.string()).optional(),
|
|
3087
3284
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3088
3285
|
});
|
|
3089
3286
|
/** @internal */
|
|
3090
|
-
export type
|
|
3287
|
+
export type PutFirewallConfigRulesMitigate$Outbound = {
|
|
3091
3288
|
action: string;
|
|
3092
|
-
rateLimit?:
|
|
3093
|
-
redirect?:
|
|
3289
|
+
rateLimit?: PutFirewallConfigRulesRateLimit$Outbound | null | undefined;
|
|
3290
|
+
redirect?: PutFirewallConfigRulesRedirect$Outbound | null | undefined;
|
|
3094
3291
|
actionDuration?: string | null | undefined;
|
|
3095
3292
|
bypassSystem?: boolean | null | undefined;
|
|
3096
3293
|
};
|
|
3097
3294
|
|
|
3098
3295
|
/** @internal */
|
|
3099
|
-
export const
|
|
3100
|
-
|
|
3296
|
+
export const PutFirewallConfigRulesMitigate$outboundSchema: z.ZodType<
|
|
3297
|
+
PutFirewallConfigRulesMitigate$Outbound,
|
|
3101
3298
|
z.ZodTypeDef,
|
|
3102
|
-
|
|
3299
|
+
PutFirewallConfigRulesMitigate
|
|
3103
3300
|
> = z.object({
|
|
3104
|
-
action:
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
redirect: z.nullable(
|
|
3109
|
-
.
|
|
3301
|
+
action: PutFirewallConfigRulesSecurityResponse200Action$outboundSchema,
|
|
3302
|
+
rateLimit: z.nullable(
|
|
3303
|
+
z.lazy(() => PutFirewallConfigRulesRateLimit$outboundSchema),
|
|
3304
|
+
).optional(),
|
|
3305
|
+
redirect: z.nullable(
|
|
3306
|
+
z.lazy(() => PutFirewallConfigRulesRedirect$outboundSchema),
|
|
3307
|
+
).optional(),
|
|
3110
3308
|
actionDuration: z.nullable(z.string()).optional(),
|
|
3111
3309
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3112
3310
|
});
|
|
3113
3311
|
|
|
3114
|
-
export function
|
|
3115
|
-
|
|
3312
|
+
export function putFirewallConfigRulesMitigateToJSON(
|
|
3313
|
+
putFirewallConfigRulesMitigate: PutFirewallConfigRulesMitigate,
|
|
3116
3314
|
): string {
|
|
3117
3315
|
return JSON.stringify(
|
|
3118
|
-
|
|
3316
|
+
PutFirewallConfigRulesMitigate$outboundSchema.parse(
|
|
3317
|
+
putFirewallConfigRulesMitigate,
|
|
3318
|
+
),
|
|
3119
3319
|
);
|
|
3120
3320
|
}
|
|
3121
|
-
export function
|
|
3321
|
+
export function putFirewallConfigRulesMitigateFromJSON(
|
|
3122
3322
|
jsonString: string,
|
|
3123
|
-
): SafeParseResult<
|
|
3323
|
+
): SafeParseResult<PutFirewallConfigRulesMitigate, SDKValidationError> {
|
|
3124
3324
|
return safeParse(
|
|
3125
3325
|
jsonString,
|
|
3126
|
-
(x) =>
|
|
3127
|
-
`Failed to parse '
|
|
3326
|
+
(x) => PutFirewallConfigRulesMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
3327
|
+
`Failed to parse 'PutFirewallConfigRulesMitigate' from JSON`,
|
|
3128
3328
|
);
|
|
3129
3329
|
}
|
|
3130
3330
|
|
|
3131
3331
|
/** @internal */
|
|
3132
|
-
export const
|
|
3133
|
-
|
|
3332
|
+
export const PutFirewallConfigRulesAction$inboundSchema: z.ZodType<
|
|
3333
|
+
PutFirewallConfigRulesAction,
|
|
3134
3334
|
z.ZodTypeDef,
|
|
3135
3335
|
unknown
|
|
3136
3336
|
> = z.object({
|
|
3137
|
-
mitigate: z.lazy(() =>
|
|
3337
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesMitigate$inboundSchema)
|
|
3338
|
+
.optional(),
|
|
3138
3339
|
});
|
|
3139
3340
|
/** @internal */
|
|
3140
|
-
export type
|
|
3141
|
-
mitigate?:
|
|
3341
|
+
export type PutFirewallConfigRulesAction$Outbound = {
|
|
3342
|
+
mitigate?: PutFirewallConfigRulesMitigate$Outbound | undefined;
|
|
3142
3343
|
};
|
|
3143
3344
|
|
|
3144
3345
|
/** @internal */
|
|
3145
|
-
export const
|
|
3146
|
-
|
|
3346
|
+
export const PutFirewallConfigRulesAction$outboundSchema: z.ZodType<
|
|
3347
|
+
PutFirewallConfigRulesAction$Outbound,
|
|
3147
3348
|
z.ZodTypeDef,
|
|
3148
|
-
|
|
3349
|
+
PutFirewallConfigRulesAction
|
|
3149
3350
|
> = z.object({
|
|
3150
|
-
mitigate: z.lazy(() =>
|
|
3351
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesMitigate$outboundSchema)
|
|
3352
|
+
.optional(),
|
|
3151
3353
|
});
|
|
3152
3354
|
|
|
3153
|
-
export function
|
|
3154
|
-
|
|
3155
|
-
PutFirewallConfigSecurityResponseAction,
|
|
3355
|
+
export function putFirewallConfigRulesActionToJSON(
|
|
3356
|
+
putFirewallConfigRulesAction: PutFirewallConfigRulesAction,
|
|
3156
3357
|
): string {
|
|
3157
3358
|
return JSON.stringify(
|
|
3158
|
-
|
|
3159
|
-
|
|
3359
|
+
PutFirewallConfigRulesAction$outboundSchema.parse(
|
|
3360
|
+
putFirewallConfigRulesAction,
|
|
3160
3361
|
),
|
|
3161
3362
|
);
|
|
3162
3363
|
}
|
|
3163
|
-
export function
|
|
3364
|
+
export function putFirewallConfigRulesActionFromJSON(
|
|
3164
3365
|
jsonString: string,
|
|
3165
|
-
): SafeParseResult<
|
|
3166
|
-
PutFirewallConfigSecurityResponseAction,
|
|
3167
|
-
SDKValidationError
|
|
3168
|
-
> {
|
|
3366
|
+
): SafeParseResult<PutFirewallConfigRulesAction, SDKValidationError> {
|
|
3169
3367
|
return safeParse(
|
|
3170
3368
|
jsonString,
|
|
3171
|
-
(x) =>
|
|
3172
|
-
|
|
3173
|
-
JSON.parse(x),
|
|
3174
|
-
),
|
|
3175
|
-
`Failed to parse 'PutFirewallConfigSecurityResponseAction' from JSON`,
|
|
3369
|
+
(x) => PutFirewallConfigRulesAction$inboundSchema.parse(JSON.parse(x)),
|
|
3370
|
+
`Failed to parse 'PutFirewallConfigRulesAction' from JSON`,
|
|
3176
3371
|
);
|
|
3177
3372
|
}
|
|
3178
3373
|
|
|
3179
3374
|
/** @internal */
|
|
3180
|
-
export const
|
|
3181
|
-
|
|
3375
|
+
export const PutFirewallConfigRules2$inboundSchema: z.ZodType<
|
|
3376
|
+
PutFirewallConfigRules2,
|
|
3182
3377
|
z.ZodTypeDef,
|
|
3183
3378
|
unknown
|
|
3184
3379
|
> = z.object({
|
|
@@ -3187,75 +3382,609 @@ export const PutFirewallConfigSecurityRules$inboundSchema: z.ZodType<
|
|
|
3187
3382
|
description: z.string().optional(),
|
|
3188
3383
|
active: z.boolean(),
|
|
3189
3384
|
conditionGroup: z.array(
|
|
3190
|
-
z.lazy(() =>
|
|
3385
|
+
z.lazy(() => PutFirewallConfigRulesConditionGroup$inboundSchema),
|
|
3191
3386
|
),
|
|
3192
|
-
action: z.lazy(() =>
|
|
3387
|
+
action: z.lazy(() => PutFirewallConfigRulesAction$inboundSchema),
|
|
3388
|
+
valid: z.boolean(),
|
|
3389
|
+
validationErrors: z.array(z.string()),
|
|
3193
3390
|
});
|
|
3194
3391
|
/** @internal */
|
|
3195
|
-
export type
|
|
3392
|
+
export type PutFirewallConfigRules2$Outbound = {
|
|
3196
3393
|
id: string;
|
|
3197
3394
|
name: string;
|
|
3198
3395
|
description?: string | undefined;
|
|
3199
3396
|
active: boolean;
|
|
3200
|
-
conditionGroup: Array<
|
|
3201
|
-
action:
|
|
3397
|
+
conditionGroup: Array<PutFirewallConfigRulesConditionGroup$Outbound>;
|
|
3398
|
+
action: PutFirewallConfigRulesAction$Outbound;
|
|
3399
|
+
valid: boolean;
|
|
3400
|
+
validationErrors: Array<string>;
|
|
3202
3401
|
};
|
|
3203
3402
|
|
|
3204
3403
|
/** @internal */
|
|
3205
|
-
export const
|
|
3206
|
-
|
|
3404
|
+
export const PutFirewallConfigRules2$outboundSchema: z.ZodType<
|
|
3405
|
+
PutFirewallConfigRules2$Outbound,
|
|
3207
3406
|
z.ZodTypeDef,
|
|
3208
|
-
|
|
3407
|
+
PutFirewallConfigRules2
|
|
3209
3408
|
> = z.object({
|
|
3210
3409
|
id: z.string(),
|
|
3211
3410
|
name: z.string(),
|
|
3212
3411
|
description: z.string().optional(),
|
|
3213
3412
|
active: z.boolean(),
|
|
3214
3413
|
conditionGroup: z.array(
|
|
3215
|
-
z.lazy(() =>
|
|
3414
|
+
z.lazy(() => PutFirewallConfigRulesConditionGroup$outboundSchema),
|
|
3216
3415
|
),
|
|
3217
|
-
action: z.lazy(() =>
|
|
3416
|
+
action: z.lazy(() => PutFirewallConfigRulesAction$outboundSchema),
|
|
3417
|
+
valid: z.boolean(),
|
|
3418
|
+
validationErrors: z.array(z.string()),
|
|
3218
3419
|
});
|
|
3219
3420
|
|
|
3220
|
-
export function
|
|
3221
|
-
|
|
3421
|
+
export function putFirewallConfigRules2ToJSON(
|
|
3422
|
+
putFirewallConfigRules2: PutFirewallConfigRules2,
|
|
3222
3423
|
): string {
|
|
3223
3424
|
return JSON.stringify(
|
|
3224
|
-
|
|
3225
|
-
putFirewallConfigSecurityRules,
|
|
3226
|
-
),
|
|
3425
|
+
PutFirewallConfigRules2$outboundSchema.parse(putFirewallConfigRules2),
|
|
3227
3426
|
);
|
|
3228
3427
|
}
|
|
3229
|
-
export function
|
|
3428
|
+
export function putFirewallConfigRules2FromJSON(
|
|
3230
3429
|
jsonString: string,
|
|
3231
|
-
): SafeParseResult<
|
|
3430
|
+
): SafeParseResult<PutFirewallConfigRules2, SDKValidationError> {
|
|
3232
3431
|
return safeParse(
|
|
3233
3432
|
jsonString,
|
|
3234
|
-
(x) =>
|
|
3235
|
-
`Failed to parse '
|
|
3433
|
+
(x) => PutFirewallConfigRules2$inboundSchema.parse(JSON.parse(x)),
|
|
3434
|
+
`Failed to parse 'PutFirewallConfigRules2' from JSON`,
|
|
3236
3435
|
);
|
|
3237
3436
|
}
|
|
3238
3437
|
|
|
3239
3438
|
/** @internal */
|
|
3240
|
-
export const
|
|
3241
|
-
|
|
3242
|
-
|
|
3439
|
+
export const PutFirewallConfigRulesSecurityType$inboundSchema: z.ZodNativeEnum<
|
|
3440
|
+
typeof PutFirewallConfigRulesSecurityType
|
|
3441
|
+
> = z.nativeEnum(PutFirewallConfigRulesSecurityType);
|
|
3243
3442
|
/** @internal */
|
|
3244
|
-
export const
|
|
3245
|
-
|
|
3246
|
-
|
|
3443
|
+
export const PutFirewallConfigRulesSecurityType$outboundSchema: z.ZodNativeEnum<
|
|
3444
|
+
typeof PutFirewallConfigRulesSecurityType
|
|
3445
|
+
> = PutFirewallConfigRulesSecurityType$inboundSchema;
|
|
3247
3446
|
|
|
3248
3447
|
/** @internal */
|
|
3249
|
-
export const
|
|
3250
|
-
|
|
3448
|
+
export const PutFirewallConfigRulesSecurityOp$inboundSchema: z.ZodNativeEnum<
|
|
3449
|
+
typeof PutFirewallConfigRulesSecurityOp
|
|
3450
|
+
> = z.nativeEnum(PutFirewallConfigRulesSecurityOp);
|
|
3451
|
+
/** @internal */
|
|
3452
|
+
export const PutFirewallConfigRulesSecurityOp$outboundSchema: z.ZodNativeEnum<
|
|
3453
|
+
typeof PutFirewallConfigRulesSecurityOp
|
|
3454
|
+
> = PutFirewallConfigRulesSecurityOp$inboundSchema;
|
|
3455
|
+
|
|
3456
|
+
/** @internal */
|
|
3457
|
+
export const PutFirewallConfigRulesSecurityValue$inboundSchema: z.ZodType<
|
|
3458
|
+
PutFirewallConfigRulesSecurityValue,
|
|
3251
3459
|
z.ZodTypeDef,
|
|
3252
3460
|
unknown
|
|
3253
|
-
> = z.
|
|
3461
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
3462
|
+
/** @internal */
|
|
3463
|
+
export type PutFirewallConfigRulesSecurityValue$Outbound =
|
|
3464
|
+
| string
|
|
3465
|
+
| number
|
|
3466
|
+
| Array<string>;
|
|
3467
|
+
|
|
3468
|
+
/** @internal */
|
|
3469
|
+
export const PutFirewallConfigRulesSecurityValue$outboundSchema: z.ZodType<
|
|
3470
|
+
PutFirewallConfigRulesSecurityValue$Outbound,
|
|
3471
|
+
z.ZodTypeDef,
|
|
3472
|
+
PutFirewallConfigRulesSecurityValue
|
|
3473
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
3474
|
+
|
|
3475
|
+
export function putFirewallConfigRulesSecurityValueToJSON(
|
|
3476
|
+
putFirewallConfigRulesSecurityValue: PutFirewallConfigRulesSecurityValue,
|
|
3477
|
+
): string {
|
|
3478
|
+
return JSON.stringify(
|
|
3479
|
+
PutFirewallConfigRulesSecurityValue$outboundSchema.parse(
|
|
3480
|
+
putFirewallConfigRulesSecurityValue,
|
|
3481
|
+
),
|
|
3482
|
+
);
|
|
3483
|
+
}
|
|
3484
|
+
export function putFirewallConfigRulesSecurityValueFromJSON(
|
|
3485
|
+
jsonString: string,
|
|
3486
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityValue, SDKValidationError> {
|
|
3487
|
+
return safeParse(
|
|
3488
|
+
jsonString,
|
|
3489
|
+
(x) =>
|
|
3490
|
+
PutFirewallConfigRulesSecurityValue$inboundSchema.parse(JSON.parse(x)),
|
|
3491
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityValue' from JSON`,
|
|
3492
|
+
);
|
|
3493
|
+
}
|
|
3494
|
+
|
|
3495
|
+
/** @internal */
|
|
3496
|
+
export const PutFirewallConfigRulesSecurityConditions$inboundSchema: z.ZodType<
|
|
3497
|
+
PutFirewallConfigRulesSecurityConditions,
|
|
3498
|
+
z.ZodTypeDef,
|
|
3499
|
+
unknown
|
|
3500
|
+
> = z.object({
|
|
3501
|
+
type: PutFirewallConfigRulesSecurityType$inboundSchema,
|
|
3502
|
+
op: PutFirewallConfigRulesSecurityOp$inboundSchema,
|
|
3503
|
+
neg: z.boolean().optional(),
|
|
3504
|
+
key: z.string().optional(),
|
|
3505
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
3506
|
+
});
|
|
3507
|
+
/** @internal */
|
|
3508
|
+
export type PutFirewallConfigRulesSecurityConditions$Outbound = {
|
|
3509
|
+
type: string;
|
|
3510
|
+
op: string;
|
|
3511
|
+
neg?: boolean | undefined;
|
|
3512
|
+
key?: string | undefined;
|
|
3513
|
+
value?: string | number | Array<string> | undefined;
|
|
3514
|
+
};
|
|
3515
|
+
|
|
3516
|
+
/** @internal */
|
|
3517
|
+
export const PutFirewallConfigRulesSecurityConditions$outboundSchema: z.ZodType<
|
|
3518
|
+
PutFirewallConfigRulesSecurityConditions$Outbound,
|
|
3519
|
+
z.ZodTypeDef,
|
|
3520
|
+
PutFirewallConfigRulesSecurityConditions
|
|
3521
|
+
> = z.object({
|
|
3522
|
+
type: PutFirewallConfigRulesSecurityType$outboundSchema,
|
|
3523
|
+
op: PutFirewallConfigRulesSecurityOp$outboundSchema,
|
|
3524
|
+
neg: z.boolean().optional(),
|
|
3525
|
+
key: z.string().optional(),
|
|
3526
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
3527
|
+
});
|
|
3528
|
+
|
|
3529
|
+
export function putFirewallConfigRulesSecurityConditionsToJSON(
|
|
3530
|
+
putFirewallConfigRulesSecurityConditions:
|
|
3531
|
+
PutFirewallConfigRulesSecurityConditions,
|
|
3532
|
+
): string {
|
|
3533
|
+
return JSON.stringify(
|
|
3534
|
+
PutFirewallConfigRulesSecurityConditions$outboundSchema.parse(
|
|
3535
|
+
putFirewallConfigRulesSecurityConditions,
|
|
3536
|
+
),
|
|
3537
|
+
);
|
|
3538
|
+
}
|
|
3539
|
+
export function putFirewallConfigRulesSecurityConditionsFromJSON(
|
|
3540
|
+
jsonString: string,
|
|
3541
|
+
): SafeParseResult<
|
|
3542
|
+
PutFirewallConfigRulesSecurityConditions,
|
|
3543
|
+
SDKValidationError
|
|
3544
|
+
> {
|
|
3545
|
+
return safeParse(
|
|
3546
|
+
jsonString,
|
|
3547
|
+
(x) =>
|
|
3548
|
+
PutFirewallConfigRulesSecurityConditions$inboundSchema.parse(
|
|
3549
|
+
JSON.parse(x),
|
|
3550
|
+
),
|
|
3551
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityConditions' from JSON`,
|
|
3552
|
+
);
|
|
3553
|
+
}
|
|
3554
|
+
|
|
3555
|
+
/** @internal */
|
|
3556
|
+
export const PutFirewallConfigRulesSecurityConditionGroup$inboundSchema:
|
|
3557
|
+
z.ZodType<
|
|
3558
|
+
PutFirewallConfigRulesSecurityConditionGroup,
|
|
3559
|
+
z.ZodTypeDef,
|
|
3560
|
+
unknown
|
|
3561
|
+
> = z.object({
|
|
3562
|
+
conditions: z.array(
|
|
3563
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditions$inboundSchema),
|
|
3564
|
+
),
|
|
3565
|
+
});
|
|
3566
|
+
/** @internal */
|
|
3567
|
+
export type PutFirewallConfigRulesSecurityConditionGroup$Outbound = {
|
|
3568
|
+
conditions: Array<PutFirewallConfigRulesSecurityConditions$Outbound>;
|
|
3569
|
+
};
|
|
3570
|
+
|
|
3571
|
+
/** @internal */
|
|
3572
|
+
export const PutFirewallConfigRulesSecurityConditionGroup$outboundSchema:
|
|
3573
|
+
z.ZodType<
|
|
3574
|
+
PutFirewallConfigRulesSecurityConditionGroup$Outbound,
|
|
3575
|
+
z.ZodTypeDef,
|
|
3576
|
+
PutFirewallConfigRulesSecurityConditionGroup
|
|
3577
|
+
> = z.object({
|
|
3578
|
+
conditions: z.array(
|
|
3579
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditions$outboundSchema),
|
|
3580
|
+
),
|
|
3581
|
+
});
|
|
3582
|
+
|
|
3583
|
+
export function putFirewallConfigRulesSecurityConditionGroupToJSON(
|
|
3584
|
+
putFirewallConfigRulesSecurityConditionGroup:
|
|
3585
|
+
PutFirewallConfigRulesSecurityConditionGroup,
|
|
3586
|
+
): string {
|
|
3587
|
+
return JSON.stringify(
|
|
3588
|
+
PutFirewallConfigRulesSecurityConditionGroup$outboundSchema.parse(
|
|
3589
|
+
putFirewallConfigRulesSecurityConditionGroup,
|
|
3590
|
+
),
|
|
3591
|
+
);
|
|
3592
|
+
}
|
|
3593
|
+
export function putFirewallConfigRulesSecurityConditionGroupFromJSON(
|
|
3594
|
+
jsonString: string,
|
|
3595
|
+
): SafeParseResult<
|
|
3596
|
+
PutFirewallConfigRulesSecurityConditionGroup,
|
|
3597
|
+
SDKValidationError
|
|
3598
|
+
> {
|
|
3599
|
+
return safeParse(
|
|
3600
|
+
jsonString,
|
|
3601
|
+
(x) =>
|
|
3602
|
+
PutFirewallConfigRulesSecurityConditionGroup$inboundSchema.parse(
|
|
3603
|
+
JSON.parse(x),
|
|
3604
|
+
),
|
|
3605
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityConditionGroup' from JSON`,
|
|
3606
|
+
);
|
|
3607
|
+
}
|
|
3608
|
+
|
|
3609
|
+
/** @internal */
|
|
3610
|
+
export const PutFirewallConfigRulesSecurityResponseAction$inboundSchema:
|
|
3611
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponseAction> = z
|
|
3612
|
+
.nativeEnum(PutFirewallConfigRulesSecurityResponseAction);
|
|
3613
|
+
/** @internal */
|
|
3614
|
+
export const PutFirewallConfigRulesSecurityResponseAction$outboundSchema:
|
|
3615
|
+
z.ZodNativeEnum<typeof PutFirewallConfigRulesSecurityResponseAction> =
|
|
3616
|
+
PutFirewallConfigRulesSecurityResponseAction$inboundSchema;
|
|
3617
|
+
|
|
3618
|
+
/** @internal */
|
|
3619
|
+
export const PutFirewallConfigRulesSecurityAlgo$inboundSchema: z.ZodNativeEnum<
|
|
3620
|
+
typeof PutFirewallConfigRulesSecurityAlgo
|
|
3621
|
+
> = z.nativeEnum(PutFirewallConfigRulesSecurityAlgo);
|
|
3622
|
+
/** @internal */
|
|
3623
|
+
export const PutFirewallConfigRulesSecurityAlgo$outboundSchema: z.ZodNativeEnum<
|
|
3624
|
+
typeof PutFirewallConfigRulesSecurityAlgo
|
|
3625
|
+
> = PutFirewallConfigRulesSecurityAlgo$inboundSchema;
|
|
3626
|
+
|
|
3627
|
+
/** @internal */
|
|
3628
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema:
|
|
3629
|
+
z.ZodNativeEnum<
|
|
3630
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
3631
|
+
> = z.nativeEnum(
|
|
3632
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction,
|
|
3633
|
+
);
|
|
3634
|
+
/** @internal */
|
|
3635
|
+
export const PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema:
|
|
3636
|
+
z.ZodNativeEnum<
|
|
3637
|
+
typeof PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
3638
|
+
> =
|
|
3639
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
3640
|
+
|
|
3641
|
+
/** @internal */
|
|
3642
|
+
export const PutFirewallConfigRulesSecurityRateLimit$inboundSchema: z.ZodType<
|
|
3643
|
+
PutFirewallConfigRulesSecurityRateLimit,
|
|
3644
|
+
z.ZodTypeDef,
|
|
3645
|
+
unknown
|
|
3646
|
+
> = z.object({
|
|
3647
|
+
algo: PutFirewallConfigRulesSecurityAlgo$inboundSchema,
|
|
3648
|
+
window: z.number(),
|
|
3649
|
+
limit: z.number(),
|
|
3650
|
+
keys: z.array(z.string()),
|
|
3651
|
+
action: z.nullable(
|
|
3652
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema,
|
|
3653
|
+
).optional(),
|
|
3654
|
+
});
|
|
3655
|
+
/** @internal */
|
|
3656
|
+
export type PutFirewallConfigRulesSecurityRateLimit$Outbound = {
|
|
3657
|
+
algo: string;
|
|
3658
|
+
window: number;
|
|
3659
|
+
limit: number;
|
|
3660
|
+
keys: Array<string>;
|
|
3661
|
+
action?: string | null | undefined;
|
|
3662
|
+
};
|
|
3663
|
+
|
|
3664
|
+
/** @internal */
|
|
3665
|
+
export const PutFirewallConfigRulesSecurityRateLimit$outboundSchema: z.ZodType<
|
|
3666
|
+
PutFirewallConfigRulesSecurityRateLimit$Outbound,
|
|
3667
|
+
z.ZodTypeDef,
|
|
3668
|
+
PutFirewallConfigRulesSecurityRateLimit
|
|
3669
|
+
> = z.object({
|
|
3670
|
+
algo: PutFirewallConfigRulesSecurityAlgo$outboundSchema,
|
|
3671
|
+
window: z.number(),
|
|
3672
|
+
limit: z.number(),
|
|
3673
|
+
keys: z.array(z.string()),
|
|
3674
|
+
action: z.nullable(
|
|
3675
|
+
PutFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema,
|
|
3676
|
+
).optional(),
|
|
3677
|
+
});
|
|
3678
|
+
|
|
3679
|
+
export function putFirewallConfigRulesSecurityRateLimitToJSON(
|
|
3680
|
+
putFirewallConfigRulesSecurityRateLimit:
|
|
3681
|
+
PutFirewallConfigRulesSecurityRateLimit,
|
|
3682
|
+
): string {
|
|
3683
|
+
return JSON.stringify(
|
|
3684
|
+
PutFirewallConfigRulesSecurityRateLimit$outboundSchema.parse(
|
|
3685
|
+
putFirewallConfigRulesSecurityRateLimit,
|
|
3686
|
+
),
|
|
3687
|
+
);
|
|
3688
|
+
}
|
|
3689
|
+
export function putFirewallConfigRulesSecurityRateLimitFromJSON(
|
|
3690
|
+
jsonString: string,
|
|
3691
|
+
): SafeParseResult<
|
|
3692
|
+
PutFirewallConfigRulesSecurityRateLimit,
|
|
3693
|
+
SDKValidationError
|
|
3694
|
+
> {
|
|
3695
|
+
return safeParse(
|
|
3696
|
+
jsonString,
|
|
3697
|
+
(x) =>
|
|
3698
|
+
PutFirewallConfigRulesSecurityRateLimit$inboundSchema.parse(
|
|
3699
|
+
JSON.parse(x),
|
|
3700
|
+
),
|
|
3701
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityRateLimit' from JSON`,
|
|
3702
|
+
);
|
|
3703
|
+
}
|
|
3704
|
+
|
|
3705
|
+
/** @internal */
|
|
3706
|
+
export const PutFirewallConfigRulesSecurityRedirect$inboundSchema: z.ZodType<
|
|
3707
|
+
PutFirewallConfigRulesSecurityRedirect,
|
|
3708
|
+
z.ZodTypeDef,
|
|
3709
|
+
unknown
|
|
3710
|
+
> = z.object({
|
|
3711
|
+
location: z.string(),
|
|
3712
|
+
permanent: z.boolean(),
|
|
3713
|
+
});
|
|
3714
|
+
/** @internal */
|
|
3715
|
+
export type PutFirewallConfigRulesSecurityRedirect$Outbound = {
|
|
3716
|
+
location: string;
|
|
3717
|
+
permanent: boolean;
|
|
3718
|
+
};
|
|
3719
|
+
|
|
3720
|
+
/** @internal */
|
|
3721
|
+
export const PutFirewallConfigRulesSecurityRedirect$outboundSchema: z.ZodType<
|
|
3722
|
+
PutFirewallConfigRulesSecurityRedirect$Outbound,
|
|
3723
|
+
z.ZodTypeDef,
|
|
3724
|
+
PutFirewallConfigRulesSecurityRedirect
|
|
3725
|
+
> = z.object({
|
|
3726
|
+
location: z.string(),
|
|
3727
|
+
permanent: z.boolean(),
|
|
3728
|
+
});
|
|
3729
|
+
|
|
3730
|
+
export function putFirewallConfigRulesSecurityRedirectToJSON(
|
|
3731
|
+
putFirewallConfigRulesSecurityRedirect:
|
|
3732
|
+
PutFirewallConfigRulesSecurityRedirect,
|
|
3733
|
+
): string {
|
|
3734
|
+
return JSON.stringify(
|
|
3735
|
+
PutFirewallConfigRulesSecurityRedirect$outboundSchema.parse(
|
|
3736
|
+
putFirewallConfigRulesSecurityRedirect,
|
|
3737
|
+
),
|
|
3738
|
+
);
|
|
3739
|
+
}
|
|
3740
|
+
export function putFirewallConfigRulesSecurityRedirectFromJSON(
|
|
3741
|
+
jsonString: string,
|
|
3742
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityRedirect, SDKValidationError> {
|
|
3743
|
+
return safeParse(
|
|
3744
|
+
jsonString,
|
|
3745
|
+
(x) =>
|
|
3746
|
+
PutFirewallConfigRulesSecurityRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
3747
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityRedirect' from JSON`,
|
|
3748
|
+
);
|
|
3749
|
+
}
|
|
3750
|
+
|
|
3751
|
+
/** @internal */
|
|
3752
|
+
export const PutFirewallConfigRulesSecurityMitigate$inboundSchema: z.ZodType<
|
|
3753
|
+
PutFirewallConfigRulesSecurityMitigate,
|
|
3754
|
+
z.ZodTypeDef,
|
|
3755
|
+
unknown
|
|
3756
|
+
> = z.object({
|
|
3757
|
+
action: PutFirewallConfigRulesSecurityResponseAction$inboundSchema,
|
|
3758
|
+
rateLimit: z.nullable(
|
|
3759
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRateLimit$inboundSchema),
|
|
3760
|
+
).optional(),
|
|
3761
|
+
redirect: z.nullable(
|
|
3762
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRedirect$inboundSchema),
|
|
3763
|
+
).optional(),
|
|
3764
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
3765
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3766
|
+
});
|
|
3767
|
+
/** @internal */
|
|
3768
|
+
export type PutFirewallConfigRulesSecurityMitigate$Outbound = {
|
|
3769
|
+
action: string;
|
|
3770
|
+
rateLimit?:
|
|
3771
|
+
| PutFirewallConfigRulesSecurityRateLimit$Outbound
|
|
3772
|
+
| null
|
|
3773
|
+
| undefined;
|
|
3774
|
+
redirect?: PutFirewallConfigRulesSecurityRedirect$Outbound | null | undefined;
|
|
3775
|
+
actionDuration?: string | null | undefined;
|
|
3776
|
+
bypassSystem?: boolean | null | undefined;
|
|
3777
|
+
};
|
|
3778
|
+
|
|
3779
|
+
/** @internal */
|
|
3780
|
+
export const PutFirewallConfigRulesSecurityMitigate$outboundSchema: z.ZodType<
|
|
3781
|
+
PutFirewallConfigRulesSecurityMitigate$Outbound,
|
|
3782
|
+
z.ZodTypeDef,
|
|
3783
|
+
PutFirewallConfigRulesSecurityMitigate
|
|
3784
|
+
> = z.object({
|
|
3785
|
+
action: PutFirewallConfigRulesSecurityResponseAction$outboundSchema,
|
|
3786
|
+
rateLimit: z.nullable(
|
|
3787
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRateLimit$outboundSchema),
|
|
3788
|
+
).optional(),
|
|
3789
|
+
redirect: z.nullable(
|
|
3790
|
+
z.lazy(() => PutFirewallConfigRulesSecurityRedirect$outboundSchema),
|
|
3791
|
+
).optional(),
|
|
3792
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
3793
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
3794
|
+
});
|
|
3795
|
+
|
|
3796
|
+
export function putFirewallConfigRulesSecurityMitigateToJSON(
|
|
3797
|
+
putFirewallConfigRulesSecurityMitigate:
|
|
3798
|
+
PutFirewallConfigRulesSecurityMitigate,
|
|
3799
|
+
): string {
|
|
3800
|
+
return JSON.stringify(
|
|
3801
|
+
PutFirewallConfigRulesSecurityMitigate$outboundSchema.parse(
|
|
3802
|
+
putFirewallConfigRulesSecurityMitigate,
|
|
3803
|
+
),
|
|
3804
|
+
);
|
|
3805
|
+
}
|
|
3806
|
+
export function putFirewallConfigRulesSecurityMitigateFromJSON(
|
|
3807
|
+
jsonString: string,
|
|
3808
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityMitigate, SDKValidationError> {
|
|
3809
|
+
return safeParse(
|
|
3810
|
+
jsonString,
|
|
3811
|
+
(x) =>
|
|
3812
|
+
PutFirewallConfigRulesSecurityMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
3813
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityMitigate' from JSON`,
|
|
3814
|
+
);
|
|
3815
|
+
}
|
|
3816
|
+
|
|
3817
|
+
/** @internal */
|
|
3818
|
+
export const PutFirewallConfigRulesSecurityAction$inboundSchema: z.ZodType<
|
|
3819
|
+
PutFirewallConfigRulesSecurityAction,
|
|
3820
|
+
z.ZodTypeDef,
|
|
3821
|
+
unknown
|
|
3822
|
+
> = z.object({
|
|
3823
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesSecurityMitigate$inboundSchema)
|
|
3824
|
+
.optional(),
|
|
3825
|
+
});
|
|
3826
|
+
/** @internal */
|
|
3827
|
+
export type PutFirewallConfigRulesSecurityAction$Outbound = {
|
|
3828
|
+
mitigate?: PutFirewallConfigRulesSecurityMitigate$Outbound | undefined;
|
|
3829
|
+
};
|
|
3830
|
+
|
|
3831
|
+
/** @internal */
|
|
3832
|
+
export const PutFirewallConfigRulesSecurityAction$outboundSchema: z.ZodType<
|
|
3833
|
+
PutFirewallConfigRulesSecurityAction$Outbound,
|
|
3834
|
+
z.ZodTypeDef,
|
|
3835
|
+
PutFirewallConfigRulesSecurityAction
|
|
3836
|
+
> = z.object({
|
|
3837
|
+
mitigate: z.lazy(() => PutFirewallConfigRulesSecurityMitigate$outboundSchema)
|
|
3838
|
+
.optional(),
|
|
3839
|
+
});
|
|
3840
|
+
|
|
3841
|
+
export function putFirewallConfigRulesSecurityActionToJSON(
|
|
3842
|
+
putFirewallConfigRulesSecurityAction: PutFirewallConfigRulesSecurityAction,
|
|
3843
|
+
): string {
|
|
3844
|
+
return JSON.stringify(
|
|
3845
|
+
PutFirewallConfigRulesSecurityAction$outboundSchema.parse(
|
|
3846
|
+
putFirewallConfigRulesSecurityAction,
|
|
3847
|
+
),
|
|
3848
|
+
);
|
|
3849
|
+
}
|
|
3850
|
+
export function putFirewallConfigRulesSecurityActionFromJSON(
|
|
3851
|
+
jsonString: string,
|
|
3852
|
+
): SafeParseResult<PutFirewallConfigRulesSecurityAction, SDKValidationError> {
|
|
3853
|
+
return safeParse(
|
|
3854
|
+
jsonString,
|
|
3855
|
+
(x) =>
|
|
3856
|
+
PutFirewallConfigRulesSecurityAction$inboundSchema.parse(JSON.parse(x)),
|
|
3857
|
+
`Failed to parse 'PutFirewallConfigRulesSecurityAction' from JSON`,
|
|
3858
|
+
);
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3861
|
+
/** @internal */
|
|
3862
|
+
export const PutFirewallConfigRules1$inboundSchema: z.ZodType<
|
|
3863
|
+
PutFirewallConfigRules1,
|
|
3864
|
+
z.ZodTypeDef,
|
|
3865
|
+
unknown
|
|
3866
|
+
> = z.object({
|
|
3867
|
+
id: z.string(),
|
|
3868
|
+
name: z.string(),
|
|
3869
|
+
description: z.string().optional(),
|
|
3870
|
+
active: z.boolean(),
|
|
3871
|
+
conditionGroup: z.array(
|
|
3872
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditionGroup$inboundSchema),
|
|
3873
|
+
),
|
|
3874
|
+
action: z.lazy(() => PutFirewallConfigRulesSecurityAction$inboundSchema),
|
|
3875
|
+
valid: z.boolean(),
|
|
3876
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
3877
|
+
});
|
|
3878
|
+
/** @internal */
|
|
3879
|
+
export type PutFirewallConfigRules1$Outbound = {
|
|
3880
|
+
id: string;
|
|
3881
|
+
name: string;
|
|
3882
|
+
description?: string | undefined;
|
|
3883
|
+
active: boolean;
|
|
3884
|
+
conditionGroup: Array<PutFirewallConfigRulesSecurityConditionGroup$Outbound>;
|
|
3885
|
+
action: PutFirewallConfigRulesSecurityAction$Outbound;
|
|
3886
|
+
valid: boolean;
|
|
3887
|
+
validationErrors?: any | null | undefined;
|
|
3888
|
+
};
|
|
3889
|
+
|
|
3890
|
+
/** @internal */
|
|
3891
|
+
export const PutFirewallConfigRules1$outboundSchema: z.ZodType<
|
|
3892
|
+
PutFirewallConfigRules1$Outbound,
|
|
3893
|
+
z.ZodTypeDef,
|
|
3894
|
+
PutFirewallConfigRules1
|
|
3895
|
+
> = z.object({
|
|
3896
|
+
id: z.string(),
|
|
3897
|
+
name: z.string(),
|
|
3898
|
+
description: z.string().optional(),
|
|
3899
|
+
active: z.boolean(),
|
|
3900
|
+
conditionGroup: z.array(
|
|
3901
|
+
z.lazy(() => PutFirewallConfigRulesSecurityConditionGroup$outboundSchema),
|
|
3902
|
+
),
|
|
3903
|
+
action: z.lazy(() => PutFirewallConfigRulesSecurityAction$outboundSchema),
|
|
3904
|
+
valid: z.boolean(),
|
|
3905
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
3906
|
+
});
|
|
3907
|
+
|
|
3908
|
+
export function putFirewallConfigRules1ToJSON(
|
|
3909
|
+
putFirewallConfigRules1: PutFirewallConfigRules1,
|
|
3910
|
+
): string {
|
|
3911
|
+
return JSON.stringify(
|
|
3912
|
+
PutFirewallConfigRules1$outboundSchema.parse(putFirewallConfigRules1),
|
|
3913
|
+
);
|
|
3914
|
+
}
|
|
3915
|
+
export function putFirewallConfigRules1FromJSON(
|
|
3916
|
+
jsonString: string,
|
|
3917
|
+
): SafeParseResult<PutFirewallConfigRules1, SDKValidationError> {
|
|
3918
|
+
return safeParse(
|
|
3919
|
+
jsonString,
|
|
3920
|
+
(x) => PutFirewallConfigRules1$inboundSchema.parse(JSON.parse(x)),
|
|
3921
|
+
`Failed to parse 'PutFirewallConfigRules1' from JSON`,
|
|
3922
|
+
);
|
|
3923
|
+
}
|
|
3924
|
+
|
|
3925
|
+
/** @internal */
|
|
3926
|
+
export const PutFirewallConfigSecurityRules$inboundSchema: z.ZodType<
|
|
3927
|
+
PutFirewallConfigSecurityRules,
|
|
3928
|
+
z.ZodTypeDef,
|
|
3929
|
+
unknown
|
|
3930
|
+
> = z.union([
|
|
3931
|
+
z.lazy(() => PutFirewallConfigRules1$inboundSchema),
|
|
3932
|
+
z.lazy(() => PutFirewallConfigRules2$inboundSchema),
|
|
3933
|
+
]);
|
|
3934
|
+
/** @internal */
|
|
3935
|
+
export type PutFirewallConfigSecurityRules$Outbound =
|
|
3936
|
+
| PutFirewallConfigRules1$Outbound
|
|
3937
|
+
| PutFirewallConfigRules2$Outbound;
|
|
3938
|
+
|
|
3939
|
+
/** @internal */
|
|
3940
|
+
export const PutFirewallConfigSecurityRules$outboundSchema: z.ZodType<
|
|
3941
|
+
PutFirewallConfigSecurityRules$Outbound,
|
|
3942
|
+
z.ZodTypeDef,
|
|
3943
|
+
PutFirewallConfigSecurityRules
|
|
3944
|
+
> = z.union([
|
|
3945
|
+
z.lazy(() => PutFirewallConfigRules1$outboundSchema),
|
|
3946
|
+
z.lazy(() => PutFirewallConfigRules2$outboundSchema),
|
|
3947
|
+
]);
|
|
3948
|
+
|
|
3949
|
+
export function putFirewallConfigSecurityRulesToJSON(
|
|
3950
|
+
putFirewallConfigSecurityRules: PutFirewallConfigSecurityRules,
|
|
3951
|
+
): string {
|
|
3952
|
+
return JSON.stringify(
|
|
3953
|
+
PutFirewallConfigSecurityRules$outboundSchema.parse(
|
|
3954
|
+
putFirewallConfigSecurityRules,
|
|
3955
|
+
),
|
|
3956
|
+
);
|
|
3957
|
+
}
|
|
3958
|
+
export function putFirewallConfigSecurityRulesFromJSON(
|
|
3959
|
+
jsonString: string,
|
|
3960
|
+
): SafeParseResult<PutFirewallConfigSecurityRules, SDKValidationError> {
|
|
3961
|
+
return safeParse(
|
|
3962
|
+
jsonString,
|
|
3963
|
+
(x) => PutFirewallConfigSecurityRules$inboundSchema.parse(JSON.parse(x)),
|
|
3964
|
+
`Failed to parse 'PutFirewallConfigSecurityRules' from JSON`,
|
|
3965
|
+
);
|
|
3966
|
+
}
|
|
3967
|
+
|
|
3968
|
+
/** @internal */
|
|
3969
|
+
export const PutFirewallConfigSecurityResponseAction$inboundSchema:
|
|
3970
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponseAction> = z
|
|
3971
|
+
.nativeEnum(PutFirewallConfigSecurityResponseAction);
|
|
3972
|
+
/** @internal */
|
|
3973
|
+
export const PutFirewallConfigSecurityResponseAction$outboundSchema:
|
|
3974
|
+
z.ZodNativeEnum<typeof PutFirewallConfigSecurityResponseAction> =
|
|
3975
|
+
PutFirewallConfigSecurityResponseAction$inboundSchema;
|
|
3976
|
+
|
|
3977
|
+
/** @internal */
|
|
3978
|
+
export const PutFirewallConfigIps$inboundSchema: z.ZodType<
|
|
3979
|
+
PutFirewallConfigIps,
|
|
3980
|
+
z.ZodTypeDef,
|
|
3981
|
+
unknown
|
|
3982
|
+
> = z.object({
|
|
3254
3983
|
id: z.string(),
|
|
3255
3984
|
hostname: z.string(),
|
|
3256
3985
|
ip: z.string(),
|
|
3257
3986
|
notes: z.string().optional(),
|
|
3258
|
-
action:
|
|
3987
|
+
action: PutFirewallConfigSecurityResponseAction$inboundSchema,
|
|
3259
3988
|
});
|
|
3260
3989
|
/** @internal */
|
|
3261
3990
|
export type PutFirewallConfigIps$Outbound = {
|
|
@@ -3276,7 +4005,7 @@ export const PutFirewallConfigIps$outboundSchema: z.ZodType<
|
|
|
3276
4005
|
hostname: z.string(),
|
|
3277
4006
|
ip: z.string(),
|
|
3278
4007
|
notes: z.string().optional(),
|
|
3279
|
-
action:
|
|
4008
|
+
action: PutFirewallConfigSecurityResponseAction$outboundSchema,
|
|
3280
4009
|
});
|
|
3281
4010
|
|
|
3282
4011
|
export function putFirewallConfigIpsToJSON(
|
|
@@ -3607,7 +4336,12 @@ export const Active$inboundSchema: z.ZodType<Active, z.ZodTypeDef, unknown> = z
|
|
|
3607
4336
|
updatedAt: z.string(),
|
|
3608
4337
|
firewallEnabled: z.boolean(),
|
|
3609
4338
|
crs: z.lazy(() => PutFirewallConfigCrs$inboundSchema),
|
|
3610
|
-
rules: z.array(
|
|
4339
|
+
rules: z.array(
|
|
4340
|
+
z.union([
|
|
4341
|
+
z.lazy(() => PutFirewallConfigRules1$inboundSchema),
|
|
4342
|
+
z.lazy(() => PutFirewallConfigRules2$inboundSchema),
|
|
4343
|
+
]),
|
|
4344
|
+
),
|
|
3611
4345
|
ips: z.array(z.lazy(() => PutFirewallConfigIps$inboundSchema)),
|
|
3612
4346
|
changes: z.array(z.lazy(() => PutFirewallConfigChanges$inboundSchema)),
|
|
3613
4347
|
managedRules: z.lazy(() => PutFirewallConfigManagedRules$inboundSchema)
|
|
@@ -3623,7 +4357,9 @@ export type Active$Outbound = {
|
|
|
3623
4357
|
updatedAt: string;
|
|
3624
4358
|
firewallEnabled: boolean;
|
|
3625
4359
|
crs: PutFirewallConfigCrs$Outbound;
|
|
3626
|
-
rules: Array<
|
|
4360
|
+
rules: Array<
|
|
4361
|
+
PutFirewallConfigRules1$Outbound | PutFirewallConfigRules2$Outbound
|
|
4362
|
+
>;
|
|
3627
4363
|
ips: Array<PutFirewallConfigIps$Outbound>;
|
|
3628
4364
|
changes: Array<PutFirewallConfigChanges$Outbound>;
|
|
3629
4365
|
managedRules?: PutFirewallConfigManagedRules$Outbound | undefined;
|
|
@@ -3643,7 +4379,12 @@ export const Active$outboundSchema: z.ZodType<
|
|
|
3643
4379
|
updatedAt: z.string(),
|
|
3644
4380
|
firewallEnabled: z.boolean(),
|
|
3645
4381
|
crs: z.lazy(() => PutFirewallConfigCrs$outboundSchema),
|
|
3646
|
-
rules: z.array(
|
|
4382
|
+
rules: z.array(
|
|
4383
|
+
z.union([
|
|
4384
|
+
z.lazy(() => PutFirewallConfigRules1$outboundSchema),
|
|
4385
|
+
z.lazy(() => PutFirewallConfigRules2$outboundSchema),
|
|
4386
|
+
]),
|
|
4387
|
+
),
|
|
3647
4388
|
ips: z.array(z.lazy(() => PutFirewallConfigIps$outboundSchema)),
|
|
3648
4389
|
changes: z.array(z.lazy(() => PutFirewallConfigChanges$outboundSchema)),
|
|
3649
4390
|
managedRules: z.lazy(() => PutFirewallConfigManagedRules$outboundSchema)
|