@distilled.cloud/cloudflare 0.29.0 → 0.30.0

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 (458) hide show
  1. package/lib/services/abuse-reports.d.ts.map +1 -1
  2. package/lib/services/abuse-reports.js +26 -26
  3. package/lib/services/abuse-reports.js.map +1 -1
  4. package/lib/services/accounts.d.ts.map +1 -1
  5. package/lib/services/accounts.js +114 -123
  6. package/lib/services/accounts.js.map +1 -1
  7. package/lib/services/acm.d.ts.map +1 -1
  8. package/lib/services/acm.js +23 -23
  9. package/lib/services/acm.js.map +1 -1
  10. package/lib/services/addressing.d.ts.map +1 -1
  11. package/lib/services/addressing.js +132 -132
  12. package/lib/services/addressing.js.map +1 -1
  13. package/lib/services/ai-gateway.d.ts.map +1 -1
  14. package/lib/services/ai-gateway.js +213 -207
  15. package/lib/services/ai-gateway.js.map +1 -1
  16. package/lib/services/ai-security.d.ts.map +1 -1
  17. package/lib/services/ai-security.js +13 -13
  18. package/lib/services/ai-security.js.map +1 -1
  19. package/lib/services/ai.d.ts.map +1 -1
  20. package/lib/services/ai.js +62 -62
  21. package/lib/services/ai.js.map +1 -1
  22. package/lib/services/aisearch.d.ts.map +1 -1
  23. package/lib/services/aisearch.js +187 -193
  24. package/lib/services/aisearch.js.map +1 -1
  25. package/lib/services/alerting.d.ts.map +1 -1
  26. package/lib/services/alerting.js +78 -78
  27. package/lib/services/alerting.js.map +1 -1
  28. package/lib/services/api-gateway.d.ts.map +1 -1
  29. package/lib/services/api-gateway.js +168 -177
  30. package/lib/services/api-gateway.js.map +1 -1
  31. package/lib/services/argo.js +12 -12
  32. package/lib/services/argo.js.map +1 -1
  33. package/lib/services/audit-logs.d.ts.map +1 -1
  34. package/lib/services/audit-logs.js +9 -9
  35. package/lib/services/audit-logs.js.map +1 -1
  36. package/lib/services/billing.d.ts.map +1 -1
  37. package/lib/services/billing.js +11 -11
  38. package/lib/services/billing.js.map +1 -1
  39. package/lib/services/bot-management.d.ts.map +1 -1
  40. package/lib/services/bot-management.js +18 -30
  41. package/lib/services/bot-management.js.map +1 -1
  42. package/lib/services/botnet-feed.d.ts.map +1 -1
  43. package/lib/services/botnet-feed.js +12 -12
  44. package/lib/services/botnet-feed.js.map +1 -1
  45. package/lib/services/brand-protection.d.ts.map +1 -1
  46. package/lib/services/brand-protection.js +59 -59
  47. package/lib/services/brand-protection.js.map +1 -1
  48. package/lib/services/browser-rendering.d.ts.map +1 -1
  49. package/lib/services/browser-rendering.js +103 -103
  50. package/lib/services/browser-rendering.js.map +1 -1
  51. package/lib/services/cache.d.ts.map +1 -1
  52. package/lib/services/cache.js +72 -72
  53. package/lib/services/cache.js.map +1 -1
  54. package/lib/services/calls.d.ts.map +1 -1
  55. package/lib/services/calls.js +31 -31
  56. package/lib/services/calls.js.map +1 -1
  57. package/lib/services/certificate-authorities.js +6 -6
  58. package/lib/services/certificate-authorities.js.map +1 -1
  59. package/lib/services/client-certificates.js +18 -18
  60. package/lib/services/client-certificates.js.map +1 -1
  61. package/lib/services/cloud-connector.d.ts.map +1 -1
  62. package/lib/services/cloud-connector.js +8 -8
  63. package/lib/services/cloud-connector.js.map +1 -1
  64. package/lib/services/cloudforce-one.d.ts.map +1 -1
  65. package/lib/services/cloudforce-one.js +178 -178
  66. package/lib/services/cloudforce-one.js.map +1 -1
  67. package/lib/services/connectivity.js +25 -25
  68. package/lib/services/connectivity.js.map +1 -1
  69. package/lib/services/containers.js +49 -49
  70. package/lib/services/containers.js.map +1 -1
  71. package/lib/services/content-scanning.d.ts.map +1 -1
  72. package/lib/services/content-scanning.js +29 -29
  73. package/lib/services/content-scanning.js.map +1 -1
  74. package/lib/services/csam-scanner.d.ts.map +1 -1
  75. package/lib/services/csam-scanner.js +8 -8
  76. package/lib/services/csam-scanner.js.map +1 -1
  77. package/lib/services/custom-certificates.d.ts.map +1 -1
  78. package/lib/services/custom-certificates.js +24 -24
  79. package/lib/services/custom-certificates.js.map +1 -1
  80. package/lib/services/custom-csrs.d.ts.map +1 -1
  81. package/lib/services/custom-csrs.js +22 -22
  82. package/lib/services/custom-csrs.js.map +1 -1
  83. package/lib/services/custom-hostnames.d.ts.map +1 -1
  84. package/lib/services/custom-hostnames.js +40 -40
  85. package/lib/services/custom-hostnames.js.map +1 -1
  86. package/lib/services/custom-nameservers.js +11 -11
  87. package/lib/services/custom-nameservers.js.map +1 -1
  88. package/lib/services/custom-pages.d.ts.map +1 -1
  89. package/lib/services/custom-pages.js +43 -43
  90. package/lib/services/custom-pages.js.map +1 -1
  91. package/lib/services/d1.d.ts +4 -4
  92. package/lib/services/d1.d.ts.map +1 -1
  93. package/lib/services/d1.js +69 -51
  94. package/lib/services/d1.js.map +1 -1
  95. package/lib/services/dcv-delegation.js +3 -3
  96. package/lib/services/dcv-delegation.js.map +1 -1
  97. package/lib/services/ddos-protection.js +126 -126
  98. package/lib/services/ddos-protection.js.map +1 -1
  99. package/lib/services/diagnostics.js +27 -27
  100. package/lib/services/diagnostics.js.map +1 -1
  101. package/lib/services/dls.d.ts.map +1 -1
  102. package/lib/services/dls.js +26 -26
  103. package/lib/services/dls.js.map +1 -1
  104. package/lib/services/dns-firewall.d.ts.map +1 -1
  105. package/lib/services/dns-firewall.js +34 -34
  106. package/lib/services/dns-firewall.js.map +1 -1
  107. package/lib/services/dns.d.ts.map +1 -1
  108. package/lib/services/dns.js +268 -268
  109. package/lib/services/dns.js.map +1 -1
  110. package/lib/services/durable-objects.d.ts.map +1 -1
  111. package/lib/services/durable-objects.js +11 -11
  112. package/lib/services/durable-objects.js.map +1 -1
  113. package/lib/services/email-auth.d.ts.map +1 -1
  114. package/lib/services/email-auth.js +13 -13
  115. package/lib/services/email-auth.js.map +1 -1
  116. package/lib/services/email-routing.d.ts.map +1 -1
  117. package/lib/services/email-routing.js +70 -70
  118. package/lib/services/email-routing.js.map +1 -1
  119. package/lib/services/email-security.d.ts.map +1 -1
  120. package/lib/services/email-security.js +195 -195
  121. package/lib/services/email-security.js.map +1 -1
  122. package/lib/services/email-sending.d.ts.map +1 -1
  123. package/lib/services/email-sending.js +28 -28
  124. package/lib/services/email-sending.js.map +1 -1
  125. package/lib/services/filters.d.ts.map +1 -1
  126. package/lib/services/filters.js +25 -25
  127. package/lib/services/filters.js.map +1 -1
  128. package/lib/services/firewall.d.ts.map +1 -1
  129. package/lib/services/firewall.js +149 -149
  130. package/lib/services/firewall.js.map +1 -1
  131. package/lib/services/flagship.d.ts.map +1 -1
  132. package/lib/services/flagship.js +52 -52
  133. package/lib/services/flagship.js.map +1 -1
  134. package/lib/services/fraud.js +8 -8
  135. package/lib/services/fraud.js.map +1 -1
  136. package/lib/services/google-tag-gateway.d.ts.map +1 -1
  137. package/lib/services/google-tag-gateway.js +7 -7
  138. package/lib/services/google-tag-gateway.js.map +1 -1
  139. package/lib/services/healthchecks.d.ts.map +1 -1
  140. package/lib/services/healthchecks.js +31 -31
  141. package/lib/services/healthchecks.js.map +1 -1
  142. package/lib/services/hostnames.d.ts.map +1 -1
  143. package/lib/services/hostnames.js +10 -10
  144. package/lib/services/hostnames.js.map +1 -1
  145. package/lib/services/hyperdrive.d.ts.map +1 -1
  146. package/lib/services/hyperdrive.js +32 -32
  147. package/lib/services/hyperdrive.js.map +1 -1
  148. package/lib/services/iam.d.ts.map +1 -1
  149. package/lib/services/iam.js +113 -113
  150. package/lib/services/iam.js.map +1 -1
  151. package/lib/services/images.d.ts.map +1 -1
  152. package/lib/services/images.js +59 -59
  153. package/lib/services/images.js.map +1 -1
  154. package/lib/services/intel.d.ts.map +1 -1
  155. package/lib/services/intel.js +102 -102
  156. package/lib/services/intel.js.map +1 -1
  157. package/lib/services/ips.js +5 -5
  158. package/lib/services/ips.js.map +1 -1
  159. package/lib/services/keyless-certificates.js +17 -17
  160. package/lib/services/keyless-certificates.js.map +1 -1
  161. package/lib/services/kv.d.ts.map +1 -1
  162. package/lib/services/kv.js +54 -54
  163. package/lib/services/kv.js.map +1 -1
  164. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  165. package/lib/services/leaked-credential-checks.js +22 -22
  166. package/lib/services/leaked-credential-checks.js.map +1 -1
  167. package/lib/services/load-balancers.d.ts.map +1 -1
  168. package/lib/services/load-balancers.js +139 -157
  169. package/lib/services/load-balancers.js.map +1 -1
  170. package/lib/services/logpush.d.ts.map +1 -1
  171. package/lib/services/logpush.js +69 -69
  172. package/lib/services/logpush.js.map +1 -1
  173. package/lib/services/logs.d.ts.map +1 -1
  174. package/lib/services/logs.js +58 -58
  175. package/lib/services/logs.js.map +1 -1
  176. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  177. package/lib/services/magic-cloud-networking.js +138 -168
  178. package/lib/services/magic-cloud-networking.js.map +1 -1
  179. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  180. package/lib/services/magic-network-monitoring.js +47 -65
  181. package/lib/services/magic-network-monitoring.js.map +1 -1
  182. package/lib/services/magic-transit.d.ts.map +1 -1
  183. package/lib/services/magic-transit.js +340 -364
  184. package/lib/services/magic-transit.js.map +1 -1
  185. package/lib/services/managed-transforms.js +11 -11
  186. package/lib/services/managed-transforms.js.map +1 -1
  187. package/lib/services/memberships.d.ts.map +1 -1
  188. package/lib/services/memberships.js +25 -25
  189. package/lib/services/memberships.js.map +1 -1
  190. package/lib/services/moq.d.ts.map +1 -1
  191. package/lib/services/moq.js +23 -23
  192. package/lib/services/moq.js.map +1 -1
  193. package/lib/services/mtls-certificates.d.ts.map +1 -1
  194. package/lib/services/mtls-certificates.js +17 -17
  195. package/lib/services/mtls-certificates.js.map +1 -1
  196. package/lib/services/network-interconnects.d.ts.map +1 -1
  197. package/lib/services/network-interconnects.js +56 -56
  198. package/lib/services/network-interconnects.js.map +1 -1
  199. package/lib/services/organizations.d.ts.map +1 -1
  200. package/lib/services/organizations.js +42 -42
  201. package/lib/services/organizations.js.map +1 -1
  202. package/lib/services/origin-ca-certificates.js +14 -14
  203. package/lib/services/origin-ca-certificates.js.map +1 -1
  204. package/lib/services/origin-post-quantum-encryption.js +6 -6
  205. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  206. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  207. package/lib/services/origin-tls-client-auth.js +52 -52
  208. package/lib/services/origin-tls-client-auth.js.map +1 -1
  209. package/lib/services/origin-tls-compliance-modes.js +12 -12
  210. package/lib/services/origin-tls-compliance-modes.js.map +1 -1
  211. package/lib/services/page-rules.d.ts.map +1 -1
  212. package/lib/services/page-rules.js +62 -62
  213. package/lib/services/page-rules.js.map +1 -1
  214. package/lib/services/page-shield.d.ts.map +1 -1
  215. package/lib/services/page-shield.js +45 -48
  216. package/lib/services/page-shield.js.map +1 -1
  217. package/lib/services/pages.d.ts.map +1 -1
  218. package/lib/services/pages.js +78 -78
  219. package/lib/services/pages.js.map +1 -1
  220. package/lib/services/pipelines.d.ts.map +1 -1
  221. package/lib/services/pipelines.js +102 -102
  222. package/lib/services/pipelines.js.map +1 -1
  223. package/lib/services/queues.d.ts.map +1 -1
  224. package/lib/services/queues.js +100 -103
  225. package/lib/services/queues.js.map +1 -1
  226. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  227. package/lib/services/r2-data-catalog.js +42 -42
  228. package/lib/services/r2-data-catalog.js.map +1 -1
  229. package/lib/services/r2.d.ts.map +1 -1
  230. package/lib/services/r2.js +190 -190
  231. package/lib/services/r2.js.map +1 -1
  232. package/lib/services/radar.d.ts.map +1 -1
  233. package/lib/services/radar.js +991 -1009
  234. package/lib/services/radar.js.map +1 -1
  235. package/lib/services/rate-limits.d.ts.map +1 -1
  236. package/lib/services/rate-limits.js +24 -24
  237. package/lib/services/rate-limits.js.map +1 -1
  238. package/lib/services/realtime-kit.d.ts.map +1 -1
  239. package/lib/services/realtime-kit.js +276 -276
  240. package/lib/services/realtime-kit.js.map +1 -1
  241. package/lib/services/registrar.d.ts.map +1 -1
  242. package/lib/services/registrar.js +28 -28
  243. package/lib/services/registrar.js.map +1 -1
  244. package/lib/services/request-tracers.d.ts.map +1 -1
  245. package/lib/services/request-tracers.js +7 -7
  246. package/lib/services/request-tracers.js.map +1 -1
  247. package/lib/services/resource-sharing.d.ts.map +1 -1
  248. package/lib/services/resource-sharing.js +49 -49
  249. package/lib/services/resource-sharing.js.map +1 -1
  250. package/lib/services/resource-tagging.d.ts.map +1 -1
  251. package/lib/services/resource-tagging.js +56 -56
  252. package/lib/services/resource-tagging.js.map +1 -1
  253. package/lib/services/rules.d.ts.map +1 -1
  254. package/lib/services/rules.js +50 -50
  255. package/lib/services/rules.js.map +1 -1
  256. package/lib/services/rulesets.d.ts +2 -2
  257. package/lib/services/rulesets.d.ts.map +1 -1
  258. package/lib/services/rulesets.js +226 -190
  259. package/lib/services/rulesets.js.map +1 -1
  260. package/lib/services/rum.d.ts.map +1 -1
  261. package/lib/services/rum.js +35 -35
  262. package/lib/services/rum.js.map +1 -1
  263. package/lib/services/schema-validation.d.ts.map +1 -1
  264. package/lib/services/schema-validation.js +43 -46
  265. package/lib/services/schema-validation.js.map +1 -1
  266. package/lib/services/secrets-store.d.ts.map +1 -1
  267. package/lib/services/secrets-store.js +41 -41
  268. package/lib/services/secrets-store.js.map +1 -1
  269. package/lib/services/security-center.d.ts.map +1 -1
  270. package/lib/services/security-center.js +54 -57
  271. package/lib/services/security-center.js.map +1 -1
  272. package/lib/services/security-txt.d.ts.map +1 -1
  273. package/lib/services/security-txt.js +12 -12
  274. package/lib/services/security-txt.js.map +1 -1
  275. package/lib/services/snippets.d.ts.map +1 -1
  276. package/lib/services/snippets.js +31 -31
  277. package/lib/services/snippets.js.map +1 -1
  278. package/lib/services/spectrum.d.ts.map +1 -1
  279. package/lib/services/spectrum.js +35 -35
  280. package/lib/services/spectrum.js.map +1 -1
  281. package/lib/services/speed.d.ts.map +1 -1
  282. package/lib/services/speed.js +41 -41
  283. package/lib/services/speed.js.map +1 -1
  284. package/lib/services/ssl.d.ts.map +1 -1
  285. package/lib/services/ssl.js +48 -48
  286. package/lib/services/ssl.js.map +1 -1
  287. package/lib/services/stream.d.ts.map +1 -1
  288. package/lib/services/stream.js +147 -147
  289. package/lib/services/stream.js.map +1 -1
  290. package/lib/services/tenant-custom-nameservers.js +11 -11
  291. package/lib/services/tenant-custom-nameservers.js.map +1 -1
  292. package/lib/services/tenants.d.ts.map +1 -1
  293. package/lib/services/tenants.js +28 -28
  294. package/lib/services/tenants.js.map +1 -1
  295. package/lib/services/token-validation.d.ts.map +1 -1
  296. package/lib/services/token-validation.js +56 -56
  297. package/lib/services/token-validation.js.map +1 -1
  298. package/lib/services/turnstile.d.ts.map +1 -1
  299. package/lib/services/turnstile.js +27 -54
  300. package/lib/services/turnstile.js.map +1 -1
  301. package/lib/services/url-normalization.js +9 -9
  302. package/lib/services/url-normalization.js.map +1 -1
  303. package/lib/services/url-scanner.d.ts.map +1 -1
  304. package/lib/services/url-scanner.js +120 -120
  305. package/lib/services/url-scanner.js.map +1 -1
  306. package/lib/services/user.d.ts.map +1 -1
  307. package/lib/services/user.js +95 -95
  308. package/lib/services/user.js.map +1 -1
  309. package/lib/services/vectorize.d.ts +10 -10
  310. package/lib/services/vectorize.d.ts.map +1 -1
  311. package/lib/services/vectorize.js +59 -57
  312. package/lib/services/vectorize.js.map +1 -1
  313. package/lib/services/vulnerability-scanner.d.ts.map +1 -1
  314. package/lib/services/vulnerability-scanner.js +95 -95
  315. package/lib/services/vulnerability-scanner.js.map +1 -1
  316. package/lib/services/waiting-rooms.d.ts.map +1 -1
  317. package/lib/services/waiting-rooms.js +81 -81
  318. package/lib/services/waiting-rooms.js.map +1 -1
  319. package/lib/services/web3.d.ts.map +1 -1
  320. package/lib/services/web3.js +39 -39
  321. package/lib/services/web3.js.map +1 -1
  322. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  323. package/lib/services/workers-for-platforms.js +139 -139
  324. package/lib/services/workers-for-platforms.js.map +1 -1
  325. package/lib/services/workers.d.ts.map +1 -1
  326. package/lib/services/workers.js +420 -420
  327. package/lib/services/workers.js.map +1 -1
  328. package/lib/services/workflows.d.ts.map +1 -1
  329. package/lib/services/workflows.js +88 -88
  330. package/lib/services/workflows.js.map +1 -1
  331. package/lib/services/zaraz.d.ts.map +1 -1
  332. package/lib/services/zaraz.js +36 -39
  333. package/lib/services/zaraz.js.map +1 -1
  334. package/lib/services/zero-trust.d.ts.map +1 -1
  335. package/lib/services/zero-trust.js +1765 -1771
  336. package/lib/services/zero-trust.js.map +1 -1
  337. package/lib/services/zones.d.ts.map +1 -1
  338. package/lib/services/zones.js +168 -168
  339. package/lib/services/zones.js.map +1 -1
  340. package/package.json +3 -2
  341. package/src/services/abuse-reports.ts +35 -36
  342. package/src/services/accounts.ts +714 -760
  343. package/src/services/acm.ts +115 -125
  344. package/src/services/addressing.ts +484 -512
  345. package/src/services/ai-gateway.ts +653 -672
  346. package/src/services/ai-security.ts +47 -53
  347. package/src/services/ai.ts +172 -185
  348. package/src/services/aisearch.ts +1814 -1861
  349. package/src/services/alerting.ts +710 -742
  350. package/src/services/api-gateway.ts +481 -508
  351. package/src/services/argo.ts +12 -12
  352. package/src/services/audit-logs.ts +45 -49
  353. package/src/services/billing.ts +121 -136
  354. package/src/services/bot-management.ts +122 -136
  355. package/src/services/botnet-feed.ts +68 -74
  356. package/src/services/brand-protection.ts +275 -294
  357. package/src/services/browser-rendering.ts +758 -769
  358. package/src/services/cache.ts +148 -158
  359. package/src/services/calls.ts +110 -120
  360. package/src/services/certificate-authorities.ts +6 -6
  361. package/src/services/client-certificates.ts +18 -18
  362. package/src/services/cloud-connector.ts +11 -12
  363. package/src/services/cloudforce-one.ts +589 -617
  364. package/src/services/connectivity.ts +25 -25
  365. package/src/services/containers.ts +49 -49
  366. package/src/services/content-scanning.ts +80 -89
  367. package/src/services/csam-scanner.ts +16 -17
  368. package/src/services/custom-certificates.ts +36 -38
  369. package/src/services/custom-csrs.ts +103 -105
  370. package/src/services/custom-hostnames.ts +44 -45
  371. package/src/services/custom-nameservers.ts +11 -11
  372. package/src/services/custom-pages.ts +173 -184
  373. package/src/services/d1.ts +335 -325
  374. package/src/services/dcv-delegation.ts +3 -3
  375. package/src/services/ddos-protection.ts +126 -126
  376. package/src/services/diagnostics.ts +27 -27
  377. package/src/services/dls.ts +82 -86
  378. package/src/services/dns-firewall.ts +65 -69
  379. package/src/services/dns.ts +1080 -1107
  380. package/src/services/durable-objects.ts +36 -38
  381. package/src/services/email-auth.ts +47 -52
  382. package/src/services/email-routing.ts +264 -288
  383. package/src/services/email-security.ts +205 -208
  384. package/src/services/email-sending.ts +94 -99
  385. package/src/services/filters.ts +97 -111
  386. package/src/services/firewall.ts +698 -753
  387. package/src/services/flagship.ts +321 -336
  388. package/src/services/fraud.ts +8 -8
  389. package/src/services/google-tag-gateway.ts +17 -19
  390. package/src/services/healthchecks.ts +269 -286
  391. package/src/services/hostnames.ts +94 -99
  392. package/src/services/hyperdrive.ts +310 -324
  393. package/src/services/iam.ts +205 -212
  394. package/src/services/images.ts +138 -150
  395. package/src/services/intel.ts +248 -261
  396. package/src/services/ips.ts +5 -5
  397. package/src/services/keyless-certificates.ts +17 -17
  398. package/src/services/kv.ts +106 -110
  399. package/src/services/leaked-credential-checks.ts +49 -53
  400. package/src/services/load-balancers.ts +1119 -1212
  401. package/src/services/logpush.ts +298 -313
  402. package/src/services/logs.ts +74 -77
  403. package/src/services/magic-cloud-networking.ts +1219 -1311
  404. package/src/services/magic-network-monitoring.ts +647 -685
  405. package/src/services/magic-transit.ts +1988 -2119
  406. package/src/services/managed-transforms.ts +11 -11
  407. package/src/services/memberships.ts +101 -105
  408. package/src/services/moq.ts +100 -110
  409. package/src/services/mtls-certificates.ts +30 -32
  410. package/src/services/network-interconnects.ts +137 -145
  411. package/src/services/organizations.ts +189 -192
  412. package/src/services/origin-ca-certificates.ts +14 -14
  413. package/src/services/origin-post-quantum-encryption.ts +6 -6
  414. package/src/services/origin-tls-client-auth.ts +219 -236
  415. package/src/services/origin-tls-compliance-modes.ts +12 -12
  416. package/src/services/page-rules.ts +365 -373
  417. package/src/services/page-shield.ts +489 -528
  418. package/src/services/pages.ts +309 -319
  419. package/src/services/pipelines.ts +534 -573
  420. package/src/services/queues.ts +598 -635
  421. package/src/services/r2-data-catalog.ts +59 -60
  422. package/src/services/r2.ts +654 -689
  423. package/src/services/radar.ts +3395 -3487
  424. package/src/services/rate-limits.ts +81 -93
  425. package/src/services/realtime-kit.ts +386 -399
  426. package/src/services/registrar.ts +90 -96
  427. package/src/services/request-tracers.ts +41 -43
  428. package/src/services/resource-sharing.ts +293 -305
  429. package/src/services/resource-tagging.ts +354 -366
  430. package/src/services/rules.ts +272 -292
  431. package/src/services/rulesets.ts +1214 -1116
  432. package/src/services/rum.ts +252 -273
  433. package/src/services/schema-validation.ts +284 -305
  434. package/src/services/secrets-store.ts +130 -138
  435. package/src/services/security-center.ts +64 -69
  436. package/src/services/security-txt.ts +48 -50
  437. package/src/services/snippets.ts +132 -142
  438. package/src/services/spectrum.ts +75 -80
  439. package/src/services/speed.ts +385 -397
  440. package/src/services/ssl.ts +64 -65
  441. package/src/services/stream.ts +658 -718
  442. package/src/services/tenant-custom-nameservers.ts +11 -11
  443. package/src/services/tenants.ts +86 -93
  444. package/src/services/token-validation.ts +145 -151
  445. package/src/services/turnstile.ts +344 -381
  446. package/src/services/url-normalization.ts +9 -9
  447. package/src/services/url-scanner.ts +393 -399
  448. package/src/services/user.ts +479 -503
  449. package/src/services/vectorize.ts +215 -230
  450. package/src/services/vulnerability-scanner.ts +145 -148
  451. package/src/services/waiting-rooms.ts +759 -825
  452. package/src/services/web3.ts +186 -197
  453. package/src/services/workers-for-platforms.ts +408 -432
  454. package/src/services/workers.ts +1175 -1239
  455. package/src/services/workflows.ts +585 -616
  456. package/src/services/zaraz.ts +168 -192
  457. package/src/services/zero-trust.ts +2965 -3074
  458. package/src/services/zones.ts +753 -785
@@ -83,28 +83,28 @@ export class ValidationError extends T.applyErrorMatchers(Schema.TaggedErrorClas
83
83
  message: Schema.String,
84
84
  }), [{ code: 1001 }]) {
85
85
  }
86
- const ManagedBy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
86
+ const ManagedBy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
87
87
  parentOrgId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
88
88
  parentOrgName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
89
89
  }).pipe(Schema.encodeKeys({
90
90
  parentOrgId: "parent_org_id",
91
91
  parentOrgName: "parent_org_name",
92
92
  })));
93
- const Settings = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
93
+ const Settings = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
94
94
  abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
95
95
  enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
96
96
  }).pipe(Schema.encodeKeys({
97
97
  abuseContactEmail: "abuse_contact_email",
98
98
  enforceTwofactor: "enforce_twofactor",
99
99
  })));
100
- const Settings2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
100
+ const Settings2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
101
101
  abuseContactEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
102
102
  enforceTwofactor: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
103
103
  }).pipe(Schema.encodeKeys({
104
104
  abuseContactEmail: "abuse_contact_email",
105
105
  enforceTwofactor: "enforce_twofactor",
106
106
  })));
107
- const ListAccountsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
107
+ const ListAccountsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
108
108
  id: Schema.String,
109
109
  name: Schema.String,
110
110
  type: Schema.Union([
@@ -123,7 +123,7 @@ const ListAccountsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
123
123
  settings: "settings",
124
124
  })));
125
125
  const ListAccountsResponseResultInfo =
126
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
126
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
127
127
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
128
128
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
129
129
  perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -134,20 +134,20 @@ const ListAccountsResponseResultInfo =
134
134
  perPage: "per_page",
135
135
  totalCount: "total_count",
136
136
  })));
137
- const Unit = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
137
+ const Unit = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
138
138
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
139
139
  }));
140
- const Account = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
140
+ const Account = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
141
141
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
142
142
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
143
143
  }));
144
- const Action = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
144
+ const Action = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
145
145
  description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
146
146
  result: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
147
147
  time: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
148
148
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
149
149
  }));
150
- const Actor = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
150
+ const Actor = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
151
151
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
152
152
  context: Schema.optional(Schema.Union([
153
153
  Schema.Union([
@@ -182,7 +182,7 @@ const Actor = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
182
182
  tokenName: "token_name",
183
183
  type: "type",
184
184
  })));
185
- const Raw = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
185
+ const Raw = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
186
186
  cfRayId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
187
187
  method: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
188
188
  statusCode: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -195,7 +195,7 @@ const Raw = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
195
195
  uri: "uri",
196
196
  userAgent: "user_agent",
197
197
  })));
198
- const Resource = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
198
+ const Resource = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
199
199
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
200
200
  product: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
201
201
  request: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
@@ -203,7 +203,7 @@ const Resource = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
203
203
  scope: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
204
204
  type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
205
205
  }));
206
- const ListLogAuditsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
206
+ const ListLogAuditsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
207
207
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
208
208
  account: Schema.optional(Schema.Union([Account, Schema.Null])),
209
209
  action: Schema.optional(Schema.Union([Action, Schema.Null])),
@@ -213,17 +213,17 @@ const ListLogAuditsResponseResult = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
213
213
  zone: Schema.optional(Schema.Union([Account, Schema.Null])),
214
214
  }));
215
215
  const ListLogAuditsResponseResultInfoCursors =
216
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
216
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
217
217
  after: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
218
218
  }));
219
219
  const ListLogAuditsResponseResultInfo =
220
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
220
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
221
221
  cursors: Schema.optional(Schema.Union([ListLogAuditsResponseResultInfoCursors, Schema.Null])),
222
222
  }));
223
- const PolicyPermissionGroup = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
223
+ const PolicyPermissionGroup = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
224
224
  id: Schema.String,
225
225
  }));
226
- const Policy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
226
+ const Policy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
227
227
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
228
228
  access: Schema.optional(Schema.Union([
229
229
  Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
@@ -237,11 +237,11 @@ const Policy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
237
237
  permissionGroups: "permission_groups",
238
238
  resourceGroups: "resource_groups",
239
239
  })));
240
- const PermissionGrant = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
240
+ const PermissionGrant = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
241
241
  read: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
242
242
  write: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
243
243
  }));
244
- const Permissions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
244
+ const Permissions = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
245
245
  analytics: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
246
246
  billing: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
247
247
  cachePurge: Schema.optional(Schema.Union([PermissionGrant, Schema.Null])),
@@ -268,13 +268,13 @@ const Permissions = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
268
268
  zoneSettings: "zone_settings",
269
269
  zones: "zones",
270
270
  })));
271
- const Role = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
271
+ const Role = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
272
272
  id: Schema.String,
273
273
  description: Schema.String,
274
274
  name: Schema.String,
275
275
  permissions: Permissions,
276
276
  }));
277
- const User = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
277
+ const User = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
278
278
  email: Schema.String,
279
279
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
280
280
  firstName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -287,7 +287,7 @@ const User = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
287
287
  lastName: "last_name",
288
288
  twoFactorAuthenticationEnabled: "two_factor_authentication_enabled",
289
289
  })));
290
- const Member = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
290
+ const Member = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
291
291
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
292
292
  email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
293
293
  policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
@@ -298,7 +298,7 @@ const Member = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
298
298
  ])),
299
299
  user: Schema.optional(Schema.Union([User, Schema.Null])),
300
300
  }));
301
- const Policy2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
301
+ const Policy2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
302
302
  access: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
303
303
  permissionGroups: Schema.Array(PolicyPermissionGroup),
304
304
  resourceGroups: Schema.Array(PolicyPermissionGroup),
@@ -307,7 +307,7 @@ const Policy2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
307
307
  permissionGroups: "permission_groups",
308
308
  resourceGroups: "resource_groups",
309
309
  })));
310
- const RatePlan = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
310
+ const RatePlan = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
311
311
  id: Schema.optional(Schema.Union([
312
312
  Schema.Union([
313
313
  Schema.Literals([
@@ -341,7 +341,7 @@ const RatePlan = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct(
341
341
  scope: "scope",
342
342
  sets: "sets",
343
343
  })));
344
- const Subscription = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
344
+ const Subscription = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
345
345
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
346
346
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
347
347
  currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -380,23 +380,23 @@ const Subscription = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Str
380
380
  ratePlan: "rate_plan",
381
381
  state: "state",
382
382
  })));
383
- const ConditionRequestIP = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
383
+ const ConditionRequestIP = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
384
384
  in: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
385
385
  notIn: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
386
386
  }).pipe(Schema.encodeKeys({ in: "in", notIn: "not_in" })));
387
- const Condition = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
387
+ const Condition = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
388
388
  requestIp: Schema.optional(Schema.Union([ConditionRequestIP, Schema.Null])),
389
389
  }).pipe(Schema.encodeKeys({ requestIp: "request_ip" })));
390
- const Meta = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
390
+ const Meta = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
391
391
  key: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
392
392
  value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
393
393
  }));
394
- const PermissionGroup = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
394
+ const PermissionGroup = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
395
395
  id: Schema.String,
396
396
  meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
397
397
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
398
398
  }));
399
- const TokenPolicy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
399
+ const TokenPolicy = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
400
400
  id: Schema.String,
401
401
  effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
402
402
  permissionGroups: Schema.Array(PermissionGroup),
@@ -407,7 +407,7 @@ const TokenPolicy = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Stru
407
407
  permissionGroups: "permission_groups",
408
408
  resources: "resources",
409
409
  })));
410
- const Token = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
410
+ const Token = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
411
411
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
412
412
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
413
413
  expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -436,11 +436,11 @@ const Token = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
436
436
  policies: "policies",
437
437
  status: "status",
438
438
  })));
439
- const PermissionGroup2 = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
439
+ const PermissionGroup2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
440
440
  id: Schema.String,
441
441
  meta: Schema.optional(Schema.Union([Meta, Schema.Null])),
442
442
  }));
443
- const TokenPolicyParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
443
+ const TokenPolicyParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
444
444
  effect: Schema.Union([Schema.Literals(["allow", "deny"]), Schema.String]),
445
445
  permissionGroups: Schema.Array(PermissionGroup2),
446
446
  resources: Schema.Record(Schema.String, Schema.Unknown),
@@ -450,7 +450,7 @@ const TokenPolicyParam = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema
450
450
  resources: "resources",
451
451
  })));
452
452
  const PermissionGroupGetResponseItem =
453
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
453
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
454
454
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
455
455
  category: Schema.optional(Schema.Union([
456
456
  Schema.Union([
@@ -487,10 +487,10 @@ const PermissionGroupGetResponseItem =
487
487
  Schema.Null,
488
488
  ])),
489
489
  }));
490
- export const GetAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
490
+ export const GetAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
491
491
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
492
492
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}" })));
493
- export const GetAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
493
+ export const GetAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
494
494
  id: Schema.String,
495
495
  name: Schema.String,
496
496
  type: Schema.Union([
@@ -510,22 +510,22 @@ export const GetAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
510
510
  settings: "settings",
511
511
  }))
512
512
  .pipe(T.ResponsePath("result")));
513
- export const getAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
513
+ export const getAccount = /*@__PURE__*/ API.make(() => ({
514
514
  input: GetAccountRequest,
515
515
  output: GetAccountResponse,
516
516
  errors: [InvalidRoute],
517
517
  }));
518
- export const ListAccountsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
518
+ export const ListAccountsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
519
519
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
520
520
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
521
521
  direction: Schema.optional(Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String])).pipe(T.HttpQuery("direction")),
522
522
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
523
523
  }).pipe(T.Http({ method: "GET", path: "/accounts" })));
524
- export const ListAccountsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
524
+ export const ListAccountsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
525
525
  result: Schema.Array(ListAccountsResponseResult),
526
526
  resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
527
527
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
528
- export const listAccounts = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
528
+ export const listAccounts = /*@__PURE__*/ API.makePaginated(() => ({
529
529
  input: ListAccountsRequest,
530
530
  output: ListAccountsResponse,
531
531
  errors: [],
@@ -537,7 +537,7 @@ export const listAccounts = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
537
537
  pageSize: "perPage",
538
538
  },
539
539
  }));
540
- export const CreateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
540
+ export const CreateAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
541
541
  name: Schema.String,
542
542
  type: Schema.optional(Schema.Union([
543
543
  Schema.Literals(["standard", "enterprise"]),
@@ -545,7 +545,7 @@ export const CreateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
545
545
  ])),
546
546
  unit: Schema.optional(Unit),
547
547
  }).pipe(T.Http({ method: "POST", path: "/accounts" })));
548
- export const CreateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
548
+ export const CreateAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
549
549
  id: Schema.String,
550
550
  name: Schema.String,
551
551
  type: Schema.Union([
@@ -565,12 +565,12 @@ export const CreateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
565
565
  settings: "settings",
566
566
  }))
567
567
  .pipe(T.ResponsePath("result")));
568
- export const createAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
568
+ export const createAccount = /*@__PURE__*/ API.make(() => ({
569
569
  input: CreateAccountRequest,
570
570
  output: CreateAccountResponse,
571
571
  errors: [AccountCreationForbidden, MissingName],
572
572
  }));
573
- export const UpdateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
573
+ export const UpdateAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
574
574
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
575
575
  id: Schema.String,
576
576
  name: Schema.String,
@@ -587,7 +587,7 @@ export const UpdateAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
587
587
  managedBy: "managed_by",
588
588
  settings: "settings",
589
589
  }), T.Http({ method: "PUT", path: "/accounts/{account_id}" })));
590
- export const UpdateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
590
+ export const UpdateAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
591
591
  id: Schema.String,
592
592
  name: Schema.String,
593
593
  type: Schema.Union([
@@ -607,7 +607,7 @@ export const UpdateAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(
607
607
  settings: "settings",
608
608
  }))
609
609
  .pipe(T.ResponsePath("result")));
610
- export const updateAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
610
+ export const updateAccount = /*@__PURE__*/ API.make(() => ({
611
611
  input: UpdateAccountRequest,
612
612
  output: UpdateAccountResponse,
613
613
  errors: [
@@ -618,18 +618,18 @@ export const updateAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
618
618
  MethodNotAllowed,
619
619
  ],
620
620
  }));
621
- export const DeleteAccountRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
621
+ export const DeleteAccountRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
622
622
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
623
623
  }).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}" })));
624
- export const DeleteAccountResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
624
+ export const DeleteAccountResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
625
625
  id: Schema.String,
626
626
  }).pipe(T.ResponsePath("result")));
627
- export const deleteAccount = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
627
+ export const deleteAccount = /*@__PURE__*/ API.make(() => ({
628
628
  input: DeleteAccountRequest,
629
629
  output: DeleteAccountResponse,
630
630
  errors: [InvalidRoute, MethodNotAllowed],
631
631
  }));
632
- export const ListLogAuditsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
632
+ export const ListLogAuditsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
633
633
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
634
634
  cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
635
635
  before: Schema.String.pipe(T.HttpQuery("before")),
@@ -729,11 +729,11 @@ export const ListLogAuditsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
729
729
  not: Schema.optional(Schema.Array(Schema.String)),
730
730
  })).pipe(T.HttpQuery("zone_name")),
731
731
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/logs/audit" })));
732
- export const ListLogAuditsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
732
+ export const ListLogAuditsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
733
733
  result: Schema.Array(ListLogAuditsResponseResult),
734
734
  resultInfo: Schema.optional(Schema.Union([ListLogAuditsResponseResultInfo, Schema.Null])),
735
735
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
736
- export const listLogAudits = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
736
+ export const listLogAudits = /*@__PURE__*/ API.makePaginated(() => ({
737
737
  input: ListLogAuditsRequest,
738
738
  output: ListLogAuditsResponse,
739
739
  errors: [],
@@ -744,33 +744,30 @@ export const listLogAudits = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() =>
744
744
  items: "result",
745
745
  },
746
746
  }));
747
- export const GetMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
747
+ export const GetMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
748
748
  memberId: Schema.String.pipe(T.HttpPath("memberId")),
749
749
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
750
750
  }).pipe(T.Http({
751
751
  method: "GET",
752
752
  path: "/accounts/{account_id}/members/{memberId}",
753
753
  })));
754
- export const GetMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
754
+ export const GetMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
755
755
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
756
756
  email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
757
757
  policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
758
758
  roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
759
759
  status: Schema.optional(Schema.Union([
760
- Schema.Union([
761
- Schema.Literals(["accepted", "pending"]),
762
- Schema.String,
763
- ]),
760
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
764
761
  Schema.Null,
765
762
  ])),
766
763
  user: Schema.optional(Schema.Union([User, Schema.Null])),
767
764
  }).pipe(T.ResponsePath("result")));
768
- export const getMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
765
+ export const getMember = /*@__PURE__*/ API.make(() => ({
769
766
  input: GetMemberRequest,
770
767
  output: GetMemberResponse,
771
768
  errors: [MemberNotFound, InvalidRoute],
772
769
  }));
773
- export const ListMembersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
770
+ export const ListMembersRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
774
771
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
775
772
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
776
773
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -789,11 +786,11 @@ export const ListMembersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
789
786
  Schema.String,
790
787
  ])).pipe(T.HttpQuery("status")),
791
788
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/members" })));
792
- export const ListMembersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
789
+ export const ListMembersResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
793
790
  result: Schema.Union([Schema.Array(Member), Schema.Null]),
794
791
  resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
795
792
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
796
- export const listMembers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
793
+ export const listMembers = /*@__PURE__*/ API.makePaginated(() => ({
797
794
  input: ListMembersRequest,
798
795
  output: ListMembersResponse,
799
796
  errors: [],
@@ -805,33 +802,30 @@ export const listMembers = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => (
805
802
  pageSize: "perPage",
806
803
  },
807
804
  }));
808
- export const CreateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
805
+ export const CreateMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
809
806
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
810
807
  email: Schema.String,
811
808
  roles: Schema.optional(Schema.Array(Schema.String)),
812
809
  status: Schema.optional(Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String])),
813
810
  policies: Schema.optional(Schema.Array(Policy2)),
814
811
  }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/members" })));
815
- export const CreateMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
812
+ export const CreateMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
816
813
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
817
814
  email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
818
815
  policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
819
816
  roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
820
817
  status: Schema.optional(Schema.Union([
821
- Schema.Union([
822
- Schema.Literals(["accepted", "pending"]),
823
- Schema.String,
824
- ]),
818
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
825
819
  Schema.Null,
826
820
  ])),
827
821
  user: Schema.optional(Schema.Union([User, Schema.Null])),
828
822
  }).pipe(T.ResponsePath("result")));
829
- export const createMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
823
+ export const createMember = /*@__PURE__*/ API.make(() => ({
830
824
  input: CreateMemberRequest,
831
825
  output: CreateMemberResponse,
832
826
  errors: [InvalidRoute, ValidationError, AccountMemberAlreadyExists],
833
827
  }));
834
- export const UpdateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
828
+ export const UpdateMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
835
829
  memberId: Schema.String.pipe(T.HttpPath("memberId")),
836
830
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
837
831
  roles: Schema.optional(Schema.Array(PolicyPermissionGroup)),
@@ -840,65 +834,62 @@ export const UpdateMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
840
834
  method: "PUT",
841
835
  path: "/accounts/{account_id}/members/{memberId}",
842
836
  })));
843
- export const UpdateMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
837
+ export const UpdateMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
844
838
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
845
839
  email: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
846
840
  policies: Schema.optional(Schema.Union([Schema.Array(Policy), Schema.Null])),
847
841
  roles: Schema.optional(Schema.Union([Schema.Array(Role), Schema.Null])),
848
842
  status: Schema.optional(Schema.Union([
849
- Schema.Union([
850
- Schema.Literals(["accepted", "pending"]),
851
- Schema.String,
852
- ]),
843
+ Schema.Union([Schema.Literals(["accepted", "pending"]), Schema.String]),
853
844
  Schema.Null,
854
845
  ])),
855
846
  user: Schema.optional(Schema.Union([User, Schema.Null])),
856
847
  }).pipe(T.ResponsePath("result")));
857
- export const updateMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
848
+ export const updateMember = /*@__PURE__*/ API.make(() => ({
858
849
  input: UpdateMemberRequest,
859
850
  output: UpdateMemberResponse,
860
851
  errors: [MemberNotFound, InvalidRoute, BadRequest, MethodNotAllowed],
861
852
  }));
862
- export const DeleteMemberRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
853
+ export const DeleteMemberRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
863
854
  memberId: Schema.String.pipe(T.HttpPath("memberId")),
864
855
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
865
856
  }).pipe(T.Http({
866
857
  method: "DELETE",
867
858
  path: "/accounts/{account_id}/members/{memberId}",
868
859
  })));
869
- export const DeleteMemberResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
860
+ export const DeleteMemberResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
870
861
  id: Schema.String,
871
862
  }).pipe(T.ResponsePath("result")));
872
- export const deleteMember = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
863
+ export const deleteMember = /*@__PURE__*/ API.make(() => ({
873
864
  input: DeleteMemberRequest,
874
865
  output: DeleteMemberResponse,
875
866
  errors: [MemberNotFound, InvalidRoute],
876
867
  }));
877
- export const GetRoleRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
868
+ export const GetRoleRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
878
869
  roleId: Schema.String.pipe(T.HttpPath("roleId")),
879
870
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
880
871
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles/{roleId}" })));
881
- export const GetRoleResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
872
+ export const GetRoleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
882
873
  id: Schema.String,
883
874
  description: Schema.String,
884
875
  name: Schema.String,
885
876
  permissions: Permissions,
886
877
  }).pipe(T.ResponsePath("result")));
887
- export const getRole = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
878
+ export const getRole = /*@__PURE__*/ API.make(() => ({
888
879
  input: GetRoleRequest,
889
880
  output: GetRoleResponse,
890
881
  errors: [InvalidRoute],
891
882
  }));
892
- export const ListRolesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
883
+ export const ListRolesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
893
884
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
894
885
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
895
886
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
896
887
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/roles" })));
897
- export const ListRolesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
888
+ export const ListRolesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
898
889
  result: Schema.Union([Schema.Array(Role), Schema.Null]),
899
890
  resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
900
891
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
901
- export const listRoles = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
892
+ export const listRoles = /*@__PURE__*/ API.makePaginated(() => ({
902
893
  input: ListRolesRequest,
903
894
  output: ListRolesResponse,
904
895
  errors: [],
@@ -911,14 +902,14 @@ export const listRoles = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
911
902
  },
912
903
  }));
913
904
  export const GetSubscriptionRequest =
914
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
905
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
915
906
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
916
907
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/subscriptions" })));
917
908
  export const GetSubscriptionResponse =
918
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
909
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
919
910
  result: Schema.Array(Subscription),
920
911
  }));
921
- export const getSubscription = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
912
+ export const getSubscription = /*@__PURE__*/ API.makePaginated(() => ({
922
913
  input: GetSubscriptionRequest,
923
914
  output: GetSubscriptionResponse,
924
915
  errors: [],
@@ -928,7 +919,7 @@ export const getSubscription = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(()
928
919
  },
929
920
  }));
930
921
  export const CreateSubscriptionRequest =
931
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
922
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
932
923
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
933
924
  frequency: Schema.optional(Schema.Union([
934
925
  Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
@@ -937,7 +928,7 @@ export const CreateSubscriptionRequest =
937
928
  ratePlan: Schema.optional(RatePlan),
938
929
  }).pipe(Schema.encodeKeys({ frequency: "frequency", ratePlan: "rate_plan" }), T.Http({ method: "POST", path: "/accounts/{account_id}/subscriptions" })));
939
930
  export const CreateSubscriptionResponse =
940
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
931
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
941
932
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
942
933
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
943
934
  currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -978,13 +969,13 @@ export const CreateSubscriptionResponse =
978
969
  state: "state",
979
970
  }))
980
971
  .pipe(T.ResponsePath("result")));
981
- export const createSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
972
+ export const createSubscription = /*@__PURE__*/ API.make(() => ({
982
973
  input: CreateSubscriptionRequest,
983
974
  output: CreateSubscriptionResponse,
984
975
  errors: [JsonDecodeFailure, InvalidRoute],
985
976
  }));
986
977
  export const UpdateSubscriptionRequest =
987
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
978
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
988
979
  subscriptionIdentifier: Schema.String.pipe(T.HttpPath("subscriptionIdentifier")),
989
980
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
990
981
  frequency: Schema.optional(Schema.Union([
@@ -997,7 +988,7 @@ export const UpdateSubscriptionRequest =
997
988
  path: "/accounts/{account_id}/subscriptions/{subscriptionIdentifier}",
998
989
  })));
999
990
  export const UpdateSubscriptionResponse =
1000
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
991
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1001
992
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1002
993
  currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1003
994
  currentPeriodEnd: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1038,13 +1029,13 @@ export const UpdateSubscriptionResponse =
1038
1029
  state: "state",
1039
1030
  }))
1040
1031
  .pipe(T.ResponsePath("result")));
1041
- export const updateSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1032
+ export const updateSubscription = /*@__PURE__*/ API.make(() => ({
1042
1033
  input: UpdateSubscriptionRequest,
1043
1034
  output: UpdateSubscriptionResponse,
1044
1035
  errors: [JsonDecodeFailure, InvalidRoute, EndpointNotFound],
1045
1036
  }));
1046
1037
  export const DeleteSubscriptionRequest =
1047
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1038
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1048
1039
  subscriptionIdentifier: Schema.String.pipe(T.HttpPath("subscriptionIdentifier")),
1049
1040
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1050
1041
  }).pipe(T.Http({
@@ -1052,21 +1043,21 @@ export const DeleteSubscriptionRequest =
1052
1043
  path: "/accounts/{account_id}/subscriptions/{subscriptionIdentifier}",
1053
1044
  })));
1054
1045
  export const DeleteSubscriptionResponse =
1055
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1046
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1056
1047
  subscriptionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1057
1048
  })
1058
1049
  .pipe(Schema.encodeKeys({ subscriptionId: "subscription_id" }))
1059
1050
  .pipe(T.ResponsePath("result")));
1060
- export const deleteSubscription = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1051
+ export const deleteSubscription = /*@__PURE__*/ API.make(() => ({
1061
1052
  input: DeleteSubscriptionRequest,
1062
1053
  output: DeleteSubscriptionResponse,
1063
1054
  errors: [InvalidRoute, EndpointNotFound],
1064
1055
  }));
1065
- export const GetTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1056
+ export const GetTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1066
1057
  tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
1067
1058
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1068
1059
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/{tokenId}" })));
1069
- export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1060
+ export const GetTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1070
1061
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1071
1062
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
1072
1063
  expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1097,22 +1088,22 @@ export const GetTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() =>
1097
1088
  status: "status",
1098
1089
  }))
1099
1090
  .pipe(T.ResponsePath("result")));
1100
- export const getToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1091
+ export const getToken = /*@__PURE__*/ API.make(() => ({
1101
1092
  input: GetTokenRequest,
1102
1093
  output: GetTokenResponse,
1103
1094
  errors: [InvalidRoute, TokenNotFound],
1104
1095
  }));
1105
- export const ListTokensRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1096
+ export const ListTokensRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1106
1097
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1107
1098
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
1108
1099
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
1109
1100
  direction: Schema.optional(Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String])).pipe(T.HttpQuery("direction")),
1110
1101
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens" })));
1111
- export const ListTokensResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1102
+ export const ListTokensResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1112
1103
  result: Schema.Array(Token),
1113
1104
  resultInfo: Schema.optional(Schema.Union([ListAccountsResponseResultInfo, Schema.Null])),
1114
1105
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
1115
- export const listTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1106
+ export const listTokens = /*@__PURE__*/ API.makePaginated(() => ({
1116
1107
  input: ListTokensRequest,
1117
1108
  output: ListTokensResponse,
1118
1109
  errors: [],
@@ -1124,7 +1115,7 @@ export const listTokens = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1124
1115
  pageSize: "perPage",
1125
1116
  },
1126
1117
  }));
1127
- export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1118
+ export const CreateTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1128
1119
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1129
1120
  name: Schema.String,
1130
1121
  policies: Schema.Array(TokenPolicyParam),
@@ -1138,7 +1129,7 @@ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
1138
1129
  expiresOn: "expires_on",
1139
1130
  notBefore: "not_before",
1140
1131
  }), T.Http({ method: "POST", path: "/accounts/{account_id}/tokens" })));
1141
- export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1132
+ export const CreateTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1142
1133
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1143
1134
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
1144
1135
  expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1171,12 +1162,12 @@ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
1171
1162
  value: "value",
1172
1163
  }))
1173
1164
  .pipe(T.ResponsePath("result")));
1174
- export const createToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1165
+ export const createToken = /*@__PURE__*/ API.make(() => ({
1175
1166
  input: CreateTokenRequest,
1176
1167
  output: CreateTokenResponse,
1177
1168
  errors: [InvalidRoute, InvalidTokenName, PermissionGroupNotFound],
1178
1169
  }));
1179
- export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1170
+ export const UpdateTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1180
1171
  tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
1181
1172
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1182
1173
  name: Schema.String,
@@ -1199,7 +1190,7 @@ export const UpdateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
1199
1190
  method: "PUT",
1200
1191
  path: "/accounts/{account_id}/tokens/{tokenId}",
1201
1192
  })));
1202
- export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1193
+ export const UpdateTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1203
1194
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1204
1195
  condition: Schema.optional(Schema.Union([Condition, Schema.Null])),
1205
1196
  expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1230,7 +1221,7 @@ export const UpdateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
1230
1221
  status: "status",
1231
1222
  }))
1232
1223
  .pipe(T.ResponsePath("result")));
1233
- export const updateToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1224
+ export const updateToken = /*@__PURE__*/ API.make(() => ({
1234
1225
  input: UpdateTokenRequest,
1235
1226
  output: UpdateTokenResponse,
1236
1227
  errors: [
@@ -1240,17 +1231,17 @@ export const updateToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1240
1231
  PermissionGroupNotFound,
1241
1232
  ],
1242
1233
  }));
1243
- export const DeleteTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1234
+ export const DeleteTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1244
1235
  tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
1245
1236
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1246
1237
  }).pipe(T.Http({
1247
1238
  method: "DELETE",
1248
1239
  path: "/accounts/{account_id}/tokens/{tokenId}",
1249
1240
  })));
1250
- export const DeleteTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1241
+ export const DeleteTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1251
1242
  id: Schema.String,
1252
1243
  }).pipe(T.ResponsePath("result")));
1253
- export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1244
+ export const deleteToken = /*@__PURE__*/ API.make(() => ({
1254
1245
  input: DeleteTokenRequest,
1255
1246
  output: DeleteTokenResponse,
1256
1247
  errors: [
@@ -1260,10 +1251,10 @@ export const deleteToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1260
1251
  TokenManagedByCloudflare,
1261
1252
  ],
1262
1253
  }));
1263
- export const VerifyTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1254
+ export const VerifyTokenRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1264
1255
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1265
1256
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/tokens/verify" })));
1266
- export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1257
+ export const VerifyTokenResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1267
1258
  id: Schema.String,
1268
1259
  status: Schema.Union([
1269
1260
  Schema.Literals(["active", "disabled", "expired"]),
@@ -1279,13 +1270,13 @@ export const VerifyTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(()
1279
1270
  notBefore: "not_before",
1280
1271
  }))
1281
1272
  .pipe(T.ResponsePath("result")));
1282
- export const verifyToken = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1273
+ export const verifyToken = /*@__PURE__*/ API.make(() => ({
1283
1274
  input: VerifyTokenRequest,
1284
1275
  output: VerifyTokenResponse,
1285
1276
  errors: [MissingAuthenticationToken, InvalidRoute],
1286
1277
  }));
1287
1278
  export const GetTokenPermissionGroupRequest =
1288
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1279
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1289
1280
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1290
1281
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1291
1282
  scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
@@ -1294,14 +1285,14 @@ export const GetTokenPermissionGroupRequest =
1294
1285
  path: "/accounts/{account_id}/tokens/permission_groups",
1295
1286
  })));
1296
1287
  export const GetTokenPermissionGroupResponse =
1297
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Array(PermissionGroupGetResponseItem).pipe(T.ResponsePath("result")));
1298
- export const getTokenPermissionGroup = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1288
+ /*@__PURE__*/ Schema.suspend(() => Schema.Array(PermissionGroupGetResponseItem).pipe(T.ResponsePath("result")));
1289
+ export const getTokenPermissionGroup = /*@__PURE__*/ API.make(() => ({
1299
1290
  input: GetTokenPermissionGroupRequest,
1300
1291
  output: GetTokenPermissionGroupResponse,
1301
1292
  errors: [InvalidRoute],
1302
1293
  }));
1303
1294
  export const ListTokenPermissionGroupsRequest =
1304
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1295
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1305
1296
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1306
1297
  name: Schema.optional(Schema.String).pipe(T.HttpQuery("name")),
1307
1298
  scope: Schema.optional(Schema.String).pipe(T.HttpQuery("scope")),
@@ -1310,10 +1301,10 @@ export const ListTokenPermissionGroupsRequest =
1310
1301
  path: "/accounts/{account_id}/tokens/permission_groups",
1311
1302
  })));
1312
1303
  export const ListTokenPermissionGroupsResponse =
1313
- /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1304
+ /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1314
1305
  result: Schema.Array(PermissionGroupGetResponseItem),
1315
1306
  }));
1316
- export const listTokenPermissionGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1307
+ export const listTokenPermissionGroups = /*@__PURE__*/ API.makePaginated(() => ({
1317
1308
  input: ListTokenPermissionGroupsRequest,
1318
1309
  output: ListTokenPermissionGroupsResponse,
1319
1310
  errors: [],
@@ -1322,7 +1313,7 @@ export const listTokenPermissionGroups = /*@__PURE__*/ /*#__PURE__*/ API.makePag
1322
1313
  items: "result",
1323
1314
  },
1324
1315
  }));
1325
- export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.Struct({
1316
+ export const PutTokenValueRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1326
1317
  tokenId: Schema.String.pipe(T.HttpPath("tokenId")),
1327
1318
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
1328
1319
  body: Schema.Unknown.pipe(T.HttpBody()),
@@ -1330,8 +1321,8 @@ export const PutTokenValueRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend((
1330
1321
  method: "PUT",
1331
1322
  path: "/accounts/{account_id}/tokens/{tokenId}/value",
1332
1323
  })));
1333
- export const PutTokenValueResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.suspend(() => Schema.String.pipe(T.ResponsePath("result")));
1334
- export const putTokenValue = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1324
+ export const PutTokenValueResponse = /*@__PURE__*/ Schema.suspend(() => Schema.String.pipe(T.ResponsePath("result")));
1325
+ export const putTokenValue = /*@__PURE__*/ API.make(() => ({
1335
1326
  input: PutTokenValueRequest,
1336
1327
  output: PutTokenValueResponse,
1337
1328
  errors: [InvalidRoute, TokenNotFound],