@distilled.cloud/cloudflare 0.2.5-alpha2 → 0.3.0-alpha

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 (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service zones
6
6
  */
7
7
 
8
+ import * as stream from "effect/Stream";
8
9
  import * as Schema from "effect/Schema";
9
10
  import type * as HttpClient from "effect/unstable/http/HttpClient";
10
11
  import * as API from "../client/api.ts";
@@ -36,7 +37,9 @@ export interface TriggerActivationCheckResponse {
36
37
  export const TriggerActivationCheckResponse =
37
38
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
38
39
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
39
- }) as unknown as Schema.Schema<TriggerActivationCheckResponse>;
40
+ }).pipe(
41
+ T.ResponsePath("result"),
42
+ ) as unknown as Schema.Schema<TriggerActivationCheckResponse>;
40
43
 
41
44
  export type TriggerActivationCheckError = DefaultErrors;
42
45
 
@@ -214,24 +217,45 @@ export const PutCustomNameserverRequest =
214
217
  T.Http({ method: "PUT", path: "/zones/{zone_id}/custom_ns" }),
215
218
  ) as unknown as Schema.Schema<PutCustomNameserverRequest>;
216
219
 
217
- export type PutCustomNameserverResponse = string[];
220
+ export interface PutCustomNameserverResponse {
221
+ result: string[];
222
+ }
218
223
 
219
224
  export const PutCustomNameserverResponse =
220
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
221
- Schema.String,
222
- ) as unknown as Schema.Schema<PutCustomNameserverResponse>;
225
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
226
+ result: Schema.Array(Schema.String),
227
+ }) as unknown as Schema.Schema<PutCustomNameserverResponse>;
223
228
 
224
229
  export type PutCustomNameserverError = DefaultErrors;
225
230
 
226
- export const putCustomNameserver: API.OperationMethod<
231
+ export const putCustomNameserver: API.PaginatedOperationMethod<
227
232
  PutCustomNameserverRequest,
228
233
  PutCustomNameserverResponse,
229
234
  PutCustomNameserverError,
230
235
  Credentials | HttpClient.HttpClient
231
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
236
+ > & {
237
+ pages: (
238
+ input: PutCustomNameserverRequest,
239
+ ) => stream.Stream<
240
+ PutCustomNameserverResponse,
241
+ PutCustomNameserverError,
242
+ Credentials | HttpClient.HttpClient
243
+ >;
244
+ items: (
245
+ input: PutCustomNameserverRequest,
246
+ ) => stream.Stream<
247
+ string,
248
+ PutCustomNameserverError,
249
+ Credentials | HttpClient.HttpClient
250
+ >;
251
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
232
252
  input: PutCustomNameserverRequest,
233
253
  output: PutCustomNameserverResponse,
234
254
  errors: [],
255
+ pagination: {
256
+ mode: "single",
257
+ items: "result",
258
+ } as const,
235
259
  }));
236
260
 
237
261
  // =============================================================================
@@ -261,13 +285,15 @@ export const GetHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
261
285
  includeSubdomains: Schema.optional(
262
286
  Schema.Union([Schema.String, Schema.Null]),
263
287
  ),
264
- }).pipe(
265
- Schema.encodeKeys({
266
- hold: "hold",
267
- holdAfter: "hold_after",
268
- includeSubdomains: "include_subdomains",
269
- }),
270
- ) as unknown as Schema.Schema<GetHoldResponse>;
288
+ })
289
+ .pipe(
290
+ Schema.encodeKeys({
291
+ hold: "hold",
292
+ holdAfter: "hold_after",
293
+ includeSubdomains: "include_subdomains",
294
+ }),
295
+ )
296
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetHoldResponse>;
271
297
 
272
298
  export type GetHoldError = DefaultErrors;
273
299
 
@@ -310,13 +336,17 @@ export const CreateHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
310
336
  includeSubdomains: Schema.optional(
311
337
  Schema.Union([Schema.String, Schema.Null]),
312
338
  ),
313
- }).pipe(
314
- Schema.encodeKeys({
315
- hold: "hold",
316
- holdAfter: "hold_after",
317
- includeSubdomains: "include_subdomains",
318
- }),
319
- ) as unknown as Schema.Schema<CreateHoldResponse>;
339
+ })
340
+ .pipe(
341
+ Schema.encodeKeys({
342
+ hold: "hold",
343
+ holdAfter: "hold_after",
344
+ includeSubdomains: "include_subdomains",
345
+ }),
346
+ )
347
+ .pipe(
348
+ T.ResponsePath("result"),
349
+ ) as unknown as Schema.Schema<CreateHoldResponse>;
320
350
 
321
351
  export type CreateHoldError = DefaultErrors;
322
352
 
@@ -364,13 +394,17 @@ export const PatchHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
364
394
  includeSubdomains: Schema.optional(
365
395
  Schema.Union([Schema.String, Schema.Null]),
366
396
  ),
367
- }).pipe(
368
- Schema.encodeKeys({
369
- hold: "hold",
370
- holdAfter: "hold_after",
371
- includeSubdomains: "include_subdomains",
372
- }),
373
- ) as unknown as Schema.Schema<PatchHoldResponse>;
397
+ })
398
+ .pipe(
399
+ Schema.encodeKeys({
400
+ hold: "hold",
401
+ holdAfter: "hold_after",
402
+ includeSubdomains: "include_subdomains",
403
+ }),
404
+ )
405
+ .pipe(
406
+ T.ResponsePath("result"),
407
+ ) as unknown as Schema.Schema<PatchHoldResponse>;
374
408
 
375
409
  export type PatchHoldError = DefaultErrors;
376
410
 
@@ -411,13 +445,17 @@ export const DeleteHoldResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
411
445
  includeSubdomains: Schema.optional(
412
446
  Schema.Union([Schema.String, Schema.Null]),
413
447
  ),
414
- }).pipe(
415
- Schema.encodeKeys({
416
- hold: "hold",
417
- holdAfter: "hold_after",
418
- includeSubdomains: "include_subdomains",
419
- }),
420
- ) as unknown as Schema.Schema<DeleteHoldResponse>;
448
+ })
449
+ .pipe(
450
+ Schema.encodeKeys({
451
+ hold: "hold",
452
+ holdAfter: "hold_after",
453
+ includeSubdomains: "include_subdomains",
454
+ }),
455
+ )
456
+ .pipe(
457
+ T.ResponsePath("result"),
458
+ ) as unknown as Schema.Schema<DeleteHoldResponse>;
421
459
 
422
460
  export type DeleteHoldError = DefaultErrors;
423
461
 
@@ -493,20 +531,22 @@ export const GetPlanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
493
531
  legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
494
532
  name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
495
533
  price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
496
- }).pipe(
497
- Schema.encodeKeys({
498
- id: "id",
499
- canSubscribe: "can_subscribe",
500
- currency: "currency",
501
- externallyManaged: "externally_managed",
502
- frequency: "frequency",
503
- isSubscribed: "is_subscribed",
504
- legacyDiscount: "legacy_discount",
505
- legacyId: "legacy_id",
506
- name: "name",
507
- price: "price",
508
- }),
509
- ) as unknown as Schema.Schema<GetPlanResponse>;
534
+ })
535
+ .pipe(
536
+ Schema.encodeKeys({
537
+ id: "id",
538
+ canSubscribe: "can_subscribe",
539
+ currency: "currency",
540
+ externallyManaged: "externally_managed",
541
+ frequency: "frequency",
542
+ isSubscribed: "is_subscribed",
543
+ legacyDiscount: "legacy_discount",
544
+ legacyId: "legacy_id",
545
+ name: "name",
546
+ price: "price",
547
+ }),
548
+ )
549
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetPlanResponse>;
510
550
 
511
551
  export type GetPlanError = DefaultErrors;
512
552
 
@@ -532,67 +572,103 @@ export const ListPlansRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
532
572
  T.Http({ method: "GET", path: "/zones/{zone_id}/available_plans" }),
533
573
  ) as unknown as Schema.Schema<ListPlansRequest>;
534
574
 
535
- export type ListPlansResponse = {
536
- id?: string | null;
537
- canSubscribe?: boolean | null;
538
- currency?: string | null;
539
- externallyManaged?: boolean | null;
540
- frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
541
- isSubscribed?: boolean | null;
542
- legacyDiscount?: boolean | null;
543
- legacyId?: string | null;
544
- name?: string | null;
545
- price?: number | null;
546
- }[];
575
+ export interface ListPlansResponse {
576
+ result: {
577
+ id?: string | null;
578
+ canSubscribe?: boolean | null;
579
+ currency?: string | null;
580
+ externallyManaged?: boolean | null;
581
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
582
+ isSubscribed?: boolean | null;
583
+ legacyDiscount?: boolean | null;
584
+ legacyId?: string | null;
585
+ name?: string | null;
586
+ price?: number | null;
587
+ }[];
588
+ }
547
589
 
548
- export const ListPlansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
549
- Schema.Struct({
550
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
551
- canSubscribe: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
552
- currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
553
- externallyManaged: Schema.optional(
554
- Schema.Union([Schema.Boolean, Schema.Null]),
555
- ),
556
- frequency: Schema.optional(
557
- Schema.Union([
558
- Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
559
- Schema.Null,
560
- ]),
561
- ),
562
- isSubscribed: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
563
- legacyDiscount: Schema.optional(
564
- Schema.Union([Schema.Boolean, Schema.Null]),
590
+ export const ListPlansResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
591
+ result: Schema.Array(
592
+ Schema.Struct({
593
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
594
+ canSubscribe: Schema.optional(
595
+ Schema.Union([Schema.Boolean, Schema.Null]),
596
+ ),
597
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
598
+ externallyManaged: Schema.optional(
599
+ Schema.Union([Schema.Boolean, Schema.Null]),
600
+ ),
601
+ frequency: Schema.optional(
602
+ Schema.Union([
603
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
604
+ Schema.Null,
605
+ ]),
606
+ ),
607
+ isSubscribed: Schema.optional(
608
+ Schema.Union([Schema.Boolean, Schema.Null]),
609
+ ),
610
+ legacyDiscount: Schema.optional(
611
+ Schema.Union([Schema.Boolean, Schema.Null]),
612
+ ),
613
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
614
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
615
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
616
+ }).pipe(
617
+ Schema.encodeKeys({
618
+ id: "id",
619
+ canSubscribe: "can_subscribe",
620
+ currency: "currency",
621
+ externallyManaged: "externally_managed",
622
+ frequency: "frequency",
623
+ isSubscribed: "is_subscribed",
624
+ legacyDiscount: "legacy_discount",
625
+ legacyId: "legacy_id",
626
+ name: "name",
627
+ price: "price",
628
+ }),
565
629
  ),
566
- legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
567
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
568
- price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
569
- }).pipe(
570
- Schema.encodeKeys({
571
- id: "id",
572
- canSubscribe: "can_subscribe",
573
- currency: "currency",
574
- externallyManaged: "externally_managed",
575
- frequency: "frequency",
576
- isSubscribed: "is_subscribed",
577
- legacyDiscount: "legacy_discount",
578
- legacyId: "legacy_id",
579
- name: "name",
580
- price: "price",
581
- }),
582
630
  ),
583
- ) as unknown as Schema.Schema<ListPlansResponse>;
631
+ }) as unknown as Schema.Schema<ListPlansResponse>;
584
632
 
585
633
  export type ListPlansError = DefaultErrors;
586
634
 
587
- export const listPlans: API.OperationMethod<
635
+ export const listPlans: API.PaginatedOperationMethod<
588
636
  ListPlansRequest,
589
637
  ListPlansResponse,
590
638
  ListPlansError,
591
639
  Credentials | HttpClient.HttpClient
592
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
640
+ > & {
641
+ pages: (
642
+ input: ListPlansRequest,
643
+ ) => stream.Stream<
644
+ ListPlansResponse,
645
+ ListPlansError,
646
+ Credentials | HttpClient.HttpClient
647
+ >;
648
+ items: (input: ListPlansRequest) => stream.Stream<
649
+ {
650
+ id?: string | null;
651
+ canSubscribe?: boolean | null;
652
+ currency?: string | null;
653
+ externallyManaged?: boolean | null;
654
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
655
+ isSubscribed?: boolean | null;
656
+ legacyDiscount?: boolean | null;
657
+ legacyId?: string | null;
658
+ name?: string | null;
659
+ price?: number | null;
660
+ },
661
+ ListPlansError,
662
+ Credentials | HttpClient.HttpClient
663
+ >;
664
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
593
665
  input: ListPlansRequest,
594
666
  output: ListPlansResponse,
595
667
  errors: [],
668
+ pagination: {
669
+ mode: "single",
670
+ items: "result",
671
+ } as const,
596
672
  }));
597
673
 
598
674
  // =============================================================================
@@ -610,84 +686,123 @@ export const GetRatePlanRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
610
686
  T.Http({ method: "GET", path: "/zones/{zone_id}/available_rate_plans" }),
611
687
  ) as unknown as Schema.Schema<GetRatePlanRequest>;
612
688
 
613
- export type GetRatePlanResponse = {
614
- id?: string | null;
615
- components?:
616
- | {
617
- default?: number | null;
618
- name?:
619
- | "zones"
620
- | "page_rules"
621
- | "dedicated_certificates"
622
- | "dedicated_certificates_custom"
623
- | null;
624
- unitPrice?: number | null;
625
- }[]
626
- | null;
627
- currency?: string | null;
628
- duration?: number | null;
629
- frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
630
- name?: string | null;
631
- }[];
689
+ export interface GetRatePlanResponse {
690
+ result: {
691
+ id?: string | null;
692
+ components?:
693
+ | {
694
+ default?: number | null;
695
+ name?:
696
+ | "zones"
697
+ | "page_rules"
698
+ | "dedicated_certificates"
699
+ | "dedicated_certificates_custom"
700
+ | null;
701
+ unitPrice?: number | null;
702
+ }[]
703
+ | null;
704
+ currency?: string | null;
705
+ duration?: number | null;
706
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
707
+ name?: string | null;
708
+ }[];
709
+ }
632
710
 
633
- export const GetRatePlanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
634
- Schema.Struct({
635
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
636
- components: Schema.optional(
637
- Schema.Union([
638
- Schema.Array(
639
- Schema.Struct({
640
- default: Schema.optional(
641
- Schema.Union([Schema.Number, Schema.Null]),
642
- ),
643
- name: Schema.optional(
644
- Schema.Union([
645
- Schema.Literals([
646
- "zones",
647
- "page_rules",
648
- "dedicated_certificates",
649
- "dedicated_certificates_custom",
711
+ export const GetRatePlanResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
712
+ result: Schema.Array(
713
+ Schema.Struct({
714
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
715
+ components: Schema.optional(
716
+ Schema.Union([
717
+ Schema.Array(
718
+ Schema.Struct({
719
+ default: Schema.optional(
720
+ Schema.Union([Schema.Number, Schema.Null]),
721
+ ),
722
+ name: Schema.optional(
723
+ Schema.Union([
724
+ Schema.Literals([
725
+ "zones",
726
+ "page_rules",
727
+ "dedicated_certificates",
728
+ "dedicated_certificates_custom",
729
+ ]),
730
+ Schema.Null,
650
731
  ]),
651
- Schema.Null,
652
- ]),
653
- ),
654
- unitPrice: Schema.optional(
655
- Schema.Union([Schema.Number, Schema.Null]),
732
+ ),
733
+ unitPrice: Schema.optional(
734
+ Schema.Union([Schema.Number, Schema.Null]),
735
+ ),
736
+ }).pipe(
737
+ Schema.encodeKeys({
738
+ default: "default",
739
+ name: "name",
740
+ unitPrice: "unit_price",
741
+ }),
656
742
  ),
657
- }).pipe(
658
- Schema.encodeKeys({
659
- default: "default",
660
- name: "name",
661
- unitPrice: "unit_price",
662
- }),
663
743
  ),
664
- ),
665
- Schema.Null,
666
- ]),
667
- ),
668
- currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
669
- duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
670
- frequency: Schema.optional(
671
- Schema.Union([
672
- Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
673
- Schema.Null,
674
- ]),
675
- ),
676
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
677
- }),
678
- ) as unknown as Schema.Schema<GetRatePlanResponse>;
744
+ Schema.Null,
745
+ ]),
746
+ ),
747
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
748
+ duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
749
+ frequency: Schema.optional(
750
+ Schema.Union([
751
+ Schema.Literals(["weekly", "monthly", "quarterly", "yearly"]),
752
+ Schema.Null,
753
+ ]),
754
+ ),
755
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
756
+ }),
757
+ ),
758
+ }) as unknown as Schema.Schema<GetRatePlanResponse>;
679
759
 
680
760
  export type GetRatePlanError = DefaultErrors;
681
761
 
682
- export const getRatePlan: API.OperationMethod<
762
+ export const getRatePlan: API.PaginatedOperationMethod<
683
763
  GetRatePlanRequest,
684
764
  GetRatePlanResponse,
685
765
  GetRatePlanError,
686
766
  Credentials | HttpClient.HttpClient
687
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
767
+ > & {
768
+ pages: (
769
+ input: GetRatePlanRequest,
770
+ ) => stream.Stream<
771
+ GetRatePlanResponse,
772
+ GetRatePlanError,
773
+ Credentials | HttpClient.HttpClient
774
+ >;
775
+ items: (input: GetRatePlanRequest) => stream.Stream<
776
+ {
777
+ id?: string | null;
778
+ components?:
779
+ | {
780
+ default?: number | null;
781
+ name?:
782
+ | "zones"
783
+ | "page_rules"
784
+ | "dedicated_certificates"
785
+ | "dedicated_certificates_custom"
786
+ | null;
787
+ unitPrice?: number | null;
788
+ }[]
789
+ | null;
790
+ currency?: string | null;
791
+ duration?: number | null;
792
+ frequency?: "weekly" | "monthly" | "quarterly" | "yearly" | null;
793
+ name?: string | null;
794
+ },
795
+ GetRatePlanError,
796
+ Credentials | HttpClient.HttpClient
797
+ >;
798
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
688
799
  input: GetRatePlanRequest,
689
800
  output: GetRatePlanResponse,
690
801
  errors: [],
802
+ pagination: {
803
+ mode: "single",
804
+ items: "result",
805
+ } as const,
691
806
  }));
692
807
 
693
808
  // =============================================================================
@@ -2107,7 +2222,9 @@ export const GetSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
2107
2222
  modifiedOn: "modified_on",
2108
2223
  }),
2109
2224
  ),
2110
- ]) as unknown as Schema.Schema<GetSettingResponse>;
2225
+ ]).pipe(
2226
+ T.ResponsePath("result"),
2227
+ ) as unknown as Schema.Schema<GetSettingResponse>;
2111
2228
 
2112
2229
  export type GetSettingError = DefaultErrors;
2113
2230
 
@@ -3538,7 +3655,9 @@ export const PatchSettingResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union([
3538
3655
  modifiedOn: "modified_on",
3539
3656
  }),
3540
3657
  ),
3541
- ]) as unknown as Schema.Schema<PatchSettingResponse>;
3658
+ ]).pipe(
3659
+ T.ResponsePath("result"),
3660
+ ) as unknown as Schema.Schema<PatchSettingResponse>;
3542
3661
 
3543
3662
  export type PatchSettingError = DefaultErrors;
3544
3663
 
@@ -3641,18 +3760,22 @@ export const GetSubscriptionResponse =
3641
3760
  Schema.Null,
3642
3761
  ]),
3643
3762
  ),
3644
- }).pipe(
3645
- Schema.encodeKeys({
3646
- id: "id",
3647
- currency: "currency",
3648
- currentPeriodEnd: "current_period_end",
3649
- currentPeriodStart: "current_period_start",
3650
- frequency: "frequency",
3651
- price: "price",
3652
- ratePlan: "rate_plan",
3653
- state: "state",
3654
- }),
3655
- ) as unknown as Schema.Schema<GetSubscriptionResponse>;
3763
+ })
3764
+ .pipe(
3765
+ Schema.encodeKeys({
3766
+ id: "id",
3767
+ currency: "currency",
3768
+ currentPeriodEnd: "current_period_end",
3769
+ currentPeriodStart: "current_period_start",
3770
+ frequency: "frequency",
3771
+ price: "price",
3772
+ ratePlan: "rate_plan",
3773
+ state: "state",
3774
+ }),
3775
+ )
3776
+ .pipe(
3777
+ T.ResponsePath("result"),
3778
+ ) as unknown as Schema.Schema<GetSubscriptionResponse>;
3656
3779
 
3657
3780
  export type GetSubscriptionError = DefaultErrors;
3658
3781
 
@@ -3759,18 +3882,22 @@ export const CreateSubscriptionResponse =
3759
3882
  Schema.Null,
3760
3883
  ]),
3761
3884
  ),
3762
- }).pipe(
3763
- Schema.encodeKeys({
3764
- id: "id",
3765
- currency: "currency",
3766
- currentPeriodEnd: "current_period_end",
3767
- currentPeriodStart: "current_period_start",
3768
- frequency: "frequency",
3769
- price: "price",
3770
- ratePlan: "rate_plan",
3771
- state: "state",
3772
- }),
3773
- ) as unknown as Schema.Schema<CreateSubscriptionResponse>;
3885
+ })
3886
+ .pipe(
3887
+ Schema.encodeKeys({
3888
+ id: "id",
3889
+ currency: "currency",
3890
+ currentPeriodEnd: "current_period_end",
3891
+ currentPeriodStart: "current_period_start",
3892
+ frequency: "frequency",
3893
+ price: "price",
3894
+ ratePlan: "rate_plan",
3895
+ state: "state",
3896
+ }),
3897
+ )
3898
+ .pipe(
3899
+ T.ResponsePath("result"),
3900
+ ) as unknown as Schema.Schema<CreateSubscriptionResponse>;
3774
3901
 
3775
3902
  export type CreateSubscriptionError = DefaultErrors;
3776
3903
 
@@ -3877,18 +4004,22 @@ export const UpdateSubscriptionResponse =
3877
4004
  Schema.Null,
3878
4005
  ]),
3879
4006
  ),
3880
- }).pipe(
3881
- Schema.encodeKeys({
3882
- id: "id",
3883
- currency: "currency",
3884
- currentPeriodEnd: "current_period_end",
3885
- currentPeriodStart: "current_period_start",
3886
- frequency: "frequency",
3887
- price: "price",
3888
- ratePlan: "rate_plan",
3889
- state: "state",
3890
- }),
3891
- ) as unknown as Schema.Schema<UpdateSubscriptionResponse>;
4007
+ })
4008
+ .pipe(
4009
+ Schema.encodeKeys({
4010
+ id: "id",
4011
+ currency: "currency",
4012
+ currentPeriodEnd: "current_period_end",
4013
+ currentPeriodStart: "current_period_start",
4014
+ frequency: "frequency",
4015
+ price: "price",
4016
+ ratePlan: "rate_plan",
4017
+ state: "state",
4018
+ }),
4019
+ )
4020
+ .pipe(
4021
+ T.ResponsePath("result"),
4022
+ ) as unknown as Schema.Schema<UpdateSubscriptionResponse>;
3892
4023
 
3893
4024
  export type UpdateSubscriptionError = DefaultErrors;
3894
4025
 
@@ -4096,33 +4227,35 @@ export const GetZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4096
4227
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4097
4228
  ),
4098
4229
  verificationKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4099
- }).pipe(
4100
- Schema.encodeKeys({
4101
- id: "id",
4102
- account: "account",
4103
- activatedOn: "activated_on",
4104
- createdOn: "created_on",
4105
- developmentMode: "development_mode",
4106
- meta: "meta",
4107
- modifiedOn: "modified_on",
4108
- name: "name",
4109
- nameServers: "name_servers",
4110
- originalDnshost: "original_dnshost",
4111
- originalNameServers: "original_name_servers",
4112
- originalRegistrar: "original_registrar",
4113
- owner: "owner",
4114
- plan: "plan",
4115
- cnameSuffix: "cname_suffix",
4116
- paused: "paused",
4117
- permissions: "permissions",
4118
- status: "status",
4119
- tenant: "tenant",
4120
- tenantUnit: "tenant_unit",
4121
- type: "type",
4122
- vanityNameServers: "vanity_name_servers",
4123
- verificationKey: "verification_key",
4124
- }),
4125
- ) as unknown as Schema.Schema<GetZoneResponse>;
4230
+ })
4231
+ .pipe(
4232
+ Schema.encodeKeys({
4233
+ id: "id",
4234
+ account: "account",
4235
+ activatedOn: "activated_on",
4236
+ createdOn: "created_on",
4237
+ developmentMode: "development_mode",
4238
+ meta: "meta",
4239
+ modifiedOn: "modified_on",
4240
+ name: "name",
4241
+ nameServers: "name_servers",
4242
+ originalDnshost: "original_dnshost",
4243
+ originalNameServers: "original_name_servers",
4244
+ originalRegistrar: "original_registrar",
4245
+ owner: "owner",
4246
+ plan: "plan",
4247
+ cnameSuffix: "cname_suffix",
4248
+ paused: "paused",
4249
+ permissions: "permissions",
4250
+ status: "status",
4251
+ tenant: "tenant",
4252
+ tenantUnit: "tenant_unit",
4253
+ type: "type",
4254
+ vanityNameServers: "vanity_name_servers",
4255
+ verificationKey: "verification_key",
4256
+ }),
4257
+ )
4258
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetZoneResponse>;
4126
4259
 
4127
4260
  export type GetZoneError = DefaultErrors;
4128
4261
 
@@ -4145,215 +4278,303 @@ export const ListZonesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
4145
4278
  T.Http({ method: "GET", path: "/zones" }),
4146
4279
  ) as unknown as Schema.Schema<ListZonesRequest>;
4147
4280
 
4148
- export type ListZonesResponse = {
4149
- id: string;
4150
- account: { id?: string | null; name?: string | null };
4151
- activatedOn: string | null;
4152
- createdOn: string;
4153
- developmentMode: number;
4154
- meta: {
4155
- cdnOnly?: boolean | null;
4156
- customCertificateQuota?: number | null;
4157
- dnsOnly?: boolean | null;
4158
- foundationDns?: boolean | null;
4159
- pageRuleQuota?: number | null;
4160
- phishingDetected?: boolean | null;
4161
- step?: number | null;
4162
- };
4163
- modifiedOn: string;
4164
- name: string;
4165
- nameServers: string[];
4166
- originalDnshost: string | null;
4167
- originalNameServers: string[] | null;
4168
- originalRegistrar: string | null;
4169
- owner: { id?: string | null; name?: string | null; type?: string | null };
4170
- plan: {
4171
- id?: string | null;
4172
- canSubscribe?: boolean | null;
4173
- currency?: string | null;
4174
- externallyManaged?: boolean | null;
4175
- frequency?: string | null;
4176
- isSubscribed?: boolean | null;
4177
- legacyDiscount?: boolean | null;
4178
- legacyId?: string | null;
4179
- name?: string | null;
4180
- price?: number | null;
4281
+ export interface ListZonesResponse {
4282
+ result: {
4283
+ id: string;
4284
+ account: { id?: string | null; name?: string | null };
4285
+ activatedOn: string | null;
4286
+ createdOn: string;
4287
+ developmentMode: number;
4288
+ meta: {
4289
+ cdnOnly?: boolean | null;
4290
+ customCertificateQuota?: number | null;
4291
+ dnsOnly?: boolean | null;
4292
+ foundationDns?: boolean | null;
4293
+ pageRuleQuota?: number | null;
4294
+ phishingDetected?: boolean | null;
4295
+ step?: number | null;
4296
+ };
4297
+ modifiedOn: string;
4298
+ name: string;
4299
+ nameServers: string[];
4300
+ originalDnshost: string | null;
4301
+ originalNameServers: string[] | null;
4302
+ originalRegistrar: string | null;
4303
+ owner: { id?: string | null; name?: string | null; type?: string | null };
4304
+ plan: {
4305
+ id?: string | null;
4306
+ canSubscribe?: boolean | null;
4307
+ currency?: string | null;
4308
+ externallyManaged?: boolean | null;
4309
+ frequency?: string | null;
4310
+ isSubscribed?: boolean | null;
4311
+ legacyDiscount?: boolean | null;
4312
+ legacyId?: string | null;
4313
+ name?: string | null;
4314
+ price?: number | null;
4315
+ };
4316
+ cnameSuffix?: string | null;
4317
+ paused?: boolean | null;
4318
+ permissions?: string[] | null;
4319
+ status?: "initializing" | "pending" | "active" | "moved" | null;
4320
+ tenant?: { id?: string | null; name?: string | null } | null;
4321
+ tenantUnit?: { id?: string | null } | null;
4322
+ type?: "full" | "partial" | "secondary" | "internal" | null;
4323
+ vanityNameServers?: string[] | null;
4324
+ verificationKey?: string | null;
4325
+ }[];
4326
+ resultInfo: {
4327
+ count?: number | null;
4328
+ page?: number | null;
4329
+ perPage?: number | null;
4330
+ totalCount?: number | null;
4181
4331
  };
4182
- cnameSuffix?: string | null;
4183
- paused?: boolean | null;
4184
- permissions?: string[] | null;
4185
- status?: "initializing" | "pending" | "active" | "moved" | null;
4186
- tenant?: { id?: string | null; name?: string | null } | null;
4187
- tenantUnit?: { id?: string | null } | null;
4188
- type?: "full" | "partial" | "secondary" | "internal" | null;
4189
- vanityNameServers?: string[] | null;
4190
- verificationKey?: string | null;
4191
- }[];
4332
+ }
4192
4333
 
4193
- export const ListZonesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4194
- Schema.Struct({
4195
- id: Schema.String,
4196
- account: Schema.Struct({
4197
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4198
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4199
- }),
4200
- activatedOn: Schema.Union([Schema.String, Schema.Null]),
4201
- createdOn: Schema.String,
4202
- developmentMode: Schema.Number,
4203
- meta: Schema.Struct({
4204
- cdnOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4205
- customCertificateQuota: Schema.optional(
4206
- Schema.Union([Schema.Number, Schema.Null]),
4334
+ export const ListZonesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4335
+ result: Schema.Array(
4336
+ Schema.Struct({
4337
+ id: Schema.String,
4338
+ account: Schema.Struct({
4339
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4340
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4341
+ }),
4342
+ activatedOn: Schema.Union([Schema.String, Schema.Null]),
4343
+ createdOn: Schema.String,
4344
+ developmentMode: Schema.Number,
4345
+ meta: Schema.Struct({
4346
+ cdnOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4347
+ customCertificateQuota: Schema.optional(
4348
+ Schema.Union([Schema.Number, Schema.Null]),
4349
+ ),
4350
+ dnsOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4351
+ foundationDns: Schema.optional(
4352
+ Schema.Union([Schema.Boolean, Schema.Null]),
4353
+ ),
4354
+ pageRuleQuota: Schema.optional(
4355
+ Schema.Union([Schema.Number, Schema.Null]),
4356
+ ),
4357
+ phishingDetected: Schema.optional(
4358
+ Schema.Union([Schema.Boolean, Schema.Null]),
4359
+ ),
4360
+ step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4361
+ }).pipe(
4362
+ Schema.encodeKeys({
4363
+ cdnOnly: "cdn_only",
4364
+ customCertificateQuota: "custom_certificate_quota",
4365
+ dnsOnly: "dns_only",
4366
+ foundationDns: "foundation_dns",
4367
+ pageRuleQuota: "page_rule_quota",
4368
+ phishingDetected: "phishing_detected",
4369
+ step: "step",
4370
+ }),
4207
4371
  ),
4208
- dnsOnly: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4209
- foundationDns: Schema.optional(
4210
- Schema.Union([Schema.Boolean, Schema.Null]),
4372
+ modifiedOn: Schema.String,
4373
+ name: Schema.String,
4374
+ nameServers: Schema.Array(Schema.String),
4375
+ originalDnshost: Schema.Union([Schema.String, Schema.Null]),
4376
+ originalNameServers: Schema.Union([
4377
+ Schema.Array(Schema.String),
4378
+ Schema.Null,
4379
+ ]),
4380
+ originalRegistrar: Schema.Union([Schema.String, Schema.Null]),
4381
+ owner: Schema.Struct({
4382
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4383
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4384
+ type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4385
+ }),
4386
+ plan: Schema.Struct({
4387
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4388
+ canSubscribe: Schema.optional(
4389
+ Schema.Union([Schema.Boolean, Schema.Null]),
4390
+ ),
4391
+ currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4392
+ externallyManaged: Schema.optional(
4393
+ Schema.Union([Schema.Boolean, Schema.Null]),
4394
+ ),
4395
+ frequency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4396
+ isSubscribed: Schema.optional(
4397
+ Schema.Union([Schema.Boolean, Schema.Null]),
4398
+ ),
4399
+ legacyDiscount: Schema.optional(
4400
+ Schema.Union([Schema.Boolean, Schema.Null]),
4401
+ ),
4402
+ legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4403
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4404
+ price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4405
+ }).pipe(
4406
+ Schema.encodeKeys({
4407
+ id: "id",
4408
+ canSubscribe: "can_subscribe",
4409
+ currency: "currency",
4410
+ externallyManaged: "externally_managed",
4411
+ frequency: "frequency",
4412
+ isSubscribed: "is_subscribed",
4413
+ legacyDiscount: "legacy_discount",
4414
+ legacyId: "legacy_id",
4415
+ name: "name",
4416
+ price: "price",
4417
+ }),
4211
4418
  ),
4212
- pageRuleQuota: Schema.optional(
4213
- Schema.Union([Schema.Number, Schema.Null]),
4419
+ cnameSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4420
+ paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4421
+ permissions: Schema.optional(
4422
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4214
4423
  ),
4215
- phishingDetected: Schema.optional(
4216
- Schema.Union([Schema.Boolean, Schema.Null]),
4424
+ status: Schema.optional(
4425
+ Schema.Union([
4426
+ Schema.Literals(["initializing", "pending", "active", "moved"]),
4427
+ Schema.Null,
4428
+ ]),
4217
4429
  ),
4218
- step: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4219
- }).pipe(
4220
- Schema.encodeKeys({
4221
- cdnOnly: "cdn_only",
4222
- customCertificateQuota: "custom_certificate_quota",
4223
- dnsOnly: "dns_only",
4224
- foundationDns: "foundation_dns",
4225
- pageRuleQuota: "page_rule_quota",
4226
- phishingDetected: "phishing_detected",
4227
- step: "step",
4228
- }),
4229
- ),
4230
- modifiedOn: Schema.String,
4231
- name: Schema.String,
4232
- nameServers: Schema.Array(Schema.String),
4233
- originalDnshost: Schema.Union([Schema.String, Schema.Null]),
4234
- originalNameServers: Schema.Union([
4235
- Schema.Array(Schema.String),
4236
- Schema.Null,
4237
- ]),
4238
- originalRegistrar: Schema.Union([Schema.String, Schema.Null]),
4239
- owner: Schema.Struct({
4240
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4241
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4242
- type: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4243
- }),
4244
- plan: Schema.Struct({
4245
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4246
- canSubscribe: Schema.optional(
4247
- Schema.Union([Schema.Boolean, Schema.Null]),
4430
+ tenant: Schema.optional(
4431
+ Schema.Union([
4432
+ Schema.Struct({
4433
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4434
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4435
+ }),
4436
+ Schema.Null,
4437
+ ]),
4248
4438
  ),
4249
- currency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4250
- externallyManaged: Schema.optional(
4251
- Schema.Union([Schema.Boolean, Schema.Null]),
4439
+ tenantUnit: Schema.optional(
4440
+ Schema.Union([
4441
+ Schema.Struct({
4442
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4443
+ }),
4444
+ Schema.Null,
4445
+ ]),
4252
4446
  ),
4253
- frequency: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4254
- isSubscribed: Schema.optional(
4255
- Schema.Union([Schema.Boolean, Schema.Null]),
4447
+ type: Schema.optional(
4448
+ Schema.Union([
4449
+ Schema.Literals(["full", "partial", "secondary", "internal"]),
4450
+ Schema.Null,
4451
+ ]),
4256
4452
  ),
4257
- legacyDiscount: Schema.optional(
4258
- Schema.Union([Schema.Boolean, Schema.Null]),
4453
+ vanityNameServers: Schema.optional(
4454
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4455
+ ),
4456
+ verificationKey: Schema.optional(
4457
+ Schema.Union([Schema.String, Schema.Null]),
4259
4458
  ),
4260
- legacyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4261
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4262
- price: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4263
4459
  }).pipe(
4264
4460
  Schema.encodeKeys({
4265
4461
  id: "id",
4266
- canSubscribe: "can_subscribe",
4267
- currency: "currency",
4268
- externallyManaged: "externally_managed",
4269
- frequency: "frequency",
4270
- isSubscribed: "is_subscribed",
4271
- legacyDiscount: "legacy_discount",
4272
- legacyId: "legacy_id",
4462
+ account: "account",
4463
+ activatedOn: "activated_on",
4464
+ createdOn: "created_on",
4465
+ developmentMode: "development_mode",
4466
+ meta: "meta",
4467
+ modifiedOn: "modified_on",
4273
4468
  name: "name",
4274
- price: "price",
4469
+ nameServers: "name_servers",
4470
+ originalDnshost: "original_dnshost",
4471
+ originalNameServers: "original_name_servers",
4472
+ originalRegistrar: "original_registrar",
4473
+ owner: "owner",
4474
+ plan: "plan",
4475
+ cnameSuffix: "cname_suffix",
4476
+ paused: "paused",
4477
+ permissions: "permissions",
4478
+ status: "status",
4479
+ tenant: "tenant",
4480
+ tenantUnit: "tenant_unit",
4481
+ type: "type",
4482
+ vanityNameServers: "vanity_name_servers",
4483
+ verificationKey: "verification_key",
4275
4484
  }),
4276
4485
  ),
4277
- cnameSuffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4278
- paused: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4279
- permissions: Schema.optional(
4280
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4281
- ),
4282
- status: Schema.optional(
4283
- Schema.Union([
4284
- Schema.Literals(["initializing", "pending", "active", "moved"]),
4285
- Schema.Null,
4286
- ]),
4287
- ),
4288
- tenant: Schema.optional(
4289
- Schema.Union([
4290
- Schema.Struct({
4291
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4292
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4293
- }),
4294
- Schema.Null,
4295
- ]),
4296
- ),
4297
- tenantUnit: Schema.optional(
4298
- Schema.Union([
4299
- Schema.Struct({
4300
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4301
- }),
4302
- Schema.Null,
4303
- ]),
4304
- ),
4305
- type: Schema.optional(
4306
- Schema.Union([
4307
- Schema.Literals(["full", "partial", "secondary", "internal"]),
4308
- Schema.Null,
4309
- ]),
4310
- ),
4311
- vanityNameServers: Schema.optional(
4312
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4313
- ),
4314
- verificationKey: Schema.optional(
4315
- Schema.Union([Schema.String, Schema.Null]),
4316
- ),
4486
+ ),
4487
+ resultInfo: Schema.Struct({
4488
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4489
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4490
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4491
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4317
4492
  }).pipe(
4318
4493
  Schema.encodeKeys({
4319
- id: "id",
4320
- account: "account",
4321
- activatedOn: "activated_on",
4322
- createdOn: "created_on",
4323
- developmentMode: "development_mode",
4324
- meta: "meta",
4325
- modifiedOn: "modified_on",
4326
- name: "name",
4327
- nameServers: "name_servers",
4328
- originalDnshost: "original_dnshost",
4329
- originalNameServers: "original_name_servers",
4330
- originalRegistrar: "original_registrar",
4331
- owner: "owner",
4332
- plan: "plan",
4333
- cnameSuffix: "cname_suffix",
4334
- paused: "paused",
4335
- permissions: "permissions",
4336
- status: "status",
4337
- tenant: "tenant",
4338
- tenantUnit: "tenant_unit",
4339
- type: "type",
4340
- vanityNameServers: "vanity_name_servers",
4341
- verificationKey: "verification_key",
4494
+ count: "count",
4495
+ page: "page",
4496
+ perPage: "per_page",
4497
+ totalCount: "total_count",
4342
4498
  }),
4343
4499
  ),
4500
+ }).pipe(
4501
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4344
4502
  ) as unknown as Schema.Schema<ListZonesResponse>;
4345
4503
 
4346
4504
  export type ListZonesError = DefaultErrors;
4347
4505
 
4348
- export const listZones: API.OperationMethod<
4506
+ export const listZones: API.PaginatedOperationMethod<
4349
4507
  ListZonesRequest,
4350
4508
  ListZonesResponse,
4351
4509
  ListZonesError,
4352
4510
  Credentials | HttpClient.HttpClient
4353
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4511
+ > & {
4512
+ pages: (
4513
+ input: ListZonesRequest,
4514
+ ) => stream.Stream<
4515
+ ListZonesResponse,
4516
+ ListZonesError,
4517
+ Credentials | HttpClient.HttpClient
4518
+ >;
4519
+ items: (input: ListZonesRequest) => stream.Stream<
4520
+ {
4521
+ id: string;
4522
+ account: { id?: string | null; name?: string | null };
4523
+ activatedOn: string | null;
4524
+ createdOn: string;
4525
+ developmentMode: number;
4526
+ meta: {
4527
+ cdnOnly?: boolean | null;
4528
+ customCertificateQuota?: number | null;
4529
+ dnsOnly?: boolean | null;
4530
+ foundationDns?: boolean | null;
4531
+ pageRuleQuota?: number | null;
4532
+ phishingDetected?: boolean | null;
4533
+ step?: number | null;
4534
+ };
4535
+ modifiedOn: string;
4536
+ name: string;
4537
+ nameServers: string[];
4538
+ originalDnshost: string | null;
4539
+ originalNameServers: string[] | null;
4540
+ originalRegistrar: string | null;
4541
+ owner: { id?: string | null; name?: string | null; type?: string | null };
4542
+ plan: {
4543
+ id?: string | null;
4544
+ canSubscribe?: boolean | null;
4545
+ currency?: string | null;
4546
+ externallyManaged?: boolean | null;
4547
+ frequency?: string | null;
4548
+ isSubscribed?: boolean | null;
4549
+ legacyDiscount?: boolean | null;
4550
+ legacyId?: string | null;
4551
+ name?: string | null;
4552
+ price?: number | null;
4553
+ };
4554
+ cnameSuffix?: string | null;
4555
+ paused?: boolean | null;
4556
+ permissions?: string[] | null;
4557
+ status?: "initializing" | "pending" | "active" | "moved" | null;
4558
+ tenant?: { id?: string | null; name?: string | null } | null;
4559
+ tenantUnit?: { id?: string | null } | null;
4560
+ type?: "full" | "partial" | "secondary" | "internal" | null;
4561
+ vanityNameServers?: string[] | null;
4562
+ verificationKey?: string | null;
4563
+ },
4564
+ ListZonesError,
4565
+ Credentials | HttpClient.HttpClient
4566
+ >;
4567
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4354
4568
  input: ListZonesRequest,
4355
4569
  output: ListZonesResponse,
4356
4570
  errors: [],
4571
+ pagination: {
4572
+ mode: "page",
4573
+ inputToken: "page",
4574
+ outputToken: "resultInfo.page",
4575
+ items: "result",
4576
+ pageSize: "perPage",
4577
+ } as const,
4357
4578
  }));
4358
4579
 
4359
4580
  export interface CreateZoneRequest {
@@ -4554,33 +4775,37 @@ export const CreateZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4554
4775
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4555
4776
  ),
4556
4777
  verificationKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4557
- }).pipe(
4558
- Schema.encodeKeys({
4559
- id: "id",
4560
- account: "account",
4561
- activatedOn: "activated_on",
4562
- createdOn: "created_on",
4563
- developmentMode: "development_mode",
4564
- meta: "meta",
4565
- modifiedOn: "modified_on",
4566
- name: "name",
4567
- nameServers: "name_servers",
4568
- originalDnshost: "original_dnshost",
4569
- originalNameServers: "original_name_servers",
4570
- originalRegistrar: "original_registrar",
4571
- owner: "owner",
4572
- plan: "plan",
4573
- cnameSuffix: "cname_suffix",
4574
- paused: "paused",
4575
- permissions: "permissions",
4576
- status: "status",
4577
- tenant: "tenant",
4578
- tenantUnit: "tenant_unit",
4579
- type: "type",
4580
- vanityNameServers: "vanity_name_servers",
4581
- verificationKey: "verification_key",
4582
- }),
4583
- ) as unknown as Schema.Schema<CreateZoneResponse>;
4778
+ })
4779
+ .pipe(
4780
+ Schema.encodeKeys({
4781
+ id: "id",
4782
+ account: "account",
4783
+ activatedOn: "activated_on",
4784
+ createdOn: "created_on",
4785
+ developmentMode: "development_mode",
4786
+ meta: "meta",
4787
+ modifiedOn: "modified_on",
4788
+ name: "name",
4789
+ nameServers: "name_servers",
4790
+ originalDnshost: "original_dnshost",
4791
+ originalNameServers: "original_name_servers",
4792
+ originalRegistrar: "original_registrar",
4793
+ owner: "owner",
4794
+ plan: "plan",
4795
+ cnameSuffix: "cname_suffix",
4796
+ paused: "paused",
4797
+ permissions: "permissions",
4798
+ status: "status",
4799
+ tenant: "tenant",
4800
+ tenantUnit: "tenant_unit",
4801
+ type: "type",
4802
+ vanityNameServers: "vanity_name_servers",
4803
+ verificationKey: "verification_key",
4804
+ }),
4805
+ )
4806
+ .pipe(
4807
+ T.ResponsePath("result"),
4808
+ ) as unknown as Schema.Schema<CreateZoneResponse>;
4584
4809
 
4585
4810
  export type CreateZoneError = DefaultErrors;
4586
4811
 
@@ -4800,33 +5025,37 @@ export const PatchZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4800
5025
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4801
5026
  ),
4802
5027
  verificationKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4803
- }).pipe(
4804
- Schema.encodeKeys({
4805
- id: "id",
4806
- account: "account",
4807
- activatedOn: "activated_on",
4808
- createdOn: "created_on",
4809
- developmentMode: "development_mode",
4810
- meta: "meta",
4811
- modifiedOn: "modified_on",
4812
- name: "name",
4813
- nameServers: "name_servers",
4814
- originalDnshost: "original_dnshost",
4815
- originalNameServers: "original_name_servers",
4816
- originalRegistrar: "original_registrar",
4817
- owner: "owner",
4818
- plan: "plan",
4819
- cnameSuffix: "cname_suffix",
4820
- paused: "paused",
4821
- permissions: "permissions",
4822
- status: "status",
4823
- tenant: "tenant",
4824
- tenantUnit: "tenant_unit",
4825
- type: "type",
4826
- vanityNameServers: "vanity_name_servers",
4827
- verificationKey: "verification_key",
4828
- }),
4829
- ) as unknown as Schema.Schema<PatchZoneResponse>;
5028
+ })
5029
+ .pipe(
5030
+ Schema.encodeKeys({
5031
+ id: "id",
5032
+ account: "account",
5033
+ activatedOn: "activated_on",
5034
+ createdOn: "created_on",
5035
+ developmentMode: "development_mode",
5036
+ meta: "meta",
5037
+ modifiedOn: "modified_on",
5038
+ name: "name",
5039
+ nameServers: "name_servers",
5040
+ originalDnshost: "original_dnshost",
5041
+ originalNameServers: "original_name_servers",
5042
+ originalRegistrar: "original_registrar",
5043
+ owner: "owner",
5044
+ plan: "plan",
5045
+ cnameSuffix: "cname_suffix",
5046
+ paused: "paused",
5047
+ permissions: "permissions",
5048
+ status: "status",
5049
+ tenant: "tenant",
5050
+ tenantUnit: "tenant_unit",
5051
+ type: "type",
5052
+ vanityNameServers: "vanity_name_servers",
5053
+ verificationKey: "verification_key",
5054
+ }),
5055
+ )
5056
+ .pipe(
5057
+ T.ResponsePath("result"),
5058
+ ) as unknown as Schema.Schema<PatchZoneResponse>;
4830
5059
 
4831
5060
  export type PatchZoneError = DefaultErrors;
4832
5061
 
@@ -4859,7 +5088,9 @@ export interface DeleteZoneResponse {
4859
5088
 
4860
5089
  export const DeleteZoneResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4861
5090
  id: Schema.String,
4862
- }) as unknown as Schema.Schema<DeleteZoneResponse>;
5091
+ }).pipe(
5092
+ T.ResponsePath("result"),
5093
+ ) as unknown as Schema.Schema<DeleteZoneResponse>;
4863
5094
 
4864
5095
  export type DeleteZoneError = DefaultErrors;
4865
5096