@vercel/sdk 1.18.2 → 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.
Files changed (314) hide show
  1. package/README.md +48 -51
  2. package/bin/mcp-server.js +4061 -2335
  3. package/bin/mcp-server.js.map +57 -36
  4. package/esm/__tests__/domains.test.js +2 -38
  5. package/esm/__tests__/domains.test.js.map +1 -1
  6. package/esm/__tests__/edgeconfig.test.js +6 -6
  7. package/esm/__tests__/integrations.test.js +1 -1
  8. package/esm/__tests__/logdrains.test.js +6 -2
  9. package/esm/__tests__/logdrains.test.js.map +1 -1
  10. package/esm/__tests__/security.test.js +20 -35
  11. package/esm/__tests__/security.test.js.map +1 -1
  12. package/esm/__tests__/teams.test.js +16 -0
  13. package/esm/__tests__/teams.test.js.map +1 -1
  14. package/esm/__tests__/vercel.test.js +150 -1
  15. package/esm/__tests__/vercel.test.js.map +1 -1
  16. package/esm/funcs/deleteV1BulkRedirects.d.ts +14 -0
  17. package/esm/funcs/deleteV1BulkRedirects.d.ts.map +1 -0
  18. package/esm/funcs/deleteV1BulkRedirects.js +74 -0
  19. package/esm/funcs/deleteV1BulkRedirects.js.map +1 -0
  20. package/esm/funcs/domainsCreateOrTransferDomain.js +2 -2
  21. package/esm/funcs/domainsCreateOrTransferDomain.js.map +1 -1
  22. package/esm/funcs/getV1BulkRedirects.d.ts +14 -0
  23. package/esm/funcs/getV1BulkRedirects.d.ts.map +1 -0
  24. package/esm/funcs/getV1BulkRedirects.js +80 -0
  25. package/esm/funcs/getV1BulkRedirects.js.map +1 -0
  26. package/esm/funcs/getV1BulkRedirectsVersions.d.ts +14 -0
  27. package/esm/funcs/getV1BulkRedirectsVersions.d.ts.map +1 -0
  28. package/esm/funcs/getV1BulkRedirectsVersions.js +73 -0
  29. package/esm/funcs/getV1BulkRedirectsVersions.js.map +1 -0
  30. package/esm/funcs/patchV1BulkRedirects.d.ts +14 -0
  31. package/esm/funcs/patchV1BulkRedirects.d.ts.map +1 -0
  32. package/esm/funcs/patchV1BulkRedirects.js +74 -0
  33. package/esm/funcs/patchV1BulkRedirects.js.map +1 -0
  34. package/esm/funcs/postV1BulkRedirectsRestore.d.ts +14 -0
  35. package/esm/funcs/postV1BulkRedirectsRestore.d.ts.map +1 -0
  36. package/esm/funcs/postV1BulkRedirectsRestore.js +74 -0
  37. package/esm/funcs/postV1BulkRedirectsRestore.js.map +1 -0
  38. package/esm/funcs/postV1BulkRedirectsVersions.d.ts +14 -0
  39. package/esm/funcs/postV1BulkRedirectsVersions.d.ts.map +1 -0
  40. package/esm/funcs/postV1BulkRedirectsVersions.js +74 -0
  41. package/esm/funcs/postV1BulkRedirectsVersions.js.map +1 -0
  42. package/esm/funcs/putV1BulkRedirects.d.ts +11 -0
  43. package/esm/funcs/putV1BulkRedirects.d.ts.map +1 -0
  44. package/esm/funcs/putV1BulkRedirects.js +69 -0
  45. package/esm/funcs/putV1BulkRedirects.js.map +1 -0
  46. package/esm/funcs/teamsPostTeamDsyncRoles.d.ts +17 -0
  47. package/esm/funcs/teamsPostTeamDsyncRoles.d.ts.map +1 -0
  48. package/esm/funcs/{domainsBuyDomain.js → teamsPostTeamDsyncRoles.js} +17 -12
  49. package/esm/funcs/teamsPostTeamDsyncRoles.js.map +1 -0
  50. package/esm/lib/config.d.ts +3 -3
  51. package/esm/lib/config.js +3 -3
  52. package/esm/mcp-server/mcp-server.js +1 -1
  53. package/esm/mcp-server/server.d.ts.map +1 -1
  54. package/esm/mcp-server/server.js +17 -3
  55. package/esm/mcp-server/server.js.map +1 -1
  56. package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts +7 -0
  57. package/esm/mcp-server/tools/deleteV1BulkRedirects.d.ts.map +1 -0
  58. package/esm/mcp-server/tools/deleteV1BulkRedirects.js +26 -0
  59. package/esm/mcp-server/tools/deleteV1BulkRedirects.js.map +1 -0
  60. package/esm/mcp-server/tools/getV1BulkRedirects.d.ts +7 -0
  61. package/esm/mcp-server/tools/getV1BulkRedirects.d.ts.map +1 -0
  62. package/esm/mcp-server/tools/getV1BulkRedirects.js +26 -0
  63. package/esm/mcp-server/tools/getV1BulkRedirects.js.map +1 -0
  64. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts +7 -0
  65. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.d.ts.map +1 -0
  66. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js +26 -0
  67. package/esm/mcp-server/tools/getV1BulkRedirectsVersions.js.map +1 -0
  68. package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts +7 -0
  69. package/esm/mcp-server/tools/patchV1BulkRedirects.d.ts.map +1 -0
  70. package/esm/mcp-server/tools/patchV1BulkRedirects.js +26 -0
  71. package/esm/mcp-server/tools/patchV1BulkRedirects.js.map +1 -0
  72. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts +7 -0
  73. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.d.ts.map +1 -0
  74. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js +26 -0
  75. package/esm/mcp-server/tools/postV1BulkRedirectsRestore.js.map +1 -0
  76. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts +7 -0
  77. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.d.ts.map +1 -0
  78. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js +26 -0
  79. package/esm/mcp-server/tools/postV1BulkRedirectsVersions.js.map +1 -0
  80. package/esm/mcp-server/tools/putV1BulkRedirects.d.ts +7 -0
  81. package/esm/mcp-server/tools/putV1BulkRedirects.d.ts.map +1 -0
  82. package/esm/mcp-server/tools/putV1BulkRedirects.js +26 -0
  83. package/esm/mcp-server/tools/putV1BulkRedirects.js.map +1 -0
  84. package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.d.ts +7 -0
  85. package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.d.ts.map +1 -0
  86. package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.js +28 -0
  87. package/esm/mcp-server/tools/teamsPostTeamDsyncRoles.js.map +1 -0
  88. package/esm/models/artifactqueryop.d.ts +8 -8
  89. package/esm/models/artifactqueryop.d.ts.map +1 -1
  90. package/esm/models/artifactqueryop.js +8 -8
  91. package/esm/models/artifactqueryop.js.map +1 -1
  92. package/esm/models/canceldeploymentop.d.ts +46 -0
  93. package/esm/models/canceldeploymentop.d.ts.map +1 -1
  94. package/esm/models/canceldeploymentop.js +42 -0
  95. package/esm/models/canceldeploymentop.js.map +1 -1
  96. package/esm/models/createdeploymentop.d.ts +46 -0
  97. package/esm/models/createdeploymentop.d.ts.map +1 -1
  98. package/esm/models/createdeploymentop.js +46 -0
  99. package/esm/models/createdeploymentop.js.map +1 -1
  100. package/esm/models/createedgeconfigop.d.ts +5 -0
  101. package/esm/models/createedgeconfigop.d.ts.map +1 -1
  102. package/esm/models/createedgeconfigop.js +2 -0
  103. package/esm/models/createedgeconfigop.js.map +1 -1
  104. package/esm/models/createintegrationstoredirectop.d.ts +154 -152
  105. package/esm/models/createintegrationstoredirectop.d.ts.map +1 -1
  106. package/esm/models/createintegrationstoredirectop.js +220 -218
  107. package/esm/models/createintegrationstoredirectop.js.map +1 -1
  108. package/esm/models/createortransferdomainop.d.ts +4 -40
  109. package/esm/models/createortransferdomainop.d.ts.map +1 -1
  110. package/esm/models/createortransferdomainop.js +0 -24
  111. package/esm/models/createortransferdomainop.js.map +1 -1
  112. package/esm/models/createprojectop.d.ts +112 -2
  113. package/esm/models/createprojectop.d.ts.map +1 -1
  114. package/esm/models/createprojectop.js +103 -2
  115. package/esm/models/createprojectop.js.map +1 -1
  116. package/esm/models/createwebhookop.d.ts +4 -2
  117. package/esm/models/createwebhookop.d.ts.map +1 -1
  118. package/esm/models/createwebhookop.js +4 -2
  119. package/esm/models/createwebhookop.js.map +1 -1
  120. package/esm/models/deletev1bulkredirectsop.d.ts +102 -0
  121. package/esm/models/deletev1bulkredirectsop.d.ts.map +1 -0
  122. package/esm/models/deletev1bulkredirectsop.js +95 -0
  123. package/esm/models/deletev1bulkredirectsop.js.map +1 -0
  124. package/esm/models/getconfigurationproductsop.d.ts +200 -200
  125. package/esm/models/getconfigurationproductsop.js +290 -290
  126. package/esm/models/getconfigurationsop.d.ts +1 -0
  127. package/esm/models/getconfigurationsop.d.ts.map +1 -1
  128. package/esm/models/getconfigurationsop.js +1 -0
  129. package/esm/models/getconfigurationsop.js.map +1 -1
  130. package/esm/models/getdeploymenteventsop.d.ts +6 -6
  131. package/esm/models/getdeploymenteventsop.d.ts.map +1 -1
  132. package/esm/models/getdeploymenteventsop.js +6 -6
  133. package/esm/models/getdeploymenteventsop.js.map +1 -1
  134. package/esm/models/getdeploymentop.d.ts +90 -0
  135. package/esm/models/getdeploymentop.d.ts.map +1 -1
  136. package/esm/models/getdeploymentop.js +82 -0
  137. package/esm/models/getdeploymentop.js.map +1 -1
  138. package/esm/models/getedgeconfigop.d.ts +5 -0
  139. package/esm/models/getedgeconfigop.d.ts.map +1 -1
  140. package/esm/models/getedgeconfigop.js +2 -0
  141. package/esm/models/getedgeconfigop.js.map +1 -1
  142. package/esm/models/getfirewallconfigop.d.ts +336 -103
  143. package/esm/models/getfirewallconfigop.d.ts.map +1 -1
  144. package/esm/models/getfirewallconfigop.js +358 -98
  145. package/esm/models/getfirewallconfigop.js.map +1 -1
  146. package/esm/models/getprojectdomainsop.d.ts +5 -5
  147. package/esm/models/getprojectdomainsop.d.ts.map +1 -1
  148. package/esm/models/getprojectdomainsop.js +5 -6
  149. package/esm/models/getprojectdomainsop.js.map +1 -1
  150. package/esm/models/getprojectsop.d.ts +88 -2
  151. package/esm/models/getprojectsop.d.ts.map +1 -1
  152. package/esm/models/getprojectsop.js +76 -2
  153. package/esm/models/getprojectsop.js.map +1 -1
  154. package/esm/models/getv1bulkredirectsop.d.ts +190 -0
  155. package/esm/models/getv1bulkredirectsop.d.ts.map +1 -0
  156. package/esm/models/getv1bulkredirectsop.js +195 -0
  157. package/esm/models/getv1bulkredirectsop.js.map +1 -0
  158. package/esm/models/getv1bulkredirectsversionsop.d.ts +80 -0
  159. package/esm/models/getv1bulkredirectsversionsop.d.ts.map +1 -0
  160. package/esm/models/getv1bulkredirectsversionsop.js +64 -0
  161. package/esm/models/getv1bulkredirectsversionsop.js.map +1 -0
  162. package/esm/models/getwebhookop.d.ts +2 -1
  163. package/esm/models/getwebhookop.d.ts.map +1 -1
  164. package/esm/models/getwebhookop.js +2 -1
  165. package/esm/models/getwebhookop.js.map +1 -1
  166. package/esm/models/getwebhooksop.d.ts +4 -2
  167. package/esm/models/getwebhooksop.d.ts.map +1 -1
  168. package/esm/models/getwebhooksop.js +4 -2
  169. package/esm/models/getwebhooksop.js.map +1 -1
  170. package/esm/models/listaccessgroupsop.d.ts +8 -8
  171. package/esm/models/listaccessgroupsop.d.ts.map +1 -1
  172. package/esm/models/listaccessgroupsop.js +8 -8
  173. package/esm/models/listaccessgroupsop.js.map +1 -1
  174. package/esm/models/patchv1bulkredirectsop.d.ts +133 -0
  175. package/esm/models/patchv1bulkredirectsop.d.ts.map +1 -0
  176. package/esm/models/patchv1bulkredirectsop.js +121 -0
  177. package/esm/models/patchv1bulkredirectsop.js.map +1 -0
  178. package/esm/models/postteamdsyncrolesop.d.ts +98 -0
  179. package/esm/models/postteamdsyncrolesop.d.ts.map +1 -0
  180. package/esm/models/postteamdsyncrolesop.js +113 -0
  181. package/esm/models/postteamdsyncrolesop.js.map +1 -0
  182. package/esm/models/postv1bulkredirectsrestoreop.d.ts +104 -0
  183. package/esm/models/postv1bulkredirectsrestoreop.d.ts.map +1 -0
  184. package/esm/models/postv1bulkredirectsrestoreop.js +96 -0
  185. package/esm/models/postv1bulkredirectsrestoreop.js.map +1 -0
  186. package/esm/models/postv1bulkredirectsversionsop.d.ts +110 -0
  187. package/esm/models/postv1bulkredirectsversionsop.d.ts.map +1 -0
  188. package/esm/models/postv1bulkredirectsversionsop.js +102 -0
  189. package/esm/models/postv1bulkredirectsversionsop.js.map +1 -0
  190. package/esm/models/putfirewallconfigop.d.ts +357 -100
  191. package/esm/models/putfirewallconfigop.d.ts.map +1 -1
  192. package/esm/models/putfirewallconfigop.js +379 -102
  193. package/esm/models/putfirewallconfigop.js.map +1 -1
  194. package/esm/models/putv1bulkredirectsop.d.ts +122 -0
  195. package/esm/models/putv1bulkredirectsop.d.ts.map +1 -0
  196. package/esm/models/putv1bulkredirectsop.js +108 -0
  197. package/esm/models/putv1bulkredirectsop.js.map +1 -0
  198. package/esm/models/updateedgeconfigop.d.ts +5 -0
  199. package/esm/models/updateedgeconfigop.d.ts.map +1 -1
  200. package/esm/models/updateedgeconfigop.js +2 -0
  201. package/esm/models/updateedgeconfigop.js.map +1 -1
  202. package/esm/models/updatefirewallconfigop.d.ts +30 -0
  203. package/esm/models/updatefirewallconfigop.d.ts.map +1 -1
  204. package/esm/models/updatefirewallconfigop.js +32 -0
  205. package/esm/models/updatefirewallconfigop.js.map +1 -1
  206. package/esm/models/updateprojectdatacacheop.d.ts +103 -17
  207. package/esm/models/updateprojectdatacacheop.d.ts.map +1 -1
  208. package/esm/models/updateprojectdatacacheop.js +97 -20
  209. package/esm/models/updateprojectdatacacheop.js.map +1 -1
  210. package/esm/models/updateprojectop.d.ts +112 -2
  211. package/esm/models/updateprojectop.d.ts.map +1 -1
  212. package/esm/models/updateprojectop.js +103 -2
  213. package/esm/models/updateprojectop.js.map +1 -1
  214. package/esm/models/updateprojectprotectionbypassop.d.ts +49 -0
  215. package/esm/models/updateprojectprotectionbypassop.d.ts.map +1 -1
  216. package/esm/models/updateprojectprotectionbypassop.js +27 -0
  217. package/esm/models/updateprojectprotectionbypassop.js.map +1 -1
  218. package/esm/models/userevent.d.ts +756 -968
  219. package/esm/models/userevent.d.ts.map +1 -1
  220. package/esm/models/userevent.js +1012 -1247
  221. package/esm/models/userevent.js.map +1 -1
  222. package/esm/sdk/domains.d.ts +0 -8
  223. package/esm/sdk/domains.d.ts.map +1 -1
  224. package/esm/sdk/domains.js +0 -10
  225. package/esm/sdk/domains.js.map +1 -1
  226. package/esm/sdk/sdk.d.ts +33 -1
  227. package/esm/sdk/sdk.d.ts.map +1 -1
  228. package/esm/sdk/sdk.js +47 -0
  229. package/esm/sdk/sdk.js.map +1 -1
  230. package/esm/sdk/teams.d.ts +8 -0
  231. package/esm/sdk/teams.d.ts.map +1 -1
  232. package/esm/sdk/teams.js +10 -0
  233. package/esm/sdk/teams.js.map +1 -1
  234. package/examples/package-lock.json +2 -2
  235. package/jsr.json +1 -1
  236. package/package.json +2 -2
  237. package/src/__tests__/domains.test.ts +4 -41
  238. package/src/__tests__/edgeconfig.test.ts +6 -6
  239. package/src/__tests__/integrations.test.ts +1 -1
  240. package/src/__tests__/logdrains.test.ts +6 -2
  241. package/src/__tests__/security.test.ts +20 -35
  242. package/src/__tests__/teams.test.ts +19 -0
  243. package/src/__tests__/vercel.test.ts +177 -1
  244. package/src/funcs/deleteV1BulkRedirects.ts +161 -0
  245. package/src/funcs/domainsCreateOrTransferDomain.ts +2 -2
  246. package/src/funcs/getV1BulkRedirects.ts +167 -0
  247. package/src/funcs/getV1BulkRedirectsVersions.ts +160 -0
  248. package/src/funcs/patchV1BulkRedirects.ts +161 -0
  249. package/src/funcs/postV1BulkRedirectsRestore.ts +161 -0
  250. package/src/funcs/postV1BulkRedirectsVersions.ts +161 -0
  251. package/src/funcs/putV1BulkRedirects.ts +156 -0
  252. package/src/funcs/{domainsBuyDomain.ts → teamsPostTeamDsyncRoles.ts} +29 -24
  253. package/src/lib/config.ts +3 -3
  254. package/src/mcp-server/mcp-server.ts +1 -1
  255. package/src/mcp-server/server.ts +17 -3
  256. package/src/mcp-server/tools/deleteV1BulkRedirects.ts +36 -0
  257. package/src/mcp-server/tools/getV1BulkRedirects.ts +35 -0
  258. package/src/mcp-server/tools/getV1BulkRedirectsVersions.ts +35 -0
  259. package/src/mcp-server/tools/patchV1BulkRedirects.ts +36 -0
  260. package/src/mcp-server/tools/postV1BulkRedirectsRestore.ts +36 -0
  261. package/src/mcp-server/tools/postV1BulkRedirectsVersions.ts +36 -0
  262. package/src/mcp-server/tools/putV1BulkRedirects.ts +35 -0
  263. package/src/mcp-server/tools/teamsPostTeamDsyncRoles.ts +37 -0
  264. package/src/models/artifactqueryop.ts +21 -17
  265. package/src/models/canceldeploymentop.ts +129 -0
  266. package/src/models/createdeploymentop.ts +112 -0
  267. package/src/models/createedgeconfigop.ts +7 -0
  268. package/src/models/createintegrationstoredirectop.ts +475 -471
  269. package/src/models/createortransferdomainop.ts +0 -83
  270. package/src/models/createprojectop.ts +293 -4
  271. package/src/models/createwebhookop.ts +4 -2
  272. package/src/models/deletev1bulkredirectsop.ts +267 -0
  273. package/src/models/getconfigurationproductsop.ts +627 -627
  274. package/src/models/getconfigurationsop.ts +1 -0
  275. package/src/models/getdeploymenteventsop.ts +17 -13
  276. package/src/models/getdeploymentop.ts +263 -0
  277. package/src/models/getedgeconfigop.ts +7 -0
  278. package/src/models/getfirewallconfigop.ts +835 -274
  279. package/src/models/getprojectdomainsop.ts +11 -9
  280. package/src/models/getprojectsop.ts +214 -4
  281. package/src/models/getv1bulkredirectsop.ts +467 -0
  282. package/src/models/getv1bulkredirectsversionsop.ts +192 -0
  283. package/src/models/getwebhookop.ts +2 -1
  284. package/src/models/getwebhooksop.ts +4 -2
  285. package/src/models/listaccessgroupsop.ts +26 -18
  286. package/src/models/patchv1bulkredirectsop.ts +336 -0
  287. package/src/models/postteamdsyncrolesop.ts +291 -0
  288. package/src/models/postv1bulkredirectsrestoreop.ts +275 -0
  289. package/src/models/postv1bulkredirectsversionsop.ts +296 -0
  290. package/src/models/putfirewallconfigop.ts +1025 -284
  291. package/src/models/putv1bulkredirectsop.ts +304 -0
  292. package/src/models/updateedgeconfigop.ts +7 -0
  293. package/src/models/updatefirewallconfigop.ts +107 -0
  294. package/src/models/updateprojectdatacacheop.ts +276 -55
  295. package/src/models/updateprojectop.ts +293 -4
  296. package/src/models/updateprojectprotectionbypassop.ts +84 -0
  297. package/src/models/userevent.ts +2357 -2909
  298. package/src/sdk/domains.ts +0 -19
  299. package/src/sdk/sdk.ts +132 -1
  300. package/src/sdk/teams.ts +22 -0
  301. package/vercel-spec.json +3003 -1259
  302. package/esm/funcs/domainsBuyDomain.d.ts +0 -17
  303. package/esm/funcs/domainsBuyDomain.d.ts.map +0 -1
  304. package/esm/funcs/domainsBuyDomain.js.map +0 -1
  305. package/esm/mcp-server/tools/domainsBuyDomain.d.ts +0 -7
  306. package/esm/mcp-server/tools/domainsBuyDomain.d.ts.map +0 -1
  307. package/esm/mcp-server/tools/domainsBuyDomain.js +0 -28
  308. package/esm/mcp-server/tools/domainsBuyDomain.js.map +0 -1
  309. package/esm/models/buydomainop.d.ts +0 -180
  310. package/esm/models/buydomainop.d.ts.map +0 -1
  311. package/esm/models/buydomainop.js +0 -159
  312. package/esm/models/buydomainop.js.map +0 -1
  313. package/src/mcp-server/tools/domainsBuyDomain.ts +0 -37
  314. package/src/models/buydomainop.ts +0 -453
@@ -44,23 +44,20 @@ export type GetFirewallConfigSd = {
44
44
  GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsSdAction;
45
45
  };
46
46
 
47
- export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction =
48
- {
49
- Deny: "deny",
50
- Log: "log",
51
- } as const;
52
- export type GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction =
53
- ClosedEnum<
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
- * [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
307
- */
308
- export type GetFirewallConfigType = ClosedEnum<typeof GetFirewallConfigType>;
301
+ export type GetFirewallConfigRulesType = ClosedEnum<
302
+ typeof GetFirewallConfigRulesType
303
+ >;
309
304
 
310
- export const GetFirewallConfigOp = {
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 GetFirewallConfigOp = ClosedEnum<typeof GetFirewallConfigOp>;
321
+ export type GetFirewallConfigRulesOp = ClosedEnum<
322
+ typeof GetFirewallConfigRulesOp
323
+ >;
327
324
 
328
- export type GetFirewallConfigValue = string | number | Array<string>;
325
+ export type GetFirewallConfigRulesValue = string | number | Array<string>;
329
326
 
330
- export type GetFirewallConfigConditions = {
331
- /**
332
- * [Parameter](https://vercel.com/docs/security/vercel-waf/rule-configuration#parameters) from the incoming traffic.
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 GetFirewallConfigConditionGroup = {
342
- conditions: Array<GetFirewallConfigConditions>;
335
+ export type GetFirewallConfigRulesConditionGroup = {
336
+ conditions: Array<GetFirewallConfigRulesConditions>;
343
337
  };
344
338
 
345
- export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction =
346
- {
347
- Deny: "deny",
348
- Log: "log",
349
- Challenge: "challenge",
350
- Bypass: "bypass",
351
- RateLimit: "rate_limit",
352
- Redirect: "redirect",
353
- } as const;
354
- export type GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction =
355
- ClosedEnum<
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 GetFirewallConfigAlgo = {
351
+ export const GetFirewallConfigRulesAlgo = {
360
352
  FixedWindow: "fixed_window",
361
353
  TokenBucket: "token_bucket",
362
354
  } as const;
363
- export type GetFirewallConfigAlgo = ClosedEnum<typeof GetFirewallConfigAlgo>;
355
+ export type GetFirewallConfigRulesAlgo = ClosedEnum<
356
+ typeof GetFirewallConfigRulesAlgo
357
+ >;
364
358
 
365
- export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction =
366
- {
367
- Deny: "deny",
368
- Log: "log",
369
- Challenge: "challenge",
370
- RateLimit: "rate_limit",
371
- } as const;
372
- export type GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction =
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 GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction
493
+ typeof GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction
375
494
  >;
376
495
 
377
- export type GetFirewallConfigRateLimit = {
378
- algo: GetFirewallConfigAlgo;
496
+ export type RulesRateLimit = {
497
+ algo: RulesAlgo;
379
498
  window: number;
380
499
  limit: number;
381
500
  keys: Array<string>;
382
501
  action?:
383
- | GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction
502
+ | GetFirewallConfigRulesSecurityResponse200ApplicationJSONAction
384
503
  | null
385
504
  | undefined;
386
505
  };
387
506
 
388
- export type GetFirewallConfigRedirect = {
507
+ export type RulesRedirect = {
389
508
  location: string;
390
509
  permanent: boolean;
391
510
  };
392
511
 
393
- export type GetFirewallConfigMitigate = {
394
- action:
395
- GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction;
396
- rateLimit?: GetFirewallConfigRateLimit | null | undefined;
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 GetFirewallConfigAction = {
403
- mitigate?: GetFirewallConfigMitigate | undefined;
520
+ export type RulesAction = {
521
+ mitigate?: RulesMitigate | undefined;
404
522
  };
405
523
 
406
- export type GetFirewallConfigRules = {
524
+ export type Rules1 = {
407
525
  id: string;
408
526
  name: string;
409
527
  description?: string | undefined;
410
528
  active: boolean;
411
- conditionGroup: Array<GetFirewallConfigConditionGroup>;
412
- action: GetFirewallConfigAction;
529
+ conditionGroup: Array<RulesConditionGroup>;
530
+ action: RulesAction;
531
+ valid: boolean;
532
+ validationErrors?: any | null | undefined;
413
533
  };
414
534
 
415
- export const GetFirewallConfigSecurityAction = {
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 GetFirewallConfigSecurityAction = ClosedEnum<
422
- typeof GetFirewallConfigSecurityAction
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: GetFirewallConfigSecurityAction;
552
+ action: GetFirewallConfigAction;
431
553
  };
432
554
 
433
555
  export type Changes = {};
@@ -515,7 +637,7 @@ export type GetFirewallConfigResponseBody = {
515
637
  * Custom Ruleset
516
638
  */
517
639
  crs: GetFirewallConfigCrs;
518
- rules: Array<GetFirewallConfigRules>;
640
+ rules: Array<Rules1 | Rules2>;
519
641
  ips: Array<GetFirewallConfigIps>;
520
642
  changes: Array<Changes>;
521
643
  managedRules?: ManagedRules | undefined;
@@ -629,18 +751,13 @@ export function getFirewallConfigSdFromJSON(
629
751
  }
630
752
 
631
753
  /** @internal */
632
- export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction$inboundSchema:
633
- z.ZodNativeEnum<
634
- typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction
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 GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction$outboundSchema:
640
- z.ZodNativeEnum<
641
- typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyCrsMaAction
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 GetFirewallConfigType$inboundSchema: z.ZodNativeEnum<
1265
- typeof GetFirewallConfigType
1266
- > = z.nativeEnum(GetFirewallConfigType);
1379
+ export const GetFirewallConfigRulesType$inboundSchema: z.ZodNativeEnum<
1380
+ typeof GetFirewallConfigRulesType
1381
+ > = z.nativeEnum(GetFirewallConfigRulesType);
1267
1382
  /** @internal */
1268
- export const GetFirewallConfigType$outboundSchema: z.ZodNativeEnum<
1269
- typeof GetFirewallConfigType
1270
- > = GetFirewallConfigType$inboundSchema;
1383
+ export const GetFirewallConfigRulesType$outboundSchema: z.ZodNativeEnum<
1384
+ typeof GetFirewallConfigRulesType
1385
+ > = GetFirewallConfigRulesType$inboundSchema;
1271
1386
 
1272
1387
  /** @internal */
1273
- export const GetFirewallConfigOp$inboundSchema: z.ZodNativeEnum<
1274
- typeof GetFirewallConfigOp
1275
- > = z.nativeEnum(GetFirewallConfigOp);
1388
+ export const GetFirewallConfigRulesOp$inboundSchema: z.ZodNativeEnum<
1389
+ typeof GetFirewallConfigRulesOp
1390
+ > = z.nativeEnum(GetFirewallConfigRulesOp);
1276
1391
  /** @internal */
1277
- export const GetFirewallConfigOp$outboundSchema: z.ZodNativeEnum<
1278
- typeof GetFirewallConfigOp
1279
- > = GetFirewallConfigOp$inboundSchema;
1392
+ export const GetFirewallConfigRulesOp$outboundSchema: z.ZodNativeEnum<
1393
+ typeof GetFirewallConfigRulesOp
1394
+ > = GetFirewallConfigRulesOp$inboundSchema;
1280
1395
 
1281
1396
  /** @internal */
1282
- export const GetFirewallConfigValue$inboundSchema: z.ZodType<
1283
- GetFirewallConfigValue,
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 GetFirewallConfigValue$Outbound = string | number | Array<string>;
1403
+ export type GetFirewallConfigRulesValue$Outbound =
1404
+ | string
1405
+ | number
1406
+ | Array<string>;
1289
1407
 
1290
1408
  /** @internal */
1291
- export const GetFirewallConfigValue$outboundSchema: z.ZodType<
1292
- GetFirewallConfigValue$Outbound,
1409
+ export const GetFirewallConfigRulesValue$outboundSchema: z.ZodType<
1410
+ GetFirewallConfigRulesValue$Outbound,
1293
1411
  z.ZodTypeDef,
1294
- GetFirewallConfigValue
1412
+ GetFirewallConfigRulesValue
1295
1413
  > = z.union([z.string(), z.number(), z.array(z.string())]);
1296
1414
 
1297
- export function getFirewallConfigValueToJSON(
1298
- getFirewallConfigValue: GetFirewallConfigValue,
1415
+ export function getFirewallConfigRulesValueToJSON(
1416
+ getFirewallConfigRulesValue: GetFirewallConfigRulesValue,
1299
1417
  ): string {
1300
1418
  return JSON.stringify(
1301
- GetFirewallConfigValue$outboundSchema.parse(getFirewallConfigValue),
1419
+ GetFirewallConfigRulesValue$outboundSchema.parse(
1420
+ getFirewallConfigRulesValue,
1421
+ ),
1302
1422
  );
1303
1423
  }
1304
- export function getFirewallConfigValueFromJSON(
1424
+ export function getFirewallConfigRulesValueFromJSON(
1305
1425
  jsonString: string,
1306
- ): SafeParseResult<GetFirewallConfigValue, SDKValidationError> {
1426
+ ): SafeParseResult<GetFirewallConfigRulesValue, SDKValidationError> {
1307
1427
  return safeParse(
1308
1428
  jsonString,
1309
- (x) => GetFirewallConfigValue$inboundSchema.parse(JSON.parse(x)),
1310
- `Failed to parse 'GetFirewallConfigValue' from JSON`,
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 GetFirewallConfigConditions$inboundSchema: z.ZodType<
1316
- GetFirewallConfigConditions,
1435
+ export const GetFirewallConfigRulesConditions$inboundSchema: z.ZodType<
1436
+ GetFirewallConfigRulesConditions,
1317
1437
  z.ZodTypeDef,
1318
1438
  unknown
1319
1439
  > = z.object({
1320
- type: GetFirewallConfigType$inboundSchema,
1321
- op: GetFirewallConfigOp$inboundSchema,
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 GetFirewallConfigConditions$Outbound = {
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 GetFirewallConfigConditions$outboundSchema: z.ZodType<
1337
- GetFirewallConfigConditions$Outbound,
1456
+ export const GetFirewallConfigRulesConditions$outboundSchema: z.ZodType<
1457
+ GetFirewallConfigRulesConditions$Outbound,
1338
1458
  z.ZodTypeDef,
1339
- GetFirewallConfigConditions
1459
+ GetFirewallConfigRulesConditions
1340
1460
  > = z.object({
1341
- type: GetFirewallConfigType$outboundSchema,
1342
- op: GetFirewallConfigOp$outboundSchema,
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 getFirewallConfigConditionsToJSON(
1349
- getFirewallConfigConditions: GetFirewallConfigConditions,
1468
+ export function getFirewallConfigRulesConditionsToJSON(
1469
+ getFirewallConfigRulesConditions: GetFirewallConfigRulesConditions,
1350
1470
  ): string {
1351
1471
  return JSON.stringify(
1352
- GetFirewallConfigConditions$outboundSchema.parse(
1353
- getFirewallConfigConditions,
1472
+ GetFirewallConfigRulesConditions$outboundSchema.parse(
1473
+ getFirewallConfigRulesConditions,
1354
1474
  ),
1355
1475
  );
1356
1476
  }
1357
- export function getFirewallConfigConditionsFromJSON(
1477
+ export function getFirewallConfigRulesConditionsFromJSON(
1358
1478
  jsonString: string,
1359
- ): SafeParseResult<GetFirewallConfigConditions, SDKValidationError> {
1479
+ ): SafeParseResult<GetFirewallConfigRulesConditions, SDKValidationError> {
1360
1480
  return safeParse(
1361
1481
  jsonString,
1362
- (x) => GetFirewallConfigConditions$inboundSchema.parse(JSON.parse(x)),
1363
- `Failed to parse 'GetFirewallConfigConditions' from JSON`,
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 GetFirewallConfigConditionGroup$inboundSchema: z.ZodType<
1369
- GetFirewallConfigConditionGroup,
1488
+ export const GetFirewallConfigRulesConditionGroup$inboundSchema: z.ZodType<
1489
+ GetFirewallConfigRulesConditionGroup,
1370
1490
  z.ZodTypeDef,
1371
1491
  unknown
1372
1492
  > = z.object({
1373
- conditions: z.array(z.lazy(() => GetFirewallConfigConditions$inboundSchema)),
1493
+ conditions: z.array(
1494
+ z.lazy(() => GetFirewallConfigRulesConditions$inboundSchema),
1495
+ ),
1374
1496
  });
1375
1497
  /** @internal */
1376
- export type GetFirewallConfigConditionGroup$Outbound = {
1377
- conditions: Array<GetFirewallConfigConditions$Outbound>;
1498
+ export type GetFirewallConfigRulesConditionGroup$Outbound = {
1499
+ conditions: Array<GetFirewallConfigRulesConditions$Outbound>;
1378
1500
  };
1379
1501
 
1380
1502
  /** @internal */
1381
- export const GetFirewallConfigConditionGroup$outboundSchema: z.ZodType<
1382
- GetFirewallConfigConditionGroup$Outbound,
1503
+ export const GetFirewallConfigRulesConditionGroup$outboundSchema: z.ZodType<
1504
+ GetFirewallConfigRulesConditionGroup$Outbound,
1383
1505
  z.ZodTypeDef,
1384
- GetFirewallConfigConditionGroup
1506
+ GetFirewallConfigRulesConditionGroup
1385
1507
  > = z.object({
1386
- conditions: z.array(z.lazy(() => GetFirewallConfigConditions$outboundSchema)),
1508
+ conditions: z.array(
1509
+ z.lazy(() => GetFirewallConfigRulesConditions$outboundSchema),
1510
+ ),
1387
1511
  });
1388
1512
 
1389
- export function getFirewallConfigConditionGroupToJSON(
1390
- getFirewallConfigConditionGroup: GetFirewallConfigConditionGroup,
1513
+ export function getFirewallConfigRulesConditionGroupToJSON(
1514
+ getFirewallConfigRulesConditionGroup: GetFirewallConfigRulesConditionGroup,
1391
1515
  ): string {
1392
1516
  return JSON.stringify(
1393
- GetFirewallConfigConditionGroup$outboundSchema.parse(
1394
- getFirewallConfigConditionGroup,
1517
+ GetFirewallConfigRulesConditionGroup$outboundSchema.parse(
1518
+ getFirewallConfigRulesConditionGroup,
1395
1519
  ),
1396
1520
  );
1397
1521
  }
1398
- export function getFirewallConfigConditionGroupFromJSON(
1522
+ export function getFirewallConfigRulesConditionGroupFromJSON(
1399
1523
  jsonString: string,
1400
- ): SafeParseResult<GetFirewallConfigConditionGroup, SDKValidationError> {
1524
+ ): SafeParseResult<GetFirewallConfigRulesConditionGroup, SDKValidationError> {
1401
1525
  return safeParse(
1402
1526
  jsonString,
1403
- (x) => GetFirewallConfigConditionGroup$inboundSchema.parse(JSON.parse(x)),
1404
- `Failed to parse 'GetFirewallConfigConditionGroup' from JSON`,
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 GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction$inboundSchema:
1410
- z.ZodNativeEnum<
1411
- typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction
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 GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction$outboundSchema:
1417
- z.ZodNativeEnum<
1418
- typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction
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 GetFirewallConfigAlgo$inboundSchema: z.ZodNativeEnum<
1424
- typeof GetFirewallConfigAlgo
1425
- > = z.nativeEnum(GetFirewallConfigAlgo);
1544
+ export const GetFirewallConfigRulesAlgo$inboundSchema: z.ZodNativeEnum<
1545
+ typeof GetFirewallConfigRulesAlgo
1546
+ > = z.nativeEnum(GetFirewallConfigRulesAlgo);
1426
1547
  /** @internal */
1427
- export const GetFirewallConfigAlgo$outboundSchema: z.ZodNativeEnum<
1428
- typeof GetFirewallConfigAlgo
1429
- > = GetFirewallConfigAlgo$inboundSchema;
1548
+ export const GetFirewallConfigRulesAlgo$outboundSchema: z.ZodNativeEnum<
1549
+ typeof GetFirewallConfigRulesAlgo
1550
+ > = GetFirewallConfigRulesAlgo$inboundSchema;
1430
1551
 
1431
1552
  /** @internal */
1432
- export const GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction$inboundSchema:
1433
- z.ZodNativeEnum<
1434
- typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction
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 GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction$outboundSchema:
1440
- z.ZodNativeEnum<
1441
- typeof GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction
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 GetFirewallConfigRateLimit$inboundSchema: z.ZodType<
1447
- GetFirewallConfigRateLimit,
1562
+ export const GetFirewallConfigRulesRateLimit$inboundSchema: z.ZodType<
1563
+ GetFirewallConfigRulesRateLimit,
1448
1564
  z.ZodTypeDef,
1449
1565
  unknown
1450
1566
  > = z.object({
1451
- algo: GetFirewallConfigAlgo$inboundSchema,
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
- GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction$inboundSchema,
1572
+ GetFirewallConfigRulesSecurityResponse200Action$inboundSchema,
1457
1573
  ).optional(),
1458
1574
  });
1459
1575
  /** @internal */
1460
- export type GetFirewallConfigRateLimit$Outbound = {
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 GetFirewallConfigRateLimit$outboundSchema: z.ZodType<
1470
- GetFirewallConfigRateLimit$Outbound,
1585
+ export const GetFirewallConfigRulesRateLimit$outboundSchema: z.ZodType<
1586
+ GetFirewallConfigRulesRateLimit$Outbound,
1471
1587
  z.ZodTypeDef,
1472
- GetFirewallConfigRateLimit
1588
+ GetFirewallConfigRulesRateLimit
1473
1589
  > = z.object({
1474
- algo: GetFirewallConfigAlgo$outboundSchema,
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
- GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesActionAction$outboundSchema,
1595
+ GetFirewallConfigRulesSecurityResponse200Action$outboundSchema,
1480
1596
  ).optional(),
1481
1597
  });
1482
1598
 
1483
- export function getFirewallConfigRateLimitToJSON(
1484
- getFirewallConfigRateLimit: GetFirewallConfigRateLimit,
1599
+ export function getFirewallConfigRulesRateLimitToJSON(
1600
+ getFirewallConfigRulesRateLimit: GetFirewallConfigRulesRateLimit,
1485
1601
  ): string {
1486
1602
  return JSON.stringify(
1487
- GetFirewallConfigRateLimit$outboundSchema.parse(getFirewallConfigRateLimit),
1603
+ GetFirewallConfigRulesRateLimit$outboundSchema.parse(
1604
+ getFirewallConfigRulesRateLimit,
1605
+ ),
1488
1606
  );
1489
1607
  }
1490
- export function getFirewallConfigRateLimitFromJSON(
1608
+ export function getFirewallConfigRulesRateLimitFromJSON(
1491
1609
  jsonString: string,
1492
- ): SafeParseResult<GetFirewallConfigRateLimit, SDKValidationError> {
1610
+ ): SafeParseResult<GetFirewallConfigRulesRateLimit, SDKValidationError> {
1493
1611
  return safeParse(
1494
1612
  jsonString,
1495
- (x) => GetFirewallConfigRateLimit$inboundSchema.parse(JSON.parse(x)),
1496
- `Failed to parse 'GetFirewallConfigRateLimit' from JSON`,
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 GetFirewallConfigRedirect$inboundSchema: z.ZodType<
1502
- GetFirewallConfigRedirect,
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 GetFirewallConfigRedirect$Outbound = {
1628
+ export type GetFirewallConfigRulesRedirect$Outbound = {
1511
1629
  location: string;
1512
1630
  permanent: boolean;
1513
1631
  };
1514
1632
 
1515
1633
  /** @internal */
1516
- export const GetFirewallConfigRedirect$outboundSchema: z.ZodType<
1517
- GetFirewallConfigRedirect$Outbound,
1634
+ export const GetFirewallConfigRulesRedirect$outboundSchema: z.ZodType<
1635
+ GetFirewallConfigRulesRedirect$Outbound,
1518
1636
  z.ZodTypeDef,
1519
- GetFirewallConfigRedirect
1637
+ GetFirewallConfigRulesRedirect
1520
1638
  > = z.object({
1521
1639
  location: z.string(),
1522
1640
  permanent: z.boolean(),
1523
1641
  });
1524
1642
 
1525
- export function getFirewallConfigRedirectToJSON(
1526
- getFirewallConfigRedirect: GetFirewallConfigRedirect,
1643
+ export function getFirewallConfigRulesRedirectToJSON(
1644
+ getFirewallConfigRulesRedirect: GetFirewallConfigRulesRedirect,
1527
1645
  ): string {
1528
1646
  return JSON.stringify(
1529
- GetFirewallConfigRedirect$outboundSchema.parse(getFirewallConfigRedirect),
1647
+ GetFirewallConfigRulesRedirect$outboundSchema.parse(
1648
+ getFirewallConfigRulesRedirect,
1649
+ ),
1530
1650
  );
1531
1651
  }
1532
- export function getFirewallConfigRedirectFromJSON(
1652
+ export function getFirewallConfigRulesRedirectFromJSON(
1533
1653
  jsonString: string,
1534
- ): SafeParseResult<GetFirewallConfigRedirect, SDKValidationError> {
1654
+ ): SafeParseResult<GetFirewallConfigRulesRedirect, SDKValidationError> {
1535
1655
  return safeParse(
1536
1656
  jsonString,
1537
- (x) => GetFirewallConfigRedirect$inboundSchema.parse(JSON.parse(x)),
1538
- `Failed to parse 'GetFirewallConfigRedirect' from JSON`,
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 GetFirewallConfigMitigate$inboundSchema: z.ZodType<
1544
- GetFirewallConfigMitigate,
1663
+ export const GetFirewallConfigRulesMitigate$inboundSchema: z.ZodType<
1664
+ GetFirewallConfigRulesMitigate,
1545
1665
  z.ZodTypeDef,
1546
1666
  unknown
1547
1667
  > = z.object({
1548
- action:
1549
- GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction$inboundSchema,
1550
- rateLimit: z.nullable(z.lazy(() => GetFirewallConfigRateLimit$inboundSchema))
1551
- .optional(),
1552
- redirect: z.nullable(z.lazy(() => GetFirewallConfigRedirect$inboundSchema))
1553
- .optional(),
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 GetFirewallConfigMitigate$Outbound = {
1679
+ export type GetFirewallConfigRulesMitigate$Outbound = {
1559
1680
  action: string;
1560
- rateLimit?: GetFirewallConfigRateLimit$Outbound | null | undefined;
1561
- redirect?: GetFirewallConfigRedirect$Outbound | null | undefined;
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 GetFirewallConfigMitigate$outboundSchema: z.ZodType<
1568
- GetFirewallConfigMitigate$Outbound,
1688
+ export const GetFirewallConfigRulesMitigate$outboundSchema: z.ZodType<
1689
+ GetFirewallConfigRulesMitigate$Outbound,
1569
1690
  z.ZodTypeDef,
1570
- GetFirewallConfigMitigate
1691
+ GetFirewallConfigRulesMitigate
1571
1692
  > = z.object({
1572
- action:
1573
- GetFirewallConfigSecurityResponse200ApplicationJSONResponseBodyRulesAction$outboundSchema,
1574
- rateLimit: z.nullable(z.lazy(() => GetFirewallConfigRateLimit$outboundSchema))
1575
- .optional(),
1576
- redirect: z.nullable(z.lazy(() => GetFirewallConfigRedirect$outboundSchema))
1577
- .optional(),
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 getFirewallConfigMitigateToJSON(
1583
- getFirewallConfigMitigate: GetFirewallConfigMitigate,
1704
+ export function getFirewallConfigRulesMitigateToJSON(
1705
+ getFirewallConfigRulesMitigate: GetFirewallConfigRulesMitigate,
1584
1706
  ): string {
1585
1707
  return JSON.stringify(
1586
- GetFirewallConfigMitigate$outboundSchema.parse(getFirewallConfigMitigate),
1708
+ GetFirewallConfigRulesMitigate$outboundSchema.parse(
1709
+ getFirewallConfigRulesMitigate,
1710
+ ),
1587
1711
  );
1588
1712
  }
1589
- export function getFirewallConfigMitigateFromJSON(
1713
+ export function getFirewallConfigRulesMitigateFromJSON(
1590
1714
  jsonString: string,
1591
- ): SafeParseResult<GetFirewallConfigMitigate, SDKValidationError> {
1715
+ ): SafeParseResult<GetFirewallConfigRulesMitigate, SDKValidationError> {
1592
1716
  return safeParse(
1593
1717
  jsonString,
1594
- (x) => GetFirewallConfigMitigate$inboundSchema.parse(JSON.parse(x)),
1595
- `Failed to parse 'GetFirewallConfigMitigate' from JSON`,
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 GetFirewallConfigAction$inboundSchema: z.ZodType<
1601
- GetFirewallConfigAction,
1724
+ export const GetFirewallConfigRulesAction$inboundSchema: z.ZodType<
1725
+ GetFirewallConfigRulesAction,
1602
1726
  z.ZodTypeDef,
1603
1727
  unknown
1604
1728
  > = z.object({
1605
- mitigate: z.lazy(() => GetFirewallConfigMitigate$inboundSchema).optional(),
1729
+ mitigate: z.lazy(() => GetFirewallConfigRulesMitigate$inboundSchema)
1730
+ .optional(),
1606
1731
  });
1607
1732
  /** @internal */
1608
- export type GetFirewallConfigAction$Outbound = {
1609
- mitigate?: GetFirewallConfigMitigate$Outbound | undefined;
1733
+ export type GetFirewallConfigRulesAction$Outbound = {
1734
+ mitigate?: GetFirewallConfigRulesMitigate$Outbound | undefined;
1610
1735
  };
1611
1736
 
1612
1737
  /** @internal */
1613
- export const GetFirewallConfigAction$outboundSchema: z.ZodType<
1614
- GetFirewallConfigAction$Outbound,
1738
+ export const GetFirewallConfigRulesAction$outboundSchema: z.ZodType<
1739
+ GetFirewallConfigRulesAction$Outbound,
1615
1740
  z.ZodTypeDef,
1616
- GetFirewallConfigAction
1741
+ GetFirewallConfigRulesAction
1617
1742
  > = z.object({
1618
- mitigate: z.lazy(() => GetFirewallConfigMitigate$outboundSchema).optional(),
1743
+ mitigate: z.lazy(() => GetFirewallConfigRulesMitigate$outboundSchema)
1744
+ .optional(),
1619
1745
  });
1620
1746
 
1621
- export function getFirewallConfigActionToJSON(
1622
- getFirewallConfigAction: GetFirewallConfigAction,
1747
+ export function getFirewallConfigRulesActionToJSON(
1748
+ getFirewallConfigRulesAction: GetFirewallConfigRulesAction,
1623
1749
  ): string {
1624
1750
  return JSON.stringify(
1625
- GetFirewallConfigAction$outboundSchema.parse(getFirewallConfigAction),
1751
+ GetFirewallConfigRulesAction$outboundSchema.parse(
1752
+ getFirewallConfigRulesAction,
1753
+ ),
1626
1754
  );
1627
1755
  }
1628
- export function getFirewallConfigActionFromJSON(
1756
+ export function getFirewallConfigRulesActionFromJSON(
1629
1757
  jsonString: string,
1630
- ): SafeParseResult<GetFirewallConfigAction, SDKValidationError> {
1758
+ ): SafeParseResult<GetFirewallConfigRulesAction, SDKValidationError> {
1631
1759
  return safeParse(
1632
1760
  jsonString,
1633
- (x) => GetFirewallConfigAction$inboundSchema.parse(JSON.parse(x)),
1634
- `Failed to parse 'GetFirewallConfigAction' from JSON`,
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 GetFirewallConfigRules$inboundSchema: z.ZodType<
1640
- GetFirewallConfigRules,
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
- unknown
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(() => GetFirewallConfigConditionGroup$inboundSchema),
1803
+ z.lazy(() => GetFirewallConfigRulesConditionGroup$outboundSchema),
1650
1804
  ),
1651
- action: z.lazy(() => GetFirewallConfigAction$inboundSchema),
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 type GetFirewallConfigRules$Outbound = {
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<GetFirewallConfigConditionGroup$Outbound>;
1660
- action: GetFirewallConfigAction$Outbound;
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 GetFirewallConfigRules$outboundSchema: z.ZodType<
1665
- GetFirewallConfigRules$Outbound,
2180
+ export const Rules1$outboundSchema: z.ZodType<
2181
+ Rules1$Outbound,
1666
2182
  z.ZodTypeDef,
1667
- GetFirewallConfigRules
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
- z.lazy(() => GetFirewallConfigConditionGroup$outboundSchema),
1675
- ),
1676
- action: z.lazy(() => GetFirewallConfigAction$outboundSchema),
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 GetFirewallConfigSecurityAction$inboundSchema: z.ZodNativeEnum<
1698
- typeof GetFirewallConfigSecurityAction
1699
- > = z.nativeEnum(GetFirewallConfigSecurityAction);
2248
+ export const GetFirewallConfigAction$inboundSchema: z.ZodNativeEnum<
2249
+ typeof GetFirewallConfigAction
2250
+ > = z.nativeEnum(GetFirewallConfigAction);
1700
2251
  /** @internal */
1701
- export const GetFirewallConfigSecurityAction$outboundSchema: z.ZodNativeEnum<
1702
- typeof GetFirewallConfigSecurityAction
1703
- > = GetFirewallConfigSecurityAction$inboundSchema;
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: GetFirewallConfigSecurityAction$inboundSchema,
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: GetFirewallConfigSecurityAction$outboundSchema,
2287
+ action: GetFirewallConfigAction$outboundSchema,
1737
2288
  });
1738
2289
 
1739
2290
  export function getFirewallConfigIpsToJSON(
@@ -2032,7 +2583,12 @@ export const GetFirewallConfigResponseBody$inboundSchema: z.ZodType<
2032
2583
  updatedAt: z.string(),
2033
2584
  firewallEnabled: z.boolean(),
2034
2585
  crs: z.lazy(() => GetFirewallConfigCrs$inboundSchema),
2035
- rules: z.array(z.lazy(() => GetFirewallConfigRules$inboundSchema)),
2586
+ rules: z.array(
2587
+ z.union([
2588
+ z.lazy(() => Rules1$inboundSchema),
2589
+ z.lazy(() => Rules2$inboundSchema),
2590
+ ]),
2591
+ ),
2036
2592
  ips: z.array(z.lazy(() => GetFirewallConfigIps$inboundSchema)),
2037
2593
  changes: z.array(z.lazy(() => Changes$inboundSchema)),
2038
2594
  managedRules: z.lazy(() => ManagedRules$inboundSchema).optional(),
@@ -2047,7 +2603,7 @@ export type GetFirewallConfigResponseBody$Outbound = {
2047
2603
  updatedAt: string;
2048
2604
  firewallEnabled: boolean;
2049
2605
  crs: GetFirewallConfigCrs$Outbound;
2050
- rules: Array<GetFirewallConfigRules$Outbound>;
2606
+ rules: Array<Rules1$Outbound | Rules2$Outbound>;
2051
2607
  ips: Array<GetFirewallConfigIps$Outbound>;
2052
2608
  changes: Array<Changes$Outbound>;
2053
2609
  managedRules?: ManagedRules$Outbound | undefined;
@@ -2067,7 +2623,12 @@ export const GetFirewallConfigResponseBody$outboundSchema: z.ZodType<
2067
2623
  updatedAt: z.string(),
2068
2624
  firewallEnabled: z.boolean(),
2069
2625
  crs: z.lazy(() => GetFirewallConfigCrs$outboundSchema),
2070
- rules: z.array(z.lazy(() => GetFirewallConfigRules$outboundSchema)),
2626
+ rules: z.array(
2627
+ z.union([
2628
+ z.lazy(() => Rules1$outboundSchema),
2629
+ z.lazy(() => Rules2$outboundSchema),
2630
+ ]),
2631
+ ),
2071
2632
  ips: z.array(z.lazy(() => GetFirewallConfigIps$outboundSchema)),
2072
2633
  changes: z.array(z.lazy(() => Changes$outboundSchema)),
2073
2634
  managedRules: z.lazy(() => ManagedRules$outboundSchema).optional(),