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