@distilled.cloud/cloudflare 0.0.0-john

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 (562) hide show
  1. package/README.md +59 -0
  2. package/lib/auth.d.ts +14 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +13 -0
  5. package/lib/auth.js.map +1 -0
  6. package/lib/category.d.ts +2 -0
  7. package/lib/category.d.ts.map +1 -0
  8. package/lib/category.js +2 -0
  9. package/lib/category.js.map +1 -0
  10. package/lib/client/api.d.ts +12 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +292 -0
  13. package/lib/client/api.js.map +1 -0
  14. package/lib/client/index.d.ts +8 -0
  15. package/lib/client/index.d.ts.map +1 -0
  16. package/lib/client/index.js +8 -0
  17. package/lib/client/index.js.map +1 -0
  18. package/lib/credentials.d.ts +68 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +136 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +48 -0
  23. package/lib/errors.d.ts.map +1 -0
  24. package/lib/errors.js +31 -0
  25. package/lib/errors.js.map +1 -0
  26. package/lib/index.d.ts +10 -0
  27. package/lib/index.d.ts.map +1 -0
  28. package/lib/index.js +10 -0
  29. package/lib/index.js.map +1 -0
  30. package/lib/retry.d.ts +14 -0
  31. package/lib/retry.d.ts.map +1 -0
  32. package/lib/retry.js +14 -0
  33. package/lib/retry.js.map +1 -0
  34. package/lib/schemas.d.ts +29 -0
  35. package/lib/schemas.d.ts.map +1 -0
  36. package/lib/schemas.js +34 -0
  37. package/lib/schemas.js.map +1 -0
  38. package/lib/sensitive.d.ts +5 -0
  39. package/lib/sensitive.d.ts.map +1 -0
  40. package/lib/sensitive.js +5 -0
  41. package/lib/sensitive.js.map +1 -0
  42. package/lib/services/abuse-reports.d.ts +296 -0
  43. package/lib/services/abuse-reports.d.ts.map +1 -0
  44. package/lib/services/abuse-reports.js +414 -0
  45. package/lib/services/abuse-reports.js.map +1 -0
  46. package/lib/services/accounts.d.ts +766 -0
  47. package/lib/services/accounts.d.ts.map +1 -0
  48. package/lib/services/accounts.js +860 -0
  49. package/lib/services/accounts.js.map +1 -0
  50. package/lib/services/acm.d.ts +73 -0
  51. package/lib/services/acm.d.ts.map +1 -0
  52. package/lib/services/acm.js +80 -0
  53. package/lib/services/acm.js.map +1 -0
  54. package/lib/services/addressing.d.ts +1321 -0
  55. package/lib/services/addressing.d.ts.map +1 -0
  56. package/lib/services/addressing.js +1863 -0
  57. package/lib/services/addressing.js.map +1 -0
  58. package/lib/services/ai-gateway.d.ts +1137 -0
  59. package/lib/services/ai-gateway.d.ts.map +1 -0
  60. package/lib/services/ai-gateway.js +1830 -0
  61. package/lib/services/ai-gateway.js.map +1 -0
  62. package/lib/services/ai.d.ts +297 -0
  63. package/lib/services/ai.d.ts.map +1 -0
  64. package/lib/services/ai.js +352 -0
  65. package/lib/services/ai.js.map +1 -0
  66. package/lib/services/aisearch.d.ts +1069 -0
  67. package/lib/services/aisearch.d.ts.map +1 -0
  68. package/lib/services/aisearch.js +2542 -0
  69. package/lib/services/aisearch.js.map +1 -0
  70. package/lib/services/alerting.d.ts +855 -0
  71. package/lib/services/alerting.d.ts.map +1 -0
  72. package/lib/services/alerting.js +1445 -0
  73. package/lib/services/alerting.js.map +1 -0
  74. package/lib/services/api-gateway.d.ts +1088 -0
  75. package/lib/services/api-gateway.d.ts.map +1 -0
  76. package/lib/services/api-gateway.js +1655 -0
  77. package/lib/services/api-gateway.js.map +1 -0
  78. package/lib/services/argo.d.ts +101 -0
  79. package/lib/services/argo.d.ts.map +1 -0
  80. package/lib/services/argo.js +113 -0
  81. package/lib/services/argo.js.map +1 -0
  82. package/lib/services/audit-logs.d.ts +46 -0
  83. package/lib/services/audit-logs.d.ts.map +1 -0
  84. package/lib/services/audit-logs.js +37 -0
  85. package/lib/services/audit-logs.js.map +1 -0
  86. package/lib/services/billing.d.ts +62 -0
  87. package/lib/services/billing.d.ts.map +1 -0
  88. package/lib/services/billing.js +102 -0
  89. package/lib/services/billing.js.map +1 -0
  90. package/lib/services/bot-management.d.ts +124 -0
  91. package/lib/services/bot-management.d.ts.map +1 -0
  92. package/lib/services/bot-management.js +262 -0
  93. package/lib/services/bot-management.js.map +1 -0
  94. package/lib/services/botnet-feed.d.ts +65 -0
  95. package/lib/services/botnet-feed.d.ts.map +1 -0
  96. package/lib/services/botnet-feed.js +88 -0
  97. package/lib/services/botnet-feed.js.map +1 -0
  98. package/lib/services/brand-protection.d.ts +194 -0
  99. package/lib/services/brand-protection.d.ts.map +1 -0
  100. package/lib/services/brand-protection.js +221 -0
  101. package/lib/services/brand-protection.js.map +1 -0
  102. package/lib/services/browser-rendering.d.ts +857 -0
  103. package/lib/services/browser-rendering.d.ts.map +1 -0
  104. package/lib/services/browser-rendering.js +1142 -0
  105. package/lib/services/browser-rendering.js.map +1 -0
  106. package/lib/services/cache.d.ts +287 -0
  107. package/lib/services/cache.d.ts.map +1 -0
  108. package/lib/services/cache.js +354 -0
  109. package/lib/services/cache.js.map +1 -0
  110. package/lib/services/calls.d.ts +223 -0
  111. package/lib/services/calls.d.ts.map +1 -0
  112. package/lib/services/calls.js +188 -0
  113. package/lib/services/calls.js.map +1 -0
  114. package/lib/services/certificate-authorities.d.ts +40 -0
  115. package/lib/services/certificate-authorities.d.ts.map +1 -0
  116. package/lib/services/certificate-authorities.js +49 -0
  117. package/lib/services/certificate-authorities.js.map +1 -0
  118. package/lib/services/client-certificates.d.ts +288 -0
  119. package/lib/services/client-certificates.d.ts.map +1 -0
  120. package/lib/services/client-certificates.js +379 -0
  121. package/lib/services/client-certificates.js.map +1 -0
  122. package/lib/services/cloud-connector.d.ts +88 -0
  123. package/lib/services/cloud-connector.d.ts.map +1 -0
  124. package/lib/services/cloud-connector.js +97 -0
  125. package/lib/services/cloud-connector.js.map +1 -0
  126. package/lib/services/cloudforce-one.d.ts +1387 -0
  127. package/lib/services/cloudforce-one.d.ts.map +1 -0
  128. package/lib/services/cloudforce-one.js +1741 -0
  129. package/lib/services/cloudforce-one.js.map +1 -0
  130. package/lib/services/connectivity.d.ts +291 -0
  131. package/lib/services/connectivity.d.ts.map +1 -0
  132. package/lib/services/connectivity.js +404 -0
  133. package/lib/services/connectivity.js.map +1 -0
  134. package/lib/services/content-scanning.d.ts +156 -0
  135. package/lib/services/content-scanning.d.ts.map +1 -0
  136. package/lib/services/content-scanning.js +175 -0
  137. package/lib/services/content-scanning.js.map +1 -0
  138. package/lib/services/custom-certificates.d.ts +240 -0
  139. package/lib/services/custom-certificates.d.ts.map +1 -0
  140. package/lib/services/custom-certificates.js +336 -0
  141. package/lib/services/custom-certificates.js.map +1 -0
  142. package/lib/services/custom-hostnames.d.ts +590 -0
  143. package/lib/services/custom-hostnames.d.ts.map +1 -0
  144. package/lib/services/custom-hostnames.js +1204 -0
  145. package/lib/services/custom-hostnames.js.map +1 -0
  146. package/lib/services/custom-nameservers.d.ts +87 -0
  147. package/lib/services/custom-nameservers.d.ts.map +1 -0
  148. package/lib/services/custom-nameservers.js +95 -0
  149. package/lib/services/custom-nameservers.js.map +1 -0
  150. package/lib/services/custom-pages.d.ts +89 -0
  151. package/lib/services/custom-pages.d.ts.map +1 -0
  152. package/lib/services/custom-pages.js +140 -0
  153. package/lib/services/custom-pages.js.map +1 -0
  154. package/lib/services/d1.d.ts +392 -0
  155. package/lib/services/d1.d.ts.map +1 -0
  156. package/lib/services/d1.js +487 -0
  157. package/lib/services/d1.js.map +1 -0
  158. package/lib/services/dcv-delegation.d.ts +24 -0
  159. package/lib/services/dcv-delegation.d.ts.map +1 -0
  160. package/lib/services/dcv-delegation.js +24 -0
  161. package/lib/services/dcv-delegation.js.map +1 -0
  162. package/lib/services/diagnostics.d.ts +208 -0
  163. package/lib/services/diagnostics.d.ts.map +1 -0
  164. package/lib/services/diagnostics.js +288 -0
  165. package/lib/services/diagnostics.js.map +1 -0
  166. package/lib/services/dns-firewall.d.ts +317 -0
  167. package/lib/services/dns-firewall.d.ts.map +1 -0
  168. package/lib/services/dns-firewall.js +400 -0
  169. package/lib/services/dns-firewall.js.map +1 -0
  170. package/lib/services/dns.d.ts +3065 -0
  171. package/lib/services/dns.d.ts.map +1 -0
  172. package/lib/services/dns.js +4627 -0
  173. package/lib/services/dns.js.map +1 -0
  174. package/lib/services/durable-objects.d.ts +92 -0
  175. package/lib/services/durable-objects.d.ts.map +1 -0
  176. package/lib/services/durable-objects.js +103 -0
  177. package/lib/services/durable-objects.js.map +1 -0
  178. package/lib/services/email-routing.d.ts +598 -0
  179. package/lib/services/email-routing.d.ts.map +1 -0
  180. package/lib/services/email-routing.js +715 -0
  181. package/lib/services/email-routing.js.map +1 -0
  182. package/lib/services/email-security.d.ts +1389 -0
  183. package/lib/services/email-security.d.ts.map +1 -0
  184. package/lib/services/email-security.js +2261 -0
  185. package/lib/services/email-security.js.map +1 -0
  186. package/lib/services/filters.d.ts +197 -0
  187. package/lib/services/filters.d.ts.map +1 -0
  188. package/lib/services/filters.js +168 -0
  189. package/lib/services/filters.js.map +1 -0
  190. package/lib/services/firewall.d.ts +1352 -0
  191. package/lib/services/firewall.d.ts.map +1 -0
  192. package/lib/services/firewall.js +2084 -0
  193. package/lib/services/firewall.js.map +1 -0
  194. package/lib/services/healthchecks.d.ts +507 -0
  195. package/lib/services/healthchecks.d.ts.map +1 -0
  196. package/lib/services/healthchecks.js +867 -0
  197. package/lib/services/healthchecks.js.map +1 -0
  198. package/lib/services/hostnames.d.ts +86 -0
  199. package/lib/services/hostnames.d.ts.map +1 -0
  200. package/lib/services/hostnames.js +111 -0
  201. package/lib/services/hostnames.js.map +1 -0
  202. package/lib/services/hyperdrive.d.ts +203 -0
  203. package/lib/services/hyperdrive.d.ts.map +1 -0
  204. package/lib/services/hyperdrive.js +300 -0
  205. package/lib/services/hyperdrive.js.map +1 -0
  206. package/lib/services/iam.d.ts +657 -0
  207. package/lib/services/iam.d.ts.map +1 -0
  208. package/lib/services/iam.js +843 -0
  209. package/lib/services/iam.js.map +1 -0
  210. package/lib/services/images.d.ts +427 -0
  211. package/lib/services/images.d.ts.map +1 -0
  212. package/lib/services/images.js +444 -0
  213. package/lib/services/images.js.map +1 -0
  214. package/lib/services/intel.d.ts +865 -0
  215. package/lib/services/intel.d.ts.map +1 -0
  216. package/lib/services/intel.js +1266 -0
  217. package/lib/services/intel.js.map +1 -0
  218. package/lib/services/ips.d.ts +28 -0
  219. package/lib/services/ips.d.ts.map +1 -0
  220. package/lib/services/ips.js +39 -0
  221. package/lib/services/ips.js.map +1 -0
  222. package/lib/services/keyless-certificates.d.ts +197 -0
  223. package/lib/services/keyless-certificates.d.ts.map +1 -0
  224. package/lib/services/keyless-certificates.js +229 -0
  225. package/lib/services/keyless-certificates.js.map +1 -0
  226. package/lib/services/kv.d.ts +369 -0
  227. package/lib/services/kv.d.ts.map +1 -0
  228. package/lib/services/kv.js +453 -0
  229. package/lib/services/kv.js.map +1 -0
  230. package/lib/services/leaked-credential-checks.d.ts +129 -0
  231. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  232. package/lib/services/leaked-credential-checks.js +138 -0
  233. package/lib/services/leaked-credential-checks.js.map +1 -0
  234. package/lib/services/load-balancers.d.ts +1973 -0
  235. package/lib/services/load-balancers.d.ts.map +1 -0
  236. package/lib/services/load-balancers.js +3181 -0
  237. package/lib/services/load-balancers.js.map +1 -0
  238. package/lib/services/logpush.d.ts +401 -0
  239. package/lib/services/logpush.d.ts.map +1 -0
  240. package/lib/services/logpush.js +732 -0
  241. package/lib/services/logpush.js.map +1 -0
  242. package/lib/services/logs.d.ts +125 -0
  243. package/lib/services/logs.d.ts.map +1 -0
  244. package/lib/services/logs.js +149 -0
  245. package/lib/services/logs.js.map +1 -0
  246. package/lib/services/magic-cloud-networking.d.ts +1892 -0
  247. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  248. package/lib/services/magic-cloud-networking.js +5291 -0
  249. package/lib/services/magic-cloud-networking.js.map +1 -0
  250. package/lib/services/magic-network-monitoring.d.ts +379 -0
  251. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  252. package/lib/services/magic-network-monitoring.js +557 -0
  253. package/lib/services/magic-network-monitoring.js.map +1 -0
  254. package/lib/services/magic-transit.d.ts +3886 -0
  255. package/lib/services/magic-transit.d.ts.map +1 -0
  256. package/lib/services/magic-transit.js +6284 -0
  257. package/lib/services/magic-transit.js.map +1 -0
  258. package/lib/services/managed-transforms.d.ts +79 -0
  259. package/lib/services/managed-transforms.d.ts.map +1 -0
  260. package/lib/services/managed-transforms.js +111 -0
  261. package/lib/services/managed-transforms.js.map +1 -0
  262. package/lib/services/memberships.d.ts +204 -0
  263. package/lib/services/memberships.d.ts.map +1 -0
  264. package/lib/services/memberships.js +308 -0
  265. package/lib/services/memberships.js.map +1 -0
  266. package/lib/services/mtls-certificates.d.ts +164 -0
  267. package/lib/services/mtls-certificates.d.ts.map +1 -0
  268. package/lib/services/mtls-certificates.js +192 -0
  269. package/lib/services/mtls-certificates.js.map +1 -0
  270. package/lib/services/network-interconnects.d.ts +410 -0
  271. package/lib/services/network-interconnects.d.ts.map +1 -0
  272. package/lib/services/network-interconnects.js +583 -0
  273. package/lib/services/network-interconnects.js.map +1 -0
  274. package/lib/services/organizations.d.ts +232 -0
  275. package/lib/services/organizations.d.ts.map +1 -0
  276. package/lib/services/organizations.js +370 -0
  277. package/lib/services/organizations.js.map +1 -0
  278. package/lib/services/origin-ca-certificates.d.ts +119 -0
  279. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  280. package/lib/services/origin-ca-certificates.js +183 -0
  281. package/lib/services/origin-ca-certificates.js.map +1 -0
  282. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  283. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  284. package/lib/services/origin-post-quantum-encryption.js +64 -0
  285. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  286. package/lib/services/origin-tls-client-auth.d.ts +308 -0
  287. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  288. package/lib/services/origin-tls-client-auth.js +435 -0
  289. package/lib/services/origin-tls-client-auth.js.map +1 -0
  290. package/lib/services/page-rules.d.ts +773 -0
  291. package/lib/services/page-rules.d.ts.map +1 -0
  292. package/lib/services/page-rules.js +1373 -0
  293. package/lib/services/page-rules.js.map +1 -0
  294. package/lib/services/page-shield.d.ts +505 -0
  295. package/lib/services/page-shield.d.ts.map +1 -0
  296. package/lib/services/page-shield.js +520 -0
  297. package/lib/services/page-shield.js.map +1 -0
  298. package/lib/services/pages.d.ts +1949 -0
  299. package/lib/services/pages.d.ts.map +1 -0
  300. package/lib/services/pages.js +3030 -0
  301. package/lib/services/pages.js.map +1 -0
  302. package/lib/services/pipelines.d.ts +1716 -0
  303. package/lib/services/pipelines.d.ts.map +1 -0
  304. package/lib/services/pipelines.js +2991 -0
  305. package/lib/services/pipelines.js.map +1 -0
  306. package/lib/services/queues.d.ts +904 -0
  307. package/lib/services/queues.d.ts.map +1 -0
  308. package/lib/services/queues.js +1250 -0
  309. package/lib/services/queues.js.map +1 -0
  310. package/lib/services/r2-data-catalog.d.ts +341 -0
  311. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  312. package/lib/services/r2-data-catalog.js +513 -0
  313. package/lib/services/r2-data-catalog.js.map +1 -0
  314. package/lib/services/r2.d.ts +1087 -0
  315. package/lib/services/r2.d.ts.map +1 -0
  316. package/lib/services/r2.js +1404 -0
  317. package/lib/services/r2.js.map +1 -0
  318. package/lib/services/radar.d.ts +9365 -0
  319. package/lib/services/radar.d.ts.map +1 -0
  320. package/lib/services/radar.js +20552 -0
  321. package/lib/services/radar.js.map +1 -0
  322. package/lib/services/rate-limits.d.ts +360 -0
  323. package/lib/services/rate-limits.d.ts.map +1 -0
  324. package/lib/services/rate-limits.js +545 -0
  325. package/lib/services/rate-limits.js.map +1 -0
  326. package/lib/services/realtime-kit.d.ts +2728 -0
  327. package/lib/services/realtime-kit.d.ts.map +1 -0
  328. package/lib/services/realtime-kit.js +5402 -0
  329. package/lib/services/realtime-kit.js.map +1 -0
  330. package/lib/services/registrar.d.ts +121 -0
  331. package/lib/services/registrar.d.ts.map +1 -0
  332. package/lib/services/registrar.js +167 -0
  333. package/lib/services/registrar.js.map +1 -0
  334. package/lib/services/request-tracers.d.ts +61 -0
  335. package/lib/services/request-tracers.d.ts.map +1 -0
  336. package/lib/services/request-tracers.js +85 -0
  337. package/lib/services/request-tracers.js.map +1 -0
  338. package/lib/services/resource-sharing.d.ts +622 -0
  339. package/lib/services/resource-sharing.d.ts.map +1 -0
  340. package/lib/services/resource-sharing.js +929 -0
  341. package/lib/services/resource-sharing.js.map +1 -0
  342. package/lib/services/rules.d.ts +346 -0
  343. package/lib/services/rules.d.ts.map +1 -0
  344. package/lib/services/rules.js +431 -0
  345. package/lib/services/rules.js.map +1 -0
  346. package/lib/services/rulesets.d.ts +3345 -0
  347. package/lib/services/rulesets.d.ts.map +1 -0
  348. package/lib/services/rulesets.js +7904 -0
  349. package/lib/services/rulesets.js.map +1 -0
  350. package/lib/services/rum.d.ts +314 -0
  351. package/lib/services/rum.d.ts.map +1 -0
  352. package/lib/services/rum.js +442 -0
  353. package/lib/services/rum.js.map +1 -0
  354. package/lib/services/schema-validation.d.ts +273 -0
  355. package/lib/services/schema-validation.d.ts.map +1 -0
  356. package/lib/services/schema-validation.js +365 -0
  357. package/lib/services/schema-validation.js.map +1 -0
  358. package/lib/services/secrets-store.d.ts +393 -0
  359. package/lib/services/secrets-store.d.ts.map +1 -0
  360. package/lib/services/secrets-store.js +452 -0
  361. package/lib/services/secrets-store.js.map +1 -0
  362. package/lib/services/security-center.d.ts +136 -0
  363. package/lib/services/security-center.d.ts.map +1 -0
  364. package/lib/services/security-center.js +196 -0
  365. package/lib/services/security-center.js.map +1 -0
  366. package/lib/services/security-txt.d.ts +105 -0
  367. package/lib/services/security-txt.d.ts.map +1 -0
  368. package/lib/services/security-txt.js +136 -0
  369. package/lib/services/security-txt.js.map +1 -0
  370. package/lib/services/snippets.d.ts +190 -0
  371. package/lib/services/snippets.d.ts.map +1 -0
  372. package/lib/services/snippets.js +221 -0
  373. package/lib/services/snippets.js.map +1 -0
  374. package/lib/services/spectrum.d.ts +350 -0
  375. package/lib/services/spectrum.d.ts.map +1 -0
  376. package/lib/services/spectrum.js +535 -0
  377. package/lib/services/spectrum.js.map +1 -0
  378. package/lib/services/speed.d.ts +257 -0
  379. package/lib/services/speed.d.ts.map +1 -0
  380. package/lib/services/speed.js +471 -0
  381. package/lib/services/speed.js.map +1 -0
  382. package/lib/services/ssl.d.ts +412 -0
  383. package/lib/services/ssl.d.ts.map +1 -0
  384. package/lib/services/ssl.js +755 -0
  385. package/lib/services/ssl.js.map +1 -0
  386. package/lib/services/stream.d.ts +1110 -0
  387. package/lib/services/stream.d.ts.map +1 -0
  388. package/lib/services/stream.js +1085 -0
  389. package/lib/services/stream.js.map +1 -0
  390. package/lib/services/token-validation.d.ts +662 -0
  391. package/lib/services/token-validation.d.ts.map +1 -0
  392. package/lib/services/token-validation.js +834 -0
  393. package/lib/services/token-validation.js.map +1 -0
  394. package/lib/services/turnstile.d.ts +272 -0
  395. package/lib/services/turnstile.d.ts.map +1 -0
  396. package/lib/services/turnstile.js +339 -0
  397. package/lib/services/turnstile.js.map +1 -0
  398. package/lib/services/url-normalization.d.ts +53 -0
  399. package/lib/services/url-normalization.d.ts.map +1 -0
  400. package/lib/services/url-normalization.js +52 -0
  401. package/lib/services/url-normalization.js.map +1 -0
  402. package/lib/services/url-scanner.d.ts +612 -0
  403. package/lib/services/url-scanner.d.ts.map +1 -0
  404. package/lib/services/url-scanner.js +915 -0
  405. package/lib/services/url-scanner.js.map +1 -0
  406. package/lib/services/user.d.ts +507 -0
  407. package/lib/services/user.d.ts.map +1 -0
  408. package/lib/services/user.js +634 -0
  409. package/lib/services/user.js.map +1 -0
  410. package/lib/services/vectorize.d.ts +297 -0
  411. package/lib/services/vectorize.d.ts.map +1 -0
  412. package/lib/services/vectorize.js +351 -0
  413. package/lib/services/vectorize.js.map +1 -0
  414. package/lib/services/waiting-rooms.d.ts +1149 -0
  415. package/lib/services/waiting-rooms.d.ts.map +1 -0
  416. package/lib/services/waiting-rooms.js +1859 -0
  417. package/lib/services/waiting-rooms.js.map +1 -0
  418. package/lib/services/web3.d.ts +289 -0
  419. package/lib/services/web3.d.ts.map +1 -0
  420. package/lib/services/web3.js +381 -0
  421. package/lib/services/web3.js.map +1 -0
  422. package/lib/services/workers-for-platforms.d.ts +1394 -0
  423. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  424. package/lib/services/workers-for-platforms.js +2121 -0
  425. package/lib/services/workers-for-platforms.js.map +1 -0
  426. package/lib/services/workers.d.ts +3827 -0
  427. package/lib/services/workers.d.ts.map +1 -0
  428. package/lib/services/workers.js +6105 -0
  429. package/lib/services/workers.js.map +1 -0
  430. package/lib/services/workflows.d.ts +442 -0
  431. package/lib/services/workflows.d.ts.map +1 -0
  432. package/lib/services/workflows.js +599 -0
  433. package/lib/services/workflows.js.map +1 -0
  434. package/lib/services/zaraz.d.ts +312 -0
  435. package/lib/services/zaraz.d.ts.map +1 -0
  436. package/lib/services/zaraz.js +305 -0
  437. package/lib/services/zaraz.js.map +1 -0
  438. package/lib/services/zero-trust.d.ts +18235 -0
  439. package/lib/services/zero-trust.d.ts.map +1 -0
  440. package/lib/services/zero-trust.js +30268 -0
  441. package/lib/services/zero-trust.js.map +1 -0
  442. package/lib/services/zones.d.ts +1382 -0
  443. package/lib/services/zones.d.ts.map +1 -0
  444. package/lib/services/zones.js +2477 -0
  445. package/lib/services/zones.js.map +1 -0
  446. package/lib/traits.d.ts +28 -0
  447. package/lib/traits.d.ts.map +1 -0
  448. package/lib/traits.js +26 -0
  449. package/lib/traits.js.map +1 -0
  450. package/package.json +82 -0
  451. package/src/auth.ts +15 -0
  452. package/src/category.ts +1 -0
  453. package/src/client/api.ts +421 -0
  454. package/src/client/index.ts +7 -0
  455. package/src/credentials.ts +271 -0
  456. package/src/errors.ts +73 -0
  457. package/src/index.ts +9 -0
  458. package/src/retry.ts +35 -0
  459. package/src/schemas.ts +51 -0
  460. package/src/sensitive.ts +4 -0
  461. package/src/services/abuse-reports.ts +955 -0
  462. package/src/services/accounts.ts +2152 -0
  463. package/src/services/acm.ts +178 -0
  464. package/src/services/addressing.ts +4262 -0
  465. package/src/services/ai-gateway.ts +3773 -0
  466. package/src/services/ai.ts +901 -0
  467. package/src/services/aisearch.ts +5215 -0
  468. package/src/services/alerting.ts +3303 -0
  469. package/src/services/api-gateway.ts +3890 -0
  470. package/src/services/argo.ts +270 -0
  471. package/src/services/audit-logs.ts +90 -0
  472. package/src/services/billing.ts +176 -0
  473. package/src/services/bot-management.ts +545 -0
  474. package/src/services/botnet-feed.ts +205 -0
  475. package/src/services/brand-protection.ts +575 -0
  476. package/src/services/browser-rendering.ts +2720 -0
  477. package/src/services/cache.ts +877 -0
  478. package/src/services/calls.ts +548 -0
  479. package/src/services/certificate-authorities.ts +114 -0
  480. package/src/services/client-certificates.ts +815 -0
  481. package/src/services/cloud-connector.ts +248 -0
  482. package/src/services/cloudforce-one.ts +4104 -0
  483. package/src/services/connectivity.ts +706 -0
  484. package/src/services/content-scanning.ts +458 -0
  485. package/src/services/custom-certificates.ts +690 -0
  486. package/src/services/custom-hostnames.ts +2641 -0
  487. package/src/services/custom-nameservers.ts +235 -0
  488. package/src/services/custom-pages.ts +311 -0
  489. package/src/services/d1.ts +1208 -0
  490. package/src/services/dcv-delegation.ts +54 -0
  491. package/src/services/diagnostics.ts +677 -0
  492. package/src/services/dns-firewall.ts +904 -0
  493. package/src/services/dns.ts +9277 -0
  494. package/src/services/durable-objects.ts +237 -0
  495. package/src/services/email-routing.ts +1796 -0
  496. package/src/services/email-security.ts +5052 -0
  497. package/src/services/filters.ts +488 -0
  498. package/src/services/firewall.ts +4728 -0
  499. package/src/services/healthchecks.ts +1866 -0
  500. package/src/services/hostnames.ts +254 -0
  501. package/src/services/hyperdrive.ts +595 -0
  502. package/src/services/iam.ts +1969 -0
  503. package/src/services/images.ts +1180 -0
  504. package/src/services/intel.ts +3072 -0
  505. package/src/services/ips.ts +88 -0
  506. package/src/services/keyless-certificates.ts +509 -0
  507. package/src/services/kv.ts +1129 -0
  508. package/src/services/leaked-credential-checks.ts +364 -0
  509. package/src/services/load-balancers.ts +6993 -0
  510. package/src/services/logpush.ts +1695 -0
  511. package/src/services/logs.ts +389 -0
  512. package/src/services/magic-cloud-networking.ts +10747 -0
  513. package/src/services/magic-network-monitoring.ts +1200 -0
  514. package/src/services/magic-transit.ts +13673 -0
  515. package/src/services/managed-transforms.ts +245 -0
  516. package/src/services/memberships.ts +698 -0
  517. package/src/services/mtls-certificates.ts +444 -0
  518. package/src/services/network-interconnects.ts +1253 -0
  519. package/src/services/organizations.ts +738 -0
  520. package/src/services/origin-ca-certificates.ts +369 -0
  521. package/src/services/origin-post-quantum-encryption.ts +136 -0
  522. package/src/services/origin-tls-client-auth.ts +1002 -0
  523. package/src/services/page-rules.ts +2632 -0
  524. package/src/services/page-shield.ts +1371 -0
  525. package/src/services/pages.ts +6167 -0
  526. package/src/services/pipelines.ts +6455 -0
  527. package/src/services/queues.ts +2827 -0
  528. package/src/services/r2-data-catalog.ts +1151 -0
  529. package/src/services/r2.ts +3529 -0
  530. package/src/services/radar.ts +42836 -0
  531. package/src/services/rate-limits.ts +1252 -0
  532. package/src/services/realtime-kit.ts +11080 -0
  533. package/src/services/registrar.ts +390 -0
  534. package/src/services/request-tracers.ts +161 -0
  535. package/src/services/resource-sharing.ts +2082 -0
  536. package/src/services/rules.ts +953 -0
  537. package/src/services/rulesets.ts +15361 -0
  538. package/src/services/rum.ts +994 -0
  539. package/src/services/schema-validation.ts +869 -0
  540. package/src/services/secrets-store.ts +1050 -0
  541. package/src/services/security-center.ts +495 -0
  542. package/src/services/security-txt.ts +317 -0
  543. package/src/services/snippets.ts +562 -0
  544. package/src/services/spectrum.ts +1190 -0
  545. package/src/services/speed.ts +1154 -0
  546. package/src/services/ssl.ts +1714 -0
  547. package/src/services/stream.ts +3008 -0
  548. package/src/services/token-validation.ts +1825 -0
  549. package/src/services/turnstile.ts +725 -0
  550. package/src/services/url-normalization.ts +133 -0
  551. package/src/services/url-scanner.ts +1851 -0
  552. package/src/services/user.ts +1587 -0
  553. package/src/services/vectorize.ts +875 -0
  554. package/src/services/waiting-rooms.ts +4216 -0
  555. package/src/services/web3.ts +899 -0
  556. package/src/services/workers-for-platforms.ts +4134 -0
  557. package/src/services/workers.ts +12298 -0
  558. package/src/services/workflows.ts +1372 -0
  559. package/src/services/zaraz.ts +833 -0
  560. package/src/services/zero-trust.ts +64685 -0
  561. package/src/services/zones.ts +5106 -0
  562. package/src/traits.ts +47 -0
@@ -0,0 +1,1151 @@
1
+ /**
2
+ * Cloudflare R2-DATA-CATALOG API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service r2-data-catalog
6
+ */
7
+
8
+ import * as Schema from "effect/Schema";
9
+ import type * as HttpClient from "effect/unstable/http/HttpClient";
10
+ import * as API from "../client/api.ts";
11
+ import * as T from "../traits.ts";
12
+ import type { Credentials } from "../credentials.ts";
13
+ import { type DefaultErrors } from "../errors.ts";
14
+
15
+ // =============================================================================
16
+ // Errors
17
+ // =============================================================================
18
+
19
+ export class InvalidCredential extends Schema.TaggedErrorClass<InvalidCredential>()(
20
+ "InvalidCredential",
21
+ { code: Schema.Number, message: Schema.String },
22
+ ) {}
23
+ T.applyErrorMatchers(InvalidCredential, [{ code: 30004 }]);
24
+
25
+ export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
26
+ "InvalidRoute",
27
+ { code: Schema.Number, message: Schema.String },
28
+ ) {}
29
+ T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
30
+
31
+ export class NoSuchBucket extends Schema.TaggedErrorClass<NoSuchBucket>()(
32
+ "NoSuchBucket",
33
+ { code: Schema.Number, message: Schema.String },
34
+ ) {}
35
+ T.applyErrorMatchers(NoSuchBucket, [{ code: 10006 }]);
36
+
37
+ export class TableNotFound extends Schema.TaggedErrorClass<TableNotFound>()(
38
+ "TableNotFound",
39
+ { code: Schema.Number, message: Schema.String },
40
+ ) {}
41
+ T.applyErrorMatchers(TableNotFound, [{ code: 10001 }, { code: 40403 }]);
42
+
43
+ export class WarehouseInactive extends Schema.TaggedErrorClass<WarehouseInactive>()(
44
+ "WarehouseInactive",
45
+ { code: Schema.Number, message: Schema.String },
46
+ ) {}
47
+ T.applyErrorMatchers(WarehouseInactive, [{ code: 40402 }]);
48
+
49
+ export class WarehouseNotFound extends Schema.TaggedErrorClass<WarehouseNotFound>()(
50
+ "WarehouseNotFound",
51
+ { code: Schema.Number, message: Schema.String },
52
+ ) {}
53
+ T.applyErrorMatchers(WarehouseNotFound, [{ code: 40401 }]);
54
+
55
+ // =============================================================================
56
+ // Credential
57
+ // =============================================================================
58
+
59
+ export interface CreateCredentialRequest {
60
+ bucketName: string;
61
+ /** Path param: Use this to identify the account. */
62
+ accountId: string;
63
+ /** Body param: Provides the Cloudflare API token for accessing R2. */
64
+ token: string;
65
+ }
66
+
67
+ export const CreateCredentialRequest =
68
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
69
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
70
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
71
+ token: Schema.String,
72
+ }).pipe(
73
+ T.Http({
74
+ method: "POST",
75
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/credential",
76
+ }),
77
+ ) as unknown as Schema.Schema<CreateCredentialRequest>;
78
+
79
+ export type CreateCredentialResponse = unknown;
80
+
81
+ export const CreateCredentialResponse =
82
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
83
+ T.ResponsePath("result"),
84
+ ) as unknown as Schema.Schema<CreateCredentialResponse>;
85
+
86
+ export type CreateCredentialError =
87
+ | DefaultErrors
88
+ | InvalidRoute
89
+ | InvalidCredential;
90
+
91
+ export const createCredential: API.OperationMethod<
92
+ CreateCredentialRequest,
93
+ CreateCredentialResponse,
94
+ CreateCredentialError,
95
+ Credentials | HttpClient.HttpClient
96
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
97
+ input: CreateCredentialRequest,
98
+ output: CreateCredentialResponse,
99
+ errors: [InvalidRoute, InvalidCredential],
100
+ }));
101
+
102
+ // =============================================================================
103
+ // MaintenanceConfig
104
+ // =============================================================================
105
+
106
+ export interface GetMaintenanceConfigRequest {
107
+ bucketName: string;
108
+ /** Use this to identify the account. */
109
+ accountId: string;
110
+ }
111
+
112
+ export const GetMaintenanceConfigRequest =
113
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
114
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
115
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
116
+ }).pipe(
117
+ T.Http({
118
+ method: "GET",
119
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/maintenance-configs",
120
+ }),
121
+ ) as unknown as Schema.Schema<GetMaintenanceConfigRequest>;
122
+
123
+ export interface GetMaintenanceConfigResponse {
124
+ /** Shows the credential configuration status. */
125
+ credentialStatus: "present" | "absent";
126
+ /** Configures maintenance for the catalog. */
127
+ maintenanceConfig: {
128
+ compaction?: {
129
+ state: "enabled" | "disabled";
130
+ targetSizeMb: "64" | "128" | "256" | "512";
131
+ } | null;
132
+ snapshotExpiration?: {
133
+ maxSnapshotAge: string;
134
+ minSnapshotsToKeep: number;
135
+ state: "enabled" | "disabled";
136
+ } | null;
137
+ };
138
+ }
139
+
140
+ export const GetMaintenanceConfigResponse =
141
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
142
+ credentialStatus: Schema.Literals(["present", "absent"]),
143
+ maintenanceConfig: Schema.Struct({
144
+ compaction: Schema.optional(
145
+ Schema.Union([
146
+ Schema.Struct({
147
+ state: Schema.Literals(["enabled", "disabled"]),
148
+ targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
149
+ }).pipe(
150
+ Schema.encodeKeys({
151
+ state: "state",
152
+ targetSizeMb: "target_size_mb",
153
+ }),
154
+ ),
155
+ Schema.Null,
156
+ ]),
157
+ ),
158
+ snapshotExpiration: Schema.optional(
159
+ Schema.Union([
160
+ Schema.Struct({
161
+ maxSnapshotAge: Schema.String,
162
+ minSnapshotsToKeep: Schema.Number,
163
+ state: Schema.Literals(["enabled", "disabled"]),
164
+ }).pipe(
165
+ Schema.encodeKeys({
166
+ maxSnapshotAge: "max_snapshot_age",
167
+ minSnapshotsToKeep: "min_snapshots_to_keep",
168
+ state: "state",
169
+ }),
170
+ ),
171
+ Schema.Null,
172
+ ]),
173
+ ),
174
+ }).pipe(
175
+ Schema.encodeKeys({
176
+ compaction: "compaction",
177
+ snapshotExpiration: "snapshot_expiration",
178
+ }),
179
+ ),
180
+ })
181
+ .pipe(
182
+ Schema.encodeKeys({
183
+ credentialStatus: "credential_status",
184
+ maintenanceConfig: "maintenance_config",
185
+ }),
186
+ )
187
+ .pipe(
188
+ T.ResponsePath("result"),
189
+ ) as unknown as Schema.Schema<GetMaintenanceConfigResponse>;
190
+
191
+ export type GetMaintenanceConfigError =
192
+ | DefaultErrors
193
+ | InvalidRoute
194
+ | WarehouseInactive
195
+ | WarehouseNotFound;
196
+
197
+ export const getMaintenanceConfig: API.OperationMethod<
198
+ GetMaintenanceConfigRequest,
199
+ GetMaintenanceConfigResponse,
200
+ GetMaintenanceConfigError,
201
+ Credentials | HttpClient.HttpClient
202
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
203
+ input: GetMaintenanceConfigRequest,
204
+ output: GetMaintenanceConfigResponse,
205
+ errors: [InvalidRoute, WarehouseInactive, WarehouseNotFound],
206
+ }));
207
+
208
+ export interface UpdateMaintenanceConfigRequest {
209
+ bucketName: string;
210
+ /** Path param: Use this to identify the account. */
211
+ accountId: string;
212
+ /** Body param: Updates compaction configuration (all fields optional). */
213
+ compaction?: {
214
+ state?: "enabled" | "disabled";
215
+ targetSizeMb?: "64" | "128" | "256" | "512";
216
+ };
217
+ /** Body param: Updates snapshot expiration configuration (all fields optional). */
218
+ snapshotExpiration?: {
219
+ maxSnapshotAge?: string;
220
+ minSnapshotsToKeep?: number;
221
+ state?: "enabled" | "disabled";
222
+ };
223
+ }
224
+
225
+ export const UpdateMaintenanceConfigRequest =
226
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
227
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
228
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
229
+ compaction: Schema.optional(
230
+ Schema.Struct({
231
+ state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
232
+ targetSizeMb: Schema.optional(
233
+ Schema.Literals(["64", "128", "256", "512"]),
234
+ ),
235
+ }).pipe(
236
+ Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
237
+ ),
238
+ ),
239
+ snapshotExpiration: Schema.optional(
240
+ Schema.Struct({
241
+ maxSnapshotAge: Schema.optional(Schema.String),
242
+ minSnapshotsToKeep: Schema.optional(Schema.Number),
243
+ state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
244
+ }).pipe(
245
+ Schema.encodeKeys({
246
+ maxSnapshotAge: "max_snapshot_age",
247
+ minSnapshotsToKeep: "min_snapshots_to_keep",
248
+ state: "state",
249
+ }),
250
+ ),
251
+ ),
252
+ }).pipe(
253
+ Schema.encodeKeys({
254
+ compaction: "compaction",
255
+ snapshotExpiration: "snapshot_expiration",
256
+ }),
257
+ T.Http({
258
+ method: "POST",
259
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/maintenance-configs",
260
+ }),
261
+ ) as unknown as Schema.Schema<UpdateMaintenanceConfigRequest>;
262
+
263
+ export interface UpdateMaintenanceConfigResponse {
264
+ /** Configures compaction for catalog maintenance. */
265
+ compaction?: {
266
+ state: "enabled" | "disabled";
267
+ targetSizeMb: "64" | "128" | "256" | "512";
268
+ } | null;
269
+ /** Configures snapshot expiration settings. */
270
+ snapshotExpiration?: {
271
+ maxSnapshotAge: string;
272
+ minSnapshotsToKeep: number;
273
+ state: "enabled" | "disabled";
274
+ } | null;
275
+ }
276
+
277
+ export const UpdateMaintenanceConfigResponse =
278
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
279
+ compaction: Schema.optional(
280
+ Schema.Union([
281
+ Schema.Struct({
282
+ state: Schema.Literals(["enabled", "disabled"]),
283
+ targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
284
+ }).pipe(
285
+ Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
286
+ ),
287
+ Schema.Null,
288
+ ]),
289
+ ),
290
+ snapshotExpiration: Schema.optional(
291
+ Schema.Union([
292
+ Schema.Struct({
293
+ maxSnapshotAge: Schema.String,
294
+ minSnapshotsToKeep: Schema.Number,
295
+ state: Schema.Literals(["enabled", "disabled"]),
296
+ }).pipe(
297
+ Schema.encodeKeys({
298
+ maxSnapshotAge: "max_snapshot_age",
299
+ minSnapshotsToKeep: "min_snapshots_to_keep",
300
+ state: "state",
301
+ }),
302
+ ),
303
+ Schema.Null,
304
+ ]),
305
+ ),
306
+ })
307
+ .pipe(
308
+ Schema.encodeKeys({
309
+ compaction: "compaction",
310
+ snapshotExpiration: "snapshot_expiration",
311
+ }),
312
+ )
313
+ .pipe(
314
+ T.ResponsePath("result"),
315
+ ) as unknown as Schema.Schema<UpdateMaintenanceConfigResponse>;
316
+
317
+ export type UpdateMaintenanceConfigError =
318
+ | DefaultErrors
319
+ | InvalidRoute
320
+ | WarehouseInactive;
321
+
322
+ export const updateMaintenanceConfig: API.OperationMethod<
323
+ UpdateMaintenanceConfigRequest,
324
+ UpdateMaintenanceConfigResponse,
325
+ UpdateMaintenanceConfigError,
326
+ Credentials | HttpClient.HttpClient
327
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
328
+ input: UpdateMaintenanceConfigRequest,
329
+ output: UpdateMaintenanceConfigResponse,
330
+ errors: [InvalidRoute, WarehouseInactive],
331
+ }));
332
+
333
+ // =============================================================================
334
+ // Namespace
335
+ // =============================================================================
336
+
337
+ export interface ListNamespacesRequest {
338
+ bucketName: string;
339
+ /** Path param: Use this to identify the account. */
340
+ accountId: string;
341
+ /** Query param: Maximum number of namespaces to return per page. Defaults to 100, maximum 1000. */
342
+ pageSize?: number;
343
+ /** Query param: Opaque pagination token from a previous response. Use this to fetch the next page of results. */
344
+ pageToken?: string;
345
+ /** Query param: Parent namespace to filter by. Only returns direct children of this namespace. For nested namespaces, use %1F as separator (e.g., "bronze%1Fanalytics"). Omit this parameter to list top-le */
346
+ parent?: string;
347
+ /** Query param: Whether to include additional metadata (timestamps). When true, response includes created_at and updated_at arrays. */
348
+ returnDetails?: boolean;
349
+ /** Query param: Whether to include namespace UUIDs in the response. Set to true to receive the namespace_uuids array. */
350
+ returnUuids?: boolean;
351
+ }
352
+
353
+ export const ListNamespacesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
354
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
355
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
356
+ pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("page_size")),
357
+ pageToken: Schema.optional(Schema.String).pipe(T.HttpQuery("page_token")),
358
+ parent: Schema.optional(Schema.String).pipe(T.HttpQuery("parent")),
359
+ returnDetails: Schema.optional(Schema.Boolean).pipe(
360
+ T.HttpQuery("return_details"),
361
+ ),
362
+ returnUuids: Schema.optional(Schema.Boolean).pipe(
363
+ T.HttpQuery("return_uuids"),
364
+ ),
365
+ }).pipe(
366
+ T.Http({
367
+ method: "GET",
368
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces",
369
+ }),
370
+ ) as unknown as Schema.Schema<ListNamespacesRequest>;
371
+
372
+ export interface ListNamespacesResponse {
373
+ /** Lists namespaces in the catalog. */
374
+ namespaces: string[][];
375
+ /** Contains detailed metadata for each namespace when return_details is true. Each object includes the namespace, UUID, and timestamps. */
376
+ details?:
377
+ | {
378
+ namespace: string[];
379
+ namespaceUuid: string;
380
+ createdAt?: string | null;
381
+ updatedAt?: string | null;
382
+ }[]
383
+ | null;
384
+ /** Contains UUIDs for each namespace when return_uuids is true. The order corresponds to the namespaces array. */
385
+ namespaceUuids?: string[] | null;
386
+ /** Use this opaque token to fetch the next page of results. A null or absent value indicates the last page. */
387
+ nextPageToken?: string | null;
388
+ }
389
+
390
+ export const ListNamespacesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
391
+ {
392
+ namespaces: Schema.Array(Schema.Array(Schema.String)),
393
+ details: Schema.optional(
394
+ Schema.Union([
395
+ Schema.Array(
396
+ Schema.Struct({
397
+ namespace: Schema.Array(Schema.String),
398
+ namespaceUuid: Schema.String,
399
+ createdAt: Schema.optional(
400
+ Schema.Union([Schema.String, Schema.Null]),
401
+ ),
402
+ updatedAt: Schema.optional(
403
+ Schema.Union([Schema.String, Schema.Null]),
404
+ ),
405
+ }).pipe(
406
+ Schema.encodeKeys({
407
+ namespace: "namespace",
408
+ namespaceUuid: "namespace_uuid",
409
+ createdAt: "created_at",
410
+ updatedAt: "updated_at",
411
+ }),
412
+ ),
413
+ ),
414
+ Schema.Null,
415
+ ]),
416
+ ),
417
+ namespaceUuids: Schema.optional(
418
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
419
+ ),
420
+ nextPageToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
421
+ },
422
+ )
423
+ .pipe(
424
+ Schema.encodeKeys({
425
+ namespaces: "namespaces",
426
+ details: "details",
427
+ namespaceUuids: "namespace_uuids",
428
+ nextPageToken: "next_page_token",
429
+ }),
430
+ )
431
+ .pipe(
432
+ T.ResponsePath("result"),
433
+ ) as unknown as Schema.Schema<ListNamespacesResponse>;
434
+
435
+ export type ListNamespacesError =
436
+ | DefaultErrors
437
+ | InvalidRoute
438
+ | WarehouseInactive
439
+ | WarehouseNotFound;
440
+
441
+ export const listNamespaces: API.OperationMethod<
442
+ ListNamespacesRequest,
443
+ ListNamespacesResponse,
444
+ ListNamespacesError,
445
+ Credentials | HttpClient.HttpClient
446
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
447
+ input: ListNamespacesRequest,
448
+ output: ListNamespacesResponse,
449
+ errors: [InvalidRoute, WarehouseInactive, WarehouseNotFound],
450
+ }));
451
+
452
+ // =============================================================================
453
+ // NamespaceTable
454
+ // =============================================================================
455
+
456
+ export interface ListNamespaceTablesRequest {
457
+ bucketName: string;
458
+ namespace: string;
459
+ /** Path param: Use this to identify the account. */
460
+ accountId: string;
461
+ /** Query param: Maximum number of tables to return per page. Defaults to 100, maximum 1000. */
462
+ pageSize?: number;
463
+ /** Query param: Opaque pagination token from a previous response. Use this to fetch the next page of results. */
464
+ pageToken?: string;
465
+ /** Query param: Whether to include additional metadata (timestamps, locations). When true, response includes created_at, updated_at, metadata_locations, and locations arrays. */
466
+ returnDetails?: boolean;
467
+ /** Query param: Whether to include table UUIDs in the response. Set to true to receive the table_uuids array. */
468
+ returnUuids?: boolean;
469
+ }
470
+
471
+ export const ListNamespaceTablesRequest =
472
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
473
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
474
+ namespace: Schema.String.pipe(T.HttpPath("namespace")),
475
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
476
+ pageSize: Schema.optional(Schema.Number).pipe(T.HttpQuery("page_size")),
477
+ pageToken: Schema.optional(Schema.String).pipe(T.HttpQuery("page_token")),
478
+ returnDetails: Schema.optional(Schema.Boolean).pipe(
479
+ T.HttpQuery("return_details"),
480
+ ),
481
+ returnUuids: Schema.optional(Schema.Boolean).pipe(
482
+ T.HttpQuery("return_uuids"),
483
+ ),
484
+ }).pipe(
485
+ T.Http({
486
+ method: "GET",
487
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces/{namespace}/tables",
488
+ }),
489
+ ) as unknown as Schema.Schema<ListNamespaceTablesRequest>;
490
+
491
+ export interface ListNamespaceTablesResponse {
492
+ /** Lists tables in the namespace. */
493
+ identifiers: { name: string; namespace: string[] }[];
494
+ /** Contains detailed metadata for each table when return_details is true. Each object includes identifier, UUID, timestamps, and locations. */
495
+ details?:
496
+ | {
497
+ identifier: { name: string; namespace: string[] };
498
+ tableUuid: string;
499
+ createdAt?: string | null;
500
+ location?: string | null;
501
+ metadataLocation?: string | null;
502
+ updatedAt?: string | null;
503
+ }[]
504
+ | null;
505
+ /** Use this opaque token to fetch the next page of results. A null or absent value indicates the last page. */
506
+ nextPageToken?: string | null;
507
+ /** Contains UUIDs for each table when return_uuids is true. The order corresponds to the identifiers array. */
508
+ tableUuids?: string[] | null;
509
+ }
510
+
511
+ export const ListNamespaceTablesResponse =
512
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
513
+ identifiers: Schema.Array(
514
+ Schema.Struct({
515
+ name: Schema.String,
516
+ namespace: Schema.Array(Schema.String),
517
+ }),
518
+ ),
519
+ details: Schema.optional(
520
+ Schema.Union([
521
+ Schema.Array(
522
+ Schema.Struct({
523
+ identifier: Schema.Struct({
524
+ name: Schema.String,
525
+ namespace: Schema.Array(Schema.String),
526
+ }),
527
+ tableUuid: Schema.String,
528
+ createdAt: Schema.optional(
529
+ Schema.Union([Schema.String, Schema.Null]),
530
+ ),
531
+ location: Schema.optional(
532
+ Schema.Union([Schema.String, Schema.Null]),
533
+ ),
534
+ metadataLocation: Schema.optional(
535
+ Schema.Union([Schema.String, Schema.Null]),
536
+ ),
537
+ updatedAt: Schema.optional(
538
+ Schema.Union([Schema.String, Schema.Null]),
539
+ ),
540
+ }).pipe(
541
+ Schema.encodeKeys({
542
+ identifier: "identifier",
543
+ tableUuid: "table_uuid",
544
+ createdAt: "created_at",
545
+ location: "location",
546
+ metadataLocation: "metadata_location",
547
+ updatedAt: "updated_at",
548
+ }),
549
+ ),
550
+ ),
551
+ Schema.Null,
552
+ ]),
553
+ ),
554
+ nextPageToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
555
+ tableUuids: Schema.optional(
556
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
557
+ ),
558
+ })
559
+ .pipe(
560
+ Schema.encodeKeys({
561
+ identifiers: "identifiers",
562
+ details: "details",
563
+ nextPageToken: "next_page_token",
564
+ tableUuids: "table_uuids",
565
+ }),
566
+ )
567
+ .pipe(
568
+ T.ResponsePath("result"),
569
+ ) as unknown as Schema.Schema<ListNamespaceTablesResponse>;
570
+
571
+ export type ListNamespaceTablesError =
572
+ | DefaultErrors
573
+ | InvalidRoute
574
+ | WarehouseInactive;
575
+
576
+ export const listNamespaceTables: API.OperationMethod<
577
+ ListNamespaceTablesRequest,
578
+ ListNamespaceTablesResponse,
579
+ ListNamespaceTablesError,
580
+ Credentials | HttpClient.HttpClient
581
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
582
+ input: ListNamespaceTablesRequest,
583
+ output: ListNamespaceTablesResponse,
584
+ errors: [InvalidRoute, WarehouseInactive],
585
+ }));
586
+
587
+ // =============================================================================
588
+ // NamespaceTableMaintenanceConfig
589
+ // =============================================================================
590
+
591
+ export interface GetNamespaceTableMaintenanceConfigRequest {
592
+ bucketName: string;
593
+ namespace: string;
594
+ tableName: string;
595
+ /** Use this to identify the account. */
596
+ accountId: string;
597
+ }
598
+
599
+ export const GetNamespaceTableMaintenanceConfigRequest =
600
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
601
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
602
+ namespace: Schema.String.pipe(T.HttpPath("namespace")),
603
+ tableName: Schema.String.pipe(T.HttpPath("tableName")),
604
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
605
+ }).pipe(
606
+ T.Http({
607
+ method: "GET",
608
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces/{namespace}/tables/{tableName}/maintenance-configs",
609
+ }),
610
+ ) as unknown as Schema.Schema<GetNamespaceTableMaintenanceConfigRequest>;
611
+
612
+ export interface GetNamespaceTableMaintenanceConfigResponse {
613
+ /** Configures maintenance for the table. */
614
+ maintenanceConfig: {
615
+ compaction?: {
616
+ state: "enabled" | "disabled";
617
+ targetSizeMb: "64" | "128" | "256" | "512";
618
+ } | null;
619
+ snapshotExpiration?: {
620
+ maxSnapshotAge: string;
621
+ minSnapshotsToKeep: number;
622
+ state: "enabled" | "disabled";
623
+ } | null;
624
+ };
625
+ }
626
+
627
+ export const GetNamespaceTableMaintenanceConfigResponse =
628
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
629
+ maintenanceConfig: Schema.Struct({
630
+ compaction: Schema.optional(
631
+ Schema.Union([
632
+ Schema.Struct({
633
+ state: Schema.Literals(["enabled", "disabled"]),
634
+ targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
635
+ }).pipe(
636
+ Schema.encodeKeys({
637
+ state: "state",
638
+ targetSizeMb: "target_size_mb",
639
+ }),
640
+ ),
641
+ Schema.Null,
642
+ ]),
643
+ ),
644
+ snapshotExpiration: Schema.optional(
645
+ Schema.Union([
646
+ Schema.Struct({
647
+ maxSnapshotAge: Schema.String,
648
+ minSnapshotsToKeep: Schema.Number,
649
+ state: Schema.Literals(["enabled", "disabled"]),
650
+ }).pipe(
651
+ Schema.encodeKeys({
652
+ maxSnapshotAge: "max_snapshot_age",
653
+ minSnapshotsToKeep: "min_snapshots_to_keep",
654
+ state: "state",
655
+ }),
656
+ ),
657
+ Schema.Null,
658
+ ]),
659
+ ),
660
+ }).pipe(
661
+ Schema.encodeKeys({
662
+ compaction: "compaction",
663
+ snapshotExpiration: "snapshot_expiration",
664
+ }),
665
+ ),
666
+ })
667
+ .pipe(Schema.encodeKeys({ maintenanceConfig: "maintenance_config" }))
668
+ .pipe(
669
+ T.ResponsePath("result"),
670
+ ) as unknown as Schema.Schema<GetNamespaceTableMaintenanceConfigResponse>;
671
+
672
+ export type GetNamespaceTableMaintenanceConfigError =
673
+ | DefaultErrors
674
+ | TableNotFound
675
+ | InvalidRoute
676
+ | WarehouseInactive;
677
+
678
+ export const getNamespaceTableMaintenanceConfig: API.OperationMethod<
679
+ GetNamespaceTableMaintenanceConfigRequest,
680
+ GetNamespaceTableMaintenanceConfigResponse,
681
+ GetNamespaceTableMaintenanceConfigError,
682
+ Credentials | HttpClient.HttpClient
683
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
684
+ input: GetNamespaceTableMaintenanceConfigRequest,
685
+ output: GetNamespaceTableMaintenanceConfigResponse,
686
+ errors: [TableNotFound, InvalidRoute, WarehouseInactive],
687
+ }));
688
+
689
+ export interface UpdateNamespaceTableMaintenanceConfigRequest {
690
+ bucketName: string;
691
+ namespace: string;
692
+ tableName: string;
693
+ /** Path param: Use this to identify the account. */
694
+ accountId: string;
695
+ /** Body param: Updates compaction configuration (all fields optional). */
696
+ compaction?: {
697
+ state?: "enabled" | "disabled";
698
+ targetSizeMb?: "64" | "128" | "256" | "512";
699
+ };
700
+ /** Body param: Updates snapshot expiration configuration (all fields optional). */
701
+ snapshotExpiration?: {
702
+ maxSnapshotAge?: string;
703
+ minSnapshotsToKeep?: number;
704
+ state?: "enabled" | "disabled";
705
+ };
706
+ }
707
+
708
+ export const UpdateNamespaceTableMaintenanceConfigRequest =
709
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
710
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
711
+ namespace: Schema.String.pipe(T.HttpPath("namespace")),
712
+ tableName: Schema.String.pipe(T.HttpPath("tableName")),
713
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
714
+ compaction: Schema.optional(
715
+ Schema.Struct({
716
+ state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
717
+ targetSizeMb: Schema.optional(
718
+ Schema.Literals(["64", "128", "256", "512"]),
719
+ ),
720
+ }).pipe(
721
+ Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
722
+ ),
723
+ ),
724
+ snapshotExpiration: Schema.optional(
725
+ Schema.Struct({
726
+ maxSnapshotAge: Schema.optional(Schema.String),
727
+ minSnapshotsToKeep: Schema.optional(Schema.Number),
728
+ state: Schema.optional(Schema.Literals(["enabled", "disabled"])),
729
+ }).pipe(
730
+ Schema.encodeKeys({
731
+ maxSnapshotAge: "max_snapshot_age",
732
+ minSnapshotsToKeep: "min_snapshots_to_keep",
733
+ state: "state",
734
+ }),
735
+ ),
736
+ ),
737
+ }).pipe(
738
+ Schema.encodeKeys({
739
+ compaction: "compaction",
740
+ snapshotExpiration: "snapshot_expiration",
741
+ }),
742
+ T.Http({
743
+ method: "POST",
744
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/namespaces/{namespace}/tables/{tableName}/maintenance-configs",
745
+ }),
746
+ ) as unknown as Schema.Schema<UpdateNamespaceTableMaintenanceConfigRequest>;
747
+
748
+ export interface UpdateNamespaceTableMaintenanceConfigResponse {
749
+ /** Configures compaction settings for table optimization. */
750
+ compaction?: {
751
+ state: "enabled" | "disabled";
752
+ targetSizeMb: "64" | "128" | "256" | "512";
753
+ } | null;
754
+ /** Configures snapshot expiration settings. */
755
+ snapshotExpiration?: {
756
+ maxSnapshotAge: string;
757
+ minSnapshotsToKeep: number;
758
+ state: "enabled" | "disabled";
759
+ } | null;
760
+ }
761
+
762
+ export const UpdateNamespaceTableMaintenanceConfigResponse =
763
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
764
+ compaction: Schema.optional(
765
+ Schema.Union([
766
+ Schema.Struct({
767
+ state: Schema.Literals(["enabled", "disabled"]),
768
+ targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
769
+ }).pipe(
770
+ Schema.encodeKeys({ state: "state", targetSizeMb: "target_size_mb" }),
771
+ ),
772
+ Schema.Null,
773
+ ]),
774
+ ),
775
+ snapshotExpiration: Schema.optional(
776
+ Schema.Union([
777
+ Schema.Struct({
778
+ maxSnapshotAge: Schema.String,
779
+ minSnapshotsToKeep: Schema.Number,
780
+ state: Schema.Literals(["enabled", "disabled"]),
781
+ }).pipe(
782
+ Schema.encodeKeys({
783
+ maxSnapshotAge: "max_snapshot_age",
784
+ minSnapshotsToKeep: "min_snapshots_to_keep",
785
+ state: "state",
786
+ }),
787
+ ),
788
+ Schema.Null,
789
+ ]),
790
+ ),
791
+ })
792
+ .pipe(
793
+ Schema.encodeKeys({
794
+ compaction: "compaction",
795
+ snapshotExpiration: "snapshot_expiration",
796
+ }),
797
+ )
798
+ .pipe(
799
+ T.ResponsePath("result"),
800
+ ) as unknown as Schema.Schema<UpdateNamespaceTableMaintenanceConfigResponse>;
801
+
802
+ export type UpdateNamespaceTableMaintenanceConfigError =
803
+ | DefaultErrors
804
+ | TableNotFound
805
+ | InvalidRoute
806
+ | WarehouseInactive;
807
+
808
+ export const updateNamespaceTableMaintenanceConfig: API.OperationMethod<
809
+ UpdateNamespaceTableMaintenanceConfigRequest,
810
+ UpdateNamespaceTableMaintenanceConfigResponse,
811
+ UpdateNamespaceTableMaintenanceConfigError,
812
+ Credentials | HttpClient.HttpClient
813
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
814
+ input: UpdateNamespaceTableMaintenanceConfigRequest,
815
+ output: UpdateNamespaceTableMaintenanceConfigResponse,
816
+ errors: [TableNotFound, InvalidRoute, WarehouseInactive],
817
+ }));
818
+
819
+ // =============================================================================
820
+ // R2DataCatalog
821
+ // =============================================================================
822
+
823
+ export interface GetR2DataCatalogRequest {
824
+ bucketName: string;
825
+ /** Use this to identify the account. */
826
+ accountId: string;
827
+ }
828
+
829
+ export const GetR2DataCatalogRequest =
830
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
831
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
832
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
833
+ }).pipe(
834
+ T.Http({
835
+ method: "GET",
836
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}",
837
+ }),
838
+ ) as unknown as Schema.Schema<GetR2DataCatalogRequest>;
839
+
840
+ export interface GetR2DataCatalogResponse {
841
+ /** Use this to uniquely identify the catalog. */
842
+ id: string;
843
+ /** Specifies the associated R2 bucket name. */
844
+ bucket: string;
845
+ /** Specifies the catalog name (generated from account and bucket name). */
846
+ name: string;
847
+ /** Indicates the status of the catalog. */
848
+ status: "active" | "inactive";
849
+ /** Shows the credential configuration status. */
850
+ credentialStatus?: "present" | "absent" | null;
851
+ /** Configures maintenance for the catalog. */
852
+ maintenanceConfig?: {
853
+ compaction?: {
854
+ state: "enabled" | "disabled";
855
+ targetSizeMb: "64" | "128" | "256" | "512";
856
+ } | null;
857
+ snapshotExpiration?: {
858
+ maxSnapshotAge: string;
859
+ minSnapshotsToKeep: number;
860
+ state: "enabled" | "disabled";
861
+ } | null;
862
+ } | null;
863
+ }
864
+
865
+ export const GetR2DataCatalogResponse =
866
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
867
+ id: Schema.String,
868
+ bucket: Schema.String,
869
+ name: Schema.String,
870
+ status: Schema.Literals(["active", "inactive"]),
871
+ credentialStatus: Schema.optional(
872
+ Schema.Union([
873
+ Schema.Literal("present"),
874
+ Schema.Literal("absent"),
875
+ Schema.Null,
876
+ ]),
877
+ ),
878
+ maintenanceConfig: Schema.optional(
879
+ Schema.Union([
880
+ Schema.Struct({
881
+ compaction: Schema.optional(
882
+ Schema.Union([
883
+ Schema.Struct({
884
+ state: Schema.Literals(["enabled", "disabled"]),
885
+ targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
886
+ }).pipe(
887
+ Schema.encodeKeys({
888
+ state: "state",
889
+ targetSizeMb: "target_size_mb",
890
+ }),
891
+ ),
892
+ Schema.Null,
893
+ ]),
894
+ ),
895
+ snapshotExpiration: Schema.optional(
896
+ Schema.Union([
897
+ Schema.Struct({
898
+ maxSnapshotAge: Schema.String,
899
+ minSnapshotsToKeep: Schema.Number,
900
+ state: Schema.Literals(["enabled", "disabled"]),
901
+ }).pipe(
902
+ Schema.encodeKeys({
903
+ maxSnapshotAge: "max_snapshot_age",
904
+ minSnapshotsToKeep: "min_snapshots_to_keep",
905
+ state: "state",
906
+ }),
907
+ ),
908
+ Schema.Null,
909
+ ]),
910
+ ),
911
+ }).pipe(
912
+ Schema.encodeKeys({
913
+ compaction: "compaction",
914
+ snapshotExpiration: "snapshot_expiration",
915
+ }),
916
+ ),
917
+ Schema.Null,
918
+ ]),
919
+ ),
920
+ })
921
+ .pipe(
922
+ Schema.encodeKeys({
923
+ id: "id",
924
+ bucket: "bucket",
925
+ name: "name",
926
+ status: "status",
927
+ credentialStatus: "credential_status",
928
+ maintenanceConfig: "maintenance_config",
929
+ }),
930
+ )
931
+ .pipe(
932
+ T.ResponsePath("result"),
933
+ ) as unknown as Schema.Schema<GetR2DataCatalogResponse>;
934
+
935
+ export type GetR2DataCatalogError = DefaultErrors | NoSuchBucket | InvalidRoute;
936
+
937
+ export const getR2DataCatalog: API.OperationMethod<
938
+ GetR2DataCatalogRequest,
939
+ GetR2DataCatalogResponse,
940
+ GetR2DataCatalogError,
941
+ Credentials | HttpClient.HttpClient
942
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
943
+ input: GetR2DataCatalogRequest,
944
+ output: GetR2DataCatalogResponse,
945
+ errors: [NoSuchBucket, InvalidRoute],
946
+ }));
947
+
948
+ export interface ListR2DataCatalogsRequest {
949
+ /** Use this to identify the account. */
950
+ accountId: string;
951
+ }
952
+
953
+ export const ListR2DataCatalogsRequest =
954
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
955
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
956
+ }).pipe(
957
+ T.Http({ method: "GET", path: "/accounts/{account_id}/r2-catalog" }),
958
+ ) as unknown as Schema.Schema<ListR2DataCatalogsRequest>;
959
+
960
+ export interface ListR2DataCatalogsResponse {
961
+ /** Lists catalogs in the account. */
962
+ warehouses: {
963
+ id: string;
964
+ bucket: string;
965
+ name: string;
966
+ status: "active" | "inactive";
967
+ credentialStatus?: "present" | "absent" | null;
968
+ maintenanceConfig?: {
969
+ compaction?: {
970
+ state: "enabled" | "disabled";
971
+ targetSizeMb: "64" | "128" | "256" | "512";
972
+ } | null;
973
+ snapshotExpiration?: {
974
+ maxSnapshotAge: string;
975
+ minSnapshotsToKeep: number;
976
+ state: "enabled" | "disabled";
977
+ } | null;
978
+ } | null;
979
+ }[];
980
+ }
981
+
982
+ export const ListR2DataCatalogsResponse =
983
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
984
+ warehouses: Schema.Array(
985
+ Schema.Struct({
986
+ id: Schema.String,
987
+ bucket: Schema.String,
988
+ name: Schema.String,
989
+ status: Schema.Literals(["active", "inactive"]),
990
+ credentialStatus: Schema.optional(
991
+ Schema.Union([
992
+ Schema.Literal("present"),
993
+ Schema.Literal("absent"),
994
+ Schema.Null,
995
+ ]),
996
+ ),
997
+ maintenanceConfig: Schema.optional(
998
+ Schema.Union([
999
+ Schema.Struct({
1000
+ compaction: Schema.optional(
1001
+ Schema.Union([
1002
+ Schema.Struct({
1003
+ state: Schema.Literals(["enabled", "disabled"]),
1004
+ targetSizeMb: Schema.Literals(["64", "128", "256", "512"]),
1005
+ }).pipe(
1006
+ Schema.encodeKeys({
1007
+ state: "state",
1008
+ targetSizeMb: "target_size_mb",
1009
+ }),
1010
+ ),
1011
+ Schema.Null,
1012
+ ]),
1013
+ ),
1014
+ snapshotExpiration: Schema.optional(
1015
+ Schema.Union([
1016
+ Schema.Struct({
1017
+ maxSnapshotAge: Schema.String,
1018
+ minSnapshotsToKeep: Schema.Number,
1019
+ state: Schema.Literals(["enabled", "disabled"]),
1020
+ }).pipe(
1021
+ Schema.encodeKeys({
1022
+ maxSnapshotAge: "max_snapshot_age",
1023
+ minSnapshotsToKeep: "min_snapshots_to_keep",
1024
+ state: "state",
1025
+ }),
1026
+ ),
1027
+ Schema.Null,
1028
+ ]),
1029
+ ),
1030
+ }).pipe(
1031
+ Schema.encodeKeys({
1032
+ compaction: "compaction",
1033
+ snapshotExpiration: "snapshot_expiration",
1034
+ }),
1035
+ ),
1036
+ Schema.Null,
1037
+ ]),
1038
+ ),
1039
+ }).pipe(
1040
+ Schema.encodeKeys({
1041
+ id: "id",
1042
+ bucket: "bucket",
1043
+ name: "name",
1044
+ status: "status",
1045
+ credentialStatus: "credential_status",
1046
+ maintenanceConfig: "maintenance_config",
1047
+ }),
1048
+ ),
1049
+ ),
1050
+ }).pipe(
1051
+ T.ResponsePath("result"),
1052
+ ) as unknown as Schema.Schema<ListR2DataCatalogsResponse>;
1053
+
1054
+ export type ListR2DataCatalogsError = DefaultErrors | InvalidRoute;
1055
+
1056
+ export const listR2DataCatalogs: API.OperationMethod<
1057
+ ListR2DataCatalogsRequest,
1058
+ ListR2DataCatalogsResponse,
1059
+ ListR2DataCatalogsError,
1060
+ Credentials | HttpClient.HttpClient
1061
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1062
+ input: ListR2DataCatalogsRequest,
1063
+ output: ListR2DataCatalogsResponse,
1064
+ errors: [InvalidRoute],
1065
+ }));
1066
+
1067
+ export interface EnableR2DataCatalogRequest {
1068
+ bucketName: string;
1069
+ /** Use this to identify the account. */
1070
+ accountId: string;
1071
+ }
1072
+
1073
+ export const EnableR2DataCatalogRequest =
1074
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1075
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
1076
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1077
+ }).pipe(
1078
+ T.Http({
1079
+ method: "POST",
1080
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/enable",
1081
+ }),
1082
+ ) as unknown as Schema.Schema<EnableR2DataCatalogRequest>;
1083
+
1084
+ export interface EnableR2DataCatalogResponse {
1085
+ /** Use this to uniquely identify the activated catalog. */
1086
+ id?: string | null;
1087
+ /** Specifies the name of the activated catalog. */
1088
+ name: string;
1089
+ }
1090
+
1091
+ export const EnableR2DataCatalogResponse =
1092
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1093
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1094
+ name: Schema.String,
1095
+ }).pipe(
1096
+ T.ResponsePath("result"),
1097
+ ) as unknown as Schema.Schema<EnableR2DataCatalogResponse>;
1098
+
1099
+ export type EnableR2DataCatalogError =
1100
+ | DefaultErrors
1101
+ | NoSuchBucket
1102
+ | InvalidRoute;
1103
+
1104
+ export const enableR2DataCatalog: API.OperationMethod<
1105
+ EnableR2DataCatalogRequest,
1106
+ EnableR2DataCatalogResponse,
1107
+ EnableR2DataCatalogError,
1108
+ Credentials | HttpClient.HttpClient
1109
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1110
+ input: EnableR2DataCatalogRequest,
1111
+ output: EnableR2DataCatalogResponse,
1112
+ errors: [NoSuchBucket, InvalidRoute],
1113
+ }));
1114
+
1115
+ export interface DisableR2DataCatalogRequest {
1116
+ bucketName: string;
1117
+ /** Use this to identify the account. */
1118
+ accountId: string;
1119
+ }
1120
+
1121
+ export const DisableR2DataCatalogRequest =
1122
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1123
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
1124
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1125
+ }).pipe(
1126
+ T.Http({
1127
+ method: "POST",
1128
+ path: "/accounts/{account_id}/r2-catalog/{bucketName}/disable",
1129
+ }),
1130
+ ) as unknown as Schema.Schema<DisableR2DataCatalogRequest>;
1131
+
1132
+ export type DisableR2DataCatalogResponse = unknown;
1133
+
1134
+ export const DisableR2DataCatalogResponse =
1135
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DisableR2DataCatalogResponse>;
1136
+
1137
+ export type DisableR2DataCatalogError =
1138
+ | DefaultErrors
1139
+ | NoSuchBucket
1140
+ | InvalidRoute;
1141
+
1142
+ export const disableR2DataCatalog: API.OperationMethod<
1143
+ DisableR2DataCatalogRequest,
1144
+ DisableR2DataCatalogResponse,
1145
+ DisableR2DataCatalogError,
1146
+ Credentials | HttpClient.HttpClient
1147
+ > = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
1148
+ input: DisableR2DataCatalogRequest,
1149
+ output: DisableR2DataCatalogResponse,
1150
+ errors: [NoSuchBucket, InvalidRoute],
1151
+ }));