@distilled.cloud/cloudflare 0.0.0 → 0.2.3

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/README.md +41 -7
  2. package/lib/auth.d.ts +13 -0
  3. package/lib/auth.d.ts.map +1 -0
  4. package/lib/auth.js +12 -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 +14 -0
  11. package/lib/client/api.d.ts.map +1 -0
  12. package/lib/client/api.js +245 -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 +14 -0
  19. package/lib/credentials.d.ts.map +1 -0
  20. package/lib/credentials.js +17 -0
  21. package/lib/credentials.js.map +1 -0
  22. package/lib/errors.d.ts +37 -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/services/abuse-reports.d.ts +224 -0
  39. package/lib/services/abuse-reports.d.ts.map +1 -0
  40. package/lib/services/abuse-reports.js +353 -0
  41. package/lib/services/abuse-reports.js.map +1 -0
  42. package/lib/services/accounts.d.ts +682 -0
  43. package/lib/services/accounts.d.ts.map +1 -0
  44. package/lib/services/accounts.js +805 -0
  45. package/lib/services/accounts.js.map +1 -0
  46. package/lib/services/acm.d.ts +73 -0
  47. package/lib/services/acm.d.ts.map +1 -0
  48. package/lib/services/acm.js +76 -0
  49. package/lib/services/acm.js.map +1 -0
  50. package/lib/services/addressing.d.ts +1208 -0
  51. package/lib/services/addressing.d.ts.map +1 -0
  52. package/lib/services/addressing.js +1776 -0
  53. package/lib/services/addressing.js.map +1 -0
  54. package/lib/services/ai-gateway.d.ts +956 -0
  55. package/lib/services/ai-gateway.d.ts.map +1 -0
  56. package/lib/services/ai-gateway.js +1706 -0
  57. package/lib/services/ai-gateway.js.map +1 -0
  58. package/lib/services/ai.d.ts +243 -0
  59. package/lib/services/ai.d.ts.map +1 -0
  60. package/lib/services/ai.js +299 -0
  61. package/lib/services/ai.js.map +1 -0
  62. package/lib/services/aisearch.d.ts +915 -0
  63. package/lib/services/aisearch.d.ts.map +1 -0
  64. package/lib/services/aisearch.js +2425 -0
  65. package/lib/services/aisearch.js.map +1 -0
  66. package/lib/services/alerting.d.ts +718 -0
  67. package/lib/services/alerting.d.ts.map +1 -0
  68. package/lib/services/alerting.js +1388 -0
  69. package/lib/services/alerting.js.map +1 -0
  70. package/lib/services/api-gateway.d.ts +830 -0
  71. package/lib/services/api-gateway.d.ts.map +1 -0
  72. package/lib/services/api-gateway.js +1548 -0
  73. package/lib/services/api-gateway.js.map +1 -0
  74. package/lib/services/argo.d.ts +101 -0
  75. package/lib/services/argo.d.ts.map +1 -0
  76. package/lib/services/argo.js +105 -0
  77. package/lib/services/argo.js.map +1 -0
  78. package/lib/services/audit-logs.d.ts +46 -0
  79. package/lib/services/audit-logs.d.ts.map +1 -0
  80. package/lib/services/audit-logs.js +37 -0
  81. package/lib/services/audit-logs.js.map +1 -0
  82. package/lib/services/billing.d.ts +62 -0
  83. package/lib/services/billing.d.ts.map +1 -0
  84. package/lib/services/billing.js +100 -0
  85. package/lib/services/billing.js.map +1 -0
  86. package/lib/services/bot-management.d.ts +124 -0
  87. package/lib/services/bot-management.d.ts.map +1 -0
  88. package/lib/services/bot-management.js +262 -0
  89. package/lib/services/bot-management.js.map +1 -0
  90. package/lib/services/botnet-feed.d.ts +65 -0
  91. package/lib/services/botnet-feed.d.ts.map +1 -0
  92. package/lib/services/botnet-feed.js +84 -0
  93. package/lib/services/botnet-feed.js.map +1 -0
  94. package/lib/services/brand-protection.d.ts +188 -0
  95. package/lib/services/brand-protection.d.ts.map +1 -0
  96. package/lib/services/brand-protection.js +214 -0
  97. package/lib/services/brand-protection.js.map +1 -0
  98. package/lib/services/browser-rendering.d.ts +857 -0
  99. package/lib/services/browser-rendering.d.ts.map +1 -0
  100. package/lib/services/browser-rendering.js +1141 -0
  101. package/lib/services/browser-rendering.js.map +1 -0
  102. package/lib/services/cache.d.ts +287 -0
  103. package/lib/services/cache.d.ts.map +1 -0
  104. package/lib/services/cache.js +330 -0
  105. package/lib/services/cache.js.map +1 -0
  106. package/lib/services/calls.d.ts +202 -0
  107. package/lib/services/calls.d.ts.map +1 -0
  108. package/lib/services/calls.js +175 -0
  109. package/lib/services/calls.js.map +1 -0
  110. package/lib/services/certificate-authorities.d.ts +40 -0
  111. package/lib/services/certificate-authorities.d.ts.map +1 -0
  112. package/lib/services/certificate-authorities.js +49 -0
  113. package/lib/services/certificate-authorities.js.map +1 -0
  114. package/lib/services/client-certificates.d.ts +254 -0
  115. package/lib/services/client-certificates.d.ts.map +1 -0
  116. package/lib/services/client-certificates.js +350 -0
  117. package/lib/services/client-certificates.js.map +1 -0
  118. package/lib/services/cloud-connector.d.ts +59 -0
  119. package/lib/services/cloud-connector.d.ts.map +1 -0
  120. package/lib/services/cloud-connector.js +84 -0
  121. package/lib/services/cloud-connector.js.map +1 -0
  122. package/lib/services/cloudforce-one.d.ts +1318 -0
  123. package/lib/services/cloudforce-one.d.ts.map +1 -0
  124. package/lib/services/cloudforce-one.js +1684 -0
  125. package/lib/services/cloudforce-one.js.map +1 -0
  126. package/lib/services/connectivity.d.ts +248 -0
  127. package/lib/services/connectivity.d.ts.map +1 -0
  128. package/lib/services/connectivity.js +377 -0
  129. package/lib/services/connectivity.js.map +1 -0
  130. package/lib/services/content-scanning.d.ts +131 -0
  131. package/lib/services/content-scanning.d.ts.map +1 -0
  132. package/lib/services/content-scanning.js +156 -0
  133. package/lib/services/content-scanning.js.map +1 -0
  134. package/lib/services/custom-certificates.d.ts +211 -0
  135. package/lib/services/custom-certificates.d.ts.map +1 -0
  136. package/lib/services/custom-certificates.js +309 -0
  137. package/lib/services/custom-certificates.js.map +1 -0
  138. package/lib/services/custom-hostnames.d.ts +525 -0
  139. package/lib/services/custom-hostnames.d.ts.map +1 -0
  140. package/lib/services/custom-hostnames.js +1164 -0
  141. package/lib/services/custom-hostnames.js.map +1 -0
  142. package/lib/services/custom-nameservers.d.ts +67 -0
  143. package/lib/services/custom-nameservers.d.ts.map +1 -0
  144. package/lib/services/custom-nameservers.js +80 -0
  145. package/lib/services/custom-nameservers.js.map +1 -0
  146. package/lib/services/custom-pages.d.ts +74 -0
  147. package/lib/services/custom-pages.d.ts.map +1 -0
  148. package/lib/services/custom-pages.js +125 -0
  149. package/lib/services/custom-pages.js.map +1 -0
  150. package/lib/services/d1.d.ts +326 -0
  151. package/lib/services/d1.d.ts.map +1 -0
  152. package/lib/services/d1.js +448 -0
  153. package/lib/services/d1.js.map +1 -0
  154. package/lib/services/dcv-delegation.d.ts +24 -0
  155. package/lib/services/dcv-delegation.d.ts.map +1 -0
  156. package/lib/services/dcv-delegation.js +24 -0
  157. package/lib/services/dcv-delegation.js.map +1 -0
  158. package/lib/services/diagnostics.d.ts +175 -0
  159. package/lib/services/diagnostics.d.ts.map +1 -0
  160. package/lib/services/diagnostics.js +273 -0
  161. package/lib/services/diagnostics.js.map +1 -0
  162. package/lib/services/dns-firewall.d.ts +288 -0
  163. package/lib/services/dns-firewall.d.ts.map +1 -0
  164. package/lib/services/dns-firewall.js +373 -0
  165. package/lib/services/dns-firewall.js.map +1 -0
  166. package/lib/services/dns.d.ts +2946 -0
  167. package/lib/services/dns.d.ts.map +1 -0
  168. package/lib/services/dns.js +4511 -0
  169. package/lib/services/dns.js.map +1 -0
  170. package/lib/services/durable-objects.d.ts +61 -0
  171. package/lib/services/durable-objects.d.ts.map +1 -0
  172. package/lib/services/durable-objects.js +66 -0
  173. package/lib/services/durable-objects.js.map +1 -0
  174. package/lib/services/email-routing.d.ts +542 -0
  175. package/lib/services/email-routing.d.ts.map +1 -0
  176. package/lib/services/email-routing.js +662 -0
  177. package/lib/services/email-routing.js.map +1 -0
  178. package/lib/services/email-security.d.ts +1131 -0
  179. package/lib/services/email-security.d.ts.map +1 -0
  180. package/lib/services/email-security.js +2065 -0
  181. package/lib/services/email-security.js.map +1 -0
  182. package/lib/services/filters.d.ts +157 -0
  183. package/lib/services/filters.d.ts.map +1 -0
  184. package/lib/services/filters.js +135 -0
  185. package/lib/services/filters.js.map +1 -0
  186. package/lib/services/firewall.d.ts +1080 -0
  187. package/lib/services/firewall.d.ts.map +1 -0
  188. package/lib/services/firewall.js +1881 -0
  189. package/lib/services/firewall.js.map +1 -0
  190. package/lib/services/healthchecks.d.ts +464 -0
  191. package/lib/services/healthchecks.d.ts.map +1 -0
  192. package/lib/services/healthchecks.js +838 -0
  193. package/lib/services/healthchecks.js.map +1 -0
  194. package/lib/services/hostnames.d.ts +74 -0
  195. package/lib/services/hostnames.d.ts.map +1 -0
  196. package/lib/services/hostnames.js +100 -0
  197. package/lib/services/hostnames.js.map +1 -0
  198. package/lib/services/hyperdrive.d.ts +203 -0
  199. package/lib/services/hyperdrive.d.ts.map +1 -0
  200. package/lib/services/hyperdrive.js +299 -0
  201. package/lib/services/hyperdrive.js.map +1 -0
  202. package/lib/services/iam.d.ts +554 -0
  203. package/lib/services/iam.d.ts.map +1 -0
  204. package/lib/services/iam.js +743 -0
  205. package/lib/services/iam.js.map +1 -0
  206. package/lib/services/images.d.ts +403 -0
  207. package/lib/services/images.d.ts.map +1 -0
  208. package/lib/services/images.js +417 -0
  209. package/lib/services/images.js.map +1 -0
  210. package/lib/services/intel.d.ts +768 -0
  211. package/lib/services/intel.d.ts.map +1 -0
  212. package/lib/services/intel.js +1179 -0
  213. package/lib/services/intel.js.map +1 -0
  214. package/lib/services/ips.d.ts +28 -0
  215. package/lib/services/ips.d.ts.map +1 -0
  216. package/lib/services/ips.js +39 -0
  217. package/lib/services/ips.js.map +1 -0
  218. package/lib/services/keyless-certificates.d.ts +177 -0
  219. package/lib/services/keyless-certificates.d.ts.map +1 -0
  220. package/lib/services/keyless-certificates.js +216 -0
  221. package/lib/services/keyless-certificates.js.map +1 -0
  222. package/lib/services/kv.d.ts +339 -0
  223. package/lib/services/kv.d.ts.map +1 -0
  224. package/lib/services/kv.js +402 -0
  225. package/lib/services/kv.js.map +1 -0
  226. package/lib/services/leaked-credential-checks.d.ts +119 -0
  227. package/lib/services/leaked-credential-checks.d.ts.map +1 -0
  228. package/lib/services/leaked-credential-checks.js +130 -0
  229. package/lib/services/leaked-credential-checks.js.map +1 -0
  230. package/lib/services/load-balancers.d.ts +1767 -0
  231. package/lib/services/load-balancers.d.ts.map +1 -0
  232. package/lib/services/load-balancers.js +3068 -0
  233. package/lib/services/load-balancers.js.map +1 -0
  234. package/lib/services/logpush.d.ts +401 -0
  235. package/lib/services/logpush.d.ts.map +1 -0
  236. package/lib/services/logpush.js +724 -0
  237. package/lib/services/logpush.js.map +1 -0
  238. package/lib/services/logs.d.ts +125 -0
  239. package/lib/services/logs.d.ts.map +1 -0
  240. package/lib/services/logs.js +145 -0
  241. package/lib/services/logs.js.map +1 -0
  242. package/lib/services/magic-cloud-networking.d.ts +1599 -0
  243. package/lib/services/magic-cloud-networking.d.ts.map +1 -0
  244. package/lib/services/magic-cloud-networking.js +5205 -0
  245. package/lib/services/magic-cloud-networking.js.map +1 -0
  246. package/lib/services/magic-network-monitoring.d.ts +379 -0
  247. package/lib/services/magic-network-monitoring.d.ts.map +1 -0
  248. package/lib/services/magic-network-monitoring.js +535 -0
  249. package/lib/services/magic-network-monitoring.js.map +1 -0
  250. package/lib/services/magic-transit.d.ts +3650 -0
  251. package/lib/services/magic-transit.d.ts.map +1 -0
  252. package/lib/services/magic-transit.js +6120 -0
  253. package/lib/services/magic-transit.js.map +1 -0
  254. package/lib/services/managed-transforms.d.ts +79 -0
  255. package/lib/services/managed-transforms.d.ts.map +1 -0
  256. package/lib/services/managed-transforms.js +107 -0
  257. package/lib/services/managed-transforms.js.map +1 -0
  258. package/lib/services/memberships.d.ts +172 -0
  259. package/lib/services/memberships.d.ts.map +1 -0
  260. package/lib/services/memberships.js +282 -0
  261. package/lib/services/memberships.js.map +1 -0
  262. package/lib/services/mtls-certificates.d.ts +140 -0
  263. package/lib/services/mtls-certificates.d.ts.map +1 -0
  264. package/lib/services/mtls-certificates.js +173 -0
  265. package/lib/services/mtls-certificates.js.map +1 -0
  266. package/lib/services/network-interconnects.d.ts +410 -0
  267. package/lib/services/network-interconnects.d.ts.map +1 -0
  268. package/lib/services/network-interconnects.js +583 -0
  269. package/lib/services/network-interconnects.js.map +1 -0
  270. package/lib/services/organizations.d.ts +201 -0
  271. package/lib/services/organizations.d.ts.map +1 -0
  272. package/lib/services/organizations.js +355 -0
  273. package/lib/services/organizations.js.map +1 -0
  274. package/lib/services/origin-ca-certificates.d.ts +99 -0
  275. package/lib/services/origin-ca-certificates.d.ts.map +1 -0
  276. package/lib/services/origin-ca-certificates.js +156 -0
  277. package/lib/services/origin-ca-certificates.js.map +1 -0
  278. package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
  279. package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
  280. package/lib/services/origin-post-quantum-encryption.js +60 -0
  281. package/lib/services/origin-post-quantum-encryption.js.map +1 -0
  282. package/lib/services/origin-tls-client-auth.d.ts +273 -0
  283. package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
  284. package/lib/services/origin-tls-client-auth.js +401 -0
  285. package/lib/services/origin-tls-client-auth.js.map +1 -0
  286. package/lib/services/page-rules.d.ts +773 -0
  287. package/lib/services/page-rules.d.ts.map +1 -0
  288. package/lib/services/page-rules.js +1365 -0
  289. package/lib/services/page-rules.js.map +1 -0
  290. package/lib/services/page-shield.d.ts +426 -0
  291. package/lib/services/page-shield.d.ts.map +1 -0
  292. package/lib/services/page-shield.js +484 -0
  293. package/lib/services/page-shield.js.map +1 -0
  294. package/lib/services/pages.d.ts +1654 -0
  295. package/lib/services/pages.d.ts.map +1 -0
  296. package/lib/services/pages.js +2954 -0
  297. package/lib/services/pages.js.map +1 -0
  298. package/lib/services/pipelines.d.ts +1461 -0
  299. package/lib/services/pipelines.d.ts.map +1 -0
  300. package/lib/services/pipelines.js +2912 -0
  301. package/lib/services/pipelines.js.map +1 -0
  302. package/lib/services/queues.d.ts +807 -0
  303. package/lib/services/queues.d.ts.map +1 -0
  304. package/lib/services/queues.js +1194 -0
  305. package/lib/services/queues.js.map +1 -0
  306. package/lib/services/r2-data-catalog.d.ts +341 -0
  307. package/lib/services/r2-data-catalog.d.ts.map +1 -0
  308. package/lib/services/r2-data-catalog.js +499 -0
  309. package/lib/services/r2-data-catalog.js.map +1 -0
  310. package/lib/services/r2.d.ts +1041 -0
  311. package/lib/services/r2.d.ts.map +1 -0
  312. package/lib/services/r2.js +1384 -0
  313. package/lib/services/r2.js.map +1 -0
  314. package/lib/services/radar.d.ts +9276 -0
  315. package/lib/services/radar.d.ts.map +1 -0
  316. package/lib/services/radar.js +20491 -0
  317. package/lib/services/radar.js.map +1 -0
  318. package/lib/services/rate-limits.d.ts +315 -0
  319. package/lib/services/rate-limits.d.ts.map +1 -0
  320. package/lib/services/rate-limits.js +521 -0
  321. package/lib/services/rate-limits.js.map +1 -0
  322. package/lib/services/realtime-kit.d.ts +2728 -0
  323. package/lib/services/realtime-kit.d.ts.map +1 -0
  324. package/lib/services/realtime-kit.js +5401 -0
  325. package/lib/services/realtime-kit.js.map +1 -0
  326. package/lib/services/registrar.d.ts +81 -0
  327. package/lib/services/registrar.d.ts.map +1 -0
  328. package/lib/services/registrar.js +154 -0
  329. package/lib/services/registrar.js.map +1 -0
  330. package/lib/services/request-tracers.d.ts +61 -0
  331. package/lib/services/request-tracers.d.ts.map +1 -0
  332. package/lib/services/request-tracers.js +82 -0
  333. package/lib/services/request-tracers.js.map +1 -0
  334. package/lib/services/resource-sharing.d.ts +540 -0
  335. package/lib/services/resource-sharing.d.ts.map +1 -0
  336. package/lib/services/resource-sharing.js +846 -0
  337. package/lib/services/resource-sharing.js.map +1 -0
  338. package/lib/services/rules.d.ts +297 -0
  339. package/lib/services/rules.d.ts.map +1 -0
  340. package/lib/services/rules.js +396 -0
  341. package/lib/services/rules.js.map +1 -0
  342. package/lib/services/rulesets.d.ts +3300 -0
  343. package/lib/services/rulesets.d.ts.map +1 -0
  344. package/lib/services/rulesets.js +7852 -0
  345. package/lib/services/rulesets.js.map +1 -0
  346. package/lib/services/rum.d.ts +289 -0
  347. package/lib/services/rum.d.ts.map +1 -0
  348. package/lib/services/rum.js +409 -0
  349. package/lib/services/rum.js.map +1 -0
  350. package/lib/services/schema-validation.d.ts +240 -0
  351. package/lib/services/schema-validation.d.ts.map +1 -0
  352. package/lib/services/schema-validation.js +306 -0
  353. package/lib/services/schema-validation.js.map +1 -0
  354. package/lib/services/secrets-store.d.ts +321 -0
  355. package/lib/services/secrets-store.d.ts.map +1 -0
  356. package/lib/services/secrets-store.js +385 -0
  357. package/lib/services/secrets-store.js.map +1 -0
  358. package/lib/services/security-center.d.ts +102 -0
  359. package/lib/services/security-center.d.ts.map +1 -0
  360. package/lib/services/security-center.js +170 -0
  361. package/lib/services/security-center.js.map +1 -0
  362. package/lib/services/security-txt.d.ts +105 -0
  363. package/lib/services/security-txt.d.ts.map +1 -0
  364. package/lib/services/security-txt.js +136 -0
  365. package/lib/services/security-txt.js.map +1 -0
  366. package/lib/services/snippets.d.ts +138 -0
  367. package/lib/services/snippets.d.ts.map +1 -0
  368. package/lib/services/snippets.js +178 -0
  369. package/lib/services/snippets.js.map +1 -0
  370. package/lib/services/spectrum.d.ts +316 -0
  371. package/lib/services/spectrum.d.ts.map +1 -0
  372. package/lib/services/spectrum.js +510 -0
  373. package/lib/services/spectrum.js.map +1 -0
  374. package/lib/services/speed.d.ts +227 -0
  375. package/lib/services/speed.d.ts.map +1 -0
  376. package/lib/services/speed.js +444 -0
  377. package/lib/services/speed.js.map +1 -0
  378. package/lib/services/ssl.d.ts +370 -0
  379. package/lib/services/ssl.d.ts.map +1 -0
  380. package/lib/services/ssl.js +732 -0
  381. package/lib/services/ssl.js.map +1 -0
  382. package/lib/services/stream.d.ts +1014 -0
  383. package/lib/services/stream.d.ts.map +1 -0
  384. package/lib/services/stream.js +1049 -0
  385. package/lib/services/stream.js.map +1 -0
  386. package/lib/services/token-validation.d.ts +547 -0
  387. package/lib/services/token-validation.d.ts.map +1 -0
  388. package/lib/services/token-validation.js +768 -0
  389. package/lib/services/token-validation.js.map +1 -0
  390. package/lib/services/turnstile.d.ts +248 -0
  391. package/lib/services/turnstile.d.ts.map +1 -0
  392. package/lib/services/turnstile.js +308 -0
  393. package/lib/services/turnstile.js.map +1 -0
  394. package/lib/services/url-normalization.d.ts +53 -0
  395. package/lib/services/url-normalization.d.ts.map +1 -0
  396. package/lib/services/url-normalization.js +52 -0
  397. package/lib/services/url-normalization.js.map +1 -0
  398. package/lib/services/url-scanner.d.ts +612 -0
  399. package/lib/services/url-scanner.d.ts.map +1 -0
  400. package/lib/services/url-scanner.js +915 -0
  401. package/lib/services/url-scanner.js.map +1 -0
  402. package/lib/services/user.d.ts +441 -0
  403. package/lib/services/user.d.ts.map +1 -0
  404. package/lib/services/user.js +567 -0
  405. package/lib/services/user.js.map +1 -0
  406. package/lib/services/vectorize.d.ts +282 -0
  407. package/lib/services/vectorize.d.ts.map +1 -0
  408. package/lib/services/vectorize.js +340 -0
  409. package/lib/services/vectorize.js.map +1 -0
  410. package/lib/services/waiting-rooms.d.ts +1009 -0
  411. package/lib/services/waiting-rooms.d.ts.map +1 -0
  412. package/lib/services/waiting-rooms.js +1757 -0
  413. package/lib/services/waiting-rooms.js.map +1 -0
  414. package/lib/services/web3.d.ts +274 -0
  415. package/lib/services/web3.d.ts.map +1 -0
  416. package/lib/services/web3.js +362 -0
  417. package/lib/services/web3.js.map +1 -0
  418. package/lib/services/workers-for-platforms.d.ts +1224 -0
  419. package/lib/services/workers-for-platforms.d.ts.map +1 -0
  420. package/lib/services/workers-for-platforms.js +2078 -0
  421. package/lib/services/workers-for-platforms.js.map +1 -0
  422. package/lib/services/workers.d.ts +3498 -0
  423. package/lib/services/workers.d.ts.map +1 -0
  424. package/lib/services/workers.js +5967 -0
  425. package/lib/services/workers.js.map +1 -0
  426. package/lib/services/workflows.d.ts +359 -0
  427. package/lib/services/workflows.d.ts.map +1 -0
  428. package/lib/services/workflows.js +516 -0
  429. package/lib/services/workflows.js.map +1 -0
  430. package/lib/services/zaraz.d.ts +300 -0
  431. package/lib/services/zaraz.d.ts.map +1 -0
  432. package/lib/services/zaraz.js +298 -0
  433. package/lib/services/zaraz.js.map +1 -0
  434. package/lib/services/zero-trust.d.ts +15449 -0
  435. package/lib/services/zero-trust.d.ts.map +1 -0
  436. package/lib/services/zero-trust.js +29194 -0
  437. package/lib/services/zero-trust.js.map +1 -0
  438. package/lib/services/zones.d.ts +1278 -0
  439. package/lib/services/zones.d.ts.map +1 -0
  440. package/lib/services/zones.js +2416 -0
  441. package/lib/services/zones.js.map +1 -0
  442. package/lib/traits.d.ts +28 -0
  443. package/lib/traits.d.ts.map +1 -0
  444. package/lib/traits.js +26 -0
  445. package/lib/traits.js.map +1 -0
  446. package/package.json +68 -5
  447. package/src/auth.ts +14 -0
  448. package/src/category.ts +1 -0
  449. package/src/client/api.ts +329 -0
  450. package/src/client/index.ts +7 -0
  451. package/src/credentials.ts +30 -0
  452. package/src/errors.ts +57 -0
  453. package/src/index.ts +9 -0
  454. package/src/retry.ts +35 -0
  455. package/src/schemas.ts +51 -0
  456. package/src/services/abuse-reports.ts +747 -0
  457. package/src/services/accounts.ts +1947 -0
  458. package/src/services/acm.ts +170 -0
  459. package/src/services/addressing.ts +3947 -0
  460. package/src/services/ai-gateway.ts +3335 -0
  461. package/src/services/ai.ts +727 -0
  462. package/src/services/aisearch.ts +4750 -0
  463. package/src/services/alerting.ts +2947 -0
  464. package/src/services/api-gateway.ts +3391 -0
  465. package/src/services/argo.ts +254 -0
  466. package/src/services/audit-logs.ts +90 -0
  467. package/src/services/billing.ts +172 -0
  468. package/src/services/bot-management.ts +541 -0
  469. package/src/services/botnet-feed.ts +193 -0
  470. package/src/services/brand-protection.ts +553 -0
  471. package/src/services/browser-rendering.ts +2707 -0
  472. package/src/services/cache.ts +827 -0
  473. package/src/services/calls.ts +483 -0
  474. package/src/services/certificate-authorities.ts +110 -0
  475. package/src/services/client-certificates.ts +718 -0
  476. package/src/services/cloud-connector.ts +181 -0
  477. package/src/services/cloudforce-one.ts +3876 -0
  478. package/src/services/connectivity.ts +629 -0
  479. package/src/services/content-scanning.ts +385 -0
  480. package/src/services/custom-certificates.ts +611 -0
  481. package/src/services/custom-hostnames.ts +2453 -0
  482. package/src/services/custom-nameservers.ts +182 -0
  483. package/src/services/custom-pages.ts +264 -0
  484. package/src/services/d1.ts +1034 -0
  485. package/src/services/dcv-delegation.ts +52 -0
  486. package/src/services/diagnostics.ts +603 -0
  487. package/src/services/dns-firewall.ts +823 -0
  488. package/src/services/dns.ts +8897 -0
  489. package/src/services/durable-objects.ts +148 -0
  490. package/src/services/email-routing.ts +1602 -0
  491. package/src/services/email-security.ts +4283 -0
  492. package/src/services/filters.ts +370 -0
  493. package/src/services/firewall.ts +3896 -0
  494. package/src/services/healthchecks.ts +1750 -0
  495. package/src/services/hostnames.ts +218 -0
  496. package/src/services/hyperdrive.ts +592 -0
  497. package/src/services/iam.ts +1668 -0
  498. package/src/services/images.ts +1086 -0
  499. package/src/services/intel.ts +2768 -0
  500. package/src/services/ips.ts +88 -0
  501. package/src/services/keyless-certificates.ts +462 -0
  502. package/src/services/kv.ts +1011 -0
  503. package/src/services/leaked-credential-checks.ts +325 -0
  504. package/src/services/load-balancers.ts +6438 -0
  505. package/src/services/logpush.ts +1667 -0
  506. package/src/services/logs.ts +375 -0
  507. package/src/services/magic-cloud-networking.ts +10020 -0
  508. package/src/services/magic-network-monitoring.ts +1156 -0
  509. package/src/services/magic-transit.ts +13050 -0
  510. package/src/services/managed-transforms.ts +237 -0
  511. package/src/services/memberships.ts +615 -0
  512. package/src/services/mtls-certificates.ts +374 -0
  513. package/src/services/network-interconnects.ts +1253 -0
  514. package/src/services/organizations.ts +674 -0
  515. package/src/services/origin-ca-certificates.ts +303 -0
  516. package/src/services/origin-post-quantum-encryption.ts +128 -0
  517. package/src/services/origin-tls-client-auth.ts +878 -0
  518. package/src/services/page-rules.ts +2612 -0
  519. package/src/services/page-shield.ts +1195 -0
  520. package/src/services/pages.ts +5709 -0
  521. package/src/services/pipelines.ts +6000 -0
  522. package/src/services/queues.ts +2629 -0
  523. package/src/services/r2-data-catalog.ts +1119 -0
  524. package/src/services/r2.ts +3348 -0
  525. package/src/services/radar.ts +42152 -0
  526. package/src/services/rate-limits.ts +1150 -0
  527. package/src/services/realtime-kit.ts +11079 -0
  528. package/src/services/registrar.ts +295 -0
  529. package/src/services/request-tracers.ts +158 -0
  530. package/src/services/resource-sharing.ts +1832 -0
  531. package/src/services/rules.ts +837 -0
  532. package/src/services/rulesets.ts +15144 -0
  533. package/src/services/rum.ts +901 -0
  534. package/src/services/schema-validation.ts +733 -0
  535. package/src/services/secrets-store.ts +860 -0
  536. package/src/services/security-center.ts +397 -0
  537. package/src/services/security-txt.ts +315 -0
  538. package/src/services/snippets.ts +420 -0
  539. package/src/services/spectrum.ts +1103 -0
  540. package/src/services/speed.ts +1056 -0
  541. package/src/services/ssl.ts +1587 -0
  542. package/src/services/stream.ts +2756 -0
  543. package/src/services/token-validation.ts +1585 -0
  544. package/src/services/turnstile.ts +643 -0
  545. package/src/services/url-normalization.ts +129 -0
  546. package/src/services/url-scanner.ts +1851 -0
  547. package/src/services/user.ts +1384 -0
  548. package/src/services/vectorize.ts +816 -0
  549. package/src/services/waiting-rooms.ts +3807 -0
  550. package/src/services/web3.ts +834 -0
  551. package/src/services/workers-for-platforms.ts +3859 -0
  552. package/src/services/workers.ts +11637 -0
  553. package/src/services/workflows.ts +1124 -0
  554. package/src/services/zaraz.ts +797 -0
  555. package/src/services/zero-trust.ts +58929 -0
  556. package/src/services/zones.ts +4875 -0
  557. package/src/traits.ts +47 -0
  558. package/bun.lock +0 -26
  559. package/index.ts +0 -1
  560. package/tsconfig.json +0 -29
@@ -0,0 +1,1049 @@
1
+ /**
2
+ * Cloudflare STREAM API
3
+ *
4
+ * Generated from Cloudflare TypeScript SDK.
5
+ * DO NOT EDIT - regenerate with: bun scripts/generate.ts --service stream
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
+ export const GetAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
12
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
13
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
14
+ }).pipe(T.Http({
15
+ method: "GET",
16
+ path: "/accounts/{account_id}/stream/{identifier}/audio",
17
+ }));
18
+ export const GetAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
19
+ default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
20
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
21
+ status: Schema.optional(Schema.Union([
22
+ Schema.Literals(["queued", "ready", "error"]),
23
+ Schema.Null,
24
+ ])),
25
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
26
+ }));
27
+ export const getAudioTrack = API.make(() => ({
28
+ input: GetAudioTrackRequest,
29
+ output: GetAudioTrackResponse,
30
+ errors: [],
31
+ }));
32
+ export const PatchAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
33
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
34
+ audioIdentifier: Schema.String.pipe(T.HttpPath("audioIdentifier")),
35
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
36
+ default: Schema.optional(Schema.Boolean),
37
+ label: Schema.optional(Schema.String),
38
+ }).pipe(T.Http({
39
+ method: "PATCH",
40
+ path: "/accounts/{account_id}/stream/{identifier}/audio/{audioIdentifier}",
41
+ }));
42
+ export const PatchAudioTrackResponse =
43
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
44
+ default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
45
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
46
+ status: Schema.optional(Schema.Union([
47
+ Schema.Literals(["queued", "ready", "error"]),
48
+ Schema.Null,
49
+ ])),
50
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
51
+ });
52
+ export const patchAudioTrack = API.make(() => ({
53
+ input: PatchAudioTrackRequest,
54
+ output: PatchAudioTrackResponse,
55
+ errors: [],
56
+ }));
57
+ export const DeleteAudioTrackRequest =
58
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
59
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
60
+ audioIdentifier: Schema.String.pipe(T.HttpPath("audioIdentifier")),
61
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
62
+ }).pipe(T.Http({
63
+ method: "DELETE",
64
+ path: "/accounts/{account_id}/stream/{identifier}/audio/{audioIdentifier}",
65
+ }));
66
+ export const DeleteAudioTrackResponse =
67
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
68
+ export const deleteAudioTrack = API.make(() => ({
69
+ input: DeleteAudioTrackRequest,
70
+ output: DeleteAudioTrackResponse,
71
+ errors: [],
72
+ }));
73
+ export const CopyAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
74
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
75
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
76
+ label: Schema.String,
77
+ url: Schema.optional(Schema.String),
78
+ }).pipe(T.Http({
79
+ method: "POST",
80
+ path: "/accounts/{account_id}/stream/{identifier}/audio/copy",
81
+ }));
82
+ export const CopyAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
83
+ default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
84
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
85
+ status: Schema.optional(Schema.Union([
86
+ Schema.Literals(["queued", "ready", "error"]),
87
+ Schema.Null,
88
+ ])),
89
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
90
+ });
91
+ export const copyAudioTrack = API.make(() => ({
92
+ input: CopyAudioTrackRequest,
93
+ output: CopyAudioTrackResponse,
94
+ errors: [],
95
+ }));
96
+ export const GetCaptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
97
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
98
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
99
+ }).pipe(T.Http({
100
+ method: "GET",
101
+ path: "/accounts/{account_id}/stream/{identifier}/captions",
102
+ }));
103
+ export const GetCaptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
104
+ generated: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
105
+ label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
106
+ language: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
107
+ status: Schema.optional(Schema.Union([
108
+ Schema.Literals(["ready", "inprogress", "error"]),
109
+ Schema.Null,
110
+ ])),
111
+ }));
112
+ export const getCaption = API.make(() => ({
113
+ input: GetCaptionRequest,
114
+ output: GetCaptionResponse,
115
+ errors: [],
116
+ }));
117
+ export const GetCaptionLanguageRequest =
118
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
119
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
120
+ language: Schema.String.pipe(T.HttpPath("language")),
121
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
122
+ }).pipe(T.Http({
123
+ method: "GET",
124
+ path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
125
+ }));
126
+ export const GetCaptionLanguageResponse =
127
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
128
+ export const getCaptionLanguage = API.make(() => ({
129
+ input: GetCaptionLanguageRequest,
130
+ output: GetCaptionLanguageResponse,
131
+ errors: [],
132
+ }));
133
+ export const CreateCaptionLanguageRequest =
134
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
135
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
136
+ language: Schema.String.pipe(T.HttpPath("language")),
137
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
138
+ }).pipe(T.Http({
139
+ method: "POST",
140
+ path: "/accounts/{account_id}/stream/{identifier}/captions/{language}/generate",
141
+ }));
142
+ export const CreateCaptionLanguageResponse =
143
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
144
+ export const createCaptionLanguage = API.make(() => ({
145
+ input: CreateCaptionLanguageRequest,
146
+ output: CreateCaptionLanguageResponse,
147
+ errors: [],
148
+ }));
149
+ export const UpdateCaptionLanguageRequest =
150
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
151
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
152
+ language: Schema.String.pipe(T.HttpPath("language")),
153
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
154
+ file: Schema.String,
155
+ }).pipe(T.Http({
156
+ method: "PUT",
157
+ path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
158
+ contentType: "multipart",
159
+ }));
160
+ export const UpdateCaptionLanguageResponse =
161
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
162
+ export const updateCaptionLanguage = API.make(() => ({
163
+ input: UpdateCaptionLanguageRequest,
164
+ output: UpdateCaptionLanguageResponse,
165
+ errors: [],
166
+ }));
167
+ export const DeleteCaptionLanguageRequest =
168
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
169
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
170
+ language: Schema.String.pipe(T.HttpPath("language")),
171
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
172
+ }).pipe(T.Http({
173
+ method: "DELETE",
174
+ path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
175
+ }));
176
+ export const DeleteCaptionLanguageResponse =
177
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
178
+ export const deleteCaptionLanguage = API.make(() => ({
179
+ input: DeleteCaptionLanguageRequest,
180
+ output: DeleteCaptionLanguageResponse,
181
+ errors: [],
182
+ }));
183
+ export const GetCaptionLanguageVttRequest =
184
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
185
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
186
+ language: Schema.String.pipe(T.HttpPath("language")),
187
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
188
+ }).pipe(T.Http({
189
+ method: "GET",
190
+ path: "/accounts/{account_id}/stream/{identifier}/captions/{language}/vtt",
191
+ }));
192
+ export const GetCaptionLanguageVttResponse =
193
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
194
+ export const getCaptionLanguageVtt = API.make(() => ({
195
+ input: GetCaptionLanguageVttRequest,
196
+ output: GetCaptionLanguageVttResponse,
197
+ errors: [],
198
+ }));
199
+ export const CreateClipRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
200
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
201
+ clippedFromVideoUID: Schema.String,
202
+ endTimeSeconds: Schema.Number,
203
+ startTimeSeconds: Schema.Number,
204
+ allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
205
+ creator: Schema.optional(Schema.String),
206
+ maxDurationSeconds: Schema.optional(Schema.Number),
207
+ requireSignedURLs: Schema.optional(Schema.Boolean),
208
+ thumbnailTimestampPct: Schema.optional(Schema.Number),
209
+ watermark: Schema.optional(Schema.Struct({
210
+ uid: Schema.optional(Schema.String),
211
+ })),
212
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/stream/clip" }));
213
+ export const CreateClipResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
214
+ allowedOrigins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
215
+ clippedFromVideoUID: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
216
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
217
+ creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
218
+ endTimeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
219
+ maxDurationSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
220
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
221
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
222
+ playback: Schema.optional(Schema.Union([
223
+ Schema.Struct({
224
+ dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
225
+ hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
226
+ }),
227
+ Schema.Null,
228
+ ])),
229
+ preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
230
+ requireSignedURLs: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
231
+ startTimeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
232
+ status: Schema.optional(Schema.Union([
233
+ Schema.Literals([
234
+ "pendingupload",
235
+ "downloading",
236
+ "queued",
237
+ "inprogress",
238
+ "ready",
239
+ "error",
240
+ "live-inprogress",
241
+ ]),
242
+ Schema.Null,
243
+ ])),
244
+ thumbnailTimestampPct: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
245
+ watermark: Schema.optional(Schema.Union([
246
+ Schema.Struct({
247
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
248
+ }),
249
+ Schema.Null,
250
+ ])),
251
+ });
252
+ export const createClip = API.make(() => ({
253
+ input: CreateClipRequest,
254
+ output: CreateClipResponse,
255
+ errors: [],
256
+ }));
257
+ export const CreateCopyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
258
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
259
+ uploadCreator: Schema.optional(Schema.String).pipe(T.HttpHeader("Upload-Creator")),
260
+ url: Schema.String,
261
+ allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
262
+ creator: Schema.optional(Schema.String),
263
+ meta: Schema.optional(Schema.Unknown),
264
+ requireSignedURLs: Schema.optional(Schema.Boolean),
265
+ scheduledDeletion: Schema.optional(Schema.String),
266
+ thumbnailTimestampPct: Schema.optional(Schema.Number),
267
+ watermark: Schema.optional(Schema.Struct({
268
+ uid: Schema.optional(Schema.String),
269
+ })),
270
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/stream/copy" }));
271
+ export const CreateCopyResponse =
272
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
273
+ export const createCopy = API.make(() => ({
274
+ input: CreateCopyRequest,
275
+ output: CreateCopyResponse,
276
+ errors: [],
277
+ }));
278
+ export const CreateDirectUploadRequest =
279
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
280
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
281
+ uploadCreator: Schema.optional(Schema.String).pipe(T.HttpHeader("Upload-Creator")),
282
+ maxDurationSeconds: Schema.Number,
283
+ allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
284
+ creator: Schema.optional(Schema.String),
285
+ expiry: Schema.optional(Schema.String),
286
+ meta: Schema.optional(Schema.Unknown),
287
+ requireSignedURLs: Schema.optional(Schema.Boolean),
288
+ scheduledDeletion: Schema.optional(Schema.String),
289
+ thumbnailTimestampPct: Schema.optional(Schema.Number),
290
+ watermark: Schema.optional(Schema.Struct({
291
+ uid: Schema.optional(Schema.String),
292
+ })),
293
+ }).pipe(T.Http({
294
+ method: "POST",
295
+ path: "/accounts/{account_id}/stream/direct_upload",
296
+ }));
297
+ export const CreateDirectUploadResponse =
298
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
299
+ scheduledDeletion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
300
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
301
+ uploadURL: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
302
+ watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
303
+ });
304
+ export const createDirectUpload = API.make(() => ({
305
+ input: CreateDirectUploadRequest,
306
+ output: CreateDirectUploadResponse,
307
+ errors: [],
308
+ }));
309
+ export const GetDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
310
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
311
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
312
+ }).pipe(T.Http({
313
+ method: "GET",
314
+ path: "/accounts/{account_id}/stream/{identifier}/downloads",
315
+ }));
316
+ export const GetDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
317
+ audio: Schema.optional(Schema.Union([
318
+ Schema.Struct({
319
+ percentComplete: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
320
+ status: Schema.optional(Schema.Union([
321
+ Schema.Literals(["ready", "inprogress", "error"]),
322
+ Schema.Null,
323
+ ])),
324
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
325
+ }),
326
+ Schema.Null,
327
+ ])),
328
+ default: Schema.optional(Schema.Union([
329
+ Schema.Struct({
330
+ percentComplete: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
331
+ status: Schema.optional(Schema.Union([
332
+ Schema.Literals(["ready", "inprogress", "error"]),
333
+ Schema.Null,
334
+ ])),
335
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
336
+ }),
337
+ Schema.Null,
338
+ ])),
339
+ });
340
+ export const getDownload = API.make(() => ({
341
+ input: GetDownloadRequest,
342
+ output: GetDownloadResponse,
343
+ errors: [],
344
+ }));
345
+ export const CreateDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
346
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
347
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
348
+ body: Schema.Unknown.pipe(T.HttpBody()),
349
+ }).pipe(T.Http({
350
+ method: "POST",
351
+ path: "/accounts/{account_id}/stream/{identifier}/downloads",
352
+ }));
353
+ export const CreateDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
354
+ percentComplete: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
355
+ status: Schema.optional(Schema.Union([
356
+ Schema.Literals(["ready", "inprogress", "error"]),
357
+ Schema.Null,
358
+ ])),
359
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
360
+ });
361
+ export const createDownload = API.make(() => ({
362
+ input: CreateDownloadRequest,
363
+ output: CreateDownloadResponse,
364
+ errors: [],
365
+ }));
366
+ export const DeleteDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
367
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
368
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
369
+ }).pipe(T.Http({
370
+ method: "DELETE",
371
+ path: "/accounts/{account_id}/stream/{identifier}/downloads",
372
+ }));
373
+ export const DeleteDownloadResponse =
374
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
375
+ export const deleteDownload = API.make(() => ({
376
+ input: DeleteDownloadRequest,
377
+ output: DeleteDownloadResponse,
378
+ errors: [],
379
+ }));
380
+ export const GetEmbedRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
381
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
382
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
383
+ }).pipe(T.Http({
384
+ method: "GET",
385
+ path: "/accounts/{account_id}/stream/{identifier}/embed",
386
+ }));
387
+ export const GetEmbedResponse =
388
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
389
+ export const getEmbed = API.make(() => ({
390
+ input: GetEmbedRequest,
391
+ output: GetEmbedResponse,
392
+ errors: [],
393
+ }));
394
+ export const GetKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
395
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
396
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/keys" }));
397
+ export const GetKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
398
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
399
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
400
+ }));
401
+ export const getKey = API.make(() => ({
402
+ input: GetKeyRequest,
403
+ output: GetKeyResponse,
404
+ errors: [],
405
+ }));
406
+ export const CreateKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
407
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
408
+ body: Schema.Unknown.pipe(T.HttpBody()),
409
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/stream/keys" }));
410
+ export const CreateKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
411
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
412
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
413
+ jwk: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
414
+ pem: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
415
+ });
416
+ export const createKey = API.make(() => ({
417
+ input: CreateKeyRequest,
418
+ output: CreateKeyResponse,
419
+ errors: [],
420
+ }));
421
+ export const DeleteKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
422
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
423
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
424
+ }).pipe(T.Http({
425
+ method: "DELETE",
426
+ path: "/accounts/{account_id}/stream/keys/{identifier}",
427
+ }));
428
+ export const DeleteKeyResponse =
429
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
430
+ export const deleteKey = API.make(() => ({
431
+ input: DeleteKeyRequest,
432
+ output: DeleteKeyResponse,
433
+ errors: [],
434
+ }));
435
+ export const GetLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
436
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
437
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
438
+ }).pipe(T.Http({
439
+ method: "GET",
440
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}",
441
+ }));
442
+ export const GetLiveInputResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
443
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
444
+ deleteRecordingAfterDays: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
445
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
446
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
447
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
448
+ });
449
+ export const getLiveInput = API.make(() => ({
450
+ input: GetLiveInputRequest,
451
+ output: GetLiveInputResponse,
452
+ errors: [],
453
+ }));
454
+ export const ListLiveInputsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
455
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
456
+ includeCounts: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("include_counts")),
457
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/live_inputs" }));
458
+ export const ListLiveInputsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
459
+ liveInputs: Schema.optional(Schema.Union([
460
+ Schema.Array(Schema.Struct({
461
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
462
+ deleteRecordingAfterDays: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
463
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
464
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
465
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
466
+ })),
467
+ Schema.Null,
468
+ ])),
469
+ range: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
470
+ total: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
471
+ });
472
+ export const listLiveInputs = API.make(() => ({
473
+ input: ListLiveInputsRequest,
474
+ output: ListLiveInputsResponse,
475
+ errors: [],
476
+ }));
477
+ export const CreateLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
478
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
479
+ defaultCreator: Schema.optional(Schema.String),
480
+ deleteRecordingAfterDays: Schema.optional(Schema.Number),
481
+ meta: Schema.optional(Schema.Unknown),
482
+ recording: Schema.optional(Schema.Struct({
483
+ allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
484
+ hideLiveViewerCount: Schema.optional(Schema.Boolean),
485
+ mode: Schema.optional(Schema.Literals(["off", "automatic"])),
486
+ requireSignedURLs: Schema.optional(Schema.Boolean),
487
+ timeoutSeconds: Schema.optional(Schema.Number),
488
+ })),
489
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/stream/live_inputs" }));
490
+ export const CreateLiveInputResponse =
491
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
492
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
493
+ deleteRecordingAfterDays: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
494
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
495
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
496
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
497
+ });
498
+ export const createLiveInput = API.make(() => ({
499
+ input: CreateLiveInputRequest,
500
+ output: CreateLiveInputResponse,
501
+ errors: [],
502
+ }));
503
+ export const UpdateLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
504
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
505
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
506
+ defaultCreator: Schema.optional(Schema.String),
507
+ deleteRecordingAfterDays: Schema.optional(Schema.Number),
508
+ meta: Schema.optional(Schema.Unknown),
509
+ recording: Schema.optional(Schema.Struct({
510
+ allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
511
+ hideLiveViewerCount: Schema.optional(Schema.Boolean),
512
+ mode: Schema.optional(Schema.Literals(["off", "automatic"])),
513
+ requireSignedURLs: Schema.optional(Schema.Boolean),
514
+ timeoutSeconds: Schema.optional(Schema.Number),
515
+ })),
516
+ }).pipe(T.Http({
517
+ method: "PUT",
518
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}",
519
+ }));
520
+ export const UpdateLiveInputResponse =
521
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
522
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
523
+ deleteRecordingAfterDays: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
524
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
525
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
526
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
527
+ });
528
+ export const updateLiveInput = API.make(() => ({
529
+ input: UpdateLiveInputRequest,
530
+ output: UpdateLiveInputResponse,
531
+ errors: [],
532
+ }));
533
+ export const DeleteLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
534
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
535
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
536
+ }).pipe(T.Http({
537
+ method: "DELETE",
538
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}",
539
+ }));
540
+ export const DeleteLiveInputResponse =
541
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
542
+ export const deleteLiveInput = API.make(() => ({
543
+ input: DeleteLiveInputRequest,
544
+ output: DeleteLiveInputResponse,
545
+ errors: [],
546
+ }));
547
+ export const ListLiveInputOutputsRequest =
548
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
549
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
550
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
551
+ }).pipe(T.Http({
552
+ method: "GET",
553
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs",
554
+ }));
555
+ export const ListLiveInputOutputsResponse =
556
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
557
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
558
+ streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
559
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
560
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
561
+ }));
562
+ export const listLiveInputOutputs = API.make(() => ({
563
+ input: ListLiveInputOutputsRequest,
564
+ output: ListLiveInputOutputsResponse,
565
+ errors: [],
566
+ }));
567
+ export const CreateLiveInputOutputRequest =
568
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
569
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
570
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
571
+ streamKey: Schema.String,
572
+ url: Schema.String,
573
+ enabled: Schema.optional(Schema.Boolean),
574
+ }).pipe(T.Http({
575
+ method: "POST",
576
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs",
577
+ }));
578
+ export const CreateLiveInputOutputResponse =
579
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
580
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
581
+ streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
582
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
583
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
584
+ });
585
+ export const createLiveInputOutput = API.make(() => ({
586
+ input: CreateLiveInputOutputRequest,
587
+ output: CreateLiveInputOutputResponse,
588
+ errors: [],
589
+ }));
590
+ export const UpdateLiveInputOutputRequest =
591
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
592
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
593
+ outputIdentifier: Schema.String.pipe(T.HttpPath("outputIdentifier")),
594
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
595
+ enabled: Schema.Boolean,
596
+ }).pipe(T.Http({
597
+ method: "PUT",
598
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs/{outputIdentifier}",
599
+ }));
600
+ export const UpdateLiveInputOutputResponse =
601
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
602
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
603
+ streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
604
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
605
+ url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
606
+ });
607
+ export const updateLiveInputOutput = API.make(() => ({
608
+ input: UpdateLiveInputOutputRequest,
609
+ output: UpdateLiveInputOutputResponse,
610
+ errors: [],
611
+ }));
612
+ export const DeleteLiveInputOutputRequest =
613
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
614
+ liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
615
+ outputIdentifier: Schema.String.pipe(T.HttpPath("outputIdentifier")),
616
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
617
+ }).pipe(T.Http({
618
+ method: "DELETE",
619
+ path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs/{outputIdentifier}",
620
+ }));
621
+ export const DeleteLiveInputOutputResponse =
622
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
623
+ export const deleteLiveInputOutput = API.make(() => ({
624
+ input: DeleteLiveInputOutputRequest,
625
+ output: DeleteLiveInputOutputResponse,
626
+ errors: [],
627
+ }));
628
+ export const GetStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
629
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
630
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
631
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/{identifier}" }));
632
+ export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
633
+ allowedOrigins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
634
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
635
+ creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
636
+ duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
637
+ input: Schema.optional(Schema.Union([
638
+ Schema.Struct({
639
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
640
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
641
+ }),
642
+ Schema.Null,
643
+ ])),
644
+ liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
645
+ maxDurationSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
646
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
647
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
648
+ playback: Schema.optional(Schema.Union([
649
+ Schema.Struct({
650
+ dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
651
+ hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
652
+ }),
653
+ Schema.Null,
654
+ ])),
655
+ preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
656
+ readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
657
+ readyToStreamAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
658
+ requireSignedURLs: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
659
+ scheduledDeletion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
660
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
661
+ status: Schema.optional(Schema.Union([
662
+ Schema.Struct({
663
+ errorReasonCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
664
+ errorReasonText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
665
+ pctComplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
666
+ state: Schema.optional(Schema.Union([
667
+ Schema.Literals([
668
+ "pendingupload",
669
+ "downloading",
670
+ "queued",
671
+ "inprogress",
672
+ "ready",
673
+ "error",
674
+ "live-inprogress",
675
+ ]),
676
+ Schema.Null,
677
+ ])),
678
+ }),
679
+ Schema.Null,
680
+ ])),
681
+ thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
682
+ thumbnailTimestampPct: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
683
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
684
+ uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
685
+ uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
686
+ watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
687
+ });
688
+ export const getStream = API.make(() => ({
689
+ input: GetStreamRequest,
690
+ output: GetStreamResponse,
691
+ errors: [],
692
+ }));
693
+ export const ListStreamsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
694
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
695
+ asc: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("asc")),
696
+ creator: Schema.optional(Schema.String).pipe(T.HttpQuery("creator")),
697
+ end: Schema.optional(Schema.String).pipe(T.HttpQuery("end")),
698
+ includeCounts: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("include_counts")),
699
+ search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
700
+ start: Schema.optional(Schema.String).pipe(T.HttpQuery("start")),
701
+ status: Schema.optional(Schema.Literals([
702
+ "pendingupload",
703
+ "downloading",
704
+ "queued",
705
+ "inprogress",
706
+ "ready",
707
+ "error",
708
+ "live-inprogress",
709
+ ])).pipe(T.HttpQuery("status")),
710
+ type: Schema.optional(Schema.String).pipe(T.HttpQuery("type")),
711
+ videoName: Schema.optional(Schema.String).pipe(T.HttpQuery("video_name")),
712
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream" }));
713
+ export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
714
+ allowedOrigins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
715
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
716
+ creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
717
+ duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
718
+ input: Schema.optional(Schema.Union([
719
+ Schema.Struct({
720
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
721
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
722
+ }),
723
+ Schema.Null,
724
+ ])),
725
+ liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
726
+ maxDurationSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
727
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
728
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
729
+ playback: Schema.optional(Schema.Union([
730
+ Schema.Struct({
731
+ dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
732
+ hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
733
+ }),
734
+ Schema.Null,
735
+ ])),
736
+ preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
737
+ readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
738
+ readyToStreamAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
739
+ requireSignedURLs: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
740
+ scheduledDeletion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
741
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
742
+ status: Schema.optional(Schema.Union([
743
+ Schema.Struct({
744
+ errorReasonCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
745
+ errorReasonText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
746
+ pctComplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
747
+ state: Schema.optional(Schema.Union([
748
+ Schema.Literals([
749
+ "pendingupload",
750
+ "downloading",
751
+ "queued",
752
+ "inprogress",
753
+ "ready",
754
+ "error",
755
+ "live-inprogress",
756
+ ]),
757
+ Schema.Null,
758
+ ])),
759
+ }),
760
+ Schema.Null,
761
+ ])),
762
+ thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
763
+ thumbnailTimestampPct: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
764
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
765
+ uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
766
+ uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
767
+ watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
768
+ }));
769
+ export const listStreams = API.make(() => ({
770
+ input: ListStreamsRequest,
771
+ output: ListStreamsResponse,
772
+ errors: [],
773
+ }));
774
+ export const CreateStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
775
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
776
+ directUser: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("direct_user")),
777
+ tusResumable: Schema.Literal("1.0.0").pipe(T.HttpHeader("Tus-Resumable")),
778
+ uploadLength: Schema.Number.pipe(T.HttpHeader("Upload-Length")),
779
+ uploadCreator: Schema.optional(Schema.String).pipe(T.HttpHeader("Upload-Creator")),
780
+ uploadMetadata: Schema.optional(Schema.String).pipe(T.HttpHeader("Upload-Metadata")),
781
+ body: Schema.Unknown.pipe(T.HttpBody()),
782
+ }).pipe(T.Http({ method: "POST", path: "/accounts/{account_id}/stream" }));
783
+ export const CreateStreamResponse =
784
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
785
+ export const createStream = API.make(() => ({
786
+ input: CreateStreamRequest,
787
+ output: CreateStreamResponse,
788
+ errors: [],
789
+ }));
790
+ export const DeleteStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
791
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
792
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
793
+ }).pipe(T.Http({
794
+ method: "DELETE",
795
+ path: "/accounts/{account_id}/stream/{identifier}",
796
+ }));
797
+ export const DeleteStreamResponse =
798
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
799
+ export const deleteStream = API.make(() => ({
800
+ input: DeleteStreamRequest,
801
+ output: DeleteStreamResponse,
802
+ errors: [],
803
+ }));
804
+ export const EditStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
805
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
806
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
807
+ allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
808
+ creator: Schema.optional(Schema.String),
809
+ maxDurationSeconds: Schema.optional(Schema.Number),
810
+ meta: Schema.optional(Schema.Unknown),
811
+ requireSignedURLs: Schema.optional(Schema.Boolean),
812
+ scheduledDeletion: Schema.optional(Schema.String),
813
+ thumbnailTimestampPct: Schema.optional(Schema.Number),
814
+ uploadExpiry: Schema.optional(Schema.String),
815
+ }).pipe(T.Http({
816
+ method: "POST",
817
+ path: "/accounts/{account_id}/stream/{identifier}",
818
+ }));
819
+ export const EditStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
820
+ allowedOrigins: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
821
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
822
+ creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
823
+ duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
824
+ input: Schema.optional(Schema.Union([
825
+ Schema.Struct({
826
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
827
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
828
+ }),
829
+ Schema.Null,
830
+ ])),
831
+ liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
832
+ maxDurationSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
833
+ meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
834
+ modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
835
+ playback: Schema.optional(Schema.Union([
836
+ Schema.Struct({
837
+ dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
838
+ hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
839
+ }),
840
+ Schema.Null,
841
+ ])),
842
+ preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
843
+ readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
844
+ readyToStreamAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
845
+ requireSignedURLs: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
846
+ scheduledDeletion: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
847
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
848
+ status: Schema.optional(Schema.Union([
849
+ Schema.Struct({
850
+ errorReasonCode: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
851
+ errorReasonText: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
852
+ pctComplete: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
853
+ state: Schema.optional(Schema.Union([
854
+ Schema.Literals([
855
+ "pendingupload",
856
+ "downloading",
857
+ "queued",
858
+ "inprogress",
859
+ "ready",
860
+ "error",
861
+ "live-inprogress",
862
+ ]),
863
+ Schema.Null,
864
+ ])),
865
+ }),
866
+ Schema.Null,
867
+ ])),
868
+ thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
869
+ thumbnailTimestampPct: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
870
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
871
+ uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
872
+ uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
873
+ watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
874
+ });
875
+ export const editStream = API.make(() => ({
876
+ input: EditStreamRequest,
877
+ output: EditStreamResponse,
878
+ errors: [],
879
+ }));
880
+ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
881
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
882
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
883
+ id: Schema.optional(Schema.String),
884
+ accessRules: Schema.optional(Schema.Array(Schema.Struct({
885
+ action: Schema.optional(Schema.Literals(["allow", "block"])),
886
+ country: Schema.optional(Schema.Array(Schema.String)),
887
+ ip: Schema.optional(Schema.Array(Schema.String)),
888
+ type: Schema.optional(Schema.Literals(["any", "ip.src", "ip.geoip.country"])),
889
+ }))),
890
+ downloadable: Schema.optional(Schema.Boolean),
891
+ exp: Schema.optional(Schema.Number),
892
+ nbf: Schema.optional(Schema.Number),
893
+ pem: Schema.optional(Schema.String),
894
+ }).pipe(T.Http({
895
+ method: "POST",
896
+ path: "/accounts/{account_id}/stream/{identifier}/token",
897
+ }));
898
+ export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
899
+ token: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
900
+ });
901
+ export const createToken = API.make(() => ({
902
+ input: CreateTokenRequest,
903
+ output: CreateTokenResponse,
904
+ errors: [],
905
+ }));
906
+ export const StorageUsageVideoRequest =
907
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
908
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
909
+ creator: Schema.optional(Schema.String).pipe(T.HttpQuery("creator")),
910
+ }).pipe(T.Http({
911
+ method: "GET",
912
+ path: "/accounts/{account_id}/stream/storage-usage",
913
+ }));
914
+ export const StorageUsageVideoResponse =
915
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
916
+ creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
917
+ totalStorageMinutes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
918
+ totalStorageMinutesLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
919
+ videoCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
920
+ });
921
+ export const storageUsageVideo = API.make(() => ({
922
+ input: StorageUsageVideoRequest,
923
+ output: StorageUsageVideoResponse,
924
+ errors: [],
925
+ }));
926
+ export const GetWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
927
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
928
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
929
+ }).pipe(T.Http({
930
+ method: "GET",
931
+ path: "/accounts/{account_id}/stream/watermarks/{identifier}",
932
+ }));
933
+ export const GetWatermarkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
934
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
935
+ downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
936
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
937
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
938
+ opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
939
+ padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
940
+ position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
941
+ scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
942
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
943
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
944
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
945
+ });
946
+ export const getWatermark = API.make(() => ({
947
+ input: GetWatermarkRequest,
948
+ output: GetWatermarkResponse,
949
+ errors: [],
950
+ }));
951
+ export const ListWatermarksRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
952
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
953
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/watermarks" }));
954
+ export const ListWatermarksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Schema.Struct({
955
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
956
+ downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
957
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
958
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
959
+ opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
960
+ padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
961
+ position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
962
+ scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
963
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
964
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
965
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
966
+ }));
967
+ export const listWatermarks = API.make(() => ({
968
+ input: ListWatermarksRequest,
969
+ output: ListWatermarksResponse,
970
+ errors: [],
971
+ }));
972
+ export const CreateWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
973
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
974
+ file: Schema.String,
975
+ name: Schema.optional(Schema.String),
976
+ opacity: Schema.optional(Schema.Number),
977
+ padding: Schema.optional(Schema.Number),
978
+ position: Schema.optional(Schema.String),
979
+ scale: Schema.optional(Schema.Number),
980
+ }).pipe(T.Http({
981
+ method: "POST",
982
+ path: "/accounts/{account_id}/stream/watermarks",
983
+ contentType: "multipart",
984
+ }));
985
+ export const CreateWatermarkResponse =
986
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
987
+ created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
988
+ downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
989
+ height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
990
+ name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
991
+ opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
992
+ padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
993
+ position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
994
+ scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
995
+ size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
996
+ uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
997
+ width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
998
+ });
999
+ export const createWatermark = API.make(() => ({
1000
+ input: CreateWatermarkRequest,
1001
+ output: CreateWatermarkResponse,
1002
+ errors: [],
1003
+ }));
1004
+ export const DeleteWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1005
+ identifier: Schema.String.pipe(T.HttpPath("identifier")),
1006
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1007
+ }).pipe(T.Http({
1008
+ method: "DELETE",
1009
+ path: "/accounts/{account_id}/stream/watermarks/{identifier}",
1010
+ }));
1011
+ export const DeleteWatermarkResponse =
1012
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
1013
+ export const deleteWatermark = API.make(() => ({
1014
+ input: DeleteWatermarkRequest,
1015
+ output: DeleteWatermarkResponse,
1016
+ errors: [],
1017
+ }));
1018
+ export const GetWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1019
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1020
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/webhook" }));
1021
+ export const GetWebhookResponse =
1022
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
1023
+ export const getWebhook = API.make(() => ({
1024
+ input: GetWebhookRequest,
1025
+ output: GetWebhookResponse,
1026
+ errors: [],
1027
+ }));
1028
+ export const PutWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1029
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1030
+ notificationUrl: Schema.String,
1031
+ }).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/stream/webhook" }));
1032
+ export const PutWebhookResponse =
1033
+ /*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
1034
+ export const putWebhook = API.make(() => ({
1035
+ input: PutWebhookRequest,
1036
+ output: PutWebhookResponse,
1037
+ errors: [],
1038
+ }));
1039
+ export const DeleteWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
1040
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
1041
+ }).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/stream/webhook" }));
1042
+ export const DeleteWebhookResponse =
1043
+ /*@__PURE__*/ /*#__PURE__*/ Schema.String;
1044
+ export const deleteWebhook = API.make(() => ({
1045
+ input: DeleteWebhookRequest,
1046
+ output: DeleteWebhookResponse,
1047
+ errors: [],
1048
+ }));
1049
+ //# sourceMappingURL=stream.js.map