@distilled.cloud/cloudflare 0.2.5-alpha2 → 0.3.0-alpha
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/workers.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 workers
|
|
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";
|
|
@@ -53,10 +54,12 @@ export const GetAccountSettingResponse =
|
|
|
53
54
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
54
55
|
defaultUsageModel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
55
56
|
greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
56
|
-
})
|
|
57
|
+
})
|
|
58
|
+
.pipe(Schema.encodeKeys({
|
|
57
59
|
defaultUsageModel: "default_usage_model",
|
|
58
60
|
greenCompute: "green_compute",
|
|
59
|
-
}))
|
|
61
|
+
}))
|
|
62
|
+
.pipe(T.ResponsePath("result"));
|
|
60
63
|
export const getAccountSetting = API.make(() => ({
|
|
61
64
|
input: GetAccountSettingRequest,
|
|
62
65
|
output: GetAccountSettingResponse,
|
|
@@ -78,10 +81,12 @@ export const PutAccountSettingResponse =
|
|
|
78
81
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
79
82
|
defaultUsageModel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
80
83
|
greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
81
|
-
})
|
|
84
|
+
})
|
|
85
|
+
.pipe(Schema.encodeKeys({
|
|
82
86
|
defaultUsageModel: "default_usage_model",
|
|
83
87
|
greenCompute: "green_compute",
|
|
84
|
-
}))
|
|
88
|
+
}))
|
|
89
|
+
.pipe(T.ResponsePath("result"));
|
|
85
90
|
export const putAccountSetting = API.make(() => ({
|
|
86
91
|
input: PutAccountSettingRequest,
|
|
87
92
|
output: PutAccountSettingResponse,
|
|
@@ -91,6 +96,7 @@ export const CreateAssetUploadRequest =
|
|
|
91
96
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
92
97
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
93
98
|
base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
|
|
99
|
+
jwtToken: Schema.optional(Schema.String).pipe(T.HttpHeader("Authorization")),
|
|
94
100
|
body: Schema.Struct({}).pipe(T.HttpBody()),
|
|
95
101
|
}).pipe(T.Http({
|
|
96
102
|
method: "POST",
|
|
@@ -100,7 +106,7 @@ export const CreateAssetUploadRequest =
|
|
|
100
106
|
export const CreateAssetUploadResponse =
|
|
101
107
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
102
108
|
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
103
|
-
});
|
|
109
|
+
}).pipe(T.ResponsePath("result"));
|
|
104
110
|
export const createAssetUpload = API.make(() => ({
|
|
105
111
|
input: CreateAssetUploadRequest,
|
|
106
112
|
output: CreateAssetUploadResponse,
|
|
@@ -116,7 +122,7 @@ export const GetBetaWorkerRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
116
122
|
export const GetBetaWorkerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
117
123
|
id: Schema.String,
|
|
118
124
|
name: Schema.String,
|
|
119
|
-
});
|
|
125
|
+
}).pipe(T.ResponsePath("result"));
|
|
120
126
|
export const getBetaWorker = API.make(() => ({
|
|
121
127
|
input: GetBetaWorkerRequest,
|
|
122
128
|
output: GetBetaWorkerResponse,
|
|
@@ -125,14 +131,35 @@ export const getBetaWorker = API.make(() => ({
|
|
|
125
131
|
export const ListBetaWorkersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
126
132
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
127
133
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" }));
|
|
128
|
-
export const ListBetaWorkersResponse =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
134
|
+
export const ListBetaWorkersResponse =
|
|
135
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
136
|
+
result: Schema.Array(Schema.Struct({
|
|
137
|
+
id: Schema.String,
|
|
138
|
+
name: Schema.String,
|
|
139
|
+
})),
|
|
140
|
+
resultInfo: Schema.Struct({
|
|
141
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
142
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
143
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
144
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
145
|
+
}).pipe(Schema.encodeKeys({
|
|
146
|
+
count: "count",
|
|
147
|
+
page: "page",
|
|
148
|
+
perPage: "per_page",
|
|
149
|
+
totalCount: "total_count",
|
|
150
|
+
})),
|
|
151
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
152
|
+
export const listBetaWorkers = API.makePaginated(() => ({
|
|
133
153
|
input: ListBetaWorkersRequest,
|
|
134
154
|
output: ListBetaWorkersResponse,
|
|
135
155
|
errors: [InvalidRoute],
|
|
156
|
+
pagination: {
|
|
157
|
+
mode: "page",
|
|
158
|
+
inputToken: "page",
|
|
159
|
+
outputToken: "resultInfo.page",
|
|
160
|
+
items: "result",
|
|
161
|
+
pageSize: "perPage",
|
|
162
|
+
},
|
|
136
163
|
}));
|
|
137
164
|
export const CreateBetaWorkerRequest =
|
|
138
165
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -179,7 +206,7 @@ export const CreateBetaWorkerResponse =
|
|
|
179
206
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
180
207
|
id: Schema.String,
|
|
181
208
|
name: Schema.String,
|
|
182
|
-
});
|
|
209
|
+
}).pipe(T.ResponsePath("result"));
|
|
183
210
|
export const createBetaWorker = API.make(() => ({
|
|
184
211
|
input: CreateBetaWorkerRequest,
|
|
185
212
|
output: CreateBetaWorkerResponse,
|
|
@@ -234,7 +261,7 @@ export const UpdateBetaWorkerResponse =
|
|
|
234
261
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
235
262
|
id: Schema.String,
|
|
236
263
|
name: Schema.String,
|
|
237
|
-
});
|
|
264
|
+
}).pipe(T.ResponsePath("result"));
|
|
238
265
|
export const updateBetaWorker = API.make(() => ({
|
|
239
266
|
input: UpdateBetaWorkerRequest,
|
|
240
267
|
output: UpdateBetaWorkerResponse,
|
|
@@ -288,7 +315,7 @@ export const PatchBetaWorkerResponse =
|
|
|
288
315
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
289
316
|
id: Schema.String,
|
|
290
317
|
name: Schema.String,
|
|
291
|
-
});
|
|
318
|
+
}).pipe(T.ResponsePath("result"));
|
|
292
319
|
export const patchBetaWorker = API.make(() => ({
|
|
293
320
|
input: PatchBetaWorkerRequest,
|
|
294
321
|
output: PatchBetaWorkerResponse,
|
|
@@ -664,7 +691,8 @@ export const GetBetaWorkerVersionResponse =
|
|
|
664
691
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
665
692
|
Schema.Null,
|
|
666
693
|
])),
|
|
667
|
-
})
|
|
694
|
+
})
|
|
695
|
+
.pipe(Schema.encodeKeys({
|
|
668
696
|
id: "id",
|
|
669
697
|
createdOn: "created_on",
|
|
670
698
|
number: "number",
|
|
@@ -681,7 +709,8 @@ export const GetBetaWorkerVersionResponse =
|
|
|
681
709
|
source: "source",
|
|
682
710
|
startupTimeMs: "startup_time_ms",
|
|
683
711
|
usageModel: "usage_model",
|
|
684
|
-
}))
|
|
712
|
+
}))
|
|
713
|
+
.pipe(T.ResponsePath("result"));
|
|
685
714
|
export const getBetaWorkerVersion = API.make(() => ({
|
|
686
715
|
input: GetBetaWorkerVersionRequest,
|
|
687
716
|
output: GetBetaWorkerVersionResponse,
|
|
@@ -696,347 +725,367 @@ export const ListBetaWorkerVersionsRequest =
|
|
|
696
725
|
path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
|
|
697
726
|
}));
|
|
698
727
|
export const ListBetaWorkerVersionsResponse =
|
|
699
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
Schema.
|
|
705
|
-
workersMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
706
|
-
workersTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
707
|
-
workersTriggeredBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
708
|
-
}).pipe(Schema.encodeKeys({
|
|
709
|
-
workersMessage: "workers/message",
|
|
710
|
-
workersTag: "workers/tag",
|
|
711
|
-
workersTriggeredBy: "workers/triggered_by",
|
|
712
|
-
})),
|
|
713
|
-
Schema.Null,
|
|
714
|
-
])),
|
|
715
|
-
assets: Schema.optional(Schema.Union([
|
|
716
|
-
Schema.Struct({
|
|
717
|
-
config: Schema.optional(Schema.Union([
|
|
718
|
-
Schema.Struct({
|
|
719
|
-
htmlHandling: Schema.optional(Schema.Union([
|
|
720
|
-
Schema.Literals([
|
|
721
|
-
"auto-trailing-slash",
|
|
722
|
-
"force-trailing-slash",
|
|
723
|
-
"drop-trailing-slash",
|
|
724
|
-
"none",
|
|
725
|
-
]),
|
|
726
|
-
Schema.Null,
|
|
727
|
-
])),
|
|
728
|
-
notFoundHandling: Schema.optional(Schema.Union([
|
|
729
|
-
Schema.Literals([
|
|
730
|
-
"none",
|
|
731
|
-
"404-page",
|
|
732
|
-
"single-page-application",
|
|
733
|
-
]),
|
|
734
|
-
Schema.Null,
|
|
735
|
-
])),
|
|
736
|
-
runWorkerFirst: Schema.optional(Schema.Union([
|
|
737
|
-
Schema.Union([
|
|
738
|
-
Schema.Array(Schema.String),
|
|
739
|
-
Schema.Boolean,
|
|
740
|
-
]),
|
|
741
|
-
Schema.Null,
|
|
742
|
-
])),
|
|
743
|
-
}).pipe(Schema.encodeKeys({
|
|
744
|
-
htmlHandling: "html_handling",
|
|
745
|
-
notFoundHandling: "not_found_handling",
|
|
746
|
-
runWorkerFirst: "run_worker_first",
|
|
747
|
-
})),
|
|
748
|
-
Schema.Null,
|
|
749
|
-
])),
|
|
750
|
-
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
751
|
-
}),
|
|
752
|
-
Schema.Null,
|
|
753
|
-
])),
|
|
754
|
-
bindings: Schema.optional(Schema.Union([
|
|
755
|
-
Schema.Array(Schema.Union([
|
|
756
|
-
Schema.Struct({
|
|
757
|
-
name: Schema.String,
|
|
758
|
-
type: Schema.Literal("ai"),
|
|
759
|
-
}),
|
|
760
|
-
Schema.Struct({
|
|
761
|
-
dataset: Schema.String,
|
|
762
|
-
name: Schema.String,
|
|
763
|
-
type: Schema.Literal("analytics_engine"),
|
|
764
|
-
}),
|
|
765
|
-
Schema.Struct({
|
|
766
|
-
name: Schema.String,
|
|
767
|
-
type: Schema.Literal("assets"),
|
|
768
|
-
}),
|
|
769
|
-
Schema.Struct({
|
|
770
|
-
name: Schema.String,
|
|
771
|
-
type: Schema.Literal("browser"),
|
|
772
|
-
}),
|
|
773
|
-
Schema.Struct({
|
|
774
|
-
id: Schema.String,
|
|
775
|
-
name: Schema.String,
|
|
776
|
-
type: Schema.Literal("d1"),
|
|
777
|
-
}),
|
|
728
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
729
|
+
result: Schema.Array(Schema.Struct({
|
|
730
|
+
id: Schema.String,
|
|
731
|
+
createdOn: Schema.String,
|
|
732
|
+
number: Schema.Number,
|
|
733
|
+
annotations: Schema.optional(Schema.Union([
|
|
778
734
|
Schema.Struct({
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
})
|
|
735
|
+
workersMessage: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
736
|
+
workersTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
737
|
+
workersTriggeredBy: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
738
|
+
}).pipe(Schema.encodeKeys({
|
|
739
|
+
workersMessage: "workers/message",
|
|
740
|
+
workersTag: "workers/tag",
|
|
741
|
+
workersTriggeredBy: "workers/triggered_by",
|
|
742
|
+
})),
|
|
743
|
+
Schema.Null,
|
|
744
|
+
])),
|
|
745
|
+
assets: Schema.optional(Schema.Union([
|
|
783
746
|
Schema.Struct({
|
|
784
|
-
|
|
785
|
-
namespace: Schema.String,
|
|
786
|
-
type: Schema.Literal("dispatch_namespace"),
|
|
787
|
-
outbound: Schema.optional(Schema.Union([
|
|
747
|
+
config: Schema.optional(Schema.Union([
|
|
788
748
|
Schema.Struct({
|
|
789
|
-
|
|
790
|
-
Schema.
|
|
749
|
+
htmlHandling: Schema.optional(Schema.Union([
|
|
750
|
+
Schema.Literals([
|
|
751
|
+
"auto-trailing-slash",
|
|
752
|
+
"force-trailing-slash",
|
|
753
|
+
"drop-trailing-slash",
|
|
754
|
+
"none",
|
|
755
|
+
]),
|
|
791
756
|
Schema.Null,
|
|
792
757
|
])),
|
|
793
|
-
|
|
794
|
-
Schema.
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
758
|
+
notFoundHandling: Schema.optional(Schema.Union([
|
|
759
|
+
Schema.Literals([
|
|
760
|
+
"none",
|
|
761
|
+
"404-page",
|
|
762
|
+
"single-page-application",
|
|
763
|
+
]),
|
|
798
764
|
Schema.Null,
|
|
799
765
|
])),
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
name: "name",
|
|
813
|
-
type: "type",
|
|
814
|
-
className: "class_name",
|
|
815
|
-
environment: "environment",
|
|
816
|
-
namespaceId: "namespace_id",
|
|
817
|
-
scriptName: "script_name",
|
|
818
|
-
})),
|
|
819
|
-
Schema.Struct({
|
|
820
|
-
id: Schema.String,
|
|
821
|
-
name: Schema.String,
|
|
822
|
-
type: Schema.Literal("hyperdrive"),
|
|
823
|
-
}),
|
|
824
|
-
Schema.Struct({
|
|
825
|
-
name: Schema.String,
|
|
826
|
-
type: Schema.Literal("inherit"),
|
|
827
|
-
oldName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
828
|
-
versionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
829
|
-
}).pipe(Schema.encodeKeys({
|
|
830
|
-
name: "name",
|
|
831
|
-
type: "type",
|
|
832
|
-
oldName: "old_name",
|
|
833
|
-
versionId: "version_id",
|
|
834
|
-
})),
|
|
835
|
-
Schema.Struct({
|
|
836
|
-
name: Schema.String,
|
|
837
|
-
type: Schema.Literal("images"),
|
|
838
|
-
}),
|
|
839
|
-
Schema.Struct({
|
|
840
|
-
json: Schema.String,
|
|
841
|
-
name: Schema.String,
|
|
842
|
-
type: Schema.Literal("json"),
|
|
843
|
-
}),
|
|
844
|
-
Schema.Struct({
|
|
845
|
-
name: Schema.String,
|
|
846
|
-
namespaceId: Schema.String,
|
|
847
|
-
type: Schema.Literal("kv_namespace"),
|
|
848
|
-
}).pipe(Schema.encodeKeys({
|
|
849
|
-
name: "name",
|
|
850
|
-
namespaceId: "namespace_id",
|
|
851
|
-
type: "type",
|
|
852
|
-
})),
|
|
853
|
-
Schema.Struct({
|
|
854
|
-
certificateId: Schema.String,
|
|
855
|
-
name: Schema.String,
|
|
856
|
-
type: Schema.Literal("mtls_certificate"),
|
|
857
|
-
}).pipe(Schema.encodeKeys({
|
|
858
|
-
certificateId: "certificate_id",
|
|
859
|
-
name: "name",
|
|
860
|
-
type: "type",
|
|
861
|
-
})),
|
|
862
|
-
Schema.Struct({
|
|
863
|
-
name: Schema.String,
|
|
864
|
-
text: Schema.String,
|
|
865
|
-
type: Schema.Literal("plain_text"),
|
|
866
|
-
}),
|
|
867
|
-
Schema.Struct({
|
|
868
|
-
name: Schema.String,
|
|
869
|
-
pipeline: Schema.String,
|
|
870
|
-
type: Schema.Literal("pipelines"),
|
|
871
|
-
}),
|
|
872
|
-
Schema.Struct({
|
|
873
|
-
name: Schema.String,
|
|
874
|
-
queueName: Schema.String,
|
|
875
|
-
type: Schema.Literal("queue"),
|
|
876
|
-
}).pipe(Schema.encodeKeys({
|
|
877
|
-
name: "name",
|
|
878
|
-
queueName: "queue_name",
|
|
879
|
-
type: "type",
|
|
880
|
-
})),
|
|
881
|
-
Schema.Struct({
|
|
882
|
-
bucketName: Schema.String,
|
|
883
|
-
name: Schema.String,
|
|
884
|
-
type: Schema.Literal("r2_bucket"),
|
|
885
|
-
jurisdiction: Schema.optional(Schema.Union([
|
|
886
|
-
Schema.Literals(["eu", "fedramp"]),
|
|
766
|
+
runWorkerFirst: Schema.optional(Schema.Union([
|
|
767
|
+
Schema.Union([
|
|
768
|
+
Schema.Array(Schema.String),
|
|
769
|
+
Schema.Boolean,
|
|
770
|
+
]),
|
|
771
|
+
Schema.Null,
|
|
772
|
+
])),
|
|
773
|
+
}).pipe(Schema.encodeKeys({
|
|
774
|
+
htmlHandling: "html_handling",
|
|
775
|
+
notFoundHandling: "not_found_handling",
|
|
776
|
+
runWorkerFirst: "run_worker_first",
|
|
777
|
+
})),
|
|
887
778
|
Schema.Null,
|
|
888
779
|
])),
|
|
889
|
-
|
|
890
|
-
bucketName: "bucket_name",
|
|
891
|
-
name: "name",
|
|
892
|
-
type: "type",
|
|
893
|
-
jurisdiction: "jurisdiction",
|
|
894
|
-
})),
|
|
895
|
-
Schema.Struct({
|
|
896
|
-
name: Schema.String,
|
|
897
|
-
type: Schema.Literal("secret_text"),
|
|
898
|
-
}),
|
|
899
|
-
Schema.Struct({
|
|
900
|
-
name: Schema.String,
|
|
901
|
-
type: Schema.Literal("send_email"),
|
|
902
|
-
allowedDestinationAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
903
|
-
allowedSenderAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
904
|
-
destinationAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
905
|
-
}).pipe(Schema.encodeKeys({
|
|
906
|
-
name: "name",
|
|
907
|
-
type: "type",
|
|
908
|
-
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
909
|
-
allowedSenderAddresses: "allowed_sender_addresses",
|
|
910
|
-
destinationAddress: "destination_address",
|
|
911
|
-
})),
|
|
912
|
-
Schema.Struct({
|
|
913
|
-
name: Schema.String,
|
|
914
|
-
service: Schema.String,
|
|
915
|
-
type: Schema.Literal("service"),
|
|
916
|
-
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
917
|
-
}),
|
|
918
|
-
Schema.Struct({
|
|
919
|
-
name: Schema.String,
|
|
920
|
-
part: Schema.String,
|
|
921
|
-
type: Schema.Literal("text_blob"),
|
|
922
|
-
}),
|
|
923
|
-
Schema.Struct({
|
|
924
|
-
indexName: Schema.String,
|
|
925
|
-
name: Schema.String,
|
|
926
|
-
type: Schema.Literal("vectorize"),
|
|
927
|
-
}).pipe(Schema.encodeKeys({
|
|
928
|
-
indexName: "index_name",
|
|
929
|
-
name: "name",
|
|
930
|
-
type: "type",
|
|
931
|
-
})),
|
|
932
|
-
Schema.Struct({
|
|
933
|
-
name: Schema.String,
|
|
934
|
-
type: Schema.Literal("version_metadata"),
|
|
935
|
-
}),
|
|
936
|
-
Schema.Struct({
|
|
937
|
-
name: Schema.String,
|
|
938
|
-
secretName: Schema.String,
|
|
939
|
-
storeId: Schema.String,
|
|
940
|
-
type: Schema.Literal("secrets_store_secret"),
|
|
941
|
-
}).pipe(Schema.encodeKeys({
|
|
942
|
-
name: "name",
|
|
943
|
-
secretName: "secret_name",
|
|
944
|
-
storeId: "store_id",
|
|
945
|
-
type: "type",
|
|
946
|
-
})),
|
|
947
|
-
Schema.Struct({
|
|
948
|
-
algorithm: Schema.Unknown,
|
|
949
|
-
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
950
|
-
name: Schema.String,
|
|
951
|
-
type: Schema.Literal("secret_key"),
|
|
952
|
-
usages: Schema.Array(Schema.Literals([
|
|
953
|
-
"encrypt",
|
|
954
|
-
"decrypt",
|
|
955
|
-
"sign",
|
|
956
|
-
"verify",
|
|
957
|
-
"deriveKey",
|
|
958
|
-
"deriveBits",
|
|
959
|
-
"wrapKey",
|
|
960
|
-
"unwrapKey",
|
|
961
|
-
])),
|
|
780
|
+
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
962
781
|
}),
|
|
782
|
+
Schema.Null,
|
|
783
|
+
])),
|
|
784
|
+
bindings: Schema.optional(Schema.Union([
|
|
785
|
+
Schema.Array(Schema.Union([
|
|
786
|
+
Schema.Struct({
|
|
787
|
+
name: Schema.String,
|
|
788
|
+
type: Schema.Literal("ai"),
|
|
789
|
+
}),
|
|
790
|
+
Schema.Struct({
|
|
791
|
+
dataset: Schema.String,
|
|
792
|
+
name: Schema.String,
|
|
793
|
+
type: Schema.Literal("analytics_engine"),
|
|
794
|
+
}),
|
|
795
|
+
Schema.Struct({
|
|
796
|
+
name: Schema.String,
|
|
797
|
+
type: Schema.Literal("assets"),
|
|
798
|
+
}),
|
|
799
|
+
Schema.Struct({
|
|
800
|
+
name: Schema.String,
|
|
801
|
+
type: Schema.Literal("browser"),
|
|
802
|
+
}),
|
|
803
|
+
Schema.Struct({
|
|
804
|
+
id: Schema.String,
|
|
805
|
+
name: Schema.String,
|
|
806
|
+
type: Schema.Literal("d1"),
|
|
807
|
+
}),
|
|
808
|
+
Schema.Struct({
|
|
809
|
+
name: Schema.String,
|
|
810
|
+
part: Schema.String,
|
|
811
|
+
type: Schema.Literal("data_blob"),
|
|
812
|
+
}),
|
|
813
|
+
Schema.Struct({
|
|
814
|
+
name: Schema.String,
|
|
815
|
+
namespace: Schema.String,
|
|
816
|
+
type: Schema.Literal("dispatch_namespace"),
|
|
817
|
+
outbound: Schema.optional(Schema.Union([
|
|
818
|
+
Schema.Struct({
|
|
819
|
+
params: Schema.optional(Schema.Union([
|
|
820
|
+
Schema.Array(Schema.String),
|
|
821
|
+
Schema.Null,
|
|
822
|
+
])),
|
|
823
|
+
worker: Schema.optional(Schema.Union([
|
|
824
|
+
Schema.Struct({
|
|
825
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
826
|
+
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
827
|
+
}),
|
|
828
|
+
Schema.Null,
|
|
829
|
+
])),
|
|
830
|
+
}),
|
|
831
|
+
Schema.Null,
|
|
832
|
+
])),
|
|
833
|
+
}),
|
|
834
|
+
Schema.Struct({
|
|
835
|
+
name: Schema.String,
|
|
836
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
837
|
+
className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
838
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
839
|
+
namespaceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
840
|
+
scriptName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
841
|
+
}).pipe(Schema.encodeKeys({
|
|
842
|
+
name: "name",
|
|
843
|
+
type: "type",
|
|
844
|
+
className: "class_name",
|
|
845
|
+
environment: "environment",
|
|
846
|
+
namespaceId: "namespace_id",
|
|
847
|
+
scriptName: "script_name",
|
|
848
|
+
})),
|
|
849
|
+
Schema.Struct({
|
|
850
|
+
id: Schema.String,
|
|
851
|
+
name: Schema.String,
|
|
852
|
+
type: Schema.Literal("hyperdrive"),
|
|
853
|
+
}),
|
|
854
|
+
Schema.Struct({
|
|
855
|
+
name: Schema.String,
|
|
856
|
+
type: Schema.Literal("inherit"),
|
|
857
|
+
oldName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
858
|
+
versionId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
859
|
+
}).pipe(Schema.encodeKeys({
|
|
860
|
+
name: "name",
|
|
861
|
+
type: "type",
|
|
862
|
+
oldName: "old_name",
|
|
863
|
+
versionId: "version_id",
|
|
864
|
+
})),
|
|
865
|
+
Schema.Struct({
|
|
866
|
+
name: Schema.String,
|
|
867
|
+
type: Schema.Literal("images"),
|
|
868
|
+
}),
|
|
869
|
+
Schema.Struct({
|
|
870
|
+
json: Schema.String,
|
|
871
|
+
name: Schema.String,
|
|
872
|
+
type: Schema.Literal("json"),
|
|
873
|
+
}),
|
|
874
|
+
Schema.Struct({
|
|
875
|
+
name: Schema.String,
|
|
876
|
+
namespaceId: Schema.String,
|
|
877
|
+
type: Schema.Literal("kv_namespace"),
|
|
878
|
+
}).pipe(Schema.encodeKeys({
|
|
879
|
+
name: "name",
|
|
880
|
+
namespaceId: "namespace_id",
|
|
881
|
+
type: "type",
|
|
882
|
+
})),
|
|
883
|
+
Schema.Struct({
|
|
884
|
+
certificateId: Schema.String,
|
|
885
|
+
name: Schema.String,
|
|
886
|
+
type: Schema.Literal("mtls_certificate"),
|
|
887
|
+
}).pipe(Schema.encodeKeys({
|
|
888
|
+
certificateId: "certificate_id",
|
|
889
|
+
name: "name",
|
|
890
|
+
type: "type",
|
|
891
|
+
})),
|
|
892
|
+
Schema.Struct({
|
|
893
|
+
name: Schema.String,
|
|
894
|
+
text: Schema.String,
|
|
895
|
+
type: Schema.Literal("plain_text"),
|
|
896
|
+
}),
|
|
897
|
+
Schema.Struct({
|
|
898
|
+
name: Schema.String,
|
|
899
|
+
pipeline: Schema.String,
|
|
900
|
+
type: Schema.Literal("pipelines"),
|
|
901
|
+
}),
|
|
902
|
+
Schema.Struct({
|
|
903
|
+
name: Schema.String,
|
|
904
|
+
queueName: Schema.String,
|
|
905
|
+
type: Schema.Literal("queue"),
|
|
906
|
+
}).pipe(Schema.encodeKeys({
|
|
907
|
+
name: "name",
|
|
908
|
+
queueName: "queue_name",
|
|
909
|
+
type: "type",
|
|
910
|
+
})),
|
|
911
|
+
Schema.Struct({
|
|
912
|
+
bucketName: Schema.String,
|
|
913
|
+
name: Schema.String,
|
|
914
|
+
type: Schema.Literal("r2_bucket"),
|
|
915
|
+
jurisdiction: Schema.optional(Schema.Union([
|
|
916
|
+
Schema.Literals(["eu", "fedramp"]),
|
|
917
|
+
Schema.Null,
|
|
918
|
+
])),
|
|
919
|
+
}).pipe(Schema.encodeKeys({
|
|
920
|
+
bucketName: "bucket_name",
|
|
921
|
+
name: "name",
|
|
922
|
+
type: "type",
|
|
923
|
+
jurisdiction: "jurisdiction",
|
|
924
|
+
})),
|
|
925
|
+
Schema.Struct({
|
|
926
|
+
name: Schema.String,
|
|
927
|
+
type: Schema.Literal("secret_text"),
|
|
928
|
+
}),
|
|
929
|
+
Schema.Struct({
|
|
930
|
+
name: Schema.String,
|
|
931
|
+
type: Schema.Literal("send_email"),
|
|
932
|
+
allowedDestinationAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
933
|
+
allowedSenderAddresses: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
934
|
+
destinationAddress: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
935
|
+
}).pipe(Schema.encodeKeys({
|
|
936
|
+
name: "name",
|
|
937
|
+
type: "type",
|
|
938
|
+
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
939
|
+
allowedSenderAddresses: "allowed_sender_addresses",
|
|
940
|
+
destinationAddress: "destination_address",
|
|
941
|
+
})),
|
|
942
|
+
Schema.Struct({
|
|
943
|
+
name: Schema.String,
|
|
944
|
+
service: Schema.String,
|
|
945
|
+
type: Schema.Literal("service"),
|
|
946
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
947
|
+
}),
|
|
948
|
+
Schema.Struct({
|
|
949
|
+
name: Schema.String,
|
|
950
|
+
part: Schema.String,
|
|
951
|
+
type: Schema.Literal("text_blob"),
|
|
952
|
+
}),
|
|
953
|
+
Schema.Struct({
|
|
954
|
+
indexName: Schema.String,
|
|
955
|
+
name: Schema.String,
|
|
956
|
+
type: Schema.Literal("vectorize"),
|
|
957
|
+
}).pipe(Schema.encodeKeys({
|
|
958
|
+
indexName: "index_name",
|
|
959
|
+
name: "name",
|
|
960
|
+
type: "type",
|
|
961
|
+
})),
|
|
962
|
+
Schema.Struct({
|
|
963
|
+
name: Schema.String,
|
|
964
|
+
type: Schema.Literal("version_metadata"),
|
|
965
|
+
}),
|
|
966
|
+
Schema.Struct({
|
|
967
|
+
name: Schema.String,
|
|
968
|
+
secretName: Schema.String,
|
|
969
|
+
storeId: Schema.String,
|
|
970
|
+
type: Schema.Literal("secrets_store_secret"),
|
|
971
|
+
}).pipe(Schema.encodeKeys({
|
|
972
|
+
name: "name",
|
|
973
|
+
secretName: "secret_name",
|
|
974
|
+
storeId: "store_id",
|
|
975
|
+
type: "type",
|
|
976
|
+
})),
|
|
977
|
+
Schema.Struct({
|
|
978
|
+
algorithm: Schema.Unknown,
|
|
979
|
+
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
980
|
+
name: Schema.String,
|
|
981
|
+
type: Schema.Literal("secret_key"),
|
|
982
|
+
usages: Schema.Array(Schema.Literals([
|
|
983
|
+
"encrypt",
|
|
984
|
+
"decrypt",
|
|
985
|
+
"sign",
|
|
986
|
+
"verify",
|
|
987
|
+
"deriveKey",
|
|
988
|
+
"deriveBits",
|
|
989
|
+
"wrapKey",
|
|
990
|
+
"unwrapKey",
|
|
991
|
+
])),
|
|
992
|
+
}),
|
|
993
|
+
Schema.Struct({
|
|
994
|
+
name: Schema.String,
|
|
995
|
+
type: Schema.Literal("workflow"),
|
|
996
|
+
workflowName: Schema.String,
|
|
997
|
+
className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
998
|
+
scriptName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
999
|
+
}).pipe(Schema.encodeKeys({
|
|
1000
|
+
name: "name",
|
|
1001
|
+
type: "type",
|
|
1002
|
+
workflowName: "workflow_name",
|
|
1003
|
+
className: "class_name",
|
|
1004
|
+
scriptName: "script_name",
|
|
1005
|
+
})),
|
|
1006
|
+
Schema.Struct({
|
|
1007
|
+
name: Schema.String,
|
|
1008
|
+
part: Schema.String,
|
|
1009
|
+
type: Schema.Literal("wasm_module"),
|
|
1010
|
+
}),
|
|
1011
|
+
])),
|
|
1012
|
+
Schema.Null,
|
|
1013
|
+
])),
|
|
1014
|
+
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1015
|
+
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
1016
|
+
limits: Schema.optional(Schema.Union([
|
|
963
1017
|
Schema.Struct({
|
|
1018
|
+
cpuMs: Schema.Number,
|
|
1019
|
+
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
1020
|
+
Schema.Null,
|
|
1021
|
+
])),
|
|
1022
|
+
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1023
|
+
migrations: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1024
|
+
modules: Schema.optional(Schema.Union([
|
|
1025
|
+
Schema.Array(Schema.Struct({
|
|
1026
|
+
contentBase64: Schema.String,
|
|
1027
|
+
contentType: Schema.String,
|
|
964
1028
|
name: Schema.String,
|
|
965
|
-
type: Schema.Literal("workflow"),
|
|
966
|
-
workflowName: Schema.String,
|
|
967
|
-
className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
968
|
-
scriptName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
969
1029
|
}).pipe(Schema.encodeKeys({
|
|
1030
|
+
contentBase64: "content_base64",
|
|
1031
|
+
contentType: "content_type",
|
|
970
1032
|
name: "name",
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
})),
|
|
1033
|
+
}))),
|
|
1034
|
+
Schema.Null,
|
|
1035
|
+
])),
|
|
1036
|
+
placement: Schema.optional(Schema.Union([
|
|
976
1037
|
Schema.Struct({
|
|
977
|
-
|
|
978
|
-
part: Schema.String,
|
|
979
|
-
type: Schema.Literal("wasm_module"),
|
|
1038
|
+
mode: Schema.optional(Schema.Union([Schema.Literal("smart"), Schema.Null])),
|
|
980
1039
|
}),
|
|
1040
|
+
Schema.Null,
|
|
981
1041
|
])),
|
|
982
|
-
Schema.Null,
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
Schema.
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
Schema.Null,
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
id: "id",
|
|
1020
|
-
createdOn: "created_on",
|
|
1021
|
-
number: "number",
|
|
1022
|
-
annotations: "annotations",
|
|
1023
|
-
assets: "assets",
|
|
1024
|
-
bindings: "bindings",
|
|
1025
|
-
compatibilityDate: "compatibility_date",
|
|
1026
|
-
compatibilityFlags: "compatibility_flags",
|
|
1027
|
-
limits: "limits",
|
|
1028
|
-
mainModule: "main_module",
|
|
1029
|
-
migrations: "migrations",
|
|
1030
|
-
modules: "modules",
|
|
1031
|
-
placement: "placement",
|
|
1032
|
-
source: "source",
|
|
1033
|
-
startupTimeMs: "startup_time_ms",
|
|
1034
|
-
usageModel: "usage_model",
|
|
1035
|
-
})));
|
|
1036
|
-
export const listBetaWorkerVersions = API.make(() => ({
|
|
1042
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1043
|
+
startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1044
|
+
usageModel: Schema.optional(Schema.Union([
|
|
1045
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
1046
|
+
Schema.Null,
|
|
1047
|
+
])),
|
|
1048
|
+
}).pipe(Schema.encodeKeys({
|
|
1049
|
+
id: "id",
|
|
1050
|
+
createdOn: "created_on",
|
|
1051
|
+
number: "number",
|
|
1052
|
+
annotations: "annotations",
|
|
1053
|
+
assets: "assets",
|
|
1054
|
+
bindings: "bindings",
|
|
1055
|
+
compatibilityDate: "compatibility_date",
|
|
1056
|
+
compatibilityFlags: "compatibility_flags",
|
|
1057
|
+
limits: "limits",
|
|
1058
|
+
mainModule: "main_module",
|
|
1059
|
+
migrations: "migrations",
|
|
1060
|
+
modules: "modules",
|
|
1061
|
+
placement: "placement",
|
|
1062
|
+
source: "source",
|
|
1063
|
+
startupTimeMs: "startup_time_ms",
|
|
1064
|
+
usageModel: "usage_model",
|
|
1065
|
+
}))),
|
|
1066
|
+
resultInfo: Schema.Struct({
|
|
1067
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1068
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1069
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1070
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1071
|
+
}).pipe(Schema.encodeKeys({
|
|
1072
|
+
count: "count",
|
|
1073
|
+
page: "page",
|
|
1074
|
+
perPage: "per_page",
|
|
1075
|
+
totalCount: "total_count",
|
|
1076
|
+
})),
|
|
1077
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
1078
|
+
export const listBetaWorkerVersions = API.makePaginated(() => ({
|
|
1037
1079
|
input: ListBetaWorkerVersionsRequest,
|
|
1038
1080
|
output: ListBetaWorkerVersionsResponse,
|
|
1039
1081
|
errors: [WorkerNotFound],
|
|
1082
|
+
pagination: {
|
|
1083
|
+
mode: "page",
|
|
1084
|
+
inputToken: "page",
|
|
1085
|
+
outputToken: "resultInfo.page",
|
|
1086
|
+
items: "result",
|
|
1087
|
+
pageSize: "perPage",
|
|
1088
|
+
},
|
|
1040
1089
|
}));
|
|
1041
1090
|
export const CreateBetaWorkerVersionRequest =
|
|
1042
1091
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -1651,7 +1700,8 @@ export const CreateBetaWorkerVersionResponse =
|
|
|
1651
1700
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
1652
1701
|
Schema.Null,
|
|
1653
1702
|
])),
|
|
1654
|
-
})
|
|
1703
|
+
})
|
|
1704
|
+
.pipe(Schema.encodeKeys({
|
|
1655
1705
|
id: "id",
|
|
1656
1706
|
createdOn: "created_on",
|
|
1657
1707
|
number: "number",
|
|
@@ -1668,7 +1718,8 @@ export const CreateBetaWorkerVersionResponse =
|
|
|
1668
1718
|
source: "source",
|
|
1669
1719
|
startupTimeMs: "startup_time_ms",
|
|
1670
1720
|
usageModel: "usage_model",
|
|
1671
|
-
}))
|
|
1721
|
+
}))
|
|
1722
|
+
.pipe(T.ResponsePath("result"));
|
|
1672
1723
|
export const createBetaWorkerVersion = API.make(() => ({
|
|
1673
1724
|
input: CreateBetaWorkerVersionRequest,
|
|
1674
1725
|
output: CreateBetaWorkerVersionResponse,
|
|
@@ -1738,14 +1789,16 @@ export const GetDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1738
1789
|
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1739
1790
|
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1740
1791
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1741
|
-
})
|
|
1792
|
+
})
|
|
1793
|
+
.pipe(Schema.encodeKeys({
|
|
1742
1794
|
id: "id",
|
|
1743
1795
|
environment: "environment",
|
|
1744
1796
|
hostname: "hostname",
|
|
1745
1797
|
service: "service",
|
|
1746
1798
|
zoneId: "zone_id",
|
|
1747
1799
|
zoneName: "zone_name",
|
|
1748
|
-
}))
|
|
1800
|
+
}))
|
|
1801
|
+
.pipe(T.ResponsePath("result"));
|
|
1749
1802
|
export const getDomain = API.make(() => ({
|
|
1750
1803
|
input: GetDomainRequest,
|
|
1751
1804
|
output: GetDomainResponse,
|
|
@@ -1759,25 +1812,31 @@ export const ListDomainsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1759
1812
|
zoneId: Schema.optional(Schema.String).pipe(T.HttpQuery("zone_id")),
|
|
1760
1813
|
zoneName: Schema.optional(Schema.String).pipe(T.HttpQuery("zone_name")),
|
|
1761
1814
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/domains" }));
|
|
1762
|
-
export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1815
|
+
export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1816
|
+
result: Schema.Array(Schema.Struct({
|
|
1817
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1818
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1819
|
+
hostname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1820
|
+
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1821
|
+
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1822
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1823
|
+
}).pipe(Schema.encodeKeys({
|
|
1824
|
+
id: "id",
|
|
1825
|
+
environment: "environment",
|
|
1826
|
+
hostname: "hostname",
|
|
1827
|
+
service: "service",
|
|
1828
|
+
zoneId: "zone_id",
|
|
1829
|
+
zoneName: "zone_name",
|
|
1830
|
+
}))),
|
|
1831
|
+
});
|
|
1832
|
+
export const listDomains = API.makePaginated(() => ({
|
|
1778
1833
|
input: ListDomainsRequest,
|
|
1779
1834
|
output: ListDomainsResponse,
|
|
1780
1835
|
errors: [InvalidRoute],
|
|
1836
|
+
pagination: {
|
|
1837
|
+
mode: "single",
|
|
1838
|
+
items: "result",
|
|
1839
|
+
},
|
|
1781
1840
|
}));
|
|
1782
1841
|
export const PutDomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1783
1842
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -1798,14 +1857,16 @@ export const PutDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
1798
1857
|
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1799
1858
|
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1800
1859
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1801
|
-
})
|
|
1860
|
+
})
|
|
1861
|
+
.pipe(Schema.encodeKeys({
|
|
1802
1862
|
id: "id",
|
|
1803
1863
|
environment: "environment",
|
|
1804
1864
|
hostname: "hostname",
|
|
1805
1865
|
service: "service",
|
|
1806
1866
|
zoneId: "zone_id",
|
|
1807
1867
|
zoneName: "zone_name",
|
|
1808
|
-
}))
|
|
1868
|
+
}))
|
|
1869
|
+
.pipe(T.ResponsePath("result"));
|
|
1809
1870
|
export const putDomain = API.make(() => ({
|
|
1810
1871
|
input: PutDomainRequest,
|
|
1811
1872
|
output: PutDomainResponse,
|
|
@@ -1882,15 +1943,21 @@ export const KeysObservabilityTelemetryRequest =
|
|
|
1882
1943
|
path: "/accounts/{account_id}/workers/observability/telemetry/keys",
|
|
1883
1944
|
}));
|
|
1884
1945
|
export const KeysObservabilityTelemetryResponse =
|
|
1885
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1946
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1947
|
+
result: Schema.Array(Schema.Struct({
|
|
1948
|
+
key: Schema.String,
|
|
1949
|
+
lastSeenAt: Schema.Number,
|
|
1950
|
+
type: Schema.Literals(["string", "boolean", "number"]),
|
|
1951
|
+
})),
|
|
1952
|
+
});
|
|
1953
|
+
export const keysObservabilityTelemetry = API.makePaginated(() => ({
|
|
1891
1954
|
input: KeysObservabilityTelemetryRequest,
|
|
1892
1955
|
output: KeysObservabilityTelemetryResponse,
|
|
1893
1956
|
errors: [InvalidRoute],
|
|
1957
|
+
pagination: {
|
|
1958
|
+
mode: "single",
|
|
1959
|
+
items: "result",
|
|
1960
|
+
},
|
|
1894
1961
|
}));
|
|
1895
1962
|
export const QueryObservabilityTelemetryRequest =
|
|
1896
1963
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -2522,7 +2589,7 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2522
2589
|
})),
|
|
2523
2590
|
Schema.Null,
|
|
2524
2591
|
])),
|
|
2525
|
-
});
|
|
2592
|
+
}).pipe(T.ResponsePath("result"));
|
|
2526
2593
|
export const queryObservabilityTelemetry = API.make(() => ({
|
|
2527
2594
|
input: QueryObservabilityTelemetryRequest,
|
|
2528
2595
|
output: QueryObservabilityTelemetryResponse,
|
|
@@ -2584,16 +2651,22 @@ export const ValuesObservabilityTelemetryRequest =
|
|
|
2584
2651
|
path: "/accounts/{account_id}/workers/observability/telemetry/values",
|
|
2585
2652
|
}));
|
|
2586
2653
|
export const ValuesObservabilityTelemetryResponse =
|
|
2587
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2654
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2655
|
+
result: Schema.Array(Schema.Struct({
|
|
2656
|
+
dataset: Schema.String,
|
|
2657
|
+
key: Schema.String,
|
|
2658
|
+
type: Schema.Literals(["string", "boolean", "number"]),
|
|
2659
|
+
value: Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
|
|
2660
|
+
})),
|
|
2661
|
+
});
|
|
2662
|
+
export const valuesObservabilityTelemetry = API.makePaginated(() => ({
|
|
2594
2663
|
input: ValuesObservabilityTelemetryRequest,
|
|
2595
2664
|
output: ValuesObservabilityTelemetryResponse,
|
|
2596
2665
|
errors: [InvalidRoute],
|
|
2666
|
+
pagination: {
|
|
2667
|
+
mode: "single",
|
|
2668
|
+
items: "result",
|
|
2669
|
+
},
|
|
2597
2670
|
}));
|
|
2598
2671
|
export const GetRouteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2599
2672
|
routeId: Schema.String.pipe(T.HttpPath("routeId")),
|
|
@@ -2603,7 +2676,7 @@ export const GetRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2603
2676
|
id: Schema.String,
|
|
2604
2677
|
pattern: Schema.String,
|
|
2605
2678
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2606
|
-
});
|
|
2679
|
+
}).pipe(T.ResponsePath("result"));
|
|
2607
2680
|
export const getRoute = API.make(() => ({
|
|
2608
2681
|
input: GetRouteRequest,
|
|
2609
2682
|
output: GetRouteResponse,
|
|
@@ -2612,15 +2685,21 @@ export const getRoute = API.make(() => ({
|
|
|
2612
2685
|
export const ListRoutesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2613
2686
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
2614
2687
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/workers/routes" }));
|
|
2615
|
-
export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2688
|
+
export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2689
|
+
result: Schema.Array(Schema.Struct({
|
|
2690
|
+
id: Schema.String,
|
|
2691
|
+
pattern: Schema.String,
|
|
2692
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2693
|
+
})),
|
|
2694
|
+
});
|
|
2695
|
+
export const listRoutes = API.makePaginated(() => ({
|
|
2621
2696
|
input: ListRoutesRequest,
|
|
2622
2697
|
output: ListRoutesResponse,
|
|
2623
2698
|
errors: [InvalidRoute],
|
|
2699
|
+
pagination: {
|
|
2700
|
+
mode: "single",
|
|
2701
|
+
items: "result",
|
|
2702
|
+
},
|
|
2624
2703
|
}));
|
|
2625
2704
|
export const CreateRouteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2626
2705
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
@@ -2631,7 +2710,7 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2631
2710
|
id: Schema.String,
|
|
2632
2711
|
pattern: Schema.String,
|
|
2633
2712
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2634
|
-
});
|
|
2713
|
+
}).pipe(T.ResponsePath("result"));
|
|
2635
2714
|
export const createRoute = API.make(() => ({
|
|
2636
2715
|
input: CreateRouteRequest,
|
|
2637
2716
|
output: CreateRouteResponse,
|
|
@@ -2647,7 +2726,7 @@ export const UpdateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2647
2726
|
id: Schema.String,
|
|
2648
2727
|
pattern: Schema.String,
|
|
2649
2728
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2650
|
-
});
|
|
2729
|
+
}).pipe(T.ResponsePath("result"));
|
|
2651
2730
|
export const updateRoute = API.make(() => ({
|
|
2652
2731
|
input: UpdateRouteRequest,
|
|
2653
2732
|
output: UpdateRouteResponse,
|
|
@@ -2662,7 +2741,7 @@ export const DeleteRouteRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2662
2741
|
}));
|
|
2663
2742
|
export const DeleteRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2664
2743
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2665
|
-
});
|
|
2744
|
+
}).pipe(T.ResponsePath("result"));
|
|
2666
2745
|
export const deleteRoute = API.make(() => ({
|
|
2667
2746
|
input: DeleteRouteRequest,
|
|
2668
2747
|
output: DeleteRouteResponse,
|
|
@@ -2686,174 +2765,180 @@ export const ListScriptsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
2686
2765
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2687
2766
|
tags: Schema.optional(Schema.String).pipe(T.HttpQuery("tags")),
|
|
2688
2767
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/scripts" }));
|
|
2689
|
-
export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2703
|
-
Schema.
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
Schema.Null,
|
|
2708
|
-
])),
|
|
2709
|
-
observability: Schema.optional(Schema.Union([
|
|
2710
|
-
Schema.Struct({
|
|
2711
|
-
enabled: Schema.Boolean,
|
|
2712
|
-
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2713
|
-
logs: Schema.optional(Schema.Union([
|
|
2714
|
-
Schema.Struct({
|
|
2715
|
-
enabled: Schema.Boolean,
|
|
2716
|
-
invocationLogs: Schema.Boolean,
|
|
2717
|
-
destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2718
|
-
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2719
|
-
persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2720
|
-
}).pipe(Schema.encodeKeys({
|
|
2721
|
-
enabled: "enabled",
|
|
2722
|
-
invocationLogs: "invocation_logs",
|
|
2723
|
-
destinations: "destinations",
|
|
2724
|
-
headSamplingRate: "head_sampling_rate",
|
|
2725
|
-
persist: "persist",
|
|
2726
|
-
})),
|
|
2727
|
-
Schema.Null,
|
|
2728
|
-
])),
|
|
2729
|
-
}).pipe(Schema.encodeKeys({
|
|
2730
|
-
enabled: "enabled",
|
|
2731
|
-
headSamplingRate: "head_sampling_rate",
|
|
2732
|
-
logs: "logs",
|
|
2733
|
-
})),
|
|
2734
|
-
Schema.Null,
|
|
2735
|
-
])),
|
|
2736
|
-
placement: Schema.optional(Schema.Union([
|
|
2737
|
-
Schema.Union([
|
|
2738
|
-
Schema.Struct({
|
|
2739
|
-
mode: Schema.Literal("smart"),
|
|
2740
|
-
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2741
|
-
status: Schema.optional(Schema.Union([
|
|
2742
|
-
Schema.Literals([
|
|
2743
|
-
"SUCCESS",
|
|
2744
|
-
"UNSUPPORTED_APPLICATION",
|
|
2745
|
-
"INSUFFICIENT_INVOCATIONS",
|
|
2746
|
-
]),
|
|
2747
|
-
Schema.Null,
|
|
2748
|
-
])),
|
|
2749
|
-
}).pipe(Schema.encodeKeys({
|
|
2750
|
-
mode: "mode",
|
|
2751
|
-
lastAnalyzedAt: "last_analyzed_at",
|
|
2752
|
-
status: "status",
|
|
2753
|
-
})),
|
|
2754
|
-
Schema.Struct({
|
|
2755
|
-
region: Schema.String,
|
|
2756
|
-
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2757
|
-
status: Schema.optional(Schema.Union([
|
|
2758
|
-
Schema.Literals([
|
|
2759
|
-
"SUCCESS",
|
|
2760
|
-
"UNSUPPORTED_APPLICATION",
|
|
2761
|
-
"INSUFFICIENT_INVOCATIONS",
|
|
2762
|
-
]),
|
|
2763
|
-
Schema.Null,
|
|
2764
|
-
])),
|
|
2765
|
-
}).pipe(Schema.encodeKeys({
|
|
2766
|
-
region: "region",
|
|
2767
|
-
lastAnalyzedAt: "last_analyzed_at",
|
|
2768
|
-
status: "status",
|
|
2768
|
+
export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2769
|
+
result: Schema.Array(Schema.Struct({
|
|
2770
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2771
|
+
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2772
|
+
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2773
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2774
|
+
etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2775
|
+
handlers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2776
|
+
hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2777
|
+
hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2778
|
+
lastDeployedFrom: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2779
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2780
|
+
migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2781
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2782
|
+
namedHandlers: Schema.optional(Schema.Union([
|
|
2783
|
+
Schema.Array(Schema.Struct({
|
|
2784
|
+
handlers: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2785
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2769
2786
|
})),
|
|
2787
|
+
Schema.Null,
|
|
2788
|
+
])),
|
|
2789
|
+
observability: Schema.optional(Schema.Union([
|
|
2770
2790
|
Schema.Struct({
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
Schema.
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2791
|
+
enabled: Schema.Boolean,
|
|
2792
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2793
|
+
logs: Schema.optional(Schema.Union([
|
|
2794
|
+
Schema.Struct({
|
|
2795
|
+
enabled: Schema.Boolean,
|
|
2796
|
+
invocationLogs: Schema.Boolean,
|
|
2797
|
+
destinations: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2798
|
+
headSamplingRate: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2799
|
+
persist: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2800
|
+
}).pipe(Schema.encodeKeys({
|
|
2801
|
+
enabled: "enabled",
|
|
2802
|
+
invocationLogs: "invocation_logs",
|
|
2803
|
+
destinations: "destinations",
|
|
2804
|
+
headSamplingRate: "head_sampling_rate",
|
|
2805
|
+
persist: "persist",
|
|
2806
|
+
})),
|
|
2779
2807
|
Schema.Null,
|
|
2780
2808
|
])),
|
|
2781
2809
|
}).pipe(Schema.encodeKeys({
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
|
|
2810
|
+
enabled: "enabled",
|
|
2811
|
+
headSamplingRate: "head_sampling_rate",
|
|
2812
|
+
logs: "logs",
|
|
2785
2813
|
})),
|
|
2786
|
-
Schema.
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2814
|
+
Schema.Null,
|
|
2815
|
+
])),
|
|
2816
|
+
placement: Schema.optional(Schema.Union([
|
|
2817
|
+
Schema.Union([
|
|
2818
|
+
Schema.Struct({
|
|
2819
|
+
mode: Schema.Literal("smart"),
|
|
2820
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2821
|
+
status: Schema.optional(Schema.Union([
|
|
2822
|
+
Schema.Literals([
|
|
2823
|
+
"SUCCESS",
|
|
2824
|
+
"UNSUPPORTED_APPLICATION",
|
|
2825
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
2826
|
+
]),
|
|
2827
|
+
Schema.Null,
|
|
2828
|
+
])),
|
|
2829
|
+
}).pipe(Schema.encodeKeys({
|
|
2830
|
+
mode: "mode",
|
|
2831
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
2832
|
+
status: "status",
|
|
2833
|
+
})),
|
|
2834
|
+
Schema.Struct({
|
|
2835
|
+
region: Schema.String,
|
|
2836
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2837
|
+
status: Schema.optional(Schema.Union([
|
|
2838
|
+
Schema.Literals([
|
|
2839
|
+
"SUCCESS",
|
|
2840
|
+
"UNSUPPORTED_APPLICATION",
|
|
2841
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
2842
|
+
]),
|
|
2843
|
+
Schema.Null,
|
|
2844
|
+
])),
|
|
2845
|
+
}).pipe(Schema.encodeKeys({
|
|
2846
|
+
region: "region",
|
|
2847
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
2848
|
+
status: "status",
|
|
2849
|
+
})),
|
|
2850
|
+
Schema.Struct({
|
|
2851
|
+
hostname: Schema.String,
|
|
2852
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2853
|
+
status: Schema.optional(Schema.Union([
|
|
2854
|
+
Schema.Literals([
|
|
2855
|
+
"SUCCESS",
|
|
2856
|
+
"UNSUPPORTED_APPLICATION",
|
|
2857
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
2858
|
+
]),
|
|
2859
|
+
Schema.Null,
|
|
2860
|
+
])),
|
|
2861
|
+
}).pipe(Schema.encodeKeys({
|
|
2862
|
+
hostname: "hostname",
|
|
2863
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
2864
|
+
status: "status",
|
|
2865
|
+
})),
|
|
2866
|
+
Schema.Struct({
|
|
2867
|
+
host: Schema.String,
|
|
2868
|
+
lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2869
|
+
status: Schema.optional(Schema.Union([
|
|
2870
|
+
Schema.Literals([
|
|
2871
|
+
"SUCCESS",
|
|
2872
|
+
"UNSUPPORTED_APPLICATION",
|
|
2873
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
2874
|
+
]),
|
|
2875
|
+
Schema.Null,
|
|
2876
|
+
])),
|
|
2877
|
+
}).pipe(Schema.encodeKeys({
|
|
2878
|
+
host: "host",
|
|
2879
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
2880
|
+
status: "status",
|
|
2881
|
+
})),
|
|
2882
|
+
]),
|
|
2883
|
+
Schema.Null,
|
|
2884
|
+
])),
|
|
2885
|
+
placementMode: Schema.optional(Schema.Union([Schema.Literal("smart"), Schema.Null])),
|
|
2886
|
+
placementStatus: Schema.optional(Schema.Union([
|
|
2887
|
+
Schema.Literals([
|
|
2888
|
+
"SUCCESS",
|
|
2889
|
+
"UNSUPPORTED_APPLICATION",
|
|
2890
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
2891
|
+
]),
|
|
2892
|
+
Schema.Null,
|
|
2893
|
+
])),
|
|
2894
|
+
routes: Schema.optional(Schema.Union([
|
|
2895
|
+
Schema.Array(Schema.Struct({
|
|
2896
|
+
id: Schema.String,
|
|
2897
|
+
pattern: Schema.String,
|
|
2898
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2801
2899
|
})),
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
Schema.
|
|
2808
|
-
"
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
|
|
2812
|
-
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
hasModules: "has_modules",
|
|
2838
|
-
lastDeployedFrom: "last_deployed_from",
|
|
2839
|
-
logpush: "logpush",
|
|
2840
|
-
migrationTag: "migration_tag",
|
|
2841
|
-
modifiedOn: "modified_on",
|
|
2842
|
-
namedHandlers: "named_handlers",
|
|
2843
|
-
observability: "observability",
|
|
2844
|
-
placement: "placement",
|
|
2845
|
-
placementMode: "placement_mode",
|
|
2846
|
-
placementStatus: "placement_status",
|
|
2847
|
-
routes: "routes",
|
|
2848
|
-
tag: "tag",
|
|
2849
|
-
tags: "tags",
|
|
2850
|
-
tailConsumers: "tail_consumers",
|
|
2851
|
-
usageModel: "usage_model",
|
|
2852
|
-
})));
|
|
2853
|
-
export const listScripts = API.make(() => ({
|
|
2900
|
+
Schema.Null,
|
|
2901
|
+
])),
|
|
2902
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2903
|
+
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
2904
|
+
tailConsumers: Schema.optional(Schema.Union([Schema.Array(Schema.Unknown), Schema.Null])),
|
|
2905
|
+
usageModel: Schema.optional(Schema.Union([
|
|
2906
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
2907
|
+
Schema.Null,
|
|
2908
|
+
])),
|
|
2909
|
+
}).pipe(Schema.encodeKeys({
|
|
2910
|
+
id: "id",
|
|
2911
|
+
compatibilityDate: "compatibility_date",
|
|
2912
|
+
compatibilityFlags: "compatibility_flags",
|
|
2913
|
+
createdOn: "created_on",
|
|
2914
|
+
etag: "etag",
|
|
2915
|
+
handlers: "handlers",
|
|
2916
|
+
hasAssets: "has_assets",
|
|
2917
|
+
hasModules: "has_modules",
|
|
2918
|
+
lastDeployedFrom: "last_deployed_from",
|
|
2919
|
+
logpush: "logpush",
|
|
2920
|
+
migrationTag: "migration_tag",
|
|
2921
|
+
modifiedOn: "modified_on",
|
|
2922
|
+
namedHandlers: "named_handlers",
|
|
2923
|
+
observability: "observability",
|
|
2924
|
+
placement: "placement",
|
|
2925
|
+
placementMode: "placement_mode",
|
|
2926
|
+
placementStatus: "placement_status",
|
|
2927
|
+
routes: "routes",
|
|
2928
|
+
tag: "tag",
|
|
2929
|
+
tags: "tags",
|
|
2930
|
+
tailConsumers: "tail_consumers",
|
|
2931
|
+
usageModel: "usage_model",
|
|
2932
|
+
}))),
|
|
2933
|
+
});
|
|
2934
|
+
export const listScripts = API.makePaginated(() => ({
|
|
2854
2935
|
input: ListScriptsRequest,
|
|
2855
2936
|
output: ListScriptsResponse,
|
|
2856
2937
|
errors: [InvalidRoute],
|
|
2938
|
+
pagination: {
|
|
2939
|
+
mode: "single",
|
|
2940
|
+
items: "result",
|
|
2941
|
+
},
|
|
2857
2942
|
}));
|
|
2858
2943
|
export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
2859
2944
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
@@ -3329,7 +3414,8 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3329
3414
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
3330
3415
|
Schema.Null,
|
|
3331
3416
|
])),
|
|
3332
|
-
})
|
|
3417
|
+
})
|
|
3418
|
+
.pipe(Schema.encodeKeys({
|
|
3333
3419
|
startupTimeMs: "startup_time_ms",
|
|
3334
3420
|
id: "id",
|
|
3335
3421
|
compatibilityDate: "compatibility_date",
|
|
@@ -3353,7 +3439,8 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3353
3439
|
tags: "tags",
|
|
3354
3440
|
tailConsumers: "tail_consumers",
|
|
3355
3441
|
usageModel: "usage_model",
|
|
3356
|
-
}))
|
|
3442
|
+
}))
|
|
3443
|
+
.pipe(T.ResponsePath("result"));
|
|
3357
3444
|
export const putScript = API.make(() => ({
|
|
3358
3445
|
input: PutScriptRequest,
|
|
3359
3446
|
output: PutScriptResponse,
|
|
@@ -3368,7 +3455,7 @@ export const DeleteScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3368
3455
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}",
|
|
3369
3456
|
}));
|
|
3370
3457
|
export const DeleteScriptResponse =
|
|
3371
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
3458
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
3372
3459
|
export const deleteScript = API.make(() => ({
|
|
3373
3460
|
input: DeleteScriptRequest,
|
|
3374
3461
|
output: DeleteScriptResponse,
|
|
@@ -3401,7 +3488,7 @@ export const SearchScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(Sch
|
|
|
3401
3488
|
environmentIsDefault: "environment_is_default",
|
|
3402
3489
|
environmentName: "environment_name",
|
|
3403
3490
|
serviceName: "service_name",
|
|
3404
|
-
})));
|
|
3491
|
+
}))).pipe(T.ResponsePath("result"));
|
|
3405
3492
|
export const searchScript = API.make(() => ({
|
|
3406
3493
|
input: SearchScriptRequest,
|
|
3407
3494
|
output: SearchScriptResponse,
|
|
@@ -3420,7 +3507,7 @@ export const CreateScriptAssetUploadResponse =
|
|
|
3420
3507
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3421
3508
|
buckets: Schema.optional(Schema.Union([Schema.Array(Schema.Array(Schema.String)), Schema.Null])),
|
|
3422
3509
|
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3423
|
-
});
|
|
3510
|
+
}).pipe(T.ResponsePath("result"));
|
|
3424
3511
|
export const createScriptAssetUpload = API.make(() => ({
|
|
3425
3512
|
input: CreateScriptAssetUploadRequest,
|
|
3426
3513
|
output: CreateScriptAssetUploadResponse,
|
|
@@ -3497,7 +3584,8 @@ export const GetScriptDeploymentResponse =
|
|
|
3497
3584
|
Schema.Null,
|
|
3498
3585
|
])),
|
|
3499
3586
|
authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3500
|
-
})
|
|
3587
|
+
})
|
|
3588
|
+
.pipe(Schema.encodeKeys({
|
|
3501
3589
|
id: "id",
|
|
3502
3590
|
createdOn: "created_on",
|
|
3503
3591
|
source: "source",
|
|
@@ -3505,7 +3593,8 @@ export const GetScriptDeploymentResponse =
|
|
|
3505
3593
|
versions: "versions",
|
|
3506
3594
|
annotations: "annotations",
|
|
3507
3595
|
authorEmail: "author_email",
|
|
3508
|
-
}))
|
|
3596
|
+
}))
|
|
3597
|
+
.pipe(T.ResponsePath("result"));
|
|
3509
3598
|
export const getScriptDeployment = API.make(() => ({
|
|
3510
3599
|
input: GetScriptDeploymentRequest,
|
|
3511
3600
|
output: GetScriptDeploymentResponse,
|
|
@@ -3553,7 +3642,7 @@ export const ListScriptDeploymentsResponse =
|
|
|
3553
3642
|
annotations: "annotations",
|
|
3554
3643
|
authorEmail: "author_email",
|
|
3555
3644
|
}))),
|
|
3556
|
-
});
|
|
3645
|
+
}).pipe(T.ResponsePath("result"));
|
|
3557
3646
|
export const listScriptDeployments = API.make(() => ({
|
|
3558
3647
|
input: ListScriptDeploymentsRequest,
|
|
3559
3648
|
output: ListScriptDeploymentsResponse,
|
|
@@ -3606,7 +3695,8 @@ export const CreateScriptDeploymentResponse =
|
|
|
3606
3695
|
Schema.Null,
|
|
3607
3696
|
])),
|
|
3608
3697
|
authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3609
|
-
})
|
|
3698
|
+
})
|
|
3699
|
+
.pipe(Schema.encodeKeys({
|
|
3610
3700
|
id: "id",
|
|
3611
3701
|
createdOn: "created_on",
|
|
3612
3702
|
source: "source",
|
|
@@ -3614,7 +3704,8 @@ export const CreateScriptDeploymentResponse =
|
|
|
3614
3704
|
versions: "versions",
|
|
3615
3705
|
annotations: "annotations",
|
|
3616
3706
|
authorEmail: "author_email",
|
|
3617
|
-
}))
|
|
3707
|
+
}))
|
|
3708
|
+
.pipe(T.ResponsePath("result"));
|
|
3618
3709
|
export const createScriptDeployment = API.make(() => ({
|
|
3619
3710
|
input: CreateScriptDeploymentRequest,
|
|
3620
3711
|
output: CreateScriptDeploymentResponse,
|
|
@@ -3689,7 +3780,7 @@ export const GetScriptScheduleResponse =
|
|
|
3689
3780
|
createdOn: "created_on",
|
|
3690
3781
|
modifiedOn: "modified_on",
|
|
3691
3782
|
}))),
|
|
3692
|
-
});
|
|
3783
|
+
}).pipe(T.ResponsePath("result"));
|
|
3693
3784
|
export const getScriptSchedule = API.make(() => ({
|
|
3694
3785
|
input: GetScriptScheduleRequest,
|
|
3695
3786
|
output: GetScriptScheduleResponse,
|
|
@@ -3717,7 +3808,7 @@ export const PutScriptScheduleResponse =
|
|
|
3717
3808
|
createdOn: "created_on",
|
|
3718
3809
|
modifiedOn: "modified_on",
|
|
3719
3810
|
}))),
|
|
3720
|
-
});
|
|
3811
|
+
}).pipe(T.ResponsePath("result"));
|
|
3721
3812
|
export const putScriptSchedule = API.make(() => ({
|
|
3722
3813
|
input: PutScriptScheduleRequest,
|
|
3723
3814
|
output: PutScriptScheduleResponse,
|
|
@@ -4000,7 +4091,8 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
4000
4091
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
4001
4092
|
Schema.Null,
|
|
4002
4093
|
])),
|
|
4003
|
-
})
|
|
4094
|
+
})
|
|
4095
|
+
.pipe(Schema.encodeKeys({
|
|
4004
4096
|
bindings: "bindings",
|
|
4005
4097
|
compatibilityDate: "compatibility_date",
|
|
4006
4098
|
compatibilityFlags: "compatibility_flags",
|
|
@@ -4011,7 +4103,8 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
4011
4103
|
tags: "tags",
|
|
4012
4104
|
tailConsumers: "tail_consumers",
|
|
4013
4105
|
usageModel: "usage_model",
|
|
4014
|
-
}))
|
|
4106
|
+
}))
|
|
4107
|
+
.pipe(T.ResponsePath("result"));
|
|
4015
4108
|
export const getScriptScriptAndVersionSetting = API.make(() => ({
|
|
4016
4109
|
input: GetScriptScriptAndVersionSettingRequest,
|
|
4017
4110
|
output: GetScriptScriptAndVersionSettingResponse,
|
|
@@ -4594,7 +4687,8 @@ export const PatchScriptScriptAndVersionSettingResponse =
|
|
|
4594
4687
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
4595
4688
|
Schema.Null,
|
|
4596
4689
|
])),
|
|
4597
|
-
})
|
|
4690
|
+
})
|
|
4691
|
+
.pipe(Schema.encodeKeys({
|
|
4598
4692
|
bindings: "bindings",
|
|
4599
4693
|
compatibilityDate: "compatibility_date",
|
|
4600
4694
|
compatibilityFlags: "compatibility_flags",
|
|
@@ -4605,7 +4699,8 @@ export const PatchScriptScriptAndVersionSettingResponse =
|
|
|
4605
4699
|
tags: "tags",
|
|
4606
4700
|
tailConsumers: "tail_consumers",
|
|
4607
4701
|
usageModel: "usage_model",
|
|
4608
|
-
}))
|
|
4702
|
+
}))
|
|
4703
|
+
.pipe(T.ResponsePath("result"));
|
|
4609
4704
|
export const patchScriptScriptAndVersionSetting = API.make(() => ({
|
|
4610
4705
|
input: PatchScriptScriptAndVersionSettingRequest,
|
|
4611
4706
|
output: PatchScriptScriptAndVersionSettingResponse,
|
|
@@ -4641,7 +4736,7 @@ export const GetScriptSecretResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
|
|
|
4641
4736
|
"unwrapKey",
|
|
4642
4737
|
])),
|
|
4643
4738
|
}),
|
|
4644
|
-
]);
|
|
4739
|
+
]).pipe(T.ResponsePath("result"));
|
|
4645
4740
|
export const getScriptSecret = API.make(() => ({
|
|
4646
4741
|
input: GetScriptSecretRequest,
|
|
4647
4742
|
output: GetScriptSecretResponse,
|
|
@@ -4656,32 +4751,38 @@ export const ListScriptSecretsRequest =
|
|
|
4656
4751
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
|
|
4657
4752
|
}));
|
|
4658
4753
|
export const ListScriptSecretsResponse =
|
|
4659
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
4660
|
-
Schema.
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
|
|
4664
|
-
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4669
|
-
|
|
4670
|
-
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
|
|
4679
|
-
|
|
4680
|
-
|
|
4681
|
-
|
|
4754
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4755
|
+
result: Schema.Array(Schema.Union([
|
|
4756
|
+
Schema.Struct({
|
|
4757
|
+
name: Schema.String,
|
|
4758
|
+
type: Schema.Literal("secret_text"),
|
|
4759
|
+
}),
|
|
4760
|
+
Schema.Struct({
|
|
4761
|
+
algorithm: Schema.Unknown,
|
|
4762
|
+
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
4763
|
+
name: Schema.String,
|
|
4764
|
+
type: Schema.Literal("secret_key"),
|
|
4765
|
+
usages: Schema.Array(Schema.Literals([
|
|
4766
|
+
"encrypt",
|
|
4767
|
+
"decrypt",
|
|
4768
|
+
"sign",
|
|
4769
|
+
"verify",
|
|
4770
|
+
"deriveKey",
|
|
4771
|
+
"deriveBits",
|
|
4772
|
+
"wrapKey",
|
|
4773
|
+
"unwrapKey",
|
|
4774
|
+
])),
|
|
4775
|
+
}),
|
|
4776
|
+
])),
|
|
4777
|
+
});
|
|
4778
|
+
export const listScriptSecrets = API.makePaginated(() => ({
|
|
4682
4779
|
input: ListScriptSecretsRequest,
|
|
4683
4780
|
output: ListScriptSecretsResponse,
|
|
4684
4781
|
errors: [WorkerNotFound],
|
|
4782
|
+
pagination: {
|
|
4783
|
+
mode: "single",
|
|
4784
|
+
items: "result",
|
|
4785
|
+
},
|
|
4685
4786
|
}));
|
|
4686
4787
|
export const PutScriptSecretRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4687
4788
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
@@ -4714,7 +4815,7 @@ export const PutScriptSecretResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
|
|
|
4714
4815
|
"unwrapKey",
|
|
4715
4816
|
])),
|
|
4716
4817
|
}),
|
|
4717
|
-
]);
|
|
4818
|
+
]).pipe(T.ResponsePath("result"));
|
|
4718
4819
|
export const putScriptSecret = API.make(() => ({
|
|
4719
4820
|
input: PutScriptSecretRequest,
|
|
4720
4821
|
output: PutScriptSecretResponse,
|
|
@@ -4731,7 +4832,7 @@ export const DeleteScriptSecretRequest =
|
|
|
4731
4832
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
|
|
4732
4833
|
}));
|
|
4733
4834
|
export const DeleteScriptSecretResponse =
|
|
4734
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown;
|
|
4835
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(T.ResponsePath("result"));
|
|
4735
4836
|
export const deleteScriptSecret = API.make(() => ({
|
|
4736
4837
|
input: DeleteScriptSecretRequest,
|
|
4737
4838
|
output: DeleteScriptSecretResponse,
|
|
@@ -4814,10 +4915,12 @@ export const GetScriptSubdomainResponse =
|
|
|
4814
4915
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4815
4916
|
enabled: Schema.Boolean,
|
|
4816
4917
|
previewsEnabled: Schema.Boolean,
|
|
4817
|
-
})
|
|
4918
|
+
})
|
|
4919
|
+
.pipe(Schema.encodeKeys({
|
|
4818
4920
|
enabled: "enabled",
|
|
4819
4921
|
previewsEnabled: "previews_enabled",
|
|
4820
|
-
}))
|
|
4922
|
+
}))
|
|
4923
|
+
.pipe(T.ResponsePath("result"));
|
|
4821
4924
|
export const getScriptSubdomain = API.make(() => ({
|
|
4822
4925
|
input: GetScriptSubdomainRequest,
|
|
4823
4926
|
output: GetScriptSubdomainResponse,
|
|
@@ -4840,10 +4943,12 @@ export const CreateScriptSubdomainResponse =
|
|
|
4840
4943
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4841
4944
|
enabled: Schema.Boolean,
|
|
4842
4945
|
previewsEnabled: Schema.Boolean,
|
|
4843
|
-
})
|
|
4946
|
+
})
|
|
4947
|
+
.pipe(Schema.encodeKeys({
|
|
4844
4948
|
enabled: "enabled",
|
|
4845
4949
|
previewsEnabled: "previews_enabled",
|
|
4846
|
-
}))
|
|
4950
|
+
}))
|
|
4951
|
+
.pipe(T.ResponsePath("result"));
|
|
4847
4952
|
export const createScriptSubdomain = API.make(() => ({
|
|
4848
4953
|
input: CreateScriptSubdomainRequest,
|
|
4849
4954
|
output: CreateScriptSubdomainResponse,
|
|
@@ -4861,10 +4966,12 @@ export const DeleteScriptSubdomainResponse =
|
|
|
4861
4966
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
4862
4967
|
enabled: Schema.Boolean,
|
|
4863
4968
|
previewsEnabled: Schema.Boolean,
|
|
4864
|
-
})
|
|
4969
|
+
})
|
|
4970
|
+
.pipe(Schema.encodeKeys({
|
|
4865
4971
|
enabled: "enabled",
|
|
4866
4972
|
previewsEnabled: "previews_enabled",
|
|
4867
|
-
}))
|
|
4973
|
+
}))
|
|
4974
|
+
.pipe(T.ResponsePath("result"));
|
|
4868
4975
|
export const deleteScriptSubdomain = API.make(() => ({
|
|
4869
4976
|
input: DeleteScriptSubdomainRequest,
|
|
4870
4977
|
output: DeleteScriptSubdomainResponse,
|
|
@@ -4881,7 +4988,9 @@ export const GetScriptTailResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
4881
4988
|
id: Schema.String,
|
|
4882
4989
|
expiresAt: Schema.String,
|
|
4883
4990
|
url: Schema.String,
|
|
4884
|
-
})
|
|
4991
|
+
})
|
|
4992
|
+
.pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
|
|
4993
|
+
.pipe(T.ResponsePath("result"));
|
|
4885
4994
|
export const getScriptTail = API.make(() => ({
|
|
4886
4995
|
input: GetScriptTailRequest,
|
|
4887
4996
|
output: GetScriptTailResponse,
|
|
@@ -4901,7 +5010,9 @@ export const CreateScriptTailResponse =
|
|
|
4901
5010
|
id: Schema.String,
|
|
4902
5011
|
expiresAt: Schema.String,
|
|
4903
5012
|
url: Schema.String,
|
|
4904
|
-
})
|
|
5013
|
+
})
|
|
5014
|
+
.pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
|
|
5015
|
+
.pipe(T.ResponsePath("result"));
|
|
4905
5016
|
export const createScriptTail = API.make(() => ({
|
|
4906
5017
|
input: CreateScriptTailRequest,
|
|
4907
5018
|
output: CreateScriptTailResponse,
|
|
@@ -5282,7 +5393,7 @@ export const GetScriptVersionResponse =
|
|
|
5282
5393
|
Schema.Null,
|
|
5283
5394
|
])),
|
|
5284
5395
|
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5285
|
-
});
|
|
5396
|
+
}).pipe(T.ResponsePath("result"));
|
|
5286
5397
|
export const getScriptVersion = API.make(() => ({
|
|
5287
5398
|
input: GetScriptVersionRequest,
|
|
5288
5399
|
output: GetScriptVersionResponse,
|
|
@@ -5298,46 +5409,71 @@ export const ListScriptVersionsRequest =
|
|
|
5298
5409
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
|
|
5299
5410
|
}));
|
|
5300
5411
|
export const ListScriptVersionsResponse =
|
|
5301
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
5302
|
-
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
5317
|
-
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
5325
|
-
|
|
5326
|
-
|
|
5327
|
-
|
|
5328
|
-
|
|
5329
|
-
|
|
5330
|
-
|
|
5331
|
-
|
|
5332
|
-
|
|
5333
|
-
|
|
5334
|
-
|
|
5335
|
-
|
|
5336
|
-
|
|
5337
|
-
|
|
5412
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5413
|
+
result: Schema.Struct({
|
|
5414
|
+
items: Schema.optional(Schema.Union([
|
|
5415
|
+
Schema.Array(Schema.Struct({
|
|
5416
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5417
|
+
metadata: Schema.optional(Schema.Union([
|
|
5418
|
+
Schema.Struct({
|
|
5419
|
+
authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5420
|
+
authorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5421
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5422
|
+
hasPreview: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5423
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5424
|
+
source: Schema.optional(Schema.Union([
|
|
5425
|
+
Schema.Literals([
|
|
5426
|
+
"unknown",
|
|
5427
|
+
"api",
|
|
5428
|
+
"wrangler",
|
|
5429
|
+
"terraform",
|
|
5430
|
+
"dash",
|
|
5431
|
+
"dash_template",
|
|
5432
|
+
"integration",
|
|
5433
|
+
"quick_editor",
|
|
5434
|
+
"playground",
|
|
5435
|
+
"workersci",
|
|
5436
|
+
]),
|
|
5437
|
+
Schema.Null,
|
|
5438
|
+
])),
|
|
5439
|
+
}).pipe(Schema.encodeKeys({
|
|
5440
|
+
authorEmail: "author_email",
|
|
5441
|
+
authorId: "author_id",
|
|
5442
|
+
createdOn: "created_on",
|
|
5443
|
+
hasPreview: "hasPreview",
|
|
5444
|
+
modifiedOn: "modified_on",
|
|
5445
|
+
source: "source",
|
|
5446
|
+
})),
|
|
5447
|
+
Schema.Null,
|
|
5448
|
+
])),
|
|
5449
|
+
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5450
|
+
})),
|
|
5451
|
+
Schema.Null,
|
|
5452
|
+
])),
|
|
5453
|
+
}),
|
|
5454
|
+
resultInfo: Schema.Struct({
|
|
5455
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5456
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5457
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5458
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5459
|
+
}).pipe(Schema.encodeKeys({
|
|
5460
|
+
count: "count",
|
|
5461
|
+
page: "page",
|
|
5462
|
+
perPage: "per_page",
|
|
5463
|
+
totalCount: "total_count",
|
|
5464
|
+
})),
|
|
5465
|
+
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" }));
|
|
5466
|
+
export const listScriptVersions = API.makePaginated(() => ({
|
|
5338
5467
|
input: ListScriptVersionsRequest,
|
|
5339
5468
|
output: ListScriptVersionsResponse,
|
|
5340
5469
|
errors: [WorkerNotFound],
|
|
5470
|
+
pagination: {
|
|
5471
|
+
mode: "page",
|
|
5472
|
+
inputToken: "page",
|
|
5473
|
+
outputToken: "resultInfo.page",
|
|
5474
|
+
items: "result.items",
|
|
5475
|
+
pageSize: "perPage",
|
|
5476
|
+
},
|
|
5341
5477
|
}));
|
|
5342
5478
|
export const CreateScriptVersionRequest =
|
|
5343
5479
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
@@ -5916,13 +6052,15 @@ export const CreateScriptVersionResponse =
|
|
|
5916
6052
|
])),
|
|
5917
6053
|
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5918
6054
|
startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
5919
|
-
})
|
|
6055
|
+
})
|
|
6056
|
+
.pipe(Schema.encodeKeys({
|
|
5920
6057
|
resources: "resources",
|
|
5921
6058
|
id: "id",
|
|
5922
6059
|
metadata: "metadata",
|
|
5923
6060
|
number: "number",
|
|
5924
6061
|
startupTimeMs: "startup_time_ms",
|
|
5925
|
-
}))
|
|
6062
|
+
}))
|
|
6063
|
+
.pipe(T.ResponsePath("result"));
|
|
5926
6064
|
export const createScriptVersion = API.make(() => ({
|
|
5927
6065
|
input: CreateScriptVersionRequest,
|
|
5928
6066
|
output: CreateScriptVersionResponse,
|
|
@@ -5933,7 +6071,7 @@ export const GetSubdomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5933
6071
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/subdomain" }));
|
|
5934
6072
|
export const GetSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5935
6073
|
subdomain: Schema.String,
|
|
5936
|
-
});
|
|
6074
|
+
}).pipe(T.ResponsePath("result"));
|
|
5937
6075
|
export const getSubdomain = API.make(() => ({
|
|
5938
6076
|
input: GetSubdomainRequest,
|
|
5939
6077
|
output: GetSubdomainResponse,
|
|
@@ -5945,7 +6083,7 @@ export const PutSubdomainRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5945
6083
|
}).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/workers/subdomain" }));
|
|
5946
6084
|
export const PutSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5947
6085
|
subdomain: Schema.String,
|
|
5948
|
-
});
|
|
6086
|
+
}).pipe(T.ResponsePath("result"));
|
|
5949
6087
|
export const putSubdomain = API.make(() => ({
|
|
5950
6088
|
input: PutSubdomainRequest,
|
|
5951
6089
|
output: PutSubdomainResponse,
|