@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
|
@@ -8,7 +8,7 @@ export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsS
|
|
|
8
8
|
Deny: "deny",
|
|
9
9
|
Log: "log",
|
|
10
10
|
};
|
|
11
|
-
export const
|
|
11
|
+
export const GetFirewallConfigSecurityAction = {
|
|
12
12
|
Deny: "deny",
|
|
13
13
|
Log: "log",
|
|
14
14
|
};
|
|
@@ -48,10 +48,7 @@ export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsJ
|
|
|
48
48
|
Deny: "deny",
|
|
49
49
|
Log: "log",
|
|
50
50
|
};
|
|
51
|
-
|
|
52
|
-
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
53
|
-
*/
|
|
54
|
-
export const GetFirewallConfigType = {
|
|
51
|
+
export const GetFirewallConfigRulesType = {
|
|
55
52
|
Host: "host",
|
|
56
53
|
Path: "path",
|
|
57
54
|
Method: "method",
|
|
@@ -76,8 +73,10 @@ export const GetFirewallConfigType = {
|
|
|
76
73
|
Ja3Digest: "ja3_digest",
|
|
77
74
|
RateLimitApiId: "rate_limit_api_id",
|
|
78
75
|
ServerAction: "server_action",
|
|
76
|
+
BotName: "bot_name",
|
|
77
|
+
BotCategory: "bot_category",
|
|
79
78
|
};
|
|
80
|
-
export const
|
|
79
|
+
export const GetFirewallConfigRulesOp = {
|
|
81
80
|
Re: "re",
|
|
82
81
|
Eq: "eq",
|
|
83
82
|
Ex: "ex",
|
|
@@ -93,7 +92,7 @@ export const GetFirewallConfigOp = {
|
|
|
93
92
|
Ninc: "ninc",
|
|
94
93
|
Neq: "neq",
|
|
95
94
|
};
|
|
96
|
-
export const
|
|
95
|
+
export const GetFirewallConfigRulesSecurityAction = {
|
|
97
96
|
Deny: "deny",
|
|
98
97
|
Log: "log",
|
|
99
98
|
Challenge: "challenge",
|
|
@@ -101,17 +100,79 @@ export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRule
|
|
|
101
100
|
RateLimit: "rate_limit",
|
|
102
101
|
Redirect: "redirect",
|
|
103
102
|
};
|
|
104
|
-
export const
|
|
103
|
+
export const GetFirewallConfigRulesAlgo = {
|
|
105
104
|
FixedWindow: "fixed_window",
|
|
106
105
|
TokenBucket: "token_bucket",
|
|
107
106
|
};
|
|
108
|
-
export const
|
|
107
|
+
export const GetFirewallConfigRulesSecurityResponse200Action = {
|
|
109
108
|
Deny: "deny",
|
|
110
109
|
Log: "log",
|
|
111
110
|
Challenge: "challenge",
|
|
112
111
|
RateLimit: "rate_limit",
|
|
113
112
|
};
|
|
114
|
-
export const
|
|
113
|
+
export const RulesType = {
|
|
114
|
+
Host: "host",
|
|
115
|
+
Path: "path",
|
|
116
|
+
Method: "method",
|
|
117
|
+
Header: "header",
|
|
118
|
+
Query: "query",
|
|
119
|
+
Cookie: "cookie",
|
|
120
|
+
TargetPath: "target_path",
|
|
121
|
+
Route: "route",
|
|
122
|
+
RawPath: "raw_path",
|
|
123
|
+
IpAddress: "ip_address",
|
|
124
|
+
Protocol: "protocol",
|
|
125
|
+
Region: "region",
|
|
126
|
+
Scheme: "scheme",
|
|
127
|
+
Environment: "environment",
|
|
128
|
+
UserAgent: "user_agent",
|
|
129
|
+
GeoContinent: "geo_continent",
|
|
130
|
+
GeoCountry: "geo_country",
|
|
131
|
+
GeoCountryRegion: "geo_country_region",
|
|
132
|
+
GeoCity: "geo_city",
|
|
133
|
+
GeoAsNumber: "geo_as_number",
|
|
134
|
+
Ja4Digest: "ja4_digest",
|
|
135
|
+
Ja3Digest: "ja3_digest",
|
|
136
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
137
|
+
ServerAction: "server_action",
|
|
138
|
+
BotName: "bot_name",
|
|
139
|
+
BotCategory: "bot_category",
|
|
140
|
+
};
|
|
141
|
+
export const RulesOp = {
|
|
142
|
+
Re: "re",
|
|
143
|
+
Eq: "eq",
|
|
144
|
+
Ex: "ex",
|
|
145
|
+
Inc: "inc",
|
|
146
|
+
Pre: "pre",
|
|
147
|
+
Suf: "suf",
|
|
148
|
+
Sub: "sub",
|
|
149
|
+
Gt: "gt",
|
|
150
|
+
Gte: "gte",
|
|
151
|
+
Lt: "lt",
|
|
152
|
+
Lte: "lte",
|
|
153
|
+
Nex: "nex",
|
|
154
|
+
Ninc: "ninc",
|
|
155
|
+
Neq: "neq",
|
|
156
|
+
};
|
|
157
|
+
export const GetFirewallConfigRulesSecurityResponseAction = {
|
|
158
|
+
Deny: "deny",
|
|
159
|
+
Log: "log",
|
|
160
|
+
Challenge: "challenge",
|
|
161
|
+
Bypass: "bypass",
|
|
162
|
+
RateLimit: "rate_limit",
|
|
163
|
+
Redirect: "redirect",
|
|
164
|
+
};
|
|
165
|
+
export const RulesAlgo = {
|
|
166
|
+
FixedWindow: "fixed_window",
|
|
167
|
+
TokenBucket: "token_bucket",
|
|
168
|
+
};
|
|
169
|
+
export const GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction = {
|
|
170
|
+
Deny: "deny",
|
|
171
|
+
Log: "log",
|
|
172
|
+
Challenge: "challenge",
|
|
173
|
+
RateLimit: "rate_limit",
|
|
174
|
+
};
|
|
175
|
+
export const GetFirewallConfigAction = {
|
|
115
176
|
Deny: "deny",
|
|
116
177
|
Log: "log",
|
|
117
178
|
Challenge: "challenge",
|
|
@@ -173,18 +234,18 @@ export function getFirewallConfigSdFromJSON(jsonString) {
|
|
|
173
234
|
return safeParse(jsonString, (x) => GetFirewallConfigSd$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigSd' from JSON`);
|
|
174
235
|
}
|
|
175
236
|
/** @internal */
|
|
176
|
-
export const
|
|
237
|
+
export const GetFirewallConfigSecurityAction$inboundSchema = z.nativeEnum(GetFirewallConfigSecurityAction);
|
|
177
238
|
/** @internal */
|
|
178
|
-
export const
|
|
239
|
+
export const GetFirewallConfigSecurityAction$outboundSchema = GetFirewallConfigSecurityAction$inboundSchema;
|
|
179
240
|
/** @internal */
|
|
180
241
|
export const GetFirewallConfigMa$inboundSchema = z.object({
|
|
181
242
|
active: z.boolean(),
|
|
182
|
-
action:
|
|
243
|
+
action: GetFirewallConfigSecurityAction$inboundSchema,
|
|
183
244
|
});
|
|
184
245
|
/** @internal */
|
|
185
246
|
export const GetFirewallConfigMa$outboundSchema = z.object({
|
|
186
247
|
active: z.boolean(),
|
|
187
|
-
action:
|
|
248
|
+
action: GetFirewallConfigSecurityAction$outboundSchema,
|
|
188
249
|
});
|
|
189
250
|
export function getFirewallConfigMaToJSON(getFirewallConfigMa) {
|
|
190
251
|
return JSON.stringify(GetFirewallConfigMa$outboundSchema.parse(getFirewallConfigMa));
|
|
@@ -409,167 +470,360 @@ export function getFirewallConfigCrsFromJSON(jsonString) {
|
|
|
409
470
|
return safeParse(jsonString, (x) => GetFirewallConfigCrs$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigCrs' from JSON`);
|
|
410
471
|
}
|
|
411
472
|
/** @internal */
|
|
412
|
-
export const
|
|
473
|
+
export const GetFirewallConfigRulesType$inboundSchema = z.nativeEnum(GetFirewallConfigRulesType);
|
|
413
474
|
/** @internal */
|
|
414
|
-
export const
|
|
475
|
+
export const GetFirewallConfigRulesType$outboundSchema = GetFirewallConfigRulesType$inboundSchema;
|
|
415
476
|
/** @internal */
|
|
416
|
-
export const
|
|
477
|
+
export const GetFirewallConfigRulesOp$inboundSchema = z.nativeEnum(GetFirewallConfigRulesOp);
|
|
417
478
|
/** @internal */
|
|
418
|
-
export const
|
|
479
|
+
export const GetFirewallConfigRulesOp$outboundSchema = GetFirewallConfigRulesOp$inboundSchema;
|
|
419
480
|
/** @internal */
|
|
420
|
-
export const
|
|
481
|
+
export const GetFirewallConfigRulesValue$inboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
421
482
|
/** @internal */
|
|
422
|
-
export const
|
|
423
|
-
export function
|
|
424
|
-
return JSON.stringify(
|
|
483
|
+
export const GetFirewallConfigRulesValue$outboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
484
|
+
export function getFirewallConfigRulesValueToJSON(getFirewallConfigRulesValue) {
|
|
485
|
+
return JSON.stringify(GetFirewallConfigRulesValue$outboundSchema.parse(getFirewallConfigRulesValue));
|
|
425
486
|
}
|
|
426
|
-
export function
|
|
427
|
-
return safeParse(jsonString, (x) =>
|
|
487
|
+
export function getFirewallConfigRulesValueFromJSON(jsonString) {
|
|
488
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesValue' from JSON`);
|
|
428
489
|
}
|
|
429
490
|
/** @internal */
|
|
430
|
-
export const
|
|
431
|
-
type:
|
|
432
|
-
op:
|
|
491
|
+
export const GetFirewallConfigRulesConditions$inboundSchema = z.object({
|
|
492
|
+
type: GetFirewallConfigRulesType$inboundSchema,
|
|
493
|
+
op: GetFirewallConfigRulesOp$inboundSchema,
|
|
433
494
|
neg: z.boolean().optional(),
|
|
434
495
|
key: z.string().optional(),
|
|
435
496
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
436
497
|
});
|
|
437
498
|
/** @internal */
|
|
438
|
-
export const
|
|
439
|
-
type:
|
|
440
|
-
op:
|
|
499
|
+
export const GetFirewallConfigRulesConditions$outboundSchema = z.object({
|
|
500
|
+
type: GetFirewallConfigRulesType$outboundSchema,
|
|
501
|
+
op: GetFirewallConfigRulesOp$outboundSchema,
|
|
441
502
|
neg: z.boolean().optional(),
|
|
442
503
|
key: z.string().optional(),
|
|
443
504
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
444
505
|
});
|
|
445
|
-
export function
|
|
446
|
-
return JSON.stringify(
|
|
506
|
+
export function getFirewallConfigRulesConditionsToJSON(getFirewallConfigRulesConditions) {
|
|
507
|
+
return JSON.stringify(GetFirewallConfigRulesConditions$outboundSchema.parse(getFirewallConfigRulesConditions));
|
|
447
508
|
}
|
|
448
|
-
export function
|
|
449
|
-
return safeParse(jsonString, (x) =>
|
|
509
|
+
export function getFirewallConfigRulesConditionsFromJSON(jsonString) {
|
|
510
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesConditions' from JSON`);
|
|
450
511
|
}
|
|
451
512
|
/** @internal */
|
|
452
|
-
export const
|
|
453
|
-
conditions: z.array(z.lazy(() =>
|
|
513
|
+
export const GetFirewallConfigRulesConditionGroup$inboundSchema = z.object({
|
|
514
|
+
conditions: z.array(z.lazy(() => GetFirewallConfigRulesConditions$inboundSchema)),
|
|
454
515
|
});
|
|
455
516
|
/** @internal */
|
|
456
|
-
export const
|
|
457
|
-
conditions: z.array(z.lazy(() =>
|
|
517
|
+
export const GetFirewallConfigRulesConditionGroup$outboundSchema = z.object({
|
|
518
|
+
conditions: z.array(z.lazy(() => GetFirewallConfigRulesConditions$outboundSchema)),
|
|
458
519
|
});
|
|
459
|
-
export function
|
|
460
|
-
return JSON.stringify(
|
|
520
|
+
export function getFirewallConfigRulesConditionGroupToJSON(getFirewallConfigRulesConditionGroup) {
|
|
521
|
+
return JSON.stringify(GetFirewallConfigRulesConditionGroup$outboundSchema.parse(getFirewallConfigRulesConditionGroup));
|
|
461
522
|
}
|
|
462
|
-
export function
|
|
463
|
-
return safeParse(jsonString, (x) =>
|
|
523
|
+
export function getFirewallConfigRulesConditionGroupFromJSON(jsonString) {
|
|
524
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesConditionGroup' from JSON`);
|
|
464
525
|
}
|
|
465
526
|
/** @internal */
|
|
466
|
-
export const
|
|
527
|
+
export const GetFirewallConfigRulesSecurityAction$inboundSchema = z.nativeEnum(GetFirewallConfigRulesSecurityAction);
|
|
467
528
|
/** @internal */
|
|
468
|
-
export const
|
|
529
|
+
export const GetFirewallConfigRulesSecurityAction$outboundSchema = GetFirewallConfigRulesSecurityAction$inboundSchema;
|
|
469
530
|
/** @internal */
|
|
470
|
-
export const
|
|
531
|
+
export const GetFirewallConfigRulesAlgo$inboundSchema = z.nativeEnum(GetFirewallConfigRulesAlgo);
|
|
471
532
|
/** @internal */
|
|
472
|
-
export const
|
|
533
|
+
export const GetFirewallConfigRulesAlgo$outboundSchema = GetFirewallConfigRulesAlgo$inboundSchema;
|
|
473
534
|
/** @internal */
|
|
474
|
-
export const
|
|
535
|
+
export const GetFirewallConfigRulesSecurityResponse200Action$inboundSchema = z
|
|
536
|
+
.nativeEnum(GetFirewallConfigRulesSecurityResponse200Action);
|
|
475
537
|
/** @internal */
|
|
476
|
-
export const
|
|
538
|
+
export const GetFirewallConfigRulesSecurityResponse200Action$outboundSchema = GetFirewallConfigRulesSecurityResponse200Action$inboundSchema;
|
|
477
539
|
/** @internal */
|
|
478
|
-
export const
|
|
479
|
-
algo:
|
|
540
|
+
export const GetFirewallConfigRulesRateLimit$inboundSchema = z.object({
|
|
541
|
+
algo: GetFirewallConfigRulesAlgo$inboundSchema,
|
|
480
542
|
window: z.number(),
|
|
481
543
|
limit: z.number(),
|
|
482
544
|
keys: z.array(z.string()),
|
|
483
|
-
action: z.nullable(
|
|
545
|
+
action: z.nullable(GetFirewallConfigRulesSecurityResponse200Action$inboundSchema).optional(),
|
|
484
546
|
});
|
|
485
547
|
/** @internal */
|
|
486
|
-
export const
|
|
487
|
-
algo:
|
|
548
|
+
export const GetFirewallConfigRulesRateLimit$outboundSchema = z.object({
|
|
549
|
+
algo: GetFirewallConfigRulesAlgo$outboundSchema,
|
|
488
550
|
window: z.number(),
|
|
489
551
|
limit: z.number(),
|
|
490
552
|
keys: z.array(z.string()),
|
|
491
|
-
action: z.nullable(
|
|
553
|
+
action: z.nullable(GetFirewallConfigRulesSecurityResponse200Action$outboundSchema).optional(),
|
|
492
554
|
});
|
|
493
|
-
export function
|
|
494
|
-
return JSON.stringify(
|
|
555
|
+
export function getFirewallConfigRulesRateLimitToJSON(getFirewallConfigRulesRateLimit) {
|
|
556
|
+
return JSON.stringify(GetFirewallConfigRulesRateLimit$outboundSchema.parse(getFirewallConfigRulesRateLimit));
|
|
495
557
|
}
|
|
496
|
-
export function
|
|
497
|
-
return safeParse(jsonString, (x) =>
|
|
558
|
+
export function getFirewallConfigRulesRateLimitFromJSON(jsonString) {
|
|
559
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesRateLimit' from JSON`);
|
|
498
560
|
}
|
|
499
561
|
/** @internal */
|
|
500
|
-
export const
|
|
562
|
+
export const GetFirewallConfigRulesRedirect$inboundSchema = z.object({
|
|
501
563
|
location: z.string(),
|
|
502
564
|
permanent: z.boolean(),
|
|
503
565
|
});
|
|
504
566
|
/** @internal */
|
|
505
|
-
export const
|
|
567
|
+
export const GetFirewallConfigRulesRedirect$outboundSchema = z.object({
|
|
506
568
|
location: z.string(),
|
|
507
569
|
permanent: z.boolean(),
|
|
508
570
|
});
|
|
509
|
-
export function
|
|
510
|
-
return JSON.stringify(
|
|
571
|
+
export function getFirewallConfigRulesRedirectToJSON(getFirewallConfigRulesRedirect) {
|
|
572
|
+
return JSON.stringify(GetFirewallConfigRulesRedirect$outboundSchema.parse(getFirewallConfigRulesRedirect));
|
|
511
573
|
}
|
|
512
|
-
export function
|
|
513
|
-
return safeParse(jsonString, (x) =>
|
|
574
|
+
export function getFirewallConfigRulesRedirectFromJSON(jsonString) {
|
|
575
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesRedirect' from JSON`);
|
|
514
576
|
}
|
|
515
577
|
/** @internal */
|
|
516
|
-
export const
|
|
517
|
-
action:
|
|
518
|
-
rateLimit: z.nullable(z.lazy(() =>
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
578
|
+
export const GetFirewallConfigRulesMitigate$inboundSchema = z.object({
|
|
579
|
+
action: GetFirewallConfigRulesSecurityAction$inboundSchema,
|
|
580
|
+
rateLimit: z.nullable(z.lazy(() => GetFirewallConfigRulesRateLimit$inboundSchema)).optional(),
|
|
581
|
+
redirect: z.nullable(z.lazy(() => GetFirewallConfigRulesRedirect$inboundSchema)).optional(),
|
|
582
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
583
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
584
|
+
});
|
|
585
|
+
/** @internal */
|
|
586
|
+
export const GetFirewallConfigRulesMitigate$outboundSchema = z.object({
|
|
587
|
+
action: GetFirewallConfigRulesSecurityAction$outboundSchema,
|
|
588
|
+
rateLimit: z.nullable(z.lazy(() => GetFirewallConfigRulesRateLimit$outboundSchema)).optional(),
|
|
589
|
+
redirect: z.nullable(z.lazy(() => GetFirewallConfigRulesRedirect$outboundSchema)).optional(),
|
|
522
590
|
actionDuration: z.nullable(z.string()).optional(),
|
|
523
591
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
524
592
|
});
|
|
593
|
+
export function getFirewallConfigRulesMitigateToJSON(getFirewallConfigRulesMitigate) {
|
|
594
|
+
return JSON.stringify(GetFirewallConfigRulesMitigate$outboundSchema.parse(getFirewallConfigRulesMitigate));
|
|
595
|
+
}
|
|
596
|
+
export function getFirewallConfigRulesMitigateFromJSON(jsonString) {
|
|
597
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesMitigate' from JSON`);
|
|
598
|
+
}
|
|
525
599
|
/** @internal */
|
|
526
|
-
export const
|
|
527
|
-
|
|
528
|
-
rateLimit: z.nullable(z.lazy(() => GetFirewallConfigRateLimit$outboundSchema))
|
|
600
|
+
export const GetFirewallConfigRulesAction$inboundSchema = z.object({
|
|
601
|
+
mitigate: z.lazy(() => GetFirewallConfigRulesMitigate$inboundSchema)
|
|
529
602
|
.optional(),
|
|
530
|
-
|
|
603
|
+
});
|
|
604
|
+
/** @internal */
|
|
605
|
+
export const GetFirewallConfigRulesAction$outboundSchema = z.object({
|
|
606
|
+
mitigate: z.lazy(() => GetFirewallConfigRulesMitigate$outboundSchema)
|
|
531
607
|
.optional(),
|
|
608
|
+
});
|
|
609
|
+
export function getFirewallConfigRulesActionToJSON(getFirewallConfigRulesAction) {
|
|
610
|
+
return JSON.stringify(GetFirewallConfigRulesAction$outboundSchema.parse(getFirewallConfigRulesAction));
|
|
611
|
+
}
|
|
612
|
+
export function getFirewallConfigRulesActionFromJSON(jsonString) {
|
|
613
|
+
return safeParse(jsonString, (x) => GetFirewallConfigRulesAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRulesAction' from JSON`);
|
|
614
|
+
}
|
|
615
|
+
/** @internal */
|
|
616
|
+
export const Rules2$inboundSchema = z
|
|
617
|
+
.object({
|
|
618
|
+
id: z.string(),
|
|
619
|
+
name: z.string(),
|
|
620
|
+
description: z.string().optional(),
|
|
621
|
+
active: z.boolean(),
|
|
622
|
+
conditionGroup: z.array(z.lazy(() => GetFirewallConfigRulesConditionGroup$inboundSchema)),
|
|
623
|
+
action: z.lazy(() => GetFirewallConfigRulesAction$inboundSchema),
|
|
624
|
+
valid: z.boolean(),
|
|
625
|
+
validationErrors: z.array(z.string()),
|
|
626
|
+
});
|
|
627
|
+
/** @internal */
|
|
628
|
+
export const Rules2$outboundSchema = z.object({
|
|
629
|
+
id: z.string(),
|
|
630
|
+
name: z.string(),
|
|
631
|
+
description: z.string().optional(),
|
|
632
|
+
active: z.boolean(),
|
|
633
|
+
conditionGroup: z.array(z.lazy(() => GetFirewallConfigRulesConditionGroup$outboundSchema)),
|
|
634
|
+
action: z.lazy(() => GetFirewallConfigRulesAction$outboundSchema),
|
|
635
|
+
valid: z.boolean(),
|
|
636
|
+
validationErrors: z.array(z.string()),
|
|
637
|
+
});
|
|
638
|
+
export function rules2ToJSON(rules2) {
|
|
639
|
+
return JSON.stringify(Rules2$outboundSchema.parse(rules2));
|
|
640
|
+
}
|
|
641
|
+
export function rules2FromJSON(jsonString) {
|
|
642
|
+
return safeParse(jsonString, (x) => Rules2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Rules2' from JSON`);
|
|
643
|
+
}
|
|
644
|
+
/** @internal */
|
|
645
|
+
export const RulesType$inboundSchema = z
|
|
646
|
+
.nativeEnum(RulesType);
|
|
647
|
+
/** @internal */
|
|
648
|
+
export const RulesType$outboundSchema = RulesType$inboundSchema;
|
|
649
|
+
/** @internal */
|
|
650
|
+
export const RulesOp$inboundSchema = z
|
|
651
|
+
.nativeEnum(RulesOp);
|
|
652
|
+
/** @internal */
|
|
653
|
+
export const RulesOp$outboundSchema = RulesOp$inboundSchema;
|
|
654
|
+
/** @internal */
|
|
655
|
+
export const RulesValue$inboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
656
|
+
/** @internal */
|
|
657
|
+
export const RulesValue$outboundSchema = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
658
|
+
export function rulesValueToJSON(rulesValue) {
|
|
659
|
+
return JSON.stringify(RulesValue$outboundSchema.parse(rulesValue));
|
|
660
|
+
}
|
|
661
|
+
export function rulesValueFromJSON(jsonString) {
|
|
662
|
+
return safeParse(jsonString, (x) => RulesValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesValue' from JSON`);
|
|
663
|
+
}
|
|
664
|
+
/** @internal */
|
|
665
|
+
export const RulesConditions$inboundSchema = z.object({
|
|
666
|
+
type: RulesType$inboundSchema,
|
|
667
|
+
op: RulesOp$inboundSchema,
|
|
668
|
+
neg: z.boolean().optional(),
|
|
669
|
+
key: z.string().optional(),
|
|
670
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
671
|
+
});
|
|
672
|
+
/** @internal */
|
|
673
|
+
export const RulesConditions$outboundSchema = z.object({
|
|
674
|
+
type: RulesType$outboundSchema,
|
|
675
|
+
op: RulesOp$outboundSchema,
|
|
676
|
+
neg: z.boolean().optional(),
|
|
677
|
+
key: z.string().optional(),
|
|
678
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
679
|
+
});
|
|
680
|
+
export function rulesConditionsToJSON(rulesConditions) {
|
|
681
|
+
return JSON.stringify(RulesConditions$outboundSchema.parse(rulesConditions));
|
|
682
|
+
}
|
|
683
|
+
export function rulesConditionsFromJSON(jsonString) {
|
|
684
|
+
return safeParse(jsonString, (x) => RulesConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesConditions' from JSON`);
|
|
685
|
+
}
|
|
686
|
+
/** @internal */
|
|
687
|
+
export const RulesConditionGroup$inboundSchema = z.object({
|
|
688
|
+
conditions: z.array(z.lazy(() => RulesConditions$inboundSchema)),
|
|
689
|
+
});
|
|
690
|
+
/** @internal */
|
|
691
|
+
export const RulesConditionGroup$outboundSchema = z.object({
|
|
692
|
+
conditions: z.array(z.lazy(() => RulesConditions$outboundSchema)),
|
|
693
|
+
});
|
|
694
|
+
export function rulesConditionGroupToJSON(rulesConditionGroup) {
|
|
695
|
+
return JSON.stringify(RulesConditionGroup$outboundSchema.parse(rulesConditionGroup));
|
|
696
|
+
}
|
|
697
|
+
export function rulesConditionGroupFromJSON(jsonString) {
|
|
698
|
+
return safeParse(jsonString, (x) => RulesConditionGroup$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesConditionGroup' from JSON`);
|
|
699
|
+
}
|
|
700
|
+
/** @internal */
|
|
701
|
+
export const GetFirewallConfigRulesSecurityResponseAction$inboundSchema = z
|
|
702
|
+
.nativeEnum(GetFirewallConfigRulesSecurityResponseAction);
|
|
703
|
+
/** @internal */
|
|
704
|
+
export const GetFirewallConfigRulesSecurityResponseAction$outboundSchema = GetFirewallConfigRulesSecurityResponseAction$inboundSchema;
|
|
705
|
+
/** @internal */
|
|
706
|
+
export const RulesAlgo$inboundSchema = z
|
|
707
|
+
.nativeEnum(RulesAlgo);
|
|
708
|
+
/** @internal */
|
|
709
|
+
export const RulesAlgo$outboundSchema = RulesAlgo$inboundSchema;
|
|
710
|
+
/** @internal */
|
|
711
|
+
export const GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema = z.nativeEnum(GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction);
|
|
712
|
+
/** @internal */
|
|
713
|
+
export const GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema = GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
714
|
+
/** @internal */
|
|
715
|
+
export const RulesRateLimit$inboundSchema = z.object({
|
|
716
|
+
algo: RulesAlgo$inboundSchema,
|
|
717
|
+
window: z.number(),
|
|
718
|
+
limit: z.number(),
|
|
719
|
+
keys: z.array(z.string()),
|
|
720
|
+
action: z.nullable(GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema).optional(),
|
|
721
|
+
});
|
|
722
|
+
/** @internal */
|
|
723
|
+
export const RulesRateLimit$outboundSchema = z.object({
|
|
724
|
+
algo: RulesAlgo$outboundSchema,
|
|
725
|
+
window: z.number(),
|
|
726
|
+
limit: z.number(),
|
|
727
|
+
keys: z.array(z.string()),
|
|
728
|
+
action: z.nullable(GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema).optional(),
|
|
729
|
+
});
|
|
730
|
+
export function rulesRateLimitToJSON(rulesRateLimit) {
|
|
731
|
+
return JSON.stringify(RulesRateLimit$outboundSchema.parse(rulesRateLimit));
|
|
732
|
+
}
|
|
733
|
+
export function rulesRateLimitFromJSON(jsonString) {
|
|
734
|
+
return safeParse(jsonString, (x) => RulesRateLimit$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesRateLimit' from JSON`);
|
|
735
|
+
}
|
|
736
|
+
/** @internal */
|
|
737
|
+
export const RulesRedirect$inboundSchema = z.object({
|
|
738
|
+
location: z.string(),
|
|
739
|
+
permanent: z.boolean(),
|
|
740
|
+
});
|
|
741
|
+
/** @internal */
|
|
742
|
+
export const RulesRedirect$outboundSchema = z.object({
|
|
743
|
+
location: z.string(),
|
|
744
|
+
permanent: z.boolean(),
|
|
745
|
+
});
|
|
746
|
+
export function rulesRedirectToJSON(rulesRedirect) {
|
|
747
|
+
return JSON.stringify(RulesRedirect$outboundSchema.parse(rulesRedirect));
|
|
748
|
+
}
|
|
749
|
+
export function rulesRedirectFromJSON(jsonString) {
|
|
750
|
+
return safeParse(jsonString, (x) => RulesRedirect$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesRedirect' from JSON`);
|
|
751
|
+
}
|
|
752
|
+
/** @internal */
|
|
753
|
+
export const RulesMitigate$inboundSchema = z.object({
|
|
754
|
+
action: GetFirewallConfigRulesSecurityResponseAction$inboundSchema,
|
|
755
|
+
rateLimit: z.nullable(z.lazy(() => RulesRateLimit$inboundSchema)).optional(),
|
|
756
|
+
redirect: z.nullable(z.lazy(() => RulesRedirect$inboundSchema)).optional(),
|
|
757
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
758
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
759
|
+
});
|
|
760
|
+
/** @internal */
|
|
761
|
+
export const RulesMitigate$outboundSchema = z.object({
|
|
762
|
+
action: GetFirewallConfigRulesSecurityResponseAction$outboundSchema,
|
|
763
|
+
rateLimit: z.nullable(z.lazy(() => RulesRateLimit$outboundSchema)).optional(),
|
|
764
|
+
redirect: z.nullable(z.lazy(() => RulesRedirect$outboundSchema)).optional(),
|
|
532
765
|
actionDuration: z.nullable(z.string()).optional(),
|
|
533
766
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
534
767
|
});
|
|
535
|
-
export function
|
|
536
|
-
return JSON.stringify(
|
|
768
|
+
export function rulesMitigateToJSON(rulesMitigate) {
|
|
769
|
+
return JSON.stringify(RulesMitigate$outboundSchema.parse(rulesMitigate));
|
|
537
770
|
}
|
|
538
|
-
export function
|
|
539
|
-
return safeParse(jsonString, (x) =>
|
|
771
|
+
export function rulesMitigateFromJSON(jsonString) {
|
|
772
|
+
return safeParse(jsonString, (x) => RulesMitigate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesMitigate' from JSON`);
|
|
540
773
|
}
|
|
541
774
|
/** @internal */
|
|
542
|
-
export const
|
|
543
|
-
mitigate: z.lazy(() =>
|
|
775
|
+
export const RulesAction$inboundSchema = z.object({
|
|
776
|
+
mitigate: z.lazy(() => RulesMitigate$inboundSchema).optional(),
|
|
544
777
|
});
|
|
545
778
|
/** @internal */
|
|
546
|
-
export const
|
|
547
|
-
mitigate: z.lazy(() =>
|
|
779
|
+
export const RulesAction$outboundSchema = z.object({
|
|
780
|
+
mitigate: z.lazy(() => RulesMitigate$outboundSchema).optional(),
|
|
548
781
|
});
|
|
549
|
-
export function
|
|
550
|
-
return JSON.stringify(
|
|
782
|
+
export function rulesActionToJSON(rulesAction) {
|
|
783
|
+
return JSON.stringify(RulesAction$outboundSchema.parse(rulesAction));
|
|
551
784
|
}
|
|
552
|
-
export function
|
|
553
|
-
return safeParse(jsonString, (x) =>
|
|
785
|
+
export function rulesActionFromJSON(jsonString) {
|
|
786
|
+
return safeParse(jsonString, (x) => RulesAction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RulesAction' from JSON`);
|
|
554
787
|
}
|
|
555
788
|
/** @internal */
|
|
556
|
-
export const
|
|
789
|
+
export const Rules1$inboundSchema = z
|
|
790
|
+
.object({
|
|
557
791
|
id: z.string(),
|
|
558
792
|
name: z.string(),
|
|
559
793
|
description: z.string().optional(),
|
|
560
794
|
active: z.boolean(),
|
|
561
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
562
|
-
action: z.lazy(() =>
|
|
795
|
+
conditionGroup: z.array(z.lazy(() => RulesConditionGroup$inboundSchema)),
|
|
796
|
+
action: z.lazy(() => RulesAction$inboundSchema),
|
|
797
|
+
valid: z.boolean(),
|
|
798
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
563
799
|
});
|
|
564
800
|
/** @internal */
|
|
565
|
-
export const
|
|
801
|
+
export const Rules1$outboundSchema = z.object({
|
|
566
802
|
id: z.string(),
|
|
567
803
|
name: z.string(),
|
|
568
804
|
description: z.string().optional(),
|
|
569
805
|
active: z.boolean(),
|
|
570
|
-
conditionGroup: z.array(z.lazy(() =>
|
|
571
|
-
action: z.lazy(() =>
|
|
806
|
+
conditionGroup: z.array(z.lazy(() => RulesConditionGroup$outboundSchema)),
|
|
807
|
+
action: z.lazy(() => RulesAction$outboundSchema),
|
|
808
|
+
valid: z.boolean(),
|
|
809
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
572
810
|
});
|
|
811
|
+
export function rules1ToJSON(rules1) {
|
|
812
|
+
return JSON.stringify(Rules1$outboundSchema.parse(rules1));
|
|
813
|
+
}
|
|
814
|
+
export function rules1FromJSON(jsonString) {
|
|
815
|
+
return safeParse(jsonString, (x) => Rules1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Rules1' from JSON`);
|
|
816
|
+
}
|
|
817
|
+
/** @internal */
|
|
818
|
+
export const GetFirewallConfigRules$inboundSchema = z.union([
|
|
819
|
+
z.lazy(() => Rules1$inboundSchema),
|
|
820
|
+
z.lazy(() => Rules2$inboundSchema),
|
|
821
|
+
]);
|
|
822
|
+
/** @internal */
|
|
823
|
+
export const GetFirewallConfigRules$outboundSchema = z.union([
|
|
824
|
+
z.lazy(() => Rules1$outboundSchema),
|
|
825
|
+
z.lazy(() => Rules2$outboundSchema),
|
|
826
|
+
]);
|
|
573
827
|
export function getFirewallConfigRulesToJSON(getFirewallConfigRules) {
|
|
574
828
|
return JSON.stringify(GetFirewallConfigRules$outboundSchema.parse(getFirewallConfigRules));
|
|
575
829
|
}
|
|
@@ -577,16 +831,16 @@ export function getFirewallConfigRulesFromJSON(jsonString) {
|
|
|
577
831
|
return safeParse(jsonString, (x) => GetFirewallConfigRules$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetFirewallConfigRules' from JSON`);
|
|
578
832
|
}
|
|
579
833
|
/** @internal */
|
|
580
|
-
export const
|
|
834
|
+
export const GetFirewallConfigAction$inboundSchema = z.nativeEnum(GetFirewallConfigAction);
|
|
581
835
|
/** @internal */
|
|
582
|
-
export const
|
|
836
|
+
export const GetFirewallConfigAction$outboundSchema = GetFirewallConfigAction$inboundSchema;
|
|
583
837
|
/** @internal */
|
|
584
838
|
export const GetFirewallConfigIps$inboundSchema = z.object({
|
|
585
839
|
id: z.string(),
|
|
586
840
|
hostname: z.string(),
|
|
587
841
|
ip: z.string(),
|
|
588
842
|
notes: z.string().optional(),
|
|
589
|
-
action:
|
|
843
|
+
action: GetFirewallConfigAction$inboundSchema,
|
|
590
844
|
});
|
|
591
845
|
/** @internal */
|
|
592
846
|
export const GetFirewallConfigIps$outboundSchema = z.object({
|
|
@@ -594,7 +848,7 @@ export const GetFirewallConfigIps$outboundSchema = z.object({
|
|
|
594
848
|
hostname: z.string(),
|
|
595
849
|
ip: z.string(),
|
|
596
850
|
notes: z.string().optional(),
|
|
597
|
-
action:
|
|
851
|
+
action: GetFirewallConfigAction$outboundSchema,
|
|
598
852
|
});
|
|
599
853
|
export function getFirewallConfigIpsToJSON(getFirewallConfigIps) {
|
|
600
854
|
return JSON.stringify(GetFirewallConfigIps$outboundSchema.parse(getFirewallConfigIps));
|
|
@@ -735,7 +989,10 @@ export const GetFirewallConfigResponseBody$inboundSchema = z.object({
|
|
|
735
989
|
updatedAt: z.string(),
|
|
736
990
|
firewallEnabled: z.boolean(),
|
|
737
991
|
crs: z.lazy(() => GetFirewallConfigCrs$inboundSchema),
|
|
738
|
-
rules: z.array(z.
|
|
992
|
+
rules: z.array(z.union([
|
|
993
|
+
z.lazy(() => Rules1$inboundSchema),
|
|
994
|
+
z.lazy(() => Rules2$inboundSchema),
|
|
995
|
+
])),
|
|
739
996
|
ips: z.array(z.lazy(() => GetFirewallConfigIps$inboundSchema)),
|
|
740
997
|
changes: z.array(z.lazy(() => Changes$inboundSchema)),
|
|
741
998
|
managedRules: z.lazy(() => ManagedRules$inboundSchema).optional(),
|
|
@@ -750,7 +1007,10 @@ export const GetFirewallConfigResponseBody$outboundSchema = z.object({
|
|
|
750
1007
|
updatedAt: z.string(),
|
|
751
1008
|
firewallEnabled: z.boolean(),
|
|
752
1009
|
crs: z.lazy(() => GetFirewallConfigCrs$outboundSchema),
|
|
753
|
-
rules: z.array(z.
|
|
1010
|
+
rules: z.array(z.union([
|
|
1011
|
+
z.lazy(() => Rules1$outboundSchema),
|
|
1012
|
+
z.lazy(() => Rules2$outboundSchema),
|
|
1013
|
+
])),
|
|
754
1014
|
ips: z.array(z.lazy(() => GetFirewallConfigIps$outboundSchema)),
|
|
755
1015
|
changes: z.array(z.lazy(() => Changes$outboundSchema)),
|
|
756
1016
|
managedRules: z.lazy(() => ManagedRules$outboundSchema).optional(),
|