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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,6 +5,7 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service stream
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";
@@ -32,38 +33,64 @@ export const GetAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
32
33
  }),
33
34
  ) as unknown as Schema.Schema<GetAudioTrackRequest>;
34
35
 
35
- export type GetAudioTrackResponse = {
36
- default?: boolean | null;
37
- label?: string | null;
38
- status?: "queued" | "ready" | "error" | null;
39
- uid?: string | null;
40
- }[];
36
+ export interface GetAudioTrackResponse {
37
+ result: {
38
+ default?: boolean | null;
39
+ label?: string | null;
40
+ status?: "queued" | "ready" | "error" | null;
41
+ uid?: string | null;
42
+ }[];
43
+ }
41
44
 
42
- export const GetAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
43
- Schema.Struct({
44
- default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
45
- label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
46
- status: Schema.optional(
47
- Schema.Union([
48
- Schema.Literals(["queued", "ready", "error"]),
49
- Schema.Null,
50
- ]),
51
- ),
52
- uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
53
- }),
54
- ) as unknown as Schema.Schema<GetAudioTrackResponse>;
45
+ export const GetAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
46
+ result: Schema.Array(
47
+ Schema.Struct({
48
+ default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
49
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
50
+ status: Schema.optional(
51
+ Schema.Union([
52
+ Schema.Literals(["queued", "ready", "error"]),
53
+ Schema.Null,
54
+ ]),
55
+ ),
56
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
57
+ }),
58
+ ),
59
+ }) as unknown as Schema.Schema<GetAudioTrackResponse>;
55
60
 
56
61
  export type GetAudioTrackError = DefaultErrors;
57
62
 
58
- export const getAudioTrack: API.OperationMethod<
63
+ export const getAudioTrack: API.PaginatedOperationMethod<
59
64
  GetAudioTrackRequest,
60
65
  GetAudioTrackResponse,
61
66
  GetAudioTrackError,
62
67
  Credentials | HttpClient.HttpClient
63
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
68
+ > & {
69
+ pages: (
70
+ input: GetAudioTrackRequest,
71
+ ) => stream.Stream<
72
+ GetAudioTrackResponse,
73
+ GetAudioTrackError,
74
+ Credentials | HttpClient.HttpClient
75
+ >;
76
+ items: (input: GetAudioTrackRequest) => stream.Stream<
77
+ {
78
+ default?: boolean | null;
79
+ label?: string | null;
80
+ status?: "queued" | "ready" | "error" | null;
81
+ uid?: string | null;
82
+ },
83
+ GetAudioTrackError,
84
+ Credentials | HttpClient.HttpClient
85
+ >;
86
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
64
87
  input: GetAudioTrackRequest,
65
88
  output: GetAudioTrackResponse,
66
89
  errors: [],
90
+ pagination: {
91
+ mode: "single",
92
+ items: "result",
93
+ } as const,
67
94
  }));
68
95
 
69
96
  export interface PatchAudioTrackRequest {
@@ -114,7 +141,9 @@ export const PatchAudioTrackResponse =
114
141
  ]),
115
142
  ),
116
143
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
117
- }) as unknown as Schema.Schema<PatchAudioTrackResponse>;
144
+ }).pipe(
145
+ T.ResponsePath("result"),
146
+ ) as unknown as Schema.Schema<PatchAudioTrackResponse>;
118
147
 
119
148
  export type PatchAudioTrackError = DefaultErrors;
120
149
 
@@ -151,7 +180,9 @@ export const DeleteAudioTrackRequest =
151
180
  export type DeleteAudioTrackResponse = string;
152
181
 
153
182
  export const DeleteAudioTrackResponse =
154
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteAudioTrackResponse>;
183
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
184
+ T.ResponsePath("result"),
185
+ ) as unknown as Schema.Schema<DeleteAudioTrackResponse>;
155
186
 
156
187
  export type DeleteAudioTrackError = DefaultErrors;
157
188
 
@@ -211,6 +242,8 @@ export const CopyAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
211
242
  ),
212
243
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
213
244
  },
245
+ ).pipe(
246
+ T.ResponsePath("result"),
214
247
  ) as unknown as Schema.Schema<CopyAudioTrackResponse>;
215
248
 
216
249
  export type CopyAudioTrackError = DefaultErrors;
@@ -246,38 +279,64 @@ export const GetCaptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
246
279
  }),
247
280
  ) as unknown as Schema.Schema<GetCaptionRequest>;
248
281
 
249
- export type GetCaptionResponse = {
250
- generated?: boolean | null;
251
- label?: string | null;
252
- language?: string | null;
253
- status?: "ready" | "inprogress" | "error" | null;
254
- }[];
282
+ export interface GetCaptionResponse {
283
+ result: {
284
+ generated?: boolean | null;
285
+ label?: string | null;
286
+ language?: string | null;
287
+ status?: "ready" | "inprogress" | "error" | null;
288
+ }[];
289
+ }
255
290
 
256
- export const GetCaptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
257
- Schema.Struct({
258
- generated: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
259
- label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
260
- language: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
261
- status: Schema.optional(
262
- Schema.Union([
263
- Schema.Literals(["ready", "inprogress", "error"]),
264
- Schema.Null,
265
- ]),
266
- ),
267
- }),
268
- ) as unknown as Schema.Schema<GetCaptionResponse>;
291
+ export const GetCaptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
292
+ result: Schema.Array(
293
+ Schema.Struct({
294
+ generated: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
295
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
296
+ language: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
297
+ status: Schema.optional(
298
+ Schema.Union([
299
+ Schema.Literals(["ready", "inprogress", "error"]),
300
+ Schema.Null,
301
+ ]),
302
+ ),
303
+ }),
304
+ ),
305
+ }) as unknown as Schema.Schema<GetCaptionResponse>;
269
306
 
270
307
  export type GetCaptionError = DefaultErrors;
271
308
 
272
- export const getCaption: API.OperationMethod<
309
+ export const getCaption: API.PaginatedOperationMethod<
273
310
  GetCaptionRequest,
274
311
  GetCaptionResponse,
275
312
  GetCaptionError,
276
313
  Credentials | HttpClient.HttpClient
277
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
314
+ > & {
315
+ pages: (
316
+ input: GetCaptionRequest,
317
+ ) => stream.Stream<
318
+ GetCaptionResponse,
319
+ GetCaptionError,
320
+ Credentials | HttpClient.HttpClient
321
+ >;
322
+ items: (input: GetCaptionRequest) => stream.Stream<
323
+ {
324
+ generated?: boolean | null;
325
+ label?: string | null;
326
+ language?: string | null;
327
+ status?: "ready" | "inprogress" | "error" | null;
328
+ },
329
+ GetCaptionError,
330
+ Credentials | HttpClient.HttpClient
331
+ >;
332
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
278
333
  input: GetCaptionRequest,
279
334
  output: GetCaptionResponse,
280
335
  errors: [],
336
+ pagination: {
337
+ mode: "single",
338
+ items: "result",
339
+ } as const,
281
340
  }));
282
341
 
283
342
  // =============================================================================
@@ -421,7 +480,9 @@ export const DeleteCaptionLanguageRequest =
421
480
  export type DeleteCaptionLanguageResponse = string;
422
481
 
423
482
  export const DeleteCaptionLanguageResponse =
424
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteCaptionLanguageResponse>;
483
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
484
+ T.ResponsePath("result"),
485
+ ) as unknown as Schema.Schema<DeleteCaptionLanguageResponse>;
425
486
 
426
487
  export type DeleteCaptionLanguageError = DefaultErrors;
427
488
 
@@ -616,7 +677,9 @@ export const CreateClipResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
616
677
  Schema.Null,
617
678
  ]),
618
679
  ),
619
- }) as unknown as Schema.Schema<CreateClipResponse>;
680
+ }).pipe(
681
+ T.ResponsePath("result"),
682
+ ) as unknown as Schema.Schema<CreateClipResponse>;
620
683
 
621
684
  export type CreateClipError = DefaultErrors;
622
685
 
@@ -770,7 +833,9 @@ export const CreateDirectUploadResponse =
770
833
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
771
834
  uploadURL: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
772
835
  watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
773
- }) as unknown as Schema.Schema<CreateDirectUploadResponse>;
836
+ }).pipe(
837
+ T.ResponsePath("result"),
838
+ ) as unknown as Schema.Schema<CreateDirectUploadResponse>;
774
839
 
775
840
  export type CreateDirectUploadError = DefaultErrors;
776
841
 
@@ -855,7 +920,9 @@ export const GetDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
855
920
  Schema.Null,
856
921
  ]),
857
922
  ),
858
- }) as unknown as Schema.Schema<GetDownloadResponse>;
923
+ }).pipe(
924
+ T.ResponsePath("result"),
925
+ ) as unknown as Schema.Schema<GetDownloadResponse>;
859
926
 
860
927
  export type GetDownloadError = DefaultErrors;
861
928
 
@@ -911,6 +978,8 @@ export const CreateDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
911
978
  ),
912
979
  url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
913
980
  },
981
+ ).pipe(
982
+ T.ResponsePath("result"),
914
983
  ) as unknown as Schema.Schema<CreateDownloadResponse>;
915
984
 
916
985
  export type CreateDownloadError = DefaultErrors;
@@ -945,7 +1014,9 @@ export const DeleteDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
945
1014
  export type DeleteDownloadResponse = string;
946
1015
 
947
1016
  export const DeleteDownloadResponse =
948
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteDownloadResponse>;
1017
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
1018
+ T.ResponsePath("result"),
1019
+ ) as unknown as Schema.Schema<DeleteDownloadResponse>;
949
1020
 
950
1021
  export type DeleteDownloadError = DefaultErrors;
951
1022
 
@@ -1013,26 +1084,49 @@ export const GetKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1013
1084
  T.Http({ method: "GET", path: "/accounts/{account_id}/stream/keys" }),
1014
1085
  ) as unknown as Schema.Schema<GetKeyRequest>;
1015
1086
 
1016
- export type GetKeyResponse = { id?: string | null; created?: string | null }[];
1087
+ export interface GetKeyResponse {
1088
+ result: { id?: string | null; created?: string | null }[];
1089
+ }
1017
1090
 
1018
- export const GetKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1019
- Schema.Struct({
1020
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1021
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1022
- }),
1023
- ) as unknown as Schema.Schema<GetKeyResponse>;
1091
+ export const GetKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1092
+ result: Schema.Array(
1093
+ Schema.Struct({
1094
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1095
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1096
+ }),
1097
+ ),
1098
+ }) as unknown as Schema.Schema<GetKeyResponse>;
1024
1099
 
1025
1100
  export type GetKeyError = DefaultErrors;
1026
1101
 
1027
- export const getKey: API.OperationMethod<
1102
+ export const getKey: API.PaginatedOperationMethod<
1028
1103
  GetKeyRequest,
1029
1104
  GetKeyResponse,
1030
1105
  GetKeyError,
1031
1106
  Credentials | HttpClient.HttpClient
1032
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1107
+ > & {
1108
+ pages: (
1109
+ input: GetKeyRequest,
1110
+ ) => stream.Stream<
1111
+ GetKeyResponse,
1112
+ GetKeyError,
1113
+ Credentials | HttpClient.HttpClient
1114
+ >;
1115
+ items: (
1116
+ input: GetKeyRequest,
1117
+ ) => stream.Stream<
1118
+ { id?: string | null; created?: string | null },
1119
+ GetKeyError,
1120
+ Credentials | HttpClient.HttpClient
1121
+ >;
1122
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1033
1123
  input: GetKeyRequest,
1034
1124
  output: GetKeyResponse,
1035
1125
  errors: [],
1126
+ pagination: {
1127
+ mode: "single",
1128
+ items: "result",
1129
+ } as const,
1036
1130
  }));
1037
1131
 
1038
1132
  export interface CreateKeyRequest {
@@ -1065,7 +1159,9 @@ export const CreateKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1065
1159
  created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1066
1160
  jwk: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1067
1161
  pem: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1068
- }) as unknown as Schema.Schema<CreateKeyResponse>;
1162
+ }).pipe(
1163
+ T.ResponsePath("result"),
1164
+ ) as unknown as Schema.Schema<CreateKeyResponse>;
1069
1165
 
1070
1166
  export type CreateKeyError = DefaultErrors;
1071
1167
 
@@ -1098,8 +1194,9 @@ export const DeleteKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1098
1194
 
1099
1195
  export type DeleteKeyResponse = string;
1100
1196
 
1101
- export const DeleteKeyResponse =
1102
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteKeyResponse>;
1197
+ export const DeleteKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
1198
+ T.ResponsePath("result"),
1199
+ ) as unknown as Schema.Schema<DeleteKeyResponse>;
1103
1200
 
1104
1201
  export type DeleteKeyError = DefaultErrors;
1105
1202
 
@@ -1155,7 +1252,9 @@ export const GetLiveInputResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1155
1252
  meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1156
1253
  modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1157
1254
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1158
- }) as unknown as Schema.Schema<GetLiveInputResponse>;
1255
+ }).pipe(
1256
+ T.ResponsePath("result"),
1257
+ ) as unknown as Schema.Schema<GetLiveInputResponse>;
1159
1258
 
1160
1259
  export type GetLiveInputError = DefaultErrors;
1161
1260
 
@@ -1227,6 +1326,8 @@ export const ListLiveInputsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
1227
1326
  range: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1228
1327
  total: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1229
1328
  },
1329
+ ).pipe(
1330
+ T.ResponsePath("result"),
1230
1331
  ) as unknown as Schema.Schema<ListLiveInputsResponse>;
1231
1332
 
1232
1333
  export type ListLiveInputsError = DefaultErrors;
@@ -1303,7 +1404,9 @@ export const CreateLiveInputResponse =
1303
1404
  meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1304
1405
  modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1305
1406
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1306
- }) as unknown as Schema.Schema<CreateLiveInputResponse>;
1407
+ }).pipe(
1408
+ T.ResponsePath("result"),
1409
+ ) as unknown as Schema.Schema<CreateLiveInputResponse>;
1307
1410
 
1308
1411
  export type CreateLiveInputError = DefaultErrors;
1309
1412
 
@@ -1384,7 +1487,9 @@ export const UpdateLiveInputResponse =
1384
1487
  meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1385
1488
  modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1386
1489
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1387
- }) as unknown as Schema.Schema<UpdateLiveInputResponse>;
1490
+ }).pipe(
1491
+ T.ResponsePath("result"),
1492
+ ) as unknown as Schema.Schema<UpdateLiveInputResponse>;
1388
1493
 
1389
1494
  export type UpdateLiveInputError = DefaultErrors;
1390
1495
 
@@ -1456,34 +1561,60 @@ export const ListLiveInputOutputsRequest =
1456
1561
  }),
1457
1562
  ) as unknown as Schema.Schema<ListLiveInputOutputsRequest>;
1458
1563
 
1459
- export type ListLiveInputOutputsResponse = {
1460
- enabled?: boolean | null;
1461
- streamKey?: string | null;
1462
- uid?: string | null;
1463
- url?: string | null;
1464
- }[];
1564
+ export interface ListLiveInputOutputsResponse {
1565
+ result: {
1566
+ enabled?: boolean | null;
1567
+ streamKey?: string | null;
1568
+ uid?: string | null;
1569
+ url?: string | null;
1570
+ }[];
1571
+ }
1465
1572
 
1466
1573
  export const ListLiveInputOutputsResponse =
1467
- /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1468
- Schema.Struct({
1469
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1470
- streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1471
- uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1472
- url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1473
- }),
1474
- ) as unknown as Schema.Schema<ListLiveInputOutputsResponse>;
1574
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1575
+ result: Schema.Array(
1576
+ Schema.Struct({
1577
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1578
+ streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1579
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1580
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1581
+ }),
1582
+ ),
1583
+ }) as unknown as Schema.Schema<ListLiveInputOutputsResponse>;
1475
1584
 
1476
1585
  export type ListLiveInputOutputsError = DefaultErrors;
1477
1586
 
1478
- export const listLiveInputOutputs: API.OperationMethod<
1587
+ export const listLiveInputOutputs: API.PaginatedOperationMethod<
1479
1588
  ListLiveInputOutputsRequest,
1480
1589
  ListLiveInputOutputsResponse,
1481
1590
  ListLiveInputOutputsError,
1482
1591
  Credentials | HttpClient.HttpClient
1483
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1592
+ > & {
1593
+ pages: (
1594
+ input: ListLiveInputOutputsRequest,
1595
+ ) => stream.Stream<
1596
+ ListLiveInputOutputsResponse,
1597
+ ListLiveInputOutputsError,
1598
+ Credentials | HttpClient.HttpClient
1599
+ >;
1600
+ items: (input: ListLiveInputOutputsRequest) => stream.Stream<
1601
+ {
1602
+ enabled?: boolean | null;
1603
+ streamKey?: string | null;
1604
+ uid?: string | null;
1605
+ url?: string | null;
1606
+ },
1607
+ ListLiveInputOutputsError,
1608
+ Credentials | HttpClient.HttpClient
1609
+ >;
1610
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1484
1611
  input: ListLiveInputOutputsRequest,
1485
1612
  output: ListLiveInputOutputsResponse,
1486
1613
  errors: [],
1614
+ pagination: {
1615
+ mode: "single",
1616
+ items: "result",
1617
+ } as const,
1487
1618
  }));
1488
1619
 
1489
1620
  export interface CreateLiveInputOutputRequest {
@@ -1529,7 +1660,9 @@ export const CreateLiveInputOutputResponse =
1529
1660
  streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1530
1661
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1531
1662
  url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1532
- }) as unknown as Schema.Schema<CreateLiveInputOutputResponse>;
1663
+ }).pipe(
1664
+ T.ResponsePath("result"),
1665
+ ) as unknown as Schema.Schema<CreateLiveInputOutputResponse>;
1533
1666
 
1534
1667
  export type CreateLiveInputOutputError = DefaultErrors;
1535
1668
 
@@ -1583,7 +1716,9 @@ export const UpdateLiveInputOutputResponse =
1583
1716
  streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1584
1717
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1585
1718
  url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1586
- }) as unknown as Schema.Schema<UpdateLiveInputOutputResponse>;
1719
+ }).pipe(
1720
+ T.ResponsePath("result"),
1721
+ ) as unknown as Schema.Schema<UpdateLiveInputOutputResponse>;
1587
1722
 
1588
1723
  export type UpdateLiveInputOutputError = DefaultErrors;
1589
1724
 
@@ -1790,7 +1925,9 @@ export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1790
1925
  uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1791
1926
  uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1792
1927
  watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1793
- }) as unknown as Schema.Schema<GetStreamResponse>;
1928
+ }).pipe(
1929
+ T.ResponsePath("result"),
1930
+ ) as unknown as Schema.Schema<GetStreamResponse>;
1794
1931
 
1795
1932
  export type GetStreamError = DefaultErrors;
1796
1933
 
@@ -1862,141 +1999,201 @@ export const ListStreamsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1862
1999
  T.Http({ method: "GET", path: "/accounts/{account_id}/stream" }),
1863
2000
  ) as unknown as Schema.Schema<ListStreamsRequest>;
1864
2001
 
1865
- export type ListStreamsResponse = {
1866
- allowedOrigins?: string[] | null;
1867
- created?: string | null;
1868
- creator?: string | null;
1869
- duration?: number | null;
1870
- input?: { height?: number | null; width?: number | null } | null;
1871
- liveInput?: string | null;
1872
- maxDurationSeconds?: number | null;
1873
- meta?: unknown | null;
1874
- modified?: string | null;
1875
- playback?: { dash?: string | null; hls?: string | null } | null;
1876
- preview?: string | null;
1877
- readyToStream?: boolean | null;
1878
- readyToStreamAt?: string | null;
1879
- requireSignedURLs?: boolean | null;
1880
- scheduledDeletion?: string | null;
1881
- size?: number | null;
1882
- status?: {
1883
- errorReasonCode?: string | null;
1884
- errorReasonText?: string | null;
1885
- pctComplete?: string | null;
1886
- state?:
1887
- | "pendingupload"
1888
- | "downloading"
1889
- | "queued"
1890
- | "inprogress"
1891
- | "ready"
1892
- | "error"
1893
- | "live-inprogress"
1894
- | null;
1895
- } | null;
1896
- thumbnail?: string | null;
1897
- thumbnailTimestampPct?: number | null;
1898
- uid?: string | null;
1899
- uploaded?: string | null;
1900
- uploadExpiry?: string | null;
1901
- watermark?: unknown | null;
1902
- }[];
2002
+ export interface ListStreamsResponse {
2003
+ result: {
2004
+ allowedOrigins?: string[] | null;
2005
+ created?: string | null;
2006
+ creator?: string | null;
2007
+ duration?: number | null;
2008
+ input?: { height?: number | null; width?: number | null } | null;
2009
+ liveInput?: string | null;
2010
+ maxDurationSeconds?: number | null;
2011
+ meta?: unknown | null;
2012
+ modified?: string | null;
2013
+ playback?: { dash?: string | null; hls?: string | null } | null;
2014
+ preview?: string | null;
2015
+ readyToStream?: boolean | null;
2016
+ readyToStreamAt?: string | null;
2017
+ requireSignedURLs?: boolean | null;
2018
+ scheduledDeletion?: string | null;
2019
+ size?: number | null;
2020
+ status?: {
2021
+ errorReasonCode?: string | null;
2022
+ errorReasonText?: string | null;
2023
+ pctComplete?: string | null;
2024
+ state?:
2025
+ | "pendingupload"
2026
+ | "downloading"
2027
+ | "queued"
2028
+ | "inprogress"
2029
+ | "ready"
2030
+ | "error"
2031
+ | "live-inprogress"
2032
+ | null;
2033
+ } | null;
2034
+ thumbnail?: string | null;
2035
+ thumbnailTimestampPct?: number | null;
2036
+ uid?: string | null;
2037
+ uploaded?: string | null;
2038
+ uploadExpiry?: string | null;
2039
+ watermark?: unknown | null;
2040
+ }[];
2041
+ }
1903
2042
 
1904
- export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1905
- Schema.Struct({
1906
- allowedOrigins: Schema.optional(
1907
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
1908
- ),
1909
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1910
- creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1911
- duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1912
- input: Schema.optional(
1913
- Schema.Union([
1914
- Schema.Struct({
1915
- height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1916
- width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1917
- }),
1918
- Schema.Null,
1919
- ]),
1920
- ),
1921
- liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1922
- maxDurationSeconds: Schema.optional(
1923
- Schema.Union([Schema.Number, Schema.Null]),
1924
- ),
1925
- meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1926
- modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1927
- playback: Schema.optional(
1928
- Schema.Union([
1929
- Schema.Struct({
1930
- dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1931
- hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1932
- }),
1933
- Schema.Null,
1934
- ]),
1935
- ),
1936
- preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1937
- readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1938
- readyToStreamAt: Schema.optional(
1939
- Schema.Union([Schema.String, Schema.Null]),
1940
- ),
1941
- requireSignedURLs: Schema.optional(
1942
- Schema.Union([Schema.Boolean, Schema.Null]),
1943
- ),
1944
- scheduledDeletion: Schema.optional(
1945
- Schema.Union([Schema.String, Schema.Null]),
1946
- ),
1947
- size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1948
- status: Schema.optional(
1949
- Schema.Union([
1950
- Schema.Struct({
1951
- errorReasonCode: Schema.optional(
1952
- Schema.Union([Schema.String, Schema.Null]),
1953
- ),
1954
- errorReasonText: Schema.optional(
1955
- Schema.Union([Schema.String, Schema.Null]),
1956
- ),
1957
- pctComplete: Schema.optional(
1958
- Schema.Union([Schema.String, Schema.Null]),
1959
- ),
1960
- state: Schema.optional(
1961
- Schema.Union([
1962
- Schema.Literals([
1963
- "pendingupload",
1964
- "downloading",
1965
- "queued",
1966
- "inprogress",
1967
- "ready",
1968
- "error",
1969
- "live-inprogress",
2043
+ export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2044
+ result: Schema.Array(
2045
+ Schema.Struct({
2046
+ allowedOrigins: Schema.optional(
2047
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2048
+ ),
2049
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2050
+ creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2051
+ duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2052
+ input: Schema.optional(
2053
+ Schema.Union([
2054
+ Schema.Struct({
2055
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2056
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2057
+ }),
2058
+ Schema.Null,
2059
+ ]),
2060
+ ),
2061
+ liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2062
+ maxDurationSeconds: Schema.optional(
2063
+ Schema.Union([Schema.Number, Schema.Null]),
2064
+ ),
2065
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2066
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2067
+ playback: Schema.optional(
2068
+ Schema.Union([
2069
+ Schema.Struct({
2070
+ dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2071
+ hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2072
+ }),
2073
+ Schema.Null,
2074
+ ]),
2075
+ ),
2076
+ preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2077
+ readyToStream: Schema.optional(
2078
+ Schema.Union([Schema.Boolean, Schema.Null]),
2079
+ ),
2080
+ readyToStreamAt: Schema.optional(
2081
+ Schema.Union([Schema.String, Schema.Null]),
2082
+ ),
2083
+ requireSignedURLs: Schema.optional(
2084
+ Schema.Union([Schema.Boolean, Schema.Null]),
2085
+ ),
2086
+ scheduledDeletion: Schema.optional(
2087
+ Schema.Union([Schema.String, Schema.Null]),
2088
+ ),
2089
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2090
+ status: Schema.optional(
2091
+ Schema.Union([
2092
+ Schema.Struct({
2093
+ errorReasonCode: Schema.optional(
2094
+ Schema.Union([Schema.String, Schema.Null]),
2095
+ ),
2096
+ errorReasonText: Schema.optional(
2097
+ Schema.Union([Schema.String, Schema.Null]),
2098
+ ),
2099
+ pctComplete: Schema.optional(
2100
+ Schema.Union([Schema.String, Schema.Null]),
2101
+ ),
2102
+ state: Schema.optional(
2103
+ Schema.Union([
2104
+ Schema.Literals([
2105
+ "pendingupload",
2106
+ "downloading",
2107
+ "queued",
2108
+ "inprogress",
2109
+ "ready",
2110
+ "error",
2111
+ "live-inprogress",
2112
+ ]),
2113
+ Schema.Null,
1970
2114
  ]),
1971
- Schema.Null,
1972
- ]),
1973
- ),
1974
- }),
1975
- Schema.Null,
1976
- ]),
1977
- ),
1978
- thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1979
- thumbnailTimestampPct: Schema.optional(
1980
- Schema.Union([Schema.Number, Schema.Null]),
1981
- ),
1982
- uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1983
- uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1984
- uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1985
- watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1986
- }),
1987
- ) as unknown as Schema.Schema<ListStreamsResponse>;
2115
+ ),
2116
+ }),
2117
+ Schema.Null,
2118
+ ]),
2119
+ ),
2120
+ thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2121
+ thumbnailTimestampPct: Schema.optional(
2122
+ Schema.Union([Schema.Number, Schema.Null]),
2123
+ ),
2124
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2125
+ uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2126
+ uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2127
+ watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2128
+ }),
2129
+ ),
2130
+ }) as unknown as Schema.Schema<ListStreamsResponse>;
1988
2131
 
1989
2132
  export type ListStreamsError = DefaultErrors;
1990
2133
 
1991
- export const listStreams: API.OperationMethod<
2134
+ export const listStreams: API.PaginatedOperationMethod<
1992
2135
  ListStreamsRequest,
1993
2136
  ListStreamsResponse,
1994
2137
  ListStreamsError,
1995
2138
  Credentials | HttpClient.HttpClient
1996
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2139
+ > & {
2140
+ pages: (
2141
+ input: ListStreamsRequest,
2142
+ ) => stream.Stream<
2143
+ ListStreamsResponse,
2144
+ ListStreamsError,
2145
+ Credentials | HttpClient.HttpClient
2146
+ >;
2147
+ items: (input: ListStreamsRequest) => stream.Stream<
2148
+ {
2149
+ allowedOrigins?: string[] | null;
2150
+ created?: string | null;
2151
+ creator?: string | null;
2152
+ duration?: number | null;
2153
+ input?: { height?: number | null; width?: number | null } | null;
2154
+ liveInput?: string | null;
2155
+ maxDurationSeconds?: number | null;
2156
+ meta?: unknown | null;
2157
+ modified?: string | null;
2158
+ playback?: { dash?: string | null; hls?: string | null } | null;
2159
+ preview?: string | null;
2160
+ readyToStream?: boolean | null;
2161
+ readyToStreamAt?: string | null;
2162
+ requireSignedURLs?: boolean | null;
2163
+ scheduledDeletion?: string | null;
2164
+ size?: number | null;
2165
+ status?: {
2166
+ errorReasonCode?: string | null;
2167
+ errorReasonText?: string | null;
2168
+ pctComplete?: string | null;
2169
+ state?:
2170
+ | "pendingupload"
2171
+ | "downloading"
2172
+ | "queued"
2173
+ | "inprogress"
2174
+ | "ready"
2175
+ | "error"
2176
+ | "live-inprogress"
2177
+ | null;
2178
+ } | null;
2179
+ thumbnail?: string | null;
2180
+ thumbnailTimestampPct?: number | null;
2181
+ uid?: string | null;
2182
+ uploaded?: string | null;
2183
+ uploadExpiry?: string | null;
2184
+ watermark?: unknown | null;
2185
+ },
2186
+ ListStreamsError,
2187
+ Credentials | HttpClient.HttpClient
2188
+ >;
2189
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
1997
2190
  input: ListStreamsRequest,
1998
2191
  output: ListStreamsResponse,
1999
2192
  errors: [],
2193
+ pagination: {
2194
+ mode: "single",
2195
+ items: "result",
2196
+ } as const,
2000
2197
  }));
2001
2198
 
2002
2199
  export interface CreateStreamRequest {
@@ -2262,7 +2459,9 @@ export const EditStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2262
2459
  uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2263
2460
  uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2264
2461
  watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
2265
- }) as unknown as Schema.Schema<EditStreamResponse>;
2462
+ }).pipe(
2463
+ T.ResponsePath("result"),
2464
+ ) as unknown as Schema.Schema<EditStreamResponse>;
2266
2465
 
2267
2466
  export type EditStreamError = DefaultErrors;
2268
2467
 
@@ -2338,7 +2537,9 @@ export interface CreateTokenResponse {
2338
2537
 
2339
2538
  export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2340
2539
  token: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2341
- }) as unknown as Schema.Schema<CreateTokenResponse>;
2540
+ }).pipe(
2541
+ T.ResponsePath("result"),
2542
+ ) as unknown as Schema.Schema<CreateTokenResponse>;
2342
2543
 
2343
2544
  export type CreateTokenError = DefaultErrors;
2344
2545
 
@@ -2396,7 +2597,9 @@ export const StorageUsageVideoResponse =
2396
2597
  Schema.Union([Schema.Number, Schema.Null]),
2397
2598
  ),
2398
2599
  videoCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2399
- }) as unknown as Schema.Schema<StorageUsageVideoResponse>;
2600
+ }).pipe(
2601
+ T.ResponsePath("result"),
2602
+ ) as unknown as Schema.Schema<StorageUsageVideoResponse>;
2400
2603
 
2401
2604
  export type StorageUsageVideoError = DefaultErrors;
2402
2605
 
@@ -2468,7 +2671,9 @@ export const GetWatermarkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2468
2671
  size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2469
2672
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2470
2673
  width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2471
- }) as unknown as Schema.Schema<GetWatermarkResponse>;
2674
+ }).pipe(
2675
+ T.ResponsePath("result"),
2676
+ ) as unknown as Schema.Schema<GetWatermarkResponse>;
2472
2677
 
2473
2678
  export type GetWatermarkError = DefaultErrors;
2474
2679
 
@@ -2494,47 +2699,84 @@ export const ListWatermarksRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2494
2699
  T.Http({ method: "GET", path: "/accounts/{account_id}/stream/watermarks" }),
2495
2700
  ) as unknown as Schema.Schema<ListWatermarksRequest>;
2496
2701
 
2497
- export type ListWatermarksResponse = {
2498
- created?: string | null;
2499
- downloadedFrom?: string | null;
2500
- height?: number | null;
2501
- name?: string | null;
2502
- opacity?: number | null;
2503
- padding?: number | null;
2504
- position?: string | null;
2505
- scale?: number | null;
2506
- size?: number | null;
2507
- uid?: string | null;
2508
- width?: number | null;
2509
- }[];
2702
+ export interface ListWatermarksResponse {
2703
+ result: {
2704
+ created?: string | null;
2705
+ downloadedFrom?: string | null;
2706
+ height?: number | null;
2707
+ name?: string | null;
2708
+ opacity?: number | null;
2709
+ padding?: number | null;
2710
+ position?: string | null;
2711
+ scale?: number | null;
2712
+ size?: number | null;
2713
+ uid?: string | null;
2714
+ width?: number | null;
2715
+ }[];
2716
+ }
2510
2717
 
2511
- export const ListWatermarksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2512
- Schema.Struct({
2513
- created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2514
- downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2515
- height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2516
- name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2517
- opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2518
- padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2519
- position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2520
- scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2521
- size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2522
- uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2523
- width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2524
- }),
2718
+ export const ListWatermarksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2719
+ {
2720
+ result: Schema.Array(
2721
+ Schema.Struct({
2722
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2723
+ downloadedFrom: Schema.optional(
2724
+ Schema.Union([Schema.String, Schema.Null]),
2725
+ ),
2726
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2727
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2728
+ opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2729
+ padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2730
+ position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2731
+ scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2732
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2733
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2734
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2735
+ }),
2736
+ ),
2737
+ },
2525
2738
  ) as unknown as Schema.Schema<ListWatermarksResponse>;
2526
2739
 
2527
2740
  export type ListWatermarksError = DefaultErrors;
2528
2741
 
2529
- export const listWatermarks: API.OperationMethod<
2742
+ export const listWatermarks: API.PaginatedOperationMethod<
2530
2743
  ListWatermarksRequest,
2531
2744
  ListWatermarksResponse,
2532
2745
  ListWatermarksError,
2533
2746
  Credentials | HttpClient.HttpClient
2534
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2747
+ > & {
2748
+ pages: (
2749
+ input: ListWatermarksRequest,
2750
+ ) => stream.Stream<
2751
+ ListWatermarksResponse,
2752
+ ListWatermarksError,
2753
+ Credentials | HttpClient.HttpClient
2754
+ >;
2755
+ items: (input: ListWatermarksRequest) => stream.Stream<
2756
+ {
2757
+ created?: string | null;
2758
+ downloadedFrom?: string | null;
2759
+ height?: number | null;
2760
+ name?: string | null;
2761
+ opacity?: number | null;
2762
+ padding?: number | null;
2763
+ position?: string | null;
2764
+ scale?: number | null;
2765
+ size?: number | null;
2766
+ uid?: string | null;
2767
+ width?: number | null;
2768
+ },
2769
+ ListWatermarksError,
2770
+ Credentials | HttpClient.HttpClient
2771
+ >;
2772
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2535
2773
  input: ListWatermarksRequest,
2536
2774
  output: ListWatermarksResponse,
2537
2775
  errors: [],
2776
+ pagination: {
2777
+ mode: "single",
2778
+ items: "result",
2779
+ } as const,
2538
2780
  }));
2539
2781
 
2540
2782
  export interface CreateWatermarkRequest {
@@ -2610,7 +2852,9 @@ export const CreateWatermarkResponse =
2610
2852
  size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2611
2853
  uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2612
2854
  width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2613
- }) as unknown as Schema.Schema<CreateWatermarkResponse>;
2855
+ }).pipe(
2856
+ T.ResponsePath("result"),
2857
+ ) as unknown as Schema.Schema<CreateWatermarkResponse>;
2614
2858
 
2615
2859
  export type CreateWatermarkError = DefaultErrors;
2616
2860
 
@@ -2646,7 +2890,9 @@ export const DeleteWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
2646
2890
  export type DeleteWatermarkResponse = string;
2647
2891
 
2648
2892
  export const DeleteWatermarkResponse =
2649
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteWatermarkResponse>;
2893
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
2894
+ T.ResponsePath("result"),
2895
+ ) as unknown as Schema.Schema<DeleteWatermarkResponse>;
2650
2896
 
2651
2897
  export type DeleteWatermarkError = DefaultErrors;
2652
2898
 
@@ -2679,7 +2925,9 @@ export const GetWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2679
2925
  export type GetWebhookResponse = unknown;
2680
2926
 
2681
2927
  export const GetWebhookResponse =
2682
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetWebhookResponse>;
2928
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
2929
+ T.ResponsePath("result"),
2930
+ ) as unknown as Schema.Schema<GetWebhookResponse>;
2683
2931
 
2684
2932
  export type GetWebhookError = DefaultErrors;
2685
2933
 
@@ -2711,7 +2959,9 @@ export const PutWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2711
2959
  export type PutWebhookResponse = unknown;
2712
2960
 
2713
2961
  export const PutWebhookResponse =
2714
- /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PutWebhookResponse>;
2962
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
2963
+ T.ResponsePath("result"),
2964
+ ) as unknown as Schema.Schema<PutWebhookResponse>;
2715
2965
 
2716
2966
  export type PutWebhookError = DefaultErrors;
2717
2967
 
@@ -2740,7 +2990,9 @@ export const DeleteWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2740
2990
  export type DeleteWebhookResponse = string;
2741
2991
 
2742
2992
  export const DeleteWebhookResponse =
2743
- /*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteWebhookResponse>;
2993
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(
2994
+ T.ResponsePath("result"),
2995
+ ) as unknown as Schema.Schema<DeleteWebhookResponse>;
2744
2996
 
2745
2997
  export type DeleteWebhookError = DefaultErrors;
2746
2998