@distilled.cloud/cloudflare 0.2.6 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 workers
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";
@@ -107,12 +108,16 @@ export const GetAccountSettingResponse =
107
108
  Schema.Union([Schema.String, Schema.Null]),
108
109
  ),
109
110
  greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
110
- }).pipe(
111
- Schema.encodeKeys({
112
- defaultUsageModel: "default_usage_model",
113
- greenCompute: "green_compute",
114
- }),
115
- ) as unknown as Schema.Schema<GetAccountSettingResponse>;
111
+ })
112
+ .pipe(
113
+ Schema.encodeKeys({
114
+ defaultUsageModel: "default_usage_model",
115
+ greenCompute: "green_compute",
116
+ }),
117
+ )
118
+ .pipe(
119
+ T.ResponsePath("result"),
120
+ ) as unknown as Schema.Schema<GetAccountSettingResponse>;
116
121
 
117
122
  export type GetAccountSettingError = DefaultErrors | InvalidRoute;
118
123
 
@@ -163,12 +168,16 @@ export const PutAccountSettingResponse =
163
168
  Schema.Union([Schema.String, Schema.Null]),
164
169
  ),
165
170
  greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
166
- }).pipe(
167
- Schema.encodeKeys({
168
- defaultUsageModel: "default_usage_model",
169
- greenCompute: "green_compute",
170
- }),
171
- ) as unknown as Schema.Schema<PutAccountSettingResponse>;
171
+ })
172
+ .pipe(
173
+ Schema.encodeKeys({
174
+ defaultUsageModel: "default_usage_model",
175
+ greenCompute: "green_compute",
176
+ }),
177
+ )
178
+ .pipe(
179
+ T.ResponsePath("result"),
180
+ ) as unknown as Schema.Schema<PutAccountSettingResponse>;
172
181
 
173
182
  export type PutAccountSettingError = DefaultErrors | InvalidRoute;
174
183
 
@@ -192,6 +201,8 @@ export interface CreateAssetUploadRequest {
192
201
  accountId: string;
193
202
  /** Query param: Whether the file contents are base64-encoded. Must be `true`. */
194
203
  base64: true;
204
+ /** Upload session JWT returned by createScriptAssetUpload. This SDK sends it as an Authorization bearer token for this request. */
205
+ jwtToken?: string;
195
206
  /** Body param: */
196
207
  body: Record<string, unknown>;
197
208
  }
@@ -200,6 +211,9 @@ export const CreateAssetUploadRequest =
200
211
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
201
212
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
202
213
  base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
214
+ jwtToken: Schema.optional(Schema.String).pipe(
215
+ T.HttpHeader("Authorization"),
216
+ ),
203
217
  body: Schema.Struct({}).pipe(T.HttpBody()),
204
218
  }).pipe(
205
219
  T.Http({
@@ -217,7 +231,9 @@ export interface CreateAssetUploadResponse {
217
231
  export const CreateAssetUploadResponse =
218
232
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
219
233
  jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
220
- }) as unknown as Schema.Schema<CreateAssetUploadResponse>;
234
+ }).pipe(
235
+ T.ResponsePath("result"),
236
+ ) as unknown as Schema.Schema<CreateAssetUploadResponse>;
221
237
 
222
238
  export type CreateAssetUploadError = DefaultErrors | InvalidRoute;
223
239
 
@@ -262,7 +278,9 @@ export interface GetBetaWorkerResponse {
262
278
  export const GetBetaWorkerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
263
279
  id: Schema.String,
264
280
  name: Schema.String,
265
- }) as unknown as Schema.Schema<GetBetaWorkerResponse>;
281
+ }).pipe(
282
+ T.ResponsePath("result"),
283
+ ) as unknown as Schema.Schema<GetBetaWorkerResponse>;
266
284
 
267
285
  export type GetBetaWorkerError = DefaultErrors | WorkerNotFound | InvalidRoute;
268
286
 
@@ -290,26 +308,74 @@ export const ListBetaWorkersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
290
308
  T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" }),
291
309
  ) as unknown as Schema.Schema<ListBetaWorkersRequest>;
292
310
 
293
- export type ListBetaWorkersResponse = { id: string; name: string }[];
311
+ export interface ListBetaWorkersResponse {
312
+ result: { id: string; name: string }[];
313
+ resultInfo: {
314
+ count?: number | null;
315
+ page?: number | null;
316
+ perPage?: number | null;
317
+ totalCount?: number | null;
318
+ };
319
+ }
294
320
 
295
- export const ListBetaWorkersResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
296
- Schema.Struct({
297
- id: Schema.String,
298
- name: Schema.String,
299
- }),
300
- ) as unknown as Schema.Schema<ListBetaWorkersResponse>;
321
+ export const ListBetaWorkersResponse =
322
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
323
+ result: Schema.Array(
324
+ Schema.Struct({
325
+ id: Schema.String,
326
+ name: Schema.String,
327
+ }),
328
+ ),
329
+ resultInfo: Schema.Struct({
330
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
331
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
332
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
333
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
334
+ }).pipe(
335
+ Schema.encodeKeys({
336
+ count: "count",
337
+ page: "page",
338
+ perPage: "per_page",
339
+ totalCount: "total_count",
340
+ }),
341
+ ),
342
+ }).pipe(
343
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
344
+ ) as unknown as Schema.Schema<ListBetaWorkersResponse>;
301
345
 
302
346
  export type ListBetaWorkersError = DefaultErrors | InvalidRoute;
303
347
 
304
- export const listBetaWorkers: API.OperationMethod<
348
+ export const listBetaWorkers: API.PaginatedOperationMethod<
305
349
  ListBetaWorkersRequest,
306
350
  ListBetaWorkersResponse,
307
351
  ListBetaWorkersError,
308
352
  Credentials | HttpClient.HttpClient
309
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
353
+ > & {
354
+ pages: (
355
+ input: ListBetaWorkersRequest,
356
+ ) => stream.Stream<
357
+ ListBetaWorkersResponse,
358
+ ListBetaWorkersError,
359
+ Credentials | HttpClient.HttpClient
360
+ >;
361
+ items: (
362
+ input: ListBetaWorkersRequest,
363
+ ) => stream.Stream<
364
+ { id: string; name: string },
365
+ ListBetaWorkersError,
366
+ Credentials | HttpClient.HttpClient
367
+ >;
368
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
310
369
  input: ListBetaWorkersRequest,
311
370
  output: ListBetaWorkersResponse,
312
371
  errors: [InvalidRoute],
372
+ pagination: {
373
+ mode: "page",
374
+ inputToken: "page",
375
+ outputToken: "resultInfo.page",
376
+ items: "result",
377
+ pageSize: "perPage",
378
+ } as const,
313
379
  }));
314
380
 
315
381
  export interface CreateBetaWorkerRequest {
@@ -409,7 +475,9 @@ export const CreateBetaWorkerResponse =
409
475
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
410
476
  id: Schema.String,
411
477
  name: Schema.String,
412
- }) as unknown as Schema.Schema<CreateBetaWorkerResponse>;
478
+ }).pipe(
479
+ T.ResponsePath("result"),
480
+ ) as unknown as Schema.Schema<CreateBetaWorkerResponse>;
413
481
 
414
482
  export type CreateBetaWorkerError = DefaultErrors | InvalidRoute;
415
483
 
@@ -526,7 +594,9 @@ export const UpdateBetaWorkerResponse =
526
594
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
527
595
  id: Schema.String,
528
596
  name: Schema.String,
529
- }) as unknown as Schema.Schema<UpdateBetaWorkerResponse>;
597
+ }).pipe(
598
+ T.ResponsePath("result"),
599
+ ) as unknown as Schema.Schema<UpdateBetaWorkerResponse>;
530
600
 
531
601
  export type UpdateBetaWorkerError = DefaultErrors | WorkerNotFound;
532
602
 
@@ -638,7 +708,9 @@ export const PatchBetaWorkerResponse =
638
708
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
639
709
  id: Schema.String,
640
710
  name: Schema.String,
641
- }) as unknown as Schema.Schema<PatchBetaWorkerResponse>;
711
+ }).pipe(
712
+ T.ResponsePath("result"),
713
+ ) as unknown as Schema.Schema<PatchBetaWorkerResponse>;
642
714
 
643
715
  export type PatchBetaWorkerError = DefaultErrors | WorkerNotFound;
644
716
 
@@ -1347,26 +1419,30 @@ export const GetBetaWorkerVersionResponse =
1347
1419
  Schema.Null,
1348
1420
  ]),
1349
1421
  ),
1350
- }).pipe(
1351
- Schema.encodeKeys({
1352
- id: "id",
1353
- createdOn: "created_on",
1354
- number: "number",
1355
- annotations: "annotations",
1356
- assets: "assets",
1357
- bindings: "bindings",
1358
- compatibilityDate: "compatibility_date",
1359
- compatibilityFlags: "compatibility_flags",
1360
- limits: "limits",
1361
- mainModule: "main_module",
1362
- migrations: "migrations",
1363
- modules: "modules",
1364
- placement: "placement",
1365
- source: "source",
1366
- startupTimeMs: "startup_time_ms",
1367
- usageModel: "usage_model",
1368
- }),
1369
- ) as unknown as Schema.Schema<GetBetaWorkerVersionResponse>;
1422
+ })
1423
+ .pipe(
1424
+ Schema.encodeKeys({
1425
+ id: "id",
1426
+ createdOn: "created_on",
1427
+ number: "number",
1428
+ annotations: "annotations",
1429
+ assets: "assets",
1430
+ bindings: "bindings",
1431
+ compatibilityDate: "compatibility_date",
1432
+ compatibilityFlags: "compatibility_flags",
1433
+ limits: "limits",
1434
+ mainModule: "main_module",
1435
+ migrations: "migrations",
1436
+ modules: "modules",
1437
+ placement: "placement",
1438
+ source: "source",
1439
+ startupTimeMs: "startup_time_ms",
1440
+ usageModel: "usage_model",
1441
+ }),
1442
+ )
1443
+ .pipe(
1444
+ T.ResponsePath("result"),
1445
+ ) as unknown as Schema.Schema<GetBetaWorkerVersionResponse>;
1370
1446
 
1371
1447
  export type GetBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
1372
1448
 
@@ -1398,597 +1474,784 @@ export const ListBetaWorkerVersionsRequest =
1398
1474
  }),
1399
1475
  ) as unknown as Schema.Schema<ListBetaWorkerVersionsRequest>;
1400
1476
 
1401
- export type ListBetaWorkerVersionsResponse = {
1402
- id: string;
1403
- createdOn: string;
1404
- number: number;
1405
- annotations?: {
1406
- workersMessage?: string | null;
1407
- workersTag?: string | null;
1408
- workersTriggeredBy?: string | null;
1409
- } | null;
1410
- assets?: {
1411
- config?: {
1412
- htmlHandling?:
1413
- | "auto-trailing-slash"
1414
- | "force-trailing-slash"
1415
- | "drop-trailing-slash"
1416
- | "none"
1417
- | null;
1418
- notFoundHandling?: "none" | "404-page" | "single-page-application" | null;
1419
- runWorkerFirst?: string[] | boolean | null;
1477
+ export interface ListBetaWorkerVersionsResponse {
1478
+ result: {
1479
+ id: string;
1480
+ createdOn: string;
1481
+ number: number;
1482
+ annotations?: {
1483
+ workersMessage?: string | null;
1484
+ workersTag?: string | null;
1485
+ workersTriggeredBy?: string | null;
1420
1486
  } | null;
1421
- jwt?: string | null;
1422
- } | null;
1423
- bindings?:
1424
- | (
1425
- | { name: string; type: "ai" }
1426
- | { dataset: string; name: string; type: "analytics_engine" }
1427
- | { name: string; type: "assets" }
1428
- | { name: string; type: "browser" }
1429
- | { id: string; name: string; type: "d1" }
1430
- | { name: string; part: string; type: "data_blob" }
1431
- | {
1432
- name: string;
1433
- namespace: string;
1434
- type: "dispatch_namespace";
1435
- outbound?: {
1436
- params?: string[] | null;
1437
- worker?: {
1438
- environment?: string | null;
1439
- service?: string | null;
1487
+ assets?: {
1488
+ config?: {
1489
+ htmlHandling?:
1490
+ | "auto-trailing-slash"
1491
+ | "force-trailing-slash"
1492
+ | "drop-trailing-slash"
1493
+ | "none"
1494
+ | null;
1495
+ notFoundHandling?:
1496
+ | "none"
1497
+ | "404-page"
1498
+ | "single-page-application"
1499
+ | null;
1500
+ runWorkerFirst?: string[] | boolean | null;
1501
+ } | null;
1502
+ jwt?: string | null;
1503
+ } | null;
1504
+ bindings?:
1505
+ | (
1506
+ | { name: string; type: "ai" }
1507
+ | { dataset: string; name: string; type: "analytics_engine" }
1508
+ | { name: string; type: "assets" }
1509
+ | { name: string; type: "browser" }
1510
+ | { id: string; name: string; type: "d1" }
1511
+ | { name: string; part: string; type: "data_blob" }
1512
+ | {
1513
+ name: string;
1514
+ namespace: string;
1515
+ type: "dispatch_namespace";
1516
+ outbound?: {
1517
+ params?: string[] | null;
1518
+ worker?: {
1519
+ environment?: string | null;
1520
+ service?: string | null;
1521
+ } | null;
1440
1522
  } | null;
1441
- } | null;
1442
- }
1443
- | {
1444
- name: string;
1445
- type: "durable_object_namespace";
1446
- className?: string | null;
1447
- environment?: string | null;
1448
- namespaceId?: string | null;
1449
- scriptName?: string | null;
1450
- }
1451
- | { id: string; name: string; type: "hyperdrive" }
1452
- | {
1453
- name: string;
1454
- type: "inherit";
1455
- oldName?: string | null;
1456
- versionId?: string | null;
1457
- }
1458
- | { name: string; type: "images" }
1459
- | { json: string; name: string; type: "json" }
1460
- | { name: string; namespaceId: string; type: "kv_namespace" }
1461
- | { certificateId: string; name: string; type: "mtls_certificate" }
1462
- | { name: string; text: string; type: "plain_text" }
1463
- | { name: string; pipeline: string; type: "pipelines" }
1464
- | { name: string; queueName: string; type: "queue" }
1465
- | {
1466
- bucketName: string;
1467
- name: string;
1468
- type: "r2_bucket";
1469
- jurisdiction?: "eu" | "fedramp" | null;
1470
- }
1471
- | { name: string; type: "secret_text" }
1472
- | {
1473
- name: string;
1474
- type: "send_email";
1475
- allowedDestinationAddresses?: string[] | null;
1476
- allowedSenderAddresses?: string[] | null;
1477
- destinationAddress?: string | null;
1478
- }
1479
- | {
1480
- name: string;
1481
- service: string;
1482
- type: "service";
1483
- environment?: string | null;
1484
- }
1485
- | { name: string; part: string; type: "text_blob" }
1486
- | { indexName: string; name: string; type: "vectorize" }
1487
- | { name: string; type: "version_metadata" }
1488
- | {
1489
- name: string;
1490
- secretName: string;
1491
- storeId: string;
1492
- type: "secrets_store_secret";
1493
- }
1494
- | {
1495
- algorithm: unknown;
1496
- format: "raw" | "pkcs8" | "spki" | "jwk";
1497
- name: string;
1498
- type: "secret_key";
1499
- usages: (
1500
- | "encrypt"
1501
- | "decrypt"
1502
- | "sign"
1503
- | "verify"
1504
- | "deriveKey"
1505
- | "deriveBits"
1506
- | "wrapKey"
1507
- | "unwrapKey"
1508
- )[];
1509
- }
1510
- | {
1511
- name: string;
1512
- type: "workflow";
1513
- workflowName: string;
1514
- className?: string | null;
1515
- scriptName?: string | null;
1516
- }
1517
- | { name: string; part: string; type: "wasm_module" }
1518
- )[]
1519
- | null;
1520
- compatibilityDate?: string | null;
1521
- compatibilityFlags?: string[] | null;
1522
- limits?: { cpuMs: number } | null;
1523
- mainModule?: string | null;
1524
- migrations?: unknown | null;
1525
- modules?:
1526
- | { contentBase64: string; contentType: string; name: string }[]
1527
- | null;
1528
- placement?: { mode?: "smart" | null } | null;
1529
- source?: string | null;
1530
- startupTimeMs?: number | null;
1531
- usageModel?: "standard" | "bundled" | "unbound" | null;
1532
- }[];
1533
-
1534
- export const ListBetaWorkerVersionsResponse =
1535
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1536
- Schema.Struct({
1537
- id: Schema.String,
1538
- createdOn: Schema.String,
1539
- number: Schema.Number,
1540
- annotations: Schema.optional(
1541
- Schema.Union([
1542
- Schema.Struct({
1543
- workersMessage: Schema.optional(
1544
- Schema.Union([Schema.String, Schema.Null]),
1545
- ),
1546
- workersTag: Schema.optional(
1547
- Schema.Union([Schema.String, Schema.Null]),
1548
- ),
1549
- workersTriggeredBy: Schema.optional(
1550
- Schema.Union([Schema.String, Schema.Null]),
1551
- ),
1552
- }).pipe(
1553
- Schema.encodeKeys({
1554
- workersMessage: "workers/message",
1555
- workersTag: "workers/tag",
1556
- workersTriggeredBy: "workers/triggered_by",
1557
- }),
1558
- ),
1559
- Schema.Null,
1560
- ]),
1561
- ),
1562
- assets: Schema.optional(
1563
- Schema.Union([
1564
- Schema.Struct({
1565
- config: Schema.optional(
1523
+ }
1524
+ | {
1525
+ name: string;
1526
+ type: "durable_object_namespace";
1527
+ className?: string | null;
1528
+ environment?: string | null;
1529
+ namespaceId?: string | null;
1530
+ scriptName?: string | null;
1531
+ }
1532
+ | { id: string; name: string; type: "hyperdrive" }
1533
+ | {
1534
+ name: string;
1535
+ type: "inherit";
1536
+ oldName?: string | null;
1537
+ versionId?: string | null;
1538
+ }
1539
+ | { name: string; type: "images" }
1540
+ | { json: string; name: string; type: "json" }
1541
+ | { name: string; namespaceId: string; type: "kv_namespace" }
1542
+ | { certificateId: string; name: string; type: "mtls_certificate" }
1543
+ | { name: string; text: string; type: "plain_text" }
1544
+ | { name: string; pipeline: string; type: "pipelines" }
1545
+ | { name: string; queueName: string; type: "queue" }
1546
+ | {
1547
+ bucketName: string;
1548
+ name: string;
1549
+ type: "r2_bucket";
1550
+ jurisdiction?: "eu" | "fedramp" | null;
1551
+ }
1552
+ | { name: string; type: "secret_text" }
1553
+ | {
1554
+ name: string;
1555
+ type: "send_email";
1556
+ allowedDestinationAddresses?: string[] | null;
1557
+ allowedSenderAddresses?: string[] | null;
1558
+ destinationAddress?: string | null;
1559
+ }
1560
+ | {
1561
+ name: string;
1562
+ service: string;
1563
+ type: "service";
1564
+ environment?: string | null;
1565
+ }
1566
+ | { name: string; part: string; type: "text_blob" }
1567
+ | { indexName: string; name: string; type: "vectorize" }
1568
+ | { name: string; type: "version_metadata" }
1569
+ | {
1570
+ name: string;
1571
+ secretName: string;
1572
+ storeId: string;
1573
+ type: "secrets_store_secret";
1574
+ }
1575
+ | {
1576
+ algorithm: unknown;
1577
+ format: "raw" | "pkcs8" | "spki" | "jwk";
1578
+ name: string;
1579
+ type: "secret_key";
1580
+ usages: (
1581
+ | "encrypt"
1582
+ | "decrypt"
1583
+ | "sign"
1584
+ | "verify"
1585
+ | "deriveKey"
1586
+ | "deriveBits"
1587
+ | "wrapKey"
1588
+ | "unwrapKey"
1589
+ )[];
1590
+ }
1591
+ | {
1592
+ name: string;
1593
+ type: "workflow";
1594
+ workflowName: string;
1595
+ className?: string | null;
1596
+ scriptName?: string | null;
1597
+ }
1598
+ | { name: string; part: string; type: "wasm_module" }
1599
+ )[]
1600
+ | null;
1601
+ compatibilityDate?: string | null;
1602
+ compatibilityFlags?: string[] | null;
1603
+ limits?: { cpuMs: number } | null;
1604
+ mainModule?: string | null;
1605
+ migrations?: unknown | null;
1606
+ modules?:
1607
+ | { contentBase64: string; contentType: string; name: string }[]
1608
+ | null;
1609
+ placement?: { mode?: "smart" | null } | null;
1610
+ source?: string | null;
1611
+ startupTimeMs?: number | null;
1612
+ usageModel?: "standard" | "bundled" | "unbound" | null;
1613
+ }[];
1614
+ resultInfo: {
1615
+ count?: number | null;
1616
+ page?: number | null;
1617
+ perPage?: number | null;
1618
+ totalCount?: number | null;
1619
+ };
1620
+ }
1621
+
1622
+ export const ListBetaWorkerVersionsResponse =
1623
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1624
+ result: Schema.Array(
1625
+ Schema.Struct({
1626
+ id: Schema.String,
1627
+ createdOn: Schema.String,
1628
+ number: Schema.Number,
1629
+ annotations: Schema.optional(
1630
+ Schema.Union([
1631
+ Schema.Struct({
1632
+ workersMessage: Schema.optional(
1633
+ Schema.Union([Schema.String, Schema.Null]),
1634
+ ),
1635
+ workersTag: Schema.optional(
1636
+ Schema.Union([Schema.String, Schema.Null]),
1637
+ ),
1638
+ workersTriggeredBy: Schema.optional(
1639
+ Schema.Union([Schema.String, Schema.Null]),
1640
+ ),
1641
+ }).pipe(
1642
+ Schema.encodeKeys({
1643
+ workersMessage: "workers/message",
1644
+ workersTag: "workers/tag",
1645
+ workersTriggeredBy: "workers/triggered_by",
1646
+ }),
1647
+ ),
1648
+ Schema.Null,
1649
+ ]),
1650
+ ),
1651
+ assets: Schema.optional(
1652
+ Schema.Union([
1653
+ Schema.Struct({
1654
+ config: Schema.optional(
1655
+ Schema.Union([
1656
+ Schema.Struct({
1657
+ htmlHandling: Schema.optional(
1658
+ Schema.Union([
1659
+ Schema.Literals([
1660
+ "auto-trailing-slash",
1661
+ "force-trailing-slash",
1662
+ "drop-trailing-slash",
1663
+ "none",
1664
+ ]),
1665
+ Schema.Null,
1666
+ ]),
1667
+ ),
1668
+ notFoundHandling: Schema.optional(
1669
+ Schema.Union([
1670
+ Schema.Literals([
1671
+ "none",
1672
+ "404-page",
1673
+ "single-page-application",
1674
+ ]),
1675
+ Schema.Null,
1676
+ ]),
1677
+ ),
1678
+ runWorkerFirst: Schema.optional(
1679
+ Schema.Union([
1680
+ Schema.Union([
1681
+ Schema.Array(Schema.String),
1682
+ Schema.Boolean,
1683
+ ]),
1684
+ Schema.Null,
1685
+ ]),
1686
+ ),
1687
+ }).pipe(
1688
+ Schema.encodeKeys({
1689
+ htmlHandling: "html_handling",
1690
+ notFoundHandling: "not_found_handling",
1691
+ runWorkerFirst: "run_worker_first",
1692
+ }),
1693
+ ),
1694
+ Schema.Null,
1695
+ ]),
1696
+ ),
1697
+ jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1698
+ }),
1699
+ Schema.Null,
1700
+ ]),
1701
+ ),
1702
+ bindings: Schema.optional(
1703
+ Schema.Union([
1704
+ Schema.Array(
1566
1705
  Schema.Union([
1567
1706
  Schema.Struct({
1568
- htmlHandling: Schema.optional(
1707
+ name: Schema.String,
1708
+ type: Schema.Literal("ai"),
1709
+ }),
1710
+ Schema.Struct({
1711
+ dataset: Schema.String,
1712
+ name: Schema.String,
1713
+ type: Schema.Literal("analytics_engine"),
1714
+ }),
1715
+ Schema.Struct({
1716
+ name: Schema.String,
1717
+ type: Schema.Literal("assets"),
1718
+ }),
1719
+ Schema.Struct({
1720
+ name: Schema.String,
1721
+ type: Schema.Literal("browser"),
1722
+ }),
1723
+ Schema.Struct({
1724
+ id: Schema.String,
1725
+ name: Schema.String,
1726
+ type: Schema.Literal("d1"),
1727
+ }),
1728
+ Schema.Struct({
1729
+ name: Schema.String,
1730
+ part: Schema.String,
1731
+ type: Schema.Literal("data_blob"),
1732
+ }),
1733
+ Schema.Struct({
1734
+ name: Schema.String,
1735
+ namespace: Schema.String,
1736
+ type: Schema.Literal("dispatch_namespace"),
1737
+ outbound: Schema.optional(
1569
1738
  Schema.Union([
1570
- Schema.Literals([
1571
- "auto-trailing-slash",
1572
- "force-trailing-slash",
1573
- "drop-trailing-slash",
1574
- "none",
1575
- ]),
1739
+ Schema.Struct({
1740
+ params: Schema.optional(
1741
+ Schema.Union([
1742
+ Schema.Array(Schema.String),
1743
+ Schema.Null,
1744
+ ]),
1745
+ ),
1746
+ worker: Schema.optional(
1747
+ Schema.Union([
1748
+ Schema.Struct({
1749
+ environment: Schema.optional(
1750
+ Schema.Union([Schema.String, Schema.Null]),
1751
+ ),
1752
+ service: Schema.optional(
1753
+ Schema.Union([Schema.String, Schema.Null]),
1754
+ ),
1755
+ }),
1756
+ Schema.Null,
1757
+ ]),
1758
+ ),
1759
+ }),
1576
1760
  Schema.Null,
1577
1761
  ]),
1578
1762
  ),
1579
- notFoundHandling: Schema.optional(
1580
- Schema.Union([
1581
- Schema.Literals([
1582
- "none",
1583
- "404-page",
1584
- "single-page-application",
1585
- ]),
1586
- Schema.Null,
1587
- ]),
1763
+ }),
1764
+ Schema.Struct({
1765
+ name: Schema.String,
1766
+ type: Schema.Literal("durable_object_namespace"),
1767
+ className: Schema.optional(
1768
+ Schema.Union([Schema.String, Schema.Null]),
1588
1769
  ),
1589
- runWorkerFirst: Schema.optional(
1590
- Schema.Union([
1591
- Schema.Union([
1592
- Schema.Array(Schema.String),
1593
- Schema.Boolean,
1594
- ]),
1595
- Schema.Null,
1596
- ]),
1770
+ environment: Schema.optional(
1771
+ Schema.Union([Schema.String, Schema.Null]),
1772
+ ),
1773
+ namespaceId: Schema.optional(
1774
+ Schema.Union([Schema.String, Schema.Null]),
1775
+ ),
1776
+ scriptName: Schema.optional(
1777
+ Schema.Union([Schema.String, Schema.Null]),
1597
1778
  ),
1598
1779
  }).pipe(
1599
1780
  Schema.encodeKeys({
1600
- htmlHandling: "html_handling",
1601
- notFoundHandling: "not_found_handling",
1602
- runWorkerFirst: "run_worker_first",
1781
+ name: "name",
1782
+ type: "type",
1783
+ className: "class_name",
1784
+ environment: "environment",
1785
+ namespaceId: "namespace_id",
1786
+ scriptName: "script_name",
1603
1787
  }),
1604
1788
  ),
1605
- Schema.Null,
1606
- ]),
1607
- ),
1608
- jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1609
- }),
1610
- Schema.Null,
1611
- ]),
1612
- ),
1613
- bindings: Schema.optional(
1614
- Schema.Union([
1615
- Schema.Array(
1616
- Schema.Union([
1617
- Schema.Struct({
1618
- name: Schema.String,
1619
- type: Schema.Literal("ai"),
1620
- }),
1621
- Schema.Struct({
1622
- dataset: Schema.String,
1623
- name: Schema.String,
1624
- type: Schema.Literal("analytics_engine"),
1625
- }),
1626
- Schema.Struct({
1627
- name: Schema.String,
1628
- type: Schema.Literal("assets"),
1629
- }),
1630
- Schema.Struct({
1631
- name: Schema.String,
1632
- type: Schema.Literal("browser"),
1633
- }),
1634
- Schema.Struct({
1635
- id: Schema.String,
1636
- name: Schema.String,
1637
- type: Schema.Literal("d1"),
1638
- }),
1639
- Schema.Struct({
1640
- name: Schema.String,
1641
- part: Schema.String,
1642
- type: Schema.Literal("data_blob"),
1643
- }),
1644
- Schema.Struct({
1645
- name: Schema.String,
1646
- namespace: Schema.String,
1647
- type: Schema.Literal("dispatch_namespace"),
1648
- outbound: Schema.optional(
1649
- Schema.Union([
1650
- Schema.Struct({
1651
- params: Schema.optional(
1652
- Schema.Union([
1653
- Schema.Array(Schema.String),
1654
- Schema.Null,
1655
- ]),
1656
- ),
1657
- worker: Schema.optional(
1658
- Schema.Union([
1659
- Schema.Struct({
1660
- environment: Schema.optional(
1661
- Schema.Union([Schema.String, Schema.Null]),
1662
- ),
1663
- service: Schema.optional(
1664
- Schema.Union([Schema.String, Schema.Null]),
1665
- ),
1666
- }),
1667
- Schema.Null,
1668
- ]),
1669
- ),
1670
- }),
1671
- Schema.Null,
1672
- ]),
1673
- ),
1674
- }),
1675
- Schema.Struct({
1676
- name: Schema.String,
1677
- type: Schema.Literal("durable_object_namespace"),
1678
- className: Schema.optional(
1679
- Schema.Union([Schema.String, Schema.Null]),
1680
- ),
1681
- environment: Schema.optional(
1682
- Schema.Union([Schema.String, Schema.Null]),
1683
- ),
1684
- namespaceId: Schema.optional(
1685
- Schema.Union([Schema.String, Schema.Null]),
1686
- ),
1687
- scriptName: Schema.optional(
1688
- Schema.Union([Schema.String, Schema.Null]),
1689
- ),
1690
- }).pipe(
1691
- Schema.encodeKeys({
1692
- name: "name",
1693
- type: "type",
1694
- className: "class_name",
1695
- environment: "environment",
1696
- namespaceId: "namespace_id",
1697
- scriptName: "script_name",
1789
+ Schema.Struct({
1790
+ id: Schema.String,
1791
+ name: Schema.String,
1792
+ type: Schema.Literal("hyperdrive"),
1698
1793
  }),
1699
- ),
1700
- Schema.Struct({
1701
- id: Schema.String,
1702
- name: Schema.String,
1703
- type: Schema.Literal("hyperdrive"),
1704
- }),
1705
- Schema.Struct({
1706
- name: Schema.String,
1707
- type: Schema.Literal("inherit"),
1708
- oldName: Schema.optional(
1709
- Schema.Union([Schema.String, Schema.Null]),
1710
- ),
1711
- versionId: Schema.optional(
1712
- Schema.Union([Schema.String, Schema.Null]),
1794
+ Schema.Struct({
1795
+ name: Schema.String,
1796
+ type: Schema.Literal("inherit"),
1797
+ oldName: Schema.optional(
1798
+ Schema.Union([Schema.String, Schema.Null]),
1799
+ ),
1800
+ versionId: Schema.optional(
1801
+ Schema.Union([Schema.String, Schema.Null]),
1802
+ ),
1803
+ }).pipe(
1804
+ Schema.encodeKeys({
1805
+ name: "name",
1806
+ type: "type",
1807
+ oldName: "old_name",
1808
+ versionId: "version_id",
1809
+ }),
1713
1810
  ),
1714
- }).pipe(
1715
- Schema.encodeKeys({
1716
- name: "name",
1717
- type: "type",
1718
- oldName: "old_name",
1719
- versionId: "version_id",
1720
- }),
1721
- ),
1722
- Schema.Struct({
1723
- name: Schema.String,
1724
- type: Schema.Literal("images"),
1725
- }),
1726
- Schema.Struct({
1727
- json: Schema.String,
1728
- name: Schema.String,
1729
- type: Schema.Literal("json"),
1730
- }),
1731
- Schema.Struct({
1732
- name: Schema.String,
1733
- namespaceId: Schema.String,
1734
- type: Schema.Literal("kv_namespace"),
1735
- }).pipe(
1736
- Schema.encodeKeys({
1737
- name: "name",
1738
- namespaceId: "namespace_id",
1739
- type: "type",
1740
- }),
1741
- ),
1742
- Schema.Struct({
1743
- certificateId: Schema.String,
1744
- name: Schema.String,
1745
- type: Schema.Literal("mtls_certificate"),
1746
- }).pipe(
1747
- Schema.encodeKeys({
1748
- certificateId: "certificate_id",
1749
- name: "name",
1750
- type: "type",
1811
+ Schema.Struct({
1812
+ name: Schema.String,
1813
+ type: Schema.Literal("images"),
1751
1814
  }),
1752
- ),
1753
- Schema.Struct({
1754
- name: Schema.String,
1755
- text: Schema.String,
1756
- type: Schema.Literal("plain_text"),
1757
- }),
1758
- Schema.Struct({
1759
- name: Schema.String,
1760
- pipeline: Schema.String,
1761
- type: Schema.Literal("pipelines"),
1762
- }),
1763
- Schema.Struct({
1764
- name: Schema.String,
1765
- queueName: Schema.String,
1766
- type: Schema.Literal("queue"),
1767
- }).pipe(
1768
- Schema.encodeKeys({
1769
- name: "name",
1770
- queueName: "queue_name",
1771
- type: "type",
1815
+ Schema.Struct({
1816
+ json: Schema.String,
1817
+ name: Schema.String,
1818
+ type: Schema.Literal("json"),
1772
1819
  }),
1773
- ),
1774
- Schema.Struct({
1775
- bucketName: Schema.String,
1776
- name: Schema.String,
1777
- type: Schema.Literal("r2_bucket"),
1778
- jurisdiction: Schema.optional(
1779
- Schema.Union([
1780
- Schema.Literals(["eu", "fedramp"]),
1781
- Schema.Null,
1782
- ]),
1820
+ Schema.Struct({
1821
+ name: Schema.String,
1822
+ namespaceId: Schema.String,
1823
+ type: Schema.Literal("kv_namespace"),
1824
+ }).pipe(
1825
+ Schema.encodeKeys({
1826
+ name: "name",
1827
+ namespaceId: "namespace_id",
1828
+ type: "type",
1829
+ }),
1783
1830
  ),
1784
- }).pipe(
1785
- Schema.encodeKeys({
1786
- bucketName: "bucket_name",
1787
- name: "name",
1788
- type: "type",
1789
- jurisdiction: "jurisdiction",
1831
+ Schema.Struct({
1832
+ certificateId: Schema.String,
1833
+ name: Schema.String,
1834
+ type: Schema.Literal("mtls_certificate"),
1835
+ }).pipe(
1836
+ Schema.encodeKeys({
1837
+ certificateId: "certificate_id",
1838
+ name: "name",
1839
+ type: "type",
1840
+ }),
1841
+ ),
1842
+ Schema.Struct({
1843
+ name: Schema.String,
1844
+ text: Schema.String,
1845
+ type: Schema.Literal("plain_text"),
1790
1846
  }),
1791
- ),
1792
- Schema.Struct({
1793
- name: Schema.String,
1794
- type: Schema.Literal("secret_text"),
1795
- }),
1796
- Schema.Struct({
1797
- name: Schema.String,
1798
- type: Schema.Literal("send_email"),
1799
- allowedDestinationAddresses: Schema.optional(
1800
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1847
+ Schema.Struct({
1848
+ name: Schema.String,
1849
+ pipeline: Schema.String,
1850
+ type: Schema.Literal("pipelines"),
1851
+ }),
1852
+ Schema.Struct({
1853
+ name: Schema.String,
1854
+ queueName: Schema.String,
1855
+ type: Schema.Literal("queue"),
1856
+ }).pipe(
1857
+ Schema.encodeKeys({
1858
+ name: "name",
1859
+ queueName: "queue_name",
1860
+ type: "type",
1861
+ }),
1801
1862
  ),
1802
- allowedSenderAddresses: Schema.optional(
1803
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1863
+ Schema.Struct({
1864
+ bucketName: Schema.String,
1865
+ name: Schema.String,
1866
+ type: Schema.Literal("r2_bucket"),
1867
+ jurisdiction: Schema.optional(
1868
+ Schema.Union([
1869
+ Schema.Literals(["eu", "fedramp"]),
1870
+ Schema.Null,
1871
+ ]),
1872
+ ),
1873
+ }).pipe(
1874
+ Schema.encodeKeys({
1875
+ bucketName: "bucket_name",
1876
+ name: "name",
1877
+ type: "type",
1878
+ jurisdiction: "jurisdiction",
1879
+ }),
1804
1880
  ),
1805
- destinationAddress: Schema.optional(
1806
- Schema.Union([Schema.String, Schema.Null]),
1881
+ Schema.Struct({
1882
+ name: Schema.String,
1883
+ type: Schema.Literal("secret_text"),
1884
+ }),
1885
+ Schema.Struct({
1886
+ name: Schema.String,
1887
+ type: Schema.Literal("send_email"),
1888
+ allowedDestinationAddresses: Schema.optional(
1889
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1890
+ ),
1891
+ allowedSenderAddresses: Schema.optional(
1892
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1893
+ ),
1894
+ destinationAddress: Schema.optional(
1895
+ Schema.Union([Schema.String, Schema.Null]),
1896
+ ),
1897
+ }).pipe(
1898
+ Schema.encodeKeys({
1899
+ name: "name",
1900
+ type: "type",
1901
+ allowedDestinationAddresses:
1902
+ "allowed_destination_addresses",
1903
+ allowedSenderAddresses: "allowed_sender_addresses",
1904
+ destinationAddress: "destination_address",
1905
+ }),
1807
1906
  ),
1808
- }).pipe(
1809
- Schema.encodeKeys({
1810
- name: "name",
1811
- type: "type",
1812
- allowedDestinationAddresses: "allowed_destination_addresses",
1813
- allowedSenderAddresses: "allowed_sender_addresses",
1814
- destinationAddress: "destination_address",
1907
+ Schema.Struct({
1908
+ name: Schema.String,
1909
+ service: Schema.String,
1910
+ type: Schema.Literal("service"),
1911
+ environment: Schema.optional(
1912
+ Schema.Union([Schema.String, Schema.Null]),
1913
+ ),
1815
1914
  }),
1816
- ),
1817
- Schema.Struct({
1818
- name: Schema.String,
1819
- service: Schema.String,
1820
- type: Schema.Literal("service"),
1821
- environment: Schema.optional(
1822
- Schema.Union([Schema.String, Schema.Null]),
1915
+ Schema.Struct({
1916
+ name: Schema.String,
1917
+ part: Schema.String,
1918
+ type: Schema.Literal("text_blob"),
1919
+ }),
1920
+ Schema.Struct({
1921
+ indexName: Schema.String,
1922
+ name: Schema.String,
1923
+ type: Schema.Literal("vectorize"),
1924
+ }).pipe(
1925
+ Schema.encodeKeys({
1926
+ indexName: "index_name",
1927
+ name: "name",
1928
+ type: "type",
1929
+ }),
1823
1930
  ),
1824
- }),
1825
- Schema.Struct({
1826
- name: Schema.String,
1827
- part: Schema.String,
1828
- type: Schema.Literal("text_blob"),
1829
- }),
1830
- Schema.Struct({
1831
- indexName: Schema.String,
1832
- name: Schema.String,
1833
- type: Schema.Literal("vectorize"),
1834
- }).pipe(
1835
- Schema.encodeKeys({
1836
- indexName: "index_name",
1837
- name: "name",
1838
- type: "type",
1931
+ Schema.Struct({
1932
+ name: Schema.String,
1933
+ type: Schema.Literal("version_metadata"),
1839
1934
  }),
1840
- ),
1841
- Schema.Struct({
1842
- name: Schema.String,
1843
- type: Schema.Literal("version_metadata"),
1844
- }),
1845
- Schema.Struct({
1846
- name: Schema.String,
1847
- secretName: Schema.String,
1848
- storeId: Schema.String,
1849
- type: Schema.Literal("secrets_store_secret"),
1850
- }).pipe(
1851
- Schema.encodeKeys({
1852
- name: "name",
1853
- secretName: "secret_name",
1854
- storeId: "store_id",
1855
- type: "type",
1935
+ Schema.Struct({
1936
+ name: Schema.String,
1937
+ secretName: Schema.String,
1938
+ storeId: Schema.String,
1939
+ type: Schema.Literal("secrets_store_secret"),
1940
+ }).pipe(
1941
+ Schema.encodeKeys({
1942
+ name: "name",
1943
+ secretName: "secret_name",
1944
+ storeId: "store_id",
1945
+ type: "type",
1946
+ }),
1947
+ ),
1948
+ Schema.Struct({
1949
+ algorithm: Schema.Unknown,
1950
+ format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
1951
+ name: Schema.String,
1952
+ type: Schema.Literal("secret_key"),
1953
+ usages: Schema.Array(
1954
+ Schema.Literals([
1955
+ "encrypt",
1956
+ "decrypt",
1957
+ "sign",
1958
+ "verify",
1959
+ "deriveKey",
1960
+ "deriveBits",
1961
+ "wrapKey",
1962
+ "unwrapKey",
1963
+ ]),
1964
+ ),
1856
1965
  }),
1857
- ),
1858
- Schema.Struct({
1859
- algorithm: Schema.Unknown,
1860
- format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
1861
- name: Schema.String,
1862
- type: Schema.Literal("secret_key"),
1863
- usages: Schema.Array(
1864
- Schema.Literals([
1865
- "encrypt",
1866
- "decrypt",
1867
- "sign",
1868
- "verify",
1869
- "deriveKey",
1870
- "deriveBits",
1871
- "wrapKey",
1872
- "unwrapKey",
1873
- ]),
1966
+ Schema.Struct({
1967
+ name: Schema.String,
1968
+ type: Schema.Literal("workflow"),
1969
+ workflowName: Schema.String,
1970
+ className: Schema.optional(
1971
+ Schema.Union([Schema.String, Schema.Null]),
1972
+ ),
1973
+ scriptName: Schema.optional(
1974
+ Schema.Union([Schema.String, Schema.Null]),
1975
+ ),
1976
+ }).pipe(
1977
+ Schema.encodeKeys({
1978
+ name: "name",
1979
+ type: "type",
1980
+ workflowName: "workflow_name",
1981
+ className: "class_name",
1982
+ scriptName: "script_name",
1983
+ }),
1874
1984
  ),
1875
- }),
1985
+ Schema.Struct({
1986
+ name: Schema.String,
1987
+ part: Schema.String,
1988
+ type: Schema.Literal("wasm_module"),
1989
+ }),
1990
+ ]),
1991
+ ),
1992
+ Schema.Null,
1993
+ ]),
1994
+ ),
1995
+ compatibilityDate: Schema.optional(
1996
+ Schema.Union([Schema.String, Schema.Null]),
1997
+ ),
1998
+ compatibilityFlags: Schema.optional(
1999
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2000
+ ),
2001
+ limits: Schema.optional(
2002
+ Schema.Union([
2003
+ Schema.Struct({
2004
+ cpuMs: Schema.Number,
2005
+ }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
2006
+ Schema.Null,
2007
+ ]),
2008
+ ),
2009
+ mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2010
+ migrations: Schema.optional(
2011
+ Schema.Union([Schema.Unknown, Schema.Null]),
2012
+ ),
2013
+ modules: Schema.optional(
2014
+ Schema.Union([
2015
+ Schema.Array(
1876
2016
  Schema.Struct({
2017
+ contentBase64: Schema.String,
2018
+ contentType: Schema.String,
1877
2019
  name: Schema.String,
1878
- type: Schema.Literal("workflow"),
1879
- workflowName: Schema.String,
1880
- className: Schema.optional(
1881
- Schema.Union([Schema.String, Schema.Null]),
1882
- ),
1883
- scriptName: Schema.optional(
1884
- Schema.Union([Schema.String, Schema.Null]),
1885
- ),
1886
2020
  }).pipe(
1887
2021
  Schema.encodeKeys({
2022
+ contentBase64: "content_base64",
2023
+ contentType: "content_type",
1888
2024
  name: "name",
1889
- type: "type",
1890
- workflowName: "workflow_name",
1891
- className: "class_name",
1892
- scriptName: "script_name",
1893
2025
  }),
1894
2026
  ),
1895
- Schema.Struct({
1896
- name: Schema.String,
1897
- part: Schema.String,
1898
- type: Schema.Literal("wasm_module"),
1899
- }),
1900
- ]),
1901
- ),
1902
- Schema.Null,
1903
- ]),
1904
- ),
1905
- compatibilityDate: Schema.optional(
1906
- Schema.Union([Schema.String, Schema.Null]),
1907
- ),
1908
- compatibilityFlags: Schema.optional(
1909
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1910
- ),
1911
- limits: Schema.optional(
1912
- Schema.Union([
1913
- Schema.Struct({
1914
- cpuMs: Schema.Number,
1915
- }).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
1916
- Schema.Null,
1917
- ]),
1918
- ),
1919
- mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1920
- migrations: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1921
- modules: Schema.optional(
1922
- Schema.Union([
1923
- Schema.Array(
1924
- Schema.Struct({
1925
- contentBase64: Schema.String,
1926
- contentType: Schema.String,
1927
- name: Schema.String,
1928
- }).pipe(
1929
- Schema.encodeKeys({
1930
- contentBase64: "content_base64",
1931
- contentType: "content_type",
1932
- name: "name",
1933
- }),
1934
- ),
1935
- ),
1936
- Schema.Null,
1937
- ]),
1938
- ),
1939
- placement: Schema.optional(
1940
- Schema.Union([
1941
- Schema.Struct({
1942
- mode: Schema.optional(
1943
- Schema.Union([Schema.Literal("smart"), Schema.Null]),
1944
2027
  ),
1945
- }),
1946
- Schema.Null,
1947
- ]),
1948
- ),
1949
- source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1950
- startupTimeMs: Schema.optional(
1951
- Schema.Union([Schema.Number, Schema.Null]),
1952
- ),
1953
- usageModel: Schema.optional(
1954
- Schema.Union([
1955
- Schema.Literals(["standard", "bundled", "unbound"]),
1956
- Schema.Null,
1957
- ]),
2028
+ Schema.Null,
2029
+ ]),
2030
+ ),
2031
+ placement: Schema.optional(
2032
+ Schema.Union([
2033
+ Schema.Struct({
2034
+ mode: Schema.optional(
2035
+ Schema.Union([Schema.Literal("smart"), Schema.Null]),
2036
+ ),
2037
+ }),
2038
+ Schema.Null,
2039
+ ]),
2040
+ ),
2041
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2042
+ startupTimeMs: Schema.optional(
2043
+ Schema.Union([Schema.Number, Schema.Null]),
2044
+ ),
2045
+ usageModel: Schema.optional(
2046
+ Schema.Union([
2047
+ Schema.Literals(["standard", "bundled", "unbound"]),
2048
+ Schema.Null,
2049
+ ]),
2050
+ ),
2051
+ }).pipe(
2052
+ Schema.encodeKeys({
2053
+ id: "id",
2054
+ createdOn: "created_on",
2055
+ number: "number",
2056
+ annotations: "annotations",
2057
+ assets: "assets",
2058
+ bindings: "bindings",
2059
+ compatibilityDate: "compatibility_date",
2060
+ compatibilityFlags: "compatibility_flags",
2061
+ limits: "limits",
2062
+ mainModule: "main_module",
2063
+ migrations: "migrations",
2064
+ modules: "modules",
2065
+ placement: "placement",
2066
+ source: "source",
2067
+ startupTimeMs: "startup_time_ms",
2068
+ usageModel: "usage_model",
2069
+ }),
1958
2070
  ),
2071
+ ),
2072
+ resultInfo: Schema.Struct({
2073
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2074
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2075
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2076
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1959
2077
  }).pipe(
1960
2078
  Schema.encodeKeys({
1961
- id: "id",
1962
- createdOn: "created_on",
1963
- number: "number",
1964
- annotations: "annotations",
1965
- assets: "assets",
1966
- bindings: "bindings",
1967
- compatibilityDate: "compatibility_date",
1968
- compatibilityFlags: "compatibility_flags",
1969
- limits: "limits",
1970
- mainModule: "main_module",
1971
- migrations: "migrations",
1972
- modules: "modules",
1973
- placement: "placement",
1974
- source: "source",
1975
- startupTimeMs: "startup_time_ms",
1976
- usageModel: "usage_model",
2079
+ count: "count",
2080
+ page: "page",
2081
+ perPage: "per_page",
2082
+ totalCount: "total_count",
1977
2083
  }),
1978
2084
  ),
2085
+ }).pipe(
2086
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
1979
2087
  ) as unknown as Schema.Schema<ListBetaWorkerVersionsResponse>;
1980
2088
 
1981
2089
  export type ListBetaWorkerVersionsError = DefaultErrors | WorkerNotFound;
1982
2090
 
1983
- export const listBetaWorkerVersions: API.OperationMethod<
2091
+ export const listBetaWorkerVersions: API.PaginatedOperationMethod<
1984
2092
  ListBetaWorkerVersionsRequest,
1985
2093
  ListBetaWorkerVersionsResponse,
1986
2094
  ListBetaWorkerVersionsError,
1987
2095
  Credentials | HttpClient.HttpClient
1988
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2096
+ > & {
2097
+ pages: (
2098
+ input: ListBetaWorkerVersionsRequest,
2099
+ ) => stream.Stream<
2100
+ ListBetaWorkerVersionsResponse,
2101
+ ListBetaWorkerVersionsError,
2102
+ Credentials | HttpClient.HttpClient
2103
+ >;
2104
+ items: (input: ListBetaWorkerVersionsRequest) => stream.Stream<
2105
+ {
2106
+ id: string;
2107
+ createdOn: string;
2108
+ number: number;
2109
+ annotations?: {
2110
+ workersMessage?: string | null;
2111
+ workersTag?: string | null;
2112
+ workersTriggeredBy?: string | null;
2113
+ } | null;
2114
+ assets?: {
2115
+ config?: {
2116
+ htmlHandling?:
2117
+ | "auto-trailing-slash"
2118
+ | "force-trailing-slash"
2119
+ | "drop-trailing-slash"
2120
+ | "none"
2121
+ | null;
2122
+ notFoundHandling?:
2123
+ | "none"
2124
+ | "404-page"
2125
+ | "single-page-application"
2126
+ | null;
2127
+ runWorkerFirst?: string[] | boolean | null;
2128
+ } | null;
2129
+ jwt?: string | null;
2130
+ } | null;
2131
+ bindings?:
2132
+ | (
2133
+ | { name: string; type: "ai" }
2134
+ | { dataset: string; name: string; type: "analytics_engine" }
2135
+ | { name: string; type: "assets" }
2136
+ | { name: string; type: "browser" }
2137
+ | { id: string; name: string; type: "d1" }
2138
+ | { name: string; part: string; type: "data_blob" }
2139
+ | {
2140
+ name: string;
2141
+ namespace: string;
2142
+ type: "dispatch_namespace";
2143
+ outbound?: {
2144
+ params?: string[] | null;
2145
+ worker?: {
2146
+ environment?: string | null;
2147
+ service?: string | null;
2148
+ } | null;
2149
+ } | null;
2150
+ }
2151
+ | {
2152
+ name: string;
2153
+ type: "durable_object_namespace";
2154
+ className?: string | null;
2155
+ environment?: string | null;
2156
+ namespaceId?: string | null;
2157
+ scriptName?: string | null;
2158
+ }
2159
+ | { id: string; name: string; type: "hyperdrive" }
2160
+ | {
2161
+ name: string;
2162
+ type: "inherit";
2163
+ oldName?: string | null;
2164
+ versionId?: string | null;
2165
+ }
2166
+ | { name: string; type: "images" }
2167
+ | { json: string; name: string; type: "json" }
2168
+ | { name: string; namespaceId: string; type: "kv_namespace" }
2169
+ | { certificateId: string; name: string; type: "mtls_certificate" }
2170
+ | { name: string; text: string; type: "plain_text" }
2171
+ | { name: string; pipeline: string; type: "pipelines" }
2172
+ | { name: string; queueName: string; type: "queue" }
2173
+ | {
2174
+ bucketName: string;
2175
+ name: string;
2176
+ type: "r2_bucket";
2177
+ jurisdiction?: "eu" | "fedramp" | null;
2178
+ }
2179
+ | { name: string; type: "secret_text" }
2180
+ | {
2181
+ name: string;
2182
+ type: "send_email";
2183
+ allowedDestinationAddresses?: string[] | null;
2184
+ allowedSenderAddresses?: string[] | null;
2185
+ destinationAddress?: string | null;
2186
+ }
2187
+ | {
2188
+ name: string;
2189
+ service: string;
2190
+ type: "service";
2191
+ environment?: string | null;
2192
+ }
2193
+ | { name: string; part: string; type: "text_blob" }
2194
+ | { indexName: string; name: string; type: "vectorize" }
2195
+ | { name: string; type: "version_metadata" }
2196
+ | {
2197
+ name: string;
2198
+ secretName: string;
2199
+ storeId: string;
2200
+ type: "secrets_store_secret";
2201
+ }
2202
+ | {
2203
+ algorithm: unknown;
2204
+ format: "raw" | "pkcs8" | "spki" | "jwk";
2205
+ name: string;
2206
+ type: "secret_key";
2207
+ usages: (
2208
+ | "encrypt"
2209
+ | "decrypt"
2210
+ | "sign"
2211
+ | "verify"
2212
+ | "deriveKey"
2213
+ | "deriveBits"
2214
+ | "wrapKey"
2215
+ | "unwrapKey"
2216
+ )[];
2217
+ }
2218
+ | {
2219
+ name: string;
2220
+ type: "workflow";
2221
+ workflowName: string;
2222
+ className?: string | null;
2223
+ scriptName?: string | null;
2224
+ }
2225
+ | { name: string; part: string; type: "wasm_module" }
2226
+ )[]
2227
+ | null;
2228
+ compatibilityDate?: string | null;
2229
+ compatibilityFlags?: string[] | null;
2230
+ limits?: { cpuMs: number } | null;
2231
+ mainModule?: string | null;
2232
+ migrations?: unknown | null;
2233
+ modules?:
2234
+ | { contentBase64: string; contentType: string; name: string }[]
2235
+ | null;
2236
+ placement?: { mode?: "smart" | null } | null;
2237
+ source?: string | null;
2238
+ startupTimeMs?: number | null;
2239
+ usageModel?: "standard" | "bundled" | "unbound" | null;
2240
+ },
2241
+ ListBetaWorkerVersionsError,
2242
+ Credentials | HttpClient.HttpClient
2243
+ >;
2244
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1989
2245
  input: ListBetaWorkerVersionsRequest,
1990
2246
  output: ListBetaWorkerVersionsResponse,
1991
2247
  errors: [WorkerNotFound],
2248
+ pagination: {
2249
+ mode: "page",
2250
+ inputToken: "page",
2251
+ outputToken: "resultInfo.page",
2252
+ items: "result",
2253
+ pageSize: "perPage",
2254
+ } as const,
1992
2255
  }));
1993
2256
 
1994
2257
  export interface CreateBetaWorkerVersionRequest {
@@ -3053,26 +3316,30 @@ export const CreateBetaWorkerVersionResponse =
3053
3316
  Schema.Null,
3054
3317
  ]),
3055
3318
  ),
3056
- }).pipe(
3057
- Schema.encodeKeys({
3058
- id: "id",
3059
- createdOn: "created_on",
3060
- number: "number",
3061
- annotations: "annotations",
3062
- assets: "assets",
3063
- bindings: "bindings",
3064
- compatibilityDate: "compatibility_date",
3065
- compatibilityFlags: "compatibility_flags",
3066
- limits: "limits",
3067
- mainModule: "main_module",
3068
- migrations: "migrations",
3069
- modules: "modules",
3070
- placement: "placement",
3071
- source: "source",
3072
- startupTimeMs: "startup_time_ms",
3073
- usageModel: "usage_model",
3074
- }),
3075
- ) as unknown as Schema.Schema<CreateBetaWorkerVersionResponse>;
3319
+ })
3320
+ .pipe(
3321
+ Schema.encodeKeys({
3322
+ id: "id",
3323
+ createdOn: "created_on",
3324
+ number: "number",
3325
+ annotations: "annotations",
3326
+ assets: "assets",
3327
+ bindings: "bindings",
3328
+ compatibilityDate: "compatibility_date",
3329
+ compatibilityFlags: "compatibility_flags",
3330
+ limits: "limits",
3331
+ mainModule: "main_module",
3332
+ migrations: "migrations",
3333
+ modules: "modules",
3334
+ placement: "placement",
3335
+ source: "source",
3336
+ startupTimeMs: "startup_time_ms",
3337
+ usageModel: "usage_model",
3338
+ }),
3339
+ )
3340
+ .pipe(
3341
+ T.ResponsePath("result"),
3342
+ ) as unknown as Schema.Schema<CreateBetaWorkerVersionResponse>;
3076
3343
 
3077
3344
  export type CreateBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
3078
3345
 
@@ -3235,16 +3502,20 @@ export const GetDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3235
3502
  service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3236
3503
  zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3237
3504
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3238
- }).pipe(
3239
- Schema.encodeKeys({
3240
- id: "id",
3241
- environment: "environment",
3242
- hostname: "hostname",
3243
- service: "service",
3244
- zoneId: "zone_id",
3245
- zoneName: "zone_name",
3246
- }),
3247
- ) as unknown as Schema.Schema<GetDomainResponse>;
3505
+ })
3506
+ .pipe(
3507
+ Schema.encodeKeys({
3508
+ id: "id",
3509
+ environment: "environment",
3510
+ hostname: "hostname",
3511
+ service: "service",
3512
+ zoneId: "zone_id",
3513
+ zoneName: "zone_name",
3514
+ }),
3515
+ )
3516
+ .pipe(
3517
+ T.ResponsePath("result"),
3518
+ ) as unknown as Schema.Schema<GetDomainResponse>;
3248
3519
 
3249
3520
  export type GetDomainError = DefaultErrors | DomainNotFound | InvalidRoute;
3250
3521
 
@@ -3285,46 +3556,74 @@ export const ListDomainsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3285
3556
  T.Http({ method: "GET", path: "/accounts/{account_id}/workers/domains" }),
3286
3557
  ) as unknown as Schema.Schema<ListDomainsRequest>;
3287
3558
 
3288
- export type ListDomainsResponse = {
3289
- id?: string | null;
3290
- environment?: string | null;
3291
- hostname?: string | null;
3292
- service?: string | null;
3293
- zoneId?: string | null;
3294
- zoneName?: string | null;
3295
- }[];
3559
+ export interface ListDomainsResponse {
3560
+ result: {
3561
+ id?: string | null;
3562
+ environment?: string | null;
3563
+ hostname?: string | null;
3564
+ service?: string | null;
3565
+ zoneId?: string | null;
3566
+ zoneName?: string | null;
3567
+ }[];
3568
+ }
3296
3569
 
3297
- export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3298
- Schema.Struct({
3299
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3300
- environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3301
- hostname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3302
- service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3303
- zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3304
- zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3305
- }).pipe(
3306
- Schema.encodeKeys({
3307
- id: "id",
3308
- environment: "environment",
3309
- hostname: "hostname",
3310
- service: "service",
3311
- zoneId: "zone_id",
3312
- zoneName: "zone_name",
3313
- }),
3570
+ export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3571
+ result: Schema.Array(
3572
+ Schema.Struct({
3573
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3574
+ environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3575
+ hostname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3576
+ service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3577
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3578
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3579
+ }).pipe(
3580
+ Schema.encodeKeys({
3581
+ id: "id",
3582
+ environment: "environment",
3583
+ hostname: "hostname",
3584
+ service: "service",
3585
+ zoneId: "zone_id",
3586
+ zoneName: "zone_name",
3587
+ }),
3588
+ ),
3314
3589
  ),
3315
- ) as unknown as Schema.Schema<ListDomainsResponse>;
3590
+ }) as unknown as Schema.Schema<ListDomainsResponse>;
3316
3591
 
3317
3592
  export type ListDomainsError = DefaultErrors | InvalidRoute;
3318
3593
 
3319
- export const listDomains: API.OperationMethod<
3594
+ export const listDomains: API.PaginatedOperationMethod<
3320
3595
  ListDomainsRequest,
3321
3596
  ListDomainsResponse,
3322
3597
  ListDomainsError,
3323
3598
  Credentials | HttpClient.HttpClient
3324
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3599
+ > & {
3600
+ pages: (
3601
+ input: ListDomainsRequest,
3602
+ ) => stream.Stream<
3603
+ ListDomainsResponse,
3604
+ ListDomainsError,
3605
+ Credentials | HttpClient.HttpClient
3606
+ >;
3607
+ items: (input: ListDomainsRequest) => stream.Stream<
3608
+ {
3609
+ id?: string | null;
3610
+ environment?: string | null;
3611
+ hostname?: string | null;
3612
+ service?: string | null;
3613
+ zoneId?: string | null;
3614
+ zoneName?: string | null;
3615
+ },
3616
+ ListDomainsError,
3617
+ Credentials | HttpClient.HttpClient
3618
+ >;
3619
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3325
3620
  input: ListDomainsRequest,
3326
3621
  output: ListDomainsResponse,
3327
3622
  errors: [InvalidRoute],
3623
+ pagination: {
3624
+ mode: "single",
3625
+ items: "result",
3626
+ } as const,
3328
3627
  }));
3329
3628
 
3330
3629
  export interface PutDomainRequest {
@@ -3378,16 +3677,20 @@ export const PutDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3378
3677
  service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3379
3678
  zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3380
3679
  zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
3381
- }).pipe(
3382
- Schema.encodeKeys({
3383
- id: "id",
3384
- environment: "environment",
3385
- hostname: "hostname",
3386
- service: "service",
3387
- zoneId: "zone_id",
3388
- zoneName: "zone_name",
3389
- }),
3390
- ) as unknown as Schema.Schema<PutDomainResponse>;
3680
+ })
3681
+ .pipe(
3682
+ Schema.encodeKeys({
3683
+ id: "id",
3684
+ environment: "environment",
3685
+ hostname: "hostname",
3686
+ service: "service",
3687
+ zoneId: "zone_id",
3688
+ zoneName: "zone_name",
3689
+ }),
3690
+ )
3691
+ .pipe(
3692
+ T.ResponsePath("result"),
3693
+ ) as unknown as Schema.Schema<PutDomainResponse>;
3391
3694
 
3392
3695
  export type PutDomainError = DefaultErrors | WorkerNotFound | InvalidRoute;
3393
3696
 
@@ -3569,32 +3872,55 @@ export const KeysObservabilityTelemetryRequest =
3569
3872
  }),
3570
3873
  ) as unknown as Schema.Schema<KeysObservabilityTelemetryRequest>;
3571
3874
 
3572
- export type KeysObservabilityTelemetryResponse = {
3573
- key: string;
3574
- lastSeenAt: number;
3575
- type: "string" | "boolean" | "number";
3576
- }[];
3875
+ export interface KeysObservabilityTelemetryResponse {
3876
+ result: {
3877
+ key: string;
3878
+ lastSeenAt: number;
3879
+ type: "string" | "boolean" | "number";
3880
+ }[];
3881
+ }
3577
3882
 
3578
3883
  export const KeysObservabilityTelemetryResponse =
3579
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
3580
- Schema.Struct({
3581
- key: Schema.String,
3582
- lastSeenAt: Schema.Number,
3583
- type: Schema.Literals(["string", "boolean", "number"]),
3584
- }),
3585
- ) as unknown as Schema.Schema<KeysObservabilityTelemetryResponse>;
3884
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3885
+ result: Schema.Array(
3886
+ Schema.Struct({
3887
+ key: Schema.String,
3888
+ lastSeenAt: Schema.Number,
3889
+ type: Schema.Literals(["string", "boolean", "number"]),
3890
+ }),
3891
+ ),
3892
+ }) as unknown as Schema.Schema<KeysObservabilityTelemetryResponse>;
3586
3893
 
3587
3894
  export type KeysObservabilityTelemetryError = DefaultErrors | InvalidRoute;
3588
3895
 
3589
- export const keysObservabilityTelemetry: API.OperationMethod<
3896
+ export const keysObservabilityTelemetry: API.PaginatedOperationMethod<
3590
3897
  KeysObservabilityTelemetryRequest,
3591
3898
  KeysObservabilityTelemetryResponse,
3592
3899
  KeysObservabilityTelemetryError,
3593
3900
  Credentials | HttpClient.HttpClient
3594
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3901
+ > & {
3902
+ pages: (
3903
+ input: KeysObservabilityTelemetryRequest,
3904
+ ) => stream.Stream<
3905
+ KeysObservabilityTelemetryResponse,
3906
+ KeysObservabilityTelemetryError,
3907
+ Credentials | HttpClient.HttpClient
3908
+ >;
3909
+ items: (
3910
+ input: KeysObservabilityTelemetryRequest,
3911
+ ) => stream.Stream<
3912
+ { key: string; lastSeenAt: number; type: "string" | "boolean" | "number" },
3913
+ KeysObservabilityTelemetryError,
3914
+ Credentials | HttpClient.HttpClient
3915
+ >;
3916
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
3595
3917
  input: KeysObservabilityTelemetryRequest,
3596
3918
  output: KeysObservabilityTelemetryResponse,
3597
3919
  errors: [InvalidRoute],
3920
+ pagination: {
3921
+ mode: "single",
3922
+ items: "result",
3923
+ } as const,
3598
3924
  }));
3599
3925
 
3600
3926
  export interface QueryObservabilityTelemetryRequest {
@@ -4961,7 +5287,9 @@ export const QueryObservabilityTelemetryResponse =
4961
5287
  Schema.Null,
4962
5288
  ]),
4963
5289
  ),
4964
- }) as unknown as Schema.Schema<QueryObservabilityTelemetryResponse>;
5290
+ }).pipe(
5291
+ T.ResponsePath("result"),
5292
+ ) as unknown as Schema.Schema<QueryObservabilityTelemetryResponse>;
4965
5293
 
4966
5294
  export type QueryObservabilityTelemetryError = DefaultErrors | InvalidRoute;
4967
5295
 
@@ -5098,34 +5426,60 @@ export const ValuesObservabilityTelemetryRequest =
5098
5426
  }),
5099
5427
  ) as unknown as Schema.Schema<ValuesObservabilityTelemetryRequest>;
5100
5428
 
5101
- export type ValuesObservabilityTelemetryResponse = {
5102
- dataset: string;
5103
- key: string;
5104
- type: "string" | "boolean" | "number";
5105
- value: string | number | boolean;
5106
- }[];
5429
+ export interface ValuesObservabilityTelemetryResponse {
5430
+ result: {
5431
+ dataset: string;
5432
+ key: string;
5433
+ type: "string" | "boolean" | "number";
5434
+ value: string | number | boolean;
5435
+ }[];
5436
+ }
5107
5437
 
5108
5438
  export const ValuesObservabilityTelemetryResponse =
5109
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
5110
- Schema.Struct({
5111
- dataset: Schema.String,
5112
- key: Schema.String,
5113
- type: Schema.Literals(["string", "boolean", "number"]),
5114
- value: Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
5115
- }),
5116
- ) as unknown as Schema.Schema<ValuesObservabilityTelemetryResponse>;
5439
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5440
+ result: Schema.Array(
5441
+ Schema.Struct({
5442
+ dataset: Schema.String,
5443
+ key: Schema.String,
5444
+ type: Schema.Literals(["string", "boolean", "number"]),
5445
+ value: Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
5446
+ }),
5447
+ ),
5448
+ }) as unknown as Schema.Schema<ValuesObservabilityTelemetryResponse>;
5117
5449
 
5118
5450
  export type ValuesObservabilityTelemetryError = DefaultErrors | InvalidRoute;
5119
5451
 
5120
- export const valuesObservabilityTelemetry: API.OperationMethod<
5452
+ export const valuesObservabilityTelemetry: API.PaginatedOperationMethod<
5121
5453
  ValuesObservabilityTelemetryRequest,
5122
5454
  ValuesObservabilityTelemetryResponse,
5123
5455
  ValuesObservabilityTelemetryError,
5124
5456
  Credentials | HttpClient.HttpClient
5125
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5457
+ > & {
5458
+ pages: (
5459
+ input: ValuesObservabilityTelemetryRequest,
5460
+ ) => stream.Stream<
5461
+ ValuesObservabilityTelemetryResponse,
5462
+ ValuesObservabilityTelemetryError,
5463
+ Credentials | HttpClient.HttpClient
5464
+ >;
5465
+ items: (input: ValuesObservabilityTelemetryRequest) => stream.Stream<
5466
+ {
5467
+ dataset: string;
5468
+ key: string;
5469
+ type: "string" | "boolean" | "number";
5470
+ value: string | number | boolean;
5471
+ },
5472
+ ValuesObservabilityTelemetryError,
5473
+ Credentials | HttpClient.HttpClient
5474
+ >;
5475
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
5126
5476
  input: ValuesObservabilityTelemetryRequest,
5127
5477
  output: ValuesObservabilityTelemetryResponse,
5128
5478
  errors: [InvalidRoute],
5479
+ pagination: {
5480
+ mode: "single",
5481
+ items: "result",
5482
+ } as const,
5129
5483
  }));
5130
5484
 
5131
5485
  // =============================================================================
@@ -5158,7 +5512,7 @@ export const GetRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5158
5512
  id: Schema.String,
5159
5513
  pattern: Schema.String,
5160
5514
  script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5161
- }) as unknown as Schema.Schema<GetRouteResponse>;
5515
+ }).pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetRouteResponse>;
5162
5516
 
5163
5517
  export type GetRouteError = DefaultErrors | WorkerNotFound | InvalidRoute;
5164
5518
 
@@ -5184,31 +5538,50 @@ export const ListRoutesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5184
5538
  T.Http({ method: "GET", path: "/zones/{zone_id}/workers/routes" }),
5185
5539
  ) as unknown as Schema.Schema<ListRoutesRequest>;
5186
5540
 
5187
- export type ListRoutesResponse = {
5188
- id: string;
5189
- pattern: string;
5190
- script?: string | null;
5191
- }[];
5541
+ export interface ListRoutesResponse {
5542
+ result: { id: string; pattern: string; script?: string | null }[];
5543
+ }
5192
5544
 
5193
- export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
5194
- Schema.Struct({
5195
- id: Schema.String,
5196
- pattern: Schema.String,
5197
- script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5198
- }),
5199
- ) as unknown as Schema.Schema<ListRoutesResponse>;
5545
+ export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5546
+ result: Schema.Array(
5547
+ Schema.Struct({
5548
+ id: Schema.String,
5549
+ pattern: Schema.String,
5550
+ script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5551
+ }),
5552
+ ),
5553
+ }) as unknown as Schema.Schema<ListRoutesResponse>;
5200
5554
 
5201
5555
  export type ListRoutesError = DefaultErrors | InvalidRoute;
5202
5556
 
5203
- export const listRoutes: API.OperationMethod<
5557
+ export const listRoutes: API.PaginatedOperationMethod<
5204
5558
  ListRoutesRequest,
5205
5559
  ListRoutesResponse,
5206
5560
  ListRoutesError,
5207
5561
  Credentials | HttpClient.HttpClient
5208
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
5562
+ > & {
5563
+ pages: (
5564
+ input: ListRoutesRequest,
5565
+ ) => stream.Stream<
5566
+ ListRoutesResponse,
5567
+ ListRoutesError,
5568
+ Credentials | HttpClient.HttpClient
5569
+ >;
5570
+ items: (
5571
+ input: ListRoutesRequest,
5572
+ ) => stream.Stream<
5573
+ { id: string; pattern: string; script?: string | null },
5574
+ ListRoutesError,
5575
+ Credentials | HttpClient.HttpClient
5576
+ >;
5577
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
5209
5578
  input: ListRoutesRequest,
5210
5579
  output: ListRoutesResponse,
5211
5580
  errors: [InvalidRoute],
5581
+ pagination: {
5582
+ mode: "single",
5583
+ items: "result",
5584
+ } as const,
5212
5585
  }));
5213
5586
 
5214
5587
  export interface CreateRouteRequest {
@@ -5241,7 +5614,9 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5241
5614
  id: Schema.String,
5242
5615
  pattern: Schema.String,
5243
5616
  script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5244
- }) as unknown as Schema.Schema<CreateRouteResponse>;
5617
+ }).pipe(
5618
+ T.ResponsePath("result"),
5619
+ ) as unknown as Schema.Schema<CreateRouteResponse>;
5245
5620
 
5246
5621
  export type CreateRouteError =
5247
5622
  | DefaultErrors
@@ -5291,7 +5666,9 @@ export const UpdateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5291
5666
  id: Schema.String,
5292
5667
  pattern: Schema.String,
5293
5668
  script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5294
- }) as unknown as Schema.Schema<UpdateRouteResponse>;
5669
+ }).pipe(
5670
+ T.ResponsePath("result"),
5671
+ ) as unknown as Schema.Schema<UpdateRouteResponse>;
5295
5672
 
5296
5673
  export type UpdateRouteError =
5297
5674
  | DefaultErrors
@@ -5332,7 +5709,9 @@ export interface DeleteRouteResponse {
5332
5709
 
5333
5710
  export const DeleteRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5334
5711
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5335
- }) as unknown as Schema.Schema<DeleteRouteResponse>;
5712
+ }).pipe(
5713
+ T.ResponsePath("result"),
5714
+ ) as unknown as Schema.Schema<DeleteRouteResponse>;
5336
5715
 
5337
5716
  export type DeleteRouteError = DefaultErrors | RouteNotFound;
5338
5717
 
@@ -5399,332 +5778,433 @@ export const ListScriptsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5399
5778
  T.Http({ method: "GET", path: "/accounts/{account_id}/workers/scripts" }),
5400
5779
  ) as unknown as Schema.Schema<ListScriptsRequest>;
5401
5780
 
5402
- export type ListScriptsResponse = {
5403
- id?: string | null;
5404
- compatibilityDate?: string | null;
5405
- compatibilityFlags?: string[] | null;
5406
- createdOn?: string | null;
5407
- etag?: string | null;
5408
- handlers?: string[] | null;
5409
- hasAssets?: boolean | null;
5410
- hasModules?: boolean | null;
5411
- lastDeployedFrom?: string | null;
5412
- logpush?: boolean | null;
5413
- migrationTag?: string | null;
5414
- modifiedOn?: string | null;
5415
- namedHandlers?: { handlers?: string[] | null; name?: string | null }[] | null;
5416
- observability?: {
5417
- enabled: boolean;
5418
- headSamplingRate?: number | null;
5419
- logs?: {
5781
+ export interface ListScriptsResponse {
5782
+ result: {
5783
+ id?: string | null;
5784
+ compatibilityDate?: string | null;
5785
+ compatibilityFlags?: string[] | null;
5786
+ createdOn?: string | null;
5787
+ etag?: string | null;
5788
+ handlers?: string[] | null;
5789
+ hasAssets?: boolean | null;
5790
+ hasModules?: boolean | null;
5791
+ lastDeployedFrom?: string | null;
5792
+ logpush?: boolean | null;
5793
+ migrationTag?: string | null;
5794
+ modifiedOn?: string | null;
5795
+ namedHandlers?:
5796
+ | { handlers?: string[] | null; name?: string | null }[]
5797
+ | null;
5798
+ observability?: {
5420
5799
  enabled: boolean;
5421
- invocationLogs: boolean;
5422
- destinations?: string[] | null;
5423
5800
  headSamplingRate?: number | null;
5424
- persist?: boolean | null;
5801
+ logs?: {
5802
+ enabled: boolean;
5803
+ invocationLogs: boolean;
5804
+ destinations?: string[] | null;
5805
+ headSamplingRate?: number | null;
5806
+ persist?: boolean | null;
5807
+ } | null;
5425
5808
  } | null;
5426
- } | null;
5427
- placement?:
5428
- | {
5429
- mode: "smart";
5430
- lastAnalyzedAt?: string | null;
5431
- status?:
5432
- | "SUCCESS"
5433
- | "UNSUPPORTED_APPLICATION"
5434
- | "INSUFFICIENT_INVOCATIONS"
5435
- | null;
5436
- }
5437
- | {
5438
- region: string;
5439
- lastAnalyzedAt?: string | null;
5440
- status?:
5441
- | "SUCCESS"
5442
- | "UNSUPPORTED_APPLICATION"
5443
- | "INSUFFICIENT_INVOCATIONS"
5444
- | null;
5445
- }
5446
- | {
5447
- hostname: string;
5448
- lastAnalyzedAt?: string | null;
5449
- status?:
5450
- | "SUCCESS"
5451
- | "UNSUPPORTED_APPLICATION"
5452
- | "INSUFFICIENT_INVOCATIONS"
5453
- | null;
5454
- }
5455
- | {
5456
- host: string;
5457
- lastAnalyzedAt?: string | null;
5458
- status?:
5459
- | "SUCCESS"
5460
- | "UNSUPPORTED_APPLICATION"
5461
- | "INSUFFICIENT_INVOCATIONS"
5462
- | null;
5463
- }
5464
- | null;
5465
- placementMode?: "smart" | null;
5466
- placementStatus?:
5467
- | "SUCCESS"
5468
- | "UNSUPPORTED_APPLICATION"
5469
- | "INSUFFICIENT_INVOCATIONS"
5470
- | null;
5471
- routes?: { id: string; pattern: string; script?: string | null }[] | null;
5472
- tag?: string | null;
5473
- tags?: string[] | null;
5474
- tailConsumers?: unknown[] | null;
5475
- usageModel?: "standard" | "bundled" | "unbound" | null;
5476
- }[];
5809
+ placement?:
5810
+ | {
5811
+ mode: "smart";
5812
+ lastAnalyzedAt?: string | null;
5813
+ status?:
5814
+ | "SUCCESS"
5815
+ | "UNSUPPORTED_APPLICATION"
5816
+ | "INSUFFICIENT_INVOCATIONS"
5817
+ | null;
5818
+ }
5819
+ | {
5820
+ region: string;
5821
+ lastAnalyzedAt?: string | null;
5822
+ status?:
5823
+ | "SUCCESS"
5824
+ | "UNSUPPORTED_APPLICATION"
5825
+ | "INSUFFICIENT_INVOCATIONS"
5826
+ | null;
5827
+ }
5828
+ | {
5829
+ hostname: string;
5830
+ lastAnalyzedAt?: string | null;
5831
+ status?:
5832
+ | "SUCCESS"
5833
+ | "UNSUPPORTED_APPLICATION"
5834
+ | "INSUFFICIENT_INVOCATIONS"
5835
+ | null;
5836
+ }
5837
+ | {
5838
+ host: string;
5839
+ lastAnalyzedAt?: string | null;
5840
+ status?:
5841
+ | "SUCCESS"
5842
+ | "UNSUPPORTED_APPLICATION"
5843
+ | "INSUFFICIENT_INVOCATIONS"
5844
+ | null;
5845
+ }
5846
+ | null;
5847
+ placementMode?: "smart" | null;
5848
+ placementStatus?:
5849
+ | "SUCCESS"
5850
+ | "UNSUPPORTED_APPLICATION"
5851
+ | "INSUFFICIENT_INVOCATIONS"
5852
+ | null;
5853
+ routes?: { id: string; pattern: string; script?: string | null }[] | null;
5854
+ tag?: string | null;
5855
+ tags?: string[] | null;
5856
+ tailConsumers?: unknown[] | null;
5857
+ usageModel?: "standard" | "bundled" | "unbound" | null;
5858
+ }[];
5859
+ }
5477
5860
 
5478
- export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
5479
- Schema.Struct({
5480
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5481
- compatibilityDate: Schema.optional(
5482
- Schema.Union([Schema.String, Schema.Null]),
5483
- ),
5484
- compatibilityFlags: Schema.optional(
5485
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5486
- ),
5487
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5488
- etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5489
- handlers: Schema.optional(
5490
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5491
- ),
5492
- hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5493
- hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5494
- lastDeployedFrom: Schema.optional(
5495
- Schema.Union([Schema.String, Schema.Null]),
5496
- ),
5497
- logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5498
- migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5499
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5500
- namedHandlers: Schema.optional(
5501
- Schema.Union([
5502
- Schema.Array(
5503
- Schema.Struct({
5504
- handlers: Schema.optional(
5505
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5506
- ),
5507
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5508
- }),
5509
- ),
5510
- Schema.Null,
5511
- ]),
5512
- ),
5513
- observability: Schema.optional(
5514
- Schema.Union([
5515
- Schema.Struct({
5516
- enabled: Schema.Boolean,
5517
- headSamplingRate: Schema.optional(
5518
- Schema.Union([Schema.Number, Schema.Null]),
5519
- ),
5520
- logs: Schema.optional(
5521
- Schema.Union([
5522
- Schema.Struct({
5523
- enabled: Schema.Boolean,
5524
- invocationLogs: Schema.Boolean,
5525
- destinations: Schema.optional(
5526
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5527
- ),
5528
- headSamplingRate: Schema.optional(
5529
- Schema.Union([Schema.Number, Schema.Null]),
5530
- ),
5531
- persist: Schema.optional(
5532
- Schema.Union([Schema.Boolean, Schema.Null]),
5533
- ),
5534
- }).pipe(
5535
- Schema.encodeKeys({
5536
- enabled: "enabled",
5537
- invocationLogs: "invocation_logs",
5538
- destinations: "destinations",
5539
- headSamplingRate: "head_sampling_rate",
5540
- persist: "persist",
5541
- }),
5542
- ),
5543
- Schema.Null,
5544
- ]),
5545
- ),
5546
- }).pipe(
5547
- Schema.encodeKeys({
5548
- enabled: "enabled",
5549
- headSamplingRate: "head_sampling_rate",
5550
- logs: "logs",
5551
- }),
5552
- ),
5553
- Schema.Null,
5554
- ]),
5555
- ),
5556
- placement: Schema.optional(
5557
- Schema.Union([
5861
+ export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5862
+ result: Schema.Array(
5863
+ Schema.Struct({
5864
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5865
+ compatibilityDate: Schema.optional(
5866
+ Schema.Union([Schema.String, Schema.Null]),
5867
+ ),
5868
+ compatibilityFlags: Schema.optional(
5869
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5870
+ ),
5871
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5872
+ etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5873
+ handlers: Schema.optional(
5874
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5875
+ ),
5876
+ hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5877
+ hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5878
+ lastDeployedFrom: Schema.optional(
5879
+ Schema.Union([Schema.String, Schema.Null]),
5880
+ ),
5881
+ logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
5882
+ migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5883
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5884
+ namedHandlers: Schema.optional(
5558
5885
  Schema.Union([
5559
- Schema.Struct({
5560
- mode: Schema.Literal("smart"),
5561
- lastAnalyzedAt: Schema.optional(
5562
- Schema.Union([Schema.String, Schema.Null]),
5563
- ),
5564
- status: Schema.optional(
5565
- Schema.Union([
5566
- Schema.Literals([
5567
- "SUCCESS",
5568
- "UNSUPPORTED_APPLICATION",
5569
- "INSUFFICIENT_INVOCATIONS",
5570
- ]),
5571
- Schema.Null,
5572
- ]),
5573
- ),
5574
- }).pipe(
5575
- Schema.encodeKeys({
5576
- mode: "mode",
5577
- lastAnalyzedAt: "last_analyzed_at",
5578
- status: "status",
5579
- }),
5580
- ),
5581
- Schema.Struct({
5582
- region: Schema.String,
5583
- lastAnalyzedAt: Schema.optional(
5584
- Schema.Union([Schema.String, Schema.Null]),
5585
- ),
5586
- status: Schema.optional(
5587
- Schema.Union([
5588
- Schema.Literals([
5589
- "SUCCESS",
5590
- "UNSUPPORTED_APPLICATION",
5591
- "INSUFFICIENT_INVOCATIONS",
5592
- ]),
5593
- Schema.Null,
5594
- ]),
5595
- ),
5596
- }).pipe(
5597
- Schema.encodeKeys({
5598
- region: "region",
5599
- lastAnalyzedAt: "last_analyzed_at",
5600
- status: "status",
5886
+ Schema.Array(
5887
+ Schema.Struct({
5888
+ handlers: Schema.optional(
5889
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5890
+ ),
5891
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5601
5892
  }),
5602
5893
  ),
5894
+ Schema.Null,
5895
+ ]),
5896
+ ),
5897
+ observability: Schema.optional(
5898
+ Schema.Union([
5603
5899
  Schema.Struct({
5604
- hostname: Schema.String,
5605
- lastAnalyzedAt: Schema.optional(
5606
- Schema.Union([Schema.String, Schema.Null]),
5900
+ enabled: Schema.Boolean,
5901
+ headSamplingRate: Schema.optional(
5902
+ Schema.Union([Schema.Number, Schema.Null]),
5607
5903
  ),
5608
- status: Schema.optional(
5904
+ logs: Schema.optional(
5609
5905
  Schema.Union([
5610
- Schema.Literals([
5611
- "SUCCESS",
5612
- "UNSUPPORTED_APPLICATION",
5613
- "INSUFFICIENT_INVOCATIONS",
5614
- ]),
5906
+ Schema.Struct({
5907
+ enabled: Schema.Boolean,
5908
+ invocationLogs: Schema.Boolean,
5909
+ destinations: Schema.optional(
5910
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5911
+ ),
5912
+ headSamplingRate: Schema.optional(
5913
+ Schema.Union([Schema.Number, Schema.Null]),
5914
+ ),
5915
+ persist: Schema.optional(
5916
+ Schema.Union([Schema.Boolean, Schema.Null]),
5917
+ ),
5918
+ }).pipe(
5919
+ Schema.encodeKeys({
5920
+ enabled: "enabled",
5921
+ invocationLogs: "invocation_logs",
5922
+ destinations: "destinations",
5923
+ headSamplingRate: "head_sampling_rate",
5924
+ persist: "persist",
5925
+ }),
5926
+ ),
5615
5927
  Schema.Null,
5616
5928
  ]),
5617
5929
  ),
5618
5930
  }).pipe(
5619
5931
  Schema.encodeKeys({
5620
- hostname: "hostname",
5621
- lastAnalyzedAt: "last_analyzed_at",
5622
- status: "status",
5932
+ enabled: "enabled",
5933
+ headSamplingRate: "head_sampling_rate",
5934
+ logs: "logs",
5623
5935
  }),
5624
5936
  ),
5625
- Schema.Struct({
5626
- host: Schema.String,
5627
- lastAnalyzedAt: Schema.optional(
5628
- Schema.Union([Schema.String, Schema.Null]),
5937
+ Schema.Null,
5938
+ ]),
5939
+ ),
5940
+ placement: Schema.optional(
5941
+ Schema.Union([
5942
+ Schema.Union([
5943
+ Schema.Struct({
5944
+ mode: Schema.Literal("smart"),
5945
+ lastAnalyzedAt: Schema.optional(
5946
+ Schema.Union([Schema.String, Schema.Null]),
5947
+ ),
5948
+ status: Schema.optional(
5949
+ Schema.Union([
5950
+ Schema.Literals([
5951
+ "SUCCESS",
5952
+ "UNSUPPORTED_APPLICATION",
5953
+ "INSUFFICIENT_INVOCATIONS",
5954
+ ]),
5955
+ Schema.Null,
5956
+ ]),
5957
+ ),
5958
+ }).pipe(
5959
+ Schema.encodeKeys({
5960
+ mode: "mode",
5961
+ lastAnalyzedAt: "last_analyzed_at",
5962
+ status: "status",
5963
+ }),
5629
5964
  ),
5630
- status: Schema.optional(
5631
- Schema.Union([
5632
- Schema.Literals([
5633
- "SUCCESS",
5634
- "UNSUPPORTED_APPLICATION",
5635
- "INSUFFICIENT_INVOCATIONS",
5965
+ Schema.Struct({
5966
+ region: Schema.String,
5967
+ lastAnalyzedAt: Schema.optional(
5968
+ Schema.Union([Schema.String, Schema.Null]),
5969
+ ),
5970
+ status: Schema.optional(
5971
+ Schema.Union([
5972
+ Schema.Literals([
5973
+ "SUCCESS",
5974
+ "UNSUPPORTED_APPLICATION",
5975
+ "INSUFFICIENT_INVOCATIONS",
5976
+ ]),
5977
+ Schema.Null,
5636
5978
  ]),
5637
- Schema.Null,
5638
- ]),
5979
+ ),
5980
+ }).pipe(
5981
+ Schema.encodeKeys({
5982
+ region: "region",
5983
+ lastAnalyzedAt: "last_analyzed_at",
5984
+ status: "status",
5985
+ }),
5639
5986
  ),
5640
- }).pipe(
5641
- Schema.encodeKeys({
5642
- host: "host",
5643
- lastAnalyzedAt: "last_analyzed_at",
5644
- status: "status",
5987
+ Schema.Struct({
5988
+ hostname: Schema.String,
5989
+ lastAnalyzedAt: Schema.optional(
5990
+ Schema.Union([Schema.String, Schema.Null]),
5991
+ ),
5992
+ status: Schema.optional(
5993
+ Schema.Union([
5994
+ Schema.Literals([
5995
+ "SUCCESS",
5996
+ "UNSUPPORTED_APPLICATION",
5997
+ "INSUFFICIENT_INVOCATIONS",
5998
+ ]),
5999
+ Schema.Null,
6000
+ ]),
6001
+ ),
6002
+ }).pipe(
6003
+ Schema.encodeKeys({
6004
+ hostname: "hostname",
6005
+ lastAnalyzedAt: "last_analyzed_at",
6006
+ status: "status",
6007
+ }),
6008
+ ),
6009
+ Schema.Struct({
6010
+ host: Schema.String,
6011
+ lastAnalyzedAt: Schema.optional(
6012
+ Schema.Union([Schema.String, Schema.Null]),
6013
+ ),
6014
+ status: Schema.optional(
6015
+ Schema.Union([
6016
+ Schema.Literals([
6017
+ "SUCCESS",
6018
+ "UNSUPPORTED_APPLICATION",
6019
+ "INSUFFICIENT_INVOCATIONS",
6020
+ ]),
6021
+ Schema.Null,
6022
+ ]),
6023
+ ),
6024
+ }).pipe(
6025
+ Schema.encodeKeys({
6026
+ host: "host",
6027
+ lastAnalyzedAt: "last_analyzed_at",
6028
+ status: "status",
6029
+ }),
6030
+ ),
6031
+ ]),
6032
+ Schema.Null,
6033
+ ]),
6034
+ ),
6035
+ placementMode: Schema.optional(
6036
+ Schema.Union([Schema.Literal("smart"), Schema.Null]),
6037
+ ),
6038
+ placementStatus: Schema.optional(
6039
+ Schema.Union([
6040
+ Schema.Literals([
6041
+ "SUCCESS",
6042
+ "UNSUPPORTED_APPLICATION",
6043
+ "INSUFFICIENT_INVOCATIONS",
6044
+ ]),
6045
+ Schema.Null,
6046
+ ]),
6047
+ ),
6048
+ routes: Schema.optional(
6049
+ Schema.Union([
6050
+ Schema.Array(
6051
+ Schema.Struct({
6052
+ id: Schema.String,
6053
+ pattern: Schema.String,
6054
+ script: Schema.optional(
6055
+ Schema.Union([Schema.String, Schema.Null]),
6056
+ ),
5645
6057
  }),
5646
6058
  ),
6059
+ Schema.Null,
5647
6060
  ]),
5648
- Schema.Null,
5649
- ]),
5650
- ),
5651
- placementMode: Schema.optional(
5652
- Schema.Union([Schema.Literal("smart"), Schema.Null]),
5653
- ),
5654
- placementStatus: Schema.optional(
5655
- Schema.Union([
5656
- Schema.Literals([
5657
- "SUCCESS",
5658
- "UNSUPPORTED_APPLICATION",
5659
- "INSUFFICIENT_INVOCATIONS",
6061
+ ),
6062
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6063
+ tags: Schema.optional(
6064
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
6065
+ ),
6066
+ tailConsumers: Schema.optional(
6067
+ Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
6068
+ ),
6069
+ usageModel: Schema.optional(
6070
+ Schema.Union([
6071
+ Schema.Literals(["standard", "bundled", "unbound"]),
6072
+ Schema.Null,
5660
6073
  ]),
5661
- Schema.Null,
5662
- ]),
5663
- ),
5664
- routes: Schema.optional(
5665
- Schema.Union([
5666
- Schema.Array(
5667
- Schema.Struct({
5668
- id: Schema.String,
5669
- pattern: Schema.String,
5670
- script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5671
- }),
5672
- ),
5673
- Schema.Null,
5674
- ]),
5675
- ),
5676
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5677
- tags: Schema.optional(
5678
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
5679
- ),
5680
- tailConsumers: Schema.optional(
5681
- Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
5682
- ),
5683
- usageModel: Schema.optional(
5684
- Schema.Union([
5685
- Schema.Literals(["standard", "bundled", "unbound"]),
5686
- Schema.Null,
5687
- ]),
6074
+ ),
6075
+ }).pipe(
6076
+ Schema.encodeKeys({
6077
+ id: "id",
6078
+ compatibilityDate: "compatibility_date",
6079
+ compatibilityFlags: "compatibility_flags",
6080
+ createdOn: "created_on",
6081
+ etag: "etag",
6082
+ handlers: "handlers",
6083
+ hasAssets: "has_assets",
6084
+ hasModules: "has_modules",
6085
+ lastDeployedFrom: "last_deployed_from",
6086
+ logpush: "logpush",
6087
+ migrationTag: "migration_tag",
6088
+ modifiedOn: "modified_on",
6089
+ namedHandlers: "named_handlers",
6090
+ observability: "observability",
6091
+ placement: "placement",
6092
+ placementMode: "placement_mode",
6093
+ placementStatus: "placement_status",
6094
+ routes: "routes",
6095
+ tag: "tag",
6096
+ tags: "tags",
6097
+ tailConsumers: "tail_consumers",
6098
+ usageModel: "usage_model",
6099
+ }),
5688
6100
  ),
5689
- }).pipe(
5690
- Schema.encodeKeys({
5691
- id: "id",
5692
- compatibilityDate: "compatibility_date",
5693
- compatibilityFlags: "compatibility_flags",
5694
- createdOn: "created_on",
5695
- etag: "etag",
5696
- handlers: "handlers",
5697
- hasAssets: "has_assets",
5698
- hasModules: "has_modules",
5699
- lastDeployedFrom: "last_deployed_from",
5700
- logpush: "logpush",
5701
- migrationTag: "migration_tag",
5702
- modifiedOn: "modified_on",
5703
- namedHandlers: "named_handlers",
5704
- observability: "observability",
5705
- placement: "placement",
5706
- placementMode: "placement_mode",
5707
- placementStatus: "placement_status",
5708
- routes: "routes",
5709
- tag: "tag",
5710
- tags: "tags",
5711
- tailConsumers: "tail_consumers",
5712
- usageModel: "usage_model",
5713
- }),
5714
6101
  ),
5715
- ) as unknown as Schema.Schema<ListScriptsResponse>;
6102
+ }) as unknown as Schema.Schema<ListScriptsResponse>;
5716
6103
 
5717
6104
  export type ListScriptsError = DefaultErrors | InvalidRoute;
5718
6105
 
5719
- export const listScripts: API.OperationMethod<
6106
+ export const listScripts: API.PaginatedOperationMethod<
5720
6107
  ListScriptsRequest,
5721
6108
  ListScriptsResponse,
5722
6109
  ListScriptsError,
5723
6110
  Credentials | HttpClient.HttpClient
5724
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
6111
+ > & {
6112
+ pages: (
6113
+ input: ListScriptsRequest,
6114
+ ) => stream.Stream<
6115
+ ListScriptsResponse,
6116
+ ListScriptsError,
6117
+ Credentials | HttpClient.HttpClient
6118
+ >;
6119
+ items: (input: ListScriptsRequest) => stream.Stream<
6120
+ {
6121
+ id?: string | null;
6122
+ compatibilityDate?: string | null;
6123
+ compatibilityFlags?: string[] | null;
6124
+ createdOn?: string | null;
6125
+ etag?: string | null;
6126
+ handlers?: string[] | null;
6127
+ hasAssets?: boolean | null;
6128
+ hasModules?: boolean | null;
6129
+ lastDeployedFrom?: string | null;
6130
+ logpush?: boolean | null;
6131
+ migrationTag?: string | null;
6132
+ modifiedOn?: string | null;
6133
+ namedHandlers?:
6134
+ | { handlers?: string[] | null; name?: string | null }[]
6135
+ | null;
6136
+ observability?: {
6137
+ enabled: boolean;
6138
+ headSamplingRate?: number | null;
6139
+ logs?: {
6140
+ enabled: boolean;
6141
+ invocationLogs: boolean;
6142
+ destinations?: string[] | null;
6143
+ headSamplingRate?: number | null;
6144
+ persist?: boolean | null;
6145
+ } | null;
6146
+ } | null;
6147
+ placement?:
6148
+ | {
6149
+ mode: "smart";
6150
+ lastAnalyzedAt?: string | null;
6151
+ status?:
6152
+ | "SUCCESS"
6153
+ | "UNSUPPORTED_APPLICATION"
6154
+ | "INSUFFICIENT_INVOCATIONS"
6155
+ | null;
6156
+ }
6157
+ | {
6158
+ region: string;
6159
+ lastAnalyzedAt?: string | null;
6160
+ status?:
6161
+ | "SUCCESS"
6162
+ | "UNSUPPORTED_APPLICATION"
6163
+ | "INSUFFICIENT_INVOCATIONS"
6164
+ | null;
6165
+ }
6166
+ | {
6167
+ hostname: string;
6168
+ lastAnalyzedAt?: string | null;
6169
+ status?:
6170
+ | "SUCCESS"
6171
+ | "UNSUPPORTED_APPLICATION"
6172
+ | "INSUFFICIENT_INVOCATIONS"
6173
+ | null;
6174
+ }
6175
+ | {
6176
+ host: string;
6177
+ lastAnalyzedAt?: string | null;
6178
+ status?:
6179
+ | "SUCCESS"
6180
+ | "UNSUPPORTED_APPLICATION"
6181
+ | "INSUFFICIENT_INVOCATIONS"
6182
+ | null;
6183
+ }
6184
+ | null;
6185
+ placementMode?: "smart" | null;
6186
+ placementStatus?:
6187
+ | "SUCCESS"
6188
+ | "UNSUPPORTED_APPLICATION"
6189
+ | "INSUFFICIENT_INVOCATIONS"
6190
+ | null;
6191
+ routes?: { id: string; pattern: string; script?: string | null }[] | null;
6192
+ tag?: string | null;
6193
+ tags?: string[] | null;
6194
+ tailConsumers?: unknown[] | null;
6195
+ usageModel?: "standard" | "bundled" | "unbound" | null;
6196
+ },
6197
+ ListScriptsError,
6198
+ Credentials | HttpClient.HttpClient
6199
+ >;
6200
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
5725
6201
  input: ListScriptsRequest,
5726
6202
  output: ListScriptsResponse,
5727
6203
  errors: [InvalidRoute],
6204
+ pagination: {
6205
+ mode: "single",
6206
+ items: "result",
6207
+ } as const,
5728
6208
  }));
5729
6209
 
5730
6210
  export interface PutScriptRequest {
@@ -6583,33 +7063,37 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6583
7063
  Schema.Null,
6584
7064
  ]),
6585
7065
  ),
6586
- }).pipe(
6587
- Schema.encodeKeys({
6588
- startupTimeMs: "startup_time_ms",
6589
- id: "id",
6590
- compatibilityDate: "compatibility_date",
6591
- compatibilityFlags: "compatibility_flags",
6592
- createdOn: "created_on",
6593
- entryPoint: "entry_point",
6594
- etag: "etag",
6595
- handlers: "handlers",
6596
- hasAssets: "has_assets",
6597
- hasModules: "has_modules",
6598
- lastDeployedFrom: "last_deployed_from",
6599
- logpush: "logpush",
6600
- migrationTag: "migration_tag",
6601
- modifiedOn: "modified_on",
6602
- namedHandlers: "named_handlers",
6603
- observability: "observability",
6604
- placement: "placement",
6605
- placementMode: "placement_mode",
6606
- placementStatus: "placement_status",
6607
- tag: "tag",
6608
- tags: "tags",
6609
- tailConsumers: "tail_consumers",
6610
- usageModel: "usage_model",
6611
- }),
6612
- ) as unknown as Schema.Schema<PutScriptResponse>;
7066
+ })
7067
+ .pipe(
7068
+ Schema.encodeKeys({
7069
+ startupTimeMs: "startup_time_ms",
7070
+ id: "id",
7071
+ compatibilityDate: "compatibility_date",
7072
+ compatibilityFlags: "compatibility_flags",
7073
+ createdOn: "created_on",
7074
+ entryPoint: "entry_point",
7075
+ etag: "etag",
7076
+ handlers: "handlers",
7077
+ hasAssets: "has_assets",
7078
+ hasModules: "has_modules",
7079
+ lastDeployedFrom: "last_deployed_from",
7080
+ logpush: "logpush",
7081
+ migrationTag: "migration_tag",
7082
+ modifiedOn: "modified_on",
7083
+ namedHandlers: "named_handlers",
7084
+ observability: "observability",
7085
+ placement: "placement",
7086
+ placementMode: "placement_mode",
7087
+ placementStatus: "placement_status",
7088
+ tag: "tag",
7089
+ tags: "tags",
7090
+ tailConsumers: "tail_consumers",
7091
+ usageModel: "usage_model",
7092
+ }),
7093
+ )
7094
+ .pipe(
7095
+ T.ResponsePath("result"),
7096
+ ) as unknown as Schema.Schema<PutScriptResponse>;
6613
7097
 
6614
7098
  export type PutScriptError = DefaultErrors | InvalidRoute;
6615
7099
 
@@ -6646,7 +7130,9 @@ export const DeleteScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
6646
7130
  export type DeleteScriptResponse = unknown;
6647
7131
 
6648
7132
  export const DeleteScriptResponse =
6649
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteScriptResponse>;
7133
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
7134
+ T.ResponsePath("result"),
7135
+ ) as unknown as Schema.Schema<DeleteScriptResponse>;
6650
7136
 
6651
7137
  export type DeleteScriptError = DefaultErrors | WorkerNotFound;
6652
7138
 
@@ -6726,6 +7212,8 @@ export const SearchScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
6726
7212
  serviceName: "service_name",
6727
7213
  }),
6728
7214
  ),
7215
+ ).pipe(
7216
+ T.ResponsePath("result"),
6729
7217
  ) as unknown as Schema.Schema<SearchScriptResponse>;
6730
7218
 
6731
7219
  export type SearchScriptError = DefaultErrors | InvalidRoute;
@@ -6778,7 +7266,9 @@ export const CreateScriptAssetUploadResponse =
6778
7266
  Schema.Union([Schema.Array(Schema.Array(Schema.String)), Schema.Null]),
6779
7267
  ),
6780
7268
  jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6781
- }) as unknown as Schema.Schema<CreateScriptAssetUploadResponse>;
7269
+ }).pipe(
7270
+ T.ResponsePath("result"),
7271
+ ) as unknown as Schema.Schema<CreateScriptAssetUploadResponse>;
6782
7272
 
6783
7273
  export type CreateScriptAssetUploadError = DefaultErrors;
6784
7274
 
@@ -6966,17 +7456,21 @@ export const GetScriptDeploymentResponse =
6966
7456
  ]),
6967
7457
  ),
6968
7458
  authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6969
- }).pipe(
6970
- Schema.encodeKeys({
6971
- id: "id",
6972
- createdOn: "created_on",
6973
- source: "source",
6974
- strategy: "strategy",
6975
- versions: "versions",
6976
- annotations: "annotations",
6977
- authorEmail: "author_email",
6978
- }),
6979
- ) as unknown as Schema.Schema<GetScriptDeploymentResponse>;
7459
+ })
7460
+ .pipe(
7461
+ Schema.encodeKeys({
7462
+ id: "id",
7463
+ createdOn: "created_on",
7464
+ source: "source",
7465
+ strategy: "strategy",
7466
+ versions: "versions",
7467
+ annotations: "annotations",
7468
+ authorEmail: "author_email",
7469
+ }),
7470
+ )
7471
+ .pipe(
7472
+ T.ResponsePath("result"),
7473
+ ) as unknown as Schema.Schema<GetScriptDeploymentResponse>;
6980
7474
 
6981
7475
  export type GetScriptDeploymentError =
6982
7476
  | DefaultErrors
@@ -7078,7 +7572,9 @@ export const ListScriptDeploymentsResponse =
7078
7572
  }),
7079
7573
  ),
7080
7574
  ),
7081
- }) as unknown as Schema.Schema<ListScriptDeploymentsResponse>;
7575
+ }).pipe(
7576
+ T.ResponsePath("result"),
7577
+ ) as unknown as Schema.Schema<ListScriptDeploymentsResponse>;
7082
7578
 
7083
7579
  export type ListScriptDeploymentsError = DefaultErrors | WorkerNotFound;
7084
7580
 
@@ -7192,17 +7688,21 @@ export const CreateScriptDeploymentResponse =
7192
7688
  ]),
7193
7689
  ),
7194
7690
  authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
7195
- }).pipe(
7196
- Schema.encodeKeys({
7197
- id: "id",
7198
- createdOn: "created_on",
7199
- source: "source",
7200
- strategy: "strategy",
7201
- versions: "versions",
7202
- annotations: "annotations",
7203
- authorEmail: "author_email",
7204
- }),
7205
- ) as unknown as Schema.Schema<CreateScriptDeploymentResponse>;
7691
+ })
7692
+ .pipe(
7693
+ Schema.encodeKeys({
7694
+ id: "id",
7695
+ createdOn: "created_on",
7696
+ source: "source",
7697
+ strategy: "strategy",
7698
+ versions: "versions",
7699
+ annotations: "annotations",
7700
+ authorEmail: "author_email",
7701
+ }),
7702
+ )
7703
+ .pipe(
7704
+ T.ResponsePath("result"),
7705
+ ) as unknown as Schema.Schema<CreateScriptDeploymentResponse>;
7206
7706
 
7207
7707
  export type CreateScriptDeploymentError = DefaultErrors | WorkerNotFound;
7208
7708
 
@@ -7367,7 +7867,9 @@ export const GetScriptScheduleResponse =
7367
7867
  }),
7368
7868
  ),
7369
7869
  ),
7370
- }) as unknown as Schema.Schema<GetScriptScheduleResponse>;
7870
+ }).pipe(
7871
+ T.ResponsePath("result"),
7872
+ ) as unknown as Schema.Schema<GetScriptScheduleResponse>;
7371
7873
 
7372
7874
  export type GetScriptScheduleError = DefaultErrors | WorkerNotFound;
7373
7875
 
@@ -7429,7 +7931,9 @@ export const PutScriptScheduleResponse =
7429
7931
  }),
7430
7932
  ),
7431
7933
  ),
7432
- }) as unknown as Schema.Schema<PutScriptScheduleResponse>;
7934
+ }).pipe(
7935
+ T.ResponsePath("result"),
7936
+ ) as unknown as Schema.Schema<PutScriptScheduleResponse>;
7433
7937
 
7434
7938
  export type PutScriptScheduleError = DefaultErrors | WorkerNotFound;
7435
7939
 
@@ -7953,20 +8457,24 @@ export const GetScriptScriptAndVersionSettingResponse =
7953
8457
  Schema.Null,
7954
8458
  ]),
7955
8459
  ),
7956
- }).pipe(
7957
- Schema.encodeKeys({
7958
- bindings: "bindings",
7959
- compatibilityDate: "compatibility_date",
7960
- compatibilityFlags: "compatibility_flags",
7961
- limits: "limits",
7962
- logpush: "logpush",
7963
- observability: "observability",
7964
- placement: "placement",
7965
- tags: "tags",
7966
- tailConsumers: "tail_consumers",
7967
- usageModel: "usage_model",
7968
- }),
7969
- ) as unknown as Schema.Schema<GetScriptScriptAndVersionSettingResponse>;
8460
+ })
8461
+ .pipe(
8462
+ Schema.encodeKeys({
8463
+ bindings: "bindings",
8464
+ compatibilityDate: "compatibility_date",
8465
+ compatibilityFlags: "compatibility_flags",
8466
+ limits: "limits",
8467
+ logpush: "logpush",
8468
+ observability: "observability",
8469
+ placement: "placement",
8470
+ tags: "tags",
8471
+ tailConsumers: "tail_consumers",
8472
+ usageModel: "usage_model",
8473
+ }),
8474
+ )
8475
+ .pipe(
8476
+ T.ResponsePath("result"),
8477
+ ) as unknown as Schema.Schema<GetScriptScriptAndVersionSettingResponse>;
7970
8478
 
7971
8479
  export type GetScriptScriptAndVersionSettingError =
7972
8480
  | DefaultErrors
@@ -8969,20 +9477,24 @@ export const PatchScriptScriptAndVersionSettingResponse =
8969
9477
  Schema.Null,
8970
9478
  ]),
8971
9479
  ),
8972
- }).pipe(
8973
- Schema.encodeKeys({
8974
- bindings: "bindings",
8975
- compatibilityDate: "compatibility_date",
8976
- compatibilityFlags: "compatibility_flags",
8977
- limits: "limits",
8978
- logpush: "logpush",
8979
- observability: "observability",
8980
- placement: "placement",
8981
- tags: "tags",
8982
- tailConsumers: "tail_consumers",
8983
- usageModel: "usage_model",
8984
- }),
8985
- ) as unknown as Schema.Schema<PatchScriptScriptAndVersionSettingResponse>;
9480
+ })
9481
+ .pipe(
9482
+ Schema.encodeKeys({
9483
+ bindings: "bindings",
9484
+ compatibilityDate: "compatibility_date",
9485
+ compatibilityFlags: "compatibility_flags",
9486
+ limits: "limits",
9487
+ logpush: "logpush",
9488
+ observability: "observability",
9489
+ placement: "placement",
9490
+ tags: "tags",
9491
+ tailConsumers: "tail_consumers",
9492
+ usageModel: "usage_model",
9493
+ }),
9494
+ )
9495
+ .pipe(
9496
+ T.ResponsePath("result"),
9497
+ ) as unknown as Schema.Schema<PatchScriptScriptAndVersionSettingResponse>;
8986
9498
 
8987
9499
  export type PatchScriptScriptAndVersionSettingError =
8988
9500
  | DefaultErrors
@@ -9073,6 +9585,8 @@ export const GetScriptSecretResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
9073
9585
  ),
9074
9586
  }),
9075
9587
  ],
9588
+ ).pipe(
9589
+ T.ResponsePath("result"),
9076
9590
  ) as unknown as Schema.Schema<GetScriptSecretResponse>;
9077
9591
 
9078
9592
  export type GetScriptSecretError =
@@ -9108,65 +9622,102 @@ export const ListScriptSecretsRequest =
9108
9622
  }),
9109
9623
  ) as unknown as Schema.Schema<ListScriptSecretsRequest>;
9110
9624
 
9111
- export type ListScriptSecretsResponse = (
9112
- | { name: string; type: "secret_text" }
9113
- | {
9114
- algorithm: unknown;
9115
- format: "raw" | "pkcs8" | "spki" | "jwk";
9116
- name: string;
9117
- type: "secret_key";
9118
- usages: (
9119
- | "encrypt"
9120
- | "decrypt"
9121
- | "sign"
9122
- | "verify"
9123
- | "deriveKey"
9124
- | "deriveBits"
9125
- | "wrapKey"
9126
- | "unwrapKey"
9127
- )[];
9128
- }
9129
- )[];
9625
+ export interface ListScriptSecretsResponse {
9626
+ result: (
9627
+ | { name: string; type: "secret_text" }
9628
+ | {
9629
+ algorithm: unknown;
9630
+ format: "raw" | "pkcs8" | "spki" | "jwk";
9631
+ name: string;
9632
+ type: "secret_key";
9633
+ usages: (
9634
+ | "encrypt"
9635
+ | "decrypt"
9636
+ | "sign"
9637
+ | "verify"
9638
+ | "deriveKey"
9639
+ | "deriveBits"
9640
+ | "wrapKey"
9641
+ | "unwrapKey"
9642
+ )[];
9643
+ }
9644
+ )[];
9645
+ }
9130
9646
 
9131
9647
  export const ListScriptSecretsResponse =
9132
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
9133
- Schema.Union([
9134
- Schema.Struct({
9135
- name: Schema.String,
9136
- type: Schema.Literal("secret_text"),
9137
- }),
9138
- Schema.Struct({
9139
- algorithm: Schema.Unknown,
9140
- format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
9141
- name: Schema.String,
9142
- type: Schema.Literal("secret_key"),
9143
- usages: Schema.Array(
9144
- Schema.Literals([
9145
- "encrypt",
9146
- "decrypt",
9147
- "sign",
9148
- "verify",
9149
- "deriveKey",
9150
- "deriveBits",
9151
- "wrapKey",
9152
- "unwrapKey",
9153
- ]),
9154
- ),
9155
- }),
9156
- ]),
9157
- ) as unknown as Schema.Schema<ListScriptSecretsResponse>;
9648
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9649
+ result: Schema.Array(
9650
+ Schema.Union([
9651
+ Schema.Struct({
9652
+ name: Schema.String,
9653
+ type: Schema.Literal("secret_text"),
9654
+ }),
9655
+ Schema.Struct({
9656
+ algorithm: Schema.Unknown,
9657
+ format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
9658
+ name: Schema.String,
9659
+ type: Schema.Literal("secret_key"),
9660
+ usages: Schema.Array(
9661
+ Schema.Literals([
9662
+ "encrypt",
9663
+ "decrypt",
9664
+ "sign",
9665
+ "verify",
9666
+ "deriveKey",
9667
+ "deriveBits",
9668
+ "wrapKey",
9669
+ "unwrapKey",
9670
+ ]),
9671
+ ),
9672
+ }),
9673
+ ]),
9674
+ ),
9675
+ }) as unknown as Schema.Schema<ListScriptSecretsResponse>;
9158
9676
 
9159
9677
  export type ListScriptSecretsError = DefaultErrors | WorkerNotFound;
9160
9678
 
9161
- export const listScriptSecrets: API.OperationMethod<
9679
+ export const listScriptSecrets: API.PaginatedOperationMethod<
9162
9680
  ListScriptSecretsRequest,
9163
9681
  ListScriptSecretsResponse,
9164
9682
  ListScriptSecretsError,
9165
9683
  Credentials | HttpClient.HttpClient
9166
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
9684
+ > & {
9685
+ pages: (
9686
+ input: ListScriptSecretsRequest,
9687
+ ) => stream.Stream<
9688
+ ListScriptSecretsResponse,
9689
+ ListScriptSecretsError,
9690
+ Credentials | HttpClient.HttpClient
9691
+ >;
9692
+ items: (input: ListScriptSecretsRequest) => stream.Stream<
9693
+ | { name: string; type: "secret_text" }
9694
+ | {
9695
+ algorithm: unknown;
9696
+ format: "raw" | "pkcs8" | "spki" | "jwk";
9697
+ name: string;
9698
+ type: "secret_key";
9699
+ usages: (
9700
+ | "encrypt"
9701
+ | "decrypt"
9702
+ | "sign"
9703
+ | "verify"
9704
+ | "deriveKey"
9705
+ | "deriveBits"
9706
+ | "wrapKey"
9707
+ | "unwrapKey"
9708
+ )[];
9709
+ },
9710
+ ListScriptSecretsError,
9711
+ Credentials | HttpClient.HttpClient
9712
+ >;
9713
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
9167
9714
  input: ListScriptSecretsRequest,
9168
9715
  output: ListScriptSecretsResponse,
9169
9716
  errors: [WorkerNotFound],
9717
+ pagination: {
9718
+ mode: "single",
9719
+ items: "result",
9720
+ } as const,
9170
9721
  }));
9171
9722
 
9172
9723
  export interface PutScriptSecretRequest {
@@ -9240,6 +9791,8 @@ export const PutScriptSecretResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
9240
9791
  ),
9241
9792
  }),
9242
9793
  ],
9794
+ ).pipe(
9795
+ T.ResponsePath("result"),
9243
9796
  ) as unknown as Schema.Schema<PutScriptSecretResponse>;
9244
9797
 
9245
9798
  export type PutScriptSecretError = DefaultErrors | WorkerNotFound;
@@ -9282,7 +9835,9 @@ export const DeleteScriptSecretRequest =
9282
9835
  export type DeleteScriptSecretResponse = unknown;
9283
9836
 
9284
9837
  export const DeleteScriptSecretResponse =
9285
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteScriptSecretResponse>;
9838
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
9839
+ T.ResponsePath("result"),
9840
+ ) as unknown as Schema.Schema<DeleteScriptSecretResponse>;
9286
9841
 
9287
9842
  export type DeleteScriptSecretError =
9288
9843
  | DefaultErrors
@@ -9476,12 +10031,16 @@ export const GetScriptSubdomainResponse =
9476
10031
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9477
10032
  enabled: Schema.Boolean,
9478
10033
  previewsEnabled: Schema.Boolean,
9479
- }).pipe(
9480
- Schema.encodeKeys({
9481
- enabled: "enabled",
9482
- previewsEnabled: "previews_enabled",
9483
- }),
9484
- ) as unknown as Schema.Schema<GetScriptSubdomainResponse>;
10034
+ })
10035
+ .pipe(
10036
+ Schema.encodeKeys({
10037
+ enabled: "enabled",
10038
+ previewsEnabled: "previews_enabled",
10039
+ }),
10040
+ )
10041
+ .pipe(
10042
+ T.ResponsePath("result"),
10043
+ ) as unknown as Schema.Schema<GetScriptSubdomainResponse>;
9485
10044
 
9486
10045
  export type GetScriptSubdomainError = DefaultErrors | WorkerNotFound;
9487
10046
 
@@ -9534,12 +10093,16 @@ export const CreateScriptSubdomainResponse =
9534
10093
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9535
10094
  enabled: Schema.Boolean,
9536
10095
  previewsEnabled: Schema.Boolean,
9537
- }).pipe(
9538
- Schema.encodeKeys({
9539
- enabled: "enabled",
9540
- previewsEnabled: "previews_enabled",
9541
- }),
9542
- ) as unknown as Schema.Schema<CreateScriptSubdomainResponse>;
10096
+ })
10097
+ .pipe(
10098
+ Schema.encodeKeys({
10099
+ enabled: "enabled",
10100
+ previewsEnabled: "previews_enabled",
10101
+ }),
10102
+ )
10103
+ .pipe(
10104
+ T.ResponsePath("result"),
10105
+ ) as unknown as Schema.Schema<CreateScriptSubdomainResponse>;
9543
10106
 
9544
10107
  export type CreateScriptSubdomainError = DefaultErrors | WorkerNotFound;
9545
10108
 
@@ -9582,12 +10145,16 @@ export const DeleteScriptSubdomainResponse =
9582
10145
  /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9583
10146
  enabled: Schema.Boolean,
9584
10147
  previewsEnabled: Schema.Boolean,
9585
- }).pipe(
9586
- Schema.encodeKeys({
9587
- enabled: "enabled",
9588
- previewsEnabled: "previews_enabled",
9589
- }),
9590
- ) as unknown as Schema.Schema<DeleteScriptSubdomainResponse>;
10148
+ })
10149
+ .pipe(
10150
+ Schema.encodeKeys({
10151
+ enabled: "enabled",
10152
+ previewsEnabled: "previews_enabled",
10153
+ }),
10154
+ )
10155
+ .pipe(
10156
+ T.ResponsePath("result"),
10157
+ ) as unknown as Schema.Schema<DeleteScriptSubdomainResponse>;
9591
10158
 
9592
10159
  export type DeleteScriptSubdomainError = DefaultErrors | WorkerNotFound;
9593
10160
 
@@ -9633,9 +10200,11 @@ export const GetScriptTailResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
9633
10200
  id: Schema.String,
9634
10201
  expiresAt: Schema.String,
9635
10202
  url: Schema.String,
9636
- }).pipe(
9637
- Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }),
9638
- ) as unknown as Schema.Schema<GetScriptTailResponse>;
10203
+ })
10204
+ .pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
10205
+ .pipe(
10206
+ T.ResponsePath("result"),
10207
+ ) as unknown as Schema.Schema<GetScriptTailResponse>;
9639
10208
 
9640
10209
  export type GetScriptTailError = DefaultErrors | WorkerNotFound;
9641
10210
 
@@ -9682,9 +10251,11 @@ export const CreateScriptTailResponse =
9682
10251
  id: Schema.String,
9683
10252
  expiresAt: Schema.String,
9684
10253
  url: Schema.String,
9685
- }).pipe(
9686
- Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }),
9687
- ) as unknown as Schema.Schema<CreateScriptTailResponse>;
10254
+ })
10255
+ .pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
10256
+ .pipe(
10257
+ T.ResponsePath("result"),
10258
+ ) as unknown as Schema.Schema<CreateScriptTailResponse>;
9688
10259
 
9689
10260
  export type CreateScriptTailError = DefaultErrors | WorkerNotFound;
9690
10261
 
@@ -10394,7 +10965,9 @@ export const GetScriptVersionResponse =
10394
10965
  ]),
10395
10966
  ),
10396
10967
  number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
10397
- }) as unknown as Schema.Schema<GetScriptVersionResponse>;
10968
+ }).pipe(
10969
+ T.ResponsePath("result"),
10970
+ ) as unknown as Schema.Schema<GetScriptVersionResponse>;
10398
10971
 
10399
10972
  export type GetScriptVersionError =
10400
10973
  | DefaultErrors
@@ -10432,97 +11005,177 @@ export const ListScriptVersionsRequest =
10432
11005
  }),
10433
11006
  ) as unknown as Schema.Schema<ListScriptVersionsRequest>;
10434
11007
 
10435
- export type ListScriptVersionsResponse = {
10436
- id?: string | null;
10437
- metadata?: {
10438
- authorEmail?: string | null;
10439
- authorId?: string | null;
10440
- createdOn?: string | null;
10441
- hasPreview?: boolean | null;
10442
- modifiedOn?: string | null;
10443
- source?:
10444
- | "unknown"
10445
- | "api"
10446
- | "wrangler"
10447
- | "terraform"
10448
- | "dash"
10449
- | "dash_template"
10450
- | "integration"
10451
- | "quick_editor"
10452
- | "playground"
10453
- | "workersci"
11008
+ export interface ListScriptVersionsResponse {
11009
+ result: {
11010
+ items?:
11011
+ | {
11012
+ id?: string | null;
11013
+ metadata?: {
11014
+ authorEmail?: string | null;
11015
+ authorId?: string | null;
11016
+ createdOn?: string | null;
11017
+ hasPreview?: boolean | null;
11018
+ modifiedOn?: string | null;
11019
+ source?:
11020
+ | "unknown"
11021
+ | "api"
11022
+ | "wrangler"
11023
+ | "terraform"
11024
+ | "dash"
11025
+ | "dash_template"
11026
+ | "integration"
11027
+ | "quick_editor"
11028
+ | "playground"
11029
+ | "workersci"
11030
+ | null;
11031
+ } | null;
11032
+ number?: number | null;
11033
+ }[]
10454
11034
  | null;
10455
- } | null;
10456
- number?: number | null;
10457
- }[];
11035
+ };
11036
+ resultInfo: {
11037
+ count?: number | null;
11038
+ page?: number | null;
11039
+ perPage?: number | null;
11040
+ totalCount?: number | null;
11041
+ };
11042
+ }
10458
11043
 
10459
11044
  export const ListScriptVersionsResponse =
10460
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
10461
- Schema.Struct({
10462
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10463
- metadata: Schema.optional(
11045
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11046
+ result: Schema.Struct({
11047
+ items: Schema.optional(
10464
11048
  Schema.Union([
10465
- Schema.Struct({
10466
- authorEmail: Schema.optional(
10467
- Schema.Union([Schema.String, Schema.Null]),
10468
- ),
10469
- authorId: Schema.optional(
10470
- Schema.Union([Schema.String, Schema.Null]),
10471
- ),
10472
- createdOn: Schema.optional(
10473
- Schema.Union([Schema.String, Schema.Null]),
10474
- ),
10475
- hasPreview: Schema.optional(
10476
- Schema.Union([Schema.Boolean, Schema.Null]),
10477
- ),
10478
- modifiedOn: Schema.optional(
10479
- Schema.Union([Schema.String, Schema.Null]),
10480
- ),
10481
- source: Schema.optional(
10482
- Schema.Union([
10483
- Schema.Literals([
10484
- "unknown",
10485
- "api",
10486
- "wrangler",
10487
- "terraform",
10488
- "dash",
10489
- "dash_template",
10490
- "integration",
10491
- "quick_editor",
10492
- "playground",
10493
- "workersci",
11049
+ Schema.Array(
11050
+ Schema.Struct({
11051
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
11052
+ metadata: Schema.optional(
11053
+ Schema.Union([
11054
+ Schema.Struct({
11055
+ authorEmail: Schema.optional(
11056
+ Schema.Union([Schema.String, Schema.Null]),
11057
+ ),
11058
+ authorId: Schema.optional(
11059
+ Schema.Union([Schema.String, Schema.Null]),
11060
+ ),
11061
+ createdOn: Schema.optional(
11062
+ Schema.Union([Schema.String, Schema.Null]),
11063
+ ),
11064
+ hasPreview: Schema.optional(
11065
+ Schema.Union([Schema.Boolean, Schema.Null]),
11066
+ ),
11067
+ modifiedOn: Schema.optional(
11068
+ Schema.Union([Schema.String, Schema.Null]),
11069
+ ),
11070
+ source: Schema.optional(
11071
+ Schema.Union([
11072
+ Schema.Literals([
11073
+ "unknown",
11074
+ "api",
11075
+ "wrangler",
11076
+ "terraform",
11077
+ "dash",
11078
+ "dash_template",
11079
+ "integration",
11080
+ "quick_editor",
11081
+ "playground",
11082
+ "workersci",
11083
+ ]),
11084
+ Schema.Null,
11085
+ ]),
11086
+ ),
11087
+ }).pipe(
11088
+ Schema.encodeKeys({
11089
+ authorEmail: "author_email",
11090
+ authorId: "author_id",
11091
+ createdOn: "created_on",
11092
+ hasPreview: "hasPreview",
11093
+ modifiedOn: "modified_on",
11094
+ source: "source",
11095
+ }),
11096
+ ),
11097
+ Schema.Null,
10494
11098
  ]),
10495
- Schema.Null,
10496
- ]),
10497
- ),
10498
- }).pipe(
10499
- Schema.encodeKeys({
10500
- authorEmail: "author_email",
10501
- authorId: "author_id",
10502
- createdOn: "created_on",
10503
- hasPreview: "hasPreview",
10504
- modifiedOn: "modified_on",
10505
- source: "source",
11099
+ ),
11100
+ number: Schema.optional(
11101
+ Schema.Union([Schema.Number, Schema.Null]),
11102
+ ),
10506
11103
  }),
10507
11104
  ),
10508
11105
  Schema.Null,
10509
11106
  ]),
10510
11107
  ),
10511
- number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
10512
11108
  }),
11109
+ resultInfo: Schema.Struct({
11110
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11111
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11112
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11113
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11114
+ }).pipe(
11115
+ Schema.encodeKeys({
11116
+ count: "count",
11117
+ page: "page",
11118
+ perPage: "per_page",
11119
+ totalCount: "total_count",
11120
+ }),
11121
+ ),
11122
+ }).pipe(
11123
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
10513
11124
  ) as unknown as Schema.Schema<ListScriptVersionsResponse>;
10514
11125
 
10515
11126
  export type ListScriptVersionsError = DefaultErrors | WorkerNotFound;
10516
11127
 
10517
- export const listScriptVersions: API.OperationMethod<
11128
+ export const listScriptVersions: API.PaginatedOperationMethod<
10518
11129
  ListScriptVersionsRequest,
10519
11130
  ListScriptVersionsResponse,
10520
11131
  ListScriptVersionsError,
10521
11132
  Credentials | HttpClient.HttpClient
10522
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
11133
+ > & {
11134
+ pages: (
11135
+ input: ListScriptVersionsRequest,
11136
+ ) => stream.Stream<
11137
+ ListScriptVersionsResponse,
11138
+ ListScriptVersionsError,
11139
+ Credentials | HttpClient.HttpClient
11140
+ >;
11141
+ items: (input: ListScriptVersionsRequest) => stream.Stream<
11142
+ {
11143
+ id?: string | null;
11144
+ metadata?: {
11145
+ authorEmail?: string | null;
11146
+ authorId?: string | null;
11147
+ createdOn?: string | null;
11148
+ hasPreview?: boolean | null;
11149
+ modifiedOn?: string | null;
11150
+ source?:
11151
+ | "unknown"
11152
+ | "api"
11153
+ | "wrangler"
11154
+ | "terraform"
11155
+ | "dash"
11156
+ | "dash_template"
11157
+ | "integration"
11158
+ | "quick_editor"
11159
+ | "playground"
11160
+ | "workersci"
11161
+ | null;
11162
+ } | null;
11163
+ number?: number | null;
11164
+ },
11165
+ ListScriptVersionsError,
11166
+ Credentials | HttpClient.HttpClient
11167
+ >;
11168
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
10523
11169
  input: ListScriptVersionsRequest,
10524
11170
  output: ListScriptVersionsResponse,
10525
11171
  errors: [WorkerNotFound],
11172
+ pagination: {
11173
+ mode: "page",
11174
+ inputToken: "page",
11175
+ outputToken: "resultInfo.page",
11176
+ items: "result.items",
11177
+ pageSize: "perPage",
11178
+ } as const,
10526
11179
  }));
10527
11180
 
10528
11181
  export interface CreateScriptVersionRequest {
@@ -11508,15 +12161,19 @@ export const CreateScriptVersionResponse =
11508
12161
  ),
11509
12162
  number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11510
12163
  startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
11511
- }).pipe(
11512
- Schema.encodeKeys({
11513
- resources: "resources",
11514
- id: "id",
11515
- metadata: "metadata",
11516
- number: "number",
11517
- startupTimeMs: "startup_time_ms",
11518
- }),
11519
- ) as unknown as Schema.Schema<CreateScriptVersionResponse>;
12164
+ })
12165
+ .pipe(
12166
+ Schema.encodeKeys({
12167
+ resources: "resources",
12168
+ id: "id",
12169
+ metadata: "metadata",
12170
+ number: "number",
12171
+ startupTimeMs: "startup_time_ms",
12172
+ }),
12173
+ )
12174
+ .pipe(
12175
+ T.ResponsePath("result"),
12176
+ ) as unknown as Schema.Schema<CreateScriptVersionResponse>;
11520
12177
 
11521
12178
  export type CreateScriptVersionError = DefaultErrors | WorkerNotFound;
11522
12179
 
@@ -11552,7 +12209,9 @@ export interface GetSubdomainResponse {
11552
12209
 
11553
12210
  export const GetSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11554
12211
  subdomain: Schema.String,
11555
- }) as unknown as Schema.Schema<GetSubdomainResponse>;
12212
+ }).pipe(
12213
+ T.ResponsePath("result"),
12214
+ ) as unknown as Schema.Schema<GetSubdomainResponse>;
11556
12215
 
11557
12216
  export type GetSubdomainError = DefaultErrors | InvalidRoute;
11558
12217
 
@@ -11587,7 +12246,9 @@ export interface PutSubdomainResponse {
11587
12246
 
11588
12247
  export const PutSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
11589
12248
  subdomain: Schema.String,
11590
- }) as unknown as Schema.Schema<PutSubdomainResponse>;
12249
+ }).pipe(
12250
+ T.ResponsePath("result"),
12251
+ ) as unknown as Schema.Schema<PutSubdomainResponse>;
11591
12252
 
11592
12253
  export type PutSubdomainError = DefaultErrors | InvalidRoute;
11593
12254