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