@distilled.cloud/cloudflare 0.0.0 → 0.2.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 (560) hide show
  1. package/lib/auth.d.ts +13 -0
  2. package/lib/auth.d.ts.map +1 -0
  3. package/lib/auth.js +12 -0
  4. package/lib/auth.js.map +1 -0
  5. package/lib/category.d.ts +2 -0
  6. package/lib/category.d.ts.map +1 -0
  7. package/lib/category.js +2 -0
  8. package/lib/category.js.map +1 -0
  9. package/lib/client/api.d.ts +14 -0
  10. package/lib/client/api.d.ts.map +1 -0
  11. package/lib/client/api.js +197 -0
  12. package/lib/client/api.js.map +1 -0
  13. package/lib/client/index.d.ts +8 -0
  14. package/lib/client/index.d.ts.map +1 -0
  15. package/lib/client/index.js +8 -0
  16. package/lib/client/index.js.map +1 -0
  17. package/lib/credentials.d.ts +14 -0
  18. package/lib/credentials.d.ts.map +1 -0
  19. package/lib/credentials.js +17 -0
  20. package/lib/credentials.js.map +1 -0
  21. package/lib/errors.d.ts +48 -0
  22. package/lib/errors.d.ts.map +1 -0
  23. package/lib/errors.js +38 -0
  24. package/lib/errors.js.map +1 -0
  25. package/lib/index.d.ts +10 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.js +10 -0
  28. package/lib/index.js.map +1 -0
  29. package/lib/retry.d.ts +14 -0
  30. package/lib/retry.d.ts.map +1 -0
  31. package/lib/retry.js +14 -0
  32. package/lib/retry.js.map +1 -0
  33. package/lib/schemas.d.ts +29 -0
  34. package/lib/schemas.d.ts.map +1 -0
  35. package/lib/schemas.js +34 -0
  36. package/lib/schemas.js.map +1 -0
  37. package/lib/services/abuse-reports.d.ts +224 -0
  38. package/lib/services/abuse-reports.d.ts.map +1 -0
  39. package/lib/services/abuse-reports.js +353 -0
  40. package/lib/services/abuse-reports.js.map +1 -0
  41. package/lib/services/accounts.d.ts +682 -0
  42. package/lib/services/accounts.d.ts.map +1 -0
  43. package/lib/services/accounts.js +805 -0
  44. package/lib/services/accounts.js.map +1 -0
  45. package/lib/services/acm.d.ts +73 -0
  46. package/lib/services/acm.d.ts.map +1 -0
  47. package/lib/services/acm.js +76 -0
  48. package/lib/services/acm.js.map +1 -0
  49. package/lib/services/addressing.d.ts +1208 -0
  50. package/lib/services/addressing.d.ts.map +1 -0
  51. package/lib/services/addressing.js +1776 -0
  52. package/lib/services/addressing.js.map +1 -0
  53. package/lib/services/ai-gateway.d.ts +956 -0
  54. package/lib/services/ai-gateway.d.ts.map +1 -0
  55. package/lib/services/ai-gateway.js +1706 -0
  56. package/lib/services/ai-gateway.js.map +1 -0
  57. package/lib/services/ai.d.ts +243 -0
  58. package/lib/services/ai.d.ts.map +1 -0
  59. package/lib/services/ai.js +299 -0
  60. package/lib/services/ai.js.map +1 -0
  61. package/lib/services/aisearch.d.ts +915 -0
  62. package/lib/services/aisearch.d.ts.map +1 -0
  63. package/lib/services/aisearch.js +2425 -0
  64. package/lib/services/aisearch.js.map +1 -0
  65. package/lib/services/alerting.d.ts +718 -0
  66. package/lib/services/alerting.d.ts.map +1 -0
  67. package/lib/services/alerting.js +1388 -0
  68. package/lib/services/alerting.js.map +1 -0
  69. package/lib/services/api-gateway.d.ts +830 -0
  70. package/lib/services/api-gateway.d.ts.map +1 -0
  71. package/lib/services/api-gateway.js +1548 -0
  72. package/lib/services/api-gateway.js.map +1 -0
  73. package/lib/services/argo.d.ts +101 -0
  74. package/lib/services/argo.d.ts.map +1 -0
  75. package/lib/services/argo.js +105 -0
  76. package/lib/services/argo.js.map +1 -0
  77. package/lib/services/audit-logs.d.ts +46 -0
  78. package/lib/services/audit-logs.d.ts.map +1 -0
  79. package/lib/services/audit-logs.js +37 -0
  80. package/lib/services/audit-logs.js.map +1 -0
  81. package/lib/services/billing.d.ts +62 -0
  82. package/lib/services/billing.d.ts.map +1 -0
  83. package/lib/services/billing.js +100 -0
  84. package/lib/services/billing.js.map +1 -0
  85. package/lib/services/bot-management.d.ts +124 -0
  86. package/lib/services/bot-management.d.ts.map +1 -0
  87. package/lib/services/bot-management.js +262 -0
  88. package/lib/services/bot-management.js.map +1 -0
  89. package/lib/services/botnet-feed.d.ts +65 -0
  90. package/lib/services/botnet-feed.d.ts.map +1 -0
  91. package/lib/services/botnet-feed.js +84 -0
  92. package/lib/services/botnet-feed.js.map +1 -0
  93. package/lib/services/brand-protection.d.ts +188 -0
  94. package/lib/services/brand-protection.d.ts.map +1 -0
  95. package/lib/services/brand-protection.js +214 -0
  96. package/lib/services/brand-protection.js.map +1 -0
  97. package/lib/services/browser-rendering.d.ts +857 -0
  98. package/lib/services/browser-rendering.d.ts.map +1 -0
  99. package/lib/services/browser-rendering.js +1141 -0
  100. package/lib/services/browser-rendering.js.map +1 -0
  101. package/lib/services/cache.d.ts +287 -0
  102. package/lib/services/cache.d.ts.map +1 -0
  103. package/lib/services/cache.js +330 -0
  104. package/lib/services/cache.js.map +1 -0
  105. package/lib/services/calls.d.ts +202 -0
  106. package/lib/services/calls.d.ts.map +1 -0
  107. package/lib/services/calls.js +175 -0
  108. package/lib/services/calls.js.map +1 -0
  109. package/lib/services/certificate-authorities.d.ts +40 -0
  110. package/lib/services/certificate-authorities.d.ts.map +1 -0
  111. package/lib/services/certificate-authorities.js +49 -0
  112. package/lib/services/certificate-authorities.js.map +1 -0
  113. package/lib/services/client-certificates.d.ts +254 -0
  114. package/lib/services/client-certificates.d.ts.map +1 -0
  115. package/lib/services/client-certificates.js +350 -0
  116. package/lib/services/client-certificates.js.map +1 -0
  117. package/lib/services/cloud-connector.d.ts +59 -0
  118. package/lib/services/cloud-connector.d.ts.map +1 -0
  119. package/lib/services/cloud-connector.js +84 -0
  120. package/lib/services/cloud-connector.js.map +1 -0
  121. package/lib/services/cloudforce-one.d.ts +1318 -0
  122. package/lib/services/cloudforce-one.d.ts.map +1 -0
  123. package/lib/services/cloudforce-one.js +1684 -0
  124. package/lib/services/cloudforce-one.js.map +1 -0
  125. package/lib/services/connectivity.d.ts +248 -0
  126. package/lib/services/connectivity.d.ts.map +1 -0
  127. package/lib/services/connectivity.js +377 -0
  128. package/lib/services/connectivity.js.map +1 -0
  129. package/lib/services/content-scanning.d.ts +131 -0
  130. package/lib/services/content-scanning.d.ts.map +1 -0
  131. package/lib/services/content-scanning.js +156 -0
  132. package/lib/services/content-scanning.js.map +1 -0
  133. package/lib/services/custom-certificates.d.ts +211 -0
  134. package/lib/services/custom-certificates.d.ts.map +1 -0
  135. package/lib/services/custom-certificates.js +309 -0
  136. package/lib/services/custom-certificates.js.map +1 -0
  137. package/lib/services/custom-hostnames.d.ts +525 -0
  138. package/lib/services/custom-hostnames.d.ts.map +1 -0
  139. package/lib/services/custom-hostnames.js +1164 -0
  140. package/lib/services/custom-hostnames.js.map +1 -0
  141. package/lib/services/custom-nameservers.d.ts +67 -0
  142. package/lib/services/custom-nameservers.d.ts.map +1 -0
  143. package/lib/services/custom-nameservers.js +80 -0
  144. package/lib/services/custom-nameservers.js.map +1 -0
  145. package/lib/services/custom-pages.d.ts +74 -0
  146. package/lib/services/custom-pages.d.ts.map +1 -0
  147. package/lib/services/custom-pages.js +125 -0
  148. package/lib/services/custom-pages.js.map +1 -0
  149. package/lib/services/d1.d.ts +326 -0
  150. package/lib/services/d1.d.ts.map +1 -0
  151. package/lib/services/d1.js +448 -0
  152. package/lib/services/d1.js.map +1 -0
  153. package/lib/services/dcv-delegation.d.ts +24 -0
  154. package/lib/services/dcv-delegation.d.ts.map +1 -0
  155. package/lib/services/dcv-delegation.js +24 -0
  156. package/lib/services/dcv-delegation.js.map +1 -0
  157. package/lib/services/diagnostics.d.ts +175 -0
  158. package/lib/services/diagnostics.d.ts.map +1 -0
  159. package/lib/services/diagnostics.js +273 -0
  160. package/lib/services/diagnostics.js.map +1 -0
  161. package/lib/services/dns-firewall.d.ts +288 -0
  162. package/lib/services/dns-firewall.d.ts.map +1 -0
  163. package/lib/services/dns-firewall.js +373 -0
  164. package/lib/services/dns-firewall.js.map +1 -0
  165. package/lib/services/dns.d.ts +2946 -0
  166. package/lib/services/dns.d.ts.map +1 -0
  167. package/lib/services/dns.js +4511 -0
  168. package/lib/services/dns.js.map +1 -0
  169. package/lib/services/durable-objects.d.ts +61 -0
  170. package/lib/services/durable-objects.d.ts.map +1 -0
  171. package/lib/services/durable-objects.js +66 -0
  172. package/lib/services/durable-objects.js.map +1 -0
  173. package/lib/services/email-routing.d.ts +542 -0
  174. package/lib/services/email-routing.d.ts.map +1 -0
  175. package/lib/services/email-routing.js +662 -0
  176. package/lib/services/email-routing.js.map +1 -0
  177. package/lib/services/email-security.d.ts +1131 -0
  178. package/lib/services/email-security.d.ts.map +1 -0
  179. package/lib/services/email-security.js +2065 -0
  180. package/lib/services/email-security.js.map +1 -0
  181. package/lib/services/filters.d.ts +157 -0
  182. package/lib/services/filters.d.ts.map +1 -0
  183. package/lib/services/filters.js +135 -0
  184. package/lib/services/filters.js.map +1 -0
  185. package/lib/services/firewall.d.ts +1080 -0
  186. package/lib/services/firewall.d.ts.map +1 -0
  187. package/lib/services/firewall.js +1881 -0
  188. package/lib/services/firewall.js.map +1 -0
  189. package/lib/services/healthchecks.d.ts +464 -0
  190. package/lib/services/healthchecks.d.ts.map +1 -0
  191. package/lib/services/healthchecks.js +838 -0
  192. package/lib/services/healthchecks.js.map +1 -0
  193. package/lib/services/hostnames.d.ts +74 -0
  194. package/lib/services/hostnames.d.ts.map +1 -0
  195. package/lib/services/hostnames.js +100 -0
  196. package/lib/services/hostnames.js.map +1 -0
  197. package/lib/services/hyperdrive.d.ts +203 -0
  198. package/lib/services/hyperdrive.d.ts.map +1 -0
  199. package/lib/services/hyperdrive.js +299 -0
  200. package/lib/services/hyperdrive.js.map +1 -0
  201. package/lib/services/iam.d.ts +554 -0
  202. package/lib/services/iam.d.ts.map +1 -0
  203. package/lib/services/iam.js +743 -0
  204. package/lib/services/iam.js.map +1 -0
  205. package/lib/services/images.d.ts +403 -0
  206. package/lib/services/images.d.ts.map +1 -0
  207. package/lib/services/images.js +417 -0
  208. package/lib/services/images.js.map +1 -0
  209. package/lib/services/intel.d.ts +768 -0
  210. package/lib/services/intel.d.ts.map +1 -0
  211. package/lib/services/intel.js +1179 -0
  212. package/lib/services/intel.js.map +1 -0
  213. package/lib/services/ips.d.ts +28 -0
  214. package/lib/services/ips.d.ts.map +1 -0
  215. package/lib/services/ips.js +39 -0
  216. package/lib/services/ips.js.map +1 -0
  217. package/lib/services/keyless-certificates.d.ts +177 -0
  218. package/lib/services/keyless-certificates.d.ts.map +1 -0
  219. package/lib/services/keyless-certificates.js +216 -0
  220. package/lib/services/keyless-certificates.js.map +1 -0
  221. package/lib/services/kv.d.ts +339 -0
  222. package/lib/services/kv.d.ts.map +1 -0
  223. package/lib/services/kv.js +402 -0
  224. package/lib/services/kv.js.map +1 -0
  225. package/lib/services/leaked-credential-checks.d.ts +119 -0
  226. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  227. package/lib/services/leaked-credential-checks.js +130 -0
  228. package/lib/services/leaked-credential-checks.js.map +1 -0
  229. package/lib/services/load-balancers.d.ts +1767 -0
  230. package/lib/services/load-balancers.d.ts.map +1 -0
  231. package/lib/services/load-balancers.js +3068 -0
  232. package/lib/services/load-balancers.js.map +1 -0
  233. package/lib/services/logpush.d.ts +401 -0
  234. package/lib/services/logpush.d.ts.map +1 -0
  235. package/lib/services/logpush.js +724 -0
  236. package/lib/services/logpush.js.map +1 -0
  237. package/lib/services/logs.d.ts +125 -0
  238. package/lib/services/logs.d.ts.map +1 -0
  239. package/lib/services/logs.js +145 -0
  240. package/lib/services/logs.js.map +1 -0
  241. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  242. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  243. package/lib/services/magic-cloud-networking.js +5205 -0
  244. package/lib/services/magic-cloud-networking.js.map +1 -0
  245. package/lib/services/magic-network-monitoring.d.ts +379 -0
  246. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  247. package/lib/services/magic-network-monitoring.js +535 -0
  248. package/lib/services/magic-network-monitoring.js.map +1 -0
  249. package/lib/services/magic-transit.d.ts +3650 -0
  250. package/lib/services/magic-transit.d.ts.map +1 -0
  251. package/lib/services/magic-transit.js +6120 -0
  252. package/lib/services/magic-transit.js.map +1 -0
  253. package/lib/services/managed-transforms.d.ts +79 -0
  254. package/lib/services/managed-transforms.d.ts.map +1 -0
  255. package/lib/services/managed-transforms.js +107 -0
  256. package/lib/services/managed-transforms.js.map +1 -0
  257. package/lib/services/memberships.d.ts +172 -0
  258. package/lib/services/memberships.d.ts.map +1 -0
  259. package/lib/services/memberships.js +282 -0
  260. package/lib/services/memberships.js.map +1 -0
  261. package/lib/services/mtls-certificates.d.ts +140 -0
  262. package/lib/services/mtls-certificates.d.ts.map +1 -0
  263. package/lib/services/mtls-certificates.js +173 -0
  264. package/lib/services/mtls-certificates.js.map +1 -0
  265. package/lib/services/network-interconnects.d.ts +410 -0
  266. package/lib/services/network-interconnects.d.ts.map +1 -0
  267. package/lib/services/network-interconnects.js +583 -0
  268. package/lib/services/network-interconnects.js.map +1 -0
  269. package/lib/services/organizations.d.ts +201 -0
  270. package/lib/services/organizations.d.ts.map +1 -0
  271. package/lib/services/organizations.js +355 -0
  272. package/lib/services/organizations.js.map +1 -0
  273. package/lib/services/origin-ca-certificates.d.ts +99 -0
  274. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  275. package/lib/services/origin-ca-certificates.js +156 -0
  276. package/lib/services/origin-ca-certificates.js.map +1 -0
  277. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  279. package/lib/services/origin-post-quantum-encryption.js +60 -0
  280. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  281. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  282. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  283. package/lib/services/origin-tls-client-auth.js +401 -0
  284. package/lib/services/origin-tls-client-auth.js.map +1 -0
  285. package/lib/services/page-rules.d.ts +773 -0
  286. package/lib/services/page-rules.d.ts.map +1 -0
  287. package/lib/services/page-rules.js +1365 -0
  288. package/lib/services/page-rules.js.map +1 -0
  289. package/lib/services/page-shield.d.ts +426 -0
  290. package/lib/services/page-shield.d.ts.map +1 -0
  291. package/lib/services/page-shield.js +484 -0
  292. package/lib/services/page-shield.js.map +1 -0
  293. package/lib/services/pages.d.ts +1654 -0
  294. package/lib/services/pages.d.ts.map +1 -0
  295. package/lib/services/pages.js +2954 -0
  296. package/lib/services/pages.js.map +1 -0
  297. package/lib/services/pipelines.d.ts +1461 -0
  298. package/lib/services/pipelines.d.ts.map +1 -0
  299. package/lib/services/pipelines.js +2912 -0
  300. package/lib/services/pipelines.js.map +1 -0
  301. package/lib/services/queues.d.ts +807 -0
  302. package/lib/services/queues.d.ts.map +1 -0
  303. package/lib/services/queues.js +1194 -0
  304. package/lib/services/queues.js.map +1 -0
  305. package/lib/services/r2-data-catalog.d.ts +341 -0
  306. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  307. package/lib/services/r2-data-catalog.js +499 -0
  308. package/lib/services/r2-data-catalog.js.map +1 -0
  309. package/lib/services/r2.d.ts +1041 -0
  310. package/lib/services/r2.d.ts.map +1 -0
  311. package/lib/services/r2.js +1384 -0
  312. package/lib/services/r2.js.map +1 -0
  313. package/lib/services/radar.d.ts +9276 -0
  314. package/lib/services/radar.d.ts.map +1 -0
  315. package/lib/services/radar.js +20491 -0
  316. package/lib/services/radar.js.map +1 -0
  317. package/lib/services/rate-limits.d.ts +315 -0
  318. package/lib/services/rate-limits.d.ts.map +1 -0
  319. package/lib/services/rate-limits.js +521 -0
  320. package/lib/services/rate-limits.js.map +1 -0
  321. package/lib/services/realtime-kit.d.ts +2728 -0
  322. package/lib/services/realtime-kit.d.ts.map +1 -0
  323. package/lib/services/realtime-kit.js +5401 -0
  324. package/lib/services/realtime-kit.js.map +1 -0
  325. package/lib/services/registrar.d.ts +81 -0
  326. package/lib/services/registrar.d.ts.map +1 -0
  327. package/lib/services/registrar.js +154 -0
  328. package/lib/services/registrar.js.map +1 -0
  329. package/lib/services/request-tracers.d.ts +61 -0
  330. package/lib/services/request-tracers.d.ts.map +1 -0
  331. package/lib/services/request-tracers.js +82 -0
  332. package/lib/services/request-tracers.js.map +1 -0
  333. package/lib/services/resource-sharing.d.ts +540 -0
  334. package/lib/services/resource-sharing.d.ts.map +1 -0
  335. package/lib/services/resource-sharing.js +846 -0
  336. package/lib/services/resource-sharing.js.map +1 -0
  337. package/lib/services/rules.d.ts +297 -0
  338. package/lib/services/rules.d.ts.map +1 -0
  339. package/lib/services/rules.js +396 -0
  340. package/lib/services/rules.js.map +1 -0
  341. package/lib/services/rulesets.d.ts +3300 -0
  342. package/lib/services/rulesets.d.ts.map +1 -0
  343. package/lib/services/rulesets.js +7852 -0
  344. package/lib/services/rulesets.js.map +1 -0
  345. package/lib/services/rum.d.ts +289 -0
  346. package/lib/services/rum.d.ts.map +1 -0
  347. package/lib/services/rum.js +409 -0
  348. package/lib/services/rum.js.map +1 -0
  349. package/lib/services/schema-validation.d.ts +240 -0
  350. package/lib/services/schema-validation.d.ts.map +1 -0
  351. package/lib/services/schema-validation.js +306 -0
  352. package/lib/services/schema-validation.js.map +1 -0
  353. package/lib/services/secrets-store.d.ts +321 -0
  354. package/lib/services/secrets-store.d.ts.map +1 -0
  355. package/lib/services/secrets-store.js +385 -0
  356. package/lib/services/secrets-store.js.map +1 -0
  357. package/lib/services/security-center.d.ts +102 -0
  358. package/lib/services/security-center.d.ts.map +1 -0
  359. package/lib/services/security-center.js +170 -0
  360. package/lib/services/security-center.js.map +1 -0
  361. package/lib/services/security-txt.d.ts +105 -0
  362. package/lib/services/security-txt.d.ts.map +1 -0
  363. package/lib/services/security-txt.js +136 -0
  364. package/lib/services/security-txt.js.map +1 -0
  365. package/lib/services/snippets.d.ts +138 -0
  366. package/lib/services/snippets.d.ts.map +1 -0
  367. package/lib/services/snippets.js +178 -0
  368. package/lib/services/snippets.js.map +1 -0
  369. package/lib/services/spectrum.d.ts +316 -0
  370. package/lib/services/spectrum.d.ts.map +1 -0
  371. package/lib/services/spectrum.js +510 -0
  372. package/lib/services/spectrum.js.map +1 -0
  373. package/lib/services/speed.d.ts +227 -0
  374. package/lib/services/speed.d.ts.map +1 -0
  375. package/lib/services/speed.js +444 -0
  376. package/lib/services/speed.js.map +1 -0
  377. package/lib/services/ssl.d.ts +370 -0
  378. package/lib/services/ssl.d.ts.map +1 -0
  379. package/lib/services/ssl.js +732 -0
  380. package/lib/services/ssl.js.map +1 -0
  381. package/lib/services/stream.d.ts +1014 -0
  382. package/lib/services/stream.d.ts.map +1 -0
  383. package/lib/services/stream.js +1049 -0
  384. package/lib/services/stream.js.map +1 -0
  385. package/lib/services/token-validation.d.ts +547 -0
  386. package/lib/services/token-validation.d.ts.map +1 -0
  387. package/lib/services/token-validation.js +768 -0
  388. package/lib/services/token-validation.js.map +1 -0
  389. package/lib/services/turnstile.d.ts +248 -0
  390. package/lib/services/turnstile.d.ts.map +1 -0
  391. package/lib/services/turnstile.js +308 -0
  392. package/lib/services/turnstile.js.map +1 -0
  393. package/lib/services/url-normalization.d.ts +53 -0
  394. package/lib/services/url-normalization.d.ts.map +1 -0
  395. package/lib/services/url-normalization.js +52 -0
  396. package/lib/services/url-normalization.js.map +1 -0
  397. package/lib/services/url-scanner.d.ts +612 -0
  398. package/lib/services/url-scanner.d.ts.map +1 -0
  399. package/lib/services/url-scanner.js +915 -0
  400. package/lib/services/url-scanner.js.map +1 -0
  401. package/lib/services/user.d.ts +441 -0
  402. package/lib/services/user.d.ts.map +1 -0
  403. package/lib/services/user.js +567 -0
  404. package/lib/services/user.js.map +1 -0
  405. package/lib/services/vectorize.d.ts +282 -0
  406. package/lib/services/vectorize.d.ts.map +1 -0
  407. package/lib/services/vectorize.js +340 -0
  408. package/lib/services/vectorize.js.map +1 -0
  409. package/lib/services/waiting-rooms.d.ts +1009 -0
  410. package/lib/services/waiting-rooms.d.ts.map +1 -0
  411. package/lib/services/waiting-rooms.js +1757 -0
  412. package/lib/services/waiting-rooms.js.map +1 -0
  413. package/lib/services/web3.d.ts +274 -0
  414. package/lib/services/web3.d.ts.map +1 -0
  415. package/lib/services/web3.js +362 -0
  416. package/lib/services/web3.js.map +1 -0
  417. package/lib/services/workers-for-platforms.d.ts +1224 -0
  418. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  419. package/lib/services/workers-for-platforms.js +2078 -0
  420. package/lib/services/workers-for-platforms.js.map +1 -0
  421. package/lib/services/workers.d.ts +3498 -0
  422. package/lib/services/workers.d.ts.map +1 -0
  423. package/lib/services/workers.js +5967 -0
  424. package/lib/services/workers.js.map +1 -0
  425. package/lib/services/workflows.d.ts +359 -0
  426. package/lib/services/workflows.d.ts.map +1 -0
  427. package/lib/services/workflows.js +516 -0
  428. package/lib/services/workflows.js.map +1 -0
  429. package/lib/services/zaraz.d.ts +300 -0
  430. package/lib/services/zaraz.d.ts.map +1 -0
  431. package/lib/services/zaraz.js +298 -0
  432. package/lib/services/zaraz.js.map +1 -0
  433. package/lib/services/zero-trust.d.ts +15449 -0
  434. package/lib/services/zero-trust.d.ts.map +1 -0
  435. package/lib/services/zero-trust.js +29194 -0
  436. package/lib/services/zero-trust.js.map +1 -0
  437. package/lib/services/zones.d.ts +1278 -0
  438. package/lib/services/zones.d.ts.map +1 -0
  439. package/lib/services/zones.js +2416 -0
  440. package/lib/services/zones.js.map +1 -0
  441. package/lib/traits.d.ts +28 -0
  442. package/lib/traits.d.ts.map +1 -0
  443. package/lib/traits.js +26 -0
  444. package/lib/traits.js.map +1 -0
  445. package/package.json +67 -5
  446. package/src/auth.ts +14 -0
  447. package/src/category.ts +1 -0
  448. package/src/client/api.ts +269 -0
  449. package/src/client/index.ts +7 -0
  450. package/src/credentials.ts +30 -0
  451. package/src/errors.ts +65 -0
  452. package/src/index.ts +9 -0
  453. package/src/retry.ts +35 -0
  454. package/src/schemas.ts +51 -0
  455. package/src/services/abuse-reports.ts +747 -0
  456. package/src/services/accounts.ts +1947 -0
  457. package/src/services/acm.ts +170 -0
  458. package/src/services/addressing.ts +3947 -0
  459. package/src/services/ai-gateway.ts +3335 -0
  460. package/src/services/ai.ts +727 -0
  461. package/src/services/aisearch.ts +4750 -0
  462. package/src/services/alerting.ts +2947 -0
  463. package/src/services/api-gateway.ts +3391 -0
  464. package/src/services/argo.ts +254 -0
  465. package/src/services/audit-logs.ts +90 -0
  466. package/src/services/billing.ts +172 -0
  467. package/src/services/bot-management.ts +541 -0
  468. package/src/services/botnet-feed.ts +193 -0
  469. package/src/services/brand-protection.ts +553 -0
  470. package/src/services/browser-rendering.ts +2707 -0
  471. package/src/services/cache.ts +827 -0
  472. package/src/services/calls.ts +483 -0
  473. package/src/services/certificate-authorities.ts +110 -0
  474. package/src/services/client-certificates.ts +718 -0
  475. package/src/services/cloud-connector.ts +181 -0
  476. package/src/services/cloudforce-one.ts +3876 -0
  477. package/src/services/connectivity.ts +629 -0
  478. package/src/services/content-scanning.ts +385 -0
  479. package/src/services/custom-certificates.ts +611 -0
  480. package/src/services/custom-hostnames.ts +2453 -0
  481. package/src/services/custom-nameservers.ts +182 -0
  482. package/src/services/custom-pages.ts +264 -0
  483. package/src/services/d1.ts +1034 -0
  484. package/src/services/dcv-delegation.ts +52 -0
  485. package/src/services/diagnostics.ts +603 -0
  486. package/src/services/dns-firewall.ts +823 -0
  487. package/src/services/dns.ts +8897 -0
  488. package/src/services/durable-objects.ts +148 -0
  489. package/src/services/email-routing.ts +1602 -0
  490. package/src/services/email-security.ts +4283 -0
  491. package/src/services/filters.ts +370 -0
  492. package/src/services/firewall.ts +3896 -0
  493. package/src/services/healthchecks.ts +1750 -0
  494. package/src/services/hostnames.ts +218 -0
  495. package/src/services/hyperdrive.ts +592 -0
  496. package/src/services/iam.ts +1668 -0
  497. package/src/services/images.ts +1086 -0
  498. package/src/services/intel.ts +2768 -0
  499. package/src/services/ips.ts +88 -0
  500. package/src/services/keyless-certificates.ts +462 -0
  501. package/src/services/kv.ts +1011 -0
  502. package/src/services/leaked-credential-checks.ts +325 -0
  503. package/src/services/load-balancers.ts +6438 -0
  504. package/src/services/logpush.ts +1667 -0
  505. package/src/services/logs.ts +375 -0
  506. package/src/services/magic-cloud-networking.ts +10020 -0
  507. package/src/services/magic-network-monitoring.ts +1156 -0
  508. package/src/services/magic-transit.ts +13050 -0
  509. package/src/services/managed-transforms.ts +237 -0
  510. package/src/services/memberships.ts +615 -0
  511. package/src/services/mtls-certificates.ts +374 -0
  512. package/src/services/network-interconnects.ts +1253 -0
  513. package/src/services/organizations.ts +674 -0
  514. package/src/services/origin-ca-certificates.ts +303 -0
  515. package/src/services/origin-post-quantum-encryption.ts +128 -0
  516. package/src/services/origin-tls-client-auth.ts +878 -0
  517. package/src/services/page-rules.ts +2612 -0
  518. package/src/services/page-shield.ts +1195 -0
  519. package/src/services/pages.ts +5709 -0
  520. package/src/services/pipelines.ts +6000 -0
  521. package/src/services/queues.ts +2629 -0
  522. package/src/services/r2-data-catalog.ts +1119 -0
  523. package/src/services/r2.ts +3348 -0
  524. package/src/services/radar.ts +42152 -0
  525. package/src/services/rate-limits.ts +1150 -0
  526. package/src/services/realtime-kit.ts +11079 -0
  527. package/src/services/registrar.ts +295 -0
  528. package/src/services/request-tracers.ts +158 -0
  529. package/src/services/resource-sharing.ts +1832 -0
  530. package/src/services/rules.ts +837 -0
  531. package/src/services/rulesets.ts +15144 -0
  532. package/src/services/rum.ts +901 -0
  533. package/src/services/schema-validation.ts +733 -0
  534. package/src/services/secrets-store.ts +860 -0
  535. package/src/services/security-center.ts +397 -0
  536. package/src/services/security-txt.ts +315 -0
  537. package/src/services/snippets.ts +420 -0
  538. package/src/services/spectrum.ts +1103 -0
  539. package/src/services/speed.ts +1056 -0
  540. package/src/services/ssl.ts +1587 -0
  541. package/src/services/stream.ts +2756 -0
  542. package/src/services/token-validation.ts +1585 -0
  543. package/src/services/turnstile.ts +643 -0
  544. package/src/services/url-normalization.ts +129 -0
  545. package/src/services/url-scanner.ts +1851 -0
  546. package/src/services/user.ts +1384 -0
  547. package/src/services/vectorize.ts +816 -0
  548. package/src/services/waiting-rooms.ts +3807 -0
  549. package/src/services/web3.ts +834 -0
  550. package/src/services/workers-for-platforms.ts +3859 -0
  551. package/src/services/workers.ts +11637 -0
  552. package/src/services/workflows.ts +1124 -0
  553. package/src/services/zaraz.ts +797 -0
  554. package/src/services/zero-trust.ts +58933 -0
  555. package/src/services/zones.ts +4875 -0
  556. package/src/traits.ts +47 -0
  557. package/README.md +0 -15
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1384 @@
1
+ /**
2
+ * Cloudflare R2 API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service r2
6
+ */
7
+ import * as Schema from "effect/Schema";
8
+ import * as API from "../client/api.js";
9
+ import * as T from "../traits";
10
+ import {} from "../errors";
11
+ // =============================================================================
12
+ // Errors
13
+ // =============================================================================
14
+ export class BucketAlreadyExists extends Schema.TaggedErrorClass()("BucketAlreadyExists", { code: Schema.Number, message: Schema.String }) {
15
+ }
16
+ T.applyErrorMatchers(BucketAlreadyExists, [{ code: 10004 }]);
17
+ export class BucketNotFound extends Schema.TaggedErrorClass()("BucketNotFound", { code: Schema.Number, message: Schema.String }) {
18
+ }
19
+ T.applyErrorMatchers(BucketNotFound, [{ code: 10085 }]);
20
+ export class InvalidBucketName extends Schema.TaggedErrorClass()("InvalidBucketName", { code: Schema.Number, message: Schema.String }) {
21
+ }
22
+ T.applyErrorMatchers(InvalidBucketName, [{ code: 10005 }]);
23
+ export class InvalidRoute extends Schema.TaggedErrorClass()("InvalidRoute", { code: Schema.Number, message: Schema.String }) {
24
+ }
25
+ T.applyErrorMatchers(InvalidRoute, [{ code: 7003 }]);
26
+ export class NoCorsConfiguration extends Schema.TaggedErrorClass()("NoCorsConfiguration", { code: Schema.Number, message: Schema.String }) {
27
+ }
28
+ T.applyErrorMatchers(NoCorsConfiguration, [{ code: 10059 }]);
29
+ export class NoEventNotificationConfig extends Schema.TaggedErrorClass()("NoEventNotificationConfig", { code: Schema.Number, message: Schema.String }) {
30
+ }
31
+ T.applyErrorMatchers(NoEventNotificationConfig, [{ code: 11015 }]);
32
+ export class NoRoute extends Schema.TaggedErrorClass()("NoRoute", {
33
+ code: Schema.Number,
34
+ message: Schema.String,
35
+ }) {
36
+ }
37
+ T.applyErrorMatchers(NoRoute, [{ code: 10015 }]);
38
+ export class NoSuchBucket extends Schema.TaggedErrorClass()("NoSuchBucket", { code: Schema.Number, message: Schema.String }) {
39
+ }
40
+ T.applyErrorMatchers(NoSuchBucket, [{ code: 10006 }]);
41
+ export const AbortAllSuperSlurperJobRequest =
42
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
43
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
44
+ }).pipe(T.Http({
45
+ method: "PUT",
46
+ path: "/accounts/{account_id}/slurper/jobs/abortAll",
47
+ }));
48
+ export const AbortAllSuperSlurperJobResponse =
49
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
50
+ export const abortAllSuperSlurperJob = API.make(() => ({
51
+ input: AbortAllSuperSlurperJobRequest,
52
+ output: AbortAllSuperSlurperJobResponse,
53
+ errors: [],
54
+ }));
55
+ export const GetBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
56
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
57
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
58
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
59
+ }).pipe(T.Http({
60
+ method: "GET",
61
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}",
62
+ }));
63
+ export const GetBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
64
+ creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
65
+ jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
66
+ location: Schema.optional(Schema.Union([
67
+ Schema.Literals([
68
+ "apac",
69
+ "eeur",
70
+ "enam",
71
+ "weur",
72
+ "wnam",
73
+ "oc",
74
+ "APAC",
75
+ "EEUR",
76
+ "ENAM",
77
+ "WEUR",
78
+ "WNAM",
79
+ "OC",
80
+ ]),
81
+ Schema.Null,
82
+ ])),
83
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
84
+ storageClass: Schema.optional(Schema.Union([
85
+ Schema.Literals(["Standard", "InfrequentAccess"]),
86
+ Schema.Null,
87
+ ])),
88
+ }).pipe(Schema.encodeKeys({
89
+ creationDate: "creation_date",
90
+ jurisdiction: "jurisdiction",
91
+ location: "location",
92
+ name: "name",
93
+ storageClass: "storage_class",
94
+ }));
95
+ export const getBucket = API.make(() => ({
96
+ input: GetBucketRequest,
97
+ output: GetBucketResponse,
98
+ errors: [NoSuchBucket, InvalidRoute],
99
+ }));
100
+ export const ListBucketsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
101
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
102
+ cursor: Schema.optional(Schema.String).pipe(T.HttpQuery("cursor")),
103
+ direction: Schema.optional(Schema.Literals(["asc", "desc"])).pipe(T.HttpQuery("direction")),
104
+ nameContains: Schema.optional(Schema.String).pipe(T.HttpQuery("name_contains")),
105
+ order: Schema.optional(Schema.Literal("name")).pipe(T.HttpQuery("order")),
106
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
107
+ startAfter: Schema.optional(Schema.String).pipe(T.HttpQuery("start_after")),
108
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
109
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/buckets" }));
110
+ export const ListBucketsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
111
+ buckets: Schema.optional(Schema.Union([
112
+ Schema.Array(Schema.Struct({
113
+ creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
114
+ jurisdiction: Schema.optional(Schema.Union([
115
+ Schema.Literals(["default", "eu", "fedramp"]),
116
+ Schema.Null,
117
+ ])),
118
+ location: Schema.optional(Schema.Union([
119
+ Schema.Literals([
120
+ "apac",
121
+ "eeur",
122
+ "enam",
123
+ "weur",
124
+ "wnam",
125
+ "oc",
126
+ "APAC",
127
+ "EEUR",
128
+ "ENAM",
129
+ "WEUR",
130
+ "WNAM",
131
+ "OC",
132
+ ]),
133
+ Schema.Null,
134
+ ])),
135
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
136
+ storageClass: Schema.optional(Schema.Union([
137
+ Schema.Literals(["Standard", "InfrequentAccess"]),
138
+ Schema.Null,
139
+ ])),
140
+ }).pipe(Schema.encodeKeys({
141
+ creationDate: "creation_date",
142
+ jurisdiction: "jurisdiction",
143
+ location: "location",
144
+ name: "name",
145
+ storageClass: "storage_class",
146
+ }))),
147
+ Schema.Null,
148
+ ])),
149
+ });
150
+ export const listBuckets = API.make(() => ({
151
+ input: ListBucketsRequest,
152
+ output: ListBucketsResponse,
153
+ errors: [InvalidRoute],
154
+ }));
155
+ export const CreateBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
156
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
157
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
158
+ name: Schema.String,
159
+ locationHint: Schema.optional(Schema.Literals(["apac", "eeur", "enam", "weur", "wnam", "oc"])),
160
+ storageClass: Schema.optional(Schema.Literals(["Standard", "InfrequentAccess"])),
161
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/r2/buckets" }));
162
+ export const CreateBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
163
+ creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
164
+ jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
165
+ location: Schema.optional(Schema.Union([
166
+ Schema.Literals([
167
+ "apac",
168
+ "eeur",
169
+ "enam",
170
+ "weur",
171
+ "wnam",
172
+ "oc",
173
+ "APAC",
174
+ "EEUR",
175
+ "ENAM",
176
+ "WEUR",
177
+ "WNAM",
178
+ "OC",
179
+ ]),
180
+ Schema.Null,
181
+ ])),
182
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
183
+ storageClass: Schema.optional(Schema.Union([
184
+ Schema.Literals(["Standard", "InfrequentAccess"]),
185
+ Schema.Null,
186
+ ])),
187
+ }).pipe(Schema.encodeKeys({
188
+ creationDate: "creation_date",
189
+ jurisdiction: "jurisdiction",
190
+ location: "location",
191
+ name: "name",
192
+ storageClass: "storage_class",
193
+ }));
194
+ export const createBucket = API.make(() => ({
195
+ input: CreateBucketRequest,
196
+ output: CreateBucketResponse,
197
+ errors: [InvalidBucketName, BucketAlreadyExists, InvalidRoute],
198
+ }));
199
+ export const PatchBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
200
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
201
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
202
+ storageClass: Schema.Literals(["Standard", "InfrequentAccess"]).pipe(T.HttpHeader("cf-r2-storage-class")),
203
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
204
+ }).pipe(T.Http({
205
+ method: "PATCH",
206
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}",
207
+ }));
208
+ export const PatchBucketResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
209
+ creationDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
210
+ jurisdiction: Schema.optional(Schema.Union([Schema.Literals(["default", "eu", "fedramp"]), Schema.Null])),
211
+ location: Schema.optional(Schema.Union([
212
+ Schema.Literals([
213
+ "apac",
214
+ "eeur",
215
+ "enam",
216
+ "weur",
217
+ "wnam",
218
+ "oc",
219
+ "APAC",
220
+ "EEUR",
221
+ "ENAM",
222
+ "WEUR",
223
+ "WNAM",
224
+ "OC",
225
+ ]),
226
+ Schema.Null,
227
+ ])),
228
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
229
+ storageClass: Schema.optional(Schema.Union([
230
+ Schema.Literals(["Standard", "InfrequentAccess"]),
231
+ Schema.Null,
232
+ ])),
233
+ }).pipe(Schema.encodeKeys({
234
+ creationDate: "creation_date",
235
+ jurisdiction: "jurisdiction",
236
+ location: "location",
237
+ name: "name",
238
+ storageClass: "storage_class",
239
+ }));
240
+ export const patchBucket = API.make(() => ({
241
+ input: PatchBucketRequest,
242
+ output: PatchBucketResponse,
243
+ errors: [NoSuchBucket, InvalidRoute],
244
+ }));
245
+ export const DeleteBucketRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
246
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
247
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
248
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
249
+ }).pipe(T.Http({
250
+ method: "DELETE",
251
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}",
252
+ }));
253
+ export const DeleteBucketResponse =
254
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
255
+ export const deleteBucket = API.make(() => ({
256
+ input: DeleteBucketRequest,
257
+ output: DeleteBucketResponse,
258
+ errors: [NoSuchBucket, InvalidRoute, NoRoute],
259
+ }));
260
+ export const GetBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
261
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
262
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
263
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
264
+ }).pipe(T.Http({
265
+ method: "GET",
266
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
267
+ }));
268
+ export const GetBucketCorsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
269
+ rules: Schema.optional(Schema.Union([
270
+ Schema.Array(Schema.Struct({
271
+ allowed: Schema.Struct({
272
+ methods: Schema.Array(Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"])),
273
+ origins: Schema.Array(Schema.String),
274
+ headers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
275
+ }),
276
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
277
+ exposeHeaders: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
278
+ maxAgeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
279
+ })),
280
+ Schema.Null,
281
+ ])),
282
+ });
283
+ export const getBucketCors = API.make(() => ({
284
+ input: GetBucketCorsRequest,
285
+ output: GetBucketCorsResponse,
286
+ errors: [NoSuchBucket, InvalidRoute, NoCorsConfiguration],
287
+ }));
288
+ export const PutBucketCorsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
289
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
290
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
291
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
292
+ rules: Schema.optional(Schema.Array(Schema.Struct({
293
+ allowed: Schema.Struct({
294
+ methods: Schema.Array(Schema.Literals(["GET", "PUT", "POST", "DELETE", "HEAD"])),
295
+ origins: Schema.Array(Schema.String),
296
+ headers: Schema.optional(Schema.Array(Schema.String)),
297
+ }),
298
+ id: Schema.optional(Schema.String),
299
+ exposeHeaders: Schema.optional(Schema.Array(Schema.String)),
300
+ maxAgeSeconds: Schema.optional(Schema.Number),
301
+ }))),
302
+ }).pipe(T.Http({
303
+ method: "PUT",
304
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
305
+ }));
306
+ export const PutBucketCorsResponse =
307
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
308
+ export const putBucketCors = API.make(() => ({
309
+ input: PutBucketCorsRequest,
310
+ output: PutBucketCorsResponse,
311
+ errors: [NoSuchBucket, InvalidRoute],
312
+ }));
313
+ export const DeleteBucketCorsRequest =
314
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
315
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
316
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
317
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
318
+ }).pipe(T.Http({
319
+ method: "DELETE",
320
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/cors",
321
+ }));
322
+ export const DeleteBucketCorsResponse =
323
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
324
+ export const deleteBucketCors = API.make(() => ({
325
+ input: DeleteBucketCorsRequest,
326
+ output: DeleteBucketCorsResponse,
327
+ errors: [NoSuchBucket, InvalidRoute],
328
+ }));
329
+ export const GetBucketDomainCustomRequest =
330
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
331
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
332
+ domain: Schema.String.pipe(T.HttpPath("domain")),
333
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
334
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
335
+ }).pipe(T.Http({
336
+ method: "GET",
337
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
338
+ }));
339
+ export const GetBucketDomainCustomResponse =
340
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
341
+ domain: Schema.String,
342
+ enabled: Schema.Boolean,
343
+ status: Schema.Struct({
344
+ ownership: Schema.Literals([
345
+ "pending",
346
+ "active",
347
+ "deactivated",
348
+ "blocked",
349
+ "error",
350
+ "unknown",
351
+ ]),
352
+ ssl: Schema.Literals([
353
+ "initializing",
354
+ "pending",
355
+ "active",
356
+ "deactivated",
357
+ "error",
358
+ "unknown",
359
+ ]),
360
+ }),
361
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
362
+ minTLS: Schema.optional(Schema.Union([
363
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
364
+ Schema.Null,
365
+ ])),
366
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
367
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
368
+ });
369
+ export const getBucketDomainCustom = API.make(() => ({
370
+ input: GetBucketDomainCustomRequest,
371
+ output: GetBucketDomainCustomResponse,
372
+ errors: [],
373
+ }));
374
+ export const ListBucketDomainCustomsRequest =
375
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
376
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
377
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
378
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
379
+ }).pipe(T.Http({
380
+ method: "GET",
381
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
382
+ }));
383
+ export const ListBucketDomainCustomsResponse =
384
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
385
+ domains: Schema.Array(Schema.Struct({
386
+ domain: Schema.String,
387
+ enabled: Schema.Boolean,
388
+ status: Schema.Struct({
389
+ ownership: Schema.Literals([
390
+ "pending",
391
+ "active",
392
+ "deactivated",
393
+ "blocked",
394
+ "error",
395
+ "unknown",
396
+ ]),
397
+ ssl: Schema.Literals([
398
+ "initializing",
399
+ "pending",
400
+ "active",
401
+ "deactivated",
402
+ "error",
403
+ "unknown",
404
+ ]),
405
+ }),
406
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
407
+ minTLS: Schema.optional(Schema.Union([
408
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
409
+ Schema.Null,
410
+ ])),
411
+ zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
412
+ zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
413
+ })),
414
+ });
415
+ export const listBucketDomainCustoms = API.make(() => ({
416
+ input: ListBucketDomainCustomsRequest,
417
+ output: ListBucketDomainCustomsResponse,
418
+ errors: [NoSuchBucket, InvalidRoute],
419
+ }));
420
+ export const CreateBucketDomainCustomRequest =
421
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
422
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
423
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
424
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
425
+ domain: Schema.String,
426
+ enabled: Schema.Boolean,
427
+ zoneId: Schema.String,
428
+ ciphers: Schema.optional(Schema.Array(Schema.String)),
429
+ minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
430
+ }).pipe(T.Http({
431
+ method: "POST",
432
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom",
433
+ }));
434
+ export const CreateBucketDomainCustomResponse =
435
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
436
+ domain: Schema.String,
437
+ enabled: Schema.Boolean,
438
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
439
+ minTLS: Schema.optional(Schema.Union([
440
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
441
+ Schema.Null,
442
+ ])),
443
+ });
444
+ export const createBucketDomainCustom = API.make(() => ({
445
+ input: CreateBucketDomainCustomRequest,
446
+ output: CreateBucketDomainCustomResponse,
447
+ errors: [NoSuchBucket, InvalidBucketName],
448
+ }));
449
+ export const UpdateBucketDomainCustomRequest =
450
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
451
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
452
+ domain: Schema.String.pipe(T.HttpPath("domain")),
453
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
454
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
455
+ ciphers: Schema.optional(Schema.Array(Schema.String)),
456
+ enabled: Schema.optional(Schema.Boolean),
457
+ minTLS: Schema.optional(Schema.Literals(["1.0", "1.1", "1.2", "1.3"])),
458
+ }).pipe(T.Http({
459
+ method: "PUT",
460
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
461
+ }));
462
+ export const UpdateBucketDomainCustomResponse =
463
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
464
+ domain: Schema.String,
465
+ ciphers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
466
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
467
+ minTLS: Schema.optional(Schema.Union([
468
+ Schema.Literals(["1.0", "1.1", "1.2", "1.3"]),
469
+ Schema.Null,
470
+ ])),
471
+ });
472
+ export const updateBucketDomainCustom = API.make(() => ({
473
+ input: UpdateBucketDomainCustomRequest,
474
+ output: UpdateBucketDomainCustomResponse,
475
+ errors: [],
476
+ }));
477
+ export const DeleteBucketDomainCustomRequest =
478
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
479
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
480
+ domain: Schema.String.pipe(T.HttpPath("domain")),
481
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
482
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
483
+ }).pipe(T.Http({
484
+ method: "DELETE",
485
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/custom/{domain}",
486
+ }));
487
+ export const DeleteBucketDomainCustomResponse =
488
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
489
+ domain: Schema.String,
490
+ });
491
+ export const deleteBucketDomainCustom = API.make(() => ({
492
+ input: DeleteBucketDomainCustomRequest,
493
+ output: DeleteBucketDomainCustomResponse,
494
+ errors: [],
495
+ }));
496
+ export const ListBucketDomainManagedsRequest =
497
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
498
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
499
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
500
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
501
+ }).pipe(T.Http({
502
+ method: "GET",
503
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
504
+ }));
505
+ export const ListBucketDomainManagedsResponse =
506
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
507
+ bucketId: Schema.String,
508
+ domain: Schema.String,
509
+ enabled: Schema.Boolean,
510
+ });
511
+ export const listBucketDomainManageds = API.make(() => ({
512
+ input: ListBucketDomainManagedsRequest,
513
+ output: ListBucketDomainManagedsResponse,
514
+ errors: [NoSuchBucket, InvalidRoute],
515
+ }));
516
+ export const PutBucketDomainManagedRequest =
517
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
518
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
519
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
520
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
521
+ enabled: Schema.Boolean,
522
+ }).pipe(T.Http({
523
+ method: "PUT",
524
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/domains/managed",
525
+ }));
526
+ export const PutBucketDomainManagedResponse =
527
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
528
+ bucketId: Schema.String,
529
+ domain: Schema.String,
530
+ enabled: Schema.Boolean,
531
+ });
532
+ export const putBucketDomainManaged = API.make(() => ({
533
+ input: PutBucketDomainManagedRequest,
534
+ output: PutBucketDomainManagedResponse,
535
+ errors: [NoSuchBucket, InvalidRoute],
536
+ }));
537
+ export const GetBucketEventNotificationRequest =
538
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
539
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
540
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
541
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
542
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
543
+ }).pipe(T.Http({
544
+ method: "GET",
545
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
546
+ }));
547
+ export const GetBucketEventNotificationResponse =
548
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
549
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
550
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
551
+ rules: Schema.optional(Schema.Union([
552
+ Schema.Array(Schema.Struct({
553
+ actions: Schema.Array(Schema.Literals([
554
+ "PutObject",
555
+ "CopyObject",
556
+ "DeleteObject",
557
+ "CompleteMultipartUpload",
558
+ "LifecycleDeletion",
559
+ ])),
560
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
561
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
562
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
563
+ ruleId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
564
+ suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
565
+ })),
566
+ Schema.Null,
567
+ ])),
568
+ });
569
+ export const getBucketEventNotification = API.make(() => ({
570
+ input: GetBucketEventNotificationRequest,
571
+ output: GetBucketEventNotificationResponse,
572
+ errors: [],
573
+ }));
574
+ export const ListBucketEventNotificationsRequest =
575
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
576
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
577
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
578
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
579
+ }).pipe(T.Http({
580
+ method: "GET",
581
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration",
582
+ }));
583
+ export const ListBucketEventNotificationsResponse =
584
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
585
+ bucketName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
586
+ queues: Schema.optional(Schema.Union([
587
+ Schema.Array(Schema.Struct({
588
+ queueId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
589
+ queueName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
590
+ rules: Schema.optional(Schema.Union([
591
+ Schema.Array(Schema.Struct({
592
+ actions: Schema.Array(Schema.Literals([
593
+ "PutObject",
594
+ "CopyObject",
595
+ "DeleteObject",
596
+ "CompleteMultipartUpload",
597
+ "LifecycleDeletion",
598
+ ])),
599
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
600
+ description: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
601
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
602
+ ruleId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
603
+ suffix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
604
+ })),
605
+ Schema.Null,
606
+ ])),
607
+ })),
608
+ Schema.Null,
609
+ ])),
610
+ });
611
+ export const listBucketEventNotifications = API.make(() => ({
612
+ input: ListBucketEventNotificationsRequest,
613
+ output: ListBucketEventNotificationsResponse,
614
+ errors: [
615
+ NoSuchBucket,
616
+ InvalidRoute,
617
+ NoEventNotificationConfig,
618
+ BucketNotFound,
619
+ ],
620
+ }));
621
+ export const PutBucketEventNotificationRequest =
622
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
623
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
624
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
625
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
626
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
627
+ rules: Schema.Array(Schema.Struct({
628
+ actions: Schema.Array(Schema.Literals([
629
+ "PutObject",
630
+ "CopyObject",
631
+ "DeleteObject",
632
+ "CompleteMultipartUpload",
633
+ "LifecycleDeletion",
634
+ ])),
635
+ description: Schema.optional(Schema.String),
636
+ prefix: Schema.optional(Schema.String),
637
+ suffix: Schema.optional(Schema.String),
638
+ })),
639
+ }).pipe(T.Http({
640
+ method: "PUT",
641
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
642
+ }));
643
+ export const PutBucketEventNotificationResponse =
644
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
645
+ export const putBucketEventNotification = API.make(() => ({
646
+ input: PutBucketEventNotificationRequest,
647
+ output: PutBucketEventNotificationResponse,
648
+ errors: [],
649
+ }));
650
+ export const DeleteBucketEventNotificationRequest =
651
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
652
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
653
+ queueId: Schema.String.pipe(T.HttpPath("queueId")),
654
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
655
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
656
+ }).pipe(T.Http({
657
+ method: "DELETE",
658
+ path: "/accounts/{account_id}/event_notifications/r2/{bucketName}/configuration/queues/{queueId}",
659
+ }));
660
+ export const DeleteBucketEventNotificationResponse =
661
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
662
+ export const deleteBucketEventNotification = API.make(() => ({
663
+ input: DeleteBucketEventNotificationRequest,
664
+ output: DeleteBucketEventNotificationResponse,
665
+ errors: [],
666
+ }));
667
+ export const GetBucketLifecycleRequest =
668
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
669
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
670
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
671
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
672
+ }).pipe(T.Http({
673
+ method: "GET",
674
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
675
+ }));
676
+ export const GetBucketLifecycleResponse =
677
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
678
+ rules: Schema.optional(Schema.Union([
679
+ Schema.Array(Schema.Struct({
680
+ id: Schema.String,
681
+ conditions: Schema.Struct({
682
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
683
+ }),
684
+ enabled: Schema.Boolean,
685
+ abortMultipartUploadsTransition: Schema.optional(Schema.Union([
686
+ Schema.Struct({
687
+ condition: Schema.optional(Schema.Union([
688
+ Schema.Struct({
689
+ maxAge: Schema.Number,
690
+ type: Schema.Literal("Age"),
691
+ }),
692
+ Schema.Null,
693
+ ])),
694
+ }),
695
+ Schema.Null,
696
+ ])),
697
+ deleteObjectsTransition: Schema.optional(Schema.Union([
698
+ Schema.Struct({
699
+ condition: Schema.optional(Schema.Union([
700
+ Schema.Union([
701
+ Schema.Struct({
702
+ maxAge: Schema.Number,
703
+ type: Schema.Literal("Age"),
704
+ }),
705
+ Schema.Struct({
706
+ date: Schema.String,
707
+ type: Schema.Literal("Date"),
708
+ }),
709
+ ]),
710
+ Schema.Null,
711
+ ])),
712
+ }),
713
+ Schema.Null,
714
+ ])),
715
+ storageClassTransitions: Schema.optional(Schema.Union([
716
+ Schema.Array(Schema.Struct({
717
+ condition: Schema.Union([
718
+ Schema.Struct({
719
+ maxAge: Schema.Number,
720
+ type: Schema.Literal("Age"),
721
+ }),
722
+ Schema.Struct({
723
+ date: Schema.String,
724
+ type: Schema.Literal("Date"),
725
+ }),
726
+ ]),
727
+ storageClass: Schema.Literal("InfrequentAccess"),
728
+ })),
729
+ Schema.Null,
730
+ ])),
731
+ })),
732
+ Schema.Null,
733
+ ])),
734
+ });
735
+ export const getBucketLifecycle = API.make(() => ({
736
+ input: GetBucketLifecycleRequest,
737
+ output: GetBucketLifecycleResponse,
738
+ errors: [NoSuchBucket, InvalidRoute],
739
+ }));
740
+ export const PutBucketLifecycleRequest =
741
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
742
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
743
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
744
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
745
+ rules: Schema.optional(Schema.Array(Schema.Struct({
746
+ id: Schema.String,
747
+ conditions: Schema.Struct({
748
+ prefix: Schema.String,
749
+ }),
750
+ enabled: Schema.Boolean,
751
+ abortMultipartUploadsTransition: Schema.optional(Schema.Struct({
752
+ condition: Schema.optional(Schema.Struct({
753
+ maxAge: Schema.Number,
754
+ type: Schema.Literal("Age"),
755
+ })),
756
+ })),
757
+ deleteObjectsTransition: Schema.optional(Schema.Struct({
758
+ condition: Schema.optional(Schema.Union([
759
+ Schema.Struct({
760
+ maxAge: Schema.Number,
761
+ type: Schema.Literal("Age"),
762
+ }),
763
+ Schema.Struct({
764
+ date: Schema.String,
765
+ type: Schema.Literal("Date"),
766
+ }),
767
+ ])),
768
+ })),
769
+ storageClassTransitions: Schema.optional(Schema.Array(Schema.Struct({
770
+ condition: Schema.Union([
771
+ Schema.Struct({
772
+ maxAge: Schema.Number,
773
+ type: Schema.Literal("Age"),
774
+ }),
775
+ Schema.Struct({
776
+ date: Schema.String,
777
+ type: Schema.Literal("Date"),
778
+ }),
779
+ ]),
780
+ storageClass: Schema.Literal("InfrequentAccess"),
781
+ }))),
782
+ }))),
783
+ }).pipe(T.Http({
784
+ method: "PUT",
785
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lifecycle",
786
+ }));
787
+ export const PutBucketLifecycleResponse =
788
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
789
+ export const putBucketLifecycle = API.make(() => ({
790
+ input: PutBucketLifecycleRequest,
791
+ output: PutBucketLifecycleResponse,
792
+ errors: [NoSuchBucket, InvalidRoute],
793
+ }));
794
+ export const GetBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
795
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
796
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
797
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
798
+ }).pipe(T.Http({
799
+ method: "GET",
800
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
801
+ }));
802
+ export const GetBucketLockResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
803
+ rules: Schema.optional(Schema.Union([
804
+ Schema.Array(Schema.Struct({
805
+ id: Schema.String,
806
+ condition: Schema.Union([
807
+ Schema.Struct({
808
+ maxAgeSeconds: Schema.Number,
809
+ type: Schema.Literal("Age"),
810
+ }),
811
+ Schema.Struct({
812
+ date: Schema.String,
813
+ type: Schema.Literal("Date"),
814
+ }),
815
+ Schema.Struct({
816
+ type: Schema.Literal("Indefinite"),
817
+ }),
818
+ ]),
819
+ enabled: Schema.Boolean,
820
+ prefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
821
+ })),
822
+ Schema.Null,
823
+ ])),
824
+ });
825
+ export const getBucketLock = API.make(() => ({
826
+ input: GetBucketLockRequest,
827
+ output: GetBucketLockResponse,
828
+ errors: [NoSuchBucket, InvalidRoute],
829
+ }));
830
+ export const PutBucketLockRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
831
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
832
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
833
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
834
+ rules: Schema.optional(Schema.Array(Schema.Struct({
835
+ id: Schema.String,
836
+ condition: Schema.Union([
837
+ Schema.Struct({
838
+ maxAgeSeconds: Schema.Number,
839
+ type: Schema.Literal("Age"),
840
+ }),
841
+ Schema.Struct({
842
+ date: Schema.String,
843
+ type: Schema.Literal("Date"),
844
+ }),
845
+ Schema.Struct({
846
+ type: Schema.Literal("Indefinite"),
847
+ }),
848
+ ]),
849
+ enabled: Schema.Boolean,
850
+ prefix: Schema.optional(Schema.String),
851
+ }))),
852
+ }).pipe(T.Http({
853
+ method: "PUT",
854
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/lock",
855
+ }));
856
+ export const PutBucketLockResponse =
857
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
858
+ export const putBucketLock = API.make(() => ({
859
+ input: PutBucketLockRequest,
860
+ output: PutBucketLockResponse,
861
+ errors: [NoSuchBucket, InvalidRoute],
862
+ }));
863
+ export const ListBucketMetricsRequest =
864
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
865
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
866
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/r2/metrics" }));
867
+ export const ListBucketMetricsResponse =
868
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
869
+ infrequentAccess: Schema.optional(Schema.Union([
870
+ Schema.Struct({
871
+ published: Schema.optional(Schema.Union([
872
+ Schema.Struct({
873
+ metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
874
+ objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
875
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
876
+ }),
877
+ Schema.Null,
878
+ ])),
879
+ uploaded: Schema.optional(Schema.Union([
880
+ Schema.Struct({
881
+ metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
882
+ objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
883
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
884
+ }),
885
+ Schema.Null,
886
+ ])),
887
+ }),
888
+ Schema.Null,
889
+ ])),
890
+ standard: Schema.optional(Schema.Union([
891
+ Schema.Struct({
892
+ published: Schema.optional(Schema.Union([
893
+ Schema.Struct({
894
+ metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
895
+ objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
896
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
897
+ }),
898
+ Schema.Null,
899
+ ])),
900
+ uploaded: Schema.optional(Schema.Union([
901
+ Schema.Struct({
902
+ metadataSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
903
+ objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
904
+ payloadSize: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
905
+ }),
906
+ Schema.Null,
907
+ ])),
908
+ }),
909
+ Schema.Null,
910
+ ])),
911
+ });
912
+ export const listBucketMetrics = API.make(() => ({
913
+ input: ListBucketMetricsRequest,
914
+ output: ListBucketMetricsResponse,
915
+ errors: [InvalidRoute],
916
+ }));
917
+ export const GetBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
918
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
919
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
920
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
921
+ }).pipe(T.Http({
922
+ method: "GET",
923
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
924
+ }));
925
+ export const GetBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
926
+ destination: Schema.optional(Schema.Union([
927
+ Schema.Struct({
928
+ accessKeyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
929
+ account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
930
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
931
+ provider: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
932
+ }),
933
+ Schema.Null,
934
+ ])),
935
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
936
+ source: Schema.optional(Schema.Union([
937
+ Schema.Struct({
938
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
939
+ bucketUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
940
+ provider: Schema.optional(Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null])),
941
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
942
+ }),
943
+ Schema.Null,
944
+ ])),
945
+ });
946
+ export const getBucketSippy = API.make(() => ({
947
+ input: GetBucketSippyRequest,
948
+ output: GetBucketSippyResponse,
949
+ errors: [NoSuchBucket, InvalidRoute],
950
+ }));
951
+ export const PutBucketSippyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
952
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
953
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
954
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
955
+ destination: Schema.optional(Schema.Struct({
956
+ accessKeyId: Schema.optional(Schema.String),
957
+ provider: Schema.optional(Schema.Literal("r2")),
958
+ secretAccessKey: Schema.optional(Schema.String),
959
+ })),
960
+ source: Schema.optional(Schema.Struct({
961
+ accessKeyId: Schema.optional(Schema.String),
962
+ bucket: Schema.optional(Schema.String),
963
+ provider: Schema.optional(Schema.Literal("aws")),
964
+ region: Schema.optional(Schema.String),
965
+ secretAccessKey: Schema.optional(Schema.String),
966
+ })),
967
+ }).pipe(T.Http({
968
+ method: "PUT",
969
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
970
+ }));
971
+ export const PutBucketSippyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
972
+ destination: Schema.optional(Schema.Union([
973
+ Schema.Struct({
974
+ accessKeyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
975
+ account: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
976
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
977
+ provider: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
978
+ }),
979
+ Schema.Null,
980
+ ])),
981
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
982
+ source: Schema.optional(Schema.Union([
983
+ Schema.Struct({
984
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
985
+ bucketUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
986
+ provider: Schema.optional(Schema.Union([Schema.Literals(["aws", "gcs", "s3"]), Schema.Null])),
987
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
988
+ }),
989
+ Schema.Null,
990
+ ])),
991
+ });
992
+ export const putBucketSippy = API.make(() => ({
993
+ input: PutBucketSippyRequest,
994
+ output: PutBucketSippyResponse,
995
+ errors: [],
996
+ }));
997
+ export const DeleteBucketSippyRequest =
998
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
999
+ bucketName: Schema.String.pipe(T.HttpPath("bucketName")),
1000
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1001
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])).pipe(T.HttpHeader("cf-r2-jurisdiction")),
1002
+ }).pipe(T.Http({
1003
+ method: "DELETE",
1004
+ path: "/accounts/{account_id}/r2/buckets/{bucketName}/sippy",
1005
+ }));
1006
+ export const DeleteBucketSippyResponse =
1007
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1008
+ enabled: Schema.optional(Schema.Union([Schema.Literal(false), Schema.Null])),
1009
+ });
1010
+ export const deleteBucketSippy = API.make(() => ({
1011
+ input: DeleteBucketSippyRequest,
1012
+ output: DeleteBucketSippyResponse,
1013
+ errors: [NoSuchBucket, InvalidRoute],
1014
+ }));
1015
+ export const SourceSuperSlurperConnectivityPrecheckRequest =
1016
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1017
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1018
+ bucket: Schema.String,
1019
+ secret: Schema.Struct({
1020
+ accessKeyId: Schema.String,
1021
+ secretAccessKey: Schema.String,
1022
+ }),
1023
+ vendor: Schema.Literal("s3"),
1024
+ endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1025
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1026
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1027
+ }).pipe(T.Http({
1028
+ method: "PUT",
1029
+ path: "/accounts/{account_id}/slurper/source/connectivity-precheck",
1030
+ }));
1031
+ export const SourceSuperSlurperConnectivityPrecheckResponse =
1032
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1033
+ connectivityStatus: Schema.optional(Schema.Union([Schema.Literals(["success", "error"]), Schema.Null])),
1034
+ });
1035
+ export const sourceSuperSlurperConnectivityPrecheck = API.make(() => ({
1036
+ input: SourceSuperSlurperConnectivityPrecheckRequest,
1037
+ output: SourceSuperSlurperConnectivityPrecheckResponse,
1038
+ errors: [],
1039
+ }));
1040
+ export const TargetSuperSlurperConnectivityPrecheckRequest =
1041
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1042
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1043
+ bucket: Schema.String,
1044
+ secret: Schema.Struct({
1045
+ accessKeyId: Schema.String,
1046
+ secretAccessKey: Schema.String,
1047
+ }),
1048
+ vendor: Schema.Literal("r2"),
1049
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])),
1050
+ }).pipe(T.Http({
1051
+ method: "PUT",
1052
+ path: "/accounts/{account_id}/slurper/target/connectivity-precheck",
1053
+ }));
1054
+ export const TargetSuperSlurperConnectivityPrecheckResponse =
1055
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1056
+ connectivityStatus: Schema.optional(Schema.Union([Schema.Literals(["success", "error"]), Schema.Null])),
1057
+ });
1058
+ export const targetSuperSlurperConnectivityPrecheck = API.make(() => ({
1059
+ input: TargetSuperSlurperConnectivityPrecheckRequest,
1060
+ output: TargetSuperSlurperConnectivityPrecheckResponse,
1061
+ errors: [],
1062
+ }));
1063
+ export const GetSuperSlurperJobRequest =
1064
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1065
+ jobId: Schema.String.pipe(T.HttpPath("jobId")),
1066
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1067
+ }).pipe(T.Http({
1068
+ method: "GET",
1069
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}",
1070
+ }));
1071
+ export const GetSuperSlurperJobResponse =
1072
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1073
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1074
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1075
+ finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1076
+ overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1077
+ source: Schema.optional(Schema.Union([
1078
+ Schema.Union([
1079
+ Schema.Struct({
1080
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1081
+ endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1082
+ keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1083
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1084
+ vendor: Schema.optional(Schema.Union([Schema.Literal("s3"), Schema.Null])),
1085
+ }),
1086
+ Schema.Struct({
1087
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1088
+ keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1089
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1090
+ vendor: Schema.optional(Schema.Union([Schema.Literal("gcs"), Schema.Null])),
1091
+ }),
1092
+ Schema.Struct({
1093
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1094
+ jurisdiction: Schema.optional(Schema.Union([
1095
+ Schema.Literals(["default", "eu", "fedramp"]),
1096
+ Schema.Null,
1097
+ ])),
1098
+ keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1099
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1100
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1101
+ }),
1102
+ ]),
1103
+ Schema.Null,
1104
+ ])),
1105
+ status: Schema.optional(Schema.Union([
1106
+ Schema.Literals(["running", "paused", "aborted", "completed"]),
1107
+ Schema.Null,
1108
+ ])),
1109
+ target: Schema.optional(Schema.Union([
1110
+ Schema.Struct({
1111
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1112
+ jurisdiction: Schema.optional(Schema.Union([
1113
+ Schema.Literals(["default", "eu", "fedramp"]),
1114
+ Schema.Null,
1115
+ ])),
1116
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1117
+ }),
1118
+ Schema.Null,
1119
+ ])),
1120
+ });
1121
+ export const getSuperSlurperJob = API.make(() => ({
1122
+ input: GetSuperSlurperJobRequest,
1123
+ output: GetSuperSlurperJobResponse,
1124
+ errors: [],
1125
+ }));
1126
+ export const ListSuperSlurperJobsRequest =
1127
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1128
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1129
+ limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
1130
+ offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
1131
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/slurper/jobs" }));
1132
+ export const ListSuperSlurperJobsResponse =
1133
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1134
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1135
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1136
+ finishedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1137
+ overwrite: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1138
+ source: Schema.optional(Schema.Union([
1139
+ Schema.Union([
1140
+ Schema.Struct({
1141
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1142
+ endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1143
+ keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1144
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1145
+ vendor: Schema.optional(Schema.Union([Schema.Literal("s3"), Schema.Null])),
1146
+ }),
1147
+ Schema.Struct({
1148
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1149
+ keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1150
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1151
+ vendor: Schema.optional(Schema.Union([Schema.Literal("gcs"), Schema.Null])),
1152
+ }),
1153
+ Schema.Struct({
1154
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1155
+ jurisdiction: Schema.optional(Schema.Union([
1156
+ Schema.Literals(["default", "eu", "fedramp"]),
1157
+ Schema.Null,
1158
+ ])),
1159
+ keys: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
1160
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1161
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1162
+ }),
1163
+ ]),
1164
+ Schema.Null,
1165
+ ])),
1166
+ status: Schema.optional(Schema.Union([
1167
+ Schema.Literals(["running", "paused", "aborted", "completed"]),
1168
+ Schema.Null,
1169
+ ])),
1170
+ target: Schema.optional(Schema.Union([
1171
+ Schema.Struct({
1172
+ bucket: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1173
+ jurisdiction: Schema.optional(Schema.Union([
1174
+ Schema.Literals(["default", "eu", "fedramp"]),
1175
+ Schema.Null,
1176
+ ])),
1177
+ vendor: Schema.optional(Schema.Union([Schema.Literal("r2"), Schema.Null])),
1178
+ }),
1179
+ Schema.Null,
1180
+ ])),
1181
+ }));
1182
+ export const listSuperSlurperJobs = API.make(() => ({
1183
+ input: ListSuperSlurperJobsRequest,
1184
+ output: ListSuperSlurperJobsResponse,
1185
+ errors: [],
1186
+ }));
1187
+ export const CreateSuperSlurperJobRequest =
1188
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1189
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1190
+ overwrite: Schema.optional(Schema.Boolean),
1191
+ source: Schema.optional(Schema.Union([
1192
+ Schema.Struct({
1193
+ bucket: Schema.String,
1194
+ secret: Schema.Struct({
1195
+ accessKeyId: Schema.String,
1196
+ secretAccessKey: Schema.String,
1197
+ }),
1198
+ vendor: Schema.Literal("s3"),
1199
+ endpoint: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1200
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1201
+ region: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1202
+ }),
1203
+ Schema.Struct({
1204
+ bucket: Schema.String,
1205
+ secret: Schema.Struct({
1206
+ clientEmail: Schema.String,
1207
+ privateKey: Schema.String,
1208
+ }),
1209
+ vendor: Schema.Literal("gcs"),
1210
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1211
+ }),
1212
+ Schema.Struct({
1213
+ bucket: Schema.String,
1214
+ secret: Schema.Struct({
1215
+ accessKeyId: Schema.String,
1216
+ secretAccessKey: Schema.String,
1217
+ }),
1218
+ vendor: Schema.Literal("r2"),
1219
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])),
1220
+ pathPrefix: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1221
+ }),
1222
+ ])),
1223
+ target: Schema.optional(Schema.Struct({
1224
+ bucket: Schema.String,
1225
+ secret: Schema.Struct({
1226
+ accessKeyId: Schema.String,
1227
+ secretAccessKey: Schema.String,
1228
+ }),
1229
+ vendor: Schema.Literal("r2"),
1230
+ jurisdiction: Schema.optional(Schema.Literals(["default", "eu", "fedramp"])),
1231
+ })),
1232
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/slurper/jobs" }));
1233
+ export const CreateSuperSlurperJobResponse =
1234
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1235
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1236
+ });
1237
+ export const createSuperSlurperJob = API.make(() => ({
1238
+ input: CreateSuperSlurperJobRequest,
1239
+ output: CreateSuperSlurperJobResponse,
1240
+ errors: [],
1241
+ }));
1242
+ export const AbortSuperSlurperJobRequest =
1243
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1244
+ jobId: Schema.String.pipe(T.HttpPath("jobId")),
1245
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1246
+ }).pipe(T.Http({
1247
+ method: "PUT",
1248
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/abort",
1249
+ }));
1250
+ export const AbortSuperSlurperJobResponse =
1251
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
1252
+ export const abortSuperSlurperJob = API.make(() => ({
1253
+ input: AbortSuperSlurperJobRequest,
1254
+ output: AbortSuperSlurperJobResponse,
1255
+ errors: [],
1256
+ }));
1257
+ export const PauseSuperSlurperJobRequest =
1258
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1259
+ jobId: Schema.String.pipe(T.HttpPath("jobId")),
1260
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1261
+ }).pipe(T.Http({
1262
+ method: "PUT",
1263
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/pause",
1264
+ }));
1265
+ export const PauseSuperSlurperJobResponse =
1266
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
1267
+ export const pauseSuperSlurperJob = API.make(() => ({
1268
+ input: PauseSuperSlurperJobRequest,
1269
+ output: PauseSuperSlurperJobResponse,
1270
+ errors: [],
1271
+ }));
1272
+ export const ProgressSuperSlurperJobRequest =
1273
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1274
+ jobId: Schema.String.pipe(T.HttpPath("jobId")),
1275
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1276
+ }).pipe(T.Http({
1277
+ method: "GET",
1278
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/progress",
1279
+ }));
1280
+ export const ProgressSuperSlurperJobResponse =
1281
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1282
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1283
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1284
+ failedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1285
+ objects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1286
+ skippedObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1287
+ status: Schema.optional(Schema.Union([
1288
+ Schema.Literals(["running", "paused", "aborted", "completed"]),
1289
+ Schema.Null,
1290
+ ])),
1291
+ transferredObjects: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
1292
+ });
1293
+ export const progressSuperSlurperJob = API.make(() => ({
1294
+ input: ProgressSuperSlurperJobRequest,
1295
+ output: ProgressSuperSlurperJobResponse,
1296
+ errors: [],
1297
+ }));
1298
+ export const ResumeSuperSlurperJobRequest =
1299
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1300
+ jobId: Schema.String.pipe(T.HttpPath("jobId")),
1301
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1302
+ }).pipe(T.Http({
1303
+ method: "PUT",
1304
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/resume",
1305
+ }));
1306
+ export const ResumeSuperSlurperJobResponse =
1307
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
1308
+ export const resumeSuperSlurperJob = API.make(() => ({
1309
+ input: ResumeSuperSlurperJobRequest,
1310
+ output: ResumeSuperSlurperJobResponse,
1311
+ errors: [],
1312
+ }));
1313
+ export const ListSuperSlurperJobLogsRequest =
1314
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1315
+ jobId: Schema.String.pipe(T.HttpPath("jobId")),
1316
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1317
+ limit: Schema.optional(Schema.Number).pipe(T.HttpQuery("limit")),
1318
+ offset: Schema.optional(Schema.Number).pipe(T.HttpQuery("offset")),
1319
+ }).pipe(T.Http({
1320
+ method: "GET",
1321
+ path: "/accounts/{account_id}/slurper/jobs/{jobId}/logs",
1322
+ }));
1323
+ export const ListSuperSlurperJobLogsResponse =
1324
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
1325
+ createdAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1326
+ job: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1327
+ logType: Schema.optional(Schema.Union([
1328
+ Schema.Literals([
1329
+ "migrationStart",
1330
+ "migrationComplete",
1331
+ "migrationAbort",
1332
+ "migrationError",
1333
+ "migrationPause",
1334
+ "migrationResume",
1335
+ "migrationErrorFailedContinuation",
1336
+ "importErrorRetryExhaustion",
1337
+ "importSkippedStorageClass",
1338
+ "importSkippedOversized",
1339
+ "importSkippedEmptyObject",
1340
+ "importSkippedUnsupportedContentType",
1341
+ "importSkippedExcludedContentType",
1342
+ "importSkippedInvalidMedia",
1343
+ "importSkippedRequiresRetrieval",
1344
+ ]),
1345
+ Schema.Null,
1346
+ ])),
1347
+ message: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1348
+ objectKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1349
+ }));
1350
+ export const listSuperSlurperJobLogs = API.make(() => ({
1351
+ input: ListSuperSlurperJobLogsRequest,
1352
+ output: ListSuperSlurperJobLogsResponse,
1353
+ errors: [],
1354
+ }));
1355
+ export const CreateTemporaryCredentialRequest =
1356
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1357
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1358
+ bucket: Schema.String,
1359
+ parentAccessKeyId: Schema.String,
1360
+ permission: Schema.Literals([
1361
+ "admin-read-write",
1362
+ "admin-read-only",
1363
+ "object-read-write",
1364
+ "object-read-only",
1365
+ ]),
1366
+ ttlSeconds: Schema.Number,
1367
+ objects: Schema.optional(Schema.Array(Schema.String)),
1368
+ prefixes: Schema.optional(Schema.Array(Schema.String)),
1369
+ }).pipe(T.Http({
1370
+ method: "POST",
1371
+ path: "/accounts/{account_id}/r2/temp-access-credentials",
1372
+ }));
1373
+ export const CreateTemporaryCredentialResponse =
1374
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1375
+ accessKeyId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1376
+ secretAccessKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1377
+ sessionToken: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1378
+ });
1379
+ export const createTemporaryCredential = API.make(() => ({
1380
+ input: CreateTemporaryCredentialRequest,
1381
+ output: CreateTemporaryCredentialResponse,
1382
+ errors: [],
1383
+ }));
1384
+ //# sourceMappingURL=r2.js.map