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