@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.
- package/README.md +41 -7
- package/lib/auth.d.ts +13 -0
- package/lib/auth.d.ts.map +1 -0
- package/lib/auth.js +12 -0
- package/lib/auth.js.map +1 -0
- package/lib/category.d.ts +2 -0
- package/lib/category.d.ts.map +1 -0
- package/lib/category.js +2 -0
- package/lib/category.js.map +1 -0
- package/lib/client/api.d.ts +14 -0
- package/lib/client/api.d.ts.map +1 -0
- package/lib/client/api.js +245 -0
- package/lib/client/api.js.map +1 -0
- package/lib/client/index.d.ts +8 -0
- package/lib/client/index.d.ts.map +1 -0
- package/lib/client/index.js +8 -0
- package/lib/client/index.js.map +1 -0
- package/lib/credentials.d.ts +14 -0
- package/lib/credentials.d.ts.map +1 -0
- package/lib/credentials.js +17 -0
- package/lib/credentials.js.map +1 -0
- package/lib/errors.d.ts +37 -0
- package/lib/errors.d.ts.map +1 -0
- package/lib/errors.js +31 -0
- package/lib/errors.js.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -0
- package/lib/retry.d.ts +14 -0
- package/lib/retry.d.ts.map +1 -0
- package/lib/retry.js +14 -0
- package/lib/retry.js.map +1 -0
- package/lib/schemas.d.ts +29 -0
- package/lib/schemas.d.ts.map +1 -0
- package/lib/schemas.js +34 -0
- package/lib/schemas.js.map +1 -0
- package/lib/services/abuse-reports.d.ts +224 -0
- package/lib/services/abuse-reports.d.ts.map +1 -0
- package/lib/services/abuse-reports.js +353 -0
- package/lib/services/abuse-reports.js.map +1 -0
- package/lib/services/accounts.d.ts +682 -0
- package/lib/services/accounts.d.ts.map +1 -0
- package/lib/services/accounts.js +805 -0
- package/lib/services/accounts.js.map +1 -0
- package/lib/services/acm.d.ts +73 -0
- package/lib/services/acm.d.ts.map +1 -0
- package/lib/services/acm.js +76 -0
- package/lib/services/acm.js.map +1 -0
- package/lib/services/addressing.d.ts +1208 -0
- package/lib/services/addressing.d.ts.map +1 -0
- package/lib/services/addressing.js +1776 -0
- package/lib/services/addressing.js.map +1 -0
- package/lib/services/ai-gateway.d.ts +956 -0
- package/lib/services/ai-gateway.d.ts.map +1 -0
- package/lib/services/ai-gateway.js +1706 -0
- package/lib/services/ai-gateway.js.map +1 -0
- package/lib/services/ai.d.ts +243 -0
- package/lib/services/ai.d.ts.map +1 -0
- package/lib/services/ai.js +299 -0
- package/lib/services/ai.js.map +1 -0
- package/lib/services/aisearch.d.ts +915 -0
- package/lib/services/aisearch.d.ts.map +1 -0
- package/lib/services/aisearch.js +2425 -0
- package/lib/services/aisearch.js.map +1 -0
- package/lib/services/alerting.d.ts +718 -0
- package/lib/services/alerting.d.ts.map +1 -0
- package/lib/services/alerting.js +1388 -0
- package/lib/services/alerting.js.map +1 -0
- package/lib/services/api-gateway.d.ts +830 -0
- package/lib/services/api-gateway.d.ts.map +1 -0
- package/lib/services/api-gateway.js +1548 -0
- package/lib/services/api-gateway.js.map +1 -0
- package/lib/services/argo.d.ts +101 -0
- package/lib/services/argo.d.ts.map +1 -0
- package/lib/services/argo.js +105 -0
- package/lib/services/argo.js.map +1 -0
- package/lib/services/audit-logs.d.ts +46 -0
- package/lib/services/audit-logs.d.ts.map +1 -0
- package/lib/services/audit-logs.js +37 -0
- package/lib/services/audit-logs.js.map +1 -0
- package/lib/services/billing.d.ts +62 -0
- package/lib/services/billing.d.ts.map +1 -0
- package/lib/services/billing.js +100 -0
- package/lib/services/billing.js.map +1 -0
- package/lib/services/bot-management.d.ts +124 -0
- package/lib/services/bot-management.d.ts.map +1 -0
- package/lib/services/bot-management.js +262 -0
- package/lib/services/bot-management.js.map +1 -0
- package/lib/services/botnet-feed.d.ts +65 -0
- package/lib/services/botnet-feed.d.ts.map +1 -0
- package/lib/services/botnet-feed.js +84 -0
- package/lib/services/botnet-feed.js.map +1 -0
- package/lib/services/brand-protection.d.ts +188 -0
- package/lib/services/brand-protection.d.ts.map +1 -0
- package/lib/services/brand-protection.js +214 -0
- package/lib/services/brand-protection.js.map +1 -0
- package/lib/services/browser-rendering.d.ts +857 -0
- package/lib/services/browser-rendering.d.ts.map +1 -0
- package/lib/services/browser-rendering.js +1141 -0
- package/lib/services/browser-rendering.js.map +1 -0
- package/lib/services/cache.d.ts +287 -0
- package/lib/services/cache.d.ts.map +1 -0
- package/lib/services/cache.js +330 -0
- package/lib/services/cache.js.map +1 -0
- package/lib/services/calls.d.ts +202 -0
- package/lib/services/calls.d.ts.map +1 -0
- package/lib/services/calls.js +175 -0
- package/lib/services/calls.js.map +1 -0
- package/lib/services/certificate-authorities.d.ts +40 -0
- package/lib/services/certificate-authorities.d.ts.map +1 -0
- package/lib/services/certificate-authorities.js +49 -0
- package/lib/services/certificate-authorities.js.map +1 -0
- package/lib/services/client-certificates.d.ts +254 -0
- package/lib/services/client-certificates.d.ts.map +1 -0
- package/lib/services/client-certificates.js +350 -0
- package/lib/services/client-certificates.js.map +1 -0
- package/lib/services/cloud-connector.d.ts +59 -0
- package/lib/services/cloud-connector.d.ts.map +1 -0
- package/lib/services/cloud-connector.js +84 -0
- package/lib/services/cloud-connector.js.map +1 -0
- package/lib/services/cloudforce-one.d.ts +1318 -0
- package/lib/services/cloudforce-one.d.ts.map +1 -0
- package/lib/services/cloudforce-one.js +1684 -0
- package/lib/services/cloudforce-one.js.map +1 -0
- package/lib/services/connectivity.d.ts +248 -0
- package/lib/services/connectivity.d.ts.map +1 -0
- package/lib/services/connectivity.js +377 -0
- package/lib/services/connectivity.js.map +1 -0
- package/lib/services/content-scanning.d.ts +131 -0
- package/lib/services/content-scanning.d.ts.map +1 -0
- package/lib/services/content-scanning.js +156 -0
- package/lib/services/content-scanning.js.map +1 -0
- package/lib/services/custom-certificates.d.ts +211 -0
- package/lib/services/custom-certificates.d.ts.map +1 -0
- package/lib/services/custom-certificates.js +309 -0
- package/lib/services/custom-certificates.js.map +1 -0
- package/lib/services/custom-hostnames.d.ts +525 -0
- package/lib/services/custom-hostnames.d.ts.map +1 -0
- package/lib/services/custom-hostnames.js +1164 -0
- package/lib/services/custom-hostnames.js.map +1 -0
- package/lib/services/custom-nameservers.d.ts +67 -0
- package/lib/services/custom-nameservers.d.ts.map +1 -0
- package/lib/services/custom-nameservers.js +80 -0
- package/lib/services/custom-nameservers.js.map +1 -0
- package/lib/services/custom-pages.d.ts +74 -0
- package/lib/services/custom-pages.d.ts.map +1 -0
- package/lib/services/custom-pages.js +125 -0
- package/lib/services/custom-pages.js.map +1 -0
- package/lib/services/d1.d.ts +326 -0
- package/lib/services/d1.d.ts.map +1 -0
- package/lib/services/d1.js +448 -0
- package/lib/services/d1.js.map +1 -0
- package/lib/services/dcv-delegation.d.ts +24 -0
- package/lib/services/dcv-delegation.d.ts.map +1 -0
- package/lib/services/dcv-delegation.js +24 -0
- package/lib/services/dcv-delegation.js.map +1 -0
- package/lib/services/diagnostics.d.ts +175 -0
- package/lib/services/diagnostics.d.ts.map +1 -0
- package/lib/services/diagnostics.js +273 -0
- package/lib/services/diagnostics.js.map +1 -0
- package/lib/services/dns-firewall.d.ts +288 -0
- package/lib/services/dns-firewall.d.ts.map +1 -0
- package/lib/services/dns-firewall.js +373 -0
- package/lib/services/dns-firewall.js.map +1 -0
- package/lib/services/dns.d.ts +2946 -0
- package/lib/services/dns.d.ts.map +1 -0
- package/lib/services/dns.js +4511 -0
- package/lib/services/dns.js.map +1 -0
- package/lib/services/durable-objects.d.ts +61 -0
- package/lib/services/durable-objects.d.ts.map +1 -0
- package/lib/services/durable-objects.js +66 -0
- package/lib/services/durable-objects.js.map +1 -0
- package/lib/services/email-routing.d.ts +542 -0
- package/lib/services/email-routing.d.ts.map +1 -0
- package/lib/services/email-routing.js +662 -0
- package/lib/services/email-routing.js.map +1 -0
- package/lib/services/email-security.d.ts +1131 -0
- package/lib/services/email-security.d.ts.map +1 -0
- package/lib/services/email-security.js +2065 -0
- package/lib/services/email-security.js.map +1 -0
- package/lib/services/filters.d.ts +157 -0
- package/lib/services/filters.d.ts.map +1 -0
- package/lib/services/filters.js +135 -0
- package/lib/services/filters.js.map +1 -0
- package/lib/services/firewall.d.ts +1080 -0
- package/lib/services/firewall.d.ts.map +1 -0
- package/lib/services/firewall.js +1881 -0
- package/lib/services/firewall.js.map +1 -0
- package/lib/services/healthchecks.d.ts +464 -0
- package/lib/services/healthchecks.d.ts.map +1 -0
- package/lib/services/healthchecks.js +838 -0
- package/lib/services/healthchecks.js.map +1 -0
- package/lib/services/hostnames.d.ts +74 -0
- package/lib/services/hostnames.d.ts.map +1 -0
- package/lib/services/hostnames.js +100 -0
- package/lib/services/hostnames.js.map +1 -0
- package/lib/services/hyperdrive.d.ts +203 -0
- package/lib/services/hyperdrive.d.ts.map +1 -0
- package/lib/services/hyperdrive.js +299 -0
- package/lib/services/hyperdrive.js.map +1 -0
- package/lib/services/iam.d.ts +554 -0
- package/lib/services/iam.d.ts.map +1 -0
- package/lib/services/iam.js +743 -0
- package/lib/services/iam.js.map +1 -0
- package/lib/services/images.d.ts +403 -0
- package/lib/services/images.d.ts.map +1 -0
- package/lib/services/images.js +417 -0
- package/lib/services/images.js.map +1 -0
- package/lib/services/intel.d.ts +768 -0
- package/lib/services/intel.d.ts.map +1 -0
- package/lib/services/intel.js +1179 -0
- package/lib/services/intel.js.map +1 -0
- package/lib/services/ips.d.ts +28 -0
- package/lib/services/ips.d.ts.map +1 -0
- package/lib/services/ips.js +39 -0
- package/lib/services/ips.js.map +1 -0
- package/lib/services/keyless-certificates.d.ts +177 -0
- package/lib/services/keyless-certificates.d.ts.map +1 -0
- package/lib/services/keyless-certificates.js +216 -0
- package/lib/services/keyless-certificates.js.map +1 -0
- package/lib/services/kv.d.ts +339 -0
- package/lib/services/kv.d.ts.map +1 -0
- package/lib/services/kv.js +402 -0
- package/lib/services/kv.js.map +1 -0
- package/lib/services/leaked-credential-checks.d.ts +119 -0
- package/lib/services/leaked-credential-checks.d.ts.map +1 -0
- package/lib/services/leaked-credential-checks.js +130 -0
- package/lib/services/leaked-credential-checks.js.map +1 -0
- package/lib/services/load-balancers.d.ts +1767 -0
- package/lib/services/load-balancers.d.ts.map +1 -0
- package/lib/services/load-balancers.js +3068 -0
- package/lib/services/load-balancers.js.map +1 -0
- package/lib/services/logpush.d.ts +401 -0
- package/lib/services/logpush.d.ts.map +1 -0
- package/lib/services/logpush.js +724 -0
- package/lib/services/logpush.js.map +1 -0
- package/lib/services/logs.d.ts +125 -0
- package/lib/services/logs.d.ts.map +1 -0
- package/lib/services/logs.js +145 -0
- package/lib/services/logs.js.map +1 -0
- package/lib/services/magic-cloud-networking.d.ts +1599 -0
- package/lib/services/magic-cloud-networking.d.ts.map +1 -0
- package/lib/services/magic-cloud-networking.js +5205 -0
- package/lib/services/magic-cloud-networking.js.map +1 -0
- package/lib/services/magic-network-monitoring.d.ts +379 -0
- package/lib/services/magic-network-monitoring.d.ts.map +1 -0
- package/lib/services/magic-network-monitoring.js +535 -0
- package/lib/services/magic-network-monitoring.js.map +1 -0
- package/lib/services/magic-transit.d.ts +3650 -0
- package/lib/services/magic-transit.d.ts.map +1 -0
- package/lib/services/magic-transit.js +6120 -0
- package/lib/services/magic-transit.js.map +1 -0
- package/lib/services/managed-transforms.d.ts +79 -0
- package/lib/services/managed-transforms.d.ts.map +1 -0
- package/lib/services/managed-transforms.js +107 -0
- package/lib/services/managed-transforms.js.map +1 -0
- package/lib/services/memberships.d.ts +172 -0
- package/lib/services/memberships.d.ts.map +1 -0
- package/lib/services/memberships.js +282 -0
- package/lib/services/memberships.js.map +1 -0
- package/lib/services/mtls-certificates.d.ts +140 -0
- package/lib/services/mtls-certificates.d.ts.map +1 -0
- package/lib/services/mtls-certificates.js +173 -0
- package/lib/services/mtls-certificates.js.map +1 -0
- package/lib/services/network-interconnects.d.ts +410 -0
- package/lib/services/network-interconnects.d.ts.map +1 -0
- package/lib/services/network-interconnects.js +583 -0
- package/lib/services/network-interconnects.js.map +1 -0
- package/lib/services/organizations.d.ts +201 -0
- package/lib/services/organizations.d.ts.map +1 -0
- package/lib/services/organizations.js +355 -0
- package/lib/services/organizations.js.map +1 -0
- package/lib/services/origin-ca-certificates.d.ts +99 -0
- package/lib/services/origin-ca-certificates.d.ts.map +1 -0
- package/lib/services/origin-ca-certificates.js +156 -0
- package/lib/services/origin-ca-certificates.js.map +1 -0
- package/lib/services/origin-post-quantum-encryption.d.ts +50 -0
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -0
- package/lib/services/origin-post-quantum-encryption.js +60 -0
- package/lib/services/origin-post-quantum-encryption.js.map +1 -0
- package/lib/services/origin-tls-client-auth.d.ts +273 -0
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -0
- package/lib/services/origin-tls-client-auth.js +401 -0
- package/lib/services/origin-tls-client-auth.js.map +1 -0
- package/lib/services/page-rules.d.ts +773 -0
- package/lib/services/page-rules.d.ts.map +1 -0
- package/lib/services/page-rules.js +1365 -0
- package/lib/services/page-rules.js.map +1 -0
- package/lib/services/page-shield.d.ts +426 -0
- package/lib/services/page-shield.d.ts.map +1 -0
- package/lib/services/page-shield.js +484 -0
- package/lib/services/page-shield.js.map +1 -0
- package/lib/services/pages.d.ts +1654 -0
- package/lib/services/pages.d.ts.map +1 -0
- package/lib/services/pages.js +2954 -0
- package/lib/services/pages.js.map +1 -0
- package/lib/services/pipelines.d.ts +1461 -0
- package/lib/services/pipelines.d.ts.map +1 -0
- package/lib/services/pipelines.js +2912 -0
- package/lib/services/pipelines.js.map +1 -0
- package/lib/services/queues.d.ts +807 -0
- package/lib/services/queues.d.ts.map +1 -0
- package/lib/services/queues.js +1194 -0
- package/lib/services/queues.js.map +1 -0
- package/lib/services/r2-data-catalog.d.ts +341 -0
- package/lib/services/r2-data-catalog.d.ts.map +1 -0
- package/lib/services/r2-data-catalog.js +499 -0
- package/lib/services/r2-data-catalog.js.map +1 -0
- package/lib/services/r2.d.ts +1041 -0
- package/lib/services/r2.d.ts.map +1 -0
- package/lib/services/r2.js +1384 -0
- package/lib/services/r2.js.map +1 -0
- package/lib/services/radar.d.ts +9276 -0
- package/lib/services/radar.d.ts.map +1 -0
- package/lib/services/radar.js +20491 -0
- package/lib/services/radar.js.map +1 -0
- package/lib/services/rate-limits.d.ts +315 -0
- package/lib/services/rate-limits.d.ts.map +1 -0
- package/lib/services/rate-limits.js +521 -0
- package/lib/services/rate-limits.js.map +1 -0
- package/lib/services/realtime-kit.d.ts +2728 -0
- package/lib/services/realtime-kit.d.ts.map +1 -0
- package/lib/services/realtime-kit.js +5401 -0
- package/lib/services/realtime-kit.js.map +1 -0
- package/lib/services/registrar.d.ts +81 -0
- package/lib/services/registrar.d.ts.map +1 -0
- package/lib/services/registrar.js +154 -0
- package/lib/services/registrar.js.map +1 -0
- package/lib/services/request-tracers.d.ts +61 -0
- package/lib/services/request-tracers.d.ts.map +1 -0
- package/lib/services/request-tracers.js +82 -0
- package/lib/services/request-tracers.js.map +1 -0
- package/lib/services/resource-sharing.d.ts +540 -0
- package/lib/services/resource-sharing.d.ts.map +1 -0
- package/lib/services/resource-sharing.js +846 -0
- package/lib/services/resource-sharing.js.map +1 -0
- package/lib/services/rules.d.ts +297 -0
- package/lib/services/rules.d.ts.map +1 -0
- package/lib/services/rules.js +396 -0
- package/lib/services/rules.js.map +1 -0
- package/lib/services/rulesets.d.ts +3300 -0
- package/lib/services/rulesets.d.ts.map +1 -0
- package/lib/services/rulesets.js +7852 -0
- package/lib/services/rulesets.js.map +1 -0
- package/lib/services/rum.d.ts +289 -0
- package/lib/services/rum.d.ts.map +1 -0
- package/lib/services/rum.js +409 -0
- package/lib/services/rum.js.map +1 -0
- package/lib/services/schema-validation.d.ts +240 -0
- package/lib/services/schema-validation.d.ts.map +1 -0
- package/lib/services/schema-validation.js +306 -0
- package/lib/services/schema-validation.js.map +1 -0
- package/lib/services/secrets-store.d.ts +321 -0
- package/lib/services/secrets-store.d.ts.map +1 -0
- package/lib/services/secrets-store.js +385 -0
- package/lib/services/secrets-store.js.map +1 -0
- package/lib/services/security-center.d.ts +102 -0
- package/lib/services/security-center.d.ts.map +1 -0
- package/lib/services/security-center.js +170 -0
- package/lib/services/security-center.js.map +1 -0
- package/lib/services/security-txt.d.ts +105 -0
- package/lib/services/security-txt.d.ts.map +1 -0
- package/lib/services/security-txt.js +136 -0
- package/lib/services/security-txt.js.map +1 -0
- package/lib/services/snippets.d.ts +138 -0
- package/lib/services/snippets.d.ts.map +1 -0
- package/lib/services/snippets.js +178 -0
- package/lib/services/snippets.js.map +1 -0
- package/lib/services/spectrum.d.ts +316 -0
- package/lib/services/spectrum.d.ts.map +1 -0
- package/lib/services/spectrum.js +510 -0
- package/lib/services/spectrum.js.map +1 -0
- package/lib/services/speed.d.ts +227 -0
- package/lib/services/speed.d.ts.map +1 -0
- package/lib/services/speed.js +444 -0
- package/lib/services/speed.js.map +1 -0
- package/lib/services/ssl.d.ts +370 -0
- package/lib/services/ssl.d.ts.map +1 -0
- package/lib/services/ssl.js +732 -0
- package/lib/services/ssl.js.map +1 -0
- package/lib/services/stream.d.ts +1014 -0
- package/lib/services/stream.d.ts.map +1 -0
- package/lib/services/stream.js +1049 -0
- package/lib/services/stream.js.map +1 -0
- package/lib/services/token-validation.d.ts +547 -0
- package/lib/services/token-validation.d.ts.map +1 -0
- package/lib/services/token-validation.js +768 -0
- package/lib/services/token-validation.js.map +1 -0
- package/lib/services/turnstile.d.ts +248 -0
- package/lib/services/turnstile.d.ts.map +1 -0
- package/lib/services/turnstile.js +308 -0
- package/lib/services/turnstile.js.map +1 -0
- package/lib/services/url-normalization.d.ts +53 -0
- package/lib/services/url-normalization.d.ts.map +1 -0
- package/lib/services/url-normalization.js +52 -0
- package/lib/services/url-normalization.js.map +1 -0
- package/lib/services/url-scanner.d.ts +612 -0
- package/lib/services/url-scanner.d.ts.map +1 -0
- package/lib/services/url-scanner.js +915 -0
- package/lib/services/url-scanner.js.map +1 -0
- package/lib/services/user.d.ts +441 -0
- package/lib/services/user.d.ts.map +1 -0
- package/lib/services/user.js +567 -0
- package/lib/services/user.js.map +1 -0
- package/lib/services/vectorize.d.ts +282 -0
- package/lib/services/vectorize.d.ts.map +1 -0
- package/lib/services/vectorize.js +340 -0
- package/lib/services/vectorize.js.map +1 -0
- package/lib/services/waiting-rooms.d.ts +1009 -0
- package/lib/services/waiting-rooms.d.ts.map +1 -0
- package/lib/services/waiting-rooms.js +1757 -0
- package/lib/services/waiting-rooms.js.map +1 -0
- package/lib/services/web3.d.ts +274 -0
- package/lib/services/web3.d.ts.map +1 -0
- package/lib/services/web3.js +362 -0
- package/lib/services/web3.js.map +1 -0
- package/lib/services/workers-for-platforms.d.ts +1224 -0
- package/lib/services/workers-for-platforms.d.ts.map +1 -0
- package/lib/services/workers-for-platforms.js +2078 -0
- package/lib/services/workers-for-platforms.js.map +1 -0
- package/lib/services/workers.d.ts +3498 -0
- package/lib/services/workers.d.ts.map +1 -0
- package/lib/services/workers.js +5967 -0
- package/lib/services/workers.js.map +1 -0
- package/lib/services/workflows.d.ts +359 -0
- package/lib/services/workflows.d.ts.map +1 -0
- package/lib/services/workflows.js +516 -0
- package/lib/services/workflows.js.map +1 -0
- package/lib/services/zaraz.d.ts +300 -0
- package/lib/services/zaraz.d.ts.map +1 -0
- package/lib/services/zaraz.js +298 -0
- package/lib/services/zaraz.js.map +1 -0
- package/lib/services/zero-trust.d.ts +15449 -0
- package/lib/services/zero-trust.d.ts.map +1 -0
- package/lib/services/zero-trust.js +29194 -0
- package/lib/services/zero-trust.js.map +1 -0
- package/lib/services/zones.d.ts +1278 -0
- package/lib/services/zones.d.ts.map +1 -0
- package/lib/services/zones.js +2416 -0
- package/lib/services/zones.js.map +1 -0
- package/lib/traits.d.ts +28 -0
- package/lib/traits.d.ts.map +1 -0
- package/lib/traits.js +26 -0
- package/lib/traits.js.map +1 -0
- package/package.json +68 -5
- package/src/auth.ts +14 -0
- package/src/category.ts +1 -0
- package/src/client/api.ts +329 -0
- package/src/client/index.ts +7 -0
- package/src/credentials.ts +30 -0
- package/src/errors.ts +57 -0
- package/src/index.ts +9 -0
- package/src/retry.ts +35 -0
- package/src/schemas.ts +51 -0
- package/src/services/abuse-reports.ts +747 -0
- package/src/services/accounts.ts +1947 -0
- package/src/services/acm.ts +170 -0
- package/src/services/addressing.ts +3947 -0
- package/src/services/ai-gateway.ts +3335 -0
- package/src/services/ai.ts +727 -0
- package/src/services/aisearch.ts +4750 -0
- package/src/services/alerting.ts +2947 -0
- package/src/services/api-gateway.ts +3391 -0
- package/src/services/argo.ts +254 -0
- package/src/services/audit-logs.ts +90 -0
- package/src/services/billing.ts +172 -0
- package/src/services/bot-management.ts +541 -0
- package/src/services/botnet-feed.ts +193 -0
- package/src/services/brand-protection.ts +553 -0
- package/src/services/browser-rendering.ts +2707 -0
- package/src/services/cache.ts +827 -0
- package/src/services/calls.ts +483 -0
- package/src/services/certificate-authorities.ts +110 -0
- package/src/services/client-certificates.ts +718 -0
- package/src/services/cloud-connector.ts +181 -0
- package/src/services/cloudforce-one.ts +3876 -0
- package/src/services/connectivity.ts +629 -0
- package/src/services/content-scanning.ts +385 -0
- package/src/services/custom-certificates.ts +611 -0
- package/src/services/custom-hostnames.ts +2453 -0
- package/src/services/custom-nameservers.ts +182 -0
- package/src/services/custom-pages.ts +264 -0
- package/src/services/d1.ts +1034 -0
- package/src/services/dcv-delegation.ts +52 -0
- package/src/services/diagnostics.ts +603 -0
- package/src/services/dns-firewall.ts +823 -0
- package/src/services/dns.ts +8897 -0
- package/src/services/durable-objects.ts +148 -0
- package/src/services/email-routing.ts +1602 -0
- package/src/services/email-security.ts +4283 -0
- package/src/services/filters.ts +370 -0
- package/src/services/firewall.ts +3896 -0
- package/src/services/healthchecks.ts +1750 -0
- package/src/services/hostnames.ts +218 -0
- package/src/services/hyperdrive.ts +592 -0
- package/src/services/iam.ts +1668 -0
- package/src/services/images.ts +1086 -0
- package/src/services/intel.ts +2768 -0
- package/src/services/ips.ts +88 -0
- package/src/services/keyless-certificates.ts +462 -0
- package/src/services/kv.ts +1011 -0
- package/src/services/leaked-credential-checks.ts +325 -0
- package/src/services/load-balancers.ts +6438 -0
- package/src/services/logpush.ts +1667 -0
- package/src/services/logs.ts +375 -0
- package/src/services/magic-cloud-networking.ts +10020 -0
- package/src/services/magic-network-monitoring.ts +1156 -0
- package/src/services/magic-transit.ts +13050 -0
- package/src/services/managed-transforms.ts +237 -0
- package/src/services/memberships.ts +615 -0
- package/src/services/mtls-certificates.ts +374 -0
- package/src/services/network-interconnects.ts +1253 -0
- package/src/services/organizations.ts +674 -0
- package/src/services/origin-ca-certificates.ts +303 -0
- package/src/services/origin-post-quantum-encryption.ts +128 -0
- package/src/services/origin-tls-client-auth.ts +878 -0
- package/src/services/page-rules.ts +2612 -0
- package/src/services/page-shield.ts +1195 -0
- package/src/services/pages.ts +5709 -0
- package/src/services/pipelines.ts +6000 -0
- package/src/services/queues.ts +2629 -0
- package/src/services/r2-data-catalog.ts +1119 -0
- package/src/services/r2.ts +3348 -0
- package/src/services/radar.ts +42152 -0
- package/src/services/rate-limits.ts +1150 -0
- package/src/services/realtime-kit.ts +11079 -0
- package/src/services/registrar.ts +295 -0
- package/src/services/request-tracers.ts +158 -0
- package/src/services/resource-sharing.ts +1832 -0
- package/src/services/rules.ts +837 -0
- package/src/services/rulesets.ts +15144 -0
- package/src/services/rum.ts +901 -0
- package/src/services/schema-validation.ts +733 -0
- package/src/services/secrets-store.ts +860 -0
- package/src/services/security-center.ts +397 -0
- package/src/services/security-txt.ts +315 -0
- package/src/services/snippets.ts +420 -0
- package/src/services/spectrum.ts +1103 -0
- package/src/services/speed.ts +1056 -0
- package/src/services/ssl.ts +1587 -0
- package/src/services/stream.ts +2756 -0
- package/src/services/token-validation.ts +1585 -0
- package/src/services/turnstile.ts +643 -0
- package/src/services/url-normalization.ts +129 -0
- package/src/services/url-scanner.ts +1851 -0
- package/src/services/user.ts +1384 -0
- package/src/services/vectorize.ts +816 -0
- package/src/services/waiting-rooms.ts +3807 -0
- package/src/services/web3.ts +834 -0
- package/src/services/workers-for-platforms.ts +3859 -0
- package/src/services/workers.ts +11637 -0
- package/src/services/workflows.ts +1124 -0
- package/src/services/zaraz.ts +797 -0
- package/src/services/zero-trust.ts +58929 -0
- package/src/services/zones.ts +4875 -0
- package/src/traits.ts +47 -0
- package/bun.lock +0 -26
- package/index.ts +0 -1
- package/tsconfig.json +0 -29
|
@@ -0,0 +1,2756 @@
|
|
|
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
|
+
|
|
8
|
+
import * as Schema from "effect/Schema";
|
|
9
|
+
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
|
+
import * as API from "../client/api.ts";
|
|
11
|
+
import * as T from "../traits";
|
|
12
|
+
import type { Credentials } from "../credentials";
|
|
13
|
+
import { type DefaultErrors } from "../errors";
|
|
14
|
+
|
|
15
|
+
// =============================================================================
|
|
16
|
+
// AudioTrack
|
|
17
|
+
// =============================================================================
|
|
18
|
+
|
|
19
|
+
export interface GetAudioTrackRequest {
|
|
20
|
+
identifier: string;
|
|
21
|
+
/** The account identifier tag. */
|
|
22
|
+
accountId: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export const GetAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
26
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
27
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
28
|
+
}).pipe(
|
|
29
|
+
T.Http({
|
|
30
|
+
method: "GET",
|
|
31
|
+
path: "/accounts/{account_id}/stream/{identifier}/audio",
|
|
32
|
+
}),
|
|
33
|
+
) as unknown as Schema.Schema<GetAudioTrackRequest>;
|
|
34
|
+
|
|
35
|
+
export type GetAudioTrackResponse = {
|
|
36
|
+
default?: boolean | null;
|
|
37
|
+
label?: string | null;
|
|
38
|
+
status?: "queued" | "ready" | "error" | null;
|
|
39
|
+
uid?: string | null;
|
|
40
|
+
}[];
|
|
41
|
+
|
|
42
|
+
export const GetAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
43
|
+
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(
|
|
47
|
+
Schema.Union([
|
|
48
|
+
Schema.Literals(["queued", "ready", "error"]),
|
|
49
|
+
Schema.Null,
|
|
50
|
+
]),
|
|
51
|
+
),
|
|
52
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
53
|
+
}),
|
|
54
|
+
) as unknown as Schema.Schema<GetAudioTrackResponse>;
|
|
55
|
+
|
|
56
|
+
export type GetAudioTrackError = DefaultErrors;
|
|
57
|
+
|
|
58
|
+
export const getAudioTrack: API.OperationMethod<
|
|
59
|
+
GetAudioTrackRequest,
|
|
60
|
+
GetAudioTrackResponse,
|
|
61
|
+
GetAudioTrackError,
|
|
62
|
+
Credentials | HttpClient.HttpClient
|
|
63
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
64
|
+
input: GetAudioTrackRequest,
|
|
65
|
+
output: GetAudioTrackResponse,
|
|
66
|
+
errors: [],
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
export interface PatchAudioTrackRequest {
|
|
70
|
+
identifier: string;
|
|
71
|
+
audioIdentifier: string;
|
|
72
|
+
/** Path param: The account identifier tag. */
|
|
73
|
+
accountId: string;
|
|
74
|
+
/** Body param: Denotes whether the audio track will be played by default in a player. */
|
|
75
|
+
default?: boolean;
|
|
76
|
+
/** Body param: A string to uniquely identify the track amongst other audio track labels for the specified video. */
|
|
77
|
+
label?: string;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export const PatchAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
81
|
+
{
|
|
82
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
83
|
+
audioIdentifier: Schema.String.pipe(T.HttpPath("audioIdentifier")),
|
|
84
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
85
|
+
default: Schema.optional(Schema.Boolean),
|
|
86
|
+
label: Schema.optional(Schema.String),
|
|
87
|
+
},
|
|
88
|
+
).pipe(
|
|
89
|
+
T.Http({
|
|
90
|
+
method: "PATCH",
|
|
91
|
+
path: "/accounts/{account_id}/stream/{identifier}/audio/{audioIdentifier}",
|
|
92
|
+
}),
|
|
93
|
+
) as unknown as Schema.Schema<PatchAudioTrackRequest>;
|
|
94
|
+
|
|
95
|
+
export interface PatchAudioTrackResponse {
|
|
96
|
+
/** Denotes whether the audio track will be played by default in a player. */
|
|
97
|
+
default?: boolean | null;
|
|
98
|
+
/** A string to uniquely identify the track amongst other audio track labels for the specified video. */
|
|
99
|
+
label?: string | null;
|
|
100
|
+
/** Specifies the processing status of the video. */
|
|
101
|
+
status?: "queued" | "ready" | "error" | null;
|
|
102
|
+
/** A Cloudflare-generated unique identifier for a media item. */
|
|
103
|
+
uid?: string | null;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export const PatchAudioTrackResponse =
|
|
107
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
108
|
+
default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
109
|
+
label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
110
|
+
status: Schema.optional(
|
|
111
|
+
Schema.Union([
|
|
112
|
+
Schema.Literals(["queued", "ready", "error"]),
|
|
113
|
+
Schema.Null,
|
|
114
|
+
]),
|
|
115
|
+
),
|
|
116
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
117
|
+
}) as unknown as Schema.Schema<PatchAudioTrackResponse>;
|
|
118
|
+
|
|
119
|
+
export type PatchAudioTrackError = DefaultErrors;
|
|
120
|
+
|
|
121
|
+
export const patchAudioTrack: API.OperationMethod<
|
|
122
|
+
PatchAudioTrackRequest,
|
|
123
|
+
PatchAudioTrackResponse,
|
|
124
|
+
PatchAudioTrackError,
|
|
125
|
+
Credentials | HttpClient.HttpClient
|
|
126
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
127
|
+
input: PatchAudioTrackRequest,
|
|
128
|
+
output: PatchAudioTrackResponse,
|
|
129
|
+
errors: [],
|
|
130
|
+
}));
|
|
131
|
+
|
|
132
|
+
export interface DeleteAudioTrackRequest {
|
|
133
|
+
identifier: string;
|
|
134
|
+
audioIdentifier: string;
|
|
135
|
+
/** The account identifier tag. */
|
|
136
|
+
accountId: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export const DeleteAudioTrackRequest =
|
|
140
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
141
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
142
|
+
audioIdentifier: Schema.String.pipe(T.HttpPath("audioIdentifier")),
|
|
143
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
144
|
+
}).pipe(
|
|
145
|
+
T.Http({
|
|
146
|
+
method: "DELETE",
|
|
147
|
+
path: "/accounts/{account_id}/stream/{identifier}/audio/{audioIdentifier}",
|
|
148
|
+
}),
|
|
149
|
+
) as unknown as Schema.Schema<DeleteAudioTrackRequest>;
|
|
150
|
+
|
|
151
|
+
export type DeleteAudioTrackResponse = string;
|
|
152
|
+
|
|
153
|
+
export const DeleteAudioTrackResponse =
|
|
154
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteAudioTrackResponse>;
|
|
155
|
+
|
|
156
|
+
export type DeleteAudioTrackError = DefaultErrors;
|
|
157
|
+
|
|
158
|
+
export const deleteAudioTrack: API.OperationMethod<
|
|
159
|
+
DeleteAudioTrackRequest,
|
|
160
|
+
DeleteAudioTrackResponse,
|
|
161
|
+
DeleteAudioTrackError,
|
|
162
|
+
Credentials | HttpClient.HttpClient
|
|
163
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
164
|
+
input: DeleteAudioTrackRequest,
|
|
165
|
+
output: DeleteAudioTrackResponse,
|
|
166
|
+
errors: [],
|
|
167
|
+
}));
|
|
168
|
+
|
|
169
|
+
export interface CopyAudioTrackRequest {
|
|
170
|
+
identifier: string;
|
|
171
|
+
/** Path param: The account identifier tag. */
|
|
172
|
+
accountId: string;
|
|
173
|
+
/** Body param: A string to uniquely identify the track amongst other audio track labels for the specified video. */
|
|
174
|
+
label: string;
|
|
175
|
+
/** Body param: An audio track URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-r */
|
|
176
|
+
url?: string;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export const CopyAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
180
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
181
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
182
|
+
label: Schema.String,
|
|
183
|
+
url: Schema.optional(Schema.String),
|
|
184
|
+
}).pipe(
|
|
185
|
+
T.Http({
|
|
186
|
+
method: "POST",
|
|
187
|
+
path: "/accounts/{account_id}/stream/{identifier}/audio/copy",
|
|
188
|
+
}),
|
|
189
|
+
) as unknown as Schema.Schema<CopyAudioTrackRequest>;
|
|
190
|
+
|
|
191
|
+
export interface CopyAudioTrackResponse {
|
|
192
|
+
/** Denotes whether the audio track will be played by default in a player. */
|
|
193
|
+
default?: boolean | null;
|
|
194
|
+
/** A string to uniquely identify the track amongst other audio track labels for the specified video. */
|
|
195
|
+
label?: string | null;
|
|
196
|
+
/** Specifies the processing status of the video. */
|
|
197
|
+
status?: "queued" | "ready" | "error" | null;
|
|
198
|
+
/** A Cloudflare-generated unique identifier for a media item. */
|
|
199
|
+
uid?: string | null;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
export const CopyAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
203
|
+
{
|
|
204
|
+
default: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
205
|
+
label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
206
|
+
status: Schema.optional(
|
|
207
|
+
Schema.Union([
|
|
208
|
+
Schema.Literals(["queued", "ready", "error"]),
|
|
209
|
+
Schema.Null,
|
|
210
|
+
]),
|
|
211
|
+
),
|
|
212
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
213
|
+
},
|
|
214
|
+
) as unknown as Schema.Schema<CopyAudioTrackResponse>;
|
|
215
|
+
|
|
216
|
+
export type CopyAudioTrackError = DefaultErrors;
|
|
217
|
+
|
|
218
|
+
export const copyAudioTrack: API.OperationMethod<
|
|
219
|
+
CopyAudioTrackRequest,
|
|
220
|
+
CopyAudioTrackResponse,
|
|
221
|
+
CopyAudioTrackError,
|
|
222
|
+
Credentials | HttpClient.HttpClient
|
|
223
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
224
|
+
input: CopyAudioTrackRequest,
|
|
225
|
+
output: CopyAudioTrackResponse,
|
|
226
|
+
errors: [],
|
|
227
|
+
}));
|
|
228
|
+
|
|
229
|
+
// =============================================================================
|
|
230
|
+
// Caption
|
|
231
|
+
// =============================================================================
|
|
232
|
+
|
|
233
|
+
export interface GetCaptionRequest {
|
|
234
|
+
identifier: string;
|
|
235
|
+
/** Identifier. */
|
|
236
|
+
accountId: string;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export const GetCaptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
240
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
241
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
242
|
+
}).pipe(
|
|
243
|
+
T.Http({
|
|
244
|
+
method: "GET",
|
|
245
|
+
path: "/accounts/{account_id}/stream/{identifier}/captions",
|
|
246
|
+
}),
|
|
247
|
+
) as unknown as Schema.Schema<GetCaptionRequest>;
|
|
248
|
+
|
|
249
|
+
export type GetCaptionResponse = {
|
|
250
|
+
generated?: boolean | null;
|
|
251
|
+
label?: string | null;
|
|
252
|
+
language?: string | null;
|
|
253
|
+
status?: "ready" | "inprogress" | "error" | null;
|
|
254
|
+
}[];
|
|
255
|
+
|
|
256
|
+
export const GetCaptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
257
|
+
Schema.Struct({
|
|
258
|
+
generated: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
259
|
+
label: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
260
|
+
language: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
261
|
+
status: Schema.optional(
|
|
262
|
+
Schema.Union([
|
|
263
|
+
Schema.Literals(["ready", "inprogress", "error"]),
|
|
264
|
+
Schema.Null,
|
|
265
|
+
]),
|
|
266
|
+
),
|
|
267
|
+
}),
|
|
268
|
+
) as unknown as Schema.Schema<GetCaptionResponse>;
|
|
269
|
+
|
|
270
|
+
export type GetCaptionError = DefaultErrors;
|
|
271
|
+
|
|
272
|
+
export const getCaption: API.OperationMethod<
|
|
273
|
+
GetCaptionRequest,
|
|
274
|
+
GetCaptionResponse,
|
|
275
|
+
GetCaptionError,
|
|
276
|
+
Credentials | HttpClient.HttpClient
|
|
277
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
278
|
+
input: GetCaptionRequest,
|
|
279
|
+
output: GetCaptionResponse,
|
|
280
|
+
errors: [],
|
|
281
|
+
}));
|
|
282
|
+
|
|
283
|
+
// =============================================================================
|
|
284
|
+
// CaptionLanguage
|
|
285
|
+
// =============================================================================
|
|
286
|
+
|
|
287
|
+
export interface GetCaptionLanguageRequest {
|
|
288
|
+
identifier: string;
|
|
289
|
+
language: string;
|
|
290
|
+
/** Identifier. */
|
|
291
|
+
accountId: string;
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
export const GetCaptionLanguageRequest =
|
|
295
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
296
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
297
|
+
language: Schema.String.pipe(T.HttpPath("language")),
|
|
298
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
299
|
+
}).pipe(
|
|
300
|
+
T.Http({
|
|
301
|
+
method: "GET",
|
|
302
|
+
path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
|
|
303
|
+
}),
|
|
304
|
+
) as unknown as Schema.Schema<GetCaptionLanguageRequest>;
|
|
305
|
+
|
|
306
|
+
export type GetCaptionLanguageResponse = unknown;
|
|
307
|
+
|
|
308
|
+
export const GetCaptionLanguageResponse =
|
|
309
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetCaptionLanguageResponse>;
|
|
310
|
+
|
|
311
|
+
export type GetCaptionLanguageError = DefaultErrors;
|
|
312
|
+
|
|
313
|
+
export const getCaptionLanguage: API.OperationMethod<
|
|
314
|
+
GetCaptionLanguageRequest,
|
|
315
|
+
GetCaptionLanguageResponse,
|
|
316
|
+
GetCaptionLanguageError,
|
|
317
|
+
Credentials | HttpClient.HttpClient
|
|
318
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
319
|
+
input: GetCaptionLanguageRequest,
|
|
320
|
+
output: GetCaptionLanguageResponse,
|
|
321
|
+
errors: [],
|
|
322
|
+
}));
|
|
323
|
+
|
|
324
|
+
export interface CreateCaptionLanguageRequest {
|
|
325
|
+
identifier: string;
|
|
326
|
+
language: string;
|
|
327
|
+
/** Identifier. */
|
|
328
|
+
accountId: string;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export const CreateCaptionLanguageRequest =
|
|
332
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
333
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
334
|
+
language: Schema.String.pipe(T.HttpPath("language")),
|
|
335
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
336
|
+
}).pipe(
|
|
337
|
+
T.Http({
|
|
338
|
+
method: "POST",
|
|
339
|
+
path: "/accounts/{account_id}/stream/{identifier}/captions/{language}/generate",
|
|
340
|
+
}),
|
|
341
|
+
) as unknown as Schema.Schema<CreateCaptionLanguageRequest>;
|
|
342
|
+
|
|
343
|
+
export type CreateCaptionLanguageResponse = unknown;
|
|
344
|
+
|
|
345
|
+
export const CreateCaptionLanguageResponse =
|
|
346
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateCaptionLanguageResponse>;
|
|
347
|
+
|
|
348
|
+
export type CreateCaptionLanguageError = DefaultErrors;
|
|
349
|
+
|
|
350
|
+
export const createCaptionLanguage: API.OperationMethod<
|
|
351
|
+
CreateCaptionLanguageRequest,
|
|
352
|
+
CreateCaptionLanguageResponse,
|
|
353
|
+
CreateCaptionLanguageError,
|
|
354
|
+
Credentials | HttpClient.HttpClient
|
|
355
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
356
|
+
input: CreateCaptionLanguageRequest,
|
|
357
|
+
output: CreateCaptionLanguageResponse,
|
|
358
|
+
errors: [],
|
|
359
|
+
}));
|
|
360
|
+
|
|
361
|
+
export interface UpdateCaptionLanguageRequest {
|
|
362
|
+
identifier: string;
|
|
363
|
+
language: string;
|
|
364
|
+
/** Path param: Identifier. */
|
|
365
|
+
accountId: string;
|
|
366
|
+
/** Body param: The WebVTT file containing the caption or subtitle content. */
|
|
367
|
+
file: string;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
export const UpdateCaptionLanguageRequest =
|
|
371
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
372
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
373
|
+
language: Schema.String.pipe(T.HttpPath("language")),
|
|
374
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
375
|
+
file: Schema.String,
|
|
376
|
+
}).pipe(
|
|
377
|
+
T.Http({
|
|
378
|
+
method: "PUT",
|
|
379
|
+
path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
|
|
380
|
+
contentType: "multipart",
|
|
381
|
+
}),
|
|
382
|
+
) as unknown as Schema.Schema<UpdateCaptionLanguageRequest>;
|
|
383
|
+
|
|
384
|
+
export type UpdateCaptionLanguageResponse = unknown;
|
|
385
|
+
|
|
386
|
+
export const UpdateCaptionLanguageResponse =
|
|
387
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<UpdateCaptionLanguageResponse>;
|
|
388
|
+
|
|
389
|
+
export type UpdateCaptionLanguageError = DefaultErrors;
|
|
390
|
+
|
|
391
|
+
export const updateCaptionLanguage: API.OperationMethod<
|
|
392
|
+
UpdateCaptionLanguageRequest,
|
|
393
|
+
UpdateCaptionLanguageResponse,
|
|
394
|
+
UpdateCaptionLanguageError,
|
|
395
|
+
Credentials | HttpClient.HttpClient
|
|
396
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
397
|
+
input: UpdateCaptionLanguageRequest,
|
|
398
|
+
output: UpdateCaptionLanguageResponse,
|
|
399
|
+
errors: [],
|
|
400
|
+
}));
|
|
401
|
+
|
|
402
|
+
export interface DeleteCaptionLanguageRequest {
|
|
403
|
+
identifier: string;
|
|
404
|
+
language: string;
|
|
405
|
+
/** Identifier. */
|
|
406
|
+
accountId: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export const DeleteCaptionLanguageRequest =
|
|
410
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
411
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
412
|
+
language: Schema.String.pipe(T.HttpPath("language")),
|
|
413
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
414
|
+
}).pipe(
|
|
415
|
+
T.Http({
|
|
416
|
+
method: "DELETE",
|
|
417
|
+
path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
|
|
418
|
+
}),
|
|
419
|
+
) as unknown as Schema.Schema<DeleteCaptionLanguageRequest>;
|
|
420
|
+
|
|
421
|
+
export type DeleteCaptionLanguageResponse = string;
|
|
422
|
+
|
|
423
|
+
export const DeleteCaptionLanguageResponse =
|
|
424
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteCaptionLanguageResponse>;
|
|
425
|
+
|
|
426
|
+
export type DeleteCaptionLanguageError = DefaultErrors;
|
|
427
|
+
|
|
428
|
+
export const deleteCaptionLanguage: API.OperationMethod<
|
|
429
|
+
DeleteCaptionLanguageRequest,
|
|
430
|
+
DeleteCaptionLanguageResponse,
|
|
431
|
+
DeleteCaptionLanguageError,
|
|
432
|
+
Credentials | HttpClient.HttpClient
|
|
433
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
434
|
+
input: DeleteCaptionLanguageRequest,
|
|
435
|
+
output: DeleteCaptionLanguageResponse,
|
|
436
|
+
errors: [],
|
|
437
|
+
}));
|
|
438
|
+
|
|
439
|
+
// =============================================================================
|
|
440
|
+
// CaptionLanguageVtt
|
|
441
|
+
// =============================================================================
|
|
442
|
+
|
|
443
|
+
export interface GetCaptionLanguageVttRequest {
|
|
444
|
+
identifier: string;
|
|
445
|
+
language: string;
|
|
446
|
+
/** Identifier. */
|
|
447
|
+
accountId: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
export const GetCaptionLanguageVttRequest =
|
|
451
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
452
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
453
|
+
language: Schema.String.pipe(T.HttpPath("language")),
|
|
454
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
455
|
+
}).pipe(
|
|
456
|
+
T.Http({
|
|
457
|
+
method: "GET",
|
|
458
|
+
path: "/accounts/{account_id}/stream/{identifier}/captions/{language}/vtt",
|
|
459
|
+
}),
|
|
460
|
+
) as unknown as Schema.Schema<GetCaptionLanguageVttRequest>;
|
|
461
|
+
|
|
462
|
+
export type GetCaptionLanguageVttResponse = unknown;
|
|
463
|
+
|
|
464
|
+
export const GetCaptionLanguageVttResponse =
|
|
465
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetCaptionLanguageVttResponse>;
|
|
466
|
+
|
|
467
|
+
export type GetCaptionLanguageVttError = DefaultErrors;
|
|
468
|
+
|
|
469
|
+
export const getCaptionLanguageVtt: API.OperationMethod<
|
|
470
|
+
GetCaptionLanguageVttRequest,
|
|
471
|
+
GetCaptionLanguageVttResponse,
|
|
472
|
+
GetCaptionLanguageVttError,
|
|
473
|
+
Credentials | HttpClient.HttpClient
|
|
474
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
475
|
+
input: GetCaptionLanguageVttRequest,
|
|
476
|
+
output: GetCaptionLanguageVttResponse,
|
|
477
|
+
errors: [],
|
|
478
|
+
}));
|
|
479
|
+
|
|
480
|
+
// =============================================================================
|
|
481
|
+
// Clip
|
|
482
|
+
// =============================================================================
|
|
483
|
+
|
|
484
|
+
export interface CreateClipRequest {
|
|
485
|
+
/** Path param: The account identifier tag. */
|
|
486
|
+
accountId: string;
|
|
487
|
+
/** Body param: The unique video identifier (UID). */
|
|
488
|
+
clippedFromVideoUID: string;
|
|
489
|
+
/** Body param: Specifies the end time for the video clip in seconds. */
|
|
490
|
+
endTimeSeconds: number;
|
|
491
|
+
/** Body param: Specifies the start time for the video clip in seconds. */
|
|
492
|
+
startTimeSeconds: number;
|
|
493
|
+
/** Body param: Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
494
|
+
allowedOrigins?: string[];
|
|
495
|
+
/** Body param: A user-defined identifier for the media creator. */
|
|
496
|
+
creator?: string;
|
|
497
|
+
/** Body param: The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during proce */
|
|
498
|
+
maxDurationSeconds?: number;
|
|
499
|
+
/** Body param: Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
500
|
+
requireSignedURLs?: boolean;
|
|
501
|
+
/** Body param: The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the t */
|
|
502
|
+
thumbnailTimestampPct?: number;
|
|
503
|
+
/** Body param: */
|
|
504
|
+
watermark?: { uid?: string };
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export const CreateClipRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
508
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
509
|
+
clippedFromVideoUID: Schema.String,
|
|
510
|
+
endTimeSeconds: Schema.Number,
|
|
511
|
+
startTimeSeconds: Schema.Number,
|
|
512
|
+
allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
|
|
513
|
+
creator: Schema.optional(Schema.String),
|
|
514
|
+
maxDurationSeconds: Schema.optional(Schema.Number),
|
|
515
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
516
|
+
thumbnailTimestampPct: Schema.optional(Schema.Number),
|
|
517
|
+
watermark: Schema.optional(
|
|
518
|
+
Schema.Struct({
|
|
519
|
+
uid: Schema.optional(Schema.String),
|
|
520
|
+
}),
|
|
521
|
+
),
|
|
522
|
+
}).pipe(
|
|
523
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/stream/clip" }),
|
|
524
|
+
) as unknown as Schema.Schema<CreateClipRequest>;
|
|
525
|
+
|
|
526
|
+
export interface CreateClipResponse {
|
|
527
|
+
/** Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
528
|
+
allowedOrigins?: string[] | null;
|
|
529
|
+
/** The unique video identifier (UID). */
|
|
530
|
+
clippedFromVideoUID?: string | null;
|
|
531
|
+
/** The date and time the clip was created. */
|
|
532
|
+
created?: string | null;
|
|
533
|
+
/** A user-defined identifier for the media creator. */
|
|
534
|
+
creator?: string | null;
|
|
535
|
+
/** Specifies the end time for the video clip in seconds. */
|
|
536
|
+
endTimeSeconds?: number | null;
|
|
537
|
+
/** The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A val */
|
|
538
|
+
maxDurationSeconds?: number | null;
|
|
539
|
+
/** A user modifiable key-value store used to reference other systems of record for managing videos. */
|
|
540
|
+
meta?: unknown | null;
|
|
541
|
+
/** The date and time the live input was last modified. */
|
|
542
|
+
modified?: string | null;
|
|
543
|
+
playback?: { dash?: string | null; hls?: string | null } | null;
|
|
544
|
+
/** The video's preview page URI. This field is omitted until encoding is complete. */
|
|
545
|
+
preview?: string | null;
|
|
546
|
+
/** Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
547
|
+
requireSignedURLs?: boolean | null;
|
|
548
|
+
/** Specifies the start time for the video clip in seconds. */
|
|
549
|
+
startTimeSeconds?: number | null;
|
|
550
|
+
/** Specifies the processing status for all quality levels for a video. */
|
|
551
|
+
status?:
|
|
552
|
+
| "pendingupload"
|
|
553
|
+
| "downloading"
|
|
554
|
+
| "queued"
|
|
555
|
+
| "inprogress"
|
|
556
|
+
| "ready"
|
|
557
|
+
| "error"
|
|
558
|
+
| "live-inprogress"
|
|
559
|
+
| null;
|
|
560
|
+
/** The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duratio */
|
|
561
|
+
thumbnailTimestampPct?: number | null;
|
|
562
|
+
watermark?: { uid?: string | null } | null;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
export const CreateClipResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
566
|
+
allowedOrigins: Schema.optional(
|
|
567
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
568
|
+
),
|
|
569
|
+
clippedFromVideoUID: Schema.optional(
|
|
570
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
571
|
+
),
|
|
572
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
573
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
574
|
+
endTimeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
575
|
+
maxDurationSeconds: Schema.optional(
|
|
576
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
577
|
+
),
|
|
578
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
579
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
580
|
+
playback: Schema.optional(
|
|
581
|
+
Schema.Union([
|
|
582
|
+
Schema.Struct({
|
|
583
|
+
dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
584
|
+
hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
585
|
+
}),
|
|
586
|
+
Schema.Null,
|
|
587
|
+
]),
|
|
588
|
+
),
|
|
589
|
+
preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
590
|
+
requireSignedURLs: Schema.optional(
|
|
591
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
592
|
+
),
|
|
593
|
+
startTimeSeconds: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
594
|
+
status: Schema.optional(
|
|
595
|
+
Schema.Union([
|
|
596
|
+
Schema.Literals([
|
|
597
|
+
"pendingupload",
|
|
598
|
+
"downloading",
|
|
599
|
+
"queued",
|
|
600
|
+
"inprogress",
|
|
601
|
+
"ready",
|
|
602
|
+
"error",
|
|
603
|
+
"live-inprogress",
|
|
604
|
+
]),
|
|
605
|
+
Schema.Null,
|
|
606
|
+
]),
|
|
607
|
+
),
|
|
608
|
+
thumbnailTimestampPct: Schema.optional(
|
|
609
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
610
|
+
),
|
|
611
|
+
watermark: Schema.optional(
|
|
612
|
+
Schema.Union([
|
|
613
|
+
Schema.Struct({
|
|
614
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
615
|
+
}),
|
|
616
|
+
Schema.Null,
|
|
617
|
+
]),
|
|
618
|
+
),
|
|
619
|
+
}) as unknown as Schema.Schema<CreateClipResponse>;
|
|
620
|
+
|
|
621
|
+
export type CreateClipError = DefaultErrors;
|
|
622
|
+
|
|
623
|
+
export const createClip: API.OperationMethod<
|
|
624
|
+
CreateClipRequest,
|
|
625
|
+
CreateClipResponse,
|
|
626
|
+
CreateClipError,
|
|
627
|
+
Credentials | HttpClient.HttpClient
|
|
628
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
629
|
+
input: CreateClipRequest,
|
|
630
|
+
output: CreateClipResponse,
|
|
631
|
+
errors: [],
|
|
632
|
+
}));
|
|
633
|
+
|
|
634
|
+
// =============================================================================
|
|
635
|
+
// Copy
|
|
636
|
+
// =============================================================================
|
|
637
|
+
|
|
638
|
+
export interface CreateCopyRequest {
|
|
639
|
+
/** Path param: The account identifier tag. */
|
|
640
|
+
accountId: string;
|
|
641
|
+
/** Header param: A user-defined identifier for the media creator. */
|
|
642
|
+
uploadCreator?: string;
|
|
643
|
+
/** Body param: A video's URL. The server must be publicly routable and support `HTTP HEAD` requests and `HTTP GET` range requests. The server should respond to `HTTP HEAD` requests with a `content-range` */
|
|
644
|
+
url: string;
|
|
645
|
+
/** Body param: Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
646
|
+
allowedOrigins?: string[];
|
|
647
|
+
/** Body param: A user-defined identifier for the media creator. */
|
|
648
|
+
creator?: string;
|
|
649
|
+
/** Body param: A user modifiable key-value store used to reference other systems of record for managing videos. */
|
|
650
|
+
meta?: unknown;
|
|
651
|
+
/** Body param: Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
652
|
+
requireSignedURLs?: boolean;
|
|
653
|
+
/** Body param: Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, */
|
|
654
|
+
scheduledDeletion?: string;
|
|
655
|
+
/** Body param: The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the t */
|
|
656
|
+
thumbnailTimestampPct?: number;
|
|
657
|
+
/** Body param: */
|
|
658
|
+
watermark?: { uid?: string };
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
export const CreateCopyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
662
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
663
|
+
uploadCreator: Schema.optional(Schema.String).pipe(
|
|
664
|
+
T.HttpHeader("Upload-Creator"),
|
|
665
|
+
),
|
|
666
|
+
url: Schema.String,
|
|
667
|
+
allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
|
|
668
|
+
creator: Schema.optional(Schema.String),
|
|
669
|
+
meta: Schema.optional(Schema.Unknown),
|
|
670
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
671
|
+
scheduledDeletion: Schema.optional(Schema.String),
|
|
672
|
+
thumbnailTimestampPct: Schema.optional(Schema.Number),
|
|
673
|
+
watermark: Schema.optional(
|
|
674
|
+
Schema.Struct({
|
|
675
|
+
uid: Schema.optional(Schema.String),
|
|
676
|
+
}),
|
|
677
|
+
),
|
|
678
|
+
}).pipe(
|
|
679
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/stream/copy" }),
|
|
680
|
+
) as unknown as Schema.Schema<CreateCopyRequest>;
|
|
681
|
+
|
|
682
|
+
export type CreateCopyResponse = unknown;
|
|
683
|
+
|
|
684
|
+
export const CreateCopyResponse =
|
|
685
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateCopyResponse>;
|
|
686
|
+
|
|
687
|
+
export type CreateCopyError = DefaultErrors;
|
|
688
|
+
|
|
689
|
+
export const createCopy: API.OperationMethod<
|
|
690
|
+
CreateCopyRequest,
|
|
691
|
+
CreateCopyResponse,
|
|
692
|
+
CreateCopyError,
|
|
693
|
+
Credentials | HttpClient.HttpClient
|
|
694
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
695
|
+
input: CreateCopyRequest,
|
|
696
|
+
output: CreateCopyResponse,
|
|
697
|
+
errors: [],
|
|
698
|
+
}));
|
|
699
|
+
|
|
700
|
+
// =============================================================================
|
|
701
|
+
// DirectUpload
|
|
702
|
+
// =============================================================================
|
|
703
|
+
|
|
704
|
+
export interface CreateDirectUploadRequest {
|
|
705
|
+
/** Path param: The account identifier tag. */
|
|
706
|
+
accountId: string;
|
|
707
|
+
/** Header param: A user-defined identifier for the media creator. */
|
|
708
|
+
uploadCreator?: string;
|
|
709
|
+
/** Body param: The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during proce */
|
|
710
|
+
maxDurationSeconds: number;
|
|
711
|
+
/** Body param: Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
712
|
+
allowedOrigins?: string[];
|
|
713
|
+
/** Body param: A user-defined identifier for the media creator. */
|
|
714
|
+
creator?: string;
|
|
715
|
+
/** Body param: The date and time after upload when videos will not be accepted. */
|
|
716
|
+
expiry?: string;
|
|
717
|
+
/** Body param: A user modifiable key-value store used to reference other systems of record for managing videos. */
|
|
718
|
+
meta?: unknown;
|
|
719
|
+
/** Body param: Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
720
|
+
requireSignedURLs?: boolean;
|
|
721
|
+
/** Body param: Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, */
|
|
722
|
+
scheduledDeletion?: string;
|
|
723
|
+
/** Body param: The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the t */
|
|
724
|
+
thumbnailTimestampPct?: number;
|
|
725
|
+
/** Body param: */
|
|
726
|
+
watermark?: { uid?: string };
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
export const CreateDirectUploadRequest =
|
|
730
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
731
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
732
|
+
uploadCreator: Schema.optional(Schema.String).pipe(
|
|
733
|
+
T.HttpHeader("Upload-Creator"),
|
|
734
|
+
),
|
|
735
|
+
maxDurationSeconds: Schema.Number,
|
|
736
|
+
allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
|
|
737
|
+
creator: Schema.optional(Schema.String),
|
|
738
|
+
expiry: Schema.optional(Schema.String),
|
|
739
|
+
meta: Schema.optional(Schema.Unknown),
|
|
740
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
741
|
+
scheduledDeletion: Schema.optional(Schema.String),
|
|
742
|
+
thumbnailTimestampPct: Schema.optional(Schema.Number),
|
|
743
|
+
watermark: Schema.optional(
|
|
744
|
+
Schema.Struct({
|
|
745
|
+
uid: Schema.optional(Schema.String),
|
|
746
|
+
}),
|
|
747
|
+
),
|
|
748
|
+
}).pipe(
|
|
749
|
+
T.Http({
|
|
750
|
+
method: "POST",
|
|
751
|
+
path: "/accounts/{account_id}/stream/direct_upload",
|
|
752
|
+
}),
|
|
753
|
+
) as unknown as Schema.Schema<CreateDirectUploadRequest>;
|
|
754
|
+
|
|
755
|
+
export interface CreateDirectUploadResponse {
|
|
756
|
+
/** Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at */
|
|
757
|
+
scheduledDeletion?: string | null;
|
|
758
|
+
/** A Cloudflare-generated unique identifier for a media item. */
|
|
759
|
+
uid?: string | null;
|
|
760
|
+
/** The URL an unauthenticated upload can use for a single `HTTP POST multipart/form-data` request. */
|
|
761
|
+
uploadURL?: string | null;
|
|
762
|
+
watermark?: unknown | null;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
export const CreateDirectUploadResponse =
|
|
766
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
767
|
+
scheduledDeletion: Schema.optional(
|
|
768
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
769
|
+
),
|
|
770
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
771
|
+
uploadURL: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
772
|
+
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
773
|
+
}) as unknown as Schema.Schema<CreateDirectUploadResponse>;
|
|
774
|
+
|
|
775
|
+
export type CreateDirectUploadError = DefaultErrors;
|
|
776
|
+
|
|
777
|
+
export const createDirectUpload: API.OperationMethod<
|
|
778
|
+
CreateDirectUploadRequest,
|
|
779
|
+
CreateDirectUploadResponse,
|
|
780
|
+
CreateDirectUploadError,
|
|
781
|
+
Credentials | HttpClient.HttpClient
|
|
782
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
783
|
+
input: CreateDirectUploadRequest,
|
|
784
|
+
output: CreateDirectUploadResponse,
|
|
785
|
+
errors: [],
|
|
786
|
+
}));
|
|
787
|
+
|
|
788
|
+
// =============================================================================
|
|
789
|
+
// Download
|
|
790
|
+
// =============================================================================
|
|
791
|
+
|
|
792
|
+
export interface GetDownloadRequest {
|
|
793
|
+
identifier: string;
|
|
794
|
+
/** Identifier. */
|
|
795
|
+
accountId: string;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
export const GetDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
799
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
800
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
801
|
+
}).pipe(
|
|
802
|
+
T.Http({
|
|
803
|
+
method: "GET",
|
|
804
|
+
path: "/accounts/{account_id}/stream/{identifier}/downloads",
|
|
805
|
+
}),
|
|
806
|
+
) as unknown as Schema.Schema<GetDownloadRequest>;
|
|
807
|
+
|
|
808
|
+
export interface GetDownloadResponse {
|
|
809
|
+
/** The audio-only download. Only present if this download type has been created. */
|
|
810
|
+
audio?: {
|
|
811
|
+
percentComplete?: number | null;
|
|
812
|
+
status?: "ready" | "inprogress" | "error" | null;
|
|
813
|
+
url?: string | null;
|
|
814
|
+
} | null;
|
|
815
|
+
/** The default video download. Only present if this download type has been created. */
|
|
816
|
+
default?: {
|
|
817
|
+
percentComplete?: number | null;
|
|
818
|
+
status?: "ready" | "inprogress" | "error" | null;
|
|
819
|
+
url?: string | null;
|
|
820
|
+
} | null;
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
export const GetDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
824
|
+
audio: Schema.optional(
|
|
825
|
+
Schema.Union([
|
|
826
|
+
Schema.Struct({
|
|
827
|
+
percentComplete: Schema.optional(
|
|
828
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
829
|
+
),
|
|
830
|
+
status: Schema.optional(
|
|
831
|
+
Schema.Union([
|
|
832
|
+
Schema.Literals(["ready", "inprogress", "error"]),
|
|
833
|
+
Schema.Null,
|
|
834
|
+
]),
|
|
835
|
+
),
|
|
836
|
+
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
837
|
+
}),
|
|
838
|
+
Schema.Null,
|
|
839
|
+
]),
|
|
840
|
+
),
|
|
841
|
+
default: Schema.optional(
|
|
842
|
+
Schema.Union([
|
|
843
|
+
Schema.Struct({
|
|
844
|
+
percentComplete: Schema.optional(
|
|
845
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
846
|
+
),
|
|
847
|
+
status: Schema.optional(
|
|
848
|
+
Schema.Union([
|
|
849
|
+
Schema.Literals(["ready", "inprogress", "error"]),
|
|
850
|
+
Schema.Null,
|
|
851
|
+
]),
|
|
852
|
+
),
|
|
853
|
+
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
854
|
+
}),
|
|
855
|
+
Schema.Null,
|
|
856
|
+
]),
|
|
857
|
+
),
|
|
858
|
+
}) as unknown as Schema.Schema<GetDownloadResponse>;
|
|
859
|
+
|
|
860
|
+
export type GetDownloadError = DefaultErrors;
|
|
861
|
+
|
|
862
|
+
export const getDownload: API.OperationMethod<
|
|
863
|
+
GetDownloadRequest,
|
|
864
|
+
GetDownloadResponse,
|
|
865
|
+
GetDownloadError,
|
|
866
|
+
Credentials | HttpClient.HttpClient
|
|
867
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
868
|
+
input: GetDownloadRequest,
|
|
869
|
+
output: GetDownloadResponse,
|
|
870
|
+
errors: [],
|
|
871
|
+
}));
|
|
872
|
+
|
|
873
|
+
export interface CreateDownloadRequest {
|
|
874
|
+
identifier: string;
|
|
875
|
+
/** Path param: Identifier. */
|
|
876
|
+
accountId: string;
|
|
877
|
+
/** Body param: */
|
|
878
|
+
body: unknown;
|
|
879
|
+
}
|
|
880
|
+
|
|
881
|
+
export const CreateDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
882
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
883
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
884
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
885
|
+
}).pipe(
|
|
886
|
+
T.Http({
|
|
887
|
+
method: "POST",
|
|
888
|
+
path: "/accounts/{account_id}/stream/{identifier}/downloads",
|
|
889
|
+
}),
|
|
890
|
+
) as unknown as Schema.Schema<CreateDownloadRequest>;
|
|
891
|
+
|
|
892
|
+
export interface CreateDownloadResponse {
|
|
893
|
+
/** Indicates the progress as a percentage between 0 and 100. */
|
|
894
|
+
percentComplete?: number | null;
|
|
895
|
+
/** The status of a generated download. */
|
|
896
|
+
status?: "ready" | "inprogress" | "error" | null;
|
|
897
|
+
/** The URL to access the generated download. */
|
|
898
|
+
url?: string | null;
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export const CreateDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
902
|
+
{
|
|
903
|
+
percentComplete: Schema.optional(
|
|
904
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
905
|
+
),
|
|
906
|
+
status: Schema.optional(
|
|
907
|
+
Schema.Union([
|
|
908
|
+
Schema.Literals(["ready", "inprogress", "error"]),
|
|
909
|
+
Schema.Null,
|
|
910
|
+
]),
|
|
911
|
+
),
|
|
912
|
+
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
913
|
+
},
|
|
914
|
+
) as unknown as Schema.Schema<CreateDownloadResponse>;
|
|
915
|
+
|
|
916
|
+
export type CreateDownloadError = DefaultErrors;
|
|
917
|
+
|
|
918
|
+
export const createDownload: API.OperationMethod<
|
|
919
|
+
CreateDownloadRequest,
|
|
920
|
+
CreateDownloadResponse,
|
|
921
|
+
CreateDownloadError,
|
|
922
|
+
Credentials | HttpClient.HttpClient
|
|
923
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
924
|
+
input: CreateDownloadRequest,
|
|
925
|
+
output: CreateDownloadResponse,
|
|
926
|
+
errors: [],
|
|
927
|
+
}));
|
|
928
|
+
|
|
929
|
+
export interface DeleteDownloadRequest {
|
|
930
|
+
identifier: string;
|
|
931
|
+
/** Identifier. */
|
|
932
|
+
accountId: string;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
export const DeleteDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
936
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
937
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
938
|
+
}).pipe(
|
|
939
|
+
T.Http({
|
|
940
|
+
method: "DELETE",
|
|
941
|
+
path: "/accounts/{account_id}/stream/{identifier}/downloads",
|
|
942
|
+
}),
|
|
943
|
+
) as unknown as Schema.Schema<DeleteDownloadRequest>;
|
|
944
|
+
|
|
945
|
+
export type DeleteDownloadResponse = string;
|
|
946
|
+
|
|
947
|
+
export const DeleteDownloadResponse =
|
|
948
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteDownloadResponse>;
|
|
949
|
+
|
|
950
|
+
export type DeleteDownloadError = DefaultErrors;
|
|
951
|
+
|
|
952
|
+
export const deleteDownload: API.OperationMethod<
|
|
953
|
+
DeleteDownloadRequest,
|
|
954
|
+
DeleteDownloadResponse,
|
|
955
|
+
DeleteDownloadError,
|
|
956
|
+
Credentials | HttpClient.HttpClient
|
|
957
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
958
|
+
input: DeleteDownloadRequest,
|
|
959
|
+
output: DeleteDownloadResponse,
|
|
960
|
+
errors: [],
|
|
961
|
+
}));
|
|
962
|
+
|
|
963
|
+
// =============================================================================
|
|
964
|
+
// Embed
|
|
965
|
+
// =============================================================================
|
|
966
|
+
|
|
967
|
+
export interface GetEmbedRequest {
|
|
968
|
+
identifier: string;
|
|
969
|
+
/** The account identifier tag. */
|
|
970
|
+
accountId: string;
|
|
971
|
+
}
|
|
972
|
+
|
|
973
|
+
export const GetEmbedRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
974
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
975
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
976
|
+
}).pipe(
|
|
977
|
+
T.Http({
|
|
978
|
+
method: "GET",
|
|
979
|
+
path: "/accounts/{account_id}/stream/{identifier}/embed",
|
|
980
|
+
}),
|
|
981
|
+
) as unknown as Schema.Schema<GetEmbedRequest>;
|
|
982
|
+
|
|
983
|
+
export type GetEmbedResponse = unknown;
|
|
984
|
+
|
|
985
|
+
export const GetEmbedResponse =
|
|
986
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetEmbedResponse>;
|
|
987
|
+
|
|
988
|
+
export type GetEmbedError = DefaultErrors;
|
|
989
|
+
|
|
990
|
+
export const getEmbed: API.OperationMethod<
|
|
991
|
+
GetEmbedRequest,
|
|
992
|
+
GetEmbedResponse,
|
|
993
|
+
GetEmbedError,
|
|
994
|
+
Credentials | HttpClient.HttpClient
|
|
995
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
996
|
+
input: GetEmbedRequest,
|
|
997
|
+
output: GetEmbedResponse,
|
|
998
|
+
errors: [],
|
|
999
|
+
}));
|
|
1000
|
+
|
|
1001
|
+
// =============================================================================
|
|
1002
|
+
// Key
|
|
1003
|
+
// =============================================================================
|
|
1004
|
+
|
|
1005
|
+
export interface GetKeyRequest {
|
|
1006
|
+
/** Identifier. */
|
|
1007
|
+
accountId: string;
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
export const GetKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1011
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1012
|
+
}).pipe(
|
|
1013
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/stream/keys" }),
|
|
1014
|
+
) as unknown as Schema.Schema<GetKeyRequest>;
|
|
1015
|
+
|
|
1016
|
+
export type GetKeyResponse = { id?: string | null; created?: string | null }[];
|
|
1017
|
+
|
|
1018
|
+
export const GetKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1019
|
+
Schema.Struct({
|
|
1020
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1021
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1022
|
+
}),
|
|
1023
|
+
) as unknown as Schema.Schema<GetKeyResponse>;
|
|
1024
|
+
|
|
1025
|
+
export type GetKeyError = DefaultErrors;
|
|
1026
|
+
|
|
1027
|
+
export const getKey: API.OperationMethod<
|
|
1028
|
+
GetKeyRequest,
|
|
1029
|
+
GetKeyResponse,
|
|
1030
|
+
GetKeyError,
|
|
1031
|
+
Credentials | HttpClient.HttpClient
|
|
1032
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1033
|
+
input: GetKeyRequest,
|
|
1034
|
+
output: GetKeyResponse,
|
|
1035
|
+
errors: [],
|
|
1036
|
+
}));
|
|
1037
|
+
|
|
1038
|
+
export interface CreateKeyRequest {
|
|
1039
|
+
/** Path param: Identifier. */
|
|
1040
|
+
accountId: string;
|
|
1041
|
+
/** Body param: */
|
|
1042
|
+
body: unknown;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
export const CreateKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1046
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1047
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
1048
|
+
}).pipe(
|
|
1049
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/stream/keys" }),
|
|
1050
|
+
) as unknown as Schema.Schema<CreateKeyRequest>;
|
|
1051
|
+
|
|
1052
|
+
export interface CreateKeyResponse {
|
|
1053
|
+
/** Identifier. */
|
|
1054
|
+
id?: string | null;
|
|
1055
|
+
/** The date and time a signing key was created. */
|
|
1056
|
+
created?: string | null;
|
|
1057
|
+
/** The signing key in JWK format. */
|
|
1058
|
+
jwk?: string | null;
|
|
1059
|
+
/** The signing key in PEM format. */
|
|
1060
|
+
pem?: string | null;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
export const CreateKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1064
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1065
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1066
|
+
jwk: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1067
|
+
pem: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1068
|
+
}) as unknown as Schema.Schema<CreateKeyResponse>;
|
|
1069
|
+
|
|
1070
|
+
export type CreateKeyError = DefaultErrors;
|
|
1071
|
+
|
|
1072
|
+
export const createKey: API.OperationMethod<
|
|
1073
|
+
CreateKeyRequest,
|
|
1074
|
+
CreateKeyResponse,
|
|
1075
|
+
CreateKeyError,
|
|
1076
|
+
Credentials | HttpClient.HttpClient
|
|
1077
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1078
|
+
input: CreateKeyRequest,
|
|
1079
|
+
output: CreateKeyResponse,
|
|
1080
|
+
errors: [],
|
|
1081
|
+
}));
|
|
1082
|
+
|
|
1083
|
+
export interface DeleteKeyRequest {
|
|
1084
|
+
identifier: string;
|
|
1085
|
+
/** Identifier. */
|
|
1086
|
+
accountId: string;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export const DeleteKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1090
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
1091
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1092
|
+
}).pipe(
|
|
1093
|
+
T.Http({
|
|
1094
|
+
method: "DELETE",
|
|
1095
|
+
path: "/accounts/{account_id}/stream/keys/{identifier}",
|
|
1096
|
+
}),
|
|
1097
|
+
) as unknown as Schema.Schema<DeleteKeyRequest>;
|
|
1098
|
+
|
|
1099
|
+
export type DeleteKeyResponse = string;
|
|
1100
|
+
|
|
1101
|
+
export const DeleteKeyResponse =
|
|
1102
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteKeyResponse>;
|
|
1103
|
+
|
|
1104
|
+
export type DeleteKeyError = DefaultErrors;
|
|
1105
|
+
|
|
1106
|
+
export const deleteKey: API.OperationMethod<
|
|
1107
|
+
DeleteKeyRequest,
|
|
1108
|
+
DeleteKeyResponse,
|
|
1109
|
+
DeleteKeyError,
|
|
1110
|
+
Credentials | HttpClient.HttpClient
|
|
1111
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1112
|
+
input: DeleteKeyRequest,
|
|
1113
|
+
output: DeleteKeyResponse,
|
|
1114
|
+
errors: [],
|
|
1115
|
+
}));
|
|
1116
|
+
|
|
1117
|
+
// =============================================================================
|
|
1118
|
+
// LiveInput
|
|
1119
|
+
// =============================================================================
|
|
1120
|
+
|
|
1121
|
+
export interface GetLiveInputRequest {
|
|
1122
|
+
liveInputIdentifier: string;
|
|
1123
|
+
/** Identifier. */
|
|
1124
|
+
accountId: string;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
export const GetLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1128
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1129
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1130
|
+
}).pipe(
|
|
1131
|
+
T.Http({
|
|
1132
|
+
method: "GET",
|
|
1133
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}",
|
|
1134
|
+
}),
|
|
1135
|
+
) as unknown as Schema.Schema<GetLiveInputRequest>;
|
|
1136
|
+
|
|
1137
|
+
export interface GetLiveInputResponse {
|
|
1138
|
+
/** The date and time the live input was created. */
|
|
1139
|
+
created?: string | null;
|
|
1140
|
+
/** Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for th */
|
|
1141
|
+
deleteRecordingAfterDays?: number | null;
|
|
1142
|
+
/** A user modifiable key-value store used to reference other systems of record for managing live inputs. */
|
|
1143
|
+
meta?: unknown | null;
|
|
1144
|
+
/** The date and time the live input was last modified. */
|
|
1145
|
+
modified?: string | null;
|
|
1146
|
+
/** A unique identifier for a live input. */
|
|
1147
|
+
uid?: string | null;
|
|
1148
|
+
}
|
|
1149
|
+
|
|
1150
|
+
export const GetLiveInputResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1151
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1152
|
+
deleteRecordingAfterDays: Schema.optional(
|
|
1153
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1154
|
+
),
|
|
1155
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1156
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1157
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1158
|
+
}) as unknown as Schema.Schema<GetLiveInputResponse>;
|
|
1159
|
+
|
|
1160
|
+
export type GetLiveInputError = DefaultErrors;
|
|
1161
|
+
|
|
1162
|
+
export const getLiveInput: API.OperationMethod<
|
|
1163
|
+
GetLiveInputRequest,
|
|
1164
|
+
GetLiveInputResponse,
|
|
1165
|
+
GetLiveInputError,
|
|
1166
|
+
Credentials | HttpClient.HttpClient
|
|
1167
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1168
|
+
input: GetLiveInputRequest,
|
|
1169
|
+
output: GetLiveInputResponse,
|
|
1170
|
+
errors: [],
|
|
1171
|
+
}));
|
|
1172
|
+
|
|
1173
|
+
export interface ListLiveInputsRequest {
|
|
1174
|
+
/** Path param: Identifier. */
|
|
1175
|
+
accountId: string;
|
|
1176
|
+
/** Query param: Includes the total number of videos associated with the submitted query parameters. */
|
|
1177
|
+
includeCounts?: boolean;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1180
|
+
export const ListLiveInputsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1181
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1182
|
+
includeCounts: Schema.optional(Schema.Boolean).pipe(
|
|
1183
|
+
T.HttpQuery("include_counts"),
|
|
1184
|
+
),
|
|
1185
|
+
}).pipe(
|
|
1186
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/stream/live_inputs" }),
|
|
1187
|
+
) as unknown as Schema.Schema<ListLiveInputsRequest>;
|
|
1188
|
+
|
|
1189
|
+
export interface ListLiveInputsResponse {
|
|
1190
|
+
liveInputs?:
|
|
1191
|
+
| {
|
|
1192
|
+
created?: string | null;
|
|
1193
|
+
deleteRecordingAfterDays?: number | null;
|
|
1194
|
+
meta?: unknown | null;
|
|
1195
|
+
modified?: string | null;
|
|
1196
|
+
uid?: string | null;
|
|
1197
|
+
}[]
|
|
1198
|
+
| null;
|
|
1199
|
+
/** The total number of remaining live inputs based on cursor position. */
|
|
1200
|
+
range?: number | null;
|
|
1201
|
+
/** The total number of live inputs that match the provided filters. */
|
|
1202
|
+
total?: number | null;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
export const ListLiveInputsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1206
|
+
{
|
|
1207
|
+
liveInputs: Schema.optional(
|
|
1208
|
+
Schema.Union([
|
|
1209
|
+
Schema.Array(
|
|
1210
|
+
Schema.Struct({
|
|
1211
|
+
created: Schema.optional(
|
|
1212
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1213
|
+
),
|
|
1214
|
+
deleteRecordingAfterDays: Schema.optional(
|
|
1215
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1216
|
+
),
|
|
1217
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1218
|
+
modified: Schema.optional(
|
|
1219
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1220
|
+
),
|
|
1221
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1222
|
+
}),
|
|
1223
|
+
),
|
|
1224
|
+
Schema.Null,
|
|
1225
|
+
]),
|
|
1226
|
+
),
|
|
1227
|
+
range: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1228
|
+
total: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1229
|
+
},
|
|
1230
|
+
) as unknown as Schema.Schema<ListLiveInputsResponse>;
|
|
1231
|
+
|
|
1232
|
+
export type ListLiveInputsError = DefaultErrors;
|
|
1233
|
+
|
|
1234
|
+
export const listLiveInputs: API.OperationMethod<
|
|
1235
|
+
ListLiveInputsRequest,
|
|
1236
|
+
ListLiveInputsResponse,
|
|
1237
|
+
ListLiveInputsError,
|
|
1238
|
+
Credentials | HttpClient.HttpClient
|
|
1239
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1240
|
+
input: ListLiveInputsRequest,
|
|
1241
|
+
output: ListLiveInputsResponse,
|
|
1242
|
+
errors: [],
|
|
1243
|
+
}));
|
|
1244
|
+
|
|
1245
|
+
export interface CreateLiveInputRequest {
|
|
1246
|
+
/** Path param: Identifier. */
|
|
1247
|
+
accountId: string;
|
|
1248
|
+
/** Body param: Sets the creator ID asssociated with this live input. */
|
|
1249
|
+
defaultCreator?: string;
|
|
1250
|
+
/** Body param: Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion */
|
|
1251
|
+
deleteRecordingAfterDays?: number;
|
|
1252
|
+
/** Body param: A user modifiable key-value store used to reference other systems of record for managing live inputs. */
|
|
1253
|
+
meta?: unknown;
|
|
1254
|
+
/** Body param: Records the input to a Cloudflare Stream video. Behavior depends on the mode. In most cases, the video will initially be viewable as a live video and transition to on-demand after a condit */
|
|
1255
|
+
recording?: {
|
|
1256
|
+
allowedOrigins?: string[];
|
|
1257
|
+
hideLiveViewerCount?: boolean;
|
|
1258
|
+
mode?: "off" | "automatic";
|
|
1259
|
+
requireSignedURLs?: boolean;
|
|
1260
|
+
timeoutSeconds?: number;
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
export const CreateLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1265
|
+
{
|
|
1266
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1267
|
+
defaultCreator: Schema.optional(Schema.String),
|
|
1268
|
+
deleteRecordingAfterDays: Schema.optional(Schema.Number),
|
|
1269
|
+
meta: Schema.optional(Schema.Unknown),
|
|
1270
|
+
recording: Schema.optional(
|
|
1271
|
+
Schema.Struct({
|
|
1272
|
+
allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
|
|
1273
|
+
hideLiveViewerCount: Schema.optional(Schema.Boolean),
|
|
1274
|
+
mode: Schema.optional(Schema.Literals(["off", "automatic"])),
|
|
1275
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
1276
|
+
timeoutSeconds: Schema.optional(Schema.Number),
|
|
1277
|
+
}),
|
|
1278
|
+
),
|
|
1279
|
+
},
|
|
1280
|
+
).pipe(
|
|
1281
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/stream/live_inputs" }),
|
|
1282
|
+
) as unknown as Schema.Schema<CreateLiveInputRequest>;
|
|
1283
|
+
|
|
1284
|
+
export interface CreateLiveInputResponse {
|
|
1285
|
+
/** The date and time the live input was created. */
|
|
1286
|
+
created?: string | null;
|
|
1287
|
+
/** Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for th */
|
|
1288
|
+
deleteRecordingAfterDays?: number | null;
|
|
1289
|
+
/** A user modifiable key-value store used to reference other systems of record for managing live inputs. */
|
|
1290
|
+
meta?: unknown | null;
|
|
1291
|
+
/** The date and time the live input was last modified. */
|
|
1292
|
+
modified?: string | null;
|
|
1293
|
+
/** A unique identifier for a live input. */
|
|
1294
|
+
uid?: string | null;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
export const CreateLiveInputResponse =
|
|
1298
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1299
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1300
|
+
deleteRecordingAfterDays: Schema.optional(
|
|
1301
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1302
|
+
),
|
|
1303
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1304
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1305
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1306
|
+
}) as unknown as Schema.Schema<CreateLiveInputResponse>;
|
|
1307
|
+
|
|
1308
|
+
export type CreateLiveInputError = DefaultErrors;
|
|
1309
|
+
|
|
1310
|
+
export const createLiveInput: API.OperationMethod<
|
|
1311
|
+
CreateLiveInputRequest,
|
|
1312
|
+
CreateLiveInputResponse,
|
|
1313
|
+
CreateLiveInputError,
|
|
1314
|
+
Credentials | HttpClient.HttpClient
|
|
1315
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1316
|
+
input: CreateLiveInputRequest,
|
|
1317
|
+
output: CreateLiveInputResponse,
|
|
1318
|
+
errors: [],
|
|
1319
|
+
}));
|
|
1320
|
+
|
|
1321
|
+
export interface UpdateLiveInputRequest {
|
|
1322
|
+
liveInputIdentifier: string;
|
|
1323
|
+
/** Path param: Identifier. */
|
|
1324
|
+
accountId: string;
|
|
1325
|
+
/** Body param: Sets the creator ID asssociated with this live input. */
|
|
1326
|
+
defaultCreator?: string;
|
|
1327
|
+
/** Body param: Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion */
|
|
1328
|
+
deleteRecordingAfterDays?: number;
|
|
1329
|
+
/** Body param: A user modifiable key-value store used to reference other systems of record for managing live inputs. */
|
|
1330
|
+
meta?: unknown;
|
|
1331
|
+
/** Body param: Records the input to a Cloudflare Stream video. Behavior depends on the mode. In most cases, the video will initially be viewable as a live video and transition to on-demand after a condit */
|
|
1332
|
+
recording?: {
|
|
1333
|
+
allowedOrigins?: string[];
|
|
1334
|
+
hideLiveViewerCount?: boolean;
|
|
1335
|
+
mode?: "off" | "automatic";
|
|
1336
|
+
requireSignedURLs?: boolean;
|
|
1337
|
+
timeoutSeconds?: number;
|
|
1338
|
+
};
|
|
1339
|
+
}
|
|
1340
|
+
|
|
1341
|
+
export const UpdateLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1342
|
+
{
|
|
1343
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1344
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1345
|
+
defaultCreator: Schema.optional(Schema.String),
|
|
1346
|
+
deleteRecordingAfterDays: Schema.optional(Schema.Number),
|
|
1347
|
+
meta: Schema.optional(Schema.Unknown),
|
|
1348
|
+
recording: Schema.optional(
|
|
1349
|
+
Schema.Struct({
|
|
1350
|
+
allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
|
|
1351
|
+
hideLiveViewerCount: Schema.optional(Schema.Boolean),
|
|
1352
|
+
mode: Schema.optional(Schema.Literals(["off", "automatic"])),
|
|
1353
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
1354
|
+
timeoutSeconds: Schema.optional(Schema.Number),
|
|
1355
|
+
}),
|
|
1356
|
+
),
|
|
1357
|
+
},
|
|
1358
|
+
).pipe(
|
|
1359
|
+
T.Http({
|
|
1360
|
+
method: "PUT",
|
|
1361
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}",
|
|
1362
|
+
}),
|
|
1363
|
+
) as unknown as Schema.Schema<UpdateLiveInputRequest>;
|
|
1364
|
+
|
|
1365
|
+
export interface UpdateLiveInputResponse {
|
|
1366
|
+
/** The date and time the live input was created. */
|
|
1367
|
+
created?: string | null;
|
|
1368
|
+
/** Indicates the number of days after which the live inputs recordings will be deleted. When a stream completes and the recording is ready, the value is used to calculate a scheduled deletion date for th */
|
|
1369
|
+
deleteRecordingAfterDays?: number | null;
|
|
1370
|
+
/** A user modifiable key-value store used to reference other systems of record for managing live inputs. */
|
|
1371
|
+
meta?: unknown | null;
|
|
1372
|
+
/** The date and time the live input was last modified. */
|
|
1373
|
+
modified?: string | null;
|
|
1374
|
+
/** A unique identifier for a live input. */
|
|
1375
|
+
uid?: string | null;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
export const UpdateLiveInputResponse =
|
|
1379
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1380
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1381
|
+
deleteRecordingAfterDays: Schema.optional(
|
|
1382
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1383
|
+
),
|
|
1384
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1385
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1386
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1387
|
+
}) as unknown as Schema.Schema<UpdateLiveInputResponse>;
|
|
1388
|
+
|
|
1389
|
+
export type UpdateLiveInputError = DefaultErrors;
|
|
1390
|
+
|
|
1391
|
+
export const updateLiveInput: API.OperationMethod<
|
|
1392
|
+
UpdateLiveInputRequest,
|
|
1393
|
+
UpdateLiveInputResponse,
|
|
1394
|
+
UpdateLiveInputError,
|
|
1395
|
+
Credentials | HttpClient.HttpClient
|
|
1396
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1397
|
+
input: UpdateLiveInputRequest,
|
|
1398
|
+
output: UpdateLiveInputResponse,
|
|
1399
|
+
errors: [],
|
|
1400
|
+
}));
|
|
1401
|
+
|
|
1402
|
+
export interface DeleteLiveInputRequest {
|
|
1403
|
+
liveInputIdentifier: string;
|
|
1404
|
+
/** Identifier. */
|
|
1405
|
+
accountId: string;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
export const DeleteLiveInputRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
1409
|
+
{
|
|
1410
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1411
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1412
|
+
},
|
|
1413
|
+
).pipe(
|
|
1414
|
+
T.Http({
|
|
1415
|
+
method: "DELETE",
|
|
1416
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}",
|
|
1417
|
+
}),
|
|
1418
|
+
) as unknown as Schema.Schema<DeleteLiveInputRequest>;
|
|
1419
|
+
|
|
1420
|
+
export type DeleteLiveInputResponse = unknown;
|
|
1421
|
+
|
|
1422
|
+
export const DeleteLiveInputResponse =
|
|
1423
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteLiveInputResponse>;
|
|
1424
|
+
|
|
1425
|
+
export type DeleteLiveInputError = DefaultErrors;
|
|
1426
|
+
|
|
1427
|
+
export const deleteLiveInput: API.OperationMethod<
|
|
1428
|
+
DeleteLiveInputRequest,
|
|
1429
|
+
DeleteLiveInputResponse,
|
|
1430
|
+
DeleteLiveInputError,
|
|
1431
|
+
Credentials | HttpClient.HttpClient
|
|
1432
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1433
|
+
input: DeleteLiveInputRequest,
|
|
1434
|
+
output: DeleteLiveInputResponse,
|
|
1435
|
+
errors: [],
|
|
1436
|
+
}));
|
|
1437
|
+
|
|
1438
|
+
// =============================================================================
|
|
1439
|
+
// LiveInputOutput
|
|
1440
|
+
// =============================================================================
|
|
1441
|
+
|
|
1442
|
+
export interface ListLiveInputOutputsRequest {
|
|
1443
|
+
liveInputIdentifier: string;
|
|
1444
|
+
/** Identifier. */
|
|
1445
|
+
accountId: string;
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
export const ListLiveInputOutputsRequest =
|
|
1449
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1450
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1451
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1452
|
+
}).pipe(
|
|
1453
|
+
T.Http({
|
|
1454
|
+
method: "GET",
|
|
1455
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs",
|
|
1456
|
+
}),
|
|
1457
|
+
) as unknown as Schema.Schema<ListLiveInputOutputsRequest>;
|
|
1458
|
+
|
|
1459
|
+
export type ListLiveInputOutputsResponse = {
|
|
1460
|
+
enabled?: boolean | null;
|
|
1461
|
+
streamKey?: string | null;
|
|
1462
|
+
uid?: string | null;
|
|
1463
|
+
url?: string | null;
|
|
1464
|
+
}[];
|
|
1465
|
+
|
|
1466
|
+
export const ListLiveInputOutputsResponse =
|
|
1467
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1468
|
+
Schema.Struct({
|
|
1469
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1470
|
+
streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1471
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1472
|
+
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1473
|
+
}),
|
|
1474
|
+
) as unknown as Schema.Schema<ListLiveInputOutputsResponse>;
|
|
1475
|
+
|
|
1476
|
+
export type ListLiveInputOutputsError = DefaultErrors;
|
|
1477
|
+
|
|
1478
|
+
export const listLiveInputOutputs: API.OperationMethod<
|
|
1479
|
+
ListLiveInputOutputsRequest,
|
|
1480
|
+
ListLiveInputOutputsResponse,
|
|
1481
|
+
ListLiveInputOutputsError,
|
|
1482
|
+
Credentials | HttpClient.HttpClient
|
|
1483
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1484
|
+
input: ListLiveInputOutputsRequest,
|
|
1485
|
+
output: ListLiveInputOutputsResponse,
|
|
1486
|
+
errors: [],
|
|
1487
|
+
}));
|
|
1488
|
+
|
|
1489
|
+
export interface CreateLiveInputOutputRequest {
|
|
1490
|
+
liveInputIdentifier: string;
|
|
1491
|
+
/** Path param: Identifier. */
|
|
1492
|
+
accountId: string;
|
|
1493
|
+
/** Body param: The streamKey used to authenticate against an output's target. */
|
|
1494
|
+
streamKey: string;
|
|
1495
|
+
/** Body param: The URL an output uses to restream. */
|
|
1496
|
+
url: string;
|
|
1497
|
+
/** Body param: When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the asso */
|
|
1498
|
+
enabled?: boolean;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
export const CreateLiveInputOutputRequest =
|
|
1502
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1503
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1504
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1505
|
+
streamKey: Schema.String,
|
|
1506
|
+
url: Schema.String,
|
|
1507
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
1508
|
+
}).pipe(
|
|
1509
|
+
T.Http({
|
|
1510
|
+
method: "POST",
|
|
1511
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs",
|
|
1512
|
+
}),
|
|
1513
|
+
) as unknown as Schema.Schema<CreateLiveInputOutputRequest>;
|
|
1514
|
+
|
|
1515
|
+
export interface CreateLiveInputOutputResponse {
|
|
1516
|
+
/** When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live */
|
|
1517
|
+
enabled?: boolean | null;
|
|
1518
|
+
/** The streamKey used to authenticate against an output's target. */
|
|
1519
|
+
streamKey?: string | null;
|
|
1520
|
+
/** A unique identifier for the output. */
|
|
1521
|
+
uid?: string | null;
|
|
1522
|
+
/** The URL an output uses to restream. */
|
|
1523
|
+
url?: string | null;
|
|
1524
|
+
}
|
|
1525
|
+
|
|
1526
|
+
export const CreateLiveInputOutputResponse =
|
|
1527
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1528
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1529
|
+
streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1530
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1531
|
+
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1532
|
+
}) as unknown as Schema.Schema<CreateLiveInputOutputResponse>;
|
|
1533
|
+
|
|
1534
|
+
export type CreateLiveInputOutputError = DefaultErrors;
|
|
1535
|
+
|
|
1536
|
+
export const createLiveInputOutput: API.OperationMethod<
|
|
1537
|
+
CreateLiveInputOutputRequest,
|
|
1538
|
+
CreateLiveInputOutputResponse,
|
|
1539
|
+
CreateLiveInputOutputError,
|
|
1540
|
+
Credentials | HttpClient.HttpClient
|
|
1541
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1542
|
+
input: CreateLiveInputOutputRequest,
|
|
1543
|
+
output: CreateLiveInputOutputResponse,
|
|
1544
|
+
errors: [],
|
|
1545
|
+
}));
|
|
1546
|
+
|
|
1547
|
+
export interface UpdateLiveInputOutputRequest {
|
|
1548
|
+
liveInputIdentifier: string;
|
|
1549
|
+
outputIdentifier: string;
|
|
1550
|
+
/** Path param: Identifier. */
|
|
1551
|
+
accountId: string;
|
|
1552
|
+
/** Body param: When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the asso */
|
|
1553
|
+
enabled: boolean;
|
|
1554
|
+
}
|
|
1555
|
+
|
|
1556
|
+
export const UpdateLiveInputOutputRequest =
|
|
1557
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1558
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1559
|
+
outputIdentifier: Schema.String.pipe(T.HttpPath("outputIdentifier")),
|
|
1560
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1561
|
+
enabled: Schema.Boolean,
|
|
1562
|
+
}).pipe(
|
|
1563
|
+
T.Http({
|
|
1564
|
+
method: "PUT",
|
|
1565
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs/{outputIdentifier}",
|
|
1566
|
+
}),
|
|
1567
|
+
) as unknown as Schema.Schema<UpdateLiveInputOutputRequest>;
|
|
1568
|
+
|
|
1569
|
+
export interface UpdateLiveInputOutputResponse {
|
|
1570
|
+
/** When enabled, live video streamed to the associated live input will be sent to the output URL. When disabled, live video will not be sent to the output URL, even when streaming to the associated live */
|
|
1571
|
+
enabled?: boolean | null;
|
|
1572
|
+
/** The streamKey used to authenticate against an output's target. */
|
|
1573
|
+
streamKey?: string | null;
|
|
1574
|
+
/** A unique identifier for the output. */
|
|
1575
|
+
uid?: string | null;
|
|
1576
|
+
/** The URL an output uses to restream. */
|
|
1577
|
+
url?: string | null;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
export const UpdateLiveInputOutputResponse =
|
|
1581
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1582
|
+
enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1583
|
+
streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1584
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1585
|
+
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1586
|
+
}) as unknown as Schema.Schema<UpdateLiveInputOutputResponse>;
|
|
1587
|
+
|
|
1588
|
+
export type UpdateLiveInputOutputError = DefaultErrors;
|
|
1589
|
+
|
|
1590
|
+
export const updateLiveInputOutput: API.OperationMethod<
|
|
1591
|
+
UpdateLiveInputOutputRequest,
|
|
1592
|
+
UpdateLiveInputOutputResponse,
|
|
1593
|
+
UpdateLiveInputOutputError,
|
|
1594
|
+
Credentials | HttpClient.HttpClient
|
|
1595
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1596
|
+
input: UpdateLiveInputOutputRequest,
|
|
1597
|
+
output: UpdateLiveInputOutputResponse,
|
|
1598
|
+
errors: [],
|
|
1599
|
+
}));
|
|
1600
|
+
|
|
1601
|
+
export interface DeleteLiveInputOutputRequest {
|
|
1602
|
+
liveInputIdentifier: string;
|
|
1603
|
+
outputIdentifier: string;
|
|
1604
|
+
/** Identifier. */
|
|
1605
|
+
accountId: string;
|
|
1606
|
+
}
|
|
1607
|
+
|
|
1608
|
+
export const DeleteLiveInputOutputRequest =
|
|
1609
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1610
|
+
liveInputIdentifier: Schema.String.pipe(T.HttpPath("liveInputIdentifier")),
|
|
1611
|
+
outputIdentifier: Schema.String.pipe(T.HttpPath("outputIdentifier")),
|
|
1612
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1613
|
+
}).pipe(
|
|
1614
|
+
T.Http({
|
|
1615
|
+
method: "DELETE",
|
|
1616
|
+
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs/{outputIdentifier}",
|
|
1617
|
+
}),
|
|
1618
|
+
) as unknown as Schema.Schema<DeleteLiveInputOutputRequest>;
|
|
1619
|
+
|
|
1620
|
+
export type DeleteLiveInputOutputResponse = unknown;
|
|
1621
|
+
|
|
1622
|
+
export const DeleteLiveInputOutputResponse =
|
|
1623
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteLiveInputOutputResponse>;
|
|
1624
|
+
|
|
1625
|
+
export type DeleteLiveInputOutputError = DefaultErrors;
|
|
1626
|
+
|
|
1627
|
+
export const deleteLiveInputOutput: API.OperationMethod<
|
|
1628
|
+
DeleteLiveInputOutputRequest,
|
|
1629
|
+
DeleteLiveInputOutputResponse,
|
|
1630
|
+
DeleteLiveInputOutputError,
|
|
1631
|
+
Credentials | HttpClient.HttpClient
|
|
1632
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1633
|
+
input: DeleteLiveInputOutputRequest,
|
|
1634
|
+
output: DeleteLiveInputOutputResponse,
|
|
1635
|
+
errors: [],
|
|
1636
|
+
}));
|
|
1637
|
+
|
|
1638
|
+
// =============================================================================
|
|
1639
|
+
// Stream
|
|
1640
|
+
// =============================================================================
|
|
1641
|
+
|
|
1642
|
+
export interface GetStreamRequest {
|
|
1643
|
+
identifier: string;
|
|
1644
|
+
/** The account identifier tag. */
|
|
1645
|
+
accountId: string;
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
export const GetStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1649
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
1650
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1651
|
+
}).pipe(
|
|
1652
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/stream/{identifier}" }),
|
|
1653
|
+
) as unknown as Schema.Schema<GetStreamRequest>;
|
|
1654
|
+
|
|
1655
|
+
export interface GetStreamResponse {
|
|
1656
|
+
/** Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
1657
|
+
allowedOrigins?: string[] | null;
|
|
1658
|
+
/** The date and time the media item was created. */
|
|
1659
|
+
created?: string | null;
|
|
1660
|
+
/** A user-defined identifier for the media creator. */
|
|
1661
|
+
creator?: string | null;
|
|
1662
|
+
/** The duration of the video in seconds. A value of `-1` means the duration is unknown. The duration becomes available after the upload and before the video is ready. */
|
|
1663
|
+
duration?: number | null;
|
|
1664
|
+
input?: { height?: number | null; width?: number | null } | null;
|
|
1665
|
+
/** The live input ID used to upload a video with Stream Live. */
|
|
1666
|
+
liveInput?: string | null;
|
|
1667
|
+
/** The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A val */
|
|
1668
|
+
maxDurationSeconds?: number | null;
|
|
1669
|
+
/** A user modifiable key-value store used to reference other systems of record for managing videos. */
|
|
1670
|
+
meta?: unknown | null;
|
|
1671
|
+
/** The date and time the media item was last modified. */
|
|
1672
|
+
modified?: string | null;
|
|
1673
|
+
playback?: { dash?: string | null; hls?: string | null } | null;
|
|
1674
|
+
/** The video's preview page URI. This field is omitted until encoding is complete. */
|
|
1675
|
+
preview?: string | null;
|
|
1676
|
+
/** Indicates whether the video is playable. The field is empty if the video is not ready for viewing or the live stream is still in progress. */
|
|
1677
|
+
readyToStream?: boolean | null;
|
|
1678
|
+
/** Indicates the time at which the video became playable. The field is empty if the video is not ready for viewing or the live stream is still in progress. */
|
|
1679
|
+
readyToStreamAt?: string | null;
|
|
1680
|
+
/** Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
1681
|
+
requireSignedURLs?: boolean | null;
|
|
1682
|
+
/** Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at */
|
|
1683
|
+
scheduledDeletion?: string | null;
|
|
1684
|
+
/** The size of the media item in bytes. */
|
|
1685
|
+
size?: number | null;
|
|
1686
|
+
/** Specifies a detailed status for a video. If the `state` is `inprogress` or `error`, the `step` field returns `encoding` or `manifest`. If the `state` is `inprogress`, `pctComplete` returns a number be */
|
|
1687
|
+
status?: {
|
|
1688
|
+
errorReasonCode?: string | null;
|
|
1689
|
+
errorReasonText?: string | null;
|
|
1690
|
+
pctComplete?: string | null;
|
|
1691
|
+
state?:
|
|
1692
|
+
| "pendingupload"
|
|
1693
|
+
| "downloading"
|
|
1694
|
+
| "queued"
|
|
1695
|
+
| "inprogress"
|
|
1696
|
+
| "ready"
|
|
1697
|
+
| "error"
|
|
1698
|
+
| "live-inprogress"
|
|
1699
|
+
| null;
|
|
1700
|
+
} | null;
|
|
1701
|
+
/** The media item's thumbnail URI. This field is omitted until encoding is complete. */
|
|
1702
|
+
thumbnail?: string | null;
|
|
1703
|
+
/** The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duratio */
|
|
1704
|
+
thumbnailTimestampPct?: number | null;
|
|
1705
|
+
/** A Cloudflare-generated unique identifier for a media item. */
|
|
1706
|
+
uid?: string | null;
|
|
1707
|
+
/** The date and time the media item was uploaded. */
|
|
1708
|
+
uploaded?: string | null;
|
|
1709
|
+
/** The date and time when the video upload URL is no longer valid for direct user uploads. */
|
|
1710
|
+
uploadExpiry?: string | null;
|
|
1711
|
+
watermark?: unknown | null;
|
|
1712
|
+
}
|
|
1713
|
+
|
|
1714
|
+
export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1715
|
+
allowedOrigins: Schema.optional(
|
|
1716
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1717
|
+
),
|
|
1718
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1719
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1720
|
+
duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1721
|
+
input: Schema.optional(
|
|
1722
|
+
Schema.Union([
|
|
1723
|
+
Schema.Struct({
|
|
1724
|
+
height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1725
|
+
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1726
|
+
}),
|
|
1727
|
+
Schema.Null,
|
|
1728
|
+
]),
|
|
1729
|
+
),
|
|
1730
|
+
liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1731
|
+
maxDurationSeconds: Schema.optional(
|
|
1732
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1733
|
+
),
|
|
1734
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1735
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1736
|
+
playback: Schema.optional(
|
|
1737
|
+
Schema.Union([
|
|
1738
|
+
Schema.Struct({
|
|
1739
|
+
dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1740
|
+
hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1741
|
+
}),
|
|
1742
|
+
Schema.Null,
|
|
1743
|
+
]),
|
|
1744
|
+
),
|
|
1745
|
+
preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1746
|
+
readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1747
|
+
readyToStreamAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1748
|
+
requireSignedURLs: Schema.optional(
|
|
1749
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1750
|
+
),
|
|
1751
|
+
scheduledDeletion: Schema.optional(
|
|
1752
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1753
|
+
),
|
|
1754
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1755
|
+
status: Schema.optional(
|
|
1756
|
+
Schema.Union([
|
|
1757
|
+
Schema.Struct({
|
|
1758
|
+
errorReasonCode: Schema.optional(
|
|
1759
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1760
|
+
),
|
|
1761
|
+
errorReasonText: Schema.optional(
|
|
1762
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1763
|
+
),
|
|
1764
|
+
pctComplete: Schema.optional(
|
|
1765
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1766
|
+
),
|
|
1767
|
+
state: Schema.optional(
|
|
1768
|
+
Schema.Union([
|
|
1769
|
+
Schema.Literals([
|
|
1770
|
+
"pendingupload",
|
|
1771
|
+
"downloading",
|
|
1772
|
+
"queued",
|
|
1773
|
+
"inprogress",
|
|
1774
|
+
"ready",
|
|
1775
|
+
"error",
|
|
1776
|
+
"live-inprogress",
|
|
1777
|
+
]),
|
|
1778
|
+
Schema.Null,
|
|
1779
|
+
]),
|
|
1780
|
+
),
|
|
1781
|
+
}),
|
|
1782
|
+
Schema.Null,
|
|
1783
|
+
]),
|
|
1784
|
+
),
|
|
1785
|
+
thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1786
|
+
thumbnailTimestampPct: Schema.optional(
|
|
1787
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1788
|
+
),
|
|
1789
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1790
|
+
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1791
|
+
uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1792
|
+
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1793
|
+
}) as unknown as Schema.Schema<GetStreamResponse>;
|
|
1794
|
+
|
|
1795
|
+
export type GetStreamError = DefaultErrors;
|
|
1796
|
+
|
|
1797
|
+
export const getStream: API.OperationMethod<
|
|
1798
|
+
GetStreamRequest,
|
|
1799
|
+
GetStreamResponse,
|
|
1800
|
+
GetStreamError,
|
|
1801
|
+
Credentials | HttpClient.HttpClient
|
|
1802
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1803
|
+
input: GetStreamRequest,
|
|
1804
|
+
output: GetStreamResponse,
|
|
1805
|
+
errors: [],
|
|
1806
|
+
}));
|
|
1807
|
+
|
|
1808
|
+
export interface ListStreamsRequest {
|
|
1809
|
+
/** Path param: The account identifier tag. */
|
|
1810
|
+
accountId: string;
|
|
1811
|
+
/** Query param: Lists videos in ascending order of creation. */
|
|
1812
|
+
asc?: boolean;
|
|
1813
|
+
/** Query param: A user-defined identifier for the media creator. */
|
|
1814
|
+
creator?: string;
|
|
1815
|
+
/** Query param: Lists videos created before the specified date. */
|
|
1816
|
+
end?: string;
|
|
1817
|
+
/** Query param: Includes the total number of videos associated with the submitted query parameters. */
|
|
1818
|
+
includeCounts?: boolean;
|
|
1819
|
+
/** Query param: Provides a partial word match of the `name` key in the `meta` field. Slow for medium to large video libraries. May be unavailable for very large libraries. */
|
|
1820
|
+
search?: string;
|
|
1821
|
+
/** Query param: Lists videos created after the specified date. */
|
|
1822
|
+
start?: string;
|
|
1823
|
+
/** Query param: Specifies the processing status for all quality levels for a video. */
|
|
1824
|
+
status?:
|
|
1825
|
+
| "pendingupload"
|
|
1826
|
+
| "downloading"
|
|
1827
|
+
| "queued"
|
|
1828
|
+
| "inprogress"
|
|
1829
|
+
| "ready"
|
|
1830
|
+
| "error"
|
|
1831
|
+
| "live-inprogress";
|
|
1832
|
+
/** Query param: Specifies whether the video is `vod` or `live`. */
|
|
1833
|
+
type?: string;
|
|
1834
|
+
/** Query param: Provides a fast, exact string match on the `name` key in the `meta` field. */
|
|
1835
|
+
videoName?: string;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
export const ListStreamsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1839
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1840
|
+
asc: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("asc")),
|
|
1841
|
+
creator: Schema.optional(Schema.String).pipe(T.HttpQuery("creator")),
|
|
1842
|
+
end: Schema.optional(Schema.String).pipe(T.HttpQuery("end")),
|
|
1843
|
+
includeCounts: Schema.optional(Schema.Boolean).pipe(
|
|
1844
|
+
T.HttpQuery("include_counts"),
|
|
1845
|
+
),
|
|
1846
|
+
search: Schema.optional(Schema.String).pipe(T.HttpQuery("search")),
|
|
1847
|
+
start: Schema.optional(Schema.String).pipe(T.HttpQuery("start")),
|
|
1848
|
+
status: Schema.optional(
|
|
1849
|
+
Schema.Literals([
|
|
1850
|
+
"pendingupload",
|
|
1851
|
+
"downloading",
|
|
1852
|
+
"queued",
|
|
1853
|
+
"inprogress",
|
|
1854
|
+
"ready",
|
|
1855
|
+
"error",
|
|
1856
|
+
"live-inprogress",
|
|
1857
|
+
]),
|
|
1858
|
+
).pipe(T.HttpQuery("status")),
|
|
1859
|
+
type: Schema.optional(Schema.String).pipe(T.HttpQuery("type")),
|
|
1860
|
+
videoName: Schema.optional(Schema.String).pipe(T.HttpQuery("video_name")),
|
|
1861
|
+
}).pipe(
|
|
1862
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/stream" }),
|
|
1863
|
+
) as unknown as Schema.Schema<ListStreamsRequest>;
|
|
1864
|
+
|
|
1865
|
+
export type ListStreamsResponse = {
|
|
1866
|
+
allowedOrigins?: string[] | null;
|
|
1867
|
+
created?: string | null;
|
|
1868
|
+
creator?: string | null;
|
|
1869
|
+
duration?: number | null;
|
|
1870
|
+
input?: { height?: number | null; width?: number | null } | null;
|
|
1871
|
+
liveInput?: string | null;
|
|
1872
|
+
maxDurationSeconds?: number | null;
|
|
1873
|
+
meta?: unknown | null;
|
|
1874
|
+
modified?: string | null;
|
|
1875
|
+
playback?: { dash?: string | null; hls?: string | null } | null;
|
|
1876
|
+
preview?: string | null;
|
|
1877
|
+
readyToStream?: boolean | null;
|
|
1878
|
+
readyToStreamAt?: string | null;
|
|
1879
|
+
requireSignedURLs?: boolean | null;
|
|
1880
|
+
scheduledDeletion?: string | null;
|
|
1881
|
+
size?: number | null;
|
|
1882
|
+
status?: {
|
|
1883
|
+
errorReasonCode?: string | null;
|
|
1884
|
+
errorReasonText?: string | null;
|
|
1885
|
+
pctComplete?: string | null;
|
|
1886
|
+
state?:
|
|
1887
|
+
| "pendingupload"
|
|
1888
|
+
| "downloading"
|
|
1889
|
+
| "queued"
|
|
1890
|
+
| "inprogress"
|
|
1891
|
+
| "ready"
|
|
1892
|
+
| "error"
|
|
1893
|
+
| "live-inprogress"
|
|
1894
|
+
| null;
|
|
1895
|
+
} | null;
|
|
1896
|
+
thumbnail?: string | null;
|
|
1897
|
+
thumbnailTimestampPct?: number | null;
|
|
1898
|
+
uid?: string | null;
|
|
1899
|
+
uploaded?: string | null;
|
|
1900
|
+
uploadExpiry?: string | null;
|
|
1901
|
+
watermark?: unknown | null;
|
|
1902
|
+
}[];
|
|
1903
|
+
|
|
1904
|
+
export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
1905
|
+
Schema.Struct({
|
|
1906
|
+
allowedOrigins: Schema.optional(
|
|
1907
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1908
|
+
),
|
|
1909
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1910
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1911
|
+
duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1912
|
+
input: Schema.optional(
|
|
1913
|
+
Schema.Union([
|
|
1914
|
+
Schema.Struct({
|
|
1915
|
+
height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1916
|
+
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1917
|
+
}),
|
|
1918
|
+
Schema.Null,
|
|
1919
|
+
]),
|
|
1920
|
+
),
|
|
1921
|
+
liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1922
|
+
maxDurationSeconds: Schema.optional(
|
|
1923
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1924
|
+
),
|
|
1925
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1926
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1927
|
+
playback: Schema.optional(
|
|
1928
|
+
Schema.Union([
|
|
1929
|
+
Schema.Struct({
|
|
1930
|
+
dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1931
|
+
hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1932
|
+
}),
|
|
1933
|
+
Schema.Null,
|
|
1934
|
+
]),
|
|
1935
|
+
),
|
|
1936
|
+
preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1937
|
+
readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
1938
|
+
readyToStreamAt: Schema.optional(
|
|
1939
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1940
|
+
),
|
|
1941
|
+
requireSignedURLs: Schema.optional(
|
|
1942
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
1943
|
+
),
|
|
1944
|
+
scheduledDeletion: Schema.optional(
|
|
1945
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1946
|
+
),
|
|
1947
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1948
|
+
status: Schema.optional(
|
|
1949
|
+
Schema.Union([
|
|
1950
|
+
Schema.Struct({
|
|
1951
|
+
errorReasonCode: Schema.optional(
|
|
1952
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1953
|
+
),
|
|
1954
|
+
errorReasonText: Schema.optional(
|
|
1955
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1956
|
+
),
|
|
1957
|
+
pctComplete: Schema.optional(
|
|
1958
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1959
|
+
),
|
|
1960
|
+
state: Schema.optional(
|
|
1961
|
+
Schema.Union([
|
|
1962
|
+
Schema.Literals([
|
|
1963
|
+
"pendingupload",
|
|
1964
|
+
"downloading",
|
|
1965
|
+
"queued",
|
|
1966
|
+
"inprogress",
|
|
1967
|
+
"ready",
|
|
1968
|
+
"error",
|
|
1969
|
+
"live-inprogress",
|
|
1970
|
+
]),
|
|
1971
|
+
Schema.Null,
|
|
1972
|
+
]),
|
|
1973
|
+
),
|
|
1974
|
+
}),
|
|
1975
|
+
Schema.Null,
|
|
1976
|
+
]),
|
|
1977
|
+
),
|
|
1978
|
+
thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1979
|
+
thumbnailTimestampPct: Schema.optional(
|
|
1980
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
1981
|
+
),
|
|
1982
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1983
|
+
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1984
|
+
uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1985
|
+
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1986
|
+
}),
|
|
1987
|
+
) as unknown as Schema.Schema<ListStreamsResponse>;
|
|
1988
|
+
|
|
1989
|
+
export type ListStreamsError = DefaultErrors;
|
|
1990
|
+
|
|
1991
|
+
export const listStreams: API.OperationMethod<
|
|
1992
|
+
ListStreamsRequest,
|
|
1993
|
+
ListStreamsResponse,
|
|
1994
|
+
ListStreamsError,
|
|
1995
|
+
Credentials | HttpClient.HttpClient
|
|
1996
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
1997
|
+
input: ListStreamsRequest,
|
|
1998
|
+
output: ListStreamsResponse,
|
|
1999
|
+
errors: [],
|
|
2000
|
+
}));
|
|
2001
|
+
|
|
2002
|
+
export interface CreateStreamRequest {
|
|
2003
|
+
/** Path param: The account identifier tag. */
|
|
2004
|
+
accountId: string;
|
|
2005
|
+
/** Query param: Provisions a URL to let your end users upload videos directly to Cloudflare Stream without exposing your API token to clients. */
|
|
2006
|
+
directUser?: boolean;
|
|
2007
|
+
/** Header param: Specifies the TUS protocol version. This value must be included in every upload request. Notes: The only supported version of TUS protocol is 1.0.0. */
|
|
2008
|
+
tusResumable: "1.0.0";
|
|
2009
|
+
/** Header param: Indicates the size of the entire upload in bytes. The value must be a non-negative integer. */
|
|
2010
|
+
uploadLength: number;
|
|
2011
|
+
/** Header param: A user-defined identifier for the media creator. */
|
|
2012
|
+
uploadCreator?: string;
|
|
2013
|
+
/** Header param: Comma-separated key-value pairs following the TUS protocol specification. Values are Base-64 encoded. Supported keys: `name`, `requiresignedurls`, `allowedorigins`, `thumbnailtimestamppc */
|
|
2014
|
+
uploadMetadata?: string;
|
|
2015
|
+
/** Body param: */
|
|
2016
|
+
body: unknown;
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
export const CreateStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2020
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2021
|
+
directUser: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("direct_user")),
|
|
2022
|
+
tusResumable: Schema.Literal("1.0.0").pipe(T.HttpHeader("Tus-Resumable")),
|
|
2023
|
+
uploadLength: Schema.Number.pipe(T.HttpHeader("Upload-Length")),
|
|
2024
|
+
uploadCreator: Schema.optional(Schema.String).pipe(
|
|
2025
|
+
T.HttpHeader("Upload-Creator"),
|
|
2026
|
+
),
|
|
2027
|
+
uploadMetadata: Schema.optional(Schema.String).pipe(
|
|
2028
|
+
T.HttpHeader("Upload-Metadata"),
|
|
2029
|
+
),
|
|
2030
|
+
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
2031
|
+
}).pipe(
|
|
2032
|
+
T.Http({ method: "POST", path: "/accounts/{account_id}/stream" }),
|
|
2033
|
+
) as unknown as Schema.Schema<CreateStreamRequest>;
|
|
2034
|
+
|
|
2035
|
+
export type CreateStreamResponse = unknown;
|
|
2036
|
+
|
|
2037
|
+
export const CreateStreamResponse =
|
|
2038
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<CreateStreamResponse>;
|
|
2039
|
+
|
|
2040
|
+
export type CreateStreamError = DefaultErrors;
|
|
2041
|
+
|
|
2042
|
+
export const createStream: API.OperationMethod<
|
|
2043
|
+
CreateStreamRequest,
|
|
2044
|
+
CreateStreamResponse,
|
|
2045
|
+
CreateStreamError,
|
|
2046
|
+
Credentials | HttpClient.HttpClient
|
|
2047
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2048
|
+
input: CreateStreamRequest,
|
|
2049
|
+
output: CreateStreamResponse,
|
|
2050
|
+
errors: [],
|
|
2051
|
+
}));
|
|
2052
|
+
|
|
2053
|
+
export interface DeleteStreamRequest {
|
|
2054
|
+
identifier: string;
|
|
2055
|
+
/** The account identifier tag. */
|
|
2056
|
+
accountId: string;
|
|
2057
|
+
}
|
|
2058
|
+
|
|
2059
|
+
export const DeleteStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2060
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
2061
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2062
|
+
}).pipe(
|
|
2063
|
+
T.Http({
|
|
2064
|
+
method: "DELETE",
|
|
2065
|
+
path: "/accounts/{account_id}/stream/{identifier}",
|
|
2066
|
+
}),
|
|
2067
|
+
) as unknown as Schema.Schema<DeleteStreamRequest>;
|
|
2068
|
+
|
|
2069
|
+
export type DeleteStreamResponse = unknown;
|
|
2070
|
+
|
|
2071
|
+
export const DeleteStreamResponse =
|
|
2072
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<DeleteStreamResponse>;
|
|
2073
|
+
|
|
2074
|
+
export type DeleteStreamError = DefaultErrors;
|
|
2075
|
+
|
|
2076
|
+
export const deleteStream: API.OperationMethod<
|
|
2077
|
+
DeleteStreamRequest,
|
|
2078
|
+
DeleteStreamResponse,
|
|
2079
|
+
DeleteStreamError,
|
|
2080
|
+
Credentials | HttpClient.HttpClient
|
|
2081
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2082
|
+
input: DeleteStreamRequest,
|
|
2083
|
+
output: DeleteStreamResponse,
|
|
2084
|
+
errors: [],
|
|
2085
|
+
}));
|
|
2086
|
+
|
|
2087
|
+
export interface EditStreamRequest {
|
|
2088
|
+
identifier: string;
|
|
2089
|
+
/** Path param: The account identifier tag. */
|
|
2090
|
+
accountId: string;
|
|
2091
|
+
/** Body param: Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
2092
|
+
allowedOrigins?: string[];
|
|
2093
|
+
/** Body param: A user-defined identifier for the media creator. */
|
|
2094
|
+
creator?: string;
|
|
2095
|
+
/** Body param: The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during proce */
|
|
2096
|
+
maxDurationSeconds?: number;
|
|
2097
|
+
/** Body param: A user modifiable key-value store used to reference other systems of record for managing videos. */
|
|
2098
|
+
meta?: unknown;
|
|
2099
|
+
/** Body param: Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
2100
|
+
requireSignedURLs?: boolean;
|
|
2101
|
+
/** Body param: Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, */
|
|
2102
|
+
scheduledDeletion?: string;
|
|
2103
|
+
/** Body param: The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the t */
|
|
2104
|
+
thumbnailTimestampPct?: number;
|
|
2105
|
+
/** Body param: The date and time when the video upload URL is no longer valid for direct user uploads. */
|
|
2106
|
+
uploadExpiry?: string;
|
|
2107
|
+
}
|
|
2108
|
+
|
|
2109
|
+
export const EditStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2110
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
2111
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2112
|
+
allowedOrigins: Schema.optional(Schema.Array(Schema.String)),
|
|
2113
|
+
creator: Schema.optional(Schema.String),
|
|
2114
|
+
maxDurationSeconds: Schema.optional(Schema.Number),
|
|
2115
|
+
meta: Schema.optional(Schema.Unknown),
|
|
2116
|
+
requireSignedURLs: Schema.optional(Schema.Boolean),
|
|
2117
|
+
scheduledDeletion: Schema.optional(Schema.String),
|
|
2118
|
+
thumbnailTimestampPct: Schema.optional(Schema.Number),
|
|
2119
|
+
uploadExpiry: Schema.optional(Schema.String),
|
|
2120
|
+
}).pipe(
|
|
2121
|
+
T.Http({
|
|
2122
|
+
method: "POST",
|
|
2123
|
+
path: "/accounts/{account_id}/stream/{identifier}",
|
|
2124
|
+
}),
|
|
2125
|
+
) as unknown as Schema.Schema<EditStreamRequest>;
|
|
2126
|
+
|
|
2127
|
+
export interface EditStreamResponse {
|
|
2128
|
+
/** Lists the origins allowed to display the video. Enter allowed origin domains in an array and use ` ` for wildcard subdomains. Empty arrays allow the video to be viewed on any origin. */
|
|
2129
|
+
allowedOrigins?: string[] | null;
|
|
2130
|
+
/** The date and time the media item was created. */
|
|
2131
|
+
created?: string | null;
|
|
2132
|
+
/** A user-defined identifier for the media creator. */
|
|
2133
|
+
creator?: string | null;
|
|
2134
|
+
/** The duration of the video in seconds. A value of `-1` means the duration is unknown. The duration becomes available after the upload and before the video is ready. */
|
|
2135
|
+
duration?: number | null;
|
|
2136
|
+
input?: { height?: number | null; width?: number | null } | null;
|
|
2137
|
+
/** The live input ID used to upload a video with Stream Live. */
|
|
2138
|
+
liveInput?: string | null;
|
|
2139
|
+
/** The maximum duration in seconds for a video upload. Can be set for a video that is not yet uploaded to limit its duration. Uploads that exceed the specified duration will fail during processing. A val */
|
|
2140
|
+
maxDurationSeconds?: number | null;
|
|
2141
|
+
/** A user modifiable key-value store used to reference other systems of record for managing videos. */
|
|
2142
|
+
meta?: unknown | null;
|
|
2143
|
+
/** The date and time the media item was last modified. */
|
|
2144
|
+
modified?: string | null;
|
|
2145
|
+
playback?: { dash?: string | null; hls?: string | null } | null;
|
|
2146
|
+
/** The video's preview page URI. This field is omitted until encoding is complete. */
|
|
2147
|
+
preview?: string | null;
|
|
2148
|
+
/** Indicates whether the video is playable. The field is empty if the video is not ready for viewing or the live stream is still in progress. */
|
|
2149
|
+
readyToStream?: boolean | null;
|
|
2150
|
+
/** Indicates the time at which the video became playable. The field is empty if the video is not ready for viewing or the live stream is still in progress. */
|
|
2151
|
+
readyToStreamAt?: string | null;
|
|
2152
|
+
/** Indicates whether the video can be a accessed using the UID. When set to `true`, a signed token must be generated with a signing key to view the video. */
|
|
2153
|
+
requireSignedURLs?: boolean | null;
|
|
2154
|
+
/** Indicates the date and time at which the video will be deleted. Omit the field to indicate no change, or include with a `null` value to remove an existing scheduled deletion. If specified, must be at */
|
|
2155
|
+
scheduledDeletion?: string | null;
|
|
2156
|
+
/** The size of the media item in bytes. */
|
|
2157
|
+
size?: number | null;
|
|
2158
|
+
/** Specifies a detailed status for a video. If the `state` is `inprogress` or `error`, the `step` field returns `encoding` or `manifest`. If the `state` is `inprogress`, `pctComplete` returns a number be */
|
|
2159
|
+
status?: {
|
|
2160
|
+
errorReasonCode?: string | null;
|
|
2161
|
+
errorReasonText?: string | null;
|
|
2162
|
+
pctComplete?: string | null;
|
|
2163
|
+
state?:
|
|
2164
|
+
| "pendingupload"
|
|
2165
|
+
| "downloading"
|
|
2166
|
+
| "queued"
|
|
2167
|
+
| "inprogress"
|
|
2168
|
+
| "ready"
|
|
2169
|
+
| "error"
|
|
2170
|
+
| "live-inprogress"
|
|
2171
|
+
| null;
|
|
2172
|
+
} | null;
|
|
2173
|
+
/** The media item's thumbnail URI. This field is omitted until encoding is complete. */
|
|
2174
|
+
thumbnail?: string | null;
|
|
2175
|
+
/** The timestamp for a thumbnail image calculated as a percentage value of the video's duration. To convert from a second-wise timestamp to a percentage, divide the desired timestamp by the total duratio */
|
|
2176
|
+
thumbnailTimestampPct?: number | null;
|
|
2177
|
+
/** A Cloudflare-generated unique identifier for a media item. */
|
|
2178
|
+
uid?: string | null;
|
|
2179
|
+
/** The date and time the media item was uploaded. */
|
|
2180
|
+
uploaded?: string | null;
|
|
2181
|
+
/** The date and time when the video upload URL is no longer valid for direct user uploads. */
|
|
2182
|
+
uploadExpiry?: string | null;
|
|
2183
|
+
watermark?: unknown | null;
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
export const EditStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2187
|
+
allowedOrigins: Schema.optional(
|
|
2188
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2189
|
+
),
|
|
2190
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2191
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2192
|
+
duration: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2193
|
+
input: Schema.optional(
|
|
2194
|
+
Schema.Union([
|
|
2195
|
+
Schema.Struct({
|
|
2196
|
+
height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2197
|
+
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2198
|
+
}),
|
|
2199
|
+
Schema.Null,
|
|
2200
|
+
]),
|
|
2201
|
+
),
|
|
2202
|
+
liveInput: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2203
|
+
maxDurationSeconds: Schema.optional(
|
|
2204
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2205
|
+
),
|
|
2206
|
+
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2207
|
+
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2208
|
+
playback: Schema.optional(
|
|
2209
|
+
Schema.Union([
|
|
2210
|
+
Schema.Struct({
|
|
2211
|
+
dash: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2212
|
+
hls: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2213
|
+
}),
|
|
2214
|
+
Schema.Null,
|
|
2215
|
+
]),
|
|
2216
|
+
),
|
|
2217
|
+
preview: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2218
|
+
readyToStream: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2219
|
+
readyToStreamAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2220
|
+
requireSignedURLs: Schema.optional(
|
|
2221
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
2222
|
+
),
|
|
2223
|
+
scheduledDeletion: Schema.optional(
|
|
2224
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2225
|
+
),
|
|
2226
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2227
|
+
status: Schema.optional(
|
|
2228
|
+
Schema.Union([
|
|
2229
|
+
Schema.Struct({
|
|
2230
|
+
errorReasonCode: Schema.optional(
|
|
2231
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2232
|
+
),
|
|
2233
|
+
errorReasonText: Schema.optional(
|
|
2234
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2235
|
+
),
|
|
2236
|
+
pctComplete: Schema.optional(
|
|
2237
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2238
|
+
),
|
|
2239
|
+
state: Schema.optional(
|
|
2240
|
+
Schema.Union([
|
|
2241
|
+
Schema.Literals([
|
|
2242
|
+
"pendingupload",
|
|
2243
|
+
"downloading",
|
|
2244
|
+
"queued",
|
|
2245
|
+
"inprogress",
|
|
2246
|
+
"ready",
|
|
2247
|
+
"error",
|
|
2248
|
+
"live-inprogress",
|
|
2249
|
+
]),
|
|
2250
|
+
Schema.Null,
|
|
2251
|
+
]),
|
|
2252
|
+
),
|
|
2253
|
+
}),
|
|
2254
|
+
Schema.Null,
|
|
2255
|
+
]),
|
|
2256
|
+
),
|
|
2257
|
+
thumbnail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2258
|
+
thumbnailTimestampPct: Schema.optional(
|
|
2259
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2260
|
+
),
|
|
2261
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2262
|
+
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2263
|
+
uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2264
|
+
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2265
|
+
}) as unknown as Schema.Schema<EditStreamResponse>;
|
|
2266
|
+
|
|
2267
|
+
export type EditStreamError = DefaultErrors;
|
|
2268
|
+
|
|
2269
|
+
export const editStream: API.OperationMethod<
|
|
2270
|
+
EditStreamRequest,
|
|
2271
|
+
EditStreamResponse,
|
|
2272
|
+
EditStreamError,
|
|
2273
|
+
Credentials | HttpClient.HttpClient
|
|
2274
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2275
|
+
input: EditStreamRequest,
|
|
2276
|
+
output: EditStreamResponse,
|
|
2277
|
+
errors: [],
|
|
2278
|
+
}));
|
|
2279
|
+
|
|
2280
|
+
// =============================================================================
|
|
2281
|
+
// Token
|
|
2282
|
+
// =============================================================================
|
|
2283
|
+
|
|
2284
|
+
export interface CreateTokenRequest {
|
|
2285
|
+
identifier: string;
|
|
2286
|
+
/** Path param: The account identifier tag. */
|
|
2287
|
+
accountId: string;
|
|
2288
|
+
/** Body param: The optional ID of a Stream signing key. If present, the `pem` field is also required. */
|
|
2289
|
+
id?: string;
|
|
2290
|
+
/** Body param: The optional list of access rule constraints on the token. Access can be blocked or allowed based on an IP, IP range, or by country. Access rules are evaluated from first to last. If a rul */
|
|
2291
|
+
accessRules?: {
|
|
2292
|
+
action?: "allow" | "block";
|
|
2293
|
+
country?: string[];
|
|
2294
|
+
ip?: string[];
|
|
2295
|
+
type?: "any" | "ip.src" | "ip.geoip.country";
|
|
2296
|
+
}[];
|
|
2297
|
+
/** Body param: The optional boolean value that enables using signed tokens to access MP4 download links for a video. */
|
|
2298
|
+
downloadable?: boolean;
|
|
2299
|
+
/** Body param: The optional unix epoch timestamp that specficies the time after a token is not accepted. The maximum time specification is 24 hours from issuing time. If this field is not set, the defaul */
|
|
2300
|
+
exp?: number;
|
|
2301
|
+
/** Body param: The optional unix epoch timestamp that specifies the time before a the token is not accepted. If this field is not set, the default is one hour before issuing. */
|
|
2302
|
+
nbf?: number;
|
|
2303
|
+
/** Body param: The optional base64 encoded private key in PEM format associated with a Stream signing key. If present, the `id` field is also required. */
|
|
2304
|
+
pem?: string;
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2308
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
2309
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2310
|
+
id: Schema.optional(Schema.String),
|
|
2311
|
+
accessRules: Schema.optional(
|
|
2312
|
+
Schema.Array(
|
|
2313
|
+
Schema.Struct({
|
|
2314
|
+
action: Schema.optional(Schema.Literals(["allow", "block"])),
|
|
2315
|
+
country: Schema.optional(Schema.Array(Schema.String)),
|
|
2316
|
+
ip: Schema.optional(Schema.Array(Schema.String)),
|
|
2317
|
+
type: Schema.optional(
|
|
2318
|
+
Schema.Literals(["any", "ip.src", "ip.geoip.country"]),
|
|
2319
|
+
),
|
|
2320
|
+
}),
|
|
2321
|
+
),
|
|
2322
|
+
),
|
|
2323
|
+
downloadable: Schema.optional(Schema.Boolean),
|
|
2324
|
+
exp: Schema.optional(Schema.Number),
|
|
2325
|
+
nbf: Schema.optional(Schema.Number),
|
|
2326
|
+
pem: Schema.optional(Schema.String),
|
|
2327
|
+
}).pipe(
|
|
2328
|
+
T.Http({
|
|
2329
|
+
method: "POST",
|
|
2330
|
+
path: "/accounts/{account_id}/stream/{identifier}/token",
|
|
2331
|
+
}),
|
|
2332
|
+
) as unknown as Schema.Schema<CreateTokenRequest>;
|
|
2333
|
+
|
|
2334
|
+
export interface CreateTokenResponse {
|
|
2335
|
+
/** The signed token used with the signed URLs feature. */
|
|
2336
|
+
token?: string | null;
|
|
2337
|
+
}
|
|
2338
|
+
|
|
2339
|
+
export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2340
|
+
token: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2341
|
+
}) as unknown as Schema.Schema<CreateTokenResponse>;
|
|
2342
|
+
|
|
2343
|
+
export type CreateTokenError = DefaultErrors;
|
|
2344
|
+
|
|
2345
|
+
export const createToken: API.OperationMethod<
|
|
2346
|
+
CreateTokenRequest,
|
|
2347
|
+
CreateTokenResponse,
|
|
2348
|
+
CreateTokenError,
|
|
2349
|
+
Credentials | HttpClient.HttpClient
|
|
2350
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2351
|
+
input: CreateTokenRequest,
|
|
2352
|
+
output: CreateTokenResponse,
|
|
2353
|
+
errors: [],
|
|
2354
|
+
}));
|
|
2355
|
+
|
|
2356
|
+
// =============================================================================
|
|
2357
|
+
// UsageVideo
|
|
2358
|
+
// =============================================================================
|
|
2359
|
+
|
|
2360
|
+
export interface StorageUsageVideoRequest {
|
|
2361
|
+
/** Path param: The account identifier tag. */
|
|
2362
|
+
accountId: string;
|
|
2363
|
+
/** Query param: A user-defined identifier for the media creator. */
|
|
2364
|
+
creator?: string;
|
|
2365
|
+
}
|
|
2366
|
+
|
|
2367
|
+
export const StorageUsageVideoRequest =
|
|
2368
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2369
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2370
|
+
creator: Schema.optional(Schema.String).pipe(T.HttpQuery("creator")),
|
|
2371
|
+
}).pipe(
|
|
2372
|
+
T.Http({
|
|
2373
|
+
method: "GET",
|
|
2374
|
+
path: "/accounts/{account_id}/stream/storage-usage",
|
|
2375
|
+
}),
|
|
2376
|
+
) as unknown as Schema.Schema<StorageUsageVideoRequest>;
|
|
2377
|
+
|
|
2378
|
+
export interface StorageUsageVideoResponse {
|
|
2379
|
+
/** A user-defined identifier for the media creator. */
|
|
2380
|
+
creator?: string | null;
|
|
2381
|
+
/** The total minutes of video content stored in the account. */
|
|
2382
|
+
totalStorageMinutes?: number | null;
|
|
2383
|
+
/** The storage capacity alloted for the account. */
|
|
2384
|
+
totalStorageMinutesLimit?: number | null;
|
|
2385
|
+
/** The total count of videos associated with the account. */
|
|
2386
|
+
videoCount?: number | null;
|
|
2387
|
+
}
|
|
2388
|
+
|
|
2389
|
+
export const StorageUsageVideoResponse =
|
|
2390
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2391
|
+
creator: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2392
|
+
totalStorageMinutes: Schema.optional(
|
|
2393
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2394
|
+
),
|
|
2395
|
+
totalStorageMinutesLimit: Schema.optional(
|
|
2396
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2397
|
+
),
|
|
2398
|
+
videoCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2399
|
+
}) as unknown as Schema.Schema<StorageUsageVideoResponse>;
|
|
2400
|
+
|
|
2401
|
+
export type StorageUsageVideoError = DefaultErrors;
|
|
2402
|
+
|
|
2403
|
+
export const storageUsageVideo: API.OperationMethod<
|
|
2404
|
+
StorageUsageVideoRequest,
|
|
2405
|
+
StorageUsageVideoResponse,
|
|
2406
|
+
StorageUsageVideoError,
|
|
2407
|
+
Credentials | HttpClient.HttpClient
|
|
2408
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2409
|
+
input: StorageUsageVideoRequest,
|
|
2410
|
+
output: StorageUsageVideoResponse,
|
|
2411
|
+
errors: [],
|
|
2412
|
+
}));
|
|
2413
|
+
|
|
2414
|
+
// =============================================================================
|
|
2415
|
+
// Watermark
|
|
2416
|
+
// =============================================================================
|
|
2417
|
+
|
|
2418
|
+
export interface GetWatermarkRequest {
|
|
2419
|
+
identifier: string;
|
|
2420
|
+
/** The account identifier tag. */
|
|
2421
|
+
accountId: string;
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
export const GetWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2425
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
2426
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2427
|
+
}).pipe(
|
|
2428
|
+
T.Http({
|
|
2429
|
+
method: "GET",
|
|
2430
|
+
path: "/accounts/{account_id}/stream/watermarks/{identifier}",
|
|
2431
|
+
}),
|
|
2432
|
+
) as unknown as Schema.Schema<GetWatermarkRequest>;
|
|
2433
|
+
|
|
2434
|
+
export interface GetWatermarkResponse {
|
|
2435
|
+
/** The date and a time a watermark profile was created. */
|
|
2436
|
+
created?: string | null;
|
|
2437
|
+
/** The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null. */
|
|
2438
|
+
downloadedFrom?: string | null;
|
|
2439
|
+
/** The height of the image in pixels. */
|
|
2440
|
+
height?: number | null;
|
|
2441
|
+
/** A short description of the watermark profile. */
|
|
2442
|
+
name?: string | null;
|
|
2443
|
+
/** The translucency of the image. A value of `0.0` makes the image completely transparent, and `1.0` makes the image completely opaque. Note that if the image is already semi-transparent, setting this to */
|
|
2444
|
+
opacity?: number | null;
|
|
2445
|
+
/** The whitespace between the adjacent edges (determined by position) of the video and the image. `0.0` indicates no padding, and `1.0` indicates a fully padded video width or length, as determined by th */
|
|
2446
|
+
padding?: number | null;
|
|
2447
|
+
/** The location of the image. Valid positions are: `upperRight`, `upperLeft`, `lowerLeft`, `lowerRight`, and `center`. Note that `center` ignores the `padding` parameter. */
|
|
2448
|
+
position?: string | null;
|
|
2449
|
+
/** The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. `0.0` indicates no scaling (use the size of the image as-is) */
|
|
2450
|
+
scale?: number | null;
|
|
2451
|
+
/** The size of the image in bytes. */
|
|
2452
|
+
size?: number | null;
|
|
2453
|
+
/** The unique identifier for a watermark profile. */
|
|
2454
|
+
uid?: string | null;
|
|
2455
|
+
/** The width of the image in pixels. */
|
|
2456
|
+
width?: number | null;
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
export const GetWatermarkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2460
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2461
|
+
downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2462
|
+
height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2463
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2464
|
+
opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2465
|
+
padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2466
|
+
position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2467
|
+
scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2468
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2469
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2470
|
+
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2471
|
+
}) as unknown as Schema.Schema<GetWatermarkResponse>;
|
|
2472
|
+
|
|
2473
|
+
export type GetWatermarkError = DefaultErrors;
|
|
2474
|
+
|
|
2475
|
+
export const getWatermark: API.OperationMethod<
|
|
2476
|
+
GetWatermarkRequest,
|
|
2477
|
+
GetWatermarkResponse,
|
|
2478
|
+
GetWatermarkError,
|
|
2479
|
+
Credentials | HttpClient.HttpClient
|
|
2480
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2481
|
+
input: GetWatermarkRequest,
|
|
2482
|
+
output: GetWatermarkResponse,
|
|
2483
|
+
errors: [],
|
|
2484
|
+
}));
|
|
2485
|
+
|
|
2486
|
+
export interface ListWatermarksRequest {
|
|
2487
|
+
/** The account identifier tag. */
|
|
2488
|
+
accountId: string;
|
|
2489
|
+
}
|
|
2490
|
+
|
|
2491
|
+
export const ListWatermarksRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2492
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2493
|
+
}).pipe(
|
|
2494
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/stream/watermarks" }),
|
|
2495
|
+
) as unknown as Schema.Schema<ListWatermarksRequest>;
|
|
2496
|
+
|
|
2497
|
+
export type ListWatermarksResponse = {
|
|
2498
|
+
created?: string | null;
|
|
2499
|
+
downloadedFrom?: string | null;
|
|
2500
|
+
height?: number | null;
|
|
2501
|
+
name?: string | null;
|
|
2502
|
+
opacity?: number | null;
|
|
2503
|
+
padding?: number | null;
|
|
2504
|
+
position?: string | null;
|
|
2505
|
+
scale?: number | null;
|
|
2506
|
+
size?: number | null;
|
|
2507
|
+
uid?: string | null;
|
|
2508
|
+
width?: number | null;
|
|
2509
|
+
}[];
|
|
2510
|
+
|
|
2511
|
+
export const ListWatermarksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
2512
|
+
Schema.Struct({
|
|
2513
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2514
|
+
downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2515
|
+
height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2516
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2517
|
+
opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2518
|
+
padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2519
|
+
position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2520
|
+
scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2521
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2522
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2523
|
+
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2524
|
+
}),
|
|
2525
|
+
) as unknown as Schema.Schema<ListWatermarksResponse>;
|
|
2526
|
+
|
|
2527
|
+
export type ListWatermarksError = DefaultErrors;
|
|
2528
|
+
|
|
2529
|
+
export const listWatermarks: API.OperationMethod<
|
|
2530
|
+
ListWatermarksRequest,
|
|
2531
|
+
ListWatermarksResponse,
|
|
2532
|
+
ListWatermarksError,
|
|
2533
|
+
Credentials | HttpClient.HttpClient
|
|
2534
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2535
|
+
input: ListWatermarksRequest,
|
|
2536
|
+
output: ListWatermarksResponse,
|
|
2537
|
+
errors: [],
|
|
2538
|
+
}));
|
|
2539
|
+
|
|
2540
|
+
export interface CreateWatermarkRequest {
|
|
2541
|
+
/** Path param: The account identifier tag. */
|
|
2542
|
+
accountId: string;
|
|
2543
|
+
/** Body param: The image file to upload. */
|
|
2544
|
+
file: string;
|
|
2545
|
+
/** Body param: A short description of the watermark profile. */
|
|
2546
|
+
name?: string;
|
|
2547
|
+
/** Body param: The translucency of the image. A value of `0.0` makes the image completely transparent, and `1.0` makes the image completely opaque. Note that if the image is already semi-transparent, set */
|
|
2548
|
+
opacity?: number;
|
|
2549
|
+
/** Body param: The whitespace between the adjacent edges (determined by position) of the video and the image. `0.0` indicates no padding, and `1.0` indicates a fully padded video width or length, as dete */
|
|
2550
|
+
padding?: number;
|
|
2551
|
+
/** Body param: The location of the image. Valid positions are: `upperRight`, `upperLeft`, `lowerLeft`, `lowerRight`, and `center`. Note that `center` ignores the `padding` parameter. */
|
|
2552
|
+
position?: string;
|
|
2553
|
+
/** Body param: The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. `0.0` indicates no scaling (use the size of the */
|
|
2554
|
+
scale?: number;
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
export const CreateWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2558
|
+
{
|
|
2559
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2560
|
+
file: Schema.String,
|
|
2561
|
+
name: Schema.optional(Schema.String),
|
|
2562
|
+
opacity: Schema.optional(Schema.Number),
|
|
2563
|
+
padding: Schema.optional(Schema.Number),
|
|
2564
|
+
position: Schema.optional(Schema.String),
|
|
2565
|
+
scale: Schema.optional(Schema.Number),
|
|
2566
|
+
},
|
|
2567
|
+
).pipe(
|
|
2568
|
+
T.Http({
|
|
2569
|
+
method: "POST",
|
|
2570
|
+
path: "/accounts/{account_id}/stream/watermarks",
|
|
2571
|
+
contentType: "multipart",
|
|
2572
|
+
}),
|
|
2573
|
+
) as unknown as Schema.Schema<CreateWatermarkRequest>;
|
|
2574
|
+
|
|
2575
|
+
export interface CreateWatermarkResponse {
|
|
2576
|
+
/** The date and a time a watermark profile was created. */
|
|
2577
|
+
created?: string | null;
|
|
2578
|
+
/** The source URL for a downloaded image. If the watermark profile was created via direct upload, this field is null. */
|
|
2579
|
+
downloadedFrom?: string | null;
|
|
2580
|
+
/** The height of the image in pixels. */
|
|
2581
|
+
height?: number | null;
|
|
2582
|
+
/** A short description of the watermark profile. */
|
|
2583
|
+
name?: string | null;
|
|
2584
|
+
/** The translucency of the image. A value of `0.0` makes the image completely transparent, and `1.0` makes the image completely opaque. Note that if the image is already semi-transparent, setting this to */
|
|
2585
|
+
opacity?: number | null;
|
|
2586
|
+
/** The whitespace between the adjacent edges (determined by position) of the video and the image. `0.0` indicates no padding, and `1.0` indicates a fully padded video width or length, as determined by th */
|
|
2587
|
+
padding?: number | null;
|
|
2588
|
+
/** The location of the image. Valid positions are: `upperRight`, `upperLeft`, `lowerLeft`, `lowerRight`, and `center`. Note that `center` ignores the `padding` parameter. */
|
|
2589
|
+
position?: string | null;
|
|
2590
|
+
/** The size of the image relative to the overall size of the video. This parameter will adapt to horizontal and vertical videos automatically. `0.0` indicates no scaling (use the size of the image as-is) */
|
|
2591
|
+
scale?: number | null;
|
|
2592
|
+
/** The size of the image in bytes. */
|
|
2593
|
+
size?: number | null;
|
|
2594
|
+
/** The unique identifier for a watermark profile. */
|
|
2595
|
+
uid?: string | null;
|
|
2596
|
+
/** The width of the image in pixels. */
|
|
2597
|
+
width?: number | null;
|
|
2598
|
+
}
|
|
2599
|
+
|
|
2600
|
+
export const CreateWatermarkResponse =
|
|
2601
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2602
|
+
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2603
|
+
downloadedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2604
|
+
height: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2605
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2606
|
+
opacity: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2607
|
+
padding: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2608
|
+
position: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2609
|
+
scale: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2610
|
+
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2611
|
+
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2612
|
+
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2613
|
+
}) as unknown as Schema.Schema<CreateWatermarkResponse>;
|
|
2614
|
+
|
|
2615
|
+
export type CreateWatermarkError = DefaultErrors;
|
|
2616
|
+
|
|
2617
|
+
export const createWatermark: API.OperationMethod<
|
|
2618
|
+
CreateWatermarkRequest,
|
|
2619
|
+
CreateWatermarkResponse,
|
|
2620
|
+
CreateWatermarkError,
|
|
2621
|
+
Credentials | HttpClient.HttpClient
|
|
2622
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2623
|
+
input: CreateWatermarkRequest,
|
|
2624
|
+
output: CreateWatermarkResponse,
|
|
2625
|
+
errors: [],
|
|
2626
|
+
}));
|
|
2627
|
+
|
|
2628
|
+
export interface DeleteWatermarkRequest {
|
|
2629
|
+
identifier: string;
|
|
2630
|
+
/** The account identifier tag. */
|
|
2631
|
+
accountId: string;
|
|
2632
|
+
}
|
|
2633
|
+
|
|
2634
|
+
export const DeleteWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
2635
|
+
{
|
|
2636
|
+
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
2637
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2638
|
+
},
|
|
2639
|
+
).pipe(
|
|
2640
|
+
T.Http({
|
|
2641
|
+
method: "DELETE",
|
|
2642
|
+
path: "/accounts/{account_id}/stream/watermarks/{identifier}",
|
|
2643
|
+
}),
|
|
2644
|
+
) as unknown as Schema.Schema<DeleteWatermarkRequest>;
|
|
2645
|
+
|
|
2646
|
+
export type DeleteWatermarkResponse = string;
|
|
2647
|
+
|
|
2648
|
+
export const DeleteWatermarkResponse =
|
|
2649
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteWatermarkResponse>;
|
|
2650
|
+
|
|
2651
|
+
export type DeleteWatermarkError = DefaultErrors;
|
|
2652
|
+
|
|
2653
|
+
export const deleteWatermark: API.OperationMethod<
|
|
2654
|
+
DeleteWatermarkRequest,
|
|
2655
|
+
DeleteWatermarkResponse,
|
|
2656
|
+
DeleteWatermarkError,
|
|
2657
|
+
Credentials | HttpClient.HttpClient
|
|
2658
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2659
|
+
input: DeleteWatermarkRequest,
|
|
2660
|
+
output: DeleteWatermarkResponse,
|
|
2661
|
+
errors: [],
|
|
2662
|
+
}));
|
|
2663
|
+
|
|
2664
|
+
// =============================================================================
|
|
2665
|
+
// Webhook
|
|
2666
|
+
// =============================================================================
|
|
2667
|
+
|
|
2668
|
+
export interface GetWebhookRequest {
|
|
2669
|
+
/** The account identifier tag. */
|
|
2670
|
+
accountId: string;
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
export const GetWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2674
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2675
|
+
}).pipe(
|
|
2676
|
+
T.Http({ method: "GET", path: "/accounts/{account_id}/stream/webhook" }),
|
|
2677
|
+
) as unknown as Schema.Schema<GetWebhookRequest>;
|
|
2678
|
+
|
|
2679
|
+
export type GetWebhookResponse = unknown;
|
|
2680
|
+
|
|
2681
|
+
export const GetWebhookResponse =
|
|
2682
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<GetWebhookResponse>;
|
|
2683
|
+
|
|
2684
|
+
export type GetWebhookError = DefaultErrors;
|
|
2685
|
+
|
|
2686
|
+
export const getWebhook: API.OperationMethod<
|
|
2687
|
+
GetWebhookRequest,
|
|
2688
|
+
GetWebhookResponse,
|
|
2689
|
+
GetWebhookError,
|
|
2690
|
+
Credentials | HttpClient.HttpClient
|
|
2691
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2692
|
+
input: GetWebhookRequest,
|
|
2693
|
+
output: GetWebhookResponse,
|
|
2694
|
+
errors: [],
|
|
2695
|
+
}));
|
|
2696
|
+
|
|
2697
|
+
export interface PutWebhookRequest {
|
|
2698
|
+
/** Path param: The account identifier tag. */
|
|
2699
|
+
accountId: string;
|
|
2700
|
+
/** Body param: The URL where webhooks will be sent. */
|
|
2701
|
+
notificationUrl: string;
|
|
2702
|
+
}
|
|
2703
|
+
|
|
2704
|
+
export const PutWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2705
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2706
|
+
notificationUrl: Schema.String,
|
|
2707
|
+
}).pipe(
|
|
2708
|
+
T.Http({ method: "PUT", path: "/accounts/{account_id}/stream/webhook" }),
|
|
2709
|
+
) as unknown as Schema.Schema<PutWebhookRequest>;
|
|
2710
|
+
|
|
2711
|
+
export type PutWebhookResponse = unknown;
|
|
2712
|
+
|
|
2713
|
+
export const PutWebhookResponse =
|
|
2714
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown as unknown as Schema.Schema<PutWebhookResponse>;
|
|
2715
|
+
|
|
2716
|
+
export type PutWebhookError = DefaultErrors;
|
|
2717
|
+
|
|
2718
|
+
export const putWebhook: API.OperationMethod<
|
|
2719
|
+
PutWebhookRequest,
|
|
2720
|
+
PutWebhookResponse,
|
|
2721
|
+
PutWebhookError,
|
|
2722
|
+
Credentials | HttpClient.HttpClient
|
|
2723
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2724
|
+
input: PutWebhookRequest,
|
|
2725
|
+
output: PutWebhookResponse,
|
|
2726
|
+
errors: [],
|
|
2727
|
+
}));
|
|
2728
|
+
|
|
2729
|
+
export interface DeleteWebhookRequest {
|
|
2730
|
+
/** The account identifier tag. */
|
|
2731
|
+
accountId: string;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
export const DeleteWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2735
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2736
|
+
}).pipe(
|
|
2737
|
+
T.Http({ method: "DELETE", path: "/accounts/{account_id}/stream/webhook" }),
|
|
2738
|
+
) as unknown as Schema.Schema<DeleteWebhookRequest>;
|
|
2739
|
+
|
|
2740
|
+
export type DeleteWebhookResponse = string;
|
|
2741
|
+
|
|
2742
|
+
export const DeleteWebhookResponse =
|
|
2743
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<DeleteWebhookResponse>;
|
|
2744
|
+
|
|
2745
|
+
export type DeleteWebhookError = DefaultErrors;
|
|
2746
|
+
|
|
2747
|
+
export const deleteWebhook: API.OperationMethod<
|
|
2748
|
+
DeleteWebhookRequest,
|
|
2749
|
+
DeleteWebhookResponse,
|
|
2750
|
+
DeleteWebhookError,
|
|
2751
|
+
Credentials | HttpClient.HttpClient
|
|
2752
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
2753
|
+
input: DeleteWebhookRequest,
|
|
2754
|
+
output: DeleteWebhookResponse,
|
|
2755
|
+
errors: [],
|
|
2756
|
+
}));
|