@distilled.cloud/cloudflare 0.2.6 → 0.3.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (493) hide show
  1. package/README.md +12 -2
  2. package/lib/auth.d.ts +3 -2
  3. package/lib/auth.d.ts.map +1 -1
  4. package/lib/auth.js +4 -3
  5. package/lib/auth.js.map +1 -1
  6. package/lib/client/api.d.ts +7 -9
  7. package/lib/client/api.d.ts.map +1 -1
  8. package/lib/client/api.js +60 -13
  9. package/lib/client/api.js.map +1 -1
  10. package/lib/credentials.d.ts +58 -4
  11. package/lib/credentials.d.ts.map +1 -1
  12. package/lib/credentials.js +126 -7
  13. package/lib/credentials.js.map +1 -1
  14. package/lib/errors.d.ts +12 -1
  15. package/lib/errors.d.ts.map +1 -1
  16. package/lib/sensitive.d.ts +5 -0
  17. package/lib/sensitive.d.ts.map +1 -0
  18. package/lib/sensitive.js +5 -0
  19. package/lib/sensitive.js.map +1 -0
  20. package/lib/services/abuse-reports.d.ts +116 -44
  21. package/lib/services/abuse-reports.d.ts.map +1 -1
  22. package/lib/services/abuse-reports.js +171 -110
  23. package/lib/services/abuse-reports.js.map +1 -1
  24. package/lib/services/accounts.d.ts +146 -62
  25. package/lib/services/accounts.d.ts.map +1 -1
  26. package/lib/services/accounts.js +208 -153
  27. package/lib/services/accounts.js.map +1 -1
  28. package/lib/services/acm.d.ts.map +1 -1
  29. package/lib/services/acm.js +8 -4
  30. package/lib/services/acm.js.map +1 -1
  31. package/lib/services/addressing.d.ts +200 -87
  32. package/lib/services/addressing.d.ts.map +1 -1
  33. package/lib/services/addressing.js +288 -201
  34. package/lib/services/addressing.js.map +1 -1
  35. package/lib/services/ai-gateway.d.ts +302 -121
  36. package/lib/services/ai-gateway.d.ts.map +1 -1
  37. package/lib/services/ai-gateway.js +407 -283
  38. package/lib/services/ai-gateway.js.map +1 -1
  39. package/lib/services/ai.d.ts +83 -29
  40. package/lib/services/ai.d.ts.map +1 -1
  41. package/lib/services/ai.js +95 -42
  42. package/lib/services/ai.js.map +1 -1
  43. package/lib/services/aisearch.d.ts +266 -112
  44. package/lib/services/aisearch.d.ts.map +1 -1
  45. package/lib/services/aisearch.js +510 -393
  46. package/lib/services/aisearch.js.map +1 -1
  47. package/lib/services/alerting.d.ts +249 -112
  48. package/lib/services/alerting.d.ts.map +1 -1
  49. package/lib/services/alerting.js +382 -325
  50. package/lib/services/alerting.js.map +1 -1
  51. package/lib/services/api-gateway.d.ts +458 -200
  52. package/lib/services/api-gateway.d.ts.map +1 -1
  53. package/lib/services/api-gateway.js +725 -618
  54. package/lib/services/api-gateway.js.map +1 -1
  55. package/lib/services/argo.d.ts.map +1 -1
  56. package/lib/services/argo.js +16 -8
  57. package/lib/services/argo.js.map +1 -1
  58. package/lib/services/billing.d.ts.map +1 -1
  59. package/lib/services/billing.js +4 -2
  60. package/lib/services/billing.js.map +1 -1
  61. package/lib/services/bot-management.d.ts.map +1 -1
  62. package/lib/services/bot-management.js +2 -2
  63. package/lib/services/bot-management.js.map +1 -1
  64. package/lib/services/botnet-feed.d.ts.map +1 -1
  65. package/lib/services/botnet-feed.js +10 -6
  66. package/lib/services/botnet-feed.js.map +1 -1
  67. package/lib/services/brand-protection.d.ts +8 -2
  68. package/lib/services/brand-protection.d.ts.map +1 -1
  69. package/lib/services/brand-protection.js +9 -2
  70. package/lib/services/brand-protection.js.map +1 -1
  71. package/lib/services/browser-rendering.d.ts.map +1 -1
  72. package/lib/services/browser-rendering.js +15 -14
  73. package/lib/services/browser-rendering.js.map +1 -1
  74. package/lib/services/cache.d.ts.map +1 -1
  75. package/lib/services/cache.js +49 -25
  76. package/lib/services/cache.js.map +1 -1
  77. package/lib/services/calls.d.ts +35 -14
  78. package/lib/services/calls.d.ts.map +1 -1
  79. package/lib/services/calls.js +35 -22
  80. package/lib/services/calls.js.map +1 -1
  81. package/lib/services/certificate-authorities.d.ts.map +1 -1
  82. package/lib/services/certificate-authorities.js +2 -2
  83. package/lib/services/certificate-authorities.js.map +1 -1
  84. package/lib/services/client-certificates.d.ts +57 -23
  85. package/lib/services/client-certificates.d.ts.map +1 -1
  86. package/lib/services/client-certificates.js +91 -62
  87. package/lib/services/client-certificates.js.map +1 -1
  88. package/lib/services/cloud-connector.d.ts +51 -22
  89. package/lib/services/cloud-connector.d.ts.map +1 -1
  90. package/lib/services/cloud-connector.js +57 -44
  91. package/lib/services/cloud-connector.js.map +1 -1
  92. package/lib/services/cloudforce-one.d.ts +119 -50
  93. package/lib/services/cloudforce-one.d.ts.map +1 -1
  94. package/lib/services/cloudforce-one.js +181 -124
  95. package/lib/services/cloudforce-one.js.map +1 -1
  96. package/lib/services/connectivity.d.ts +74 -31
  97. package/lib/services/connectivity.d.ts.map +1 -1
  98. package/lib/services/connectivity.js +84 -57
  99. package/lib/services/connectivity.js.map +1 -1
  100. package/lib/services/content-scanning.d.ts +40 -15
  101. package/lib/services/content-scanning.d.ts.map +1 -1
  102. package/lib/services/content-scanning.js +40 -21
  103. package/lib/services/content-scanning.js.map +1 -1
  104. package/lib/services/custom-certificates.d.ts +48 -19
  105. package/lib/services/custom-certificates.d.ts.map +1 -1
  106. package/lib/services/custom-certificates.js +80 -53
  107. package/lib/services/custom-certificates.js.map +1 -1
  108. package/lib/services/custom-hostnames.d.ts +116 -51
  109. package/lib/services/custom-hostnames.d.ts.map +1 -1
  110. package/lib/services/custom-hostnames.js +210 -170
  111. package/lib/services/custom-hostnames.js.map +1 -1
  112. package/lib/services/custom-nameservers.d.ts +32 -12
  113. package/lib/services/custom-nameservers.d.ts.map +1 -1
  114. package/lib/services/custom-nameservers.js +36 -21
  115. package/lib/services/custom-nameservers.js.map +1 -1
  116. package/lib/services/custom-pages.d.ts +26 -11
  117. package/lib/services/custom-pages.d.ts.map +1 -1
  118. package/lib/services/custom-pages.js +39 -24
  119. package/lib/services/custom-pages.js.map +1 -1
  120. package/lib/services/d1.d.ts +114 -48
  121. package/lib/services/d1.d.ts.map +1 -1
  122. package/lib/services/d1.js +150 -111
  123. package/lib/services/d1.js.map +1 -1
  124. package/lib/services/dcv-delegation.d.ts.map +1 -1
  125. package/lib/services/dcv-delegation.js +1 -1
  126. package/lib/services/dcv-delegation.js.map +1 -1
  127. package/lib/services/diagnostics.d.ts +59 -26
  128. package/lib/services/diagnostics.d.ts.map +1 -1
  129. package/lib/services/diagnostics.js +97 -82
  130. package/lib/services/diagnostics.js.map +1 -1
  131. package/lib/services/dns-firewall.d.ts +48 -19
  132. package/lib/services/dns-firewall.d.ts.map +1 -1
  133. package/lib/services/dns-firewall.js +75 -48
  134. package/lib/services/dns-firewall.js.map +1 -1
  135. package/lib/services/dns.d.ts +206 -87
  136. package/lib/services/dns.d.ts.map +1 -1
  137. package/lib/services/dns.js +335 -219
  138. package/lib/services/dns.js.map +1 -1
  139. package/lib/services/durable-objects.d.ts +44 -13
  140. package/lib/services/durable-objects.d.ts.map +1 -1
  141. package/lib/services/durable-objects.js +56 -19
  142. package/lib/services/durable-objects.js.map +1 -1
  143. package/lib/services/email-routing.d.ts +90 -34
  144. package/lib/services/email-routing.d.ts.map +1 -1
  145. package/lib/services/email-routing.js +133 -80
  146. package/lib/services/email-routing.js.map +1 -1
  147. package/lib/services/email-security.d.ts +439 -181
  148. package/lib/services/email-security.d.ts.map +1 -1
  149. package/lib/services/email-security.js +753 -557
  150. package/lib/services/email-security.js.map +1 -1
  151. package/lib/services/filters.d.ts +64 -24
  152. package/lib/services/filters.d.ts.map +1 -1
  153. package/lib/services/filters.js +61 -28
  154. package/lib/services/filters.js.map +1 -1
  155. package/lib/services/firewall.d.ts +455 -183
  156. package/lib/services/firewall.d.ts.map +1 -1
  157. package/lib/services/firewall.js +777 -574
  158. package/lib/services/firewall.js.map +1 -1
  159. package/lib/services/healthchecks.d.ts +76 -33
  160. package/lib/services/healthchecks.d.ts.map +1 -1
  161. package/lib/services/healthchecks.js +129 -100
  162. package/lib/services/healthchecks.js.map +1 -1
  163. package/lib/services/hostnames.d.ts +20 -8
  164. package/lib/services/hostnames.d.ts.map +1 -1
  165. package/lib/services/hostnames.js +32 -21
  166. package/lib/services/hostnames.js.map +1 -1
  167. package/lib/services/hyperdrive.d.ts.map +1 -1
  168. package/lib/services/hyperdrive.js +10 -9
  169. package/lib/services/hyperdrive.js.map +1 -1
  170. package/lib/services/iam.d.ts +162 -59
  171. package/lib/services/iam.d.ts.map +1 -1
  172. package/lib/services/iam.js +219 -119
  173. package/lib/services/iam.js.map +1 -1
  174. package/lib/services/images.d.ts +36 -12
  175. package/lib/services/images.d.ts.map +1 -1
  176. package/lib/services/images.js +59 -32
  177. package/lib/services/images.js.map +1 -1
  178. package/lib/services/intel.d.ts +159 -62
  179. package/lib/services/intel.d.ts.map +1 -1
  180. package/lib/services/intel.js +238 -151
  181. package/lib/services/intel.js.map +1 -1
  182. package/lib/services/ips.d.ts.map +1 -1
  183. package/lib/services/ips.js +1 -1
  184. package/lib/services/ips.js.map +1 -1
  185. package/lib/services/keyless-certificates.d.ts +36 -16
  186. package/lib/services/keyless-certificates.d.ts.map +1 -1
  187. package/lib/services/keyless-certificates.js +50 -37
  188. package/lib/services/keyless-certificates.js.map +1 -1
  189. package/lib/services/kv.d.ts +42 -12
  190. package/lib/services/kv.d.ts.map +1 -1
  191. package/lib/services/kv.js +87 -36
  192. package/lib/services/kv.js.map +1 -1
  193. package/lib/services/leaked-credential-checks.d.ts +16 -6
  194. package/lib/services/leaked-credential-checks.d.ts.map +1 -1
  195. package/lib/services/leaked-credential-checks.js +20 -12
  196. package/lib/services/leaked-credential-checks.js.map +1 -1
  197. package/lib/services/load-balancers.d.ts +373 -167
  198. package/lib/services/load-balancers.d.ts.map +1 -1
  199. package/lib/services/load-balancers.js +603 -490
  200. package/lib/services/load-balancers.js.map +1 -1
  201. package/lib/services/logpush.d.ts.map +1 -1
  202. package/lib/services/logpush.js +23 -15
  203. package/lib/services/logpush.js.map +1 -1
  204. package/lib/services/logs.d.ts.map +1 -1
  205. package/lib/services/logs.js +11 -7
  206. package/lib/services/logs.js.map +1 -1
  207. package/lib/services/magic-cloud-networking.d.ts +542 -249
  208. package/lib/services/magic-cloud-networking.d.ts.map +1 -1
  209. package/lib/services/magic-cloud-networking.js +890 -804
  210. package/lib/services/magic-cloud-networking.js.map +1 -1
  211. package/lib/services/magic-network-monitoring.d.ts.map +1 -1
  212. package/lib/services/magic-network-monitoring.js +44 -22
  213. package/lib/services/magic-network-monitoring.js.map +1 -1
  214. package/lib/services/magic-transit.d.ts +432 -196
  215. package/lib/services/magic-transit.d.ts.map +1 -1
  216. package/lib/services/magic-transit.js +730 -566
  217. package/lib/services/magic-transit.js.map +1 -1
  218. package/lib/services/managed-transforms.d.ts.map +1 -1
  219. package/lib/services/managed-transforms.js +8 -4
  220. package/lib/services/managed-transforms.js.map +1 -1
  221. package/lib/services/memberships.d.ts +54 -22
  222. package/lib/services/memberships.d.ts.map +1 -1
  223. package/lib/services/memberships.js +79 -53
  224. package/lib/services/memberships.js.map +1 -1
  225. package/lib/services/mtls-certificates.d.ts +41 -17
  226. package/lib/services/mtls-certificates.d.ts.map +1 -1
  227. package/lib/services/mtls-certificates.js +52 -33
  228. package/lib/services/mtls-certificates.js.map +1 -1
  229. package/lib/services/organizations.d.ts +56 -25
  230. package/lib/services/organizations.d.ts.map +1 -1
  231. package/lib/services/organizations.js +74 -59
  232. package/lib/services/organizations.js.map +1 -1
  233. package/lib/services/origin-ca-certificates.d.ts +30 -10
  234. package/lib/services/origin-ca-certificates.d.ts.map +1 -1
  235. package/lib/services/origin-ca-certificates.js +62 -35
  236. package/lib/services/origin-ca-certificates.js.map +1 -1
  237. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
  238. package/lib/services/origin-post-quantum-encryption.js +8 -4
  239. package/lib/services/origin-post-quantum-encryption.js.map +1 -1
  240. package/lib/services/origin-tls-client-auth.d.ts +60 -25
  241. package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
  242. package/lib/services/origin-tls-client-auth.js +94 -60
  243. package/lib/services/origin-tls-client-auth.js.map +1 -1
  244. package/lib/services/page-rules.d.ts.map +1 -1
  245. package/lib/services/page-rules.js +18 -10
  246. package/lib/services/page-rules.js.map +1 -1
  247. package/lib/services/page-shield.d.ts +145 -66
  248. package/lib/services/page-shield.d.ts.map +1 -1
  249. package/lib/services/page-shield.js +166 -130
  250. package/lib/services/page-shield.js.map +1 -1
  251. package/lib/services/pages.d.ts +520 -225
  252. package/lib/services/pages.d.ts.map +1 -1
  253. package/lib/services/pages.js +643 -567
  254. package/lib/services/pages.js.map +1 -1
  255. package/lib/services/pipelines.d.ts +461 -206
  256. package/lib/services/pipelines.d.ts.map +1 -1
  257. package/lib/services/pipelines.js +859 -780
  258. package/lib/services/pipelines.js.map +1 -1
  259. package/lib/services/queues.d.ts +177 -80
  260. package/lib/services/queues.d.ts.map +1 -1
  261. package/lib/services/queues.js +233 -177
  262. package/lib/services/queues.js.map +1 -1
  263. package/lib/services/r2-data-catalog.d.ts.map +1 -1
  264. package/lib/services/r2-data-catalog.js +30 -16
  265. package/lib/services/r2-data-catalog.js.map +1 -1
  266. package/lib/services/r2.d.ts +85 -39
  267. package/lib/services/r2.d.ts.map +1 -1
  268. package/lib/services/r2.js +146 -126
  269. package/lib/services/r2.js.map +1 -1
  270. package/lib/services/radar.d.ts +152 -63
  271. package/lib/services/radar.d.ts.map +1 -1
  272. package/lib/services/radar.js +421 -360
  273. package/lib/services/radar.js.map +1 -1
  274. package/lib/services/rate-limits.d.ts +76 -31
  275. package/lib/services/rate-limits.d.ts.map +1 -1
  276. package/lib/services/rate-limits.js +106 -82
  277. package/lib/services/rate-limits.js.map +1 -1
  278. package/lib/services/realtime-kit.d.ts.map +1 -1
  279. package/lib/services/realtime-kit.js +34 -33
  280. package/lib/services/realtime-kit.js.map +1 -1
  281. package/lib/services/registrar.d.ts +75 -35
  282. package/lib/services/registrar.d.ts.map +1 -1
  283. package/lib/services/registrar.js +116 -103
  284. package/lib/services/registrar.js.map +1 -1
  285. package/lib/services/request-tracers.d.ts.map +1 -1
  286. package/lib/services/request-tracers.js +5 -2
  287. package/lib/services/request-tracers.js.map +1 -1
  288. package/lib/services/resource-sharing.d.ts +132 -50
  289. package/lib/services/resource-sharing.d.ts.map +1 -1
  290. package/lib/services/resource-sharing.js +232 -149
  291. package/lib/services/resource-sharing.js.map +1 -1
  292. package/lib/services/rules.d.ts +86 -37
  293. package/lib/services/rules.d.ts.map +1 -1
  294. package/lib/services/rules.js +122 -87
  295. package/lib/services/rules.js.map +1 -1
  296. package/lib/services/rulesets.d.ts +75 -30
  297. package/lib/services/rulesets.d.ts.map +1 -1
  298. package/lib/services/rulesets.js +274 -222
  299. package/lib/services/rulesets.js.map +1 -1
  300. package/lib/services/rum.d.ts +40 -15
  301. package/lib/services/rum.d.ts.map +1 -1
  302. package/lib/services/rum.js +78 -45
  303. package/lib/services/rum.js.map +1 -1
  304. package/lib/services/schema-validation.d.ts +47 -14
  305. package/lib/services/schema-validation.d.ts.map +1 -1
  306. package/lib/services/schema-validation.js +102 -43
  307. package/lib/services/schema-validation.js.map +1 -1
  308. package/lib/services/secrets-store.d.ts +116 -44
  309. package/lib/services/secrets-store.d.ts.map +1 -1
  310. package/lib/services/secrets-store.js +145 -78
  311. package/lib/services/secrets-store.js.map +1 -1
  312. package/lib/services/security-center.d.ts +56 -22
  313. package/lib/services/security-center.d.ts.map +1 -1
  314. package/lib/services/security-center.js +90 -64
  315. package/lib/services/security-center.js.map +1 -1
  316. package/lib/services/security-txt.d.ts.map +1 -1
  317. package/lib/services/security-txt.js +1 -1
  318. package/lib/services/security-txt.js.map +1 -1
  319. package/lib/services/snippets.d.ts +85 -33
  320. package/lib/services/snippets.d.ts.map +1 -1
  321. package/lib/services/snippets.js +106 -63
  322. package/lib/services/snippets.js.map +1 -1
  323. package/lib/services/spectrum.d.ts +58 -24
  324. package/lib/services/spectrum.d.ts.map +1 -1
  325. package/lib/services/spectrum.js +90 -65
  326. package/lib/services/spectrum.js.map +1 -1
  327. package/lib/services/speed.d.ts +47 -17
  328. package/lib/services/speed.d.ts.map +1 -1
  329. package/lib/services/speed.js +51 -24
  330. package/lib/services/speed.js.map +1 -1
  331. package/lib/services/ssl.d.ts +77 -35
  332. package/lib/services/ssl.d.ts.map +1 -1
  333. package/lib/services/ssl.js +146 -123
  334. package/lib/services/ssl.js.map +1 -1
  335. package/lib/services/stream.d.ts +173 -77
  336. package/lib/services/stream.d.ts.map +1 -1
  337. package/lib/services/stream.js +167 -131
  338. package/lib/services/stream.js.map +1 -1
  339. package/lib/services/token-validation.d.ts +203 -88
  340. package/lib/services/token-validation.d.ts.map +1 -1
  341. package/lib/services/token-validation.js +238 -172
  342. package/lib/services/token-validation.js.map +1 -1
  343. package/lib/services/turnstile.d.ts +38 -14
  344. package/lib/services/turnstile.d.ts.map +1 -1
  345. package/lib/services/turnstile.js +72 -41
  346. package/lib/services/turnstile.js.map +1 -1
  347. package/lib/services/url-normalization.d.ts.map +1 -1
  348. package/lib/services/url-normalization.js +2 -2
  349. package/lib/services/url-normalization.js.map +1 -1
  350. package/lib/services/user.d.ts +106 -40
  351. package/lib/services/user.d.ts.map +1 -1
  352. package/lib/services/user.js +156 -89
  353. package/lib/services/user.js.map +1 -1
  354. package/lib/services/vectorize.d.ts +26 -11
  355. package/lib/services/vectorize.d.ts.map +1 -1
  356. package/lib/services/vectorize.js +46 -35
  357. package/lib/services/vectorize.js.map +1 -1
  358. package/lib/services/waiting-rooms.d.ts +244 -104
  359. package/lib/services/waiting-rooms.d.ts.map +1 -1
  360. package/lib/services/waiting-rooms.js +398 -296
  361. package/lib/services/waiting-rooms.js.map +1 -1
  362. package/lib/services/web3.d.ts +26 -11
  363. package/lib/services/web3.d.ts.map +1 -1
  364. package/lib/services/web3.js +62 -43
  365. package/lib/services/web3.js.map +1 -1
  366. package/lib/services/workers-for-platforms.d.ts +323 -153
  367. package/lib/services/workers-for-platforms.d.ts.map +1 -1
  368. package/lib/services/workers-for-platforms.js +331 -288
  369. package/lib/services/workers-for-platforms.js.map +1 -1
  370. package/lib/services/workers.d.ts +601 -272
  371. package/lib/services/workers.d.ts.map +1 -1
  372. package/lib/services/workers.js +771 -633
  373. package/lib/services/workers.js.map +1 -1
  374. package/lib/services/workflows.d.ts +130 -47
  375. package/lib/services/workflows.d.ts.map +1 -1
  376. package/lib/services/workflows.js +190 -107
  377. package/lib/services/workflows.js.map +1 -1
  378. package/lib/services/zaraz.d.ts +20 -8
  379. package/lib/services/zaraz.d.ts.map +1 -1
  380. package/lib/services/zaraz.js +20 -13
  381. package/lib/services/zaraz.js.map +1 -1
  382. package/lib/services/zero-trust.d.ts +5436 -2650
  383. package/lib/services/zero-trust.d.ts.map +1 -1
  384. package/lib/services/zero-trust.js +9008 -7934
  385. package/lib/services/zero-trust.js.map +1 -1
  386. package/lib/services/zones.d.ts +188 -84
  387. package/lib/services/zones.d.ts.map +1 -1
  388. package/lib/services/zones.js +257 -196
  389. package/lib/services/zones.js.map +1 -1
  390. package/package.json +3 -2
  391. package/src/auth.ts +4 -3
  392. package/src/client/api.ts +105 -13
  393. package/src/credentials.ts +253 -12
  394. package/src/errors.ts +17 -1
  395. package/src/sensitive.ts +4 -0
  396. package/src/services/abuse-reports.ts +416 -208
  397. package/src/services/accounts.ts +511 -306
  398. package/src/services/acm.ts +22 -14
  399. package/src/services/addressing.ts +865 -550
  400. package/src/services/ai-gateway.ts +1148 -710
  401. package/src/services/ai.ts +265 -91
  402. package/src/services/aisearch.ts +1460 -995
  403. package/src/services/alerting.ts +1027 -671
  404. package/src/services/api-gateway.ts +1628 -1129
  405. package/src/services/argo.ts +48 -32
  406. package/src/services/billing.ts +47 -43
  407. package/src/services/bot-management.ts +6 -2
  408. package/src/services/botnet-feed.ts +28 -16
  409. package/src/services/brand-protection.ts +28 -6
  410. package/src/services/browser-rendering.ts +23 -10
  411. package/src/services/cache.ts +147 -97
  412. package/src/services/calls.ts +107 -42
  413. package/src/services/certificate-authorities.ts +6 -2
  414. package/src/services/client-certificates.ts +270 -173
  415. package/src/services/cloud-connector.ts +149 -82
  416. package/src/services/cloudforce-one.ts +515 -287
  417. package/src/services/connectivity.ts +184 -107
  418. package/src/services/content-scanning.ts +115 -42
  419. package/src/services/custom-certificates.ts +200 -121
  420. package/src/services/custom-hostnames.ts +583 -395
  421. package/src/services/custom-nameservers.ts +98 -45
  422. package/src/services/custom-pages.ts +109 -62
  423. package/src/services/d1.ts +409 -235
  424. package/src/services/dcv-delegation.ts +3 -1
  425. package/src/services/diagnostics.ts +267 -193
  426. package/src/services/dns-firewall.ts +197 -116
  427. package/src/services/dns.ts +916 -536
  428. package/src/services/durable-objects.ts +126 -37
  429. package/src/services/email-routing.ts +375 -181
  430. package/src/services/email-security.ts +1881 -1112
  431. package/src/services/filters.ts +176 -58
  432. package/src/services/firewall.ts +1843 -1011
  433. package/src/services/healthchecks.ts +374 -258
  434. package/src/services/hostnames.ts +83 -47
  435. package/src/services/hyperdrive.ts +12 -9
  436. package/src/services/iam.ts +560 -259
  437. package/src/services/images.ts +148 -54
  438. package/src/services/intel.ts +677 -373
  439. package/src/services/ips.ts +1 -1
  440. package/src/services/keyless-certificates.ts +139 -92
  441. package/src/services/kv.ts +204 -86
  442. package/src/services/leaked-credential-checks.ts +58 -19
  443. package/src/services/load-balancers.ts +1755 -1200
  444. package/src/services/logpush.ts +100 -72
  445. package/src/services/logs.ts +29 -15
  446. package/src/services/magic-cloud-networking.ts +2453 -1726
  447. package/src/services/magic-network-monitoring.ts +163 -119
  448. package/src/services/magic-transit.ts +2153 -1530
  449. package/src/services/managed-transforms.ts +20 -12
  450. package/src/services/memberships.ts +196 -113
  451. package/src/services/mtls-certificates.ts +158 -88
  452. package/src/services/organizations.ts +185 -121
  453. package/src/services/origin-ca-certificates.ts +130 -64
  454. package/src/services/origin-post-quantum-encryption.ts +24 -16
  455. package/src/services/origin-tls-client-auth.ts +282 -158
  456. package/src/services/page-rules.ts +64 -44
  457. package/src/services/page-shield.ts +492 -316
  458. package/src/services/pages.ts +1612 -1154
  459. package/src/services/pipelines.ts +1735 -1280
  460. package/src/services/queues.ts +617 -419
  461. package/src/services/r2-data-catalog.ts +82 -50
  462. package/src/services/r2.ts +420 -239
  463. package/src/services/radar.ts +1107 -423
  464. package/src/services/rate-limits.ts +254 -152
  465. package/src/services/realtime-kit.ts +34 -33
  466. package/src/services/registrar.ts +262 -167
  467. package/src/services/request-tracers.ts +7 -4
  468. package/src/services/resource-sharing.ts +628 -378
  469. package/src/services/rules.ts +292 -176
  470. package/src/services/rulesets.ts +643 -426
  471. package/src/services/rum.ts +204 -111
  472. package/src/services/schema-validation.ts +240 -104
  473. package/src/services/secrets-store.ts +356 -166
  474. package/src/services/security-center.ts +196 -98
  475. package/src/services/security-txt.ts +2 -0
  476. package/src/services/snippets.ts +259 -117
  477. package/src/services/spectrum.ts +215 -128
  478. package/src/services/speed.ts +144 -46
  479. package/src/services/ssl.ts +420 -293
  480. package/src/services/stream.ts +496 -244
  481. package/src/services/token-validation.ts +583 -343
  482. package/src/services/turnstile.ts +206 -124
  483. package/src/services/url-normalization.ts +6 -2
  484. package/src/services/user.ts +480 -277
  485. package/src/services/vectorize.ts +123 -64
  486. package/src/services/waiting-rooms.ts +1156 -747
  487. package/src/services/web3.ts +178 -113
  488. package/src/services/workers-for-platforms.ts +814 -539
  489. package/src/services/workers.ts +1888 -1227
  490. package/src/services/workflows.ts +453 -205
  491. package/src/services/zaraz.ts +61 -25
  492. package/src/services/zero-trust.ts +17859 -12103
  493. package/src/services/zones.ts +690 -459
@@ -5,12 +5,14 @@
5
5
  * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service pipelines
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";
11
12
  import * as T from "../traits.ts";
12
13
  import type { Credentials } from "../credentials.ts";
13
14
  import { type DefaultErrors } from "../errors.ts";
15
+ import { SensitiveString } from "../sensitive.ts";
14
16
 
15
17
  // =============================================================================
16
18
  // Errors
@@ -179,7 +181,9 @@ export const GetPipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
179
181
  ]),
180
182
  ),
181
183
  version: Schema.Number,
182
- }) as unknown as Schema.Schema<GetPipelineResponse>;
184
+ }).pipe(
185
+ T.ResponsePath("result"),
186
+ ) as unknown as Schema.Schema<GetPipelineResponse>;
183
187
 
184
188
  export type GetPipelineError = DefaultErrors | PipelineNotExists;
185
189
 
@@ -214,159 +218,138 @@ export const ListPipelinesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
214
218
  T.Http({ method: "GET", path: "/accounts/{account_id}/pipelines" }),
215
219
  ) as unknown as Schema.Schema<ListPipelinesRequest>;
216
220
 
217
- export type ListPipelinesResponse = {
221
+ export interface ListPipelinesResponse {
218
222
  resultInfo?: {
219
223
  count: number;
220
224
  page: number;
221
225
  perPage: number;
222
226
  totalCount: number;
223
227
  } | null;
224
- results?:
225
- | {
226
- id: string;
227
- destination: {
228
- batch: {
229
- maxBytes?: number | null;
230
- maxDurationS?: number | null;
231
- maxRows?: number | null;
232
- };
233
- compression: { type?: "none" | "gzip" | "deflate" | null };
228
+ results: {
229
+ id: string;
230
+ destination: {
231
+ batch: {
232
+ maxBytes?: number | null;
233
+ maxDurationS?: number | null;
234
+ maxRows?: number | null;
235
+ };
236
+ compression: { type?: "none" | "gzip" | "deflate" | null };
237
+ format: "json";
238
+ path: {
239
+ bucket: string;
240
+ filename?: string | null;
241
+ filepath?: string | null;
242
+ prefix?: string | null;
243
+ };
244
+ type: "r2";
245
+ };
246
+ endpoint: string;
247
+ name: string;
248
+ source: (
249
+ | {
234
250
  format: "json";
235
- path: {
236
- bucket: string;
237
- filename?: string | null;
238
- filepath?: string | null;
239
- prefix?: string | null;
240
- };
241
- type: "r2";
242
- };
243
- endpoint: string;
244
- name: string;
245
- source: (
246
- | {
247
- format: "json";
248
- type: string;
249
- authentication?: boolean | null;
250
- cors?: { origins?: string[] | null } | null;
251
- }
252
- | { format: "json"; type: string }
253
- )[];
254
- version: number;
255
- }[]
256
- | null;
257
- success?: boolean | null;
258
- }[];
251
+ type: string;
252
+ authentication?: boolean | null;
253
+ cors?: { origins?: string[] | null } | null;
254
+ }
255
+ | { format: "json"; type: string }
256
+ )[];
257
+ version: number;
258
+ }[];
259
+ /** Indicates whether the API call was successful. */
260
+ success: boolean;
261
+ }
259
262
 
260
- export const ListPipelinesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
261
- Schema.Struct({
262
- resultInfo: Schema.optional(
263
- Schema.Union([
264
- Schema.Struct({
265
- count: Schema.Number,
266
- page: Schema.Number,
267
- perPage: Schema.Number,
268
- totalCount: Schema.Number,
263
+ export const ListPipelinesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
264
+ resultInfo: Schema.optional(
265
+ Schema.Union([
266
+ Schema.Struct({
267
+ count: Schema.Number,
268
+ page: Schema.Number,
269
+ perPage: Schema.Number,
270
+ totalCount: Schema.Number,
271
+ }).pipe(
272
+ Schema.encodeKeys({
273
+ count: "count",
274
+ page: "page",
275
+ perPage: "per_page",
276
+ totalCount: "total_count",
277
+ }),
278
+ ),
279
+ Schema.Null,
280
+ ]),
281
+ ),
282
+ results: Schema.Array(
283
+ Schema.Struct({
284
+ id: Schema.String,
285
+ destination: Schema.Struct({
286
+ batch: Schema.Struct({
287
+ maxBytes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
288
+ maxDurationS: Schema.optional(
289
+ Schema.Union([Schema.Number, Schema.Null]),
290
+ ),
291
+ maxRows: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
269
292
  }).pipe(
270
293
  Schema.encodeKeys({
271
- count: "count",
272
- page: "page",
273
- perPage: "per_page",
274
- totalCount: "total_count",
294
+ maxBytes: "max_bytes",
295
+ maxDurationS: "max_duration_s",
296
+ maxRows: "max_rows",
275
297
  }),
276
298
  ),
277
- Schema.Null,
278
- ]),
279
- ),
280
- results: Schema.optional(
281
- Schema.Union([
282
- Schema.Array(
299
+ compression: Schema.Struct({
300
+ type: Schema.optional(
301
+ Schema.Union([
302
+ Schema.Literals(["none", "gzip", "deflate"]),
303
+ Schema.Null,
304
+ ]),
305
+ ),
306
+ }),
307
+ format: Schema.Literal("json"),
308
+ path: Schema.Struct({
309
+ bucket: Schema.String,
310
+ filename: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
311
+ filepath: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
312
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
313
+ }),
314
+ type: Schema.Literal("r2"),
315
+ }),
316
+ endpoint: Schema.String,
317
+ name: Schema.String,
318
+ source: Schema.Array(
319
+ Schema.Union([
283
320
  Schema.Struct({
284
- id: Schema.String,
285
- destination: Schema.Struct({
286
- batch: Schema.Struct({
287
- maxBytes: Schema.optional(
288
- Schema.Union([Schema.Number, Schema.Null]),
289
- ),
290
- maxDurationS: Schema.optional(
291
- Schema.Union([Schema.Number, Schema.Null]),
292
- ),
293
- maxRows: Schema.optional(
294
- Schema.Union([Schema.Number, Schema.Null]),
295
- ),
296
- }).pipe(
297
- Schema.encodeKeys({
298
- maxBytes: "max_bytes",
299
- maxDurationS: "max_duration_s",
300
- maxRows: "max_rows",
301
- }),
302
- ),
303
- compression: Schema.Struct({
304
- type: Schema.optional(
305
- Schema.Union([
306
- Schema.Literals(["none", "gzip", "deflate"]),
307
- Schema.Null,
308
- ]),
309
- ),
310
- }),
311
- format: Schema.Literal("json"),
312
- path: Schema.Struct({
313
- bucket: Schema.String,
314
- filename: Schema.optional(
315
- Schema.Union([Schema.String, Schema.Null]),
316
- ),
317
- filepath: Schema.optional(
318
- Schema.Union([Schema.String, Schema.Null]),
319
- ),
320
- prefix: Schema.optional(
321
- Schema.Union([Schema.String, Schema.Null]),
322
- ),
323
- }),
324
- type: Schema.Literal("r2"),
325
- }),
326
- endpoint: Schema.String,
327
- name: Schema.String,
328
- source: Schema.Array(
321
+ format: Schema.Literal("json"),
322
+ type: Schema.String,
323
+ authentication: Schema.optional(
324
+ Schema.Union([Schema.Boolean, Schema.Null]),
325
+ ),
326
+ cors: Schema.optional(
329
327
  Schema.Union([
330
328
  Schema.Struct({
331
- format: Schema.Literal("json"),
332
- type: Schema.String,
333
- authentication: Schema.optional(
334
- Schema.Union([Schema.Boolean, Schema.Null]),
335
- ),
336
- cors: Schema.optional(
337
- Schema.Union([
338
- Schema.Struct({
339
- origins: Schema.optional(
340
- Schema.Union([
341
- Schema.Array(Schema.String),
342
- Schema.Null,
343
- ]),
344
- ),
345
- }),
346
- Schema.Null,
347
- ]),
329
+ origins: Schema.optional(
330
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
348
331
  ),
349
332
  }),
350
- Schema.Struct({
351
- format: Schema.Literal("json"),
352
- type: Schema.String,
353
- }),
333
+ Schema.Null,
354
334
  ]),
355
335
  ),
356
- version: Schema.Number,
357
336
  }),
358
- ),
359
- Schema.Null,
360
- ]),
361
- ),
362
- success: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
363
- }).pipe(
364
- Schema.encodeKeys({
365
- resultInfo: "result_info",
366
- results: "results",
367
- success: "success",
337
+ Schema.Struct({
338
+ format: Schema.Literal("json"),
339
+ type: Schema.String,
340
+ }),
341
+ ]),
342
+ ),
343
+ version: Schema.Number,
368
344
  }),
369
345
  ),
346
+ success: Schema.Boolean,
347
+ }).pipe(
348
+ Schema.encodeKeys({
349
+ resultInfo: "result_info",
350
+ results: "result",
351
+ success: "success",
352
+ }),
370
353
  ) as unknown as Schema.Schema<ListPipelinesResponse>;
371
354
 
372
355
  export type ListPipelinesError = DefaultErrors;
@@ -435,9 +418,9 @@ export const CreatePipelineRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
435
418
  type: Schema.optional(Schema.Literals(["none", "gzip", "deflate"])),
436
419
  }),
437
420
  credentials: Schema.Struct({
438
- accessKeyId: Schema.String,
421
+ accessKeyId: SensitiveString,
439
422
  endpoint: Schema.String,
440
- secretAccessKey: Schema.String,
423
+ secretAccessKey: SensitiveString,
441
424
  }).pipe(
442
425
  Schema.encodeKeys({
443
426
  accessKeyId: "access_key_id",
@@ -576,6 +559,8 @@ export const CreatePipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
576
559
  ),
577
560
  version: Schema.Number,
578
561
  },
562
+ ).pipe(
563
+ T.ResponsePath("result"),
579
564
  ) as unknown as Schema.Schema<CreatePipelineResponse>;
580
565
 
581
566
  export type CreatePipelineError = DefaultErrors;
@@ -655,9 +640,9 @@ export const UpdatePipelineRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
655
640
  type: Schema.Literal("r2"),
656
641
  credentials: Schema.optional(
657
642
  Schema.Struct({
658
- accessKeyId: Schema.String,
643
+ accessKeyId: SensitiveString,
659
644
  endpoint: Schema.String,
660
- secretAccessKey: Schema.String,
645
+ secretAccessKey: SensitiveString,
661
646
  }).pipe(
662
647
  Schema.encodeKeys({
663
648
  accessKeyId: "access_key_id",
@@ -792,6 +777,8 @@ export const UpdatePipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
792
777
  ),
793
778
  version: Schema.Number,
794
779
  },
780
+ ).pipe(
781
+ T.ResponsePath("result"),
795
782
  ) as unknown as Schema.Schema<UpdatePipelineResponse>;
796
783
 
797
784
  export type UpdatePipelineError = DefaultErrors | PipelineNotExists;
@@ -1032,8 +1019,8 @@ export const GetSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1032
1019
  accountId: Schema.String,
1033
1020
  bucket: Schema.String,
1034
1021
  credentials: Schema.Struct({
1035
- accessKeyId: Schema.String,
1036
- secretAccessKey: Schema.String,
1022
+ accessKeyId: SensitiveString,
1023
+ secretAccessKey: SensitiveString,
1037
1024
  }).pipe(
1038
1025
  Schema.encodeKeys({
1039
1026
  accessKeyId: "access_key_id",
@@ -1502,18 +1489,20 @@ export const GetSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1502
1489
  Schema.Null,
1503
1490
  ]),
1504
1491
  ),
1505
- }).pipe(
1506
- Schema.encodeKeys({
1507
- id: "id",
1508
- createdAt: "created_at",
1509
- modifiedAt: "modified_at",
1510
- name: "name",
1511
- type: "type",
1512
- config: "config",
1513
- format: "format",
1514
- schema: "schema",
1515
- }),
1516
- ) as unknown as Schema.Schema<GetSinkResponse>;
1492
+ })
1493
+ .pipe(
1494
+ Schema.encodeKeys({
1495
+ id: "id",
1496
+ createdAt: "created_at",
1497
+ modifiedAt: "modified_at",
1498
+ name: "name",
1499
+ type: "type",
1500
+ config: "config",
1501
+ format: "format",
1502
+ schema: "schema",
1503
+ }),
1504
+ )
1505
+ .pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetSinkResponse>;
1517
1506
 
1518
1507
  export type GetSinkError = DefaultErrors | SinkNotFound | InvalidSinkId;
1519
1508
 
@@ -1542,138 +1531,46 @@ export const ListSinksRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1542
1531
  T.Http({ method: "GET", path: "/accounts/{account_id}/pipelines/v1/sinks" }),
1543
1532
  ) as unknown as Schema.Schema<ListSinksRequest>;
1544
1533
 
1545
- export type ListSinksResponse = {
1546
- id: string;
1547
- createdAt: string;
1548
- modifiedAt: string;
1549
- name: string;
1550
- type: "r2" | "r2_data_catalog";
1551
- config?:
1552
- | {
1553
- accountId: string;
1554
- bucket: string;
1555
- credentials: { accessKeyId: string; secretAccessKey: string };
1556
- fileNaming?: {
1557
- prefix?: string | null;
1558
- strategy?: "serial" | "uuid" | "uuid_v7" | "ulid" | null;
1559
- suffix?: string | null;
1560
- } | null;
1561
- jurisdiction?: string | null;
1562
- partitioning?: { timePattern?: string | null } | null;
1563
- path?: string | null;
1564
- rollingPolicy?: {
1565
- fileSizeBytes?: number | null;
1566
- inactivitySeconds?: number | null;
1567
- intervalSeconds?: number | null;
1568
- } | null;
1569
- }
1570
- | {
1571
- token: string;
1572
- accountId: string;
1573
- bucket: string;
1574
- tableName: string;
1575
- namespace?: string | null;
1576
- rollingPolicy?: {
1577
- fileSizeBytes?: number | null;
1578
- inactivitySeconds?: number | null;
1579
- intervalSeconds?: number | null;
1580
- } | null;
1581
- }
1582
- | null;
1583
- format?:
1584
- | {
1585
- type: "json";
1586
- decimalEncoding?: "number" | "string" | "bytes" | null;
1587
- timestampFormat?: "rfc3339" | "unix_millis" | null;
1588
- unstructured?: boolean | null;
1589
- }
1590
- | {
1591
- type: "parquet";
1592
- compression?:
1593
- | "uncompressed"
1594
- | "snappy"
1595
- | "gzip"
1596
- | "zstd"
1597
- | "lz4"
1598
- | null;
1599
- rowGroupBytes?: number | null;
1600
- }
1601
- | null;
1602
- schema?: {
1603
- fields?:
1604
- | (
1605
- | {
1606
- type: "int32";
1607
- metadataKey?: string | null;
1608
- name?: string | null;
1609
- required?: boolean | null;
1610
- sqlName?: string | null;
1611
- }
1612
- | {
1613
- type: "int64";
1614
- metadataKey?: string | null;
1615
- name?: string | null;
1616
- required?: boolean | null;
1617
- sqlName?: string | null;
1618
- }
1619
- | {
1620
- type: "float32";
1621
- metadataKey?: string | null;
1622
- name?: string | null;
1623
- required?: boolean | null;
1624
- sqlName?: string | null;
1625
- }
1626
- | {
1627
- type: "float64";
1628
- metadataKey?: string | null;
1629
- name?: string | null;
1630
- required?: boolean | null;
1631
- sqlName?: string | null;
1632
- }
1633
- | {
1634
- type: "bool";
1635
- metadataKey?: string | null;
1636
- name?: string | null;
1637
- required?: boolean | null;
1638
- sqlName?: string | null;
1639
- }
1640
- | {
1641
- type: "string";
1642
- metadataKey?: string | null;
1643
- name?: string | null;
1644
- required?: boolean | null;
1645
- sqlName?: string | null;
1646
- }
1647
- | {
1648
- type: "binary";
1649
- metadataKey?: string | null;
1650
- name?: string | null;
1651
- required?: boolean | null;
1652
- sqlName?: string | null;
1653
- }
1654
- | {
1655
- type: "timestamp";
1656
- metadataKey?: string | null;
1657
- name?: string | null;
1658
- required?: boolean | null;
1659
- sqlName?: string | null;
1660
- unit?:
1661
- | "second"
1662
- | "millisecond"
1663
- | "microsecond"
1664
- | "nanosecond"
1665
- | null;
1666
- }
1667
- | {
1668
- type: "json";
1669
- decimalEncoding?: "number" | "string" | "bytes" | null;
1670
- timestampFormat?: "rfc3339" | "unix_millis" | null;
1671
- unstructured?: boolean | null;
1672
- }
1673
- | unknown
1674
- )[]
1675
- | null;
1676
- format?:
1534
+ export interface ListSinksResponse {
1535
+ result: {
1536
+ id: string;
1537
+ createdAt: string;
1538
+ modifiedAt: string;
1539
+ name: string;
1540
+ type: "r2" | "r2_data_catalog";
1541
+ config?:
1542
+ | {
1543
+ accountId: string;
1544
+ bucket: string;
1545
+ credentials: { accessKeyId: string; secretAccessKey: string };
1546
+ fileNaming?: {
1547
+ prefix?: string | null;
1548
+ strategy?: "serial" | "uuid" | "uuid_v7" | "ulid" | null;
1549
+ suffix?: string | null;
1550
+ } | null;
1551
+ jurisdiction?: string | null;
1552
+ partitioning?: { timePattern?: string | null } | null;
1553
+ path?: string | null;
1554
+ rollingPolicy?: {
1555
+ fileSizeBytes?: number | null;
1556
+ inactivitySeconds?: number | null;
1557
+ intervalSeconds?: number | null;
1558
+ } | null;
1559
+ }
1560
+ | {
1561
+ token: string;
1562
+ accountId: string;
1563
+ bucket: string;
1564
+ tableName: string;
1565
+ namespace?: string | null;
1566
+ rollingPolicy?: {
1567
+ fileSizeBytes?: number | null;
1568
+ inactivitySeconds?: number | null;
1569
+ intervalSeconds?: number | null;
1570
+ } | null;
1571
+ }
1572
+ | null;
1573
+ format?:
1677
1574
  | {
1678
1575
  type: "json";
1679
1576
  decimalEncoding?: "number" | "string" | "bytes" | null;
@@ -1692,402 +1589,537 @@ export type ListSinksResponse = {
1692
1589
  rowGroupBytes?: number | null;
1693
1590
  }
1694
1591
  | null;
1695
- inferred?: boolean | null;
1592
+ schema?: {
1593
+ fields?:
1594
+ | (
1595
+ | {
1596
+ type: "int32";
1597
+ metadataKey?: string | null;
1598
+ name?: string | null;
1599
+ required?: boolean | null;
1600
+ sqlName?: string | null;
1601
+ }
1602
+ | {
1603
+ type: "int64";
1604
+ metadataKey?: string | null;
1605
+ name?: string | null;
1606
+ required?: boolean | null;
1607
+ sqlName?: string | null;
1608
+ }
1609
+ | {
1610
+ type: "float32";
1611
+ metadataKey?: string | null;
1612
+ name?: string | null;
1613
+ required?: boolean | null;
1614
+ sqlName?: string | null;
1615
+ }
1616
+ | {
1617
+ type: "float64";
1618
+ metadataKey?: string | null;
1619
+ name?: string | null;
1620
+ required?: boolean | null;
1621
+ sqlName?: string | null;
1622
+ }
1623
+ | {
1624
+ type: "bool";
1625
+ metadataKey?: string | null;
1626
+ name?: string | null;
1627
+ required?: boolean | null;
1628
+ sqlName?: string | null;
1629
+ }
1630
+ | {
1631
+ type: "string";
1632
+ metadataKey?: string | null;
1633
+ name?: string | null;
1634
+ required?: boolean | null;
1635
+ sqlName?: string | null;
1636
+ }
1637
+ | {
1638
+ type: "binary";
1639
+ metadataKey?: string | null;
1640
+ name?: string | null;
1641
+ required?: boolean | null;
1642
+ sqlName?: string | null;
1643
+ }
1644
+ | {
1645
+ type: "timestamp";
1646
+ metadataKey?: string | null;
1647
+ name?: string | null;
1648
+ required?: boolean | null;
1649
+ sqlName?: string | null;
1650
+ unit?:
1651
+ | "second"
1652
+ | "millisecond"
1653
+ | "microsecond"
1654
+ | "nanosecond"
1655
+ | null;
1656
+ }
1657
+ | {
1658
+ type: "json";
1659
+ decimalEncoding?: "number" | "string" | "bytes" | null;
1660
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
1661
+ unstructured?: boolean | null;
1662
+ }
1663
+ | unknown
1664
+ )[]
1665
+ | null;
1666
+ format?:
1667
+ | {
1668
+ type: "json";
1669
+ decimalEncoding?: "number" | "string" | "bytes" | null;
1670
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
1671
+ unstructured?: boolean | null;
1672
+ }
1673
+ | {
1674
+ type: "parquet";
1675
+ compression?:
1676
+ | "uncompressed"
1677
+ | "snappy"
1678
+ | "gzip"
1679
+ | "zstd"
1680
+ | "lz4"
1681
+ | null;
1682
+ rowGroupBytes?: number | null;
1683
+ }
1684
+ | null;
1685
+ inferred?: boolean | null;
1686
+ } | null;
1687
+ }[];
1688
+ resultInfo?: {
1689
+ count?: number | null;
1690
+ page?: number | null;
1691
+ perPage?: number | null;
1692
+ totalCount?: number | null;
1696
1693
  } | null;
1697
- }[];
1694
+ }
1698
1695
 
1699
- export const ListSinksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
1700
- Schema.Struct({
1701
- id: Schema.String,
1702
- createdAt: Schema.String,
1703
- modifiedAt: Schema.String,
1704
- name: Schema.String,
1705
- type: Schema.Literals(["r2", "r2_data_catalog"]),
1706
- config: Schema.optional(
1707
- Schema.Union([
1696
+ export const ListSinksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1697
+ result: Schema.Array(
1698
+ Schema.Struct({
1699
+ id: Schema.String,
1700
+ createdAt: Schema.String,
1701
+ modifiedAt: Schema.String,
1702
+ name: Schema.String,
1703
+ type: Schema.Literals(["r2", "r2_data_catalog"]),
1704
+ config: Schema.optional(
1708
1705
  Schema.Union([
1709
- Schema.Struct({
1710
- accountId: Schema.String,
1711
- bucket: Schema.String,
1712
- credentials: Schema.Struct({
1713
- accessKeyId: Schema.String,
1714
- secretAccessKey: Schema.String,
1715
- }).pipe(
1716
- Schema.encodeKeys({
1717
- accessKeyId: "access_key_id",
1718
- secretAccessKey: "secret_access_key",
1719
- }),
1720
- ),
1721
- fileNaming: Schema.optional(
1722
- Schema.Union([
1723
- Schema.Struct({
1724
- prefix: Schema.optional(
1725
- Schema.Union([Schema.String, Schema.Null]),
1726
- ),
1727
- strategy: Schema.optional(
1728
- Schema.Union([
1729
- Schema.Literals(["serial", "uuid", "uuid_v7", "ulid"]),
1730
- Schema.Null,
1731
- ]),
1732
- ),
1733
- suffix: Schema.optional(
1734
- Schema.Union([Schema.String, Schema.Null]),
1735
- ),
1706
+ Schema.Union([
1707
+ Schema.Struct({
1708
+ accountId: Schema.String,
1709
+ bucket: Schema.String,
1710
+ credentials: Schema.Struct({
1711
+ accessKeyId: SensitiveString,
1712
+ secretAccessKey: SensitiveString,
1713
+ }).pipe(
1714
+ Schema.encodeKeys({
1715
+ accessKeyId: "access_key_id",
1716
+ secretAccessKey: "secret_access_key",
1736
1717
  }),
1737
- Schema.Null,
1738
- ]),
1739
- ),
1740
- jurisdiction: Schema.optional(
1741
- Schema.Union([Schema.String, Schema.Null]),
1742
- ),
1743
- partitioning: Schema.optional(
1744
- Schema.Union([
1745
- Schema.Struct({
1746
- timePattern: Schema.optional(
1747
- Schema.Union([Schema.String, Schema.Null]),
1748
- ),
1749
- }).pipe(Schema.encodeKeys({ timePattern: "time_pattern" })),
1750
- Schema.Null,
1751
- ]),
1752
- ),
1753
- path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1754
- rollingPolicy: Schema.optional(
1755
- Schema.Union([
1756
- Schema.Struct({
1757
- fileSizeBytes: Schema.optional(
1758
- Schema.Union([Schema.Number, Schema.Null]),
1759
- ),
1760
- inactivitySeconds: Schema.optional(
1761
- Schema.Union([Schema.Number, Schema.Null]),
1762
- ),
1763
- intervalSeconds: Schema.optional(
1764
- Schema.Union([Schema.Number, Schema.Null]),
1765
- ),
1766
- }).pipe(
1767
- Schema.encodeKeys({
1768
- fileSizeBytes: "file_size_bytes",
1769
- inactivitySeconds: "inactivity_seconds",
1770
- intervalSeconds: "interval_seconds",
1771
- }),
1772
- ),
1773
- Schema.Null,
1774
- ]),
1775
- ),
1776
- }).pipe(
1777
- Schema.encodeKeys({
1778
- accountId: "account_id",
1779
- bucket: "bucket",
1780
- credentials: "credentials",
1781
- fileNaming: "file_naming",
1782
- jurisdiction: "jurisdiction",
1783
- partitioning: "partitioning",
1784
- path: "path",
1785
- rollingPolicy: "rolling_policy",
1786
- }),
1787
- ),
1788
- Schema.Struct({
1789
- token: Schema.String,
1790
- accountId: Schema.String,
1791
- bucket: Schema.String,
1792
- tableName: Schema.String,
1793
- namespace: Schema.optional(
1794
- Schema.Union([Schema.String, Schema.Null]),
1795
- ),
1796
- rollingPolicy: Schema.optional(
1797
- Schema.Union([
1798
- Schema.Struct({
1799
- fileSizeBytes: Schema.optional(
1800
- Schema.Union([Schema.Number, Schema.Null]),
1801
- ),
1802
- inactivitySeconds: Schema.optional(
1803
- Schema.Union([Schema.Number, Schema.Null]),
1804
- ),
1805
- intervalSeconds: Schema.optional(
1806
- Schema.Union([Schema.Number, Schema.Null]),
1807
- ),
1808
- }).pipe(
1809
- Schema.encodeKeys({
1810
- fileSizeBytes: "file_size_bytes",
1811
- inactivitySeconds: "inactivity_seconds",
1812
- intervalSeconds: "interval_seconds",
1813
- }),
1814
- ),
1815
- Schema.Null,
1816
- ]),
1817
- ),
1818
- }).pipe(
1819
- Schema.encodeKeys({
1820
- token: "token",
1821
- accountId: "account_id",
1822
- bucket: "bucket",
1823
- tableName: "table_name",
1824
- namespace: "namespace",
1825
- rollingPolicy: "rolling_policy",
1826
- }),
1827
- ),
1828
- ]),
1829
- Schema.Null,
1830
- ]),
1831
- ),
1832
- format: Schema.optional(
1833
- Schema.Union([
1834
- Schema.Union([
1835
- Schema.Struct({
1836
- type: Schema.Literal("json"),
1837
- decimalEncoding: Schema.optional(
1838
- Schema.Union([
1839
- Schema.Literals(["number", "string", "bytes"]),
1840
- Schema.Null,
1841
- ]),
1842
- ),
1843
- timestampFormat: Schema.optional(
1844
- Schema.Union([
1845
- Schema.Literals(["rfc3339", "unix_millis"]),
1846
- Schema.Null,
1847
- ]),
1848
- ),
1849
- unstructured: Schema.optional(
1850
- Schema.Union([Schema.Boolean, Schema.Null]),
1851
- ),
1852
- }).pipe(
1853
- Schema.encodeKeys({
1854
- type: "type",
1855
- decimalEncoding: "decimal_encoding",
1856
- timestampFormat: "timestamp_format",
1857
- unstructured: "unstructured",
1858
- }),
1859
- ),
1860
- Schema.Struct({
1861
- type: Schema.Literal("parquet"),
1862
- compression: Schema.optional(
1863
- Schema.Union([
1864
- Schema.Literals([
1865
- "uncompressed",
1866
- "snappy",
1867
- "gzip",
1868
- "zstd",
1869
- "lz4",
1870
- ]),
1871
- Schema.Null,
1872
- ]),
1873
- ),
1874
- rowGroupBytes: Schema.optional(
1875
- Schema.Union([Schema.Number, Schema.Null]),
1876
- ),
1877
- }).pipe(
1878
- Schema.encodeKeys({
1879
- type: "type",
1880
- compression: "compression",
1881
- rowGroupBytes: "row_group_bytes",
1882
- }),
1883
- ),
1884
- ]),
1885
- Schema.Null,
1886
- ]),
1887
- ),
1888
- schema: Schema.optional(
1889
- Schema.Union([
1890
- Schema.Struct({
1891
- fields: Schema.optional(
1892
- Schema.Union([
1893
- Schema.Array(
1718
+ ),
1719
+ fileNaming: Schema.optional(
1894
1720
  Schema.Union([
1895
1721
  Schema.Struct({
1896
- type: Schema.Literal("int32"),
1897
- metadataKey: Schema.optional(
1722
+ prefix: Schema.optional(
1898
1723
  Schema.Union([Schema.String, Schema.Null]),
1899
1724
  ),
1900
- name: Schema.optional(
1901
- Schema.Union([Schema.String, Schema.Null]),
1902
- ),
1903
- required: Schema.optional(
1904
- Schema.Union([Schema.Boolean, Schema.Null]),
1725
+ strategy: Schema.optional(
1726
+ Schema.Union([
1727
+ Schema.Literals(["serial", "uuid", "uuid_v7", "ulid"]),
1728
+ Schema.Null,
1729
+ ]),
1905
1730
  ),
1906
- sqlName: Schema.optional(
1731
+ suffix: Schema.optional(
1907
1732
  Schema.Union([Schema.String, Schema.Null]),
1908
1733
  ),
1909
- }).pipe(
1910
- Schema.encodeKeys({
1911
- type: "type",
1912
- metadataKey: "metadata_key",
1913
- name: "name",
1914
- required: "required",
1915
- sqlName: "sql_name",
1916
- }),
1917
- ),
1734
+ }),
1735
+ Schema.Null,
1736
+ ]),
1737
+ ),
1738
+ jurisdiction: Schema.optional(
1739
+ Schema.Union([Schema.String, Schema.Null]),
1740
+ ),
1741
+ partitioning: Schema.optional(
1742
+ Schema.Union([
1918
1743
  Schema.Struct({
1919
- type: Schema.Literal("int64"),
1920
- metadataKey: Schema.optional(
1744
+ timePattern: Schema.optional(
1921
1745
  Schema.Union([Schema.String, Schema.Null]),
1922
1746
  ),
1923
- name: Schema.optional(
1924
- Schema.Union([Schema.String, Schema.Null]),
1747
+ }).pipe(Schema.encodeKeys({ timePattern: "time_pattern" })),
1748
+ Schema.Null,
1749
+ ]),
1750
+ ),
1751
+ path: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1752
+ rollingPolicy: Schema.optional(
1753
+ Schema.Union([
1754
+ Schema.Struct({
1755
+ fileSizeBytes: Schema.optional(
1756
+ Schema.Union([Schema.Number, Schema.Null]),
1925
1757
  ),
1926
- required: Schema.optional(
1927
- Schema.Union([Schema.Boolean, Schema.Null]),
1758
+ inactivitySeconds: Schema.optional(
1759
+ Schema.Union([Schema.Number, Schema.Null]),
1928
1760
  ),
1929
- sqlName: Schema.optional(
1930
- Schema.Union([Schema.String, Schema.Null]),
1761
+ intervalSeconds: Schema.optional(
1762
+ Schema.Union([Schema.Number, Schema.Null]),
1931
1763
  ),
1932
1764
  }).pipe(
1933
1765
  Schema.encodeKeys({
1934
- type: "type",
1935
- metadataKey: "metadata_key",
1936
- name: "name",
1937
- required: "required",
1938
- sqlName: "sql_name",
1766
+ fileSizeBytes: "file_size_bytes",
1767
+ inactivitySeconds: "inactivity_seconds",
1768
+ intervalSeconds: "interval_seconds",
1939
1769
  }),
1940
1770
  ),
1771
+ Schema.Null,
1772
+ ]),
1773
+ ),
1774
+ }).pipe(
1775
+ Schema.encodeKeys({
1776
+ accountId: "account_id",
1777
+ bucket: "bucket",
1778
+ credentials: "credentials",
1779
+ fileNaming: "file_naming",
1780
+ jurisdiction: "jurisdiction",
1781
+ partitioning: "partitioning",
1782
+ path: "path",
1783
+ rollingPolicy: "rolling_policy",
1784
+ }),
1785
+ ),
1786
+ Schema.Struct({
1787
+ token: Schema.String,
1788
+ accountId: Schema.String,
1789
+ bucket: Schema.String,
1790
+ tableName: Schema.String,
1791
+ namespace: Schema.optional(
1792
+ Schema.Union([Schema.String, Schema.Null]),
1793
+ ),
1794
+ rollingPolicy: Schema.optional(
1795
+ Schema.Union([
1941
1796
  Schema.Struct({
1942
- type: Schema.Literal("float32"),
1943
- metadataKey: Schema.optional(
1944
- Schema.Union([Schema.String, Schema.Null]),
1797
+ fileSizeBytes: Schema.optional(
1798
+ Schema.Union([Schema.Number, Schema.Null]),
1945
1799
  ),
1946
- name: Schema.optional(
1947
- Schema.Union([Schema.String, Schema.Null]),
1948
- ),
1949
- required: Schema.optional(
1950
- Schema.Union([Schema.Boolean, Schema.Null]),
1800
+ inactivitySeconds: Schema.optional(
1801
+ Schema.Union([Schema.Number, Schema.Null]),
1951
1802
  ),
1952
- sqlName: Schema.optional(
1953
- Schema.Union([Schema.String, Schema.Null]),
1803
+ intervalSeconds: Schema.optional(
1804
+ Schema.Union([Schema.Number, Schema.Null]),
1954
1805
  ),
1955
1806
  }).pipe(
1956
1807
  Schema.encodeKeys({
1957
- type: "type",
1958
- metadataKey: "metadata_key",
1959
- name: "name",
1960
- required: "required",
1961
- sqlName: "sql_name",
1808
+ fileSizeBytes: "file_size_bytes",
1809
+ inactivitySeconds: "inactivity_seconds",
1810
+ intervalSeconds: "interval_seconds",
1962
1811
  }),
1963
1812
  ),
1964
- Schema.Struct({
1965
- type: Schema.Literal("float64"),
1966
- metadataKey: Schema.optional(
1967
- Schema.Union([Schema.String, Schema.Null]),
1968
- ),
1969
- name: Schema.optional(
1970
- Schema.Union([Schema.String, Schema.Null]),
1813
+ Schema.Null,
1814
+ ]),
1815
+ ),
1816
+ }).pipe(
1817
+ Schema.encodeKeys({
1818
+ token: "token",
1819
+ accountId: "account_id",
1820
+ bucket: "bucket",
1821
+ tableName: "table_name",
1822
+ namespace: "namespace",
1823
+ rollingPolicy: "rolling_policy",
1824
+ }),
1825
+ ),
1826
+ ]),
1827
+ Schema.Null,
1828
+ ]),
1829
+ ),
1830
+ format: Schema.optional(
1831
+ Schema.Union([
1832
+ Schema.Union([
1833
+ Schema.Struct({
1834
+ type: Schema.Literal("json"),
1835
+ decimalEncoding: Schema.optional(
1836
+ Schema.Union([
1837
+ Schema.Literals(["number", "string", "bytes"]),
1838
+ Schema.Null,
1839
+ ]),
1840
+ ),
1841
+ timestampFormat: Schema.optional(
1842
+ Schema.Union([
1843
+ Schema.Literals(["rfc3339", "unix_millis"]),
1844
+ Schema.Null,
1845
+ ]),
1846
+ ),
1847
+ unstructured: Schema.optional(
1848
+ Schema.Union([Schema.Boolean, Schema.Null]),
1849
+ ),
1850
+ }).pipe(
1851
+ Schema.encodeKeys({
1852
+ type: "type",
1853
+ decimalEncoding: "decimal_encoding",
1854
+ timestampFormat: "timestamp_format",
1855
+ unstructured: "unstructured",
1856
+ }),
1857
+ ),
1858
+ Schema.Struct({
1859
+ type: Schema.Literal("parquet"),
1860
+ compression: Schema.optional(
1861
+ Schema.Union([
1862
+ Schema.Literals([
1863
+ "uncompressed",
1864
+ "snappy",
1865
+ "gzip",
1866
+ "zstd",
1867
+ "lz4",
1868
+ ]),
1869
+ Schema.Null,
1870
+ ]),
1871
+ ),
1872
+ rowGroupBytes: Schema.optional(
1873
+ Schema.Union([Schema.Number, Schema.Null]),
1874
+ ),
1875
+ }).pipe(
1876
+ Schema.encodeKeys({
1877
+ type: "type",
1878
+ compression: "compression",
1879
+ rowGroupBytes: "row_group_bytes",
1880
+ }),
1881
+ ),
1882
+ ]),
1883
+ Schema.Null,
1884
+ ]),
1885
+ ),
1886
+ schema: Schema.optional(
1887
+ Schema.Union([
1888
+ Schema.Struct({
1889
+ fields: Schema.optional(
1890
+ Schema.Union([
1891
+ Schema.Array(
1892
+ Schema.Union([
1893
+ Schema.Struct({
1894
+ type: Schema.Literal("int32"),
1895
+ metadataKey: Schema.optional(
1896
+ Schema.Union([Schema.String, Schema.Null]),
1897
+ ),
1898
+ name: Schema.optional(
1899
+ Schema.Union([Schema.String, Schema.Null]),
1900
+ ),
1901
+ required: Schema.optional(
1902
+ Schema.Union([Schema.Boolean, Schema.Null]),
1903
+ ),
1904
+ sqlName: Schema.optional(
1905
+ Schema.Union([Schema.String, Schema.Null]),
1906
+ ),
1907
+ }).pipe(
1908
+ Schema.encodeKeys({
1909
+ type: "type",
1910
+ metadataKey: "metadata_key",
1911
+ name: "name",
1912
+ required: "required",
1913
+ sqlName: "sql_name",
1914
+ }),
1971
1915
  ),
1972
- required: Schema.optional(
1973
- Schema.Union([Schema.Boolean, Schema.Null]),
1916
+ Schema.Struct({
1917
+ type: Schema.Literal("int64"),
1918
+ metadataKey: Schema.optional(
1919
+ Schema.Union([Schema.String, Schema.Null]),
1920
+ ),
1921
+ name: Schema.optional(
1922
+ Schema.Union([Schema.String, Schema.Null]),
1923
+ ),
1924
+ required: Schema.optional(
1925
+ Schema.Union([Schema.Boolean, Schema.Null]),
1926
+ ),
1927
+ sqlName: Schema.optional(
1928
+ Schema.Union([Schema.String, Schema.Null]),
1929
+ ),
1930
+ }).pipe(
1931
+ Schema.encodeKeys({
1932
+ type: "type",
1933
+ metadataKey: "metadata_key",
1934
+ name: "name",
1935
+ required: "required",
1936
+ sqlName: "sql_name",
1937
+ }),
1974
1938
  ),
1975
- sqlName: Schema.optional(
1976
- Schema.Union([Schema.String, Schema.Null]),
1939
+ Schema.Struct({
1940
+ type: Schema.Literal("float32"),
1941
+ metadataKey: Schema.optional(
1942
+ Schema.Union([Schema.String, Schema.Null]),
1943
+ ),
1944
+ name: Schema.optional(
1945
+ Schema.Union([Schema.String, Schema.Null]),
1946
+ ),
1947
+ required: Schema.optional(
1948
+ Schema.Union([Schema.Boolean, Schema.Null]),
1949
+ ),
1950
+ sqlName: Schema.optional(
1951
+ Schema.Union([Schema.String, Schema.Null]),
1952
+ ),
1953
+ }).pipe(
1954
+ Schema.encodeKeys({
1955
+ type: "type",
1956
+ metadataKey: "metadata_key",
1957
+ name: "name",
1958
+ required: "required",
1959
+ sqlName: "sql_name",
1960
+ }),
1977
1961
  ),
1978
- }).pipe(
1979
- Schema.encodeKeys({
1980
- type: "type",
1981
- metadataKey: "metadata_key",
1982
- name: "name",
1983
- required: "required",
1984
- sqlName: "sql_name",
1985
- }),
1986
- ),
1987
- Schema.Struct({
1988
- type: Schema.Literal("bool"),
1989
- metadataKey: Schema.optional(
1990
- Schema.Union([Schema.String, Schema.Null]),
1962
+ Schema.Struct({
1963
+ type: Schema.Literal("float64"),
1964
+ metadataKey: Schema.optional(
1965
+ Schema.Union([Schema.String, Schema.Null]),
1966
+ ),
1967
+ name: Schema.optional(
1968
+ Schema.Union([Schema.String, Schema.Null]),
1969
+ ),
1970
+ required: Schema.optional(
1971
+ Schema.Union([Schema.Boolean, Schema.Null]),
1972
+ ),
1973
+ sqlName: Schema.optional(
1974
+ Schema.Union([Schema.String, Schema.Null]),
1975
+ ),
1976
+ }).pipe(
1977
+ Schema.encodeKeys({
1978
+ type: "type",
1979
+ metadataKey: "metadata_key",
1980
+ name: "name",
1981
+ required: "required",
1982
+ sqlName: "sql_name",
1983
+ }),
1991
1984
  ),
1992
- name: Schema.optional(
1993
- Schema.Union([Schema.String, Schema.Null]),
1985
+ Schema.Struct({
1986
+ type: Schema.Literal("bool"),
1987
+ metadataKey: Schema.optional(
1988
+ Schema.Union([Schema.String, Schema.Null]),
1989
+ ),
1990
+ name: Schema.optional(
1991
+ Schema.Union([Schema.String, Schema.Null]),
1992
+ ),
1993
+ required: Schema.optional(
1994
+ Schema.Union([Schema.Boolean, Schema.Null]),
1995
+ ),
1996
+ sqlName: Schema.optional(
1997
+ Schema.Union([Schema.String, Schema.Null]),
1998
+ ),
1999
+ }).pipe(
2000
+ Schema.encodeKeys({
2001
+ type: "type",
2002
+ metadataKey: "metadata_key",
2003
+ name: "name",
2004
+ required: "required",
2005
+ sqlName: "sql_name",
2006
+ }),
1994
2007
  ),
1995
- required: Schema.optional(
1996
- Schema.Union([Schema.Boolean, Schema.Null]),
2008
+ Schema.Struct({
2009
+ type: Schema.Literal("string"),
2010
+ metadataKey: Schema.optional(
2011
+ Schema.Union([Schema.String, Schema.Null]),
2012
+ ),
2013
+ name: Schema.optional(
2014
+ Schema.Union([Schema.String, Schema.Null]),
2015
+ ),
2016
+ required: Schema.optional(
2017
+ Schema.Union([Schema.Boolean, Schema.Null]),
2018
+ ),
2019
+ sqlName: Schema.optional(
2020
+ Schema.Union([Schema.String, Schema.Null]),
2021
+ ),
2022
+ }).pipe(
2023
+ Schema.encodeKeys({
2024
+ type: "type",
2025
+ metadataKey: "metadata_key",
2026
+ name: "name",
2027
+ required: "required",
2028
+ sqlName: "sql_name",
2029
+ }),
1997
2030
  ),
1998
- sqlName: Schema.optional(
1999
- Schema.Union([Schema.String, Schema.Null]),
2031
+ Schema.Struct({
2032
+ type: Schema.Literal("binary"),
2033
+ metadataKey: Schema.optional(
2034
+ Schema.Union([Schema.String, Schema.Null]),
2035
+ ),
2036
+ name: Schema.optional(
2037
+ Schema.Union([Schema.String, Schema.Null]),
2038
+ ),
2039
+ required: Schema.optional(
2040
+ Schema.Union([Schema.Boolean, Schema.Null]),
2041
+ ),
2042
+ sqlName: Schema.optional(
2043
+ Schema.Union([Schema.String, Schema.Null]),
2044
+ ),
2045
+ }).pipe(
2046
+ Schema.encodeKeys({
2047
+ type: "type",
2048
+ metadataKey: "metadata_key",
2049
+ name: "name",
2050
+ required: "required",
2051
+ sqlName: "sql_name",
2052
+ }),
2000
2053
  ),
2001
- }).pipe(
2002
- Schema.encodeKeys({
2003
- type: "type",
2004
- metadataKey: "metadata_key",
2005
- name: "name",
2006
- required: "required",
2007
- sqlName: "sql_name",
2008
- }),
2009
- ),
2010
- Schema.Struct({
2011
- type: Schema.Literal("string"),
2012
- metadataKey: Schema.optional(
2013
- Schema.Union([Schema.String, Schema.Null]),
2014
- ),
2015
- name: Schema.optional(
2016
- Schema.Union([Schema.String, Schema.Null]),
2017
- ),
2018
- required: Schema.optional(
2019
- Schema.Union([Schema.Boolean, Schema.Null]),
2020
- ),
2021
- sqlName: Schema.optional(
2022
- Schema.Union([Schema.String, Schema.Null]),
2023
- ),
2024
- }).pipe(
2025
- Schema.encodeKeys({
2026
- type: "type",
2027
- metadataKey: "metadata_key",
2028
- name: "name",
2029
- required: "required",
2030
- sqlName: "sql_name",
2031
- }),
2032
- ),
2033
- Schema.Struct({
2034
- type: Schema.Literal("binary"),
2035
- metadataKey: Schema.optional(
2036
- Schema.Union([Schema.String, Schema.Null]),
2037
- ),
2038
- name: Schema.optional(
2039
- Schema.Union([Schema.String, Schema.Null]),
2040
- ),
2041
- required: Schema.optional(
2042
- Schema.Union([Schema.Boolean, Schema.Null]),
2043
- ),
2044
- sqlName: Schema.optional(
2045
- Schema.Union([Schema.String, Schema.Null]),
2046
- ),
2047
- }).pipe(
2048
- Schema.encodeKeys({
2049
- type: "type",
2050
- metadataKey: "metadata_key",
2051
- name: "name",
2052
- required: "required",
2053
- sqlName: "sql_name",
2054
- }),
2055
- ),
2056
- Schema.Struct({
2057
- type: Schema.Literal("timestamp"),
2058
- metadataKey: Schema.optional(
2059
- Schema.Union([Schema.String, Schema.Null]),
2060
- ),
2061
- name: Schema.optional(
2062
- Schema.Union([Schema.String, Schema.Null]),
2063
- ),
2064
- required: Schema.optional(
2065
- Schema.Union([Schema.Boolean, Schema.Null]),
2066
- ),
2067
- sqlName: Schema.optional(
2068
- Schema.Union([Schema.String, Schema.Null]),
2054
+ Schema.Struct({
2055
+ type: Schema.Literal("timestamp"),
2056
+ metadataKey: Schema.optional(
2057
+ Schema.Union([Schema.String, Schema.Null]),
2058
+ ),
2059
+ name: Schema.optional(
2060
+ Schema.Union([Schema.String, Schema.Null]),
2061
+ ),
2062
+ required: Schema.optional(
2063
+ Schema.Union([Schema.Boolean, Schema.Null]),
2064
+ ),
2065
+ sqlName: Schema.optional(
2066
+ Schema.Union([Schema.String, Schema.Null]),
2067
+ ),
2068
+ unit: Schema.optional(
2069
+ Schema.Union([
2070
+ Schema.Literals([
2071
+ "second",
2072
+ "millisecond",
2073
+ "microsecond",
2074
+ "nanosecond",
2075
+ ]),
2076
+ Schema.Null,
2077
+ ]),
2078
+ ),
2079
+ }).pipe(
2080
+ Schema.encodeKeys({
2081
+ type: "type",
2082
+ metadataKey: "metadata_key",
2083
+ name: "name",
2084
+ required: "required",
2085
+ sqlName: "sql_name",
2086
+ unit: "unit",
2087
+ }),
2069
2088
  ),
2070
- unit: Schema.optional(
2071
- Schema.Union([
2072
- Schema.Literals([
2073
- "second",
2074
- "millisecond",
2075
- "microsecond",
2076
- "nanosecond",
2089
+ Schema.Struct({
2090
+ type: Schema.Literal("json"),
2091
+ decimalEncoding: Schema.optional(
2092
+ Schema.Union([
2093
+ Schema.Literals(["number", "string", "bytes"]),
2094
+ Schema.Null,
2077
2095
  ]),
2078
- Schema.Null,
2079
- ]),
2096
+ ),
2097
+ timestampFormat: Schema.optional(
2098
+ Schema.Union([
2099
+ Schema.Literals(["rfc3339", "unix_millis"]),
2100
+ Schema.Null,
2101
+ ]),
2102
+ ),
2103
+ unstructured: Schema.optional(
2104
+ Schema.Union([Schema.Boolean, Schema.Null]),
2105
+ ),
2106
+ }).pipe(
2107
+ Schema.encodeKeys({
2108
+ type: "type",
2109
+ decimalEncoding: "decimal_encoding",
2110
+ timestampFormat: "timestamp_format",
2111
+ unstructured: "unstructured",
2112
+ }),
2080
2113
  ),
2081
- }).pipe(
2082
- Schema.encodeKeys({
2083
- type: "type",
2084
- metadataKey: "metadata_key",
2085
- name: "name",
2086
- required: "required",
2087
- sqlName: "sql_name",
2088
- unit: "unit",
2089
- }),
2090
- ),
2114
+ Schema.Unknown,
2115
+ ]),
2116
+ ),
2117
+ Schema.Null,
2118
+ ]),
2119
+ ),
2120
+ format: Schema.optional(
2121
+ Schema.Union([
2122
+ Schema.Union([
2091
2123
  Schema.Struct({
2092
2124
  type: Schema.Literal("json"),
2093
2125
  decimalEncoding: Schema.optional(
@@ -2113,100 +2145,259 @@ export const ListSinksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
2113
2145
  unstructured: "unstructured",
2114
2146
  }),
2115
2147
  ),
2116
- Schema.Unknown,
2117
- ]),
2118
- ),
2119
- Schema.Null,
2120
- ]),
2121
- ),
2122
- format: Schema.optional(
2123
- Schema.Union([
2124
- Schema.Union([
2125
- Schema.Struct({
2126
- type: Schema.Literal("json"),
2127
- decimalEncoding: Schema.optional(
2128
- Schema.Union([
2129
- Schema.Literals(["number", "string", "bytes"]),
2130
- Schema.Null,
2131
- ]),
2132
- ),
2133
- timestampFormat: Schema.optional(
2134
- Schema.Union([
2135
- Schema.Literals(["rfc3339", "unix_millis"]),
2136
- Schema.Null,
2137
- ]),
2138
- ),
2139
- unstructured: Schema.optional(
2140
- Schema.Union([Schema.Boolean, Schema.Null]),
2141
- ),
2142
- }).pipe(
2143
- Schema.encodeKeys({
2144
- type: "type",
2145
- decimalEncoding: "decimal_encoding",
2146
- timestampFormat: "timestamp_format",
2147
- unstructured: "unstructured",
2148
- }),
2149
- ),
2150
- Schema.Struct({
2151
- type: Schema.Literal("parquet"),
2152
- compression: Schema.optional(
2153
- Schema.Union([
2154
- Schema.Literals([
2155
- "uncompressed",
2156
- "snappy",
2157
- "gzip",
2158
- "zstd",
2159
- "lz4",
2148
+ Schema.Struct({
2149
+ type: Schema.Literal("parquet"),
2150
+ compression: Schema.optional(
2151
+ Schema.Union([
2152
+ Schema.Literals([
2153
+ "uncompressed",
2154
+ "snappy",
2155
+ "gzip",
2156
+ "zstd",
2157
+ "lz4",
2158
+ ]),
2159
+ Schema.Null,
2160
2160
  ]),
2161
- Schema.Null,
2162
- ]),
2163
- ),
2164
- rowGroupBytes: Schema.optional(
2165
- Schema.Union([Schema.Number, Schema.Null]),
2161
+ ),
2162
+ rowGroupBytes: Schema.optional(
2163
+ Schema.Union([Schema.Number, Schema.Null]),
2164
+ ),
2165
+ }).pipe(
2166
+ Schema.encodeKeys({
2167
+ type: "type",
2168
+ compression: "compression",
2169
+ rowGroupBytes: "row_group_bytes",
2170
+ }),
2166
2171
  ),
2167
- }).pipe(
2168
- Schema.encodeKeys({
2169
- type: "type",
2170
- compression: "compression",
2171
- rowGroupBytes: "row_group_bytes",
2172
- }),
2173
- ),
2172
+ ]),
2173
+ Schema.Null,
2174
2174
  ]),
2175
- Schema.Null,
2176
- ]),
2177
- ),
2178
- inferred: Schema.optional(
2179
- Schema.Union([Schema.Boolean, Schema.Null]),
2180
- ),
2181
- }),
2182
- Schema.Null,
2183
- ]),
2175
+ ),
2176
+ inferred: Schema.optional(
2177
+ Schema.Union([Schema.Boolean, Schema.Null]),
2178
+ ),
2179
+ }),
2180
+ Schema.Null,
2181
+ ]),
2182
+ ),
2183
+ }).pipe(
2184
+ Schema.encodeKeys({
2185
+ id: "id",
2186
+ createdAt: "created_at",
2187
+ modifiedAt: "modified_at",
2188
+ name: "name",
2189
+ type: "type",
2190
+ config: "config",
2191
+ format: "format",
2192
+ schema: "schema",
2193
+ }),
2184
2194
  ),
2185
- }).pipe(
2186
- Schema.encodeKeys({
2187
- id: "id",
2188
- createdAt: "created_at",
2189
- modifiedAt: "modified_at",
2190
- name: "name",
2191
- type: "type",
2192
- config: "config",
2193
- format: "format",
2194
- schema: "schema",
2195
- }),
2196
2195
  ),
2196
+ resultInfo: Schema.optional(
2197
+ Schema.Union([
2198
+ Schema.Struct({
2199
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2200
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2201
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2202
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2203
+ }).pipe(
2204
+ Schema.encodeKeys({
2205
+ count: "count",
2206
+ page: "page",
2207
+ perPage: "per_page",
2208
+ totalCount: "total_count",
2209
+ }),
2210
+ ),
2211
+ Schema.Null,
2212
+ ]),
2213
+ ),
2214
+ }).pipe(
2215
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
2197
2216
  ) as unknown as Schema.Schema<ListSinksResponse>;
2198
2217
 
2199
2218
  export type ListSinksError = DefaultErrors;
2200
2219
 
2201
- export const listSinks: API.OperationMethod<
2220
+ export const listSinks: API.PaginatedOperationMethod<
2202
2221
  ListSinksRequest,
2203
2222
  ListSinksResponse,
2204
2223
  ListSinksError,
2205
2224
  Credentials | HttpClient.HttpClient
2206
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
2225
+ > & {
2226
+ pages: (
2227
+ input: ListSinksRequest,
2228
+ ) => stream.Stream<
2229
+ ListSinksResponse,
2230
+ ListSinksError,
2231
+ Credentials | HttpClient.HttpClient
2232
+ >;
2233
+ items: (input: ListSinksRequest) => stream.Stream<
2234
+ {
2235
+ id: string;
2236
+ createdAt: string;
2237
+ modifiedAt: string;
2238
+ name: string;
2239
+ type: "r2" | "r2_data_catalog";
2240
+ config?:
2241
+ | {
2242
+ accountId: string;
2243
+ bucket: string;
2244
+ credentials: { accessKeyId: string; secretAccessKey: string };
2245
+ fileNaming?: {
2246
+ prefix?: string | null;
2247
+ strategy?: "serial" | "uuid" | "uuid_v7" | "ulid" | null;
2248
+ suffix?: string | null;
2249
+ } | null;
2250
+ jurisdiction?: string | null;
2251
+ partitioning?: { timePattern?: string | null } | null;
2252
+ path?: string | null;
2253
+ rollingPolicy?: {
2254
+ fileSizeBytes?: number | null;
2255
+ inactivitySeconds?: number | null;
2256
+ intervalSeconds?: number | null;
2257
+ } | null;
2258
+ }
2259
+ | {
2260
+ token: string;
2261
+ accountId: string;
2262
+ bucket: string;
2263
+ tableName: string;
2264
+ namespace?: string | null;
2265
+ rollingPolicy?: {
2266
+ fileSizeBytes?: number | null;
2267
+ inactivitySeconds?: number | null;
2268
+ intervalSeconds?: number | null;
2269
+ } | null;
2270
+ }
2271
+ | null;
2272
+ format?:
2273
+ | {
2274
+ type: "json";
2275
+ decimalEncoding?: "number" | "string" | "bytes" | null;
2276
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
2277
+ unstructured?: boolean | null;
2278
+ }
2279
+ | {
2280
+ type: "parquet";
2281
+ compression?:
2282
+ | "uncompressed"
2283
+ | "snappy"
2284
+ | "gzip"
2285
+ | "zstd"
2286
+ | "lz4"
2287
+ | null;
2288
+ rowGroupBytes?: number | null;
2289
+ }
2290
+ | null;
2291
+ schema?: {
2292
+ fields?:
2293
+ | (
2294
+ | {
2295
+ type: "int32";
2296
+ metadataKey?: string | null;
2297
+ name?: string | null;
2298
+ required?: boolean | null;
2299
+ sqlName?: string | null;
2300
+ }
2301
+ | {
2302
+ type: "int64";
2303
+ metadataKey?: string | null;
2304
+ name?: string | null;
2305
+ required?: boolean | null;
2306
+ sqlName?: string | null;
2307
+ }
2308
+ | {
2309
+ type: "float32";
2310
+ metadataKey?: string | null;
2311
+ name?: string | null;
2312
+ required?: boolean | null;
2313
+ sqlName?: string | null;
2314
+ }
2315
+ | {
2316
+ type: "float64";
2317
+ metadataKey?: string | null;
2318
+ name?: string | null;
2319
+ required?: boolean | null;
2320
+ sqlName?: string | null;
2321
+ }
2322
+ | {
2323
+ type: "bool";
2324
+ metadataKey?: string | null;
2325
+ name?: string | null;
2326
+ required?: boolean | null;
2327
+ sqlName?: string | null;
2328
+ }
2329
+ | {
2330
+ type: "string";
2331
+ metadataKey?: string | null;
2332
+ name?: string | null;
2333
+ required?: boolean | null;
2334
+ sqlName?: string | null;
2335
+ }
2336
+ | {
2337
+ type: "binary";
2338
+ metadataKey?: string | null;
2339
+ name?: string | null;
2340
+ required?: boolean | null;
2341
+ sqlName?: string | null;
2342
+ }
2343
+ | {
2344
+ type: "timestamp";
2345
+ metadataKey?: string | null;
2346
+ name?: string | null;
2347
+ required?: boolean | null;
2348
+ sqlName?: string | null;
2349
+ unit?:
2350
+ | "second"
2351
+ | "millisecond"
2352
+ | "microsecond"
2353
+ | "nanosecond"
2354
+ | null;
2355
+ }
2356
+ | {
2357
+ type: "json";
2358
+ decimalEncoding?: "number" | "string" | "bytes" | null;
2359
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
2360
+ unstructured?: boolean | null;
2361
+ }
2362
+ | unknown
2363
+ )[]
2364
+ | null;
2365
+ format?:
2366
+ | {
2367
+ type: "json";
2368
+ decimalEncoding?: "number" | "string" | "bytes" | null;
2369
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
2370
+ unstructured?: boolean | null;
2371
+ }
2372
+ | {
2373
+ type: "parquet";
2374
+ compression?:
2375
+ | "uncompressed"
2376
+ | "snappy"
2377
+ | "gzip"
2378
+ | "zstd"
2379
+ | "lz4"
2380
+ | null;
2381
+ rowGroupBytes?: number | null;
2382
+ }
2383
+ | null;
2384
+ inferred?: boolean | null;
2385
+ } | null;
2386
+ },
2387
+ ListSinksError,
2388
+ Credentials | HttpClient.HttpClient
2389
+ >;
2390
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
2207
2391
  input: ListSinksRequest,
2208
2392
  output: ListSinksResponse,
2209
2393
  errors: [],
2394
+ pagination: {
2395
+ mode: "page",
2396
+ inputToken: "page",
2397
+ outputToken: "resultInfo.page",
2398
+ items: "result",
2399
+ pageSize: "perPage",
2400
+ } as const,
2210
2401
  }));
2211
2402
 
2212
2403
  export interface CreateSinkRequest {
@@ -2355,8 +2546,8 @@ export const CreateSinkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2355
2546
  accountId: Schema.String,
2356
2547
  bucket: Schema.String,
2357
2548
  credentials: Schema.Struct({
2358
- accessKeyId: Schema.String,
2359
- secretAccessKey: Schema.String,
2549
+ accessKeyId: SensitiveString,
2550
+ secretAccessKey: SensitiveString,
2360
2551
  }).pipe(
2361
2552
  Schema.encodeKeys({
2362
2553
  accessKeyId: "access_key_id",
@@ -2862,8 +3053,8 @@ export const CreateSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
2862
3053
  accountId: Schema.String,
2863
3054
  bucket: Schema.String,
2864
3055
  credentials: Schema.Struct({
2865
- accessKeyId: Schema.String,
2866
- secretAccessKey: Schema.String,
3056
+ accessKeyId: SensitiveString,
3057
+ secretAccessKey: SensitiveString,
2867
3058
  }).pipe(
2868
3059
  Schema.encodeKeys({
2869
3060
  accessKeyId: "access_key_id",
@@ -3332,18 +3523,22 @@ export const CreateSinkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
3332
3523
  Schema.Null,
3333
3524
  ]),
3334
3525
  ),
3335
- }).pipe(
3336
- Schema.encodeKeys({
3337
- id: "id",
3338
- createdAt: "created_at",
3339
- modifiedAt: "modified_at",
3340
- name: "name",
3341
- type: "type",
3342
- config: "config",
3343
- format: "format",
3344
- schema: "schema",
3345
- }),
3346
- ) as unknown as Schema.Schema<CreateSinkResponse>;
3526
+ })
3527
+ .pipe(
3528
+ Schema.encodeKeys({
3529
+ id: "id",
3530
+ createdAt: "created_at",
3531
+ modifiedAt: "modified_at",
3532
+ name: "name",
3533
+ type: "type",
3534
+ config: "config",
3535
+ format: "format",
3536
+ schema: "schema",
3537
+ }),
3538
+ )
3539
+ .pipe(
3540
+ T.ResponsePath("result"),
3541
+ ) as unknown as Schema.Schema<CreateSinkResponse>;
3347
3542
 
3348
3543
  export type CreateSinkError = DefaultErrors;
3349
3544
 
@@ -3479,7 +3674,9 @@ export const ValidateSqlPipelineResponse =
3479
3674
  Schema.Null,
3480
3675
  ]),
3481
3676
  ),
3482
- }) as unknown as Schema.Schema<ValidateSqlPipelineResponse>;
3677
+ }).pipe(
3678
+ T.ResponsePath("result"),
3679
+ ) as unknown as Schema.Schema<ValidateSqlPipelineResponse>;
3483
3680
 
3484
3681
  export type ValidateSqlPipelineError = DefaultErrors | TableNotFound;
3485
3682
 
@@ -4022,20 +4219,24 @@ export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4022
4219
  Schema.Null,
4023
4220
  ]),
4024
4221
  ),
4025
- }).pipe(
4026
- Schema.encodeKeys({
4027
- id: "id",
4028
- createdAt: "created_at",
4029
- http: "http",
4030
- modifiedAt: "modified_at",
4031
- name: "name",
4032
- version: "version",
4033
- workerBinding: "worker_binding",
4034
- endpoint: "endpoint",
4035
- format: "format",
4036
- schema: "schema",
4037
- }),
4038
- ) as unknown as Schema.Schema<GetStreamResponse>;
4222
+ })
4223
+ .pipe(
4224
+ Schema.encodeKeys({
4225
+ id: "id",
4226
+ createdAt: "created_at",
4227
+ http: "http",
4228
+ modifiedAt: "modified_at",
4229
+ name: "name",
4230
+ version: "version",
4231
+ workerBinding: "worker_binding",
4232
+ endpoint: "endpoint",
4233
+ format: "format",
4234
+ schema: "schema",
4235
+ }),
4236
+ )
4237
+ .pipe(
4238
+ T.ResponsePath("result"),
4239
+ ) as unknown as Schema.Schema<GetStreamResponse>;
4039
4240
 
4040
4241
  export type GetStreamError = DefaultErrors | StreamNotFound | InvalidStreamId;
4041
4242
 
@@ -4067,112 +4268,20 @@ export const ListStreamsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4067
4268
  }),
4068
4269
  ) as unknown as Schema.Schema<ListStreamsRequest>;
4069
4270
 
4070
- export type ListStreamsResponse = {
4071
- id: string;
4072
- createdAt: string;
4073
- http: {
4074
- authentication: boolean;
4075
- enabled: boolean;
4076
- cors?: { origins?: string[] | null } | null;
4077
- };
4078
- modifiedAt: string;
4079
- name: string;
4080
- version: number;
4081
- workerBinding: { enabled: boolean };
4082
- endpoint?: string | null;
4083
- format?:
4084
- | {
4085
- type: "json";
4086
- decimalEncoding?: "number" | "string" | "bytes" | null;
4087
- timestampFormat?: "rfc3339" | "unix_millis" | null;
4088
- unstructured?: boolean | null;
4089
- }
4090
- | {
4091
- type: "parquet";
4092
- compression?:
4093
- | "uncompressed"
4094
- | "snappy"
4095
- | "gzip"
4096
- | "zstd"
4097
- | "lz4"
4098
- | null;
4099
- rowGroupBytes?: number | null;
4100
- }
4101
- | null;
4102
- schema?: {
4103
- fields?:
4104
- | (
4105
- | {
4106
- type: "int32";
4107
- metadataKey?: string | null;
4108
- name?: string | null;
4109
- required?: boolean | null;
4110
- sqlName?: string | null;
4111
- }
4112
- | {
4113
- type: "int64";
4114
- metadataKey?: string | null;
4115
- name?: string | null;
4116
- required?: boolean | null;
4117
- sqlName?: string | null;
4118
- }
4119
- | {
4120
- type: "float32";
4121
- metadataKey?: string | null;
4122
- name?: string | null;
4123
- required?: boolean | null;
4124
- sqlName?: string | null;
4125
- }
4126
- | {
4127
- type: "float64";
4128
- metadataKey?: string | null;
4129
- name?: string | null;
4130
- required?: boolean | null;
4131
- sqlName?: string | null;
4132
- }
4133
- | {
4134
- type: "bool";
4135
- metadataKey?: string | null;
4136
- name?: string | null;
4137
- required?: boolean | null;
4138
- sqlName?: string | null;
4139
- }
4140
- | {
4141
- type: "string";
4142
- metadataKey?: string | null;
4143
- name?: string | null;
4144
- required?: boolean | null;
4145
- sqlName?: string | null;
4146
- }
4147
- | {
4148
- type: "binary";
4149
- metadataKey?: string | null;
4150
- name?: string | null;
4151
- required?: boolean | null;
4152
- sqlName?: string | null;
4153
- }
4154
- | {
4155
- type: "timestamp";
4156
- metadataKey?: string | null;
4157
- name?: string | null;
4158
- required?: boolean | null;
4159
- sqlName?: string | null;
4160
- unit?:
4161
- | "second"
4162
- | "millisecond"
4163
- | "microsecond"
4164
- | "nanosecond"
4165
- | null;
4166
- }
4167
- | {
4168
- type: "json";
4169
- decimalEncoding?: "number" | "string" | "bytes" | null;
4170
- timestampFormat?: "rfc3339" | "unix_millis" | null;
4171
- unstructured?: boolean | null;
4172
- }
4173
- | unknown
4174
- )[]
4175
- | null;
4271
+ export interface ListStreamsResponse {
4272
+ result: {
4273
+ id: string;
4274
+ createdAt: string;
4275
+ http: {
4276
+ authentication: boolean;
4277
+ enabled: boolean;
4278
+ cors?: { origins?: string[] | null } | null;
4279
+ };
4280
+ modifiedAt: string;
4281
+ name: string;
4282
+ version: number;
4283
+ workerBinding: { enabled: boolean };
4284
+ endpoint?: string | null;
4176
4285
  format?:
4177
4286
  | {
4178
4287
  type: "json";
@@ -4192,294 +4301,429 @@ export type ListStreamsResponse = {
4192
4301
  rowGroupBytes?: number | null;
4193
4302
  }
4194
4303
  | null;
4195
- inferred?: boolean | null;
4304
+ schema?: {
4305
+ fields?:
4306
+ | (
4307
+ | {
4308
+ type: "int32";
4309
+ metadataKey?: string | null;
4310
+ name?: string | null;
4311
+ required?: boolean | null;
4312
+ sqlName?: string | null;
4313
+ }
4314
+ | {
4315
+ type: "int64";
4316
+ metadataKey?: string | null;
4317
+ name?: string | null;
4318
+ required?: boolean | null;
4319
+ sqlName?: string | null;
4320
+ }
4321
+ | {
4322
+ type: "float32";
4323
+ metadataKey?: string | null;
4324
+ name?: string | null;
4325
+ required?: boolean | null;
4326
+ sqlName?: string | null;
4327
+ }
4328
+ | {
4329
+ type: "float64";
4330
+ metadataKey?: string | null;
4331
+ name?: string | null;
4332
+ required?: boolean | null;
4333
+ sqlName?: string | null;
4334
+ }
4335
+ | {
4336
+ type: "bool";
4337
+ metadataKey?: string | null;
4338
+ name?: string | null;
4339
+ required?: boolean | null;
4340
+ sqlName?: string | null;
4341
+ }
4342
+ | {
4343
+ type: "string";
4344
+ metadataKey?: string | null;
4345
+ name?: string | null;
4346
+ required?: boolean | null;
4347
+ sqlName?: string | null;
4348
+ }
4349
+ | {
4350
+ type: "binary";
4351
+ metadataKey?: string | null;
4352
+ name?: string | null;
4353
+ required?: boolean | null;
4354
+ sqlName?: string | null;
4355
+ }
4356
+ | {
4357
+ type: "timestamp";
4358
+ metadataKey?: string | null;
4359
+ name?: string | null;
4360
+ required?: boolean | null;
4361
+ sqlName?: string | null;
4362
+ unit?:
4363
+ | "second"
4364
+ | "millisecond"
4365
+ | "microsecond"
4366
+ | "nanosecond"
4367
+ | null;
4368
+ }
4369
+ | {
4370
+ type: "json";
4371
+ decimalEncoding?: "number" | "string" | "bytes" | null;
4372
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
4373
+ unstructured?: boolean | null;
4374
+ }
4375
+ | unknown
4376
+ )[]
4377
+ | null;
4378
+ format?:
4379
+ | {
4380
+ type: "json";
4381
+ decimalEncoding?: "number" | "string" | "bytes" | null;
4382
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
4383
+ unstructured?: boolean | null;
4384
+ }
4385
+ | {
4386
+ type: "parquet";
4387
+ compression?:
4388
+ | "uncompressed"
4389
+ | "snappy"
4390
+ | "gzip"
4391
+ | "zstd"
4392
+ | "lz4"
4393
+ | null;
4394
+ rowGroupBytes?: number | null;
4395
+ }
4396
+ | null;
4397
+ inferred?: boolean | null;
4398
+ } | null;
4399
+ }[];
4400
+ resultInfo?: {
4401
+ count?: number | null;
4402
+ page?: number | null;
4403
+ perPage?: number | null;
4404
+ totalCount?: number | null;
4196
4405
  } | null;
4197
- }[];
4406
+ }
4198
4407
 
4199
- export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4200
- Schema.Struct({
4201
- id: Schema.String,
4202
- createdAt: Schema.String,
4203
- http: Schema.Struct({
4204
- authentication: Schema.Boolean,
4205
- enabled: Schema.Boolean,
4206
- cors: Schema.optional(
4408
+ export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
4409
+ result: Schema.Array(
4410
+ Schema.Struct({
4411
+ id: Schema.String,
4412
+ createdAt: Schema.String,
4413
+ http: Schema.Struct({
4414
+ authentication: Schema.Boolean,
4415
+ enabled: Schema.Boolean,
4416
+ cors: Schema.optional(
4417
+ Schema.Union([
4418
+ Schema.Struct({
4419
+ origins: Schema.optional(
4420
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4421
+ ),
4422
+ }),
4423
+ Schema.Null,
4424
+ ]),
4425
+ ),
4426
+ }),
4427
+ modifiedAt: Schema.String,
4428
+ name: Schema.String,
4429
+ version: Schema.Number,
4430
+ workerBinding: Schema.Struct({
4431
+ enabled: Schema.Boolean,
4432
+ }),
4433
+ endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4434
+ format: Schema.optional(
4207
4435
  Schema.Union([
4208
- Schema.Struct({
4209
- origins: Schema.optional(
4210
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
4436
+ Schema.Union([
4437
+ Schema.Struct({
4438
+ type: Schema.Literal("json"),
4439
+ decimalEncoding: Schema.optional(
4440
+ Schema.Union([
4441
+ Schema.Literals(["number", "string", "bytes"]),
4442
+ Schema.Null,
4443
+ ]),
4444
+ ),
4445
+ timestampFormat: Schema.optional(
4446
+ Schema.Union([
4447
+ Schema.Literals(["rfc3339", "unix_millis"]),
4448
+ Schema.Null,
4449
+ ]),
4450
+ ),
4451
+ unstructured: Schema.optional(
4452
+ Schema.Union([Schema.Boolean, Schema.Null]),
4453
+ ),
4454
+ }).pipe(
4455
+ Schema.encodeKeys({
4456
+ type: "type",
4457
+ decimalEncoding: "decimal_encoding",
4458
+ timestampFormat: "timestamp_format",
4459
+ unstructured: "unstructured",
4460
+ }),
4211
4461
  ),
4212
- }),
4462
+ Schema.Struct({
4463
+ type: Schema.Literal("parquet"),
4464
+ compression: Schema.optional(
4465
+ Schema.Union([
4466
+ Schema.Literals([
4467
+ "uncompressed",
4468
+ "snappy",
4469
+ "gzip",
4470
+ "zstd",
4471
+ "lz4",
4472
+ ]),
4473
+ Schema.Null,
4474
+ ]),
4475
+ ),
4476
+ rowGroupBytes: Schema.optional(
4477
+ Schema.Union([Schema.Number, Schema.Null]),
4478
+ ),
4479
+ }).pipe(
4480
+ Schema.encodeKeys({
4481
+ type: "type",
4482
+ compression: "compression",
4483
+ rowGroupBytes: "row_group_bytes",
4484
+ }),
4485
+ ),
4486
+ ]),
4213
4487
  Schema.Null,
4214
4488
  ]),
4215
4489
  ),
4216
- }),
4217
- modifiedAt: Schema.String,
4218
- name: Schema.String,
4219
- version: Schema.Number,
4220
- workerBinding: Schema.Struct({
4221
- enabled: Schema.Boolean,
4222
- }),
4223
- endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4224
- format: Schema.optional(
4225
- Schema.Union([
4490
+ schema: Schema.optional(
4226
4491
  Schema.Union([
4227
4492
  Schema.Struct({
4228
- type: Schema.Literal("json"),
4229
- decimalEncoding: Schema.optional(
4493
+ fields: Schema.optional(
4230
4494
  Schema.Union([
4231
- Schema.Literals(["number", "string", "bytes"]),
4232
- Schema.Null,
4233
- ]),
4234
- ),
4235
- timestampFormat: Schema.optional(
4236
- Schema.Union([
4237
- Schema.Literals(["rfc3339", "unix_millis"]),
4238
- Schema.Null,
4239
- ]),
4240
- ),
4241
- unstructured: Schema.optional(
4242
- Schema.Union([Schema.Boolean, Schema.Null]),
4243
- ),
4244
- }).pipe(
4245
- Schema.encodeKeys({
4246
- type: "type",
4247
- decimalEncoding: "decimal_encoding",
4248
- timestampFormat: "timestamp_format",
4249
- unstructured: "unstructured",
4250
- }),
4251
- ),
4252
- Schema.Struct({
4253
- type: Schema.Literal("parquet"),
4254
- compression: Schema.optional(
4255
- Schema.Union([
4256
- Schema.Literals([
4257
- "uncompressed",
4258
- "snappy",
4259
- "gzip",
4260
- "zstd",
4261
- "lz4",
4262
- ]),
4263
- Schema.Null,
4264
- ]),
4265
- ),
4266
- rowGroupBytes: Schema.optional(
4267
- Schema.Union([Schema.Number, Schema.Null]),
4268
- ),
4269
- }).pipe(
4270
- Schema.encodeKeys({
4271
- type: "type",
4272
- compression: "compression",
4273
- rowGroupBytes: "row_group_bytes",
4274
- }),
4275
- ),
4276
- ]),
4277
- Schema.Null,
4278
- ]),
4279
- ),
4280
- schema: Schema.optional(
4281
- Schema.Union([
4282
- Schema.Struct({
4283
- fields: Schema.optional(
4284
- Schema.Union([
4285
- Schema.Array(
4286
- Schema.Union([
4287
- Schema.Struct({
4288
- type: Schema.Literal("int32"),
4289
- metadataKey: Schema.optional(
4290
- Schema.Union([Schema.String, Schema.Null]),
4291
- ),
4292
- name: Schema.optional(
4293
- Schema.Union([Schema.String, Schema.Null]),
4294
- ),
4295
- required: Schema.optional(
4296
- Schema.Union([Schema.Boolean, Schema.Null]),
4297
- ),
4298
- sqlName: Schema.optional(
4299
- Schema.Union([Schema.String, Schema.Null]),
4300
- ),
4301
- }).pipe(
4302
- Schema.encodeKeys({
4303
- type: "type",
4304
- metadataKey: "metadata_key",
4305
- name: "name",
4306
- required: "required",
4307
- sqlName: "sql_name",
4308
- }),
4309
- ),
4310
- Schema.Struct({
4311
- type: Schema.Literal("int64"),
4312
- metadataKey: Schema.optional(
4313
- Schema.Union([Schema.String, Schema.Null]),
4314
- ),
4315
- name: Schema.optional(
4316
- Schema.Union([Schema.String, Schema.Null]),
4317
- ),
4318
- required: Schema.optional(
4319
- Schema.Union([Schema.Boolean, Schema.Null]),
4320
- ),
4321
- sqlName: Schema.optional(
4322
- Schema.Union([Schema.String, Schema.Null]),
4323
- ),
4324
- }).pipe(
4325
- Schema.encodeKeys({
4326
- type: "type",
4327
- metadataKey: "metadata_key",
4328
- name: "name",
4329
- required: "required",
4330
- sqlName: "sql_name",
4331
- }),
4332
- ),
4333
- Schema.Struct({
4334
- type: Schema.Literal("float32"),
4335
- metadataKey: Schema.optional(
4336
- Schema.Union([Schema.String, Schema.Null]),
4337
- ),
4338
- name: Schema.optional(
4339
- Schema.Union([Schema.String, Schema.Null]),
4340
- ),
4341
- required: Schema.optional(
4342
- Schema.Union([Schema.Boolean, Schema.Null]),
4343
- ),
4344
- sqlName: Schema.optional(
4345
- Schema.Union([Schema.String, Schema.Null]),
4346
- ),
4347
- }).pipe(
4348
- Schema.encodeKeys({
4349
- type: "type",
4350
- metadataKey: "metadata_key",
4351
- name: "name",
4352
- required: "required",
4353
- sqlName: "sql_name",
4354
- }),
4355
- ),
4356
- Schema.Struct({
4357
- type: Schema.Literal("float64"),
4358
- metadataKey: Schema.optional(
4359
- Schema.Union([Schema.String, Schema.Null]),
4360
- ),
4361
- name: Schema.optional(
4362
- Schema.Union([Schema.String, Schema.Null]),
4363
- ),
4364
- required: Schema.optional(
4365
- Schema.Union([Schema.Boolean, Schema.Null]),
4366
- ),
4367
- sqlName: Schema.optional(
4368
- Schema.Union([Schema.String, Schema.Null]),
4369
- ),
4370
- }).pipe(
4371
- Schema.encodeKeys({
4372
- type: "type",
4373
- metadataKey: "metadata_key",
4374
- name: "name",
4375
- required: "required",
4376
- sqlName: "sql_name",
4377
- }),
4378
- ),
4379
- Schema.Struct({
4380
- type: Schema.Literal("bool"),
4381
- metadataKey: Schema.optional(
4382
- Schema.Union([Schema.String, Schema.Null]),
4383
- ),
4384
- name: Schema.optional(
4385
- Schema.Union([Schema.String, Schema.Null]),
4386
- ),
4387
- required: Schema.optional(
4388
- Schema.Union([Schema.Boolean, Schema.Null]),
4389
- ),
4390
- sqlName: Schema.optional(
4391
- Schema.Union([Schema.String, Schema.Null]),
4392
- ),
4393
- }).pipe(
4394
- Schema.encodeKeys({
4395
- type: "type",
4396
- metadataKey: "metadata_key",
4397
- name: "name",
4398
- required: "required",
4399
- sqlName: "sql_name",
4400
- }),
4401
- ),
4402
- Schema.Struct({
4403
- type: Schema.Literal("string"),
4404
- metadataKey: Schema.optional(
4405
- Schema.Union([Schema.String, Schema.Null]),
4406
- ),
4407
- name: Schema.optional(
4408
- Schema.Union([Schema.String, Schema.Null]),
4409
- ),
4410
- required: Schema.optional(
4411
- Schema.Union([Schema.Boolean, Schema.Null]),
4412
- ),
4413
- sqlName: Schema.optional(
4414
- Schema.Union([Schema.String, Schema.Null]),
4415
- ),
4416
- }).pipe(
4417
- Schema.encodeKeys({
4418
- type: "type",
4419
- metadataKey: "metadata_key",
4420
- name: "name",
4421
- required: "required",
4422
- sqlName: "sql_name",
4423
- }),
4424
- ),
4425
- Schema.Struct({
4426
- type: Schema.Literal("binary"),
4427
- metadataKey: Schema.optional(
4428
- Schema.Union([Schema.String, Schema.Null]),
4429
- ),
4430
- name: Schema.optional(
4431
- Schema.Union([Schema.String, Schema.Null]),
4432
- ),
4433
- required: Schema.optional(
4434
- Schema.Union([Schema.Boolean, Schema.Null]),
4495
+ Schema.Array(
4496
+ Schema.Union([
4497
+ Schema.Struct({
4498
+ type: Schema.Literal("int32"),
4499
+ metadataKey: Schema.optional(
4500
+ Schema.Union([Schema.String, Schema.Null]),
4501
+ ),
4502
+ name: Schema.optional(
4503
+ Schema.Union([Schema.String, Schema.Null]),
4504
+ ),
4505
+ required: Schema.optional(
4506
+ Schema.Union([Schema.Boolean, Schema.Null]),
4507
+ ),
4508
+ sqlName: Schema.optional(
4509
+ Schema.Union([Schema.String, Schema.Null]),
4510
+ ),
4511
+ }).pipe(
4512
+ Schema.encodeKeys({
4513
+ type: "type",
4514
+ metadataKey: "metadata_key",
4515
+ name: "name",
4516
+ required: "required",
4517
+ sqlName: "sql_name",
4518
+ }),
4435
4519
  ),
4436
- sqlName: Schema.optional(
4437
- Schema.Union([Schema.String, Schema.Null]),
4520
+ Schema.Struct({
4521
+ type: Schema.Literal("int64"),
4522
+ metadataKey: Schema.optional(
4523
+ Schema.Union([Schema.String, Schema.Null]),
4524
+ ),
4525
+ name: Schema.optional(
4526
+ Schema.Union([Schema.String, Schema.Null]),
4527
+ ),
4528
+ required: Schema.optional(
4529
+ Schema.Union([Schema.Boolean, Schema.Null]),
4530
+ ),
4531
+ sqlName: Schema.optional(
4532
+ Schema.Union([Schema.String, Schema.Null]),
4533
+ ),
4534
+ }).pipe(
4535
+ Schema.encodeKeys({
4536
+ type: "type",
4537
+ metadataKey: "metadata_key",
4538
+ name: "name",
4539
+ required: "required",
4540
+ sqlName: "sql_name",
4541
+ }),
4438
4542
  ),
4439
- }).pipe(
4440
- Schema.encodeKeys({
4441
- type: "type",
4442
- metadataKey: "metadata_key",
4443
- name: "name",
4444
- required: "required",
4445
- sqlName: "sql_name",
4446
- }),
4447
- ),
4448
- Schema.Struct({
4449
- type: Schema.Literal("timestamp"),
4450
- metadataKey: Schema.optional(
4451
- Schema.Union([Schema.String, Schema.Null]),
4543
+ Schema.Struct({
4544
+ type: Schema.Literal("float32"),
4545
+ metadataKey: Schema.optional(
4546
+ Schema.Union([Schema.String, Schema.Null]),
4547
+ ),
4548
+ name: Schema.optional(
4549
+ Schema.Union([Schema.String, Schema.Null]),
4550
+ ),
4551
+ required: Schema.optional(
4552
+ Schema.Union([Schema.Boolean, Schema.Null]),
4553
+ ),
4554
+ sqlName: Schema.optional(
4555
+ Schema.Union([Schema.String, Schema.Null]),
4556
+ ),
4557
+ }).pipe(
4558
+ Schema.encodeKeys({
4559
+ type: "type",
4560
+ metadataKey: "metadata_key",
4561
+ name: "name",
4562
+ required: "required",
4563
+ sqlName: "sql_name",
4564
+ }),
4452
4565
  ),
4453
- name: Schema.optional(
4454
- Schema.Union([Schema.String, Schema.Null]),
4566
+ Schema.Struct({
4567
+ type: Schema.Literal("float64"),
4568
+ metadataKey: Schema.optional(
4569
+ Schema.Union([Schema.String, Schema.Null]),
4570
+ ),
4571
+ name: Schema.optional(
4572
+ Schema.Union([Schema.String, Schema.Null]),
4573
+ ),
4574
+ required: Schema.optional(
4575
+ Schema.Union([Schema.Boolean, Schema.Null]),
4576
+ ),
4577
+ sqlName: Schema.optional(
4578
+ Schema.Union([Schema.String, Schema.Null]),
4579
+ ),
4580
+ }).pipe(
4581
+ Schema.encodeKeys({
4582
+ type: "type",
4583
+ metadataKey: "metadata_key",
4584
+ name: "name",
4585
+ required: "required",
4586
+ sqlName: "sql_name",
4587
+ }),
4455
4588
  ),
4456
- required: Schema.optional(
4457
- Schema.Union([Schema.Boolean, Schema.Null]),
4589
+ Schema.Struct({
4590
+ type: Schema.Literal("bool"),
4591
+ metadataKey: Schema.optional(
4592
+ Schema.Union([Schema.String, Schema.Null]),
4593
+ ),
4594
+ name: Schema.optional(
4595
+ Schema.Union([Schema.String, Schema.Null]),
4596
+ ),
4597
+ required: Schema.optional(
4598
+ Schema.Union([Schema.Boolean, Schema.Null]),
4599
+ ),
4600
+ sqlName: Schema.optional(
4601
+ Schema.Union([Schema.String, Schema.Null]),
4602
+ ),
4603
+ }).pipe(
4604
+ Schema.encodeKeys({
4605
+ type: "type",
4606
+ metadataKey: "metadata_key",
4607
+ name: "name",
4608
+ required: "required",
4609
+ sqlName: "sql_name",
4610
+ }),
4458
4611
  ),
4459
- sqlName: Schema.optional(
4460
- Schema.Union([Schema.String, Schema.Null]),
4612
+ Schema.Struct({
4613
+ type: Schema.Literal("string"),
4614
+ metadataKey: Schema.optional(
4615
+ Schema.Union([Schema.String, Schema.Null]),
4616
+ ),
4617
+ name: Schema.optional(
4618
+ Schema.Union([Schema.String, Schema.Null]),
4619
+ ),
4620
+ required: Schema.optional(
4621
+ Schema.Union([Schema.Boolean, Schema.Null]),
4622
+ ),
4623
+ sqlName: Schema.optional(
4624
+ Schema.Union([Schema.String, Schema.Null]),
4625
+ ),
4626
+ }).pipe(
4627
+ Schema.encodeKeys({
4628
+ type: "type",
4629
+ metadataKey: "metadata_key",
4630
+ name: "name",
4631
+ required: "required",
4632
+ sqlName: "sql_name",
4633
+ }),
4461
4634
  ),
4462
- unit: Schema.optional(
4463
- Schema.Union([
4464
- Schema.Literals([
4465
- "second",
4466
- "millisecond",
4467
- "microsecond",
4468
- "nanosecond",
4635
+ Schema.Struct({
4636
+ type: Schema.Literal("binary"),
4637
+ metadataKey: Schema.optional(
4638
+ Schema.Union([Schema.String, Schema.Null]),
4639
+ ),
4640
+ name: Schema.optional(
4641
+ Schema.Union([Schema.String, Schema.Null]),
4642
+ ),
4643
+ required: Schema.optional(
4644
+ Schema.Union([Schema.Boolean, Schema.Null]),
4645
+ ),
4646
+ sqlName: Schema.optional(
4647
+ Schema.Union([Schema.String, Schema.Null]),
4648
+ ),
4649
+ }).pipe(
4650
+ Schema.encodeKeys({
4651
+ type: "type",
4652
+ metadataKey: "metadata_key",
4653
+ name: "name",
4654
+ required: "required",
4655
+ sqlName: "sql_name",
4656
+ }),
4657
+ ),
4658
+ Schema.Struct({
4659
+ type: Schema.Literal("timestamp"),
4660
+ metadataKey: Schema.optional(
4661
+ Schema.Union([Schema.String, Schema.Null]),
4662
+ ),
4663
+ name: Schema.optional(
4664
+ Schema.Union([Schema.String, Schema.Null]),
4665
+ ),
4666
+ required: Schema.optional(
4667
+ Schema.Union([Schema.Boolean, Schema.Null]),
4668
+ ),
4669
+ sqlName: Schema.optional(
4670
+ Schema.Union([Schema.String, Schema.Null]),
4671
+ ),
4672
+ unit: Schema.optional(
4673
+ Schema.Union([
4674
+ Schema.Literals([
4675
+ "second",
4676
+ "millisecond",
4677
+ "microsecond",
4678
+ "nanosecond",
4679
+ ]),
4680
+ Schema.Null,
4469
4681
  ]),
4470
- Schema.Null,
4471
- ]),
4682
+ ),
4683
+ }).pipe(
4684
+ Schema.encodeKeys({
4685
+ type: "type",
4686
+ metadataKey: "metadata_key",
4687
+ name: "name",
4688
+ required: "required",
4689
+ sqlName: "sql_name",
4690
+ unit: "unit",
4691
+ }),
4472
4692
  ),
4473
- }).pipe(
4474
- Schema.encodeKeys({
4475
- type: "type",
4476
- metadataKey: "metadata_key",
4477
- name: "name",
4478
- required: "required",
4479
- sqlName: "sql_name",
4480
- unit: "unit",
4481
- }),
4482
- ),
4693
+ Schema.Struct({
4694
+ type: Schema.Literal("json"),
4695
+ decimalEncoding: Schema.optional(
4696
+ Schema.Union([
4697
+ Schema.Literals(["number", "string", "bytes"]),
4698
+ Schema.Null,
4699
+ ]),
4700
+ ),
4701
+ timestampFormat: Schema.optional(
4702
+ Schema.Union([
4703
+ Schema.Literals(["rfc3339", "unix_millis"]),
4704
+ Schema.Null,
4705
+ ]),
4706
+ ),
4707
+ unstructured: Schema.optional(
4708
+ Schema.Union([Schema.Boolean, Schema.Null]),
4709
+ ),
4710
+ }).pipe(
4711
+ Schema.encodeKeys({
4712
+ type: "type",
4713
+ decimalEncoding: "decimal_encoding",
4714
+ timestampFormat: "timestamp_format",
4715
+ unstructured: "unstructured",
4716
+ }),
4717
+ ),
4718
+ Schema.Unknown,
4719
+ ]),
4720
+ ),
4721
+ Schema.Null,
4722
+ ]),
4723
+ ),
4724
+ format: Schema.optional(
4725
+ Schema.Union([
4726
+ Schema.Union([
4483
4727
  Schema.Struct({
4484
4728
  type: Schema.Literal("json"),
4485
4729
  decimalEncoding: Schema.optional(
@@ -4505,102 +4749,236 @@ export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
4505
4749
  unstructured: "unstructured",
4506
4750
  }),
4507
4751
  ),
4508
- Schema.Unknown,
4509
- ]),
4510
- ),
4511
- Schema.Null,
4512
- ]),
4513
- ),
4514
- format: Schema.optional(
4515
- Schema.Union([
4516
- Schema.Union([
4517
- Schema.Struct({
4518
- type: Schema.Literal("json"),
4519
- decimalEncoding: Schema.optional(
4520
- Schema.Union([
4521
- Schema.Literals(["number", "string", "bytes"]),
4522
- Schema.Null,
4523
- ]),
4524
- ),
4525
- timestampFormat: Schema.optional(
4526
- Schema.Union([
4527
- Schema.Literals(["rfc3339", "unix_millis"]),
4528
- Schema.Null,
4529
- ]),
4530
- ),
4531
- unstructured: Schema.optional(
4532
- Schema.Union([Schema.Boolean, Schema.Null]),
4533
- ),
4534
- }).pipe(
4535
- Schema.encodeKeys({
4536
- type: "type",
4537
- decimalEncoding: "decimal_encoding",
4538
- timestampFormat: "timestamp_format",
4539
- unstructured: "unstructured",
4540
- }),
4541
- ),
4542
- Schema.Struct({
4543
- type: Schema.Literal("parquet"),
4544
- compression: Schema.optional(
4545
- Schema.Union([
4546
- Schema.Literals([
4547
- "uncompressed",
4548
- "snappy",
4549
- "gzip",
4550
- "zstd",
4551
- "lz4",
4752
+ Schema.Struct({
4753
+ type: Schema.Literal("parquet"),
4754
+ compression: Schema.optional(
4755
+ Schema.Union([
4756
+ Schema.Literals([
4757
+ "uncompressed",
4758
+ "snappy",
4759
+ "gzip",
4760
+ "zstd",
4761
+ "lz4",
4762
+ ]),
4763
+ Schema.Null,
4552
4764
  ]),
4553
- Schema.Null,
4554
- ]),
4555
- ),
4556
- rowGroupBytes: Schema.optional(
4557
- Schema.Union([Schema.Number, Schema.Null]),
4765
+ ),
4766
+ rowGroupBytes: Schema.optional(
4767
+ Schema.Union([Schema.Number, Schema.Null]),
4768
+ ),
4769
+ }).pipe(
4770
+ Schema.encodeKeys({
4771
+ type: "type",
4772
+ compression: "compression",
4773
+ rowGroupBytes: "row_group_bytes",
4774
+ }),
4558
4775
  ),
4559
- }).pipe(
4560
- Schema.encodeKeys({
4561
- type: "type",
4562
- compression: "compression",
4563
- rowGroupBytes: "row_group_bytes",
4564
- }),
4565
- ),
4776
+ ]),
4777
+ Schema.Null,
4566
4778
  ]),
4567
- Schema.Null,
4568
- ]),
4569
- ),
4570
- inferred: Schema.optional(
4571
- Schema.Union([Schema.Boolean, Schema.Null]),
4572
- ),
4573
- }),
4574
- Schema.Null,
4575
- ]),
4779
+ ),
4780
+ inferred: Schema.optional(
4781
+ Schema.Union([Schema.Boolean, Schema.Null]),
4782
+ ),
4783
+ }),
4784
+ Schema.Null,
4785
+ ]),
4786
+ ),
4787
+ }).pipe(
4788
+ Schema.encodeKeys({
4789
+ id: "id",
4790
+ createdAt: "created_at",
4791
+ http: "http",
4792
+ modifiedAt: "modified_at",
4793
+ name: "name",
4794
+ version: "version",
4795
+ workerBinding: "worker_binding",
4796
+ endpoint: "endpoint",
4797
+ format: "format",
4798
+ schema: "schema",
4799
+ }),
4576
4800
  ),
4577
- }).pipe(
4578
- Schema.encodeKeys({
4579
- id: "id",
4580
- createdAt: "created_at",
4581
- http: "http",
4582
- modifiedAt: "modified_at",
4583
- name: "name",
4584
- version: "version",
4585
- workerBinding: "worker_binding",
4586
- endpoint: "endpoint",
4587
- format: "format",
4588
- schema: "schema",
4589
- }),
4590
4801
  ),
4802
+ resultInfo: Schema.optional(
4803
+ Schema.Union([
4804
+ Schema.Struct({
4805
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4806
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4807
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4808
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
4809
+ }).pipe(
4810
+ Schema.encodeKeys({
4811
+ count: "count",
4812
+ page: "page",
4813
+ perPage: "per_page",
4814
+ totalCount: "total_count",
4815
+ }),
4816
+ ),
4817
+ Schema.Null,
4818
+ ]),
4819
+ ),
4820
+ }).pipe(
4821
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
4591
4822
  ) as unknown as Schema.Schema<ListStreamsResponse>;
4592
4823
 
4593
4824
  export type ListStreamsError = DefaultErrors;
4594
4825
 
4595
- export const listStreams: API.OperationMethod<
4826
+ export const listStreams: API.PaginatedOperationMethod<
4596
4827
  ListStreamsRequest,
4597
4828
  ListStreamsResponse,
4598
4829
  ListStreamsError,
4599
4830
  Credentials | HttpClient.HttpClient
4600
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
4831
+ > & {
4832
+ pages: (
4833
+ input: ListStreamsRequest,
4834
+ ) => stream.Stream<
4835
+ ListStreamsResponse,
4836
+ ListStreamsError,
4837
+ Credentials | HttpClient.HttpClient
4838
+ >;
4839
+ items: (input: ListStreamsRequest) => stream.Stream<
4840
+ {
4841
+ id: string;
4842
+ createdAt: string;
4843
+ http: {
4844
+ authentication: boolean;
4845
+ enabled: boolean;
4846
+ cors?: { origins?: string[] | null } | null;
4847
+ };
4848
+ modifiedAt: string;
4849
+ name: string;
4850
+ version: number;
4851
+ workerBinding: { enabled: boolean };
4852
+ endpoint?: string | null;
4853
+ format?:
4854
+ | {
4855
+ type: "json";
4856
+ decimalEncoding?: "number" | "string" | "bytes" | null;
4857
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
4858
+ unstructured?: boolean | null;
4859
+ }
4860
+ | {
4861
+ type: "parquet";
4862
+ compression?:
4863
+ | "uncompressed"
4864
+ | "snappy"
4865
+ | "gzip"
4866
+ | "zstd"
4867
+ | "lz4"
4868
+ | null;
4869
+ rowGroupBytes?: number | null;
4870
+ }
4871
+ | null;
4872
+ schema?: {
4873
+ fields?:
4874
+ | (
4875
+ | {
4876
+ type: "int32";
4877
+ metadataKey?: string | null;
4878
+ name?: string | null;
4879
+ required?: boolean | null;
4880
+ sqlName?: string | null;
4881
+ }
4882
+ | {
4883
+ type: "int64";
4884
+ metadataKey?: string | null;
4885
+ name?: string | null;
4886
+ required?: boolean | null;
4887
+ sqlName?: string | null;
4888
+ }
4889
+ | {
4890
+ type: "float32";
4891
+ metadataKey?: string | null;
4892
+ name?: string | null;
4893
+ required?: boolean | null;
4894
+ sqlName?: string | null;
4895
+ }
4896
+ | {
4897
+ type: "float64";
4898
+ metadataKey?: string | null;
4899
+ name?: string | null;
4900
+ required?: boolean | null;
4901
+ sqlName?: string | null;
4902
+ }
4903
+ | {
4904
+ type: "bool";
4905
+ metadataKey?: string | null;
4906
+ name?: string | null;
4907
+ required?: boolean | null;
4908
+ sqlName?: string | null;
4909
+ }
4910
+ | {
4911
+ type: "string";
4912
+ metadataKey?: string | null;
4913
+ name?: string | null;
4914
+ required?: boolean | null;
4915
+ sqlName?: string | null;
4916
+ }
4917
+ | {
4918
+ type: "binary";
4919
+ metadataKey?: string | null;
4920
+ name?: string | null;
4921
+ required?: boolean | null;
4922
+ sqlName?: string | null;
4923
+ }
4924
+ | {
4925
+ type: "timestamp";
4926
+ metadataKey?: string | null;
4927
+ name?: string | null;
4928
+ required?: boolean | null;
4929
+ sqlName?: string | null;
4930
+ unit?:
4931
+ | "second"
4932
+ | "millisecond"
4933
+ | "microsecond"
4934
+ | "nanosecond"
4935
+ | null;
4936
+ }
4937
+ | {
4938
+ type: "json";
4939
+ decimalEncoding?: "number" | "string" | "bytes" | null;
4940
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
4941
+ unstructured?: boolean | null;
4942
+ }
4943
+ | unknown
4944
+ )[]
4945
+ | null;
4946
+ format?:
4947
+ | {
4948
+ type: "json";
4949
+ decimalEncoding?: "number" | "string" | "bytes" | null;
4950
+ timestampFormat?: "rfc3339" | "unix_millis" | null;
4951
+ unstructured?: boolean | null;
4952
+ }
4953
+ | {
4954
+ type: "parquet";
4955
+ compression?:
4956
+ | "uncompressed"
4957
+ | "snappy"
4958
+ | "gzip"
4959
+ | "zstd"
4960
+ | "lz4"
4961
+ | null;
4962
+ rowGroupBytes?: number | null;
4963
+ }
4964
+ | null;
4965
+ inferred?: boolean | null;
4966
+ } | null;
4967
+ },
4968
+ ListStreamsError,
4969
+ Credentials | HttpClient.HttpClient
4970
+ >;
4971
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
4601
4972
  input: ListStreamsRequest,
4602
4973
  output: ListStreamsResponse,
4603
4974
  errors: [],
4975
+ pagination: {
4976
+ mode: "page",
4977
+ inputToken: "page",
4978
+ outputToken: "resultInfo.page",
4979
+ items: "result",
4980
+ pageSize: "perPage",
4981
+ } as const,
4604
4982
  }));
4605
4983
 
4606
4984
  export interface CreateStreamRequest {
@@ -5506,20 +5884,24 @@ export const CreateStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5506
5884
  Schema.Null,
5507
5885
  ]),
5508
5886
  ),
5509
- }).pipe(
5510
- Schema.encodeKeys({
5511
- id: "id",
5512
- createdAt: "created_at",
5513
- http: "http",
5514
- modifiedAt: "modified_at",
5515
- name: "name",
5516
- version: "version",
5517
- workerBinding: "worker_binding",
5518
- endpoint: "endpoint",
5519
- format: "format",
5520
- schema: "schema",
5521
- }),
5522
- ) as unknown as Schema.Schema<CreateStreamResponse>;
5887
+ })
5888
+ .pipe(
5889
+ Schema.encodeKeys({
5890
+ id: "id",
5891
+ createdAt: "created_at",
5892
+ http: "http",
5893
+ modifiedAt: "modified_at",
5894
+ name: "name",
5895
+ version: "version",
5896
+ workerBinding: "worker_binding",
5897
+ endpoint: "endpoint",
5898
+ format: "format",
5899
+ schema: "schema",
5900
+ }),
5901
+ )
5902
+ .pipe(
5903
+ T.ResponsePath("result"),
5904
+ ) as unknown as Schema.Schema<CreateStreamResponse>;
5523
5905
 
5524
5906
  export type CreateStreamError =
5525
5907
  | DefaultErrors
@@ -5696,19 +6078,23 @@ export const PatchStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5696
6078
  Schema.Null,
5697
6079
  ]),
5698
6080
  ),
5699
- }).pipe(
5700
- Schema.encodeKeys({
5701
- id: "id",
5702
- createdAt: "created_at",
5703
- http: "http",
5704
- modifiedAt: "modified_at",
5705
- name: "name",
5706
- version: "version",
5707
- workerBinding: "worker_binding",
5708
- endpoint: "endpoint",
5709
- format: "format",
5710
- }),
5711
- ) as unknown as Schema.Schema<PatchStreamResponse>;
6081
+ })
6082
+ .pipe(
6083
+ Schema.encodeKeys({
6084
+ id: "id",
6085
+ createdAt: "created_at",
6086
+ http: "http",
6087
+ modifiedAt: "modified_at",
6088
+ name: "name",
6089
+ version: "version",
6090
+ workerBinding: "worker_binding",
6091
+ endpoint: "endpoint",
6092
+ format: "format",
6093
+ }),
6094
+ )
6095
+ .pipe(
6096
+ T.ResponsePath("result"),
6097
+ ) as unknown as Schema.Schema<PatchStreamResponse>;
5712
6098
 
5713
6099
  export type PatchStreamError = DefaultErrors | StreamNotFound;
5714
6100
 
@@ -5817,17 +6203,21 @@ export const GetV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5817
6203
  version: Schema.Number,
5818
6204
  }),
5819
6205
  ),
5820
- }).pipe(
5821
- Schema.encodeKeys({
5822
- id: "id",
5823
- createdAt: "created_at",
5824
- modifiedAt: "modified_at",
5825
- name: "name",
5826
- sql: "sql",
5827
- status: "status",
5828
- tables: "tables",
5829
- }),
5830
- ) as unknown as Schema.Schema<GetV1PipelineResponse>;
6206
+ })
6207
+ .pipe(
6208
+ Schema.encodeKeys({
6209
+ id: "id",
6210
+ createdAt: "created_at",
6211
+ modifiedAt: "modified_at",
6212
+ name: "name",
6213
+ sql: "sql",
6214
+ status: "status",
6215
+ tables: "tables",
6216
+ }),
6217
+ )
6218
+ .pipe(
6219
+ T.ResponsePath("result"),
6220
+ ) as unknown as Schema.Schema<GetV1PipelineResponse>;
5831
6221
 
5832
6222
  export type GetV1PipelineError = DefaultErrors;
5833
6223
 
@@ -5856,46 +6246,107 @@ export const ListV1PipelineRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
5856
6246
  }),
5857
6247
  ) as unknown as Schema.Schema<ListV1PipelineRequest>;
5858
6248
 
5859
- export type ListV1PipelineResponse = {
5860
- id: string;
5861
- createdAt: string;
5862
- modifiedAt: string;
5863
- name: string;
5864
- sql: string;
5865
- status: string;
5866
- }[];
6249
+ export interface ListV1PipelineResponse {
6250
+ result: {
6251
+ id: string;
6252
+ createdAt: string;
6253
+ modifiedAt: string;
6254
+ name: string;
6255
+ sql: string;
6256
+ status: string;
6257
+ }[];
6258
+ resultInfo?: {
6259
+ count?: number | null;
6260
+ page?: number | null;
6261
+ perPage?: number | null;
6262
+ totalCount?: number | null;
6263
+ } | null;
6264
+ }
5867
6265
 
5868
- export const ListV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
5869
- Schema.Struct({
5870
- id: Schema.String,
5871
- createdAt: Schema.String,
5872
- modifiedAt: Schema.String,
5873
- name: Schema.String,
5874
- sql: Schema.String,
5875
- status: Schema.String,
5876
- }).pipe(
5877
- Schema.encodeKeys({
5878
- id: "id",
5879
- createdAt: "created_at",
5880
- modifiedAt: "modified_at",
5881
- name: "name",
5882
- sql: "sql",
5883
- status: "status",
5884
- }),
5885
- ),
6266
+ export const ListV1PipelineResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
6267
+ {
6268
+ result: Schema.Array(
6269
+ Schema.Struct({
6270
+ id: Schema.String,
6271
+ createdAt: Schema.String,
6272
+ modifiedAt: Schema.String,
6273
+ name: Schema.String,
6274
+ sql: Schema.String,
6275
+ status: Schema.String,
6276
+ }).pipe(
6277
+ Schema.encodeKeys({
6278
+ id: "id",
6279
+ createdAt: "created_at",
6280
+ modifiedAt: "modified_at",
6281
+ name: "name",
6282
+ sql: "sql",
6283
+ status: "status",
6284
+ }),
6285
+ ),
6286
+ ),
6287
+ resultInfo: Schema.optional(
6288
+ Schema.Union([
6289
+ Schema.Struct({
6290
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6291
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6292
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
6293
+ totalCount: Schema.optional(
6294
+ Schema.Union([Schema.Number, Schema.Null]),
6295
+ ),
6296
+ }).pipe(
6297
+ Schema.encodeKeys({
6298
+ count: "count",
6299
+ page: "page",
6300
+ perPage: "per_page",
6301
+ totalCount: "total_count",
6302
+ }),
6303
+ ),
6304
+ Schema.Null,
6305
+ ]),
6306
+ ),
6307
+ },
6308
+ ).pipe(
6309
+ Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
5886
6310
  ) as unknown as Schema.Schema<ListV1PipelineResponse>;
5887
6311
 
5888
6312
  export type ListV1PipelineError = DefaultErrors;
5889
6313
 
5890
- export const listV1Pipeline: API.OperationMethod<
6314
+ export const listV1Pipeline: API.PaginatedOperationMethod<
5891
6315
  ListV1PipelineRequest,
5892
6316
  ListV1PipelineResponse,
5893
6317
  ListV1PipelineError,
5894
6318
  Credentials | HttpClient.HttpClient
5895
- > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
6319
+ > & {
6320
+ pages: (
6321
+ input: ListV1PipelineRequest,
6322
+ ) => stream.Stream<
6323
+ ListV1PipelineResponse,
6324
+ ListV1PipelineError,
6325
+ Credentials | HttpClient.HttpClient
6326
+ >;
6327
+ items: (input: ListV1PipelineRequest) => stream.Stream<
6328
+ {
6329
+ id: string;
6330
+ createdAt: string;
6331
+ modifiedAt: string;
6332
+ name: string;
6333
+ sql: string;
6334
+ status: string;
6335
+ },
6336
+ ListV1PipelineError,
6337
+ Credentials | HttpClient.HttpClient
6338
+ >;
6339
+ } = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
5896
6340
  input: ListV1PipelineRequest,
5897
6341
  output: ListV1PipelineResponse,
5898
6342
  errors: [],
6343
+ pagination: {
6344
+ mode: "page",
6345
+ inputToken: "page",
6346
+ outputToken: "resultInfo.page",
6347
+ items: "result",
6348
+ pageSize: "perPage",
6349
+ } as const,
5899
6350
  }));
5900
6351
 
5901
6352
  export interface CreateV1PipelineRequest {
@@ -5940,16 +6391,20 @@ export const CreateV1PipelineResponse =
5940
6391
  name: Schema.String,
5941
6392
  sql: Schema.String,
5942
6393
  status: Schema.String,
5943
- }).pipe(
5944
- Schema.encodeKeys({
5945
- id: "id",
5946
- createdAt: "created_at",
5947
- modifiedAt: "modified_at",
5948
- name: "name",
5949
- sql: "sql",
5950
- status: "status",
5951
- }),
5952
- ) as unknown as Schema.Schema<CreateV1PipelineResponse>;
6394
+ })
6395
+ .pipe(
6396
+ Schema.encodeKeys({
6397
+ id: "id",
6398
+ createdAt: "created_at",
6399
+ modifiedAt: "modified_at",
6400
+ name: "name",
6401
+ sql: "sql",
6402
+ status: "status",
6403
+ }),
6404
+ )
6405
+ .pipe(
6406
+ T.ResponsePath("result"),
6407
+ ) as unknown as Schema.Schema<CreateV1PipelineResponse>;
5953
6408
 
5954
6409
  export type CreateV1PipelineError = DefaultErrors;
5955
6410