@distilled.cloud/cloudflare 0.2.6 → 0.4.0
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 +12 -2
- package/lib/auth.d.ts +3 -2
- package/lib/auth.d.ts.map +1 -1
- package/lib/auth.js +4 -3
- package/lib/auth.js.map +1 -1
- package/lib/client/api.d.ts +7 -9
- package/lib/client/api.d.ts.map +1 -1
- package/lib/client/api.js +60 -13
- package/lib/client/api.js.map +1 -1
- package/lib/credentials.d.ts +58 -4
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +126 -7
- package/lib/credentials.js.map +1 -1
- package/lib/errors.d.ts +12 -1
- package/lib/errors.d.ts.map +1 -1
- 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 +116 -44
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +171 -110
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +146 -62
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +208 -153
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/acm.d.ts.map +1 -1
- package/lib/services/acm.js +8 -4
- package/lib/services/acm.js.map +1 -1
- package/lib/services/addressing.d.ts +200 -87
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +288 -201
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +302 -121
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +407 -283
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +83 -29
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +95 -42
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +266 -112
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +510 -393
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +249 -112
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +382 -325
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +458 -200
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +725 -618
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/argo.d.ts.map +1 -1
- package/lib/services/argo.js +16 -8
- package/lib/services/argo.js.map +1 -1
- package/lib/services/billing.d.ts.map +1 -1
- package/lib/services/billing.js +4 -2
- package/lib/services/billing.js.map +1 -1
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +2 -2
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/botnet-feed.d.ts.map +1 -1
- package/lib/services/botnet-feed.js +10 -6
- package/lib/services/botnet-feed.js.map +1 -1
- package/lib/services/brand-protection.d.ts +8 -2
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +9 -2
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +15 -14
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cache.d.ts.map +1 -1
- package/lib/services/cache.js +49 -25
- package/lib/services/cache.js.map +1 -1
- package/lib/services/calls.d.ts +35 -14
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +35 -22
- package/lib/services/calls.js.map +1 -1
- package/lib/services/certificate-authorities.d.ts.map +1 -1
- package/lib/services/certificate-authorities.js +2 -2
- package/lib/services/certificate-authorities.js.map +1 -1
- package/lib/services/client-certificates.d.ts +57 -23
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +91 -62
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +51 -22
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +57 -44
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +119 -50
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +181 -124
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +74 -31
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +84 -57
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +40 -15
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +40 -21
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +48 -19
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +80 -53
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +116 -51
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +210 -170
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +32 -12
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +36 -21
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +26 -11
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +39 -24
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +114 -48
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +150 -111
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dcv-delegation.d.ts.map +1 -1
- package/lib/services/dcv-delegation.js +1 -1
- package/lib/services/dcv-delegation.js.map +1 -1
- package/lib/services/diagnostics.d.ts +59 -26
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +97 -82
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +48 -19
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +75 -48
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +206 -87
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +335 -219
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +44 -13
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +56 -19
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +90 -34
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +133 -80
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +439 -181
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +753 -557
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +64 -24
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +61 -28
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +455 -183
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +777 -574
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +76 -33
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +129 -100
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +20 -8
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +32 -21
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +10 -9
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +162 -59
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +219 -119
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +36 -12
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +59 -32
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +159 -62
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +238 -151
- package/lib/services/intel.js.map +1 -1
- package/lib/services/ips.d.ts.map +1 -1
- package/lib/services/ips.js +1 -1
- package/lib/services/ips.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +36 -16
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +50 -37
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +42 -12
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +87 -36
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +16 -6
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +20 -12
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +373 -167
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +603 -490
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +23 -15
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/logs.d.ts.map +1 -1
- package/lib/services/logs.js +11 -7
- package/lib/services/logs.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +542 -249
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +890 -804
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +44 -22
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +432 -196
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +730 -566
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/managed-transforms.d.ts.map +1 -1
- package/lib/services/managed-transforms.js +8 -4
- package/lib/services/managed-transforms.js.map +1 -1
- package/lib/services/memberships.d.ts +54 -22
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +79 -53
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +41 -17
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +52 -33
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +56 -25
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +74 -59
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +30 -10
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +62 -35
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-post-quantum-encryption.d.ts.map +1 -1
- package/lib/services/origin-post-quantum-encryption.js +8 -4
- package/lib/services/origin-post-quantum-encryption.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +60 -25
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +94 -60
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +18 -10
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/page-shield.d.ts +145 -66
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +166 -130
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +520 -225
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +643 -567
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +461 -206
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +859 -780
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +177 -80
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +233 -177
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2-data-catalog.d.ts.map +1 -1
- package/lib/services/r2-data-catalog.js +30 -16
- package/lib/services/r2-data-catalog.js.map +1 -1
- package/lib/services/r2.d.ts +85 -39
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +146 -126
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +152 -63
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +421 -360
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +76 -31
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +106 -82
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +34 -33
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/registrar.d.ts +75 -35
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +116 -103
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +5 -2
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +132 -50
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +232 -149
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +86 -37
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +122 -87
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +75 -30
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +274 -222
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +40 -15
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +78 -45
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +47 -14
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +102 -43
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +116 -44
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +145 -78
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +56 -22
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +90 -64
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/security-txt.d.ts.map +1 -1
- package/lib/services/security-txt.js +1 -1
- package/lib/services/security-txt.js.map +1 -1
- package/lib/services/snippets.d.ts +85 -33
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +106 -63
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +58 -24
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +90 -65
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +47 -17
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +51 -24
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +77 -35
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +146 -123
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +173 -77
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +167 -131
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +203 -88
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +238 -172
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +38 -14
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +72 -41
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/url-normalization.d.ts.map +1 -1
- package/lib/services/url-normalization.js +2 -2
- package/lib/services/url-normalization.js.map +1 -1
- package/lib/services/user.d.ts +106 -40
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +156 -89
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +26 -11
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +46 -35
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +244 -104
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +398 -296
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +26 -11
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +62 -43
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +323 -153
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +331 -288
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +601 -272
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +771 -633
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +130 -47
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +190 -107
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +20 -8
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +20 -13
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +5436 -2650
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +9008 -7934
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +188 -84
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +257 -196
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -2
- package/src/auth.ts +4 -3
- package/src/client/api.ts +105 -13
- package/src/credentials.ts +253 -12
- package/src/errors.ts +17 -1
- package/src/sensitive.ts +4 -0
- package/src/services/abuse-reports.ts +416 -208
- package/src/services/accounts.ts +511 -306
- package/src/services/acm.ts +22 -14
- package/src/services/addressing.ts +865 -550
- package/src/services/ai-gateway.ts +1148 -710
- package/src/services/ai.ts +265 -91
- package/src/services/aisearch.ts +1460 -995
- package/src/services/alerting.ts +1027 -671
- package/src/services/api-gateway.ts +1628 -1129
- package/src/services/argo.ts +48 -32
- package/src/services/billing.ts +47 -43
- package/src/services/bot-management.ts +6 -2
- package/src/services/botnet-feed.ts +28 -16
- package/src/services/brand-protection.ts +28 -6
- package/src/services/browser-rendering.ts +23 -10
- package/src/services/cache.ts +147 -97
- package/src/services/calls.ts +107 -42
- package/src/services/certificate-authorities.ts +6 -2
- package/src/services/client-certificates.ts +270 -173
- package/src/services/cloud-connector.ts +149 -82
- package/src/services/cloudforce-one.ts +515 -287
- package/src/services/connectivity.ts +184 -107
- package/src/services/content-scanning.ts +115 -42
- package/src/services/custom-certificates.ts +200 -121
- package/src/services/custom-hostnames.ts +583 -395
- package/src/services/custom-nameservers.ts +98 -45
- package/src/services/custom-pages.ts +109 -62
- package/src/services/d1.ts +409 -235
- package/src/services/dcv-delegation.ts +3 -1
- package/src/services/diagnostics.ts +267 -193
- package/src/services/dns-firewall.ts +197 -116
- package/src/services/dns.ts +916 -536
- package/src/services/durable-objects.ts +126 -37
- package/src/services/email-routing.ts +375 -181
- package/src/services/email-security.ts +1881 -1112
- package/src/services/filters.ts +176 -58
- package/src/services/firewall.ts +1843 -1011
- package/src/services/healthchecks.ts +374 -258
- package/src/services/hostnames.ts +83 -47
- package/src/services/hyperdrive.ts +12 -9
- package/src/services/iam.ts +560 -259
- package/src/services/images.ts +148 -54
- package/src/services/intel.ts +677 -373
- package/src/services/ips.ts +1 -1
- package/src/services/keyless-certificates.ts +139 -92
- package/src/services/kv.ts +204 -86
- package/src/services/leaked-credential-checks.ts +58 -19
- package/src/services/load-balancers.ts +1755 -1200
- package/src/services/logpush.ts +100 -72
- package/src/services/logs.ts +29 -15
- package/src/services/magic-cloud-networking.ts +2453 -1726
- package/src/services/magic-network-monitoring.ts +163 -119
- package/src/services/magic-transit.ts +2153 -1530
- package/src/services/managed-transforms.ts +20 -12
- package/src/services/memberships.ts +196 -113
- package/src/services/mtls-certificates.ts +158 -88
- package/src/services/organizations.ts +185 -121
- package/src/services/origin-ca-certificates.ts +130 -64
- package/src/services/origin-post-quantum-encryption.ts +24 -16
- package/src/services/origin-tls-client-auth.ts +282 -158
- package/src/services/page-rules.ts +64 -44
- package/src/services/page-shield.ts +492 -316
- package/src/services/pages.ts +1612 -1154
- package/src/services/pipelines.ts +1735 -1280
- package/src/services/queues.ts +617 -419
- package/src/services/r2-data-catalog.ts +82 -50
- package/src/services/r2.ts +420 -239
- package/src/services/radar.ts +1107 -423
- package/src/services/rate-limits.ts +254 -152
- package/src/services/realtime-kit.ts +34 -33
- package/src/services/registrar.ts +262 -167
- package/src/services/request-tracers.ts +7 -4
- package/src/services/resource-sharing.ts +628 -378
- package/src/services/rules.ts +292 -176
- package/src/services/rulesets.ts +643 -426
- package/src/services/rum.ts +204 -111
- package/src/services/schema-validation.ts +240 -104
- package/src/services/secrets-store.ts +356 -166
- package/src/services/security-center.ts +196 -98
- package/src/services/security-txt.ts +2 -0
- package/src/services/snippets.ts +259 -117
- package/src/services/spectrum.ts +215 -128
- package/src/services/speed.ts +144 -46
- package/src/services/ssl.ts +420 -293
- package/src/services/stream.ts +496 -244
- package/src/services/token-validation.ts +583 -343
- package/src/services/turnstile.ts +206 -124
- package/src/services/url-normalization.ts +6 -2
- package/src/services/user.ts +480 -277
- package/src/services/vectorize.ts +123 -64
- package/src/services/waiting-rooms.ts +1156 -747
- package/src/services/web3.ts +178 -113
- package/src/services/workers-for-platforms.ts +814 -539
- package/src/services/workers.ts +1888 -1227
- package/src/services/workflows.ts +453 -205
- package/src/services/zaraz.ts +61 -25
- package/src/services/zero-trust.ts +17859 -12103
- package/src/services/zones.ts +690 -459
package/lib/services/stream.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* Generated from Cloudflare TypeScript SDK.
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service stream
|
|
6
6
|
*/
|
|
7
|
+
import * as stream from "effect/Stream";
|
|
7
8
|
import * as Schema from "effect/Schema";
|
|
8
9
|
import * as API from "../client/api.js";
|
|
9
10
|
import * as T from "../traits.js";
|
|
@@ -15,19 +16,25 @@ export const GetAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
15
16
|
method: "GET",
|
|
16
17
|
path: "/accounts/{account_id}/stream/{identifier}/audio",
|
|
17
18
|
}));
|
|
18
|
-
export const GetAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
Schema.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
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(() => ({
|
|
28
31
|
input: GetAudioTrackRequest,
|
|
29
32
|
output: GetAudioTrackResponse,
|
|
30
33
|
errors: [],
|
|
34
|
+
pagination: {
|
|
35
|
+
mode: "single",
|
|
36
|
+
items: "result",
|
|
37
|
+
},
|
|
31
38
|
}));
|
|
32
39
|
export const PatchAudioTrackRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
33
40
|
identifier: Schema.String.pipe(T.HttpPath("identifier")),
|
|
@@ -48,7 +55,7 @@ export const PatchAudioTrackResponse =
|
|
|
48
55
|
Schema.Null,
|
|
49
56
|
])),
|
|
50
57
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
51
|
-
});
|
|
58
|
+
}).pipe(T.ResponsePath("result"));
|
|
52
59
|
export const patchAudioTrack = API.make(() => ({
|
|
53
60
|
input: PatchAudioTrackRequest,
|
|
54
61
|
output: PatchAudioTrackResponse,
|
|
@@ -64,7 +71,7 @@ export const DeleteAudioTrackRequest =
|
|
|
64
71
|
path: "/accounts/{account_id}/stream/{identifier}/audio/{audioIdentifier}",
|
|
65
72
|
}));
|
|
66
73
|
export const DeleteAudioTrackResponse =
|
|
67
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
74
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
68
75
|
export const deleteAudioTrack = API.make(() => ({
|
|
69
76
|
input: DeleteAudioTrackRequest,
|
|
70
77
|
output: DeleteAudioTrackResponse,
|
|
@@ -87,7 +94,7 @@ export const CopyAudioTrackResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
87
94
|
Schema.Null,
|
|
88
95
|
])),
|
|
89
96
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
90
|
-
});
|
|
97
|
+
}).pipe(T.ResponsePath("result"));
|
|
91
98
|
export const copyAudioTrack = API.make(() => ({
|
|
92
99
|
input: CopyAudioTrackRequest,
|
|
93
100
|
output: CopyAudioTrackResponse,
|
|
@@ -100,19 +107,25 @@ export const GetCaptionRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
100
107
|
method: "GET",
|
|
101
108
|
path: "/accounts/{account_id}/stream/{identifier}/captions",
|
|
102
109
|
}));
|
|
103
|
-
export const GetCaptionResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
Schema.
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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(() => ({
|
|
113
122
|
input: GetCaptionRequest,
|
|
114
123
|
output: GetCaptionResponse,
|
|
115
124
|
errors: [],
|
|
125
|
+
pagination: {
|
|
126
|
+
mode: "single",
|
|
127
|
+
items: "result",
|
|
128
|
+
},
|
|
116
129
|
}));
|
|
117
130
|
export const GetCaptionLanguageRequest =
|
|
118
131
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -174,7 +187,7 @@ export const DeleteCaptionLanguageRequest =
|
|
|
174
187
|
path: "/accounts/{account_id}/stream/{identifier}/captions/{language}",
|
|
175
188
|
}));
|
|
176
189
|
export const DeleteCaptionLanguageResponse =
|
|
177
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
190
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
178
191
|
export const deleteCaptionLanguage = API.make(() => ({
|
|
179
192
|
input: DeleteCaptionLanguageRequest,
|
|
180
193
|
output: DeleteCaptionLanguageResponse,
|
|
@@ -248,7 +261,7 @@ export const CreateClipResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
248
261
|
}),
|
|
249
262
|
Schema.Null,
|
|
250
263
|
])),
|
|
251
|
-
});
|
|
264
|
+
}).pipe(T.ResponsePath("result"));
|
|
252
265
|
export const createClip = API.make(() => ({
|
|
253
266
|
input: CreateClipRequest,
|
|
254
267
|
output: CreateClipResponse,
|
|
@@ -300,7 +313,7 @@ export const CreateDirectUploadResponse =
|
|
|
300
313
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
301
314
|
uploadURL: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
302
315
|
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
303
|
-
});
|
|
316
|
+
}).pipe(T.ResponsePath("result"));
|
|
304
317
|
export const createDirectUpload = API.make(() => ({
|
|
305
318
|
input: CreateDirectUploadRequest,
|
|
306
319
|
output: CreateDirectUploadResponse,
|
|
@@ -336,7 +349,7 @@ export const GetDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
336
349
|
}),
|
|
337
350
|
Schema.Null,
|
|
338
351
|
])),
|
|
339
|
-
});
|
|
352
|
+
}).pipe(T.ResponsePath("result"));
|
|
340
353
|
export const getDownload = API.make(() => ({
|
|
341
354
|
input: GetDownloadRequest,
|
|
342
355
|
output: GetDownloadResponse,
|
|
@@ -357,7 +370,7 @@ export const CreateDownloadResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
357
370
|
Schema.Null,
|
|
358
371
|
])),
|
|
359
372
|
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
360
|
-
});
|
|
373
|
+
}).pipe(T.ResponsePath("result"));
|
|
361
374
|
export const createDownload = API.make(() => ({
|
|
362
375
|
input: CreateDownloadRequest,
|
|
363
376
|
output: CreateDownloadResponse,
|
|
@@ -371,7 +384,7 @@ export const DeleteDownloadRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
371
384
|
path: "/accounts/{account_id}/stream/{identifier}/downloads",
|
|
372
385
|
}));
|
|
373
386
|
export const DeleteDownloadResponse =
|
|
374
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
387
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
375
388
|
export const deleteDownload = API.make(() => ({
|
|
376
389
|
input: DeleteDownloadRequest,
|
|
377
390
|
output: DeleteDownloadResponse,
|
|
@@ -394,14 +407,20 @@ export const getEmbed = API.make(() => ({
|
|
|
394
407
|
export const GetKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
395
408
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
396
409
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/keys" }));
|
|
397
|
-
export const GetKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
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(() => ({
|
|
402
417
|
input: GetKeyRequest,
|
|
403
418
|
output: GetKeyResponse,
|
|
404
419
|
errors: [],
|
|
420
|
+
pagination: {
|
|
421
|
+
mode: "single",
|
|
422
|
+
items: "result",
|
|
423
|
+
},
|
|
405
424
|
}));
|
|
406
425
|
export const CreateKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
407
426
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -412,7 +431,7 @@ export const CreateKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
412
431
|
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
413
432
|
jwk: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
414
433
|
pem: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
415
|
-
});
|
|
434
|
+
}).pipe(T.ResponsePath("result"));
|
|
416
435
|
export const createKey = API.make(() => ({
|
|
417
436
|
input: CreateKeyRequest,
|
|
418
437
|
output: CreateKeyResponse,
|
|
@@ -425,8 +444,7 @@ export const DeleteKeyRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
425
444
|
method: "DELETE",
|
|
426
445
|
path: "/accounts/{account_id}/stream/keys/{identifier}",
|
|
427
446
|
}));
|
|
428
|
-
export const DeleteKeyResponse =
|
|
429
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
447
|
+
export const DeleteKeyResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
430
448
|
export const deleteKey = API.make(() => ({
|
|
431
449
|
input: DeleteKeyRequest,
|
|
432
450
|
output: DeleteKeyResponse,
|
|
@@ -445,7 +463,7 @@ export const GetLiveInputResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
445
463
|
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
446
464
|
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
447
465
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
448
|
-
});
|
|
466
|
+
}).pipe(T.ResponsePath("result"));
|
|
449
467
|
export const getLiveInput = API.make(() => ({
|
|
450
468
|
input: GetLiveInputRequest,
|
|
451
469
|
output: GetLiveInputResponse,
|
|
@@ -468,7 +486,7 @@ export const ListLiveInputsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
468
486
|
])),
|
|
469
487
|
range: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
470
488
|
total: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
471
|
-
});
|
|
489
|
+
}).pipe(T.ResponsePath("result"));
|
|
472
490
|
export const listLiveInputs = API.make(() => ({
|
|
473
491
|
input: ListLiveInputsRequest,
|
|
474
492
|
output: ListLiveInputsResponse,
|
|
@@ -494,7 +512,7 @@ export const CreateLiveInputResponse =
|
|
|
494
512
|
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
495
513
|
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
496
514
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
497
|
-
});
|
|
515
|
+
}).pipe(T.ResponsePath("result"));
|
|
498
516
|
export const createLiveInput = API.make(() => ({
|
|
499
517
|
input: CreateLiveInputRequest,
|
|
500
518
|
output: CreateLiveInputResponse,
|
|
@@ -524,7 +542,7 @@ export const UpdateLiveInputResponse =
|
|
|
524
542
|
meta: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
525
543
|
modified: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
526
544
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
527
|
-
});
|
|
545
|
+
}).pipe(T.ResponsePath("result"));
|
|
528
546
|
export const updateLiveInput = API.make(() => ({
|
|
529
547
|
input: UpdateLiveInputRequest,
|
|
530
548
|
output: UpdateLiveInputResponse,
|
|
@@ -553,16 +571,22 @@ export const ListLiveInputOutputsRequest =
|
|
|
553
571
|
path: "/accounts/{account_id}/stream/live_inputs/{liveInputIdentifier}/outputs",
|
|
554
572
|
}));
|
|
555
573
|
export const ListLiveInputOutputsResponse =
|
|
556
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
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(() => ({
|
|
563
583
|
input: ListLiveInputOutputsRequest,
|
|
564
584
|
output: ListLiveInputOutputsResponse,
|
|
565
585
|
errors: [],
|
|
586
|
+
pagination: {
|
|
587
|
+
mode: "single",
|
|
588
|
+
items: "result",
|
|
589
|
+
},
|
|
566
590
|
}));
|
|
567
591
|
export const CreateLiveInputOutputRequest =
|
|
568
592
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -581,7 +605,7 @@ export const CreateLiveInputOutputResponse =
|
|
|
581
605
|
streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
582
606
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
583
607
|
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
584
|
-
});
|
|
608
|
+
}).pipe(T.ResponsePath("result"));
|
|
585
609
|
export const createLiveInputOutput = API.make(() => ({
|
|
586
610
|
input: CreateLiveInputOutputRequest,
|
|
587
611
|
output: CreateLiveInputOutputResponse,
|
|
@@ -603,7 +627,7 @@ export const UpdateLiveInputOutputResponse =
|
|
|
603
627
|
streamKey: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
604
628
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
605
629
|
url: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
606
|
-
});
|
|
630
|
+
}).pipe(T.ResponsePath("result"));
|
|
607
631
|
export const updateLiveInputOutput = API.make(() => ({
|
|
608
632
|
input: UpdateLiveInputOutputRequest,
|
|
609
633
|
output: UpdateLiveInputOutputResponse,
|
|
@@ -684,7 +708,7 @@ export const GetStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
684
708
|
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
685
709
|
uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
686
710
|
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
687
|
-
});
|
|
711
|
+
}).pipe(T.ResponsePath("result"));
|
|
688
712
|
export const getStream = API.make(() => ({
|
|
689
713
|
input: GetStreamRequest,
|
|
690
714
|
output: GetStreamResponse,
|
|
@@ -710,66 +734,72 @@ export const ListStreamsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
710
734
|
type: Schema.optional(Schema.String).pipe(T.HttpQuery("type")),
|
|
711
735
|
videoName: Schema.optional(Schema.String).pipe(T.HttpQuery("video_name")),
|
|
712
736
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream" }));
|
|
713
|
-
export const ListStreamsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
Schema.
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
Schema.
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
Schema.
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
Schema.
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
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(() => ({
|
|
770
796
|
input: ListStreamsRequest,
|
|
771
797
|
output: ListStreamsResponse,
|
|
772
798
|
errors: [],
|
|
799
|
+
pagination: {
|
|
800
|
+
mode: "single",
|
|
801
|
+
items: "result",
|
|
802
|
+
},
|
|
773
803
|
}));
|
|
774
804
|
export const CreateStreamRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
775
805
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -871,7 +901,7 @@ export const EditStreamResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
871
901
|
uploaded: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
872
902
|
uploadExpiry: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
873
903
|
watermark: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
874
|
-
});
|
|
904
|
+
}).pipe(T.ResponsePath("result"));
|
|
875
905
|
export const editStream = API.make(() => ({
|
|
876
906
|
input: EditStreamRequest,
|
|
877
907
|
output: EditStreamResponse,
|
|
@@ -897,7 +927,7 @@ export const CreateTokenRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
897
927
|
}));
|
|
898
928
|
export const CreateTokenResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
899
929
|
token: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
900
|
-
});
|
|
930
|
+
}).pipe(T.ResponsePath("result"));
|
|
901
931
|
export const createToken = API.make(() => ({
|
|
902
932
|
input: CreateTokenRequest,
|
|
903
933
|
output: CreateTokenResponse,
|
|
@@ -917,7 +947,7 @@ export const StorageUsageVideoResponse =
|
|
|
917
947
|
totalStorageMinutes: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
918
948
|
totalStorageMinutesLimit: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
919
949
|
videoCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
920
|
-
});
|
|
950
|
+
}).pipe(T.ResponsePath("result"));
|
|
921
951
|
export const storageUsageVideo = API.make(() => ({
|
|
922
952
|
input: StorageUsageVideoRequest,
|
|
923
953
|
output: StorageUsageVideoResponse,
|
|
@@ -942,7 +972,7 @@ export const GetWatermarkResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
942
972
|
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
943
973
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
944
974
|
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
945
|
-
});
|
|
975
|
+
}).pipe(T.ResponsePath("result"));
|
|
946
976
|
export const getWatermark = API.make(() => ({
|
|
947
977
|
input: GetWatermarkRequest,
|
|
948
978
|
output: GetWatermarkResponse,
|
|
@@ -951,23 +981,29 @@ export const getWatermark = API.make(() => ({
|
|
|
951
981
|
export const ListWatermarksRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
952
982
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
953
983
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/watermarks" }));
|
|
954
|
-
export const ListWatermarksResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
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(() => ({
|
|
968
1000
|
input: ListWatermarksRequest,
|
|
969
1001
|
output: ListWatermarksResponse,
|
|
970
1002
|
errors: [],
|
|
1003
|
+
pagination: {
|
|
1004
|
+
mode: "single",
|
|
1005
|
+
items: "result",
|
|
1006
|
+
},
|
|
971
1007
|
}));
|
|
972
1008
|
export const CreateWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
973
1009
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -995,7 +1031,7 @@ export const CreateWatermarkResponse =
|
|
|
995
1031
|
size: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
996
1032
|
uid: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
997
1033
|
width: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
998
|
-
});
|
|
1034
|
+
}).pipe(T.ResponsePath("result"));
|
|
999
1035
|
export const createWatermark = API.make(() => ({
|
|
1000
1036
|
input: CreateWatermarkRequest,
|
|
1001
1037
|
output: CreateWatermarkResponse,
|
|
@@ -1009,7 +1045,7 @@ export const DeleteWatermarkRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
1009
1045
|
path: "/accounts/{account_id}/stream/watermarks/{identifier}",
|
|
1010
1046
|
}));
|
|
1011
1047
|
export const DeleteWatermarkResponse =
|
|
1012
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
1048
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
1013
1049
|
export const deleteWatermark = API.make(() => ({
|
|
1014
1050
|
input: DeleteWatermarkRequest,
|
|
1015
1051
|
output: DeleteWatermarkResponse,
|
|
@@ -1019,7 +1055,7 @@ export const GetWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1019
1055
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1020
1056
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/stream/webhook" }));
|
|
1021
1057
|
export const GetWebhookResponse =
|
|
1022
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
1058
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
1023
1059
|
export const getWebhook = API.make(() => ({
|
|
1024
1060
|
input: GetWebhookRequest,
|
|
1025
1061
|
output: GetWebhookResponse,
|
|
@@ -1030,7 +1066,7 @@ export const PutWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1030
1066
|
notificationUrl: Schema.String,
|
|
1031
1067
|
}).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/stream/webhook" }));
|
|
1032
1068
|
export const PutWebhookResponse =
|
|
1033
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
1069
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
1034
1070
|
export const putWebhook = API.make(() => ({
|
|
1035
1071
|
input: PutWebhookRequest,
|
|
1036
1072
|
output: PutWebhookResponse,
|
|
@@ -1040,7 +1076,7 @@ export const DeleteWebhookRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1040
1076
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
1041
1077
|
}).pipe(T.Http({ method: "DELETE", path: "/accounts/{account_id}/stream/webhook" }));
|
|
1042
1078
|
export const DeleteWebhookResponse =
|
|
1043
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.String;
|
|
1079
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String.pipe(T.ResponsePath("result"));
|
|
1044
1080
|
export const deleteWebhook = API.make(() => ({
|
|
1045
1081
|
input: DeleteWebhookRequest,
|
|
1046
1082
|
output: DeleteWebhookResponse,
|