@vercel/sdk 1.18.1 → 1.18.3

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