@distilled.cloud/cloudflare 0.2.6 → 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 custom-hostnames
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";
@@ -379,21 +380,25 @@ export const PutCertificatePackCertificateResponse =
379
380
  verificationErrors: Schema.optional(
380
381
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
381
382
  ),
382
- }).pipe(
383
- Schema.encodeKeys({
384
- id: "id",
385
- hostname: "hostname",
386
- ssl: "ssl",
387
- createdAt: "created_at",
388
- customMetadata: "custom_metadata",
389
- customOriginServer: "custom_origin_server",
390
- customOriginSni: "custom_origin_sni",
391
- ownershipVerification: "ownership_verification",
392
- ownershipVerificationHttp: "ownership_verification_http",
393
- status: "status",
394
- verificationErrors: "verification_errors",
395
- }),
396
- ) as unknown as Schema.Schema<PutCertificatePackCertificateResponse>;
383
+ })
384
+ .pipe(
385
+ Schema.encodeKeys({
386
+ id: "id",
387
+ hostname: "hostname",
388
+ ssl: "ssl",
389
+ createdAt: "created_at",
390
+ customMetadata: "custom_metadata",
391
+ customOriginServer: "custom_origin_server",
392
+ customOriginSni: "custom_origin_sni",
393
+ ownershipVerification: "ownership_verification",
394
+ ownershipVerificationHttp: "ownership_verification_http",
395
+ status: "status",
396
+ verificationErrors: "verification_errors",
397
+ }),
398
+ )
399
+ .pipe(
400
+ T.ResponsePath("result"),
401
+ ) as unknown as Schema.Schema<PutCertificatePackCertificateResponse>;
397
402
 
398
403
  export type PutCertificatePackCertificateError = DefaultErrors;
399
404
 
@@ -805,21 +810,25 @@ export const GetCustomHostnameResponse =
805
810
  verificationErrors: Schema.optional(
806
811
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
807
812
  ),
808
- }).pipe(
809
- Schema.encodeKeys({
810
- id: "id",
811
- hostname: "hostname",
812
- ssl: "ssl",
813
- createdAt: "created_at",
814
- customMetadata: "custom_metadata",
815
- customOriginServer: "custom_origin_server",
816
- customOriginSni: "custom_origin_sni",
817
- ownershipVerification: "ownership_verification",
818
- ownershipVerificationHttp: "ownership_verification_http",
819
- status: "status",
820
- verificationErrors: "verification_errors",
821
- }),
822
- ) as unknown as Schema.Schema<GetCustomHostnameResponse>;
813
+ })
814
+ .pipe(
815
+ Schema.encodeKeys({
816
+ id: "id",
817
+ hostname: "hostname",
818
+ ssl: "ssl",
819
+ createdAt: "created_at",
820
+ customMetadata: "custom_metadata",
821
+ customOriginServer: "custom_origin_server",
822
+ customOriginSni: "custom_origin_sni",
823
+ ownershipVerification: "ownership_verification",
824
+ ownershipVerificationHttp: "ownership_verification_http",
825
+ status: "status",
826
+ verificationErrors: "verification_errors",
827
+ }),
828
+ )
829
+ .pipe(
830
+ T.ResponsePath("result"),
831
+ ) as unknown as Schema.Schema<GetCustomHostnameResponse>;
823
832
 
824
833
  export type GetCustomHostnameError = DefaultErrors;
825
834
 
@@ -865,370 +874,529 @@ export const ListCustomHostnamesRequest =
865
874
  T.Http({ method: "GET", path: "/zones/{zone_id}/custom_hostnames" }),
866
875
  ) as unknown as Schema.Schema<ListCustomHostnamesRequest>;
867
876
 
868
- export type ListCustomHostnamesResponse = {
869
- id: string;
870
- hostname: string;
871
- ssl: {
872
- id?: string | null;
873
- bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
874
- certificateAuthority?:
875
- | "google"
876
- | "lets_encrypt"
877
- | "ssl_com"
878
- | "digicert"
879
- | null;
880
- customCertificate?: string | null;
881
- customCsrId?: string | null;
882
- customKey?: string | null;
883
- expiresOn?: string | null;
884
- hosts?: string[] | null;
885
- issuer?: string | null;
886
- method?: "http" | "txt" | "email" | null;
887
- serialNumber?: string | null;
888
- settings?: {
889
- ciphers?: string[] | null;
890
- earlyHints?: "on" | "off" | null;
891
- http2?: "on" | "off" | null;
892
- minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
893
- tls_1_3?: "on" | "off" | null;
877
+ export interface ListCustomHostnamesResponse {
878
+ result: {
879
+ id: string;
880
+ hostname: string;
881
+ ssl: {
882
+ id?: string | null;
883
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
884
+ certificateAuthority?:
885
+ | "google"
886
+ | "lets_encrypt"
887
+ | "ssl_com"
888
+ | "digicert"
889
+ | null;
890
+ customCertificate?: string | null;
891
+ customCsrId?: string | null;
892
+ customKey?: string | null;
893
+ expiresOn?: string | null;
894
+ hosts?: string[] | null;
895
+ issuer?: string | null;
896
+ method?: "http" | "txt" | "email" | null;
897
+ serialNumber?: string | null;
898
+ settings?: {
899
+ ciphers?: string[] | null;
900
+ earlyHints?: "on" | "off" | null;
901
+ http2?: "on" | "off" | null;
902
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
903
+ tls_1_3?: "on" | "off" | null;
904
+ } | null;
905
+ signature?: string | null;
906
+ status?:
907
+ | "initializing"
908
+ | "pending_validation"
909
+ | "deleted"
910
+ | "pending_issuance"
911
+ | "pending_deployment"
912
+ | "pending_deletion"
913
+ | "pending_expiration"
914
+ | "expired"
915
+ | "active"
916
+ | "initializing_timed_out"
917
+ | "validation_timed_out"
918
+ | "issuance_timed_out"
919
+ | "deployment_timed_out"
920
+ | "deletion_timed_out"
921
+ | "pending_cleanup"
922
+ | "staging_deployment"
923
+ | "staging_active"
924
+ | "deactivating"
925
+ | "inactive"
926
+ | "backup_issued"
927
+ | "holding_deployment"
928
+ | null;
929
+ type?: "dv" | null;
930
+ uploadedOn?: string | null;
931
+ validationErrors?: { message?: string | null }[] | null;
932
+ validationRecords?:
933
+ | {
934
+ emails?: string[] | null;
935
+ httpBody?: string | null;
936
+ httpUrl?: string | null;
937
+ txtName?: string | null;
938
+ txtValue?: string | null;
939
+ }[]
940
+ | null;
941
+ wildcard?: boolean | null;
942
+ };
943
+ createdAt?: string | null;
944
+ customMetadata?: Record<string, unknown> | null;
945
+ customOriginServer?: string | null;
946
+ customOriginSni?: string | null;
947
+ ownershipVerification?: {
948
+ name?: string | null;
949
+ type?: "txt" | null;
950
+ value?: string | null;
951
+ } | null;
952
+ ownershipVerificationHttp?: {
953
+ httpBody?: string | null;
954
+ httpUrl?: string | null;
894
955
  } | null;
895
- signature?: string | null;
896
956
  status?:
897
- | "initializing"
898
- | "pending_validation"
899
- | "deleted"
900
- | "pending_issuance"
901
- | "pending_deployment"
902
- | "pending_deletion"
903
- | "pending_expiration"
904
- | "expired"
905
957
  | "active"
906
- | "initializing_timed_out"
907
- | "validation_timed_out"
908
- | "issuance_timed_out"
909
- | "deployment_timed_out"
910
- | "deletion_timed_out"
911
- | "pending_cleanup"
912
- | "staging_deployment"
913
- | "staging_active"
914
- | "deactivating"
915
- | "inactive"
916
- | "backup_issued"
917
- | "holding_deployment"
918
- | null;
919
- type?: "dv" | null;
920
- uploadedOn?: string | null;
921
- validationErrors?: { message?: string | null }[] | null;
922
- validationRecords?:
923
- | {
924
- emails?: string[] | null;
925
- httpBody?: string | null;
926
- httpUrl?: string | null;
927
- txtName?: string | null;
928
- txtValue?: string | null;
929
- }[]
958
+ | "pending"
959
+ | "active_redeploying"
960
+ | "moved"
961
+ | "pending_deletion"
962
+ | "deleted"
963
+ | "pending_blocked"
964
+ | "pending_migration"
965
+ | "pending_provisioned"
966
+ | "test_pending"
967
+ | "test_active"
968
+ | "test_active_apex"
969
+ | "test_blocked"
970
+ | "test_failed"
971
+ | "provisioned"
972
+ | "blocked"
930
973
  | null;
931
- wildcard?: boolean | null;
974
+ verificationErrors?: string[] | null;
975
+ }[];
976
+ resultInfo: {
977
+ count?: number | null;
978
+ page?: number | null;
979
+ perPage?: number | null;
980
+ totalCount?: number | null;
932
981
  };
933
- createdAt?: string | null;
934
- customMetadata?: Record<string, unknown> | null;
935
- customOriginServer?: string | null;
936
- customOriginSni?: string | null;
937
- ownershipVerification?: {
938
- name?: string | null;
939
- type?: "txt" | null;
940
- value?: string | null;
941
- } | null;
942
- ownershipVerificationHttp?: {
943
- httpBody?: string | null;
944
- httpUrl?: string | null;
945
- } | null;
946
- status?:
947
- | "active"
948
- | "pending"
949
- | "active_redeploying"
950
- | "moved"
951
- | "pending_deletion"
952
- | "deleted"
953
- | "pending_blocked"
954
- | "pending_migration"
955
- | "pending_provisioned"
956
- | "test_pending"
957
- | "test_active"
958
- | "test_active_apex"
959
- | "test_blocked"
960
- | "test_failed"
961
- | "provisioned"
962
- | "blocked"
963
- | null;
964
- verificationErrors?: string[] | null;
965
- }[];
982
+ }
966
983
 
967
984
  export const ListCustomHostnamesResponse =
968
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
969
- Schema.Struct({
970
- id: Schema.String,
971
- hostname: Schema.String,
972
- ssl: Schema.Struct({
973
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
974
- bundleMethod: Schema.optional(
975
- Schema.Union([
976
- Schema.Literals(["ubiquitous", "optimal", "force"]),
977
- Schema.Null,
978
- ]),
985
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
986
+ result: Schema.Array(
987
+ Schema.Struct({
988
+ id: Schema.String,
989
+ hostname: Schema.String,
990
+ ssl: Schema.Struct({
991
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
992
+ bundleMethod: Schema.optional(
993
+ Schema.Union([
994
+ Schema.Literals(["ubiquitous", "optimal", "force"]),
995
+ Schema.Null,
996
+ ]),
997
+ ),
998
+ certificateAuthority: Schema.optional(
999
+ Schema.Union([
1000
+ Schema.Literals([
1001
+ "google",
1002
+ "lets_encrypt",
1003
+ "ssl_com",
1004
+ "digicert",
1005
+ ]),
1006
+ Schema.Null,
1007
+ ]),
1008
+ ),
1009
+ customCertificate: Schema.optional(
1010
+ Schema.Union([Schema.String, Schema.Null]),
1011
+ ),
1012
+ customCsrId: Schema.optional(
1013
+ Schema.Union([Schema.String, Schema.Null]),
1014
+ ),
1015
+ customKey: Schema.optional(
1016
+ Schema.Union([Schema.String, Schema.Null]),
1017
+ ),
1018
+ expiresOn: Schema.optional(
1019
+ Schema.Union([Schema.String, Schema.Null]),
1020
+ ),
1021
+ hosts: Schema.optional(
1022
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1023
+ ),
1024
+ issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1025
+ method: Schema.optional(
1026
+ Schema.Union([
1027
+ Schema.Literals(["http", "txt", "email"]),
1028
+ Schema.Null,
1029
+ ]),
1030
+ ),
1031
+ serialNumber: Schema.optional(
1032
+ Schema.Union([Schema.String, Schema.Null]),
1033
+ ),
1034
+ settings: Schema.optional(
1035
+ Schema.Union([
1036
+ Schema.Struct({
1037
+ ciphers: Schema.optional(
1038
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1039
+ ),
1040
+ earlyHints: Schema.optional(
1041
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1042
+ ),
1043
+ http2: Schema.optional(
1044
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1045
+ ),
1046
+ minTlsVersion: Schema.optional(
1047
+ Schema.Union([
1048
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1049
+ Schema.Null,
1050
+ ]),
1051
+ ),
1052
+ tls_1_3: Schema.optional(
1053
+ Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1054
+ ),
1055
+ }).pipe(
1056
+ Schema.encodeKeys({
1057
+ ciphers: "ciphers",
1058
+ earlyHints: "early_hints",
1059
+ http2: "http2",
1060
+ minTlsVersion: "min_tls_version",
1061
+ tls_1_3: "tls_1_3",
1062
+ }),
1063
+ ),
1064
+ Schema.Null,
1065
+ ]),
1066
+ ),
1067
+ signature: Schema.optional(
1068
+ Schema.Union([Schema.String, Schema.Null]),
1069
+ ),
1070
+ status: Schema.optional(
1071
+ Schema.Union([
1072
+ Schema.Literals([
1073
+ "initializing",
1074
+ "pending_validation",
1075
+ "deleted",
1076
+ "pending_issuance",
1077
+ "pending_deployment",
1078
+ "pending_deletion",
1079
+ "pending_expiration",
1080
+ "expired",
1081
+ "active",
1082
+ "initializing_timed_out",
1083
+ "validation_timed_out",
1084
+ "issuance_timed_out",
1085
+ "deployment_timed_out",
1086
+ "deletion_timed_out",
1087
+ "pending_cleanup",
1088
+ "staging_deployment",
1089
+ "staging_active",
1090
+ "deactivating",
1091
+ "inactive",
1092
+ "backup_issued",
1093
+ "holding_deployment",
1094
+ ]),
1095
+ Schema.Null,
1096
+ ]),
1097
+ ),
1098
+ type: Schema.optional(
1099
+ Schema.Union([Schema.Literal("dv"), Schema.Null]),
1100
+ ),
1101
+ uploadedOn: Schema.optional(
1102
+ Schema.Union([Schema.String, Schema.Null]),
1103
+ ),
1104
+ validationErrors: Schema.optional(
1105
+ Schema.Union([
1106
+ Schema.Array(
1107
+ Schema.Struct({
1108
+ message: Schema.optional(
1109
+ Schema.Union([Schema.String, Schema.Null]),
1110
+ ),
1111
+ }),
1112
+ ),
1113
+ Schema.Null,
1114
+ ]),
1115
+ ),
1116
+ validationRecords: Schema.optional(
1117
+ Schema.Union([
1118
+ Schema.Array(
1119
+ Schema.Struct({
1120
+ emails: Schema.optional(
1121
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1122
+ ),
1123
+ httpBody: Schema.optional(
1124
+ Schema.Union([Schema.String, Schema.Null]),
1125
+ ),
1126
+ httpUrl: Schema.optional(
1127
+ Schema.Union([Schema.String, Schema.Null]),
1128
+ ),
1129
+ txtName: Schema.optional(
1130
+ Schema.Union([Schema.String, Schema.Null]),
1131
+ ),
1132
+ txtValue: Schema.optional(
1133
+ Schema.Union([Schema.String, Schema.Null]),
1134
+ ),
1135
+ }).pipe(
1136
+ Schema.encodeKeys({
1137
+ emails: "emails",
1138
+ httpBody: "http_body",
1139
+ httpUrl: "http_url",
1140
+ txtName: "txt_name",
1141
+ txtValue: "txt_value",
1142
+ }),
1143
+ ),
1144
+ ),
1145
+ Schema.Null,
1146
+ ]),
1147
+ ),
1148
+ wildcard: Schema.optional(
1149
+ Schema.Union([Schema.Boolean, Schema.Null]),
1150
+ ),
1151
+ }).pipe(
1152
+ Schema.encodeKeys({
1153
+ id: "id",
1154
+ bundleMethod: "bundle_method",
1155
+ certificateAuthority: "certificate_authority",
1156
+ customCertificate: "custom_certificate",
1157
+ customCsrId: "custom_csr_id",
1158
+ customKey: "custom_key",
1159
+ expiresOn: "expires_on",
1160
+ hosts: "hosts",
1161
+ issuer: "issuer",
1162
+ method: "method",
1163
+ serialNumber: "serial_number",
1164
+ settings: "settings",
1165
+ signature: "signature",
1166
+ status: "status",
1167
+ type: "type",
1168
+ uploadedOn: "uploaded_on",
1169
+ validationErrors: "validation_errors",
1170
+ validationRecords: "validation_records",
1171
+ wildcard: "wildcard",
1172
+ }),
979
1173
  ),
980
- certificateAuthority: Schema.optional(
981
- Schema.Union([
982
- Schema.Literals(["google", "lets_encrypt", "ssl_com", "digicert"]),
983
- Schema.Null,
984
- ]),
1174
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1175
+ customMetadata: Schema.optional(
1176
+ Schema.Union([Schema.Struct({}), Schema.Null]),
985
1177
  ),
986
- customCertificate: Schema.optional(
1178
+ customOriginServer: Schema.optional(
987
1179
  Schema.Union([Schema.String, Schema.Null]),
988
1180
  ),
989
- customCsrId: Schema.optional(
1181
+ customOriginSni: Schema.optional(
990
1182
  Schema.Union([Schema.String, Schema.Null]),
991
1183
  ),
992
- customKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
993
- expiresOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
994
- hosts: Schema.optional(
995
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
996
- ),
997
- issuer: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
998
- method: Schema.optional(
1184
+ ownershipVerification: Schema.optional(
999
1185
  Schema.Union([
1000
- Schema.Literals(["http", "txt", "email"]),
1186
+ Schema.Struct({
1187
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1188
+ type: Schema.optional(
1189
+ Schema.Union([Schema.Literal("txt"), Schema.Null]),
1190
+ ),
1191
+ value: Schema.optional(
1192
+ Schema.Union([Schema.String, Schema.Null]),
1193
+ ),
1194
+ }),
1001
1195
  Schema.Null,
1002
1196
  ]),
1003
1197
  ),
1004
- serialNumber: Schema.optional(
1005
- Schema.Union([Schema.String, Schema.Null]),
1006
- ),
1007
- settings: Schema.optional(
1198
+ ownershipVerificationHttp: Schema.optional(
1008
1199
  Schema.Union([
1009
1200
  Schema.Struct({
1010
- ciphers: Schema.optional(
1011
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1012
- ),
1013
- earlyHints: Schema.optional(
1014
- Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1015
- ),
1016
- http2: Schema.optional(
1017
- Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1018
- ),
1019
- minTlsVersion: Schema.optional(
1020
- Schema.Union([
1021
- Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
1022
- Schema.Null,
1023
- ]),
1201
+ httpBody: Schema.optional(
1202
+ Schema.Union([Schema.String, Schema.Null]),
1024
1203
  ),
1025
- tls_1_3: Schema.optional(
1026
- Schema.Union([Schema.Literals(["on", "off"]), Schema.Null]),
1204
+ httpUrl: Schema.optional(
1205
+ Schema.Union([Schema.String, Schema.Null]),
1027
1206
  ),
1028
1207
  }).pipe(
1029
- Schema.encodeKeys({
1030
- ciphers: "ciphers",
1031
- earlyHints: "early_hints",
1032
- http2: "http2",
1033
- minTlsVersion: "min_tls_version",
1034
- tls_1_3: "tls_1_3",
1035
- }),
1208
+ Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
1036
1209
  ),
1037
1210
  Schema.Null,
1038
1211
  ]),
1039
1212
  ),
1040
- signature: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1041
1213
  status: Schema.optional(
1042
1214
  Schema.Union([
1043
1215
  Schema.Literals([
1044
- "initializing",
1045
- "pending_validation",
1046
- "deleted",
1047
- "pending_issuance",
1048
- "pending_deployment",
1049
- "pending_deletion",
1050
- "pending_expiration",
1051
- "expired",
1052
1216
  "active",
1053
- "initializing_timed_out",
1054
- "validation_timed_out",
1055
- "issuance_timed_out",
1056
- "deployment_timed_out",
1057
- "deletion_timed_out",
1058
- "pending_cleanup",
1059
- "staging_deployment",
1060
- "staging_active",
1061
- "deactivating",
1062
- "inactive",
1063
- "backup_issued",
1064
- "holding_deployment",
1217
+ "pending",
1218
+ "active_redeploying",
1219
+ "moved",
1220
+ "pending_deletion",
1221
+ "deleted",
1222
+ "pending_blocked",
1223
+ "pending_migration",
1224
+ "pending_provisioned",
1225
+ "test_pending",
1226
+ "test_active",
1227
+ "test_active_apex",
1228
+ "test_blocked",
1229
+ "test_failed",
1230
+ "provisioned",
1231
+ "blocked",
1065
1232
  ]),
1066
1233
  Schema.Null,
1067
1234
  ]),
1068
1235
  ),
1069
- type: Schema.optional(
1070
- Schema.Union([Schema.Literal("dv"), Schema.Null]),
1071
- ),
1072
- uploadedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1073
- validationErrors: Schema.optional(
1074
- Schema.Union([
1075
- Schema.Array(
1076
- Schema.Struct({
1077
- message: Schema.optional(
1078
- Schema.Union([Schema.String, Schema.Null]),
1079
- ),
1080
- }),
1081
- ),
1082
- Schema.Null,
1083
- ]),
1084
- ),
1085
- validationRecords: Schema.optional(
1086
- Schema.Union([
1087
- Schema.Array(
1088
- Schema.Struct({
1089
- emails: Schema.optional(
1090
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1091
- ),
1092
- httpBody: Schema.optional(
1093
- Schema.Union([Schema.String, Schema.Null]),
1094
- ),
1095
- httpUrl: Schema.optional(
1096
- Schema.Union([Schema.String, Schema.Null]),
1097
- ),
1098
- txtName: Schema.optional(
1099
- Schema.Union([Schema.String, Schema.Null]),
1100
- ),
1101
- txtValue: Schema.optional(
1102
- Schema.Union([Schema.String, Schema.Null]),
1103
- ),
1104
- }).pipe(
1105
- Schema.encodeKeys({
1106
- emails: "emails",
1107
- httpBody: "http_body",
1108
- httpUrl: "http_url",
1109
- txtName: "txt_name",
1110
- txtValue: "txt_value",
1111
- }),
1112
- ),
1113
- ),
1114
- Schema.Null,
1115
- ]),
1236
+ verificationErrors: Schema.optional(
1237
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1116
1238
  ),
1117
- wildcard: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1118
1239
  }).pipe(
1119
1240
  Schema.encodeKeys({
1120
1241
  id: "id",
1121
- bundleMethod: "bundle_method",
1122
- certificateAuthority: "certificate_authority",
1123
- customCertificate: "custom_certificate",
1124
- customCsrId: "custom_csr_id",
1125
- customKey: "custom_key",
1126
- expiresOn: "expires_on",
1127
- hosts: "hosts",
1128
- issuer: "issuer",
1129
- method: "method",
1130
- serialNumber: "serial_number",
1131
- settings: "settings",
1132
- signature: "signature",
1242
+ hostname: "hostname",
1243
+ ssl: "ssl",
1244
+ createdAt: "created_at",
1245
+ customMetadata: "custom_metadata",
1246
+ customOriginServer: "custom_origin_server",
1247
+ customOriginSni: "custom_origin_sni",
1248
+ ownershipVerification: "ownership_verification",
1249
+ ownershipVerificationHttp: "ownership_verification_http",
1133
1250
  status: "status",
1134
- type: "type",
1135
- uploadedOn: "uploaded_on",
1136
- validationErrors: "validation_errors",
1137
- validationRecords: "validation_records",
1138
- wildcard: "wildcard",
1251
+ verificationErrors: "verification_errors",
1139
1252
  }),
1140
1253
  ),
1141
- createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1142
- customMetadata: Schema.optional(
1143
- Schema.Union([Schema.Struct({}), Schema.Null]),
1144
- ),
1145
- customOriginServer: Schema.optional(
1146
- Schema.Union([Schema.String, Schema.Null]),
1147
- ),
1148
- customOriginSni: Schema.optional(
1149
- Schema.Union([Schema.String, Schema.Null]),
1150
- ),
1151
- ownershipVerification: Schema.optional(
1152
- Schema.Union([
1153
- Schema.Struct({
1154
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1155
- type: Schema.optional(
1156
- Schema.Union([Schema.Literal("txt"), Schema.Null]),
1157
- ),
1158
- value: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1159
- }),
1160
- Schema.Null,
1161
- ]),
1162
- ),
1163
- ownershipVerificationHttp: Schema.optional(
1164
- Schema.Union([
1165
- Schema.Struct({
1166
- httpBody: Schema.optional(
1167
- Schema.Union([Schema.String, Schema.Null]),
1168
- ),
1169
- httpUrl: Schema.optional(
1170
- Schema.Union([Schema.String, Schema.Null]),
1171
- ),
1172
- }).pipe(
1173
- Schema.encodeKeys({ httpBody: "http_body", httpUrl: "http_url" }),
1174
- ),
1175
- Schema.Null,
1176
- ]),
1177
- ),
1178
- status: Schema.optional(
1179
- Schema.Union([
1180
- Schema.Literals([
1181
- "active",
1182
- "pending",
1183
- "active_redeploying",
1184
- "moved",
1185
- "pending_deletion",
1186
- "deleted",
1187
- "pending_blocked",
1188
- "pending_migration",
1189
- "pending_provisioned",
1190
- "test_pending",
1191
- "test_active",
1192
- "test_active_apex",
1193
- "test_blocked",
1194
- "test_failed",
1195
- "provisioned",
1196
- "blocked",
1197
- ]),
1198
- Schema.Null,
1199
- ]),
1200
- ),
1201
- verificationErrors: Schema.optional(
1202
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1203
- ),
1254
+ ),
1255
+ resultInfo: Schema.Struct({
1256
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1257
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1258
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1259
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1204
1260
  }).pipe(
1205
1261
  Schema.encodeKeys({
1206
- id: "id",
1207
- hostname: "hostname",
1208
- ssl: "ssl",
1209
- createdAt: "created_at",
1210
- customMetadata: "custom_metadata",
1211
- customOriginServer: "custom_origin_server",
1212
- customOriginSni: "custom_origin_sni",
1213
- ownershipVerification: "ownership_verification",
1214
- ownershipVerificationHttp: "ownership_verification_http",
1215
- status: "status",
1216
- verificationErrors: "verification_errors",
1262
+ count: "count",
1263
+ page: "page",
1264
+ perPage: "per_page",
1265
+ totalCount: "total_count",
1217
1266
  }),
1218
1267
  ),
1268
+ }).pipe(
1269
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1219
1270
  ) as unknown as Schema.Schema<ListCustomHostnamesResponse>;
1220
1271
 
1221
1272
  export type ListCustomHostnamesError = DefaultErrors;
1222
1273
 
1223
- export const listCustomHostnames: API.OperationMethod<
1274
+ export const listCustomHostnames: API.PaginatedOperationMethod<
1224
1275
  ListCustomHostnamesRequest,
1225
1276
  ListCustomHostnamesResponse,
1226
1277
  ListCustomHostnamesError,
1227
1278
  Credentials | HttpClient.HttpClient
1228
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1279
+ > & {
1280
+ pages: (
1281
+ input: ListCustomHostnamesRequest,
1282
+ ) => stream.Stream<
1283
+ ListCustomHostnamesResponse,
1284
+ ListCustomHostnamesError,
1285
+ Credentials | HttpClient.HttpClient
1286
+ >;
1287
+ items: (input: ListCustomHostnamesRequest) => stream.Stream<
1288
+ {
1289
+ id: string;
1290
+ hostname: string;
1291
+ ssl: {
1292
+ id?: string | null;
1293
+ bundleMethod?: "ubiquitous" | "optimal" | "force" | null;
1294
+ certificateAuthority?:
1295
+ | "google"
1296
+ | "lets_encrypt"
1297
+ | "ssl_com"
1298
+ | "digicert"
1299
+ | null;
1300
+ customCertificate?: string | null;
1301
+ customCsrId?: string | null;
1302
+ customKey?: string | null;
1303
+ expiresOn?: string | null;
1304
+ hosts?: string[] | null;
1305
+ issuer?: string | null;
1306
+ method?: "http" | "txt" | "email" | null;
1307
+ serialNumber?: string | null;
1308
+ settings?: {
1309
+ ciphers?: string[] | null;
1310
+ earlyHints?: "on" | "off" | null;
1311
+ http2?: "on" | "off" | null;
1312
+ minTlsVersion?: "1.0" | "1.1" | "1.2" | "1.3" | null;
1313
+ tls_1_3?: "on" | "off" | null;
1314
+ } | null;
1315
+ signature?: string | null;
1316
+ status?:
1317
+ | "initializing"
1318
+ | "pending_validation"
1319
+ | "deleted"
1320
+ | "pending_issuance"
1321
+ | "pending_deployment"
1322
+ | "pending_deletion"
1323
+ | "pending_expiration"
1324
+ | "expired"
1325
+ | "active"
1326
+ | "initializing_timed_out"
1327
+ | "validation_timed_out"
1328
+ | "issuance_timed_out"
1329
+ | "deployment_timed_out"
1330
+ | "deletion_timed_out"
1331
+ | "pending_cleanup"
1332
+ | "staging_deployment"
1333
+ | "staging_active"
1334
+ | "deactivating"
1335
+ | "inactive"
1336
+ | "backup_issued"
1337
+ | "holding_deployment"
1338
+ | null;
1339
+ type?: "dv" | null;
1340
+ uploadedOn?: string | null;
1341
+ validationErrors?: { message?: string | null }[] | null;
1342
+ validationRecords?:
1343
+ | {
1344
+ emails?: string[] | null;
1345
+ httpBody?: string | null;
1346
+ httpUrl?: string | null;
1347
+ txtName?: string | null;
1348
+ txtValue?: string | null;
1349
+ }[]
1350
+ | null;
1351
+ wildcard?: boolean | null;
1352
+ };
1353
+ createdAt?: string | null;
1354
+ customMetadata?: Record<string, unknown> | null;
1355
+ customOriginServer?: string | null;
1356
+ customOriginSni?: string | null;
1357
+ ownershipVerification?: {
1358
+ name?: string | null;
1359
+ type?: "txt" | null;
1360
+ value?: string | null;
1361
+ } | null;
1362
+ ownershipVerificationHttp?: {
1363
+ httpBody?: string | null;
1364
+ httpUrl?: string | null;
1365
+ } | null;
1366
+ status?:
1367
+ | "active"
1368
+ | "pending"
1369
+ | "active_redeploying"
1370
+ | "moved"
1371
+ | "pending_deletion"
1372
+ | "deleted"
1373
+ | "pending_blocked"
1374
+ | "pending_migration"
1375
+ | "pending_provisioned"
1376
+ | "test_pending"
1377
+ | "test_active"
1378
+ | "test_active_apex"
1379
+ | "test_blocked"
1380
+ | "test_failed"
1381
+ | "provisioned"
1382
+ | "blocked"
1383
+ | null;
1384
+ verificationErrors?: string[] | null;
1385
+ },
1386
+ ListCustomHostnamesError,
1387
+ Credentials | HttpClient.HttpClient
1388
+ >;
1389
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1229
1390
  input: ListCustomHostnamesRequest,
1230
1391
  output: ListCustomHostnamesResponse,
1231
1392
  errors: [],
1393
+ pagination: {
1394
+ mode: "page",
1395
+ inputToken: "page",
1396
+ outputToken: "resultInfo.page",
1397
+ items: "result",
1398
+ pageSize: "perPage",
1399
+ } as const,
1232
1400
  }));
1233
1401
 
1234
1402
  export interface CreateCustomHostnameRequest {
@@ -1666,21 +1834,25 @@ export const CreateCustomHostnameResponse =
1666
1834
  verificationErrors: Schema.optional(
1667
1835
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1668
1836
  ),
1669
- }).pipe(
1670
- Schema.encodeKeys({
1671
- id: "id",
1672
- hostname: "hostname",
1673
- ssl: "ssl",
1674
- createdAt: "created_at",
1675
- customMetadata: "custom_metadata",
1676
- customOriginServer: "custom_origin_server",
1677
- customOriginSni: "custom_origin_sni",
1678
- ownershipVerification: "ownership_verification",
1679
- ownershipVerificationHttp: "ownership_verification_http",
1680
- status: "status",
1681
- verificationErrors: "verification_errors",
1682
- }),
1683
- ) as unknown as Schema.Schema<CreateCustomHostnameResponse>;
1837
+ })
1838
+ .pipe(
1839
+ Schema.encodeKeys({
1840
+ id: "id",
1841
+ hostname: "hostname",
1842
+ ssl: "ssl",
1843
+ createdAt: "created_at",
1844
+ customMetadata: "custom_metadata",
1845
+ customOriginServer: "custom_origin_server",
1846
+ customOriginSni: "custom_origin_sni",
1847
+ ownershipVerification: "ownership_verification",
1848
+ ownershipVerificationHttp: "ownership_verification_http",
1849
+ status: "status",
1850
+ verificationErrors: "verification_errors",
1851
+ }),
1852
+ )
1853
+ .pipe(
1854
+ T.ResponsePath("result"),
1855
+ ) as unknown as Schema.Schema<CreateCustomHostnameResponse>;
1684
1856
 
1685
1857
  export type CreateCustomHostnameError = DefaultErrors;
1686
1858
 
@@ -2139,21 +2311,25 @@ export const PatchCustomHostnameResponse =
2139
2311
  verificationErrors: Schema.optional(
2140
2312
  Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2141
2313
  ),
2142
- }).pipe(
2143
- Schema.encodeKeys({
2144
- id: "id",
2145
- hostname: "hostname",
2146
- ssl: "ssl",
2147
- createdAt: "created_at",
2148
- customMetadata: "custom_metadata",
2149
- customOriginServer: "custom_origin_server",
2150
- customOriginSni: "custom_origin_sni",
2151
- ownershipVerification: "ownership_verification",
2152
- ownershipVerificationHttp: "ownership_verification_http",
2153
- status: "status",
2154
- verificationErrors: "verification_errors",
2155
- }),
2156
- ) as unknown as Schema.Schema<PatchCustomHostnameResponse>;
2314
+ })
2315
+ .pipe(
2316
+ Schema.encodeKeys({
2317
+ id: "id",
2318
+ hostname: "hostname",
2319
+ ssl: "ssl",
2320
+ createdAt: "created_at",
2321
+ customMetadata: "custom_metadata",
2322
+ customOriginServer: "custom_origin_server",
2323
+ customOriginSni: "custom_origin_sni",
2324
+ ownershipVerification: "ownership_verification",
2325
+ ownershipVerificationHttp: "ownership_verification_http",
2326
+ status: "status",
2327
+ verificationErrors: "verification_errors",
2328
+ }),
2329
+ )
2330
+ .pipe(
2331
+ T.ResponsePath("result"),
2332
+ ) as unknown as Schema.Schema<PatchCustomHostnameResponse>;
2157
2333
 
2158
2334
  export type PatchCustomHostnameError = DefaultErrors;
2159
2335
 
@@ -2268,15 +2444,19 @@ export const GetFallbackOriginResponse =
2268
2444
  ]),
2269
2445
  ),
2270
2446
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2271
- }).pipe(
2272
- Schema.encodeKeys({
2273
- createdAt: "created_at",
2274
- errors: "errors",
2275
- origin: "origin",
2276
- status: "status",
2277
- updatedAt: "updated_at",
2278
- }),
2279
- ) as unknown as Schema.Schema<GetFallbackOriginResponse>;
2447
+ })
2448
+ .pipe(
2449
+ Schema.encodeKeys({
2450
+ createdAt: "created_at",
2451
+ errors: "errors",
2452
+ origin: "origin",
2453
+ status: "status",
2454
+ updatedAt: "updated_at",
2455
+ }),
2456
+ )
2457
+ .pipe(
2458
+ T.ResponsePath("result"),
2459
+ ) as unknown as Schema.Schema<GetFallbackOriginResponse>;
2280
2460
 
2281
2461
  export type GetFallbackOriginError = DefaultErrors;
2282
2462
 
@@ -2350,15 +2530,19 @@ export const PutFallbackOriginResponse =
2350
2530
  ]),
2351
2531
  ),
2352
2532
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2353
- }).pipe(
2354
- Schema.encodeKeys({
2355
- createdAt: "created_at",
2356
- errors: "errors",
2357
- origin: "origin",
2358
- status: "status",
2359
- updatedAt: "updated_at",
2360
- }),
2361
- ) as unknown as Schema.Schema<PutFallbackOriginResponse>;
2533
+ })
2534
+ .pipe(
2535
+ Schema.encodeKeys({
2536
+ createdAt: "created_at",
2537
+ errors: "errors",
2538
+ origin: "origin",
2539
+ status: "status",
2540
+ updatedAt: "updated_at",
2541
+ }),
2542
+ )
2543
+ .pipe(
2544
+ T.ResponsePath("result"),
2545
+ ) as unknown as Schema.Schema<PutFallbackOriginResponse>;
2362
2546
 
2363
2547
  export type PutFallbackOriginError = DefaultErrors;
2364
2548
 
@@ -2429,15 +2613,19 @@ export const DeleteFallbackOriginResponse =
2429
2613
  ]),
2430
2614
  ),
2431
2615
  updatedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2432
- }).pipe(
2433
- Schema.encodeKeys({
2434
- createdAt: "created_at",
2435
- errors: "errors",
2436
- origin: "origin",
2437
- status: "status",
2438
- updatedAt: "updated_at",
2439
- }),
2440
- ) as unknown as Schema.Schema<DeleteFallbackOriginResponse>;
2616
+ })
2617
+ .pipe(
2618
+ Schema.encodeKeys({
2619
+ createdAt: "created_at",
2620
+ errors: "errors",
2621
+ origin: "origin",
2622
+ status: "status",
2623
+ updatedAt: "updated_at",
2624
+ }),
2625
+ )
2626
+ .pipe(
2627
+ T.ResponsePath("result"),
2628
+ ) as unknown as Schema.Schema<DeleteFallbackOriginResponse>;
2441
2629
 
2442
2630
  export type DeleteFallbackOriginError = DefaultErrors;
2443
2631