@vercel/sdk 1.18.2 → 1.18.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +43 -26
- package/bin/mcp-server.js +4634 -2791
- package/bin/mcp-server.js.map +56 -35
- package/esm/__tests__/accessgroups.test.js +1 -3
- package/esm/__tests__/accessgroups.test.js.map +1 -1
- package/esm/__tests__/bulkredirects.test.d.ts +2 -0
- package/esm/__tests__/bulkredirects.test.d.ts.map +1 -0
- package/esm/__tests__/bulkredirects.test.js +171 -0
- package/esm/__tests__/bulkredirects.test.js.map +1 -0
- package/esm/__tests__/domains.test.js +11 -44
- package/esm/__tests__/domains.test.js.map +1 -1
- package/esm/__tests__/edgeconfig.test.js +6 -6
- package/esm/__tests__/edgeconfig.test.js.map +1 -1
- package/esm/__tests__/integrations.test.js +1 -1
- package/esm/__tests__/logdrains.test.js +6 -2
- package/esm/__tests__/logdrains.test.js.map +1 -1
- package/esm/__tests__/security.test.js +26 -32
- package/esm/__tests__/security.test.js.map +1 -1
- package/esm/__tests__/teams.test.js +16 -0
- package/esm/__tests__/teams.test.js.map +1 -1
- package/esm/__tests__/vercel.test.js +21 -0
- package/esm/__tests__/vercel.test.js.map +1 -1
- package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsDeleteRedirects.js +84 -0
- package/esm/funcs/bulkRedirectsDeleteRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsEditRedirect.d.ts +17 -0
- package/esm/funcs/bulkRedirectsEditRedirect.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsEditRedirect.js +84 -0
- package/esm/funcs/bulkRedirectsEditRedirect.js.map +1 -0
- package/esm/funcs/bulkRedirectsGetRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsGetRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsGetRedirects.js +90 -0
- package/esm/funcs/bulkRedirectsGetRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsGetVersions.d.ts +17 -0
- package/esm/funcs/bulkRedirectsGetVersions.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsGetVersions.js +83 -0
- package/esm/funcs/bulkRedirectsGetVersions.js.map +1 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.js +84 -0
- package/esm/funcs/bulkRedirectsRestoreRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsStageRedirects.d.ts +17 -0
- package/esm/funcs/bulkRedirectsStageRedirects.d.ts.map +1 -0
- package/esm/funcs/bulkRedirectsStageRedirects.js +83 -0
- package/esm/funcs/bulkRedirectsStageRedirects.js.map +1 -0
- package/esm/funcs/bulkRedirectsUpdateVersion.d.ts +17 -0
- package/esm/funcs/bulkRedirectsUpdateVersion.d.ts.map +1 -0
- package/esm/funcs/{domainsBuyDomain.js → bulkRedirectsUpdateVersion.js} +11 -10
- package/esm/funcs/bulkRedirectsUpdateVersion.js.map +1 -0
- package/esm/funcs/domainsCreateOrTransferDomain.js +2 -2
- package/esm/funcs/domainsCreateOrTransferDomain.js.map +1 -1
- package/esm/funcs/teamsPostTeamDsyncRoles.d.ts +17 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.d.ts.map +1 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.js +88 -0
- package/esm/funcs/teamsPostTeamDsyncRoles.js.map +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/mcp-server/mcp-server.js +1 -1
- package/esm/mcp-server/server.d.ts.map +1 -1
- package/esm/mcp-server/server.js +17 -3
- package/esm/mcp-server/server.js.map +1 -1
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsDeleteRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsEditRedirect.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsGetRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsGetVersions.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsRestoreRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsStageRedirects.js.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts +7 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.d.ts.map +1 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js +28 -0
- package/esm/mcp-server/tools/bulkRedirectsUpdateVersion.js.map +1 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.d.ts +7 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.d.ts.map +1 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.js +28 -0
- package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.js.map +1 -0
- package/esm/models/canceldeploymentop.d.ts +46 -0
- package/esm/models/canceldeploymentop.d.ts.map +1 -1
- package/esm/models/canceldeploymentop.js +42 -0
- package/esm/models/canceldeploymentop.js.map +1 -1
- package/esm/models/createdeploymentop.d.ts +46 -0
- package/esm/models/createdeploymentop.d.ts.map +1 -1
- package/esm/models/createdeploymentop.js +46 -0
- package/esm/models/createdeploymentop.js.map +1 -1
- package/esm/models/createedgeconfigop.d.ts +5 -0
- package/esm/models/createedgeconfigop.d.ts.map +1 -1
- package/esm/models/createedgeconfigop.js +2 -0
- package/esm/models/createedgeconfigop.js.map +1 -1
- package/esm/models/createintegrationstoredirectop.d.ts +154 -152
- package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
- package/esm/models/createintegrationstoredirectop.js +220 -218
- package/esm/models/createintegrationstoredirectop.js.map +1 -1
- package/esm/models/createortransferdomainop.d.ts +4 -40
- package/esm/models/createortransferdomainop.d.ts.map +1 -1
- package/esm/models/createortransferdomainop.js +0 -24
- package/esm/models/createortransferdomainop.js.map +1 -1
- package/esm/models/createprojectop.d.ts +112 -2
- package/esm/models/createprojectop.d.ts.map +1 -1
- package/esm/models/createprojectop.js +103 -2
- package/esm/models/createprojectop.js.map +1 -1
- package/esm/models/createwebhookop.d.ts +4 -2
- package/esm/models/createwebhookop.d.ts.map +1 -1
- package/esm/models/createwebhookop.js +4 -2
- package/esm/models/createwebhookop.js.map +1 -1
- package/esm/models/deleteredirectsop.d.ts +112 -0
- package/esm/models/deleteredirectsop.d.ts.map +1 -0
- package/esm/models/deleteredirectsop.js +99 -0
- package/esm/models/deleteredirectsop.js.map +1 -0
- package/esm/models/editredirectop.d.ts +143 -0
- package/esm/models/editredirectop.d.ts.map +1 -0
- package/esm/models/editredirectop.js +123 -0
- package/esm/models/editredirectop.js.map +1 -0
- package/esm/models/getconfigurationproductsop.d.ts +200 -200
- package/esm/models/getconfigurationproductsop.js +290 -290
- package/esm/models/getconfigurationsop.d.ts +1 -0
- package/esm/models/getconfigurationsop.d.ts.map +1 -1
- package/esm/models/getconfigurationsop.js +1 -0
- package/esm/models/getconfigurationsop.js.map +1 -1
- package/esm/models/getdeploymenteventsop.d.ts +6 -6
- package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
- package/esm/models/getdeploymenteventsop.js +6 -6
- package/esm/models/getdeploymenteventsop.js.map +1 -1
- package/esm/models/getdeploymentop.d.ts +90 -0
- package/esm/models/getdeploymentop.d.ts.map +1 -1
- package/esm/models/getdeploymentop.js +82 -0
- package/esm/models/getdeploymentop.js.map +1 -1
- package/esm/models/getedgeconfigop.d.ts +5 -0
- package/esm/models/getedgeconfigop.d.ts.map +1 -1
- package/esm/models/getedgeconfigop.js +2 -0
- package/esm/models/getedgeconfigop.js.map +1 -1
- package/esm/models/getfirewallconfigop.d.ts +344 -111
- package/esm/models/getfirewallconfigop.d.ts.map +1 -1
- package/esm/models/getfirewallconfigop.js +368 -106
- package/esm/models/getfirewallconfigop.js.map +1 -1
- package/esm/models/getprojectdomainsop.d.ts +5 -5
- package/esm/models/getprojectdomainsop.d.ts.map +1 -1
- package/esm/models/getprojectdomainsop.js +5 -6
- package/esm/models/getprojectdomainsop.js.map +1 -1
- package/esm/models/getprojectsop.d.ts +88 -2
- package/esm/models/getprojectsop.d.ts.map +1 -1
- package/esm/models/getprojectsop.js +76 -2
- package/esm/models/getprojectsop.js.map +1 -1
- package/esm/models/getredirectsop.d.ts +200 -0
- package/esm/models/getredirectsop.d.ts.map +1 -0
- package/esm/models/getredirectsop.js +205 -0
- package/esm/models/getredirectsop.js.map +1 -0
- package/esm/models/getversionsop.d.ts +90 -0
- package/esm/models/getversionsop.d.ts.map +1 -0
- package/esm/models/getversionsop.js +68 -0
- package/esm/models/getversionsop.js.map +1 -0
- package/esm/models/getwebhookop.d.ts +2 -1
- package/esm/models/getwebhookop.d.ts.map +1 -1
- package/esm/models/getwebhookop.js +2 -1
- package/esm/models/getwebhookop.js.map +1 -1
- package/esm/models/getwebhooksop.d.ts +4 -2
- package/esm/models/getwebhooksop.d.ts.map +1 -1
- package/esm/models/getwebhooksop.js +4 -2
- package/esm/models/getwebhooksop.js.map +1 -1
- package/esm/models/postteamdsyncrolesop.d.ts +98 -0
- package/esm/models/postteamdsyncrolesop.d.ts.map +1 -0
- package/esm/models/postteamdsyncrolesop.js +113 -0
- package/esm/models/postteamdsyncrolesop.js.map +1 -0
- package/esm/models/putfirewallconfigop.d.ts +368 -106
- package/esm/models/putfirewallconfigop.d.ts.map +1 -1
- package/esm/models/putfirewallconfigop.js +391 -104
- package/esm/models/putfirewallconfigop.js.map +1 -1
- package/esm/models/restoreredirectsop.d.ts +114 -0
- package/esm/models/restoreredirectsop.d.ts.map +1 -0
- package/esm/models/restoreredirectsop.js +101 -0
- package/esm/models/restoreredirectsop.js.map +1 -0
- package/esm/models/stageredirectsop.d.ts +145 -0
- package/esm/models/stageredirectsop.d.ts.map +1 -0
- package/esm/models/stageredirectsop.js +136 -0
- package/esm/models/stageredirectsop.js.map +1 -0
- package/esm/models/team.d.ts +6 -6
- package/esm/models/team.d.ts.map +1 -1
- package/esm/models/team.js +6 -4
- package/esm/models/team.js.map +1 -1
- package/esm/models/updateedgeconfigop.d.ts +5 -0
- package/esm/models/updateedgeconfigop.d.ts.map +1 -1
- package/esm/models/updateedgeconfigop.js +2 -0
- package/esm/models/updateedgeconfigop.js.map +1 -1
- package/esm/models/updatefirewallconfigop.d.ts +30 -0
- package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
- package/esm/models/updatefirewallconfigop.js +32 -0
- package/esm/models/updatefirewallconfigop.js.map +1 -1
- package/esm/models/updateprojectdatacacheop.d.ts +103 -17
- package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
- package/esm/models/updateprojectdatacacheop.js +97 -20
- package/esm/models/updateprojectdatacacheop.js.map +1 -1
- package/esm/models/updateprojectop.d.ts +112 -2
- package/esm/models/updateprojectop.d.ts.map +1 -1
- package/esm/models/updateprojectop.js +103 -2
- package/esm/models/updateprojectop.js.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.d.ts +49 -0
- package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
- package/esm/models/updateprojectprotectionbypassop.js +27 -0
- package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
- package/esm/models/updateversionop.d.ts +120 -0
- package/esm/models/updateversionop.d.ts.map +1 -0
- package/esm/models/updateversionop.js +106 -0
- package/esm/models/updateversionop.js.map +1 -0
- package/esm/models/userevent.d.ts +756 -968
- package/esm/models/userevent.d.ts.map +1 -1
- package/esm/models/userevent.js +1012 -1247
- package/esm/models/userevent.js.map +1 -1
- package/esm/sdk/bulkredirects.d.ts +60 -0
- package/esm/sdk/bulkredirects.d.ts.map +1 -0
- package/esm/sdk/bulkredirects.js +78 -0
- package/esm/sdk/bulkredirects.js.map +1 -0
- package/esm/sdk/domains.d.ts +0 -8
- package/esm/sdk/domains.d.ts.map +1 -1
- package/esm/sdk/domains.js +0 -10
- package/esm/sdk/domains.js.map +1 -1
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.d.ts.map +1 -1
- package/esm/sdk/sdk.js +4 -0
- package/esm/sdk/sdk.js.map +1 -1
- package/esm/sdk/teams.d.ts +8 -0
- package/esm/sdk/teams.d.ts.map +1 -1
- package/esm/sdk/teams.js +10 -0
- package/esm/sdk/teams.js.map +1 -1
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/__tests__/accessgroups.test.ts +1 -3
- package/src/__tests__/bulkredirects.test.ts +192 -0
- package/src/__tests__/domains.test.ts +13 -47
- package/src/__tests__/edgeconfig.test.ts +6 -6
- package/src/__tests__/integrations.test.ts +1 -1
- package/src/__tests__/logdrains.test.ts +6 -2
- package/src/__tests__/security.test.ts +26 -32
- package/src/__tests__/teams.test.ts +19 -0
- package/src/__tests__/vercel.test.ts +42 -0
- package/src/funcs/bulkRedirectsDeleteRedirects.ts +172 -0
- package/src/funcs/bulkRedirectsEditRedirect.ts +172 -0
- package/src/funcs/bulkRedirectsGetRedirects.ts +178 -0
- package/src/funcs/bulkRedirectsGetVersions.ts +171 -0
- package/src/funcs/bulkRedirectsRestoreRedirects.ts +172 -0
- package/src/funcs/{domainsBuyDomain.ts → bulkRedirectsStageRedirects.ts} +21 -22
- package/src/funcs/bulkRedirectsUpdateVersion.ts +172 -0
- package/src/funcs/domainsCreateOrTransferDomain.ts +2 -2
- package/src/funcs/teamsPostTeamDsyncRoles.ts +177 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +17 -3
- package/src/mcp-server/tools/bulkRedirectsDeleteRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsEditRedirect.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsGetRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsGetVersions.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsRestoreRedirects.ts +38 -0
- package/src/mcp-server/tools/bulkRedirectsStageRedirects.ts +37 -0
- package/src/mcp-server/tools/bulkRedirectsUpdateVersion.ts +38 -0
- package/src/mcp-server/tools/teamsPostTeamDsyncRoles.ts +37 -0
- package/src/models/canceldeploymentop.ts +129 -0
- package/src/models/createdeploymentop.ts +112 -0
- package/src/models/createedgeconfigop.ts +7 -0
- package/src/models/createintegrationstoredirectop.ts +475 -471
- package/src/models/createortransferdomainop.ts +0 -83
- package/src/models/createprojectop.ts +293 -4
- package/src/models/createwebhookop.ts +4 -2
- package/src/models/deleteredirectsop.ts +275 -0
- package/src/models/editredirectop.ts +340 -0
- package/src/models/getconfigurationproductsop.ts +627 -627
- package/src/models/getconfigurationsop.ts +1 -0
- package/src/models/getdeploymenteventsop.ts +17 -13
- package/src/models/getdeploymentop.ts +263 -0
- package/src/models/getedgeconfigop.ts +7 -0
- package/src/models/getfirewallconfigop.ts +860 -291
- package/src/models/getprojectdomainsop.ts +11 -9
- package/src/models/getprojectsop.ts +214 -4
- package/src/models/getredirectsop.ts +492 -0
- package/src/models/getversionsop.ts +200 -0
- package/src/models/getwebhookop.ts +2 -1
- package/src/models/getwebhooksop.ts +4 -2
- package/src/models/postteamdsyncrolesop.ts +291 -0
- package/src/models/putfirewallconfigop.ts +1051 -279
- package/src/models/restoreredirectsop.ts +281 -0
- package/src/models/stageredirectsop.ts +367 -0
- package/src/models/team.ts +14 -10
- package/src/models/updateedgeconfigop.ts +7 -0
- package/src/models/updatefirewallconfigop.ts +107 -0
- package/src/models/updateprojectdatacacheop.ts +276 -55
- package/src/models/updateprojectop.ts +293 -4
- package/src/models/updateprojectprotectionbypassop.ts +84 -0
- package/src/models/updateversionop.ts +285 -0
- package/src/models/userevent.ts +2357 -2909
- package/src/sdk/bulkredirects.ts +162 -0
- package/src/sdk/domains.ts +0 -19
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/teams.ts +22 -0
- package/vercel-spec.json +3184 -1264
- package/esm/funcs/domainsBuyDomain.d.ts +0 -17
- package/esm/funcs/domainsBuyDomain.d.ts.map +0 -1
- package/esm/funcs/domainsBuyDomain.js.map +0 -1
- package/esm/mcp-server/tools/domainsBuyDomain.d.ts +0 -7
- package/esm/mcp-server/tools/domainsBuyDomain.d.ts.map +0 -1
- package/esm/mcp-server/tools/domainsBuyDomain.js +0 -28
- package/esm/mcp-server/tools/domainsBuyDomain.js.map +0 -1
- package/esm/models/buydomainop.d.ts +0 -180
- package/esm/models/buydomainop.d.ts.map +0 -1
- package/esm/models/buydomainop.js +0 -159
- package/esm/models/buydomainop.js.map +0 -1
- package/src/mcp-server/tools/domainsBuyDomain.ts +0 -37
- package/src/models/buydomainop.ts +0 -453
|
@@ -44,23 +44,20 @@ export type GetFirewallConfigSd = {
|
|
|
44
44
|
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsSdAction;
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
export const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction
|
|
55
|
-
>;
|
|
47
|
+
export const GetFirewallConfigSecurityAction = {
|
|
48
|
+
Deny: "deny",
|
|
49
|
+
Log: "log",
|
|
50
|
+
} as const;
|
|
51
|
+
export type GetFirewallConfigSecurityAction = ClosedEnum<
|
|
52
|
+
typeof GetFirewallConfigSecurityAction
|
|
53
|
+
>;
|
|
56
54
|
|
|
57
55
|
/**
|
|
58
56
|
* Multipart Attack - Block attempts to bypass security controls using multipart/form-data encoding.
|
|
59
57
|
*/
|
|
60
58
|
export type GetFirewallConfigMa = {
|
|
61
59
|
active: boolean;
|
|
62
|
-
action:
|
|
63
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction;
|
|
60
|
+
action: GetFirewallConfigSecurityAction;
|
|
64
61
|
};
|
|
65
62
|
|
|
66
63
|
export const GetFirewallConfigSecurityResponseAction = {
|
|
@@ -273,10 +270,7 @@ export type GetFirewallConfigCrs = {
|
|
|
273
270
|
java: GetFirewallConfigJava;
|
|
274
271
|
};
|
|
275
272
|
|
|
276
|
-
|
|
277
|
-
* [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
|
|
278
|
-
*/
|
|
279
|
-
export const GetFirewallConfigType = {
|
|
273
|
+
export const GetFirewallConfigRulesType = {
|
|
280
274
|
Host: "host",
|
|
281
275
|
Path: "path",
|
|
282
276
|
Method: "method",
|
|
@@ -301,13 +295,14 @@ export const GetFirewallConfigType = {
|
|
|
301
295
|
Ja3Digest: "ja3_digest",
|
|
302
296
|
RateLimitApiId: "rate_limit_api_id",
|
|
303
297
|
ServerAction: "server_action",
|
|
298
|
+
BotName: "bot_name",
|
|
299
|
+
BotCategory: "bot_category",
|
|
304
300
|
} as const;
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
export type GetFirewallConfigType = ClosedEnum<typeof GetFirewallConfigType>;
|
|
301
|
+
export type GetFirewallConfigRulesType = ClosedEnum<
|
|
302
|
+
typeof GetFirewallConfigRulesType
|
|
303
|
+
>;
|
|
309
304
|
|
|
310
|
-
export const
|
|
305
|
+
export const GetFirewallConfigRulesOp = {
|
|
311
306
|
Re: "re",
|
|
312
307
|
Eq: "eq",
|
|
313
308
|
Ex: "ex",
|
|
@@ -323,103 +318,230 @@ export const GetFirewallConfigOp = {
|
|
|
323
318
|
Ninc: "ninc",
|
|
324
319
|
Neq: "neq",
|
|
325
320
|
} as const;
|
|
326
|
-
export type
|
|
321
|
+
export type GetFirewallConfigRulesOp = ClosedEnum<
|
|
322
|
+
typeof GetFirewallConfigRulesOp
|
|
323
|
+
>;
|
|
327
324
|
|
|
328
|
-
export type
|
|
325
|
+
export type GetFirewallConfigRulesValue = string | number | Array<string>;
|
|
329
326
|
|
|
330
|
-
export type
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
*/
|
|
334
|
-
type: GetFirewallConfigType;
|
|
335
|
-
op: GetFirewallConfigOp;
|
|
327
|
+
export type GetFirewallConfigRulesConditions = {
|
|
328
|
+
type: GetFirewallConfigRulesType;
|
|
329
|
+
op: GetFirewallConfigRulesOp;
|
|
336
330
|
neg?: boolean | undefined;
|
|
337
331
|
key?: string | undefined;
|
|
338
332
|
value?: string | number | Array<string> | undefined;
|
|
339
333
|
};
|
|
340
334
|
|
|
341
|
-
export type
|
|
342
|
-
conditions: Array<
|
|
335
|
+
export type GetFirewallConfigRulesConditionGroup = {
|
|
336
|
+
conditions: Array<GetFirewallConfigRulesConditions>;
|
|
343
337
|
};
|
|
344
338
|
|
|
345
|
-
export const
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction
|
|
357
|
-
>;
|
|
339
|
+
export const GetFirewallConfigRulesSecurityAction = {
|
|
340
|
+
Deny: "deny",
|
|
341
|
+
Log: "log",
|
|
342
|
+
Challenge: "challenge",
|
|
343
|
+
Bypass: "bypass",
|
|
344
|
+
RateLimit: "rate_limit",
|
|
345
|
+
Redirect: "redirect",
|
|
346
|
+
} as const;
|
|
347
|
+
export type GetFirewallConfigRulesSecurityAction = ClosedEnum<
|
|
348
|
+
typeof GetFirewallConfigRulesSecurityAction
|
|
349
|
+
>;
|
|
358
350
|
|
|
359
|
-
export const
|
|
351
|
+
export const GetFirewallConfigRulesAlgo = {
|
|
360
352
|
FixedWindow: "fixed_window",
|
|
361
353
|
TokenBucket: "token_bucket",
|
|
362
354
|
} as const;
|
|
363
|
-
export type
|
|
355
|
+
export type GetFirewallConfigRulesAlgo = ClosedEnum<
|
|
356
|
+
typeof GetFirewallConfigRulesAlgo
|
|
357
|
+
>;
|
|
364
358
|
|
|
365
|
-
export const
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
359
|
+
export const GetFirewallConfigRulesSecurityResponse200Action = {
|
|
360
|
+
Deny: "deny",
|
|
361
|
+
Log: "log",
|
|
362
|
+
Challenge: "challenge",
|
|
363
|
+
RateLimit: "rate_limit",
|
|
364
|
+
} as const;
|
|
365
|
+
export type GetFirewallConfigRulesSecurityResponse200Action = ClosedEnum<
|
|
366
|
+
typeof GetFirewallConfigRulesSecurityResponse200Action
|
|
367
|
+
>;
|
|
368
|
+
|
|
369
|
+
export type GetFirewallConfigRulesRateLimit = {
|
|
370
|
+
algo: GetFirewallConfigRulesAlgo;
|
|
371
|
+
window: number;
|
|
372
|
+
limit: number;
|
|
373
|
+
keys: Array<string>;
|
|
374
|
+
action?: GetFirewallConfigRulesSecurityResponse200Action | null | undefined;
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
export type GetFirewallConfigRulesRedirect = {
|
|
378
|
+
location: string;
|
|
379
|
+
permanent: boolean;
|
|
380
|
+
};
|
|
381
|
+
|
|
382
|
+
export type GetFirewallConfigRulesMitigate = {
|
|
383
|
+
action: GetFirewallConfigRulesSecurityAction;
|
|
384
|
+
rateLimit?: GetFirewallConfigRulesRateLimit | null | undefined;
|
|
385
|
+
redirect?: GetFirewallConfigRulesRedirect | null | undefined;
|
|
386
|
+
actionDuration?: string | null | undefined;
|
|
387
|
+
bypassSystem?: boolean | null | undefined;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
export type GetFirewallConfigRulesAction = {
|
|
391
|
+
mitigate?: GetFirewallConfigRulesMitigate | undefined;
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
export type Rules2 = {
|
|
395
|
+
id: string;
|
|
396
|
+
name: string;
|
|
397
|
+
description?: string | undefined;
|
|
398
|
+
active: boolean;
|
|
399
|
+
conditionGroup: Array<GetFirewallConfigRulesConditionGroup>;
|
|
400
|
+
action: GetFirewallConfigRulesAction;
|
|
401
|
+
valid: boolean;
|
|
402
|
+
validationErrors: Array<string>;
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
export const RulesType = {
|
|
406
|
+
Host: "host",
|
|
407
|
+
Path: "path",
|
|
408
|
+
Method: "method",
|
|
409
|
+
Header: "header",
|
|
410
|
+
Query: "query",
|
|
411
|
+
Cookie: "cookie",
|
|
412
|
+
TargetPath: "target_path",
|
|
413
|
+
Route: "route",
|
|
414
|
+
RawPath: "raw_path",
|
|
415
|
+
IpAddress: "ip_address",
|
|
416
|
+
Protocol: "protocol",
|
|
417
|
+
Region: "region",
|
|
418
|
+
Scheme: "scheme",
|
|
419
|
+
Environment: "environment",
|
|
420
|
+
UserAgent: "user_agent",
|
|
421
|
+
GeoContinent: "geo_continent",
|
|
422
|
+
GeoCountry: "geo_country",
|
|
423
|
+
GeoCountryRegion: "geo_country_region",
|
|
424
|
+
GeoCity: "geo_city",
|
|
425
|
+
GeoAsNumber: "geo_as_number",
|
|
426
|
+
Ja4Digest: "ja4_digest",
|
|
427
|
+
Ja3Digest: "ja3_digest",
|
|
428
|
+
RateLimitApiId: "rate_limit_api_id",
|
|
429
|
+
ServerAction: "server_action",
|
|
430
|
+
BotName: "bot_name",
|
|
431
|
+
BotCategory: "bot_category",
|
|
432
|
+
} as const;
|
|
433
|
+
export type RulesType = ClosedEnum<typeof RulesType>;
|
|
434
|
+
|
|
435
|
+
export const RulesOp = {
|
|
436
|
+
Re: "re",
|
|
437
|
+
Eq: "eq",
|
|
438
|
+
Ex: "ex",
|
|
439
|
+
Inc: "inc",
|
|
440
|
+
Pre: "pre",
|
|
441
|
+
Suf: "suf",
|
|
442
|
+
Sub: "sub",
|
|
443
|
+
Gt: "gt",
|
|
444
|
+
Gte: "gte",
|
|
445
|
+
Lt: "lt",
|
|
446
|
+
Lte: "lte",
|
|
447
|
+
Nex: "nex",
|
|
448
|
+
Ninc: "ninc",
|
|
449
|
+
Neq: "neq",
|
|
450
|
+
} as const;
|
|
451
|
+
export type RulesOp = ClosedEnum<typeof RulesOp>;
|
|
452
|
+
|
|
453
|
+
export type RulesValue = string | number | Array<string>;
|
|
454
|
+
|
|
455
|
+
export type RulesConditions = {
|
|
456
|
+
type: RulesType;
|
|
457
|
+
op: RulesOp;
|
|
458
|
+
neg?: boolean | undefined;
|
|
459
|
+
key?: string | undefined;
|
|
460
|
+
value?: string | number | Array<string> | undefined;
|
|
461
|
+
};
|
|
462
|
+
|
|
463
|
+
export type RulesConditionGroup = {
|
|
464
|
+
conditions: Array<RulesConditions>;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export const GetFirewallConfigRulesSecurityResponseAction = {
|
|
468
|
+
Deny: "deny",
|
|
469
|
+
Log: "log",
|
|
470
|
+
Challenge: "challenge",
|
|
471
|
+
Bypass: "bypass",
|
|
472
|
+
RateLimit: "rate_limit",
|
|
473
|
+
Redirect: "redirect",
|
|
474
|
+
} as const;
|
|
475
|
+
export type GetFirewallConfigRulesSecurityResponseAction = ClosedEnum<
|
|
476
|
+
typeof GetFirewallConfigRulesSecurityResponseAction
|
|
477
|
+
>;
|
|
478
|
+
|
|
479
|
+
export const RulesAlgo = {
|
|
480
|
+
FixedWindow: "fixed_window",
|
|
481
|
+
TokenBucket: "token_bucket",
|
|
482
|
+
} as const;
|
|
483
|
+
export type RulesAlgo = ClosedEnum<typeof RulesAlgo>;
|
|
484
|
+
|
|
485
|
+
export const GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction = {
|
|
486
|
+
Deny: "deny",
|
|
487
|
+
Log: "log",
|
|
488
|
+
Challenge: "challenge",
|
|
489
|
+
RateLimit: "rate_limit",
|
|
490
|
+
} as const;
|
|
491
|
+
export type GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction =
|
|
373
492
|
ClosedEnum<
|
|
374
|
-
typeof
|
|
493
|
+
typeof GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
375
494
|
>;
|
|
376
495
|
|
|
377
|
-
export type
|
|
378
|
-
algo:
|
|
496
|
+
export type RulesRateLimit = {
|
|
497
|
+
algo: RulesAlgo;
|
|
379
498
|
window: number;
|
|
380
499
|
limit: number;
|
|
381
500
|
keys: Array<string>;
|
|
382
501
|
action?:
|
|
383
|
-
|
|
|
502
|
+
| GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
384
503
|
| null
|
|
385
504
|
| undefined;
|
|
386
505
|
};
|
|
387
506
|
|
|
388
|
-
export type
|
|
507
|
+
export type RulesRedirect = {
|
|
389
508
|
location: string;
|
|
390
509
|
permanent: boolean;
|
|
391
510
|
};
|
|
392
511
|
|
|
393
|
-
export type
|
|
394
|
-
action:
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
redirect?: GetFirewallConfigRedirect | null | undefined;
|
|
512
|
+
export type RulesMitigate = {
|
|
513
|
+
action: GetFirewallConfigRulesSecurityResponseAction;
|
|
514
|
+
rateLimit?: RulesRateLimit | null | undefined;
|
|
515
|
+
redirect?: RulesRedirect | null | undefined;
|
|
398
516
|
actionDuration?: string | null | undefined;
|
|
399
517
|
bypassSystem?: boolean | null | undefined;
|
|
400
518
|
};
|
|
401
519
|
|
|
402
|
-
export type
|
|
403
|
-
mitigate?:
|
|
520
|
+
export type RulesAction = {
|
|
521
|
+
mitigate?: RulesMitigate | undefined;
|
|
404
522
|
};
|
|
405
523
|
|
|
406
|
-
export type
|
|
524
|
+
export type Rules1 = {
|
|
407
525
|
id: string;
|
|
408
526
|
name: string;
|
|
409
527
|
description?: string | undefined;
|
|
410
528
|
active: boolean;
|
|
411
|
-
conditionGroup: Array<
|
|
412
|
-
action:
|
|
529
|
+
conditionGroup: Array<RulesConditionGroup>;
|
|
530
|
+
action: RulesAction;
|
|
531
|
+
valid: boolean;
|
|
532
|
+
validationErrors?: any | null | undefined;
|
|
413
533
|
};
|
|
414
534
|
|
|
415
|
-
export
|
|
535
|
+
export type GetFirewallConfigRules = Rules1 | Rules2;
|
|
536
|
+
|
|
537
|
+
export const GetFirewallConfigAction = {
|
|
416
538
|
Deny: "deny",
|
|
417
539
|
Log: "log",
|
|
418
540
|
Challenge: "challenge",
|
|
419
541
|
Bypass: "bypass",
|
|
420
542
|
} as const;
|
|
421
|
-
export type
|
|
422
|
-
typeof
|
|
543
|
+
export type GetFirewallConfigAction = ClosedEnum<
|
|
544
|
+
typeof GetFirewallConfigAction
|
|
423
545
|
>;
|
|
424
546
|
|
|
425
547
|
export type GetFirewallConfigIps = {
|
|
@@ -427,7 +549,7 @@ export type GetFirewallConfigIps = {
|
|
|
427
549
|
hostname: string;
|
|
428
550
|
ip: string;
|
|
429
551
|
notes?: string | undefined;
|
|
430
|
-
action:
|
|
552
|
+
action: GetFirewallConfigAction;
|
|
431
553
|
};
|
|
432
554
|
|
|
433
555
|
export type Changes = {};
|
|
@@ -495,7 +617,7 @@ export type Owasp = {
|
|
|
495
617
|
username?: string | undefined;
|
|
496
618
|
};
|
|
497
619
|
|
|
498
|
-
export type
|
|
620
|
+
export type GetFirewallConfigManagedRules = {
|
|
499
621
|
botProtection?: BotProtection | undefined;
|
|
500
622
|
aiBots?: AiBots | undefined;
|
|
501
623
|
owasp?: Owasp | undefined;
|
|
@@ -515,10 +637,10 @@ export type GetFirewallConfigResponseBody = {
|
|
|
515
637
|
* Custom Ruleset
|
|
516
638
|
*/
|
|
517
639
|
crs: GetFirewallConfigCrs;
|
|
518
|
-
rules: Array<
|
|
640
|
+
rules: Array<Rules1 | Rules2>;
|
|
519
641
|
ips: Array<GetFirewallConfigIps>;
|
|
520
642
|
changes: Array<Changes>;
|
|
521
|
-
managedRules?:
|
|
643
|
+
managedRules?: GetFirewallConfigManagedRules | undefined;
|
|
522
644
|
botIdEnabled?: boolean | undefined;
|
|
523
645
|
};
|
|
524
646
|
|
|
@@ -629,18 +751,13 @@ export function getFirewallConfigSdFromJSON(
|
|
|
629
751
|
}
|
|
630
752
|
|
|
631
753
|
/** @internal */
|
|
632
|
-
export const
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
> = z.nativeEnum(
|
|
636
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction,
|
|
637
|
-
);
|
|
754
|
+
export const GetFirewallConfigSecurityAction$inboundSchema: z.ZodNativeEnum<
|
|
755
|
+
typeof GetFirewallConfigSecurityAction
|
|
756
|
+
> = z.nativeEnum(GetFirewallConfigSecurityAction);
|
|
638
757
|
/** @internal */
|
|
639
|
-
export const
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
> =
|
|
643
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction$inboundSchema;
|
|
758
|
+
export const GetFirewallConfigSecurityAction$outboundSchema: z.ZodNativeEnum<
|
|
759
|
+
typeof GetFirewallConfigSecurityAction
|
|
760
|
+
> = GetFirewallConfigSecurityAction$inboundSchema;
|
|
644
761
|
|
|
645
762
|
/** @internal */
|
|
646
763
|
export const GetFirewallConfigMa$inboundSchema: z.ZodType<
|
|
@@ -649,8 +766,7 @@ export const GetFirewallConfigMa$inboundSchema: z.ZodType<
|
|
|
649
766
|
unknown
|
|
650
767
|
> = z.object({
|
|
651
768
|
active: z.boolean(),
|
|
652
|
-
action:
|
|
653
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction$inboundSchema,
|
|
769
|
+
action: GetFirewallConfigSecurityAction$inboundSchema,
|
|
654
770
|
});
|
|
655
771
|
/** @internal */
|
|
656
772
|
export type GetFirewallConfigMa$Outbound = {
|
|
@@ -665,8 +781,7 @@ export const GetFirewallConfigMa$outboundSchema: z.ZodType<
|
|
|
665
781
|
GetFirewallConfigMa
|
|
666
782
|
> = z.object({
|
|
667
783
|
active: z.boolean(),
|
|
668
|
-
action:
|
|
669
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction$outboundSchema,
|
|
784
|
+
action: GetFirewallConfigSecurityAction$outboundSchema,
|
|
670
785
|
});
|
|
671
786
|
|
|
672
787
|
export function getFirewallConfigMaToJSON(
|
|
@@ -1261,70 +1376,75 @@ export function getFirewallConfigCrsFromJSON(
|
|
|
1261
1376
|
}
|
|
1262
1377
|
|
|
1263
1378
|
/** @internal */
|
|
1264
|
-
export const
|
|
1265
|
-
typeof
|
|
1266
|
-
> = z.nativeEnum(
|
|
1379
|
+
export const GetFirewallConfigRulesType$inboundSchema: z.ZodNativeEnum<
|
|
1380
|
+
typeof GetFirewallConfigRulesType
|
|
1381
|
+
> = z.nativeEnum(GetFirewallConfigRulesType);
|
|
1267
1382
|
/** @internal */
|
|
1268
|
-
export const
|
|
1269
|
-
typeof
|
|
1270
|
-
> =
|
|
1383
|
+
export const GetFirewallConfigRulesType$outboundSchema: z.ZodNativeEnum<
|
|
1384
|
+
typeof GetFirewallConfigRulesType
|
|
1385
|
+
> = GetFirewallConfigRulesType$inboundSchema;
|
|
1271
1386
|
|
|
1272
1387
|
/** @internal */
|
|
1273
|
-
export const
|
|
1274
|
-
typeof
|
|
1275
|
-
> = z.nativeEnum(
|
|
1388
|
+
export const GetFirewallConfigRulesOp$inboundSchema: z.ZodNativeEnum<
|
|
1389
|
+
typeof GetFirewallConfigRulesOp
|
|
1390
|
+
> = z.nativeEnum(GetFirewallConfigRulesOp);
|
|
1276
1391
|
/** @internal */
|
|
1277
|
-
export const
|
|
1278
|
-
typeof
|
|
1279
|
-
> =
|
|
1392
|
+
export const GetFirewallConfigRulesOp$outboundSchema: z.ZodNativeEnum<
|
|
1393
|
+
typeof GetFirewallConfigRulesOp
|
|
1394
|
+
> = GetFirewallConfigRulesOp$inboundSchema;
|
|
1280
1395
|
|
|
1281
1396
|
/** @internal */
|
|
1282
|
-
export const
|
|
1283
|
-
|
|
1397
|
+
export const GetFirewallConfigRulesValue$inboundSchema: z.ZodType<
|
|
1398
|
+
GetFirewallConfigRulesValue,
|
|
1284
1399
|
z.ZodTypeDef,
|
|
1285
1400
|
unknown
|
|
1286
1401
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1287
1402
|
/** @internal */
|
|
1288
|
-
export type
|
|
1403
|
+
export type GetFirewallConfigRulesValue$Outbound =
|
|
1404
|
+
| string
|
|
1405
|
+
| number
|
|
1406
|
+
| Array<string>;
|
|
1289
1407
|
|
|
1290
1408
|
/** @internal */
|
|
1291
|
-
export const
|
|
1292
|
-
|
|
1409
|
+
export const GetFirewallConfigRulesValue$outboundSchema: z.ZodType<
|
|
1410
|
+
GetFirewallConfigRulesValue$Outbound,
|
|
1293
1411
|
z.ZodTypeDef,
|
|
1294
|
-
|
|
1412
|
+
GetFirewallConfigRulesValue
|
|
1295
1413
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1296
1414
|
|
|
1297
|
-
export function
|
|
1298
|
-
|
|
1415
|
+
export function getFirewallConfigRulesValueToJSON(
|
|
1416
|
+
getFirewallConfigRulesValue: GetFirewallConfigRulesValue,
|
|
1299
1417
|
): string {
|
|
1300
1418
|
return JSON.stringify(
|
|
1301
|
-
|
|
1419
|
+
GetFirewallConfigRulesValue$outboundSchema.parse(
|
|
1420
|
+
getFirewallConfigRulesValue,
|
|
1421
|
+
),
|
|
1302
1422
|
);
|
|
1303
1423
|
}
|
|
1304
|
-
export function
|
|
1424
|
+
export function getFirewallConfigRulesValueFromJSON(
|
|
1305
1425
|
jsonString: string,
|
|
1306
|
-
): SafeParseResult<
|
|
1426
|
+
): SafeParseResult<GetFirewallConfigRulesValue, SDKValidationError> {
|
|
1307
1427
|
return safeParse(
|
|
1308
1428
|
jsonString,
|
|
1309
|
-
(x) =>
|
|
1310
|
-
`Failed to parse '
|
|
1429
|
+
(x) => GetFirewallConfigRulesValue$inboundSchema.parse(JSON.parse(x)),
|
|
1430
|
+
`Failed to parse 'GetFirewallConfigRulesValue' from JSON`,
|
|
1311
1431
|
);
|
|
1312
1432
|
}
|
|
1313
1433
|
|
|
1314
1434
|
/** @internal */
|
|
1315
|
-
export const
|
|
1316
|
-
|
|
1435
|
+
export const GetFirewallConfigRulesConditions$inboundSchema: z.ZodType<
|
|
1436
|
+
GetFirewallConfigRulesConditions,
|
|
1317
1437
|
z.ZodTypeDef,
|
|
1318
1438
|
unknown
|
|
1319
1439
|
> = z.object({
|
|
1320
|
-
type:
|
|
1321
|
-
op:
|
|
1440
|
+
type: GetFirewallConfigRulesType$inboundSchema,
|
|
1441
|
+
op: GetFirewallConfigRulesOp$inboundSchema,
|
|
1322
1442
|
neg: z.boolean().optional(),
|
|
1323
1443
|
key: z.string().optional(),
|
|
1324
1444
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1325
1445
|
});
|
|
1326
1446
|
/** @internal */
|
|
1327
|
-
export type
|
|
1447
|
+
export type GetFirewallConfigRulesConditions$Outbound = {
|
|
1328
1448
|
type: string;
|
|
1329
1449
|
op: string;
|
|
1330
1450
|
neg?: boolean | undefined;
|
|
@@ -1333,131 +1453,127 @@ export type GetFirewallConfigConditions$Outbound = {
|
|
|
1333
1453
|
};
|
|
1334
1454
|
|
|
1335
1455
|
/** @internal */
|
|
1336
|
-
export const
|
|
1337
|
-
|
|
1456
|
+
export const GetFirewallConfigRulesConditions$outboundSchema: z.ZodType<
|
|
1457
|
+
GetFirewallConfigRulesConditions$Outbound,
|
|
1338
1458
|
z.ZodTypeDef,
|
|
1339
|
-
|
|
1459
|
+
GetFirewallConfigRulesConditions
|
|
1340
1460
|
> = z.object({
|
|
1341
|
-
type:
|
|
1342
|
-
op:
|
|
1461
|
+
type: GetFirewallConfigRulesType$outboundSchema,
|
|
1462
|
+
op: GetFirewallConfigRulesOp$outboundSchema,
|
|
1343
1463
|
neg: z.boolean().optional(),
|
|
1344
1464
|
key: z.string().optional(),
|
|
1345
1465
|
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1346
1466
|
});
|
|
1347
1467
|
|
|
1348
|
-
export function
|
|
1349
|
-
|
|
1468
|
+
export function getFirewallConfigRulesConditionsToJSON(
|
|
1469
|
+
getFirewallConfigRulesConditions: GetFirewallConfigRulesConditions,
|
|
1350
1470
|
): string {
|
|
1351
1471
|
return JSON.stringify(
|
|
1352
|
-
|
|
1353
|
-
|
|
1472
|
+
GetFirewallConfigRulesConditions$outboundSchema.parse(
|
|
1473
|
+
getFirewallConfigRulesConditions,
|
|
1354
1474
|
),
|
|
1355
1475
|
);
|
|
1356
1476
|
}
|
|
1357
|
-
export function
|
|
1477
|
+
export function getFirewallConfigRulesConditionsFromJSON(
|
|
1358
1478
|
jsonString: string,
|
|
1359
|
-
): SafeParseResult<
|
|
1479
|
+
): SafeParseResult<GetFirewallConfigRulesConditions, SDKValidationError> {
|
|
1360
1480
|
return safeParse(
|
|
1361
1481
|
jsonString,
|
|
1362
|
-
(x) =>
|
|
1363
|
-
`Failed to parse '
|
|
1482
|
+
(x) => GetFirewallConfigRulesConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1483
|
+
`Failed to parse 'GetFirewallConfigRulesConditions' from JSON`,
|
|
1364
1484
|
);
|
|
1365
1485
|
}
|
|
1366
1486
|
|
|
1367
1487
|
/** @internal */
|
|
1368
|
-
export const
|
|
1369
|
-
|
|
1488
|
+
export const GetFirewallConfigRulesConditionGroup$inboundSchema: z.ZodType<
|
|
1489
|
+
GetFirewallConfigRulesConditionGroup,
|
|
1370
1490
|
z.ZodTypeDef,
|
|
1371
1491
|
unknown
|
|
1372
1492
|
> = z.object({
|
|
1373
|
-
conditions: z.array(
|
|
1493
|
+
conditions: z.array(
|
|
1494
|
+
z.lazy(() => GetFirewallConfigRulesConditions$inboundSchema),
|
|
1495
|
+
),
|
|
1374
1496
|
});
|
|
1375
1497
|
/** @internal */
|
|
1376
|
-
export type
|
|
1377
|
-
conditions: Array<
|
|
1498
|
+
export type GetFirewallConfigRulesConditionGroup$Outbound = {
|
|
1499
|
+
conditions: Array<GetFirewallConfigRulesConditions$Outbound>;
|
|
1378
1500
|
};
|
|
1379
1501
|
|
|
1380
1502
|
/** @internal */
|
|
1381
|
-
export const
|
|
1382
|
-
|
|
1503
|
+
export const GetFirewallConfigRulesConditionGroup$outboundSchema: z.ZodType<
|
|
1504
|
+
GetFirewallConfigRulesConditionGroup$Outbound,
|
|
1383
1505
|
z.ZodTypeDef,
|
|
1384
|
-
|
|
1506
|
+
GetFirewallConfigRulesConditionGroup
|
|
1385
1507
|
> = z.object({
|
|
1386
|
-
conditions: z.array(
|
|
1508
|
+
conditions: z.array(
|
|
1509
|
+
z.lazy(() => GetFirewallConfigRulesConditions$outboundSchema),
|
|
1510
|
+
),
|
|
1387
1511
|
});
|
|
1388
1512
|
|
|
1389
|
-
export function
|
|
1390
|
-
|
|
1513
|
+
export function getFirewallConfigRulesConditionGroupToJSON(
|
|
1514
|
+
getFirewallConfigRulesConditionGroup: GetFirewallConfigRulesConditionGroup,
|
|
1391
1515
|
): string {
|
|
1392
1516
|
return JSON.stringify(
|
|
1393
|
-
|
|
1394
|
-
|
|
1517
|
+
GetFirewallConfigRulesConditionGroup$outboundSchema.parse(
|
|
1518
|
+
getFirewallConfigRulesConditionGroup,
|
|
1395
1519
|
),
|
|
1396
1520
|
);
|
|
1397
1521
|
}
|
|
1398
|
-
export function
|
|
1522
|
+
export function getFirewallConfigRulesConditionGroupFromJSON(
|
|
1399
1523
|
jsonString: string,
|
|
1400
|
-
): SafeParseResult<
|
|
1524
|
+
): SafeParseResult<GetFirewallConfigRulesConditionGroup, SDKValidationError> {
|
|
1401
1525
|
return safeParse(
|
|
1402
1526
|
jsonString,
|
|
1403
|
-
(x) =>
|
|
1404
|
-
|
|
1527
|
+
(x) =>
|
|
1528
|
+
GetFirewallConfigRulesConditionGroup$inboundSchema.parse(JSON.parse(x)),
|
|
1529
|
+
`Failed to parse 'GetFirewallConfigRulesConditionGroup' from JSON`,
|
|
1405
1530
|
);
|
|
1406
1531
|
}
|
|
1407
1532
|
|
|
1408
1533
|
/** @internal */
|
|
1409
|
-
export const
|
|
1410
|
-
z.ZodNativeEnum<
|
|
1411
|
-
|
|
1412
|
-
> = z.nativeEnum(
|
|
1413
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction,
|
|
1534
|
+
export const GetFirewallConfigRulesSecurityAction$inboundSchema:
|
|
1535
|
+
z.ZodNativeEnum<typeof GetFirewallConfigRulesSecurityAction> = z.nativeEnum(
|
|
1536
|
+
GetFirewallConfigRulesSecurityAction,
|
|
1414
1537
|
);
|
|
1415
1538
|
/** @internal */
|
|
1416
|
-
export const
|
|
1417
|
-
z.ZodNativeEnum<
|
|
1418
|
-
|
|
1419
|
-
> =
|
|
1420
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction$inboundSchema;
|
|
1539
|
+
export const GetFirewallConfigRulesSecurityAction$outboundSchema:
|
|
1540
|
+
z.ZodNativeEnum<typeof GetFirewallConfigRulesSecurityAction> =
|
|
1541
|
+
GetFirewallConfigRulesSecurityAction$inboundSchema;
|
|
1421
1542
|
|
|
1422
1543
|
/** @internal */
|
|
1423
|
-
export const
|
|
1424
|
-
typeof
|
|
1425
|
-
> = z.nativeEnum(
|
|
1544
|
+
export const GetFirewallConfigRulesAlgo$inboundSchema: z.ZodNativeEnum<
|
|
1545
|
+
typeof GetFirewallConfigRulesAlgo
|
|
1546
|
+
> = z.nativeEnum(GetFirewallConfigRulesAlgo);
|
|
1426
1547
|
/** @internal */
|
|
1427
|
-
export const
|
|
1428
|
-
typeof
|
|
1429
|
-
> =
|
|
1548
|
+
export const GetFirewallConfigRulesAlgo$outboundSchema: z.ZodNativeEnum<
|
|
1549
|
+
typeof GetFirewallConfigRulesAlgo
|
|
1550
|
+
> = GetFirewallConfigRulesAlgo$inboundSchema;
|
|
1430
1551
|
|
|
1431
1552
|
/** @internal */
|
|
1432
|
-
export const
|
|
1433
|
-
z.ZodNativeEnum<
|
|
1434
|
-
|
|
1435
|
-
> = z.nativeEnum(
|
|
1436
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction,
|
|
1437
|
-
);
|
|
1553
|
+
export const GetFirewallConfigRulesSecurityResponse200Action$inboundSchema:
|
|
1554
|
+
z.ZodNativeEnum<typeof GetFirewallConfigRulesSecurityResponse200Action> = z
|
|
1555
|
+
.nativeEnum(GetFirewallConfigRulesSecurityResponse200Action);
|
|
1438
1556
|
/** @internal */
|
|
1439
|
-
export const
|
|
1440
|
-
z.ZodNativeEnum<
|
|
1441
|
-
|
|
1442
|
-
> =
|
|
1443
|
-
GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction$inboundSchema;
|
|
1557
|
+
export const GetFirewallConfigRulesSecurityResponse200Action$outboundSchema:
|
|
1558
|
+
z.ZodNativeEnum<typeof GetFirewallConfigRulesSecurityResponse200Action> =
|
|
1559
|
+
GetFirewallConfigRulesSecurityResponse200Action$inboundSchema;
|
|
1444
1560
|
|
|
1445
1561
|
/** @internal */
|
|
1446
|
-
export const
|
|
1447
|
-
|
|
1562
|
+
export const GetFirewallConfigRulesRateLimit$inboundSchema: z.ZodType<
|
|
1563
|
+
GetFirewallConfigRulesRateLimit,
|
|
1448
1564
|
z.ZodTypeDef,
|
|
1449
1565
|
unknown
|
|
1450
1566
|
> = z.object({
|
|
1451
|
-
algo:
|
|
1567
|
+
algo: GetFirewallConfigRulesAlgo$inboundSchema,
|
|
1452
1568
|
window: z.number(),
|
|
1453
1569
|
limit: z.number(),
|
|
1454
1570
|
keys: z.array(z.string()),
|
|
1455
1571
|
action: z.nullable(
|
|
1456
|
-
|
|
1572
|
+
GetFirewallConfigRulesSecurityResponse200Action$inboundSchema,
|
|
1457
1573
|
).optional(),
|
|
1458
1574
|
});
|
|
1459
1575
|
/** @internal */
|
|
1460
|
-
export type
|
|
1576
|
+
export type GetFirewallConfigRulesRateLimit$Outbound = {
|
|
1461
1577
|
algo: string;
|
|
1462
1578
|
window: number;
|
|
1463
1579
|
limit: number;
|
|
@@ -1466,40 +1582,42 @@ export type GetFirewallConfigRateLimit$Outbound = {
|
|
|
1466
1582
|
};
|
|
1467
1583
|
|
|
1468
1584
|
/** @internal */
|
|
1469
|
-
export const
|
|
1470
|
-
|
|
1585
|
+
export const GetFirewallConfigRulesRateLimit$outboundSchema: z.ZodType<
|
|
1586
|
+
GetFirewallConfigRulesRateLimit$Outbound,
|
|
1471
1587
|
z.ZodTypeDef,
|
|
1472
|
-
|
|
1588
|
+
GetFirewallConfigRulesRateLimit
|
|
1473
1589
|
> = z.object({
|
|
1474
|
-
algo:
|
|
1590
|
+
algo: GetFirewallConfigRulesAlgo$outboundSchema,
|
|
1475
1591
|
window: z.number(),
|
|
1476
1592
|
limit: z.number(),
|
|
1477
1593
|
keys: z.array(z.string()),
|
|
1478
1594
|
action: z.nullable(
|
|
1479
|
-
|
|
1595
|
+
GetFirewallConfigRulesSecurityResponse200Action$outboundSchema,
|
|
1480
1596
|
).optional(),
|
|
1481
1597
|
});
|
|
1482
1598
|
|
|
1483
|
-
export function
|
|
1484
|
-
|
|
1599
|
+
export function getFirewallConfigRulesRateLimitToJSON(
|
|
1600
|
+
getFirewallConfigRulesRateLimit: GetFirewallConfigRulesRateLimit,
|
|
1485
1601
|
): string {
|
|
1486
1602
|
return JSON.stringify(
|
|
1487
|
-
|
|
1603
|
+
GetFirewallConfigRulesRateLimit$outboundSchema.parse(
|
|
1604
|
+
getFirewallConfigRulesRateLimit,
|
|
1605
|
+
),
|
|
1488
1606
|
);
|
|
1489
1607
|
}
|
|
1490
|
-
export function
|
|
1608
|
+
export function getFirewallConfigRulesRateLimitFromJSON(
|
|
1491
1609
|
jsonString: string,
|
|
1492
|
-
): SafeParseResult<
|
|
1610
|
+
): SafeParseResult<GetFirewallConfigRulesRateLimit, SDKValidationError> {
|
|
1493
1611
|
return safeParse(
|
|
1494
1612
|
jsonString,
|
|
1495
|
-
(x) =>
|
|
1496
|
-
`Failed to parse '
|
|
1613
|
+
(x) => GetFirewallConfigRulesRateLimit$inboundSchema.parse(JSON.parse(x)),
|
|
1614
|
+
`Failed to parse 'GetFirewallConfigRulesRateLimit' from JSON`,
|
|
1497
1615
|
);
|
|
1498
1616
|
}
|
|
1499
1617
|
|
|
1500
1618
|
/** @internal */
|
|
1501
|
-
export const
|
|
1502
|
-
|
|
1619
|
+
export const GetFirewallConfigRulesRedirect$inboundSchema: z.ZodType<
|
|
1620
|
+
GetFirewallConfigRulesRedirect,
|
|
1503
1621
|
z.ZodTypeDef,
|
|
1504
1622
|
unknown
|
|
1505
1623
|
> = z.object({
|
|
@@ -1507,175 +1625,608 @@ export const GetFirewallConfigRedirect$inboundSchema: z.ZodType<
|
|
|
1507
1625
|
permanent: z.boolean(),
|
|
1508
1626
|
});
|
|
1509
1627
|
/** @internal */
|
|
1510
|
-
export type
|
|
1628
|
+
export type GetFirewallConfigRulesRedirect$Outbound = {
|
|
1511
1629
|
location: string;
|
|
1512
1630
|
permanent: boolean;
|
|
1513
1631
|
};
|
|
1514
1632
|
|
|
1515
1633
|
/** @internal */
|
|
1516
|
-
export const
|
|
1517
|
-
|
|
1634
|
+
export const GetFirewallConfigRulesRedirect$outboundSchema: z.ZodType<
|
|
1635
|
+
GetFirewallConfigRulesRedirect$Outbound,
|
|
1518
1636
|
z.ZodTypeDef,
|
|
1519
|
-
|
|
1637
|
+
GetFirewallConfigRulesRedirect
|
|
1520
1638
|
> = z.object({
|
|
1521
1639
|
location: z.string(),
|
|
1522
1640
|
permanent: z.boolean(),
|
|
1523
1641
|
});
|
|
1524
1642
|
|
|
1525
|
-
export function
|
|
1526
|
-
|
|
1643
|
+
export function getFirewallConfigRulesRedirectToJSON(
|
|
1644
|
+
getFirewallConfigRulesRedirect: GetFirewallConfigRulesRedirect,
|
|
1527
1645
|
): string {
|
|
1528
1646
|
return JSON.stringify(
|
|
1529
|
-
|
|
1647
|
+
GetFirewallConfigRulesRedirect$outboundSchema.parse(
|
|
1648
|
+
getFirewallConfigRulesRedirect,
|
|
1649
|
+
),
|
|
1530
1650
|
);
|
|
1531
1651
|
}
|
|
1532
|
-
export function
|
|
1652
|
+
export function getFirewallConfigRulesRedirectFromJSON(
|
|
1533
1653
|
jsonString: string,
|
|
1534
|
-
): SafeParseResult<
|
|
1654
|
+
): SafeParseResult<GetFirewallConfigRulesRedirect, SDKValidationError> {
|
|
1535
1655
|
return safeParse(
|
|
1536
1656
|
jsonString,
|
|
1537
|
-
(x) =>
|
|
1538
|
-
`Failed to parse '
|
|
1657
|
+
(x) => GetFirewallConfigRulesRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
1658
|
+
`Failed to parse 'GetFirewallConfigRulesRedirect' from JSON`,
|
|
1539
1659
|
);
|
|
1540
1660
|
}
|
|
1541
1661
|
|
|
1542
1662
|
/** @internal */
|
|
1543
|
-
export const
|
|
1544
|
-
|
|
1663
|
+
export const GetFirewallConfigRulesMitigate$inboundSchema: z.ZodType<
|
|
1664
|
+
GetFirewallConfigRulesMitigate,
|
|
1545
1665
|
z.ZodTypeDef,
|
|
1546
1666
|
unknown
|
|
1547
1667
|
> = z.object({
|
|
1548
|
-
action:
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
redirect: z.nullable(
|
|
1553
|
-
.
|
|
1668
|
+
action: GetFirewallConfigRulesSecurityAction$inboundSchema,
|
|
1669
|
+
rateLimit: z.nullable(
|
|
1670
|
+
z.lazy(() => GetFirewallConfigRulesRateLimit$inboundSchema),
|
|
1671
|
+
).optional(),
|
|
1672
|
+
redirect: z.nullable(
|
|
1673
|
+
z.lazy(() => GetFirewallConfigRulesRedirect$inboundSchema),
|
|
1674
|
+
).optional(),
|
|
1554
1675
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1555
1676
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1556
1677
|
});
|
|
1557
1678
|
/** @internal */
|
|
1558
|
-
export type
|
|
1679
|
+
export type GetFirewallConfigRulesMitigate$Outbound = {
|
|
1559
1680
|
action: string;
|
|
1560
|
-
rateLimit?:
|
|
1561
|
-
redirect?:
|
|
1681
|
+
rateLimit?: GetFirewallConfigRulesRateLimit$Outbound | null | undefined;
|
|
1682
|
+
redirect?: GetFirewallConfigRulesRedirect$Outbound | null | undefined;
|
|
1562
1683
|
actionDuration?: string | null | undefined;
|
|
1563
1684
|
bypassSystem?: boolean | null | undefined;
|
|
1564
1685
|
};
|
|
1565
1686
|
|
|
1566
1687
|
/** @internal */
|
|
1567
|
-
export const
|
|
1568
|
-
|
|
1688
|
+
export const GetFirewallConfigRulesMitigate$outboundSchema: z.ZodType<
|
|
1689
|
+
GetFirewallConfigRulesMitigate$Outbound,
|
|
1569
1690
|
z.ZodTypeDef,
|
|
1570
|
-
|
|
1691
|
+
GetFirewallConfigRulesMitigate
|
|
1571
1692
|
> = z.object({
|
|
1572
|
-
action:
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
redirect: z.nullable(
|
|
1577
|
-
.
|
|
1693
|
+
action: GetFirewallConfigRulesSecurityAction$outboundSchema,
|
|
1694
|
+
rateLimit: z.nullable(
|
|
1695
|
+
z.lazy(() => GetFirewallConfigRulesRateLimit$outboundSchema),
|
|
1696
|
+
).optional(),
|
|
1697
|
+
redirect: z.nullable(
|
|
1698
|
+
z.lazy(() => GetFirewallConfigRulesRedirect$outboundSchema),
|
|
1699
|
+
).optional(),
|
|
1578
1700
|
actionDuration: z.nullable(z.string()).optional(),
|
|
1579
1701
|
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
1580
1702
|
});
|
|
1581
1703
|
|
|
1582
|
-
export function
|
|
1583
|
-
|
|
1704
|
+
export function getFirewallConfigRulesMitigateToJSON(
|
|
1705
|
+
getFirewallConfigRulesMitigate: GetFirewallConfigRulesMitigate,
|
|
1584
1706
|
): string {
|
|
1585
1707
|
return JSON.stringify(
|
|
1586
|
-
|
|
1708
|
+
GetFirewallConfigRulesMitigate$outboundSchema.parse(
|
|
1709
|
+
getFirewallConfigRulesMitigate,
|
|
1710
|
+
),
|
|
1587
1711
|
);
|
|
1588
1712
|
}
|
|
1589
|
-
export function
|
|
1713
|
+
export function getFirewallConfigRulesMitigateFromJSON(
|
|
1590
1714
|
jsonString: string,
|
|
1591
|
-
): SafeParseResult<
|
|
1715
|
+
): SafeParseResult<GetFirewallConfigRulesMitigate, SDKValidationError> {
|
|
1592
1716
|
return safeParse(
|
|
1593
1717
|
jsonString,
|
|
1594
|
-
(x) =>
|
|
1595
|
-
`Failed to parse '
|
|
1718
|
+
(x) => GetFirewallConfigRulesMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
1719
|
+
`Failed to parse 'GetFirewallConfigRulesMitigate' from JSON`,
|
|
1596
1720
|
);
|
|
1597
1721
|
}
|
|
1598
1722
|
|
|
1599
1723
|
/** @internal */
|
|
1600
|
-
export const
|
|
1601
|
-
|
|
1724
|
+
export const GetFirewallConfigRulesAction$inboundSchema: z.ZodType<
|
|
1725
|
+
GetFirewallConfigRulesAction,
|
|
1602
1726
|
z.ZodTypeDef,
|
|
1603
1727
|
unknown
|
|
1604
1728
|
> = z.object({
|
|
1605
|
-
mitigate: z.lazy(() =>
|
|
1729
|
+
mitigate: z.lazy(() => GetFirewallConfigRulesMitigate$inboundSchema)
|
|
1730
|
+
.optional(),
|
|
1606
1731
|
});
|
|
1607
1732
|
/** @internal */
|
|
1608
|
-
export type
|
|
1609
|
-
mitigate?:
|
|
1733
|
+
export type GetFirewallConfigRulesAction$Outbound = {
|
|
1734
|
+
mitigate?: GetFirewallConfigRulesMitigate$Outbound | undefined;
|
|
1610
1735
|
};
|
|
1611
1736
|
|
|
1612
1737
|
/** @internal */
|
|
1613
|
-
export const
|
|
1614
|
-
|
|
1738
|
+
export const GetFirewallConfigRulesAction$outboundSchema: z.ZodType<
|
|
1739
|
+
GetFirewallConfigRulesAction$Outbound,
|
|
1615
1740
|
z.ZodTypeDef,
|
|
1616
|
-
|
|
1741
|
+
GetFirewallConfigRulesAction
|
|
1617
1742
|
> = z.object({
|
|
1618
|
-
mitigate: z.lazy(() =>
|
|
1743
|
+
mitigate: z.lazy(() => GetFirewallConfigRulesMitigate$outboundSchema)
|
|
1744
|
+
.optional(),
|
|
1619
1745
|
});
|
|
1620
1746
|
|
|
1621
|
-
export function
|
|
1622
|
-
|
|
1747
|
+
export function getFirewallConfigRulesActionToJSON(
|
|
1748
|
+
getFirewallConfigRulesAction: GetFirewallConfigRulesAction,
|
|
1623
1749
|
): string {
|
|
1624
1750
|
return JSON.stringify(
|
|
1625
|
-
|
|
1751
|
+
GetFirewallConfigRulesAction$outboundSchema.parse(
|
|
1752
|
+
getFirewallConfigRulesAction,
|
|
1753
|
+
),
|
|
1626
1754
|
);
|
|
1627
1755
|
}
|
|
1628
|
-
export function
|
|
1756
|
+
export function getFirewallConfigRulesActionFromJSON(
|
|
1629
1757
|
jsonString: string,
|
|
1630
|
-
): SafeParseResult<
|
|
1758
|
+
): SafeParseResult<GetFirewallConfigRulesAction, SDKValidationError> {
|
|
1631
1759
|
return safeParse(
|
|
1632
1760
|
jsonString,
|
|
1633
|
-
(x) =>
|
|
1634
|
-
`Failed to parse '
|
|
1761
|
+
(x) => GetFirewallConfigRulesAction$inboundSchema.parse(JSON.parse(x)),
|
|
1762
|
+
`Failed to parse 'GetFirewallConfigRulesAction' from JSON`,
|
|
1635
1763
|
);
|
|
1636
1764
|
}
|
|
1637
1765
|
|
|
1638
1766
|
/** @internal */
|
|
1639
|
-
export const
|
|
1640
|
-
|
|
1767
|
+
export const Rules2$inboundSchema: z.ZodType<Rules2, z.ZodTypeDef, unknown> = z
|
|
1768
|
+
.object({
|
|
1769
|
+
id: z.string(),
|
|
1770
|
+
name: z.string(),
|
|
1771
|
+
description: z.string().optional(),
|
|
1772
|
+
active: z.boolean(),
|
|
1773
|
+
conditionGroup: z.array(
|
|
1774
|
+
z.lazy(() => GetFirewallConfigRulesConditionGroup$inboundSchema),
|
|
1775
|
+
),
|
|
1776
|
+
action: z.lazy(() => GetFirewallConfigRulesAction$inboundSchema),
|
|
1777
|
+
valid: z.boolean(),
|
|
1778
|
+
validationErrors: z.array(z.string()),
|
|
1779
|
+
});
|
|
1780
|
+
/** @internal */
|
|
1781
|
+
export type Rules2$Outbound = {
|
|
1782
|
+
id: string;
|
|
1783
|
+
name: string;
|
|
1784
|
+
description?: string | undefined;
|
|
1785
|
+
active: boolean;
|
|
1786
|
+
conditionGroup: Array<GetFirewallConfigRulesConditionGroup$Outbound>;
|
|
1787
|
+
action: GetFirewallConfigRulesAction$Outbound;
|
|
1788
|
+
valid: boolean;
|
|
1789
|
+
validationErrors: Array<string>;
|
|
1790
|
+
};
|
|
1791
|
+
|
|
1792
|
+
/** @internal */
|
|
1793
|
+
export const Rules2$outboundSchema: z.ZodType<
|
|
1794
|
+
Rules2$Outbound,
|
|
1641
1795
|
z.ZodTypeDef,
|
|
1642
|
-
|
|
1796
|
+
Rules2
|
|
1643
1797
|
> = z.object({
|
|
1644
1798
|
id: z.string(),
|
|
1645
1799
|
name: z.string(),
|
|
1646
1800
|
description: z.string().optional(),
|
|
1647
1801
|
active: z.boolean(),
|
|
1648
1802
|
conditionGroup: z.array(
|
|
1649
|
-
z.lazy(() =>
|
|
1803
|
+
z.lazy(() => GetFirewallConfigRulesConditionGroup$outboundSchema),
|
|
1650
1804
|
),
|
|
1651
|
-
action: z.lazy(() =>
|
|
1805
|
+
action: z.lazy(() => GetFirewallConfigRulesAction$outboundSchema),
|
|
1806
|
+
valid: z.boolean(),
|
|
1807
|
+
validationErrors: z.array(z.string()),
|
|
1652
1808
|
});
|
|
1809
|
+
|
|
1810
|
+
export function rules2ToJSON(rules2: Rules2): string {
|
|
1811
|
+
return JSON.stringify(Rules2$outboundSchema.parse(rules2));
|
|
1812
|
+
}
|
|
1813
|
+
export function rules2FromJSON(
|
|
1814
|
+
jsonString: string,
|
|
1815
|
+
): SafeParseResult<Rules2, SDKValidationError> {
|
|
1816
|
+
return safeParse(
|
|
1817
|
+
jsonString,
|
|
1818
|
+
(x) => Rules2$inboundSchema.parse(JSON.parse(x)),
|
|
1819
|
+
`Failed to parse 'Rules2' from JSON`,
|
|
1820
|
+
);
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/** @internal */
|
|
1824
|
+
export const RulesType$inboundSchema: z.ZodNativeEnum<typeof RulesType> = z
|
|
1825
|
+
.nativeEnum(RulesType);
|
|
1826
|
+
/** @internal */
|
|
1827
|
+
export const RulesType$outboundSchema: z.ZodNativeEnum<typeof RulesType> =
|
|
1828
|
+
RulesType$inboundSchema;
|
|
1829
|
+
|
|
1830
|
+
/** @internal */
|
|
1831
|
+
export const RulesOp$inboundSchema: z.ZodNativeEnum<typeof RulesOp> = z
|
|
1832
|
+
.nativeEnum(RulesOp);
|
|
1833
|
+
/** @internal */
|
|
1834
|
+
export const RulesOp$outboundSchema: z.ZodNativeEnum<typeof RulesOp> =
|
|
1835
|
+
RulesOp$inboundSchema;
|
|
1836
|
+
|
|
1837
|
+
/** @internal */
|
|
1838
|
+
export const RulesValue$inboundSchema: z.ZodType<
|
|
1839
|
+
RulesValue,
|
|
1840
|
+
z.ZodTypeDef,
|
|
1841
|
+
unknown
|
|
1842
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1843
|
+
/** @internal */
|
|
1844
|
+
export type RulesValue$Outbound = string | number | Array<string>;
|
|
1845
|
+
|
|
1653
1846
|
/** @internal */
|
|
1654
|
-
export
|
|
1847
|
+
export const RulesValue$outboundSchema: z.ZodType<
|
|
1848
|
+
RulesValue$Outbound,
|
|
1849
|
+
z.ZodTypeDef,
|
|
1850
|
+
RulesValue
|
|
1851
|
+
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
1852
|
+
|
|
1853
|
+
export function rulesValueToJSON(rulesValue: RulesValue): string {
|
|
1854
|
+
return JSON.stringify(RulesValue$outboundSchema.parse(rulesValue));
|
|
1855
|
+
}
|
|
1856
|
+
export function rulesValueFromJSON(
|
|
1857
|
+
jsonString: string,
|
|
1858
|
+
): SafeParseResult<RulesValue, SDKValidationError> {
|
|
1859
|
+
return safeParse(
|
|
1860
|
+
jsonString,
|
|
1861
|
+
(x) => RulesValue$inboundSchema.parse(JSON.parse(x)),
|
|
1862
|
+
`Failed to parse 'RulesValue' from JSON`,
|
|
1863
|
+
);
|
|
1864
|
+
}
|
|
1865
|
+
|
|
1866
|
+
/** @internal */
|
|
1867
|
+
export const RulesConditions$inboundSchema: z.ZodType<
|
|
1868
|
+
RulesConditions,
|
|
1869
|
+
z.ZodTypeDef,
|
|
1870
|
+
unknown
|
|
1871
|
+
> = z.object({
|
|
1872
|
+
type: RulesType$inboundSchema,
|
|
1873
|
+
op: RulesOp$inboundSchema,
|
|
1874
|
+
neg: z.boolean().optional(),
|
|
1875
|
+
key: z.string().optional(),
|
|
1876
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1877
|
+
});
|
|
1878
|
+
/** @internal */
|
|
1879
|
+
export type RulesConditions$Outbound = {
|
|
1880
|
+
type: string;
|
|
1881
|
+
op: string;
|
|
1882
|
+
neg?: boolean | undefined;
|
|
1883
|
+
key?: string | undefined;
|
|
1884
|
+
value?: string | number | Array<string> | undefined;
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
/** @internal */
|
|
1888
|
+
export const RulesConditions$outboundSchema: z.ZodType<
|
|
1889
|
+
RulesConditions$Outbound,
|
|
1890
|
+
z.ZodTypeDef,
|
|
1891
|
+
RulesConditions
|
|
1892
|
+
> = z.object({
|
|
1893
|
+
type: RulesType$outboundSchema,
|
|
1894
|
+
op: RulesOp$outboundSchema,
|
|
1895
|
+
neg: z.boolean().optional(),
|
|
1896
|
+
key: z.string().optional(),
|
|
1897
|
+
value: z.union([z.string(), z.number(), z.array(z.string())]).optional(),
|
|
1898
|
+
});
|
|
1899
|
+
|
|
1900
|
+
export function rulesConditionsToJSON(
|
|
1901
|
+
rulesConditions: RulesConditions,
|
|
1902
|
+
): string {
|
|
1903
|
+
return JSON.stringify(RulesConditions$outboundSchema.parse(rulesConditions));
|
|
1904
|
+
}
|
|
1905
|
+
export function rulesConditionsFromJSON(
|
|
1906
|
+
jsonString: string,
|
|
1907
|
+
): SafeParseResult<RulesConditions, SDKValidationError> {
|
|
1908
|
+
return safeParse(
|
|
1909
|
+
jsonString,
|
|
1910
|
+
(x) => RulesConditions$inboundSchema.parse(JSON.parse(x)),
|
|
1911
|
+
`Failed to parse 'RulesConditions' from JSON`,
|
|
1912
|
+
);
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/** @internal */
|
|
1916
|
+
export const RulesConditionGroup$inboundSchema: z.ZodType<
|
|
1917
|
+
RulesConditionGroup,
|
|
1918
|
+
z.ZodTypeDef,
|
|
1919
|
+
unknown
|
|
1920
|
+
> = z.object({
|
|
1921
|
+
conditions: z.array(z.lazy(() => RulesConditions$inboundSchema)),
|
|
1922
|
+
});
|
|
1923
|
+
/** @internal */
|
|
1924
|
+
export type RulesConditionGroup$Outbound = {
|
|
1925
|
+
conditions: Array<RulesConditions$Outbound>;
|
|
1926
|
+
};
|
|
1927
|
+
|
|
1928
|
+
/** @internal */
|
|
1929
|
+
export const RulesConditionGroup$outboundSchema: z.ZodType<
|
|
1930
|
+
RulesConditionGroup$Outbound,
|
|
1931
|
+
z.ZodTypeDef,
|
|
1932
|
+
RulesConditionGroup
|
|
1933
|
+
> = z.object({
|
|
1934
|
+
conditions: z.array(z.lazy(() => RulesConditions$outboundSchema)),
|
|
1935
|
+
});
|
|
1936
|
+
|
|
1937
|
+
export function rulesConditionGroupToJSON(
|
|
1938
|
+
rulesConditionGroup: RulesConditionGroup,
|
|
1939
|
+
): string {
|
|
1940
|
+
return JSON.stringify(
|
|
1941
|
+
RulesConditionGroup$outboundSchema.parse(rulesConditionGroup),
|
|
1942
|
+
);
|
|
1943
|
+
}
|
|
1944
|
+
export function rulesConditionGroupFromJSON(
|
|
1945
|
+
jsonString: string,
|
|
1946
|
+
): SafeParseResult<RulesConditionGroup, SDKValidationError> {
|
|
1947
|
+
return safeParse(
|
|
1948
|
+
jsonString,
|
|
1949
|
+
(x) => RulesConditionGroup$inboundSchema.parse(JSON.parse(x)),
|
|
1950
|
+
`Failed to parse 'RulesConditionGroup' from JSON`,
|
|
1951
|
+
);
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/** @internal */
|
|
1955
|
+
export const GetFirewallConfigRulesSecurityResponseAction$inboundSchema:
|
|
1956
|
+
z.ZodNativeEnum<typeof GetFirewallConfigRulesSecurityResponseAction> = z
|
|
1957
|
+
.nativeEnum(GetFirewallConfigRulesSecurityResponseAction);
|
|
1958
|
+
/** @internal */
|
|
1959
|
+
export const GetFirewallConfigRulesSecurityResponseAction$outboundSchema:
|
|
1960
|
+
z.ZodNativeEnum<typeof GetFirewallConfigRulesSecurityResponseAction> =
|
|
1961
|
+
GetFirewallConfigRulesSecurityResponseAction$inboundSchema;
|
|
1962
|
+
|
|
1963
|
+
/** @internal */
|
|
1964
|
+
export const RulesAlgo$inboundSchema: z.ZodNativeEnum<typeof RulesAlgo> = z
|
|
1965
|
+
.nativeEnum(RulesAlgo);
|
|
1966
|
+
/** @internal */
|
|
1967
|
+
export const RulesAlgo$outboundSchema: z.ZodNativeEnum<typeof RulesAlgo> =
|
|
1968
|
+
RulesAlgo$inboundSchema;
|
|
1969
|
+
|
|
1970
|
+
/** @internal */
|
|
1971
|
+
export const GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema:
|
|
1972
|
+
z.ZodNativeEnum<
|
|
1973
|
+
typeof GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
1974
|
+
> = z.nativeEnum(
|
|
1975
|
+
GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction,
|
|
1976
|
+
);
|
|
1977
|
+
/** @internal */
|
|
1978
|
+
export const GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema:
|
|
1979
|
+
z.ZodNativeEnum<
|
|
1980
|
+
typeof GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction
|
|
1981
|
+
> =
|
|
1982
|
+
GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema;
|
|
1983
|
+
|
|
1984
|
+
/** @internal */
|
|
1985
|
+
export const RulesRateLimit$inboundSchema: z.ZodType<
|
|
1986
|
+
RulesRateLimit,
|
|
1987
|
+
z.ZodTypeDef,
|
|
1988
|
+
unknown
|
|
1989
|
+
> = z.object({
|
|
1990
|
+
algo: RulesAlgo$inboundSchema,
|
|
1991
|
+
window: z.number(),
|
|
1992
|
+
limit: z.number(),
|
|
1993
|
+
keys: z.array(z.string()),
|
|
1994
|
+
action: z.nullable(
|
|
1995
|
+
GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$inboundSchema,
|
|
1996
|
+
).optional(),
|
|
1997
|
+
});
|
|
1998
|
+
/** @internal */
|
|
1999
|
+
export type RulesRateLimit$Outbound = {
|
|
2000
|
+
algo: string;
|
|
2001
|
+
window: number;
|
|
2002
|
+
limit: number;
|
|
2003
|
+
keys: Array<string>;
|
|
2004
|
+
action?: string | null | undefined;
|
|
2005
|
+
};
|
|
2006
|
+
|
|
2007
|
+
/** @internal */
|
|
2008
|
+
export const RulesRateLimit$outboundSchema: z.ZodType<
|
|
2009
|
+
RulesRateLimit$Outbound,
|
|
2010
|
+
z.ZodTypeDef,
|
|
2011
|
+
RulesRateLimit
|
|
2012
|
+
> = z.object({
|
|
2013
|
+
algo: RulesAlgo$outboundSchema,
|
|
2014
|
+
window: z.number(),
|
|
2015
|
+
limit: z.number(),
|
|
2016
|
+
keys: z.array(z.string()),
|
|
2017
|
+
action: z.nullable(
|
|
2018
|
+
GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction$outboundSchema,
|
|
2019
|
+
).optional(),
|
|
2020
|
+
});
|
|
2021
|
+
|
|
2022
|
+
export function rulesRateLimitToJSON(rulesRateLimit: RulesRateLimit): string {
|
|
2023
|
+
return JSON.stringify(RulesRateLimit$outboundSchema.parse(rulesRateLimit));
|
|
2024
|
+
}
|
|
2025
|
+
export function rulesRateLimitFromJSON(
|
|
2026
|
+
jsonString: string,
|
|
2027
|
+
): SafeParseResult<RulesRateLimit, SDKValidationError> {
|
|
2028
|
+
return safeParse(
|
|
2029
|
+
jsonString,
|
|
2030
|
+
(x) => RulesRateLimit$inboundSchema.parse(JSON.parse(x)),
|
|
2031
|
+
`Failed to parse 'RulesRateLimit' from JSON`,
|
|
2032
|
+
);
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
/** @internal */
|
|
2036
|
+
export const RulesRedirect$inboundSchema: z.ZodType<
|
|
2037
|
+
RulesRedirect,
|
|
2038
|
+
z.ZodTypeDef,
|
|
2039
|
+
unknown
|
|
2040
|
+
> = z.object({
|
|
2041
|
+
location: z.string(),
|
|
2042
|
+
permanent: z.boolean(),
|
|
2043
|
+
});
|
|
2044
|
+
/** @internal */
|
|
2045
|
+
export type RulesRedirect$Outbound = {
|
|
2046
|
+
location: string;
|
|
2047
|
+
permanent: boolean;
|
|
2048
|
+
};
|
|
2049
|
+
|
|
2050
|
+
/** @internal */
|
|
2051
|
+
export const RulesRedirect$outboundSchema: z.ZodType<
|
|
2052
|
+
RulesRedirect$Outbound,
|
|
2053
|
+
z.ZodTypeDef,
|
|
2054
|
+
RulesRedirect
|
|
2055
|
+
> = z.object({
|
|
2056
|
+
location: z.string(),
|
|
2057
|
+
permanent: z.boolean(),
|
|
2058
|
+
});
|
|
2059
|
+
|
|
2060
|
+
export function rulesRedirectToJSON(rulesRedirect: RulesRedirect): string {
|
|
2061
|
+
return JSON.stringify(RulesRedirect$outboundSchema.parse(rulesRedirect));
|
|
2062
|
+
}
|
|
2063
|
+
export function rulesRedirectFromJSON(
|
|
2064
|
+
jsonString: string,
|
|
2065
|
+
): SafeParseResult<RulesRedirect, SDKValidationError> {
|
|
2066
|
+
return safeParse(
|
|
2067
|
+
jsonString,
|
|
2068
|
+
(x) => RulesRedirect$inboundSchema.parse(JSON.parse(x)),
|
|
2069
|
+
`Failed to parse 'RulesRedirect' from JSON`,
|
|
2070
|
+
);
|
|
2071
|
+
}
|
|
2072
|
+
|
|
2073
|
+
/** @internal */
|
|
2074
|
+
export const RulesMitigate$inboundSchema: z.ZodType<
|
|
2075
|
+
RulesMitigate,
|
|
2076
|
+
z.ZodTypeDef,
|
|
2077
|
+
unknown
|
|
2078
|
+
> = z.object({
|
|
2079
|
+
action: GetFirewallConfigRulesSecurityResponseAction$inboundSchema,
|
|
2080
|
+
rateLimit: z.nullable(z.lazy(() => RulesRateLimit$inboundSchema)).optional(),
|
|
2081
|
+
redirect: z.nullable(z.lazy(() => RulesRedirect$inboundSchema)).optional(),
|
|
2082
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
2083
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
2084
|
+
});
|
|
2085
|
+
/** @internal */
|
|
2086
|
+
export type RulesMitigate$Outbound = {
|
|
2087
|
+
action: string;
|
|
2088
|
+
rateLimit?: RulesRateLimit$Outbound | null | undefined;
|
|
2089
|
+
redirect?: RulesRedirect$Outbound | null | undefined;
|
|
2090
|
+
actionDuration?: string | null | undefined;
|
|
2091
|
+
bypassSystem?: boolean | null | undefined;
|
|
2092
|
+
};
|
|
2093
|
+
|
|
2094
|
+
/** @internal */
|
|
2095
|
+
export const RulesMitigate$outboundSchema: z.ZodType<
|
|
2096
|
+
RulesMitigate$Outbound,
|
|
2097
|
+
z.ZodTypeDef,
|
|
2098
|
+
RulesMitigate
|
|
2099
|
+
> = z.object({
|
|
2100
|
+
action: GetFirewallConfigRulesSecurityResponseAction$outboundSchema,
|
|
2101
|
+
rateLimit: z.nullable(z.lazy(() => RulesRateLimit$outboundSchema)).optional(),
|
|
2102
|
+
redirect: z.nullable(z.lazy(() => RulesRedirect$outboundSchema)).optional(),
|
|
2103
|
+
actionDuration: z.nullable(z.string()).optional(),
|
|
2104
|
+
bypassSystem: z.nullable(z.boolean()).optional(),
|
|
2105
|
+
});
|
|
2106
|
+
|
|
2107
|
+
export function rulesMitigateToJSON(rulesMitigate: RulesMitigate): string {
|
|
2108
|
+
return JSON.stringify(RulesMitigate$outboundSchema.parse(rulesMitigate));
|
|
2109
|
+
}
|
|
2110
|
+
export function rulesMitigateFromJSON(
|
|
2111
|
+
jsonString: string,
|
|
2112
|
+
): SafeParseResult<RulesMitigate, SDKValidationError> {
|
|
2113
|
+
return safeParse(
|
|
2114
|
+
jsonString,
|
|
2115
|
+
(x) => RulesMitigate$inboundSchema.parse(JSON.parse(x)),
|
|
2116
|
+
`Failed to parse 'RulesMitigate' from JSON`,
|
|
2117
|
+
);
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
/** @internal */
|
|
2121
|
+
export const RulesAction$inboundSchema: z.ZodType<
|
|
2122
|
+
RulesAction,
|
|
2123
|
+
z.ZodTypeDef,
|
|
2124
|
+
unknown
|
|
2125
|
+
> = z.object({
|
|
2126
|
+
mitigate: z.lazy(() => RulesMitigate$inboundSchema).optional(),
|
|
2127
|
+
});
|
|
2128
|
+
/** @internal */
|
|
2129
|
+
export type RulesAction$Outbound = {
|
|
2130
|
+
mitigate?: RulesMitigate$Outbound | undefined;
|
|
2131
|
+
};
|
|
2132
|
+
|
|
2133
|
+
/** @internal */
|
|
2134
|
+
export const RulesAction$outboundSchema: z.ZodType<
|
|
2135
|
+
RulesAction$Outbound,
|
|
2136
|
+
z.ZodTypeDef,
|
|
2137
|
+
RulesAction
|
|
2138
|
+
> = z.object({
|
|
2139
|
+
mitigate: z.lazy(() => RulesMitigate$outboundSchema).optional(),
|
|
2140
|
+
});
|
|
2141
|
+
|
|
2142
|
+
export function rulesActionToJSON(rulesAction: RulesAction): string {
|
|
2143
|
+
return JSON.stringify(RulesAction$outboundSchema.parse(rulesAction));
|
|
2144
|
+
}
|
|
2145
|
+
export function rulesActionFromJSON(
|
|
2146
|
+
jsonString: string,
|
|
2147
|
+
): SafeParseResult<RulesAction, SDKValidationError> {
|
|
2148
|
+
return safeParse(
|
|
2149
|
+
jsonString,
|
|
2150
|
+
(x) => RulesAction$inboundSchema.parse(JSON.parse(x)),
|
|
2151
|
+
`Failed to parse 'RulesAction' from JSON`,
|
|
2152
|
+
);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
2155
|
+
/** @internal */
|
|
2156
|
+
export const Rules1$inboundSchema: z.ZodType<Rules1, z.ZodTypeDef, unknown> = z
|
|
2157
|
+
.object({
|
|
2158
|
+
id: z.string(),
|
|
2159
|
+
name: z.string(),
|
|
2160
|
+
description: z.string().optional(),
|
|
2161
|
+
active: z.boolean(),
|
|
2162
|
+
conditionGroup: z.array(z.lazy(() => RulesConditionGroup$inboundSchema)),
|
|
2163
|
+
action: z.lazy(() => RulesAction$inboundSchema),
|
|
2164
|
+
valid: z.boolean(),
|
|
2165
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
2166
|
+
});
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export type Rules1$Outbound = {
|
|
1655
2169
|
id: string;
|
|
1656
2170
|
name: string;
|
|
1657
2171
|
description?: string | undefined;
|
|
1658
2172
|
active: boolean;
|
|
1659
|
-
conditionGroup: Array<
|
|
1660
|
-
action:
|
|
2173
|
+
conditionGroup: Array<RulesConditionGroup$Outbound>;
|
|
2174
|
+
action: RulesAction$Outbound;
|
|
2175
|
+
valid: boolean;
|
|
2176
|
+
validationErrors?: any | null | undefined;
|
|
1661
2177
|
};
|
|
1662
2178
|
|
|
1663
2179
|
/** @internal */
|
|
1664
|
-
export const
|
|
1665
|
-
|
|
2180
|
+
export const Rules1$outboundSchema: z.ZodType<
|
|
2181
|
+
Rules1$Outbound,
|
|
1666
2182
|
z.ZodTypeDef,
|
|
1667
|
-
|
|
2183
|
+
Rules1
|
|
1668
2184
|
> = z.object({
|
|
1669
2185
|
id: z.string(),
|
|
1670
2186
|
name: z.string(),
|
|
1671
2187
|
description: z.string().optional(),
|
|
1672
2188
|
active: z.boolean(),
|
|
1673
|
-
conditionGroup: z.array(
|
|
1674
|
-
|
|
1675
|
-
),
|
|
1676
|
-
|
|
2189
|
+
conditionGroup: z.array(z.lazy(() => RulesConditionGroup$outboundSchema)),
|
|
2190
|
+
action: z.lazy(() => RulesAction$outboundSchema),
|
|
2191
|
+
valid: z.boolean(),
|
|
2192
|
+
validationErrors: z.nullable(z.any()).optional(),
|
|
1677
2193
|
});
|
|
1678
2194
|
|
|
2195
|
+
export function rules1ToJSON(rules1: Rules1): string {
|
|
2196
|
+
return JSON.stringify(Rules1$outboundSchema.parse(rules1));
|
|
2197
|
+
}
|
|
2198
|
+
export function rules1FromJSON(
|
|
2199
|
+
jsonString: string,
|
|
2200
|
+
): SafeParseResult<Rules1, SDKValidationError> {
|
|
2201
|
+
return safeParse(
|
|
2202
|
+
jsonString,
|
|
2203
|
+
(x) => Rules1$inboundSchema.parse(JSON.parse(x)),
|
|
2204
|
+
`Failed to parse 'Rules1' from JSON`,
|
|
2205
|
+
);
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/** @internal */
|
|
2209
|
+
export const GetFirewallConfigRules$inboundSchema: z.ZodType<
|
|
2210
|
+
GetFirewallConfigRules,
|
|
2211
|
+
z.ZodTypeDef,
|
|
2212
|
+
unknown
|
|
2213
|
+
> = z.union([
|
|
2214
|
+
z.lazy(() => Rules1$inboundSchema),
|
|
2215
|
+
z.lazy(() => Rules2$inboundSchema),
|
|
2216
|
+
]);
|
|
2217
|
+
/** @internal */
|
|
2218
|
+
export type GetFirewallConfigRules$Outbound = Rules1$Outbound | Rules2$Outbound;
|
|
2219
|
+
|
|
2220
|
+
/** @internal */
|
|
2221
|
+
export const GetFirewallConfigRules$outboundSchema: z.ZodType<
|
|
2222
|
+
GetFirewallConfigRules$Outbound,
|
|
2223
|
+
z.ZodTypeDef,
|
|
2224
|
+
GetFirewallConfigRules
|
|
2225
|
+
> = z.union([
|
|
2226
|
+
z.lazy(() => Rules1$outboundSchema),
|
|
2227
|
+
z.lazy(() => Rules2$outboundSchema),
|
|
2228
|
+
]);
|
|
2229
|
+
|
|
1679
2230
|
export function getFirewallConfigRulesToJSON(
|
|
1680
2231
|
getFirewallConfigRules: GetFirewallConfigRules,
|
|
1681
2232
|
): string {
|
|
@@ -1694,13 +2245,13 @@ export function getFirewallConfigRulesFromJSON(
|
|
|
1694
2245
|
}
|
|
1695
2246
|
|
|
1696
2247
|
/** @internal */
|
|
1697
|
-
export const
|
|
1698
|
-
typeof
|
|
1699
|
-
> = z.nativeEnum(
|
|
2248
|
+
export const GetFirewallConfigAction$inboundSchema: z.ZodNativeEnum<
|
|
2249
|
+
typeof GetFirewallConfigAction
|
|
2250
|
+
> = z.nativeEnum(GetFirewallConfigAction);
|
|
1700
2251
|
/** @internal */
|
|
1701
|
-
export const
|
|
1702
|
-
typeof
|
|
1703
|
-
> =
|
|
2252
|
+
export const GetFirewallConfigAction$outboundSchema: z.ZodNativeEnum<
|
|
2253
|
+
typeof GetFirewallConfigAction
|
|
2254
|
+
> = GetFirewallConfigAction$inboundSchema;
|
|
1704
2255
|
|
|
1705
2256
|
/** @internal */
|
|
1706
2257
|
export const GetFirewallConfigIps$inboundSchema: z.ZodType<
|
|
@@ -1712,7 +2263,7 @@ export const GetFirewallConfigIps$inboundSchema: z.ZodType<
|
|
|
1712
2263
|
hostname: z.string(),
|
|
1713
2264
|
ip: z.string(),
|
|
1714
2265
|
notes: z.string().optional(),
|
|
1715
|
-
action:
|
|
2266
|
+
action: GetFirewallConfigAction$inboundSchema,
|
|
1716
2267
|
});
|
|
1717
2268
|
/** @internal */
|
|
1718
2269
|
export type GetFirewallConfigIps$Outbound = {
|
|
@@ -1733,7 +2284,7 @@ export const GetFirewallConfigIps$outboundSchema: z.ZodType<
|
|
|
1733
2284
|
hostname: z.string(),
|
|
1734
2285
|
ip: z.string(),
|
|
1735
2286
|
notes: z.string().optional(),
|
|
1736
|
-
action:
|
|
2287
|
+
action: GetFirewallConfigAction$outboundSchema,
|
|
1737
2288
|
});
|
|
1738
2289
|
|
|
1739
2290
|
export function getFirewallConfigIpsToJSON(
|
|
@@ -1969,8 +2520,8 @@ export function owaspFromJSON(
|
|
|
1969
2520
|
}
|
|
1970
2521
|
|
|
1971
2522
|
/** @internal */
|
|
1972
|
-
export const
|
|
1973
|
-
|
|
2523
|
+
export const GetFirewallConfigManagedRules$inboundSchema: z.ZodType<
|
|
2524
|
+
GetFirewallConfigManagedRules,
|
|
1974
2525
|
z.ZodTypeDef,
|
|
1975
2526
|
unknown
|
|
1976
2527
|
> = z.object({
|
|
@@ -1984,17 +2535,17 @@ export const ManagedRules$inboundSchema: z.ZodType<
|
|
|
1984
2535
|
});
|
|
1985
2536
|
});
|
|
1986
2537
|
/** @internal */
|
|
1987
|
-
export type
|
|
2538
|
+
export type GetFirewallConfigManagedRules$Outbound = {
|
|
1988
2539
|
bot_protection?: BotProtection$Outbound | undefined;
|
|
1989
2540
|
ai_bots?: AiBots$Outbound | undefined;
|
|
1990
2541
|
owasp?: Owasp$Outbound | undefined;
|
|
1991
2542
|
};
|
|
1992
2543
|
|
|
1993
2544
|
/** @internal */
|
|
1994
|
-
export const
|
|
1995
|
-
|
|
2545
|
+
export const GetFirewallConfigManagedRules$outboundSchema: z.ZodType<
|
|
2546
|
+
GetFirewallConfigManagedRules$Outbound,
|
|
1996
2547
|
z.ZodTypeDef,
|
|
1997
|
-
|
|
2548
|
+
GetFirewallConfigManagedRules
|
|
1998
2549
|
> = z.object({
|
|
1999
2550
|
botProtection: z.lazy(() => BotProtection$outboundSchema).optional(),
|
|
2000
2551
|
aiBots: z.lazy(() => AiBots$outboundSchema).optional(),
|
|
@@ -2006,16 +2557,22 @@ export const ManagedRules$outboundSchema: z.ZodType<
|
|
|
2006
2557
|
});
|
|
2007
2558
|
});
|
|
2008
2559
|
|
|
2009
|
-
export function
|
|
2010
|
-
|
|
2560
|
+
export function getFirewallConfigManagedRulesToJSON(
|
|
2561
|
+
getFirewallConfigManagedRules: GetFirewallConfigManagedRules,
|
|
2562
|
+
): string {
|
|
2563
|
+
return JSON.stringify(
|
|
2564
|
+
GetFirewallConfigManagedRules$outboundSchema.parse(
|
|
2565
|
+
getFirewallConfigManagedRules,
|
|
2566
|
+
),
|
|
2567
|
+
);
|
|
2011
2568
|
}
|
|
2012
|
-
export function
|
|
2569
|
+
export function getFirewallConfigManagedRulesFromJSON(
|
|
2013
2570
|
jsonString: string,
|
|
2014
|
-
): SafeParseResult<
|
|
2571
|
+
): SafeParseResult<GetFirewallConfigManagedRules, SDKValidationError> {
|
|
2015
2572
|
return safeParse(
|
|
2016
2573
|
jsonString,
|
|
2017
|
-
(x) =>
|
|
2018
|
-
`Failed to parse '
|
|
2574
|
+
(x) => GetFirewallConfigManagedRules$inboundSchema.parse(JSON.parse(x)),
|
|
2575
|
+
`Failed to parse 'GetFirewallConfigManagedRules' from JSON`,
|
|
2019
2576
|
);
|
|
2020
2577
|
}
|
|
2021
2578
|
|
|
@@ -2032,10 +2589,16 @@ export const GetFirewallConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
2032
2589
|
updatedAt: z.string(),
|
|
2033
2590
|
firewallEnabled: z.boolean(),
|
|
2034
2591
|
crs: z.lazy(() => GetFirewallConfigCrs$inboundSchema),
|
|
2035
|
-
rules: z.array(
|
|
2592
|
+
rules: z.array(
|
|
2593
|
+
z.union([
|
|
2594
|
+
z.lazy(() => Rules1$inboundSchema),
|
|
2595
|
+
z.lazy(() => Rules2$inboundSchema),
|
|
2596
|
+
]),
|
|
2597
|
+
),
|
|
2036
2598
|
ips: z.array(z.lazy(() => GetFirewallConfigIps$inboundSchema)),
|
|
2037
2599
|
changes: z.array(z.lazy(() => Changes$inboundSchema)),
|
|
2038
|
-
managedRules: z.lazy(() =>
|
|
2600
|
+
managedRules: z.lazy(() => GetFirewallConfigManagedRules$inboundSchema)
|
|
2601
|
+
.optional(),
|
|
2039
2602
|
botIdEnabled: z.boolean().optional(),
|
|
2040
2603
|
});
|
|
2041
2604
|
/** @internal */
|
|
@@ -2047,10 +2610,10 @@ export type GetFirewallConfigResponseBody$Outbound = {
|
|
|
2047
2610
|
updatedAt: string;
|
|
2048
2611
|
firewallEnabled: boolean;
|
|
2049
2612
|
crs: GetFirewallConfigCrs$Outbound;
|
|
2050
|
-
rules: Array<
|
|
2613
|
+
rules: Array<Rules1$Outbound | Rules2$Outbound>;
|
|
2051
2614
|
ips: Array<GetFirewallConfigIps$Outbound>;
|
|
2052
2615
|
changes: Array<Changes$Outbound>;
|
|
2053
|
-
managedRules?:
|
|
2616
|
+
managedRules?: GetFirewallConfigManagedRules$Outbound | undefined;
|
|
2054
2617
|
botIdEnabled?: boolean | undefined;
|
|
2055
2618
|
};
|
|
2056
2619
|
|
|
@@ -2067,10 +2630,16 @@ export const GetFirewallConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
2067
2630
|
updatedAt: z.string(),
|
|
2068
2631
|
firewallEnabled: z.boolean(),
|
|
2069
2632
|
crs: z.lazy(() => GetFirewallConfigCrs$outboundSchema),
|
|
2070
|
-
rules: z.array(
|
|
2633
|
+
rules: z.array(
|
|
2634
|
+
z.union([
|
|
2635
|
+
z.lazy(() => Rules1$outboundSchema),
|
|
2636
|
+
z.lazy(() => Rules2$outboundSchema),
|
|
2637
|
+
]),
|
|
2638
|
+
),
|
|
2071
2639
|
ips: z.array(z.lazy(() => GetFirewallConfigIps$outboundSchema)),
|
|
2072
2640
|
changes: z.array(z.lazy(() => Changes$outboundSchema)),
|
|
2073
|
-
managedRules: z.lazy(() =>
|
|
2641
|
+
managedRules: z.lazy(() => GetFirewallConfigManagedRules$outboundSchema)
|
|
2642
|
+
.optional(),
|
|
2074
2643
|
botIdEnabled: z.boolean().optional(),
|
|
2075
2644
|
});
|
|
2076
2645
|
|