@distilled.cloud/cloudflare 0.2.6 → 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/src/services/workers.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service workers
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import * as stream from "effect/Stream";
|
|
8
9
|
import * as Schema from "effect/Schema";
|
|
9
10
|
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
10
11
|
import * as API from "../client/api.ts";
|
|
@@ -107,12 +108,16 @@ export const GetAccountSettingResponse =
|
|
|
107
108
|
Schema.Union([Schema.String, Schema.Null]),
|
|
108
109
|
),
|
|
109
110
|
greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
110
|
-
})
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
})
|
|
112
|
+
.pipe(
|
|
113
|
+
Schema.encodeKeys({
|
|
114
|
+
defaultUsageModel: "default_usage_model",
|
|
115
|
+
greenCompute: "green_compute",
|
|
116
|
+
}),
|
|
117
|
+
)
|
|
118
|
+
.pipe(
|
|
119
|
+
T.ResponsePath("result"),
|
|
120
|
+
) as unknown as Schema.Schema<GetAccountSettingResponse>;
|
|
116
121
|
|
|
117
122
|
export type GetAccountSettingError = DefaultErrors | InvalidRoute;
|
|
118
123
|
|
|
@@ -163,12 +168,16 @@ export const PutAccountSettingResponse =
|
|
|
163
168
|
Schema.Union([Schema.String, Schema.Null]),
|
|
164
169
|
),
|
|
165
170
|
greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
166
|
-
})
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
171
|
+
})
|
|
172
|
+
.pipe(
|
|
173
|
+
Schema.encodeKeys({
|
|
174
|
+
defaultUsageModel: "default_usage_model",
|
|
175
|
+
greenCompute: "green_compute",
|
|
176
|
+
}),
|
|
177
|
+
)
|
|
178
|
+
.pipe(
|
|
179
|
+
T.ResponsePath("result"),
|
|
180
|
+
) as unknown as Schema.Schema<PutAccountSettingResponse>;
|
|
172
181
|
|
|
173
182
|
export type PutAccountSettingError = DefaultErrors | InvalidRoute;
|
|
174
183
|
|
|
@@ -192,6 +201,8 @@ export interface CreateAssetUploadRequest {
|
|
|
192
201
|
accountId: string;
|
|
193
202
|
/** Query param: Whether the file contents are base64-encoded. Must be `true`. */
|
|
194
203
|
base64: true;
|
|
204
|
+
/** Upload session JWT returned by createScriptAssetUpload. This SDK sends it as an Authorization bearer token for this request. */
|
|
205
|
+
jwtToken?: string;
|
|
195
206
|
/** Body param: */
|
|
196
207
|
body: Record<string, unknown>;
|
|
197
208
|
}
|
|
@@ -200,6 +211,9 @@ export const CreateAssetUploadRequest =
|
|
|
200
211
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
201
212
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
202
213
|
base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
|
|
214
|
+
jwtToken: Schema.optional(Schema.String).pipe(
|
|
215
|
+
T.HttpHeader("Authorization"),
|
|
216
|
+
),
|
|
203
217
|
body: Schema.Struct({}).pipe(T.HttpBody()),
|
|
204
218
|
}).pipe(
|
|
205
219
|
T.Http({
|
|
@@ -217,7 +231,9 @@ export interface CreateAssetUploadResponse {
|
|
|
217
231
|
export const CreateAssetUploadResponse =
|
|
218
232
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
219
233
|
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
220
|
-
})
|
|
234
|
+
}).pipe(
|
|
235
|
+
T.ResponsePath("result"),
|
|
236
|
+
) as unknown as Schema.Schema<CreateAssetUploadResponse>;
|
|
221
237
|
|
|
222
238
|
export type CreateAssetUploadError = DefaultErrors | InvalidRoute;
|
|
223
239
|
|
|
@@ -262,7 +278,9 @@ export interface GetBetaWorkerResponse {
|
|
|
262
278
|
export const GetBetaWorkerResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
263
279
|
id: Schema.String,
|
|
264
280
|
name: Schema.String,
|
|
265
|
-
})
|
|
281
|
+
}).pipe(
|
|
282
|
+
T.ResponsePath("result"),
|
|
283
|
+
) as unknown as Schema.Schema<GetBetaWorkerResponse>;
|
|
266
284
|
|
|
267
285
|
export type GetBetaWorkerError = DefaultErrors | WorkerNotFound | InvalidRoute;
|
|
268
286
|
|
|
@@ -290,26 +308,74 @@ export const ListBetaWorkersRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct(
|
|
|
290
308
|
T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" }),
|
|
291
309
|
) as unknown as Schema.Schema<ListBetaWorkersRequest>;
|
|
292
310
|
|
|
293
|
-
export
|
|
311
|
+
export interface ListBetaWorkersResponse {
|
|
312
|
+
result: { id: string; name: string }[];
|
|
313
|
+
resultInfo: {
|
|
314
|
+
count?: number | null;
|
|
315
|
+
page?: number | null;
|
|
316
|
+
perPage?: number | null;
|
|
317
|
+
totalCount?: number | null;
|
|
318
|
+
};
|
|
319
|
+
}
|
|
294
320
|
|
|
295
|
-
export const ListBetaWorkersResponse =
|
|
296
|
-
Schema.Struct({
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
321
|
+
export const ListBetaWorkersResponse =
|
|
322
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
323
|
+
result: Schema.Array(
|
|
324
|
+
Schema.Struct({
|
|
325
|
+
id: Schema.String,
|
|
326
|
+
name: Schema.String,
|
|
327
|
+
}),
|
|
328
|
+
),
|
|
329
|
+
resultInfo: Schema.Struct({
|
|
330
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
331
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
332
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
333
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
334
|
+
}).pipe(
|
|
335
|
+
Schema.encodeKeys({
|
|
336
|
+
count: "count",
|
|
337
|
+
page: "page",
|
|
338
|
+
perPage: "per_page",
|
|
339
|
+
totalCount: "total_count",
|
|
340
|
+
}),
|
|
341
|
+
),
|
|
342
|
+
}).pipe(
|
|
343
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
344
|
+
) as unknown as Schema.Schema<ListBetaWorkersResponse>;
|
|
301
345
|
|
|
302
346
|
export type ListBetaWorkersError = DefaultErrors | InvalidRoute;
|
|
303
347
|
|
|
304
|
-
export const listBetaWorkers: API.
|
|
348
|
+
export const listBetaWorkers: API.PaginatedOperationMethod<
|
|
305
349
|
ListBetaWorkersRequest,
|
|
306
350
|
ListBetaWorkersResponse,
|
|
307
351
|
ListBetaWorkersError,
|
|
308
352
|
Credentials | HttpClient.HttpClient
|
|
309
|
-
>
|
|
353
|
+
> & {
|
|
354
|
+
pages: (
|
|
355
|
+
input: ListBetaWorkersRequest,
|
|
356
|
+
) => stream.Stream<
|
|
357
|
+
ListBetaWorkersResponse,
|
|
358
|
+
ListBetaWorkersError,
|
|
359
|
+
Credentials | HttpClient.HttpClient
|
|
360
|
+
>;
|
|
361
|
+
items: (
|
|
362
|
+
input: ListBetaWorkersRequest,
|
|
363
|
+
) => stream.Stream<
|
|
364
|
+
{ id: string; name: string },
|
|
365
|
+
ListBetaWorkersError,
|
|
366
|
+
Credentials | HttpClient.HttpClient
|
|
367
|
+
>;
|
|
368
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
310
369
|
input: ListBetaWorkersRequest,
|
|
311
370
|
output: ListBetaWorkersResponse,
|
|
312
371
|
errors: [InvalidRoute],
|
|
372
|
+
pagination: {
|
|
373
|
+
mode: "page",
|
|
374
|
+
inputToken: "page",
|
|
375
|
+
outputToken: "resultInfo.page",
|
|
376
|
+
items: "result",
|
|
377
|
+
pageSize: "perPage",
|
|
378
|
+
} as const,
|
|
313
379
|
}));
|
|
314
380
|
|
|
315
381
|
export interface CreateBetaWorkerRequest {
|
|
@@ -409,7 +475,9 @@ export const CreateBetaWorkerResponse =
|
|
|
409
475
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
410
476
|
id: Schema.String,
|
|
411
477
|
name: Schema.String,
|
|
412
|
-
})
|
|
478
|
+
}).pipe(
|
|
479
|
+
T.ResponsePath("result"),
|
|
480
|
+
) as unknown as Schema.Schema<CreateBetaWorkerResponse>;
|
|
413
481
|
|
|
414
482
|
export type CreateBetaWorkerError = DefaultErrors | InvalidRoute;
|
|
415
483
|
|
|
@@ -526,7 +594,9 @@ export const UpdateBetaWorkerResponse =
|
|
|
526
594
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
527
595
|
id: Schema.String,
|
|
528
596
|
name: Schema.String,
|
|
529
|
-
})
|
|
597
|
+
}).pipe(
|
|
598
|
+
T.ResponsePath("result"),
|
|
599
|
+
) as unknown as Schema.Schema<UpdateBetaWorkerResponse>;
|
|
530
600
|
|
|
531
601
|
export type UpdateBetaWorkerError = DefaultErrors | WorkerNotFound;
|
|
532
602
|
|
|
@@ -638,7 +708,9 @@ export const PatchBetaWorkerResponse =
|
|
|
638
708
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
639
709
|
id: Schema.String,
|
|
640
710
|
name: Schema.String,
|
|
641
|
-
})
|
|
711
|
+
}).pipe(
|
|
712
|
+
T.ResponsePath("result"),
|
|
713
|
+
) as unknown as Schema.Schema<PatchBetaWorkerResponse>;
|
|
642
714
|
|
|
643
715
|
export type PatchBetaWorkerError = DefaultErrors | WorkerNotFound;
|
|
644
716
|
|
|
@@ -1347,26 +1419,30 @@ export const GetBetaWorkerVersionResponse =
|
|
|
1347
1419
|
Schema.Null,
|
|
1348
1420
|
]),
|
|
1349
1421
|
),
|
|
1350
|
-
})
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1422
|
+
})
|
|
1423
|
+
.pipe(
|
|
1424
|
+
Schema.encodeKeys({
|
|
1425
|
+
id: "id",
|
|
1426
|
+
createdOn: "created_on",
|
|
1427
|
+
number: "number",
|
|
1428
|
+
annotations: "annotations",
|
|
1429
|
+
assets: "assets",
|
|
1430
|
+
bindings: "bindings",
|
|
1431
|
+
compatibilityDate: "compatibility_date",
|
|
1432
|
+
compatibilityFlags: "compatibility_flags",
|
|
1433
|
+
limits: "limits",
|
|
1434
|
+
mainModule: "main_module",
|
|
1435
|
+
migrations: "migrations",
|
|
1436
|
+
modules: "modules",
|
|
1437
|
+
placement: "placement",
|
|
1438
|
+
source: "source",
|
|
1439
|
+
startupTimeMs: "startup_time_ms",
|
|
1440
|
+
usageModel: "usage_model",
|
|
1441
|
+
}),
|
|
1442
|
+
)
|
|
1443
|
+
.pipe(
|
|
1444
|
+
T.ResponsePath("result"),
|
|
1445
|
+
) as unknown as Schema.Schema<GetBetaWorkerVersionResponse>;
|
|
1370
1446
|
|
|
1371
1447
|
export type GetBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
|
|
1372
1448
|
|
|
@@ -1398,597 +1474,784 @@ export const ListBetaWorkerVersionsRequest =
|
|
|
1398
1474
|
}),
|
|
1399
1475
|
) as unknown as Schema.Schema<ListBetaWorkerVersionsRequest>;
|
|
1400
1476
|
|
|
1401
|
-
export
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
assets?: {
|
|
1411
|
-
config?: {
|
|
1412
|
-
htmlHandling?:
|
|
1413
|
-
| "auto-trailing-slash"
|
|
1414
|
-
| "force-trailing-slash"
|
|
1415
|
-
| "drop-trailing-slash"
|
|
1416
|
-
| "none"
|
|
1417
|
-
| null;
|
|
1418
|
-
notFoundHandling?: "none" | "404-page" | "single-page-application" | null;
|
|
1419
|
-
runWorkerFirst?: string[] | boolean | null;
|
|
1477
|
+
export interface ListBetaWorkerVersionsResponse {
|
|
1478
|
+
result: {
|
|
1479
|
+
id: string;
|
|
1480
|
+
createdOn: string;
|
|
1481
|
+
number: number;
|
|
1482
|
+
annotations?: {
|
|
1483
|
+
workersMessage?: string | null;
|
|
1484
|
+
workersTag?: string | null;
|
|
1485
|
+
workersTriggeredBy?: string | null;
|
|
1420
1486
|
} | null;
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1487
|
+
assets?: {
|
|
1488
|
+
config?: {
|
|
1489
|
+
htmlHandling?:
|
|
1490
|
+
| "auto-trailing-slash"
|
|
1491
|
+
| "force-trailing-slash"
|
|
1492
|
+
| "drop-trailing-slash"
|
|
1493
|
+
| "none"
|
|
1494
|
+
| null;
|
|
1495
|
+
notFoundHandling?:
|
|
1496
|
+
| "none"
|
|
1497
|
+
| "404-page"
|
|
1498
|
+
| "single-page-application"
|
|
1499
|
+
| null;
|
|
1500
|
+
runWorkerFirst?: string[] | boolean | null;
|
|
1501
|
+
} | null;
|
|
1502
|
+
jwt?: string | null;
|
|
1503
|
+
} | null;
|
|
1504
|
+
bindings?:
|
|
1505
|
+
| (
|
|
1506
|
+
| { name: string; type: "ai" }
|
|
1507
|
+
| { dataset: string; name: string; type: "analytics_engine" }
|
|
1508
|
+
| { name: string; type: "assets" }
|
|
1509
|
+
| { name: string; type: "browser" }
|
|
1510
|
+
| { id: string; name: string; type: "d1" }
|
|
1511
|
+
| { name: string; part: string; type: "data_blob" }
|
|
1512
|
+
| {
|
|
1513
|
+
name: string;
|
|
1514
|
+
namespace: string;
|
|
1515
|
+
type: "dispatch_namespace";
|
|
1516
|
+
outbound?: {
|
|
1517
|
+
params?: string[] | null;
|
|
1518
|
+
worker?: {
|
|
1519
|
+
environment?: string | null;
|
|
1520
|
+
service?: string | null;
|
|
1521
|
+
} | null;
|
|
1440
1522
|
} | null;
|
|
1441
|
-
}
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
}
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
}
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
}
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
}
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
}
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
| null;
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
| null;
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
Schema.
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
workersTriggeredBy:
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1523
|
+
}
|
|
1524
|
+
| {
|
|
1525
|
+
name: string;
|
|
1526
|
+
type: "durable_object_namespace";
|
|
1527
|
+
className?: string | null;
|
|
1528
|
+
environment?: string | null;
|
|
1529
|
+
namespaceId?: string | null;
|
|
1530
|
+
scriptName?: string | null;
|
|
1531
|
+
}
|
|
1532
|
+
| { id: string; name: string; type: "hyperdrive" }
|
|
1533
|
+
| {
|
|
1534
|
+
name: string;
|
|
1535
|
+
type: "inherit";
|
|
1536
|
+
oldName?: string | null;
|
|
1537
|
+
versionId?: string | null;
|
|
1538
|
+
}
|
|
1539
|
+
| { name: string; type: "images" }
|
|
1540
|
+
| { json: string; name: string; type: "json" }
|
|
1541
|
+
| { name: string; namespaceId: string; type: "kv_namespace" }
|
|
1542
|
+
| { certificateId: string; name: string; type: "mtls_certificate" }
|
|
1543
|
+
| { name: string; text: string; type: "plain_text" }
|
|
1544
|
+
| { name: string; pipeline: string; type: "pipelines" }
|
|
1545
|
+
| { name: string; queueName: string; type: "queue" }
|
|
1546
|
+
| {
|
|
1547
|
+
bucketName: string;
|
|
1548
|
+
name: string;
|
|
1549
|
+
type: "r2_bucket";
|
|
1550
|
+
jurisdiction?: "eu" | "fedramp" | null;
|
|
1551
|
+
}
|
|
1552
|
+
| { name: string; type: "secret_text" }
|
|
1553
|
+
| {
|
|
1554
|
+
name: string;
|
|
1555
|
+
type: "send_email";
|
|
1556
|
+
allowedDestinationAddresses?: string[] | null;
|
|
1557
|
+
allowedSenderAddresses?: string[] | null;
|
|
1558
|
+
destinationAddress?: string | null;
|
|
1559
|
+
}
|
|
1560
|
+
| {
|
|
1561
|
+
name: string;
|
|
1562
|
+
service: string;
|
|
1563
|
+
type: "service";
|
|
1564
|
+
environment?: string | null;
|
|
1565
|
+
}
|
|
1566
|
+
| { name: string; part: string; type: "text_blob" }
|
|
1567
|
+
| { indexName: string; name: string; type: "vectorize" }
|
|
1568
|
+
| { name: string; type: "version_metadata" }
|
|
1569
|
+
| {
|
|
1570
|
+
name: string;
|
|
1571
|
+
secretName: string;
|
|
1572
|
+
storeId: string;
|
|
1573
|
+
type: "secrets_store_secret";
|
|
1574
|
+
}
|
|
1575
|
+
| {
|
|
1576
|
+
algorithm: unknown;
|
|
1577
|
+
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
1578
|
+
name: string;
|
|
1579
|
+
type: "secret_key";
|
|
1580
|
+
usages: (
|
|
1581
|
+
| "encrypt"
|
|
1582
|
+
| "decrypt"
|
|
1583
|
+
| "sign"
|
|
1584
|
+
| "verify"
|
|
1585
|
+
| "deriveKey"
|
|
1586
|
+
| "deriveBits"
|
|
1587
|
+
| "wrapKey"
|
|
1588
|
+
| "unwrapKey"
|
|
1589
|
+
)[];
|
|
1590
|
+
}
|
|
1591
|
+
| {
|
|
1592
|
+
name: string;
|
|
1593
|
+
type: "workflow";
|
|
1594
|
+
workflowName: string;
|
|
1595
|
+
className?: string | null;
|
|
1596
|
+
scriptName?: string | null;
|
|
1597
|
+
}
|
|
1598
|
+
| { name: string; part: string; type: "wasm_module" }
|
|
1599
|
+
)[]
|
|
1600
|
+
| null;
|
|
1601
|
+
compatibilityDate?: string | null;
|
|
1602
|
+
compatibilityFlags?: string[] | null;
|
|
1603
|
+
limits?: { cpuMs: number } | null;
|
|
1604
|
+
mainModule?: string | null;
|
|
1605
|
+
migrations?: unknown | null;
|
|
1606
|
+
modules?:
|
|
1607
|
+
| { contentBase64: string; contentType: string; name: string }[]
|
|
1608
|
+
| null;
|
|
1609
|
+
placement?: { mode?: "smart" | null } | null;
|
|
1610
|
+
source?: string | null;
|
|
1611
|
+
startupTimeMs?: number | null;
|
|
1612
|
+
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
1613
|
+
}[];
|
|
1614
|
+
resultInfo: {
|
|
1615
|
+
count?: number | null;
|
|
1616
|
+
page?: number | null;
|
|
1617
|
+
perPage?: number | null;
|
|
1618
|
+
totalCount?: number | null;
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
export const ListBetaWorkerVersionsResponse =
|
|
1623
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
1624
|
+
result: Schema.Array(
|
|
1625
|
+
Schema.Struct({
|
|
1626
|
+
id: Schema.String,
|
|
1627
|
+
createdOn: Schema.String,
|
|
1628
|
+
number: Schema.Number,
|
|
1629
|
+
annotations: Schema.optional(
|
|
1630
|
+
Schema.Union([
|
|
1631
|
+
Schema.Struct({
|
|
1632
|
+
workersMessage: Schema.optional(
|
|
1633
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1634
|
+
),
|
|
1635
|
+
workersTag: Schema.optional(
|
|
1636
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1637
|
+
),
|
|
1638
|
+
workersTriggeredBy: Schema.optional(
|
|
1639
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1640
|
+
),
|
|
1641
|
+
}).pipe(
|
|
1642
|
+
Schema.encodeKeys({
|
|
1643
|
+
workersMessage: "workers/message",
|
|
1644
|
+
workersTag: "workers/tag",
|
|
1645
|
+
workersTriggeredBy: "workers/triggered_by",
|
|
1646
|
+
}),
|
|
1647
|
+
),
|
|
1648
|
+
Schema.Null,
|
|
1649
|
+
]),
|
|
1650
|
+
),
|
|
1651
|
+
assets: Schema.optional(
|
|
1652
|
+
Schema.Union([
|
|
1653
|
+
Schema.Struct({
|
|
1654
|
+
config: Schema.optional(
|
|
1655
|
+
Schema.Union([
|
|
1656
|
+
Schema.Struct({
|
|
1657
|
+
htmlHandling: Schema.optional(
|
|
1658
|
+
Schema.Union([
|
|
1659
|
+
Schema.Literals([
|
|
1660
|
+
"auto-trailing-slash",
|
|
1661
|
+
"force-trailing-slash",
|
|
1662
|
+
"drop-trailing-slash",
|
|
1663
|
+
"none",
|
|
1664
|
+
]),
|
|
1665
|
+
Schema.Null,
|
|
1666
|
+
]),
|
|
1667
|
+
),
|
|
1668
|
+
notFoundHandling: Schema.optional(
|
|
1669
|
+
Schema.Union([
|
|
1670
|
+
Schema.Literals([
|
|
1671
|
+
"none",
|
|
1672
|
+
"404-page",
|
|
1673
|
+
"single-page-application",
|
|
1674
|
+
]),
|
|
1675
|
+
Schema.Null,
|
|
1676
|
+
]),
|
|
1677
|
+
),
|
|
1678
|
+
runWorkerFirst: Schema.optional(
|
|
1679
|
+
Schema.Union([
|
|
1680
|
+
Schema.Union([
|
|
1681
|
+
Schema.Array(Schema.String),
|
|
1682
|
+
Schema.Boolean,
|
|
1683
|
+
]),
|
|
1684
|
+
Schema.Null,
|
|
1685
|
+
]),
|
|
1686
|
+
),
|
|
1687
|
+
}).pipe(
|
|
1688
|
+
Schema.encodeKeys({
|
|
1689
|
+
htmlHandling: "html_handling",
|
|
1690
|
+
notFoundHandling: "not_found_handling",
|
|
1691
|
+
runWorkerFirst: "run_worker_first",
|
|
1692
|
+
}),
|
|
1693
|
+
),
|
|
1694
|
+
Schema.Null,
|
|
1695
|
+
]),
|
|
1696
|
+
),
|
|
1697
|
+
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1698
|
+
}),
|
|
1699
|
+
Schema.Null,
|
|
1700
|
+
]),
|
|
1701
|
+
),
|
|
1702
|
+
bindings: Schema.optional(
|
|
1703
|
+
Schema.Union([
|
|
1704
|
+
Schema.Array(
|
|
1566
1705
|
Schema.Union([
|
|
1567
1706
|
Schema.Struct({
|
|
1568
|
-
|
|
1707
|
+
name: Schema.String,
|
|
1708
|
+
type: Schema.Literal("ai"),
|
|
1709
|
+
}),
|
|
1710
|
+
Schema.Struct({
|
|
1711
|
+
dataset: Schema.String,
|
|
1712
|
+
name: Schema.String,
|
|
1713
|
+
type: Schema.Literal("analytics_engine"),
|
|
1714
|
+
}),
|
|
1715
|
+
Schema.Struct({
|
|
1716
|
+
name: Schema.String,
|
|
1717
|
+
type: Schema.Literal("assets"),
|
|
1718
|
+
}),
|
|
1719
|
+
Schema.Struct({
|
|
1720
|
+
name: Schema.String,
|
|
1721
|
+
type: Schema.Literal("browser"),
|
|
1722
|
+
}),
|
|
1723
|
+
Schema.Struct({
|
|
1724
|
+
id: Schema.String,
|
|
1725
|
+
name: Schema.String,
|
|
1726
|
+
type: Schema.Literal("d1"),
|
|
1727
|
+
}),
|
|
1728
|
+
Schema.Struct({
|
|
1729
|
+
name: Schema.String,
|
|
1730
|
+
part: Schema.String,
|
|
1731
|
+
type: Schema.Literal("data_blob"),
|
|
1732
|
+
}),
|
|
1733
|
+
Schema.Struct({
|
|
1734
|
+
name: Schema.String,
|
|
1735
|
+
namespace: Schema.String,
|
|
1736
|
+
type: Schema.Literal("dispatch_namespace"),
|
|
1737
|
+
outbound: Schema.optional(
|
|
1569
1738
|
Schema.Union([
|
|
1570
|
-
Schema.
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1739
|
+
Schema.Struct({
|
|
1740
|
+
params: Schema.optional(
|
|
1741
|
+
Schema.Union([
|
|
1742
|
+
Schema.Array(Schema.String),
|
|
1743
|
+
Schema.Null,
|
|
1744
|
+
]),
|
|
1745
|
+
),
|
|
1746
|
+
worker: Schema.optional(
|
|
1747
|
+
Schema.Union([
|
|
1748
|
+
Schema.Struct({
|
|
1749
|
+
environment: Schema.optional(
|
|
1750
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1751
|
+
),
|
|
1752
|
+
service: Schema.optional(
|
|
1753
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1754
|
+
),
|
|
1755
|
+
}),
|
|
1756
|
+
Schema.Null,
|
|
1757
|
+
]),
|
|
1758
|
+
),
|
|
1759
|
+
}),
|
|
1576
1760
|
Schema.Null,
|
|
1577
1761
|
]),
|
|
1578
1762
|
),
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
]),
|
|
1586
|
-
Schema.Null,
|
|
1587
|
-
]),
|
|
1763
|
+
}),
|
|
1764
|
+
Schema.Struct({
|
|
1765
|
+
name: Schema.String,
|
|
1766
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
1767
|
+
className: Schema.optional(
|
|
1768
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1588
1769
|
),
|
|
1589
|
-
|
|
1590
|
-
Schema.Union([
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
]),
|
|
1770
|
+
environment: Schema.optional(
|
|
1771
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1772
|
+
),
|
|
1773
|
+
namespaceId: Schema.optional(
|
|
1774
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1775
|
+
),
|
|
1776
|
+
scriptName: Schema.optional(
|
|
1777
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1597
1778
|
),
|
|
1598
1779
|
}).pipe(
|
|
1599
1780
|
Schema.encodeKeys({
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1781
|
+
name: "name",
|
|
1782
|
+
type: "type",
|
|
1783
|
+
className: "class_name",
|
|
1784
|
+
environment: "environment",
|
|
1785
|
+
namespaceId: "namespace_id",
|
|
1786
|
+
scriptName: "script_name",
|
|
1603
1787
|
}),
|
|
1604
1788
|
),
|
|
1605
|
-
Schema.
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
}),
|
|
1610
|
-
Schema.Null,
|
|
1611
|
-
]),
|
|
1612
|
-
),
|
|
1613
|
-
bindings: Schema.optional(
|
|
1614
|
-
Schema.Union([
|
|
1615
|
-
Schema.Array(
|
|
1616
|
-
Schema.Union([
|
|
1617
|
-
Schema.Struct({
|
|
1618
|
-
name: Schema.String,
|
|
1619
|
-
type: Schema.Literal("ai"),
|
|
1620
|
-
}),
|
|
1621
|
-
Schema.Struct({
|
|
1622
|
-
dataset: Schema.String,
|
|
1623
|
-
name: Schema.String,
|
|
1624
|
-
type: Schema.Literal("analytics_engine"),
|
|
1625
|
-
}),
|
|
1626
|
-
Schema.Struct({
|
|
1627
|
-
name: Schema.String,
|
|
1628
|
-
type: Schema.Literal("assets"),
|
|
1629
|
-
}),
|
|
1630
|
-
Schema.Struct({
|
|
1631
|
-
name: Schema.String,
|
|
1632
|
-
type: Schema.Literal("browser"),
|
|
1633
|
-
}),
|
|
1634
|
-
Schema.Struct({
|
|
1635
|
-
id: Schema.String,
|
|
1636
|
-
name: Schema.String,
|
|
1637
|
-
type: Schema.Literal("d1"),
|
|
1638
|
-
}),
|
|
1639
|
-
Schema.Struct({
|
|
1640
|
-
name: Schema.String,
|
|
1641
|
-
part: Schema.String,
|
|
1642
|
-
type: Schema.Literal("data_blob"),
|
|
1643
|
-
}),
|
|
1644
|
-
Schema.Struct({
|
|
1645
|
-
name: Schema.String,
|
|
1646
|
-
namespace: Schema.String,
|
|
1647
|
-
type: Schema.Literal("dispatch_namespace"),
|
|
1648
|
-
outbound: Schema.optional(
|
|
1649
|
-
Schema.Union([
|
|
1650
|
-
Schema.Struct({
|
|
1651
|
-
params: Schema.optional(
|
|
1652
|
-
Schema.Union([
|
|
1653
|
-
Schema.Array(Schema.String),
|
|
1654
|
-
Schema.Null,
|
|
1655
|
-
]),
|
|
1656
|
-
),
|
|
1657
|
-
worker: Schema.optional(
|
|
1658
|
-
Schema.Union([
|
|
1659
|
-
Schema.Struct({
|
|
1660
|
-
environment: Schema.optional(
|
|
1661
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1662
|
-
),
|
|
1663
|
-
service: Schema.optional(
|
|
1664
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1665
|
-
),
|
|
1666
|
-
}),
|
|
1667
|
-
Schema.Null,
|
|
1668
|
-
]),
|
|
1669
|
-
),
|
|
1670
|
-
}),
|
|
1671
|
-
Schema.Null,
|
|
1672
|
-
]),
|
|
1673
|
-
),
|
|
1674
|
-
}),
|
|
1675
|
-
Schema.Struct({
|
|
1676
|
-
name: Schema.String,
|
|
1677
|
-
type: Schema.Literal("durable_object_namespace"),
|
|
1678
|
-
className: Schema.optional(
|
|
1679
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1680
|
-
),
|
|
1681
|
-
environment: Schema.optional(
|
|
1682
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1683
|
-
),
|
|
1684
|
-
namespaceId: Schema.optional(
|
|
1685
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1686
|
-
),
|
|
1687
|
-
scriptName: Schema.optional(
|
|
1688
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1689
|
-
),
|
|
1690
|
-
}).pipe(
|
|
1691
|
-
Schema.encodeKeys({
|
|
1692
|
-
name: "name",
|
|
1693
|
-
type: "type",
|
|
1694
|
-
className: "class_name",
|
|
1695
|
-
environment: "environment",
|
|
1696
|
-
namespaceId: "namespace_id",
|
|
1697
|
-
scriptName: "script_name",
|
|
1789
|
+
Schema.Struct({
|
|
1790
|
+
id: Schema.String,
|
|
1791
|
+
name: Schema.String,
|
|
1792
|
+
type: Schema.Literal("hyperdrive"),
|
|
1698
1793
|
}),
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
Schema.
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1794
|
+
Schema.Struct({
|
|
1795
|
+
name: Schema.String,
|
|
1796
|
+
type: Schema.Literal("inherit"),
|
|
1797
|
+
oldName: Schema.optional(
|
|
1798
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1799
|
+
),
|
|
1800
|
+
versionId: Schema.optional(
|
|
1801
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1802
|
+
),
|
|
1803
|
+
}).pipe(
|
|
1804
|
+
Schema.encodeKeys({
|
|
1805
|
+
name: "name",
|
|
1806
|
+
type: "type",
|
|
1807
|
+
oldName: "old_name",
|
|
1808
|
+
versionId: "version_id",
|
|
1809
|
+
}),
|
|
1713
1810
|
),
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
type: "type",
|
|
1718
|
-
oldName: "old_name",
|
|
1719
|
-
versionId: "version_id",
|
|
1720
|
-
}),
|
|
1721
|
-
),
|
|
1722
|
-
Schema.Struct({
|
|
1723
|
-
name: Schema.String,
|
|
1724
|
-
type: Schema.Literal("images"),
|
|
1725
|
-
}),
|
|
1726
|
-
Schema.Struct({
|
|
1727
|
-
json: Schema.String,
|
|
1728
|
-
name: Schema.String,
|
|
1729
|
-
type: Schema.Literal("json"),
|
|
1730
|
-
}),
|
|
1731
|
-
Schema.Struct({
|
|
1732
|
-
name: Schema.String,
|
|
1733
|
-
namespaceId: Schema.String,
|
|
1734
|
-
type: Schema.Literal("kv_namespace"),
|
|
1735
|
-
}).pipe(
|
|
1736
|
-
Schema.encodeKeys({
|
|
1737
|
-
name: "name",
|
|
1738
|
-
namespaceId: "namespace_id",
|
|
1739
|
-
type: "type",
|
|
1740
|
-
}),
|
|
1741
|
-
),
|
|
1742
|
-
Schema.Struct({
|
|
1743
|
-
certificateId: Schema.String,
|
|
1744
|
-
name: Schema.String,
|
|
1745
|
-
type: Schema.Literal("mtls_certificate"),
|
|
1746
|
-
}).pipe(
|
|
1747
|
-
Schema.encodeKeys({
|
|
1748
|
-
certificateId: "certificate_id",
|
|
1749
|
-
name: "name",
|
|
1750
|
-
type: "type",
|
|
1811
|
+
Schema.Struct({
|
|
1812
|
+
name: Schema.String,
|
|
1813
|
+
type: Schema.Literal("images"),
|
|
1751
1814
|
}),
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
type: Schema.Literal("plain_text"),
|
|
1757
|
-
}),
|
|
1758
|
-
Schema.Struct({
|
|
1759
|
-
name: Schema.String,
|
|
1760
|
-
pipeline: Schema.String,
|
|
1761
|
-
type: Schema.Literal("pipelines"),
|
|
1762
|
-
}),
|
|
1763
|
-
Schema.Struct({
|
|
1764
|
-
name: Schema.String,
|
|
1765
|
-
queueName: Schema.String,
|
|
1766
|
-
type: Schema.Literal("queue"),
|
|
1767
|
-
}).pipe(
|
|
1768
|
-
Schema.encodeKeys({
|
|
1769
|
-
name: "name",
|
|
1770
|
-
queueName: "queue_name",
|
|
1771
|
-
type: "type",
|
|
1815
|
+
Schema.Struct({
|
|
1816
|
+
json: Schema.String,
|
|
1817
|
+
name: Schema.String,
|
|
1818
|
+
type: Schema.Literal("json"),
|
|
1772
1819
|
}),
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1820
|
+
Schema.Struct({
|
|
1821
|
+
name: Schema.String,
|
|
1822
|
+
namespaceId: Schema.String,
|
|
1823
|
+
type: Schema.Literal("kv_namespace"),
|
|
1824
|
+
}).pipe(
|
|
1825
|
+
Schema.encodeKeys({
|
|
1826
|
+
name: "name",
|
|
1827
|
+
namespaceId: "namespace_id",
|
|
1828
|
+
type: "type",
|
|
1829
|
+
}),
|
|
1783
1830
|
),
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1831
|
+
Schema.Struct({
|
|
1832
|
+
certificateId: Schema.String,
|
|
1833
|
+
name: Schema.String,
|
|
1834
|
+
type: Schema.Literal("mtls_certificate"),
|
|
1835
|
+
}).pipe(
|
|
1836
|
+
Schema.encodeKeys({
|
|
1837
|
+
certificateId: "certificate_id",
|
|
1838
|
+
name: "name",
|
|
1839
|
+
type: "type",
|
|
1840
|
+
}),
|
|
1841
|
+
),
|
|
1842
|
+
Schema.Struct({
|
|
1843
|
+
name: Schema.String,
|
|
1844
|
+
text: Schema.String,
|
|
1845
|
+
type: Schema.Literal("plain_text"),
|
|
1790
1846
|
}),
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1847
|
+
Schema.Struct({
|
|
1848
|
+
name: Schema.String,
|
|
1849
|
+
pipeline: Schema.String,
|
|
1850
|
+
type: Schema.Literal("pipelines"),
|
|
1851
|
+
}),
|
|
1852
|
+
Schema.Struct({
|
|
1853
|
+
name: Schema.String,
|
|
1854
|
+
queueName: Schema.String,
|
|
1855
|
+
type: Schema.Literal("queue"),
|
|
1856
|
+
}).pipe(
|
|
1857
|
+
Schema.encodeKeys({
|
|
1858
|
+
name: "name",
|
|
1859
|
+
queueName: "queue_name",
|
|
1860
|
+
type: "type",
|
|
1861
|
+
}),
|
|
1801
1862
|
),
|
|
1802
|
-
|
|
1803
|
-
Schema.
|
|
1863
|
+
Schema.Struct({
|
|
1864
|
+
bucketName: Schema.String,
|
|
1865
|
+
name: Schema.String,
|
|
1866
|
+
type: Schema.Literal("r2_bucket"),
|
|
1867
|
+
jurisdiction: Schema.optional(
|
|
1868
|
+
Schema.Union([
|
|
1869
|
+
Schema.Literals(["eu", "fedramp"]),
|
|
1870
|
+
Schema.Null,
|
|
1871
|
+
]),
|
|
1872
|
+
),
|
|
1873
|
+
}).pipe(
|
|
1874
|
+
Schema.encodeKeys({
|
|
1875
|
+
bucketName: "bucket_name",
|
|
1876
|
+
name: "name",
|
|
1877
|
+
type: "type",
|
|
1878
|
+
jurisdiction: "jurisdiction",
|
|
1879
|
+
}),
|
|
1804
1880
|
),
|
|
1805
|
-
|
|
1806
|
-
Schema.
|
|
1881
|
+
Schema.Struct({
|
|
1882
|
+
name: Schema.String,
|
|
1883
|
+
type: Schema.Literal("secret_text"),
|
|
1884
|
+
}),
|
|
1885
|
+
Schema.Struct({
|
|
1886
|
+
name: Schema.String,
|
|
1887
|
+
type: Schema.Literal("send_email"),
|
|
1888
|
+
allowedDestinationAddresses: Schema.optional(
|
|
1889
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1890
|
+
),
|
|
1891
|
+
allowedSenderAddresses: Schema.optional(
|
|
1892
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1893
|
+
),
|
|
1894
|
+
destinationAddress: Schema.optional(
|
|
1895
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1896
|
+
),
|
|
1897
|
+
}).pipe(
|
|
1898
|
+
Schema.encodeKeys({
|
|
1899
|
+
name: "name",
|
|
1900
|
+
type: "type",
|
|
1901
|
+
allowedDestinationAddresses:
|
|
1902
|
+
"allowed_destination_addresses",
|
|
1903
|
+
allowedSenderAddresses: "allowed_sender_addresses",
|
|
1904
|
+
destinationAddress: "destination_address",
|
|
1905
|
+
}),
|
|
1807
1906
|
),
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
type: "
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1907
|
+
Schema.Struct({
|
|
1908
|
+
name: Schema.String,
|
|
1909
|
+
service: Schema.String,
|
|
1910
|
+
type: Schema.Literal("service"),
|
|
1911
|
+
environment: Schema.optional(
|
|
1912
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1913
|
+
),
|
|
1815
1914
|
}),
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
Schema.
|
|
1915
|
+
Schema.Struct({
|
|
1916
|
+
name: Schema.String,
|
|
1917
|
+
part: Schema.String,
|
|
1918
|
+
type: Schema.Literal("text_blob"),
|
|
1919
|
+
}),
|
|
1920
|
+
Schema.Struct({
|
|
1921
|
+
indexName: Schema.String,
|
|
1922
|
+
name: Schema.String,
|
|
1923
|
+
type: Schema.Literal("vectorize"),
|
|
1924
|
+
}).pipe(
|
|
1925
|
+
Schema.encodeKeys({
|
|
1926
|
+
indexName: "index_name",
|
|
1927
|
+
name: "name",
|
|
1928
|
+
type: "type",
|
|
1929
|
+
}),
|
|
1823
1930
|
),
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
part: Schema.String,
|
|
1828
|
-
type: Schema.Literal("text_blob"),
|
|
1829
|
-
}),
|
|
1830
|
-
Schema.Struct({
|
|
1831
|
-
indexName: Schema.String,
|
|
1832
|
-
name: Schema.String,
|
|
1833
|
-
type: Schema.Literal("vectorize"),
|
|
1834
|
-
}).pipe(
|
|
1835
|
-
Schema.encodeKeys({
|
|
1836
|
-
indexName: "index_name",
|
|
1837
|
-
name: "name",
|
|
1838
|
-
type: "type",
|
|
1931
|
+
Schema.Struct({
|
|
1932
|
+
name: Schema.String,
|
|
1933
|
+
type: Schema.Literal("version_metadata"),
|
|
1839
1934
|
}),
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1935
|
+
Schema.Struct({
|
|
1936
|
+
name: Schema.String,
|
|
1937
|
+
secretName: Schema.String,
|
|
1938
|
+
storeId: Schema.String,
|
|
1939
|
+
type: Schema.Literal("secrets_store_secret"),
|
|
1940
|
+
}).pipe(
|
|
1941
|
+
Schema.encodeKeys({
|
|
1942
|
+
name: "name",
|
|
1943
|
+
secretName: "secret_name",
|
|
1944
|
+
storeId: "store_id",
|
|
1945
|
+
type: "type",
|
|
1946
|
+
}),
|
|
1947
|
+
),
|
|
1948
|
+
Schema.Struct({
|
|
1949
|
+
algorithm: Schema.Unknown,
|
|
1950
|
+
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
1951
|
+
name: Schema.String,
|
|
1952
|
+
type: Schema.Literal("secret_key"),
|
|
1953
|
+
usages: Schema.Array(
|
|
1954
|
+
Schema.Literals([
|
|
1955
|
+
"encrypt",
|
|
1956
|
+
"decrypt",
|
|
1957
|
+
"sign",
|
|
1958
|
+
"verify",
|
|
1959
|
+
"deriveKey",
|
|
1960
|
+
"deriveBits",
|
|
1961
|
+
"wrapKey",
|
|
1962
|
+
"unwrapKey",
|
|
1963
|
+
]),
|
|
1964
|
+
),
|
|
1856
1965
|
}),
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
Schema.
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
"
|
|
1870
|
-
"
|
|
1871
|
-
"
|
|
1872
|
-
"
|
|
1873
|
-
|
|
1966
|
+
Schema.Struct({
|
|
1967
|
+
name: Schema.String,
|
|
1968
|
+
type: Schema.Literal("workflow"),
|
|
1969
|
+
workflowName: Schema.String,
|
|
1970
|
+
className: Schema.optional(
|
|
1971
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1972
|
+
),
|
|
1973
|
+
scriptName: Schema.optional(
|
|
1974
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1975
|
+
),
|
|
1976
|
+
}).pipe(
|
|
1977
|
+
Schema.encodeKeys({
|
|
1978
|
+
name: "name",
|
|
1979
|
+
type: "type",
|
|
1980
|
+
workflowName: "workflow_name",
|
|
1981
|
+
className: "class_name",
|
|
1982
|
+
scriptName: "script_name",
|
|
1983
|
+
}),
|
|
1874
1984
|
),
|
|
1875
|
-
|
|
1985
|
+
Schema.Struct({
|
|
1986
|
+
name: Schema.String,
|
|
1987
|
+
part: Schema.String,
|
|
1988
|
+
type: Schema.Literal("wasm_module"),
|
|
1989
|
+
}),
|
|
1990
|
+
]),
|
|
1991
|
+
),
|
|
1992
|
+
Schema.Null,
|
|
1993
|
+
]),
|
|
1994
|
+
),
|
|
1995
|
+
compatibilityDate: Schema.optional(
|
|
1996
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1997
|
+
),
|
|
1998
|
+
compatibilityFlags: Schema.optional(
|
|
1999
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
2000
|
+
),
|
|
2001
|
+
limits: Schema.optional(
|
|
2002
|
+
Schema.Union([
|
|
2003
|
+
Schema.Struct({
|
|
2004
|
+
cpuMs: Schema.Number,
|
|
2005
|
+
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
2006
|
+
Schema.Null,
|
|
2007
|
+
]),
|
|
2008
|
+
),
|
|
2009
|
+
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2010
|
+
migrations: Schema.optional(
|
|
2011
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
2012
|
+
),
|
|
2013
|
+
modules: Schema.optional(
|
|
2014
|
+
Schema.Union([
|
|
2015
|
+
Schema.Array(
|
|
1876
2016
|
Schema.Struct({
|
|
2017
|
+
contentBase64: Schema.String,
|
|
2018
|
+
contentType: Schema.String,
|
|
1877
2019
|
name: Schema.String,
|
|
1878
|
-
type: Schema.Literal("workflow"),
|
|
1879
|
-
workflowName: Schema.String,
|
|
1880
|
-
className: Schema.optional(
|
|
1881
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1882
|
-
),
|
|
1883
|
-
scriptName: Schema.optional(
|
|
1884
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1885
|
-
),
|
|
1886
2020
|
}).pipe(
|
|
1887
2021
|
Schema.encodeKeys({
|
|
2022
|
+
contentBase64: "content_base64",
|
|
2023
|
+
contentType: "content_type",
|
|
1888
2024
|
name: "name",
|
|
1889
|
-
type: "type",
|
|
1890
|
-
workflowName: "workflow_name",
|
|
1891
|
-
className: "class_name",
|
|
1892
|
-
scriptName: "script_name",
|
|
1893
2025
|
}),
|
|
1894
2026
|
),
|
|
1895
|
-
Schema.Struct({
|
|
1896
|
-
name: Schema.String,
|
|
1897
|
-
part: Schema.String,
|
|
1898
|
-
type: Schema.Literal("wasm_module"),
|
|
1899
|
-
}),
|
|
1900
|
-
]),
|
|
1901
|
-
),
|
|
1902
|
-
Schema.Null,
|
|
1903
|
-
]),
|
|
1904
|
-
),
|
|
1905
|
-
compatibilityDate: Schema.optional(
|
|
1906
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
1907
|
-
),
|
|
1908
|
-
compatibilityFlags: Schema.optional(
|
|
1909
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1910
|
-
),
|
|
1911
|
-
limits: Schema.optional(
|
|
1912
|
-
Schema.Union([
|
|
1913
|
-
Schema.Struct({
|
|
1914
|
-
cpuMs: Schema.Number,
|
|
1915
|
-
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
1916
|
-
Schema.Null,
|
|
1917
|
-
]),
|
|
1918
|
-
),
|
|
1919
|
-
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1920
|
-
migrations: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
1921
|
-
modules: Schema.optional(
|
|
1922
|
-
Schema.Union([
|
|
1923
|
-
Schema.Array(
|
|
1924
|
-
Schema.Struct({
|
|
1925
|
-
contentBase64: Schema.String,
|
|
1926
|
-
contentType: Schema.String,
|
|
1927
|
-
name: Schema.String,
|
|
1928
|
-
}).pipe(
|
|
1929
|
-
Schema.encodeKeys({
|
|
1930
|
-
contentBase64: "content_base64",
|
|
1931
|
-
contentType: "content_type",
|
|
1932
|
-
name: "name",
|
|
1933
|
-
}),
|
|
1934
|
-
),
|
|
1935
|
-
),
|
|
1936
|
-
Schema.Null,
|
|
1937
|
-
]),
|
|
1938
|
-
),
|
|
1939
|
-
placement: Schema.optional(
|
|
1940
|
-
Schema.Union([
|
|
1941
|
-
Schema.Struct({
|
|
1942
|
-
mode: Schema.optional(
|
|
1943
|
-
Schema.Union([Schema.Literal("smart"), Schema.Null]),
|
|
1944
2027
|
),
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
2028
|
+
Schema.Null,
|
|
2029
|
+
]),
|
|
2030
|
+
),
|
|
2031
|
+
placement: Schema.optional(
|
|
2032
|
+
Schema.Union([
|
|
2033
|
+
Schema.Struct({
|
|
2034
|
+
mode: Schema.optional(
|
|
2035
|
+
Schema.Union([Schema.Literal("smart"), Schema.Null]),
|
|
2036
|
+
),
|
|
2037
|
+
}),
|
|
2038
|
+
Schema.Null,
|
|
2039
|
+
]),
|
|
2040
|
+
),
|
|
2041
|
+
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2042
|
+
startupTimeMs: Schema.optional(
|
|
2043
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
2044
|
+
),
|
|
2045
|
+
usageModel: Schema.optional(
|
|
2046
|
+
Schema.Union([
|
|
2047
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
2048
|
+
Schema.Null,
|
|
2049
|
+
]),
|
|
2050
|
+
),
|
|
2051
|
+
}).pipe(
|
|
2052
|
+
Schema.encodeKeys({
|
|
2053
|
+
id: "id",
|
|
2054
|
+
createdOn: "created_on",
|
|
2055
|
+
number: "number",
|
|
2056
|
+
annotations: "annotations",
|
|
2057
|
+
assets: "assets",
|
|
2058
|
+
bindings: "bindings",
|
|
2059
|
+
compatibilityDate: "compatibility_date",
|
|
2060
|
+
compatibilityFlags: "compatibility_flags",
|
|
2061
|
+
limits: "limits",
|
|
2062
|
+
mainModule: "main_module",
|
|
2063
|
+
migrations: "migrations",
|
|
2064
|
+
modules: "modules",
|
|
2065
|
+
placement: "placement",
|
|
2066
|
+
source: "source",
|
|
2067
|
+
startupTimeMs: "startup_time_ms",
|
|
2068
|
+
usageModel: "usage_model",
|
|
2069
|
+
}),
|
|
1958
2070
|
),
|
|
2071
|
+
),
|
|
2072
|
+
resultInfo: Schema.Struct({
|
|
2073
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2074
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2075
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2076
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
1959
2077
|
}).pipe(
|
|
1960
2078
|
Schema.encodeKeys({
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
assets: "assets",
|
|
1966
|
-
bindings: "bindings",
|
|
1967
|
-
compatibilityDate: "compatibility_date",
|
|
1968
|
-
compatibilityFlags: "compatibility_flags",
|
|
1969
|
-
limits: "limits",
|
|
1970
|
-
mainModule: "main_module",
|
|
1971
|
-
migrations: "migrations",
|
|
1972
|
-
modules: "modules",
|
|
1973
|
-
placement: "placement",
|
|
1974
|
-
source: "source",
|
|
1975
|
-
startupTimeMs: "startup_time_ms",
|
|
1976
|
-
usageModel: "usage_model",
|
|
2079
|
+
count: "count",
|
|
2080
|
+
page: "page",
|
|
2081
|
+
perPage: "per_page",
|
|
2082
|
+
totalCount: "total_count",
|
|
1977
2083
|
}),
|
|
1978
2084
|
),
|
|
2085
|
+
}).pipe(
|
|
2086
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
1979
2087
|
) as unknown as Schema.Schema<ListBetaWorkerVersionsResponse>;
|
|
1980
2088
|
|
|
1981
2089
|
export type ListBetaWorkerVersionsError = DefaultErrors | WorkerNotFound;
|
|
1982
2090
|
|
|
1983
|
-
export const listBetaWorkerVersions: API.
|
|
2091
|
+
export const listBetaWorkerVersions: API.PaginatedOperationMethod<
|
|
1984
2092
|
ListBetaWorkerVersionsRequest,
|
|
1985
2093
|
ListBetaWorkerVersionsResponse,
|
|
1986
2094
|
ListBetaWorkerVersionsError,
|
|
1987
2095
|
Credentials | HttpClient.HttpClient
|
|
1988
|
-
>
|
|
2096
|
+
> & {
|
|
2097
|
+
pages: (
|
|
2098
|
+
input: ListBetaWorkerVersionsRequest,
|
|
2099
|
+
) => stream.Stream<
|
|
2100
|
+
ListBetaWorkerVersionsResponse,
|
|
2101
|
+
ListBetaWorkerVersionsError,
|
|
2102
|
+
Credentials | HttpClient.HttpClient
|
|
2103
|
+
>;
|
|
2104
|
+
items: (input: ListBetaWorkerVersionsRequest) => stream.Stream<
|
|
2105
|
+
{
|
|
2106
|
+
id: string;
|
|
2107
|
+
createdOn: string;
|
|
2108
|
+
number: number;
|
|
2109
|
+
annotations?: {
|
|
2110
|
+
workersMessage?: string | null;
|
|
2111
|
+
workersTag?: string | null;
|
|
2112
|
+
workersTriggeredBy?: string | null;
|
|
2113
|
+
} | null;
|
|
2114
|
+
assets?: {
|
|
2115
|
+
config?: {
|
|
2116
|
+
htmlHandling?:
|
|
2117
|
+
| "auto-trailing-slash"
|
|
2118
|
+
| "force-trailing-slash"
|
|
2119
|
+
| "drop-trailing-slash"
|
|
2120
|
+
| "none"
|
|
2121
|
+
| null;
|
|
2122
|
+
notFoundHandling?:
|
|
2123
|
+
| "none"
|
|
2124
|
+
| "404-page"
|
|
2125
|
+
| "single-page-application"
|
|
2126
|
+
| null;
|
|
2127
|
+
runWorkerFirst?: string[] | boolean | null;
|
|
2128
|
+
} | null;
|
|
2129
|
+
jwt?: string | null;
|
|
2130
|
+
} | null;
|
|
2131
|
+
bindings?:
|
|
2132
|
+
| (
|
|
2133
|
+
| { name: string; type: "ai" }
|
|
2134
|
+
| { dataset: string; name: string; type: "analytics_engine" }
|
|
2135
|
+
| { name: string; type: "assets" }
|
|
2136
|
+
| { name: string; type: "browser" }
|
|
2137
|
+
| { id: string; name: string; type: "d1" }
|
|
2138
|
+
| { name: string; part: string; type: "data_blob" }
|
|
2139
|
+
| {
|
|
2140
|
+
name: string;
|
|
2141
|
+
namespace: string;
|
|
2142
|
+
type: "dispatch_namespace";
|
|
2143
|
+
outbound?: {
|
|
2144
|
+
params?: string[] | null;
|
|
2145
|
+
worker?: {
|
|
2146
|
+
environment?: string | null;
|
|
2147
|
+
service?: string | null;
|
|
2148
|
+
} | null;
|
|
2149
|
+
} | null;
|
|
2150
|
+
}
|
|
2151
|
+
| {
|
|
2152
|
+
name: string;
|
|
2153
|
+
type: "durable_object_namespace";
|
|
2154
|
+
className?: string | null;
|
|
2155
|
+
environment?: string | null;
|
|
2156
|
+
namespaceId?: string | null;
|
|
2157
|
+
scriptName?: string | null;
|
|
2158
|
+
}
|
|
2159
|
+
| { id: string; name: string; type: "hyperdrive" }
|
|
2160
|
+
| {
|
|
2161
|
+
name: string;
|
|
2162
|
+
type: "inherit";
|
|
2163
|
+
oldName?: string | null;
|
|
2164
|
+
versionId?: string | null;
|
|
2165
|
+
}
|
|
2166
|
+
| { name: string; type: "images" }
|
|
2167
|
+
| { json: string; name: string; type: "json" }
|
|
2168
|
+
| { name: string; namespaceId: string; type: "kv_namespace" }
|
|
2169
|
+
| { certificateId: string; name: string; type: "mtls_certificate" }
|
|
2170
|
+
| { name: string; text: string; type: "plain_text" }
|
|
2171
|
+
| { name: string; pipeline: string; type: "pipelines" }
|
|
2172
|
+
| { name: string; queueName: string; type: "queue" }
|
|
2173
|
+
| {
|
|
2174
|
+
bucketName: string;
|
|
2175
|
+
name: string;
|
|
2176
|
+
type: "r2_bucket";
|
|
2177
|
+
jurisdiction?: "eu" | "fedramp" | null;
|
|
2178
|
+
}
|
|
2179
|
+
| { name: string; type: "secret_text" }
|
|
2180
|
+
| {
|
|
2181
|
+
name: string;
|
|
2182
|
+
type: "send_email";
|
|
2183
|
+
allowedDestinationAddresses?: string[] | null;
|
|
2184
|
+
allowedSenderAddresses?: string[] | null;
|
|
2185
|
+
destinationAddress?: string | null;
|
|
2186
|
+
}
|
|
2187
|
+
| {
|
|
2188
|
+
name: string;
|
|
2189
|
+
service: string;
|
|
2190
|
+
type: "service";
|
|
2191
|
+
environment?: string | null;
|
|
2192
|
+
}
|
|
2193
|
+
| { name: string; part: string; type: "text_blob" }
|
|
2194
|
+
| { indexName: string; name: string; type: "vectorize" }
|
|
2195
|
+
| { name: string; type: "version_metadata" }
|
|
2196
|
+
| {
|
|
2197
|
+
name: string;
|
|
2198
|
+
secretName: string;
|
|
2199
|
+
storeId: string;
|
|
2200
|
+
type: "secrets_store_secret";
|
|
2201
|
+
}
|
|
2202
|
+
| {
|
|
2203
|
+
algorithm: unknown;
|
|
2204
|
+
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
2205
|
+
name: string;
|
|
2206
|
+
type: "secret_key";
|
|
2207
|
+
usages: (
|
|
2208
|
+
| "encrypt"
|
|
2209
|
+
| "decrypt"
|
|
2210
|
+
| "sign"
|
|
2211
|
+
| "verify"
|
|
2212
|
+
| "deriveKey"
|
|
2213
|
+
| "deriveBits"
|
|
2214
|
+
| "wrapKey"
|
|
2215
|
+
| "unwrapKey"
|
|
2216
|
+
)[];
|
|
2217
|
+
}
|
|
2218
|
+
| {
|
|
2219
|
+
name: string;
|
|
2220
|
+
type: "workflow";
|
|
2221
|
+
workflowName: string;
|
|
2222
|
+
className?: string | null;
|
|
2223
|
+
scriptName?: string | null;
|
|
2224
|
+
}
|
|
2225
|
+
| { name: string; part: string; type: "wasm_module" }
|
|
2226
|
+
)[]
|
|
2227
|
+
| null;
|
|
2228
|
+
compatibilityDate?: string | null;
|
|
2229
|
+
compatibilityFlags?: string[] | null;
|
|
2230
|
+
limits?: { cpuMs: number } | null;
|
|
2231
|
+
mainModule?: string | null;
|
|
2232
|
+
migrations?: unknown | null;
|
|
2233
|
+
modules?:
|
|
2234
|
+
| { contentBase64: string; contentType: string; name: string }[]
|
|
2235
|
+
| null;
|
|
2236
|
+
placement?: { mode?: "smart" | null } | null;
|
|
2237
|
+
source?: string | null;
|
|
2238
|
+
startupTimeMs?: number | null;
|
|
2239
|
+
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
2240
|
+
},
|
|
2241
|
+
ListBetaWorkerVersionsError,
|
|
2242
|
+
Credentials | HttpClient.HttpClient
|
|
2243
|
+
>;
|
|
2244
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
1989
2245
|
input: ListBetaWorkerVersionsRequest,
|
|
1990
2246
|
output: ListBetaWorkerVersionsResponse,
|
|
1991
2247
|
errors: [WorkerNotFound],
|
|
2248
|
+
pagination: {
|
|
2249
|
+
mode: "page",
|
|
2250
|
+
inputToken: "page",
|
|
2251
|
+
outputToken: "resultInfo.page",
|
|
2252
|
+
items: "result",
|
|
2253
|
+
pageSize: "perPage",
|
|
2254
|
+
} as const,
|
|
1992
2255
|
}));
|
|
1993
2256
|
|
|
1994
2257
|
export interface CreateBetaWorkerVersionRequest {
|
|
@@ -3053,26 +3316,30 @@ export const CreateBetaWorkerVersionResponse =
|
|
|
3053
3316
|
Schema.Null,
|
|
3054
3317
|
]),
|
|
3055
3318
|
),
|
|
3056
|
-
})
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3319
|
+
})
|
|
3320
|
+
.pipe(
|
|
3321
|
+
Schema.encodeKeys({
|
|
3322
|
+
id: "id",
|
|
3323
|
+
createdOn: "created_on",
|
|
3324
|
+
number: "number",
|
|
3325
|
+
annotations: "annotations",
|
|
3326
|
+
assets: "assets",
|
|
3327
|
+
bindings: "bindings",
|
|
3328
|
+
compatibilityDate: "compatibility_date",
|
|
3329
|
+
compatibilityFlags: "compatibility_flags",
|
|
3330
|
+
limits: "limits",
|
|
3331
|
+
mainModule: "main_module",
|
|
3332
|
+
migrations: "migrations",
|
|
3333
|
+
modules: "modules",
|
|
3334
|
+
placement: "placement",
|
|
3335
|
+
source: "source",
|
|
3336
|
+
startupTimeMs: "startup_time_ms",
|
|
3337
|
+
usageModel: "usage_model",
|
|
3338
|
+
}),
|
|
3339
|
+
)
|
|
3340
|
+
.pipe(
|
|
3341
|
+
T.ResponsePath("result"),
|
|
3342
|
+
) as unknown as Schema.Schema<CreateBetaWorkerVersionResponse>;
|
|
3076
3343
|
|
|
3077
3344
|
export type CreateBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
|
|
3078
3345
|
|
|
@@ -3235,16 +3502,20 @@ export const GetDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3235
3502
|
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3236
3503
|
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3237
3504
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3238
|
-
})
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
)
|
|
3505
|
+
})
|
|
3506
|
+
.pipe(
|
|
3507
|
+
Schema.encodeKeys({
|
|
3508
|
+
id: "id",
|
|
3509
|
+
environment: "environment",
|
|
3510
|
+
hostname: "hostname",
|
|
3511
|
+
service: "service",
|
|
3512
|
+
zoneId: "zone_id",
|
|
3513
|
+
zoneName: "zone_name",
|
|
3514
|
+
}),
|
|
3515
|
+
)
|
|
3516
|
+
.pipe(
|
|
3517
|
+
T.ResponsePath("result"),
|
|
3518
|
+
) as unknown as Schema.Schema<GetDomainResponse>;
|
|
3248
3519
|
|
|
3249
3520
|
export type GetDomainError = DefaultErrors | DomainNotFound | InvalidRoute;
|
|
3250
3521
|
|
|
@@ -3285,46 +3556,74 @@ export const ListDomainsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3285
3556
|
T.Http({ method: "GET", path: "/accounts/{account_id}/workers/domains" }),
|
|
3286
3557
|
) as unknown as Schema.Schema<ListDomainsRequest>;
|
|
3287
3558
|
|
|
3288
|
-
export
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3559
|
+
export interface ListDomainsResponse {
|
|
3560
|
+
result: {
|
|
3561
|
+
id?: string | null;
|
|
3562
|
+
environment?: string | null;
|
|
3563
|
+
hostname?: string | null;
|
|
3564
|
+
service?: string | null;
|
|
3565
|
+
zoneId?: string | null;
|
|
3566
|
+
zoneName?: string | null;
|
|
3567
|
+
}[];
|
|
3568
|
+
}
|
|
3296
3569
|
|
|
3297
|
-
export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
3298
|
-
Schema.
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3570
|
+
export const ListDomainsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3571
|
+
result: Schema.Array(
|
|
3572
|
+
Schema.Struct({
|
|
3573
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3574
|
+
environment: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3575
|
+
hostname: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3576
|
+
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3577
|
+
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3578
|
+
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3579
|
+
}).pipe(
|
|
3580
|
+
Schema.encodeKeys({
|
|
3581
|
+
id: "id",
|
|
3582
|
+
environment: "environment",
|
|
3583
|
+
hostname: "hostname",
|
|
3584
|
+
service: "service",
|
|
3585
|
+
zoneId: "zone_id",
|
|
3586
|
+
zoneName: "zone_name",
|
|
3587
|
+
}),
|
|
3588
|
+
),
|
|
3314
3589
|
),
|
|
3315
|
-
) as unknown as Schema.Schema<ListDomainsResponse>;
|
|
3590
|
+
}) as unknown as Schema.Schema<ListDomainsResponse>;
|
|
3316
3591
|
|
|
3317
3592
|
export type ListDomainsError = DefaultErrors | InvalidRoute;
|
|
3318
3593
|
|
|
3319
|
-
export const listDomains: API.
|
|
3594
|
+
export const listDomains: API.PaginatedOperationMethod<
|
|
3320
3595
|
ListDomainsRequest,
|
|
3321
3596
|
ListDomainsResponse,
|
|
3322
3597
|
ListDomainsError,
|
|
3323
3598
|
Credentials | HttpClient.HttpClient
|
|
3324
|
-
>
|
|
3599
|
+
> & {
|
|
3600
|
+
pages: (
|
|
3601
|
+
input: ListDomainsRequest,
|
|
3602
|
+
) => stream.Stream<
|
|
3603
|
+
ListDomainsResponse,
|
|
3604
|
+
ListDomainsError,
|
|
3605
|
+
Credentials | HttpClient.HttpClient
|
|
3606
|
+
>;
|
|
3607
|
+
items: (input: ListDomainsRequest) => stream.Stream<
|
|
3608
|
+
{
|
|
3609
|
+
id?: string | null;
|
|
3610
|
+
environment?: string | null;
|
|
3611
|
+
hostname?: string | null;
|
|
3612
|
+
service?: string | null;
|
|
3613
|
+
zoneId?: string | null;
|
|
3614
|
+
zoneName?: string | null;
|
|
3615
|
+
},
|
|
3616
|
+
ListDomainsError,
|
|
3617
|
+
Credentials | HttpClient.HttpClient
|
|
3618
|
+
>;
|
|
3619
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
3325
3620
|
input: ListDomainsRequest,
|
|
3326
3621
|
output: ListDomainsResponse,
|
|
3327
3622
|
errors: [InvalidRoute],
|
|
3623
|
+
pagination: {
|
|
3624
|
+
mode: "single",
|
|
3625
|
+
items: "result",
|
|
3626
|
+
} as const,
|
|
3328
3627
|
}));
|
|
3329
3628
|
|
|
3330
3629
|
export interface PutDomainRequest {
|
|
@@ -3378,16 +3677,20 @@ export const PutDomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3378
3677
|
service: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3379
3678
|
zoneId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3380
3679
|
zoneName: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3381
|
-
})
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
)
|
|
3680
|
+
})
|
|
3681
|
+
.pipe(
|
|
3682
|
+
Schema.encodeKeys({
|
|
3683
|
+
id: "id",
|
|
3684
|
+
environment: "environment",
|
|
3685
|
+
hostname: "hostname",
|
|
3686
|
+
service: "service",
|
|
3687
|
+
zoneId: "zone_id",
|
|
3688
|
+
zoneName: "zone_name",
|
|
3689
|
+
}),
|
|
3690
|
+
)
|
|
3691
|
+
.pipe(
|
|
3692
|
+
T.ResponsePath("result"),
|
|
3693
|
+
) as unknown as Schema.Schema<PutDomainResponse>;
|
|
3391
3694
|
|
|
3392
3695
|
export type PutDomainError = DefaultErrors | WorkerNotFound | InvalidRoute;
|
|
3393
3696
|
|
|
@@ -3569,32 +3872,55 @@ export const KeysObservabilityTelemetryRequest =
|
|
|
3569
3872
|
}),
|
|
3570
3873
|
) as unknown as Schema.Schema<KeysObservabilityTelemetryRequest>;
|
|
3571
3874
|
|
|
3572
|
-
export
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3875
|
+
export interface KeysObservabilityTelemetryResponse {
|
|
3876
|
+
result: {
|
|
3877
|
+
key: string;
|
|
3878
|
+
lastSeenAt: number;
|
|
3879
|
+
type: "string" | "boolean" | "number";
|
|
3880
|
+
}[];
|
|
3881
|
+
}
|
|
3577
3882
|
|
|
3578
3883
|
export const KeysObservabilityTelemetryResponse =
|
|
3579
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
3580
|
-
Schema.
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3884
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3885
|
+
result: Schema.Array(
|
|
3886
|
+
Schema.Struct({
|
|
3887
|
+
key: Schema.String,
|
|
3888
|
+
lastSeenAt: Schema.Number,
|
|
3889
|
+
type: Schema.Literals(["string", "boolean", "number"]),
|
|
3890
|
+
}),
|
|
3891
|
+
),
|
|
3892
|
+
}) as unknown as Schema.Schema<KeysObservabilityTelemetryResponse>;
|
|
3586
3893
|
|
|
3587
3894
|
export type KeysObservabilityTelemetryError = DefaultErrors | InvalidRoute;
|
|
3588
3895
|
|
|
3589
|
-
export const keysObservabilityTelemetry: API.
|
|
3896
|
+
export const keysObservabilityTelemetry: API.PaginatedOperationMethod<
|
|
3590
3897
|
KeysObservabilityTelemetryRequest,
|
|
3591
3898
|
KeysObservabilityTelemetryResponse,
|
|
3592
3899
|
KeysObservabilityTelemetryError,
|
|
3593
3900
|
Credentials | HttpClient.HttpClient
|
|
3594
|
-
>
|
|
3901
|
+
> & {
|
|
3902
|
+
pages: (
|
|
3903
|
+
input: KeysObservabilityTelemetryRequest,
|
|
3904
|
+
) => stream.Stream<
|
|
3905
|
+
KeysObservabilityTelemetryResponse,
|
|
3906
|
+
KeysObservabilityTelemetryError,
|
|
3907
|
+
Credentials | HttpClient.HttpClient
|
|
3908
|
+
>;
|
|
3909
|
+
items: (
|
|
3910
|
+
input: KeysObservabilityTelemetryRequest,
|
|
3911
|
+
) => stream.Stream<
|
|
3912
|
+
{ key: string; lastSeenAt: number; type: "string" | "boolean" | "number" },
|
|
3913
|
+
KeysObservabilityTelemetryError,
|
|
3914
|
+
Credentials | HttpClient.HttpClient
|
|
3915
|
+
>;
|
|
3916
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
3595
3917
|
input: KeysObservabilityTelemetryRequest,
|
|
3596
3918
|
output: KeysObservabilityTelemetryResponse,
|
|
3597
3919
|
errors: [InvalidRoute],
|
|
3920
|
+
pagination: {
|
|
3921
|
+
mode: "single",
|
|
3922
|
+
items: "result",
|
|
3923
|
+
} as const,
|
|
3598
3924
|
}));
|
|
3599
3925
|
|
|
3600
3926
|
export interface QueryObservabilityTelemetryRequest {
|
|
@@ -4961,7 +5287,9 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
4961
5287
|
Schema.Null,
|
|
4962
5288
|
]),
|
|
4963
5289
|
),
|
|
4964
|
-
})
|
|
5290
|
+
}).pipe(
|
|
5291
|
+
T.ResponsePath("result"),
|
|
5292
|
+
) as unknown as Schema.Schema<QueryObservabilityTelemetryResponse>;
|
|
4965
5293
|
|
|
4966
5294
|
export type QueryObservabilityTelemetryError = DefaultErrors | InvalidRoute;
|
|
4967
5295
|
|
|
@@ -5098,34 +5426,60 @@ export const ValuesObservabilityTelemetryRequest =
|
|
|
5098
5426
|
}),
|
|
5099
5427
|
) as unknown as Schema.Schema<ValuesObservabilityTelemetryRequest>;
|
|
5100
5428
|
|
|
5101
|
-
export
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5429
|
+
export interface ValuesObservabilityTelemetryResponse {
|
|
5430
|
+
result: {
|
|
5431
|
+
dataset: string;
|
|
5432
|
+
key: string;
|
|
5433
|
+
type: "string" | "boolean" | "number";
|
|
5434
|
+
value: string | number | boolean;
|
|
5435
|
+
}[];
|
|
5436
|
+
}
|
|
5107
5437
|
|
|
5108
5438
|
export const ValuesObservabilityTelemetryResponse =
|
|
5109
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
5110
|
-
Schema.
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5439
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5440
|
+
result: Schema.Array(
|
|
5441
|
+
Schema.Struct({
|
|
5442
|
+
dataset: Schema.String,
|
|
5443
|
+
key: Schema.String,
|
|
5444
|
+
type: Schema.Literals(["string", "boolean", "number"]),
|
|
5445
|
+
value: Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
|
|
5446
|
+
}),
|
|
5447
|
+
),
|
|
5448
|
+
}) as unknown as Schema.Schema<ValuesObservabilityTelemetryResponse>;
|
|
5117
5449
|
|
|
5118
5450
|
export type ValuesObservabilityTelemetryError = DefaultErrors | InvalidRoute;
|
|
5119
5451
|
|
|
5120
|
-
export const valuesObservabilityTelemetry: API.
|
|
5452
|
+
export const valuesObservabilityTelemetry: API.PaginatedOperationMethod<
|
|
5121
5453
|
ValuesObservabilityTelemetryRequest,
|
|
5122
5454
|
ValuesObservabilityTelemetryResponse,
|
|
5123
5455
|
ValuesObservabilityTelemetryError,
|
|
5124
5456
|
Credentials | HttpClient.HttpClient
|
|
5125
|
-
>
|
|
5457
|
+
> & {
|
|
5458
|
+
pages: (
|
|
5459
|
+
input: ValuesObservabilityTelemetryRequest,
|
|
5460
|
+
) => stream.Stream<
|
|
5461
|
+
ValuesObservabilityTelemetryResponse,
|
|
5462
|
+
ValuesObservabilityTelemetryError,
|
|
5463
|
+
Credentials | HttpClient.HttpClient
|
|
5464
|
+
>;
|
|
5465
|
+
items: (input: ValuesObservabilityTelemetryRequest) => stream.Stream<
|
|
5466
|
+
{
|
|
5467
|
+
dataset: string;
|
|
5468
|
+
key: string;
|
|
5469
|
+
type: "string" | "boolean" | "number";
|
|
5470
|
+
value: string | number | boolean;
|
|
5471
|
+
},
|
|
5472
|
+
ValuesObservabilityTelemetryError,
|
|
5473
|
+
Credentials | HttpClient.HttpClient
|
|
5474
|
+
>;
|
|
5475
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
5126
5476
|
input: ValuesObservabilityTelemetryRequest,
|
|
5127
5477
|
output: ValuesObservabilityTelemetryResponse,
|
|
5128
5478
|
errors: [InvalidRoute],
|
|
5479
|
+
pagination: {
|
|
5480
|
+
mode: "single",
|
|
5481
|
+
items: "result",
|
|
5482
|
+
} as const,
|
|
5129
5483
|
}));
|
|
5130
5484
|
|
|
5131
5485
|
// =============================================================================
|
|
@@ -5158,7 +5512,7 @@ export const GetRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5158
5512
|
id: Schema.String,
|
|
5159
5513
|
pattern: Schema.String,
|
|
5160
5514
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5161
|
-
}) as unknown as Schema.Schema<GetRouteResponse>;
|
|
5515
|
+
}).pipe(T.ResponsePath("result")) as unknown as Schema.Schema<GetRouteResponse>;
|
|
5162
5516
|
|
|
5163
5517
|
export type GetRouteError = DefaultErrors | WorkerNotFound | InvalidRoute;
|
|
5164
5518
|
|
|
@@ -5184,31 +5538,50 @@ export const ListRoutesRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5184
5538
|
T.Http({ method: "GET", path: "/zones/{zone_id}/workers/routes" }),
|
|
5185
5539
|
) as unknown as Schema.Schema<ListRoutesRequest>;
|
|
5186
5540
|
|
|
5187
|
-
export
|
|
5188
|
-
id: string;
|
|
5189
|
-
|
|
5190
|
-
script?: string | null;
|
|
5191
|
-
}[];
|
|
5541
|
+
export interface ListRoutesResponse {
|
|
5542
|
+
result: { id: string; pattern: string; script?: string | null }[];
|
|
5543
|
+
}
|
|
5192
5544
|
|
|
5193
|
-
export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
5194
|
-
Schema.
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
)
|
|
5545
|
+
export const ListRoutesResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5546
|
+
result: Schema.Array(
|
|
5547
|
+
Schema.Struct({
|
|
5548
|
+
id: Schema.String,
|
|
5549
|
+
pattern: Schema.String,
|
|
5550
|
+
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5551
|
+
}),
|
|
5552
|
+
),
|
|
5553
|
+
}) as unknown as Schema.Schema<ListRoutesResponse>;
|
|
5200
5554
|
|
|
5201
5555
|
export type ListRoutesError = DefaultErrors | InvalidRoute;
|
|
5202
5556
|
|
|
5203
|
-
export const listRoutes: API.
|
|
5557
|
+
export const listRoutes: API.PaginatedOperationMethod<
|
|
5204
5558
|
ListRoutesRequest,
|
|
5205
5559
|
ListRoutesResponse,
|
|
5206
5560
|
ListRoutesError,
|
|
5207
5561
|
Credentials | HttpClient.HttpClient
|
|
5208
|
-
>
|
|
5562
|
+
> & {
|
|
5563
|
+
pages: (
|
|
5564
|
+
input: ListRoutesRequest,
|
|
5565
|
+
) => stream.Stream<
|
|
5566
|
+
ListRoutesResponse,
|
|
5567
|
+
ListRoutesError,
|
|
5568
|
+
Credentials | HttpClient.HttpClient
|
|
5569
|
+
>;
|
|
5570
|
+
items: (
|
|
5571
|
+
input: ListRoutesRequest,
|
|
5572
|
+
) => stream.Stream<
|
|
5573
|
+
{ id: string; pattern: string; script?: string | null },
|
|
5574
|
+
ListRoutesError,
|
|
5575
|
+
Credentials | HttpClient.HttpClient
|
|
5576
|
+
>;
|
|
5577
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
5209
5578
|
input: ListRoutesRequest,
|
|
5210
5579
|
output: ListRoutesResponse,
|
|
5211
5580
|
errors: [InvalidRoute],
|
|
5581
|
+
pagination: {
|
|
5582
|
+
mode: "single",
|
|
5583
|
+
items: "result",
|
|
5584
|
+
} as const,
|
|
5212
5585
|
}));
|
|
5213
5586
|
|
|
5214
5587
|
export interface CreateRouteRequest {
|
|
@@ -5241,7 +5614,9 @@ export const CreateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5241
5614
|
id: Schema.String,
|
|
5242
5615
|
pattern: Schema.String,
|
|
5243
5616
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5244
|
-
})
|
|
5617
|
+
}).pipe(
|
|
5618
|
+
T.ResponsePath("result"),
|
|
5619
|
+
) as unknown as Schema.Schema<CreateRouteResponse>;
|
|
5245
5620
|
|
|
5246
5621
|
export type CreateRouteError =
|
|
5247
5622
|
| DefaultErrors
|
|
@@ -5291,7 +5666,9 @@ export const UpdateRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5291
5666
|
id: Schema.String,
|
|
5292
5667
|
pattern: Schema.String,
|
|
5293
5668
|
script: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5294
|
-
})
|
|
5669
|
+
}).pipe(
|
|
5670
|
+
T.ResponsePath("result"),
|
|
5671
|
+
) as unknown as Schema.Schema<UpdateRouteResponse>;
|
|
5295
5672
|
|
|
5296
5673
|
export type UpdateRouteError =
|
|
5297
5674
|
| DefaultErrors
|
|
@@ -5332,7 +5709,9 @@ export interface DeleteRouteResponse {
|
|
|
5332
5709
|
|
|
5333
5710
|
export const DeleteRouteResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5334
5711
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5335
|
-
})
|
|
5712
|
+
}).pipe(
|
|
5713
|
+
T.ResponsePath("result"),
|
|
5714
|
+
) as unknown as Schema.Schema<DeleteRouteResponse>;
|
|
5336
5715
|
|
|
5337
5716
|
export type DeleteRouteError = DefaultErrors | RouteNotFound;
|
|
5338
5717
|
|
|
@@ -5399,332 +5778,433 @@ export const ListScriptsRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5399
5778
|
T.Http({ method: "GET", path: "/accounts/{account_id}/workers/scripts" }),
|
|
5400
5779
|
) as unknown as Schema.Schema<ListScriptsRequest>;
|
|
5401
5780
|
|
|
5402
|
-
export
|
|
5403
|
-
|
|
5404
|
-
|
|
5405
|
-
|
|
5406
|
-
|
|
5407
|
-
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5781
|
+
export interface ListScriptsResponse {
|
|
5782
|
+
result: {
|
|
5783
|
+
id?: string | null;
|
|
5784
|
+
compatibilityDate?: string | null;
|
|
5785
|
+
compatibilityFlags?: string[] | null;
|
|
5786
|
+
createdOn?: string | null;
|
|
5787
|
+
etag?: string | null;
|
|
5788
|
+
handlers?: string[] | null;
|
|
5789
|
+
hasAssets?: boolean | null;
|
|
5790
|
+
hasModules?: boolean | null;
|
|
5791
|
+
lastDeployedFrom?: string | null;
|
|
5792
|
+
logpush?: boolean | null;
|
|
5793
|
+
migrationTag?: string | null;
|
|
5794
|
+
modifiedOn?: string | null;
|
|
5795
|
+
namedHandlers?:
|
|
5796
|
+
| { handlers?: string[] | null; name?: string | null }[]
|
|
5797
|
+
| null;
|
|
5798
|
+
observability?: {
|
|
5420
5799
|
enabled: boolean;
|
|
5421
|
-
invocationLogs: boolean;
|
|
5422
|
-
destinations?: string[] | null;
|
|
5423
5800
|
headSamplingRate?: number | null;
|
|
5424
|
-
|
|
5801
|
+
logs?: {
|
|
5802
|
+
enabled: boolean;
|
|
5803
|
+
invocationLogs: boolean;
|
|
5804
|
+
destinations?: string[] | null;
|
|
5805
|
+
headSamplingRate?: number | null;
|
|
5806
|
+
persist?: boolean | null;
|
|
5807
|
+
} | null;
|
|
5425
5808
|
} | null;
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
|
|
5451
|
-
|
|
5452
|
-
|
|
5453
|
-
|
|
5454
|
-
|
|
5455
|
-
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
5462
|
-
|
|
5463
|
-
|
|
5464
|
-
| null;
|
|
5465
|
-
|
|
5466
|
-
|
|
5467
|
-
|
|
5468
|
-
|
|
5469
|
-
|
|
5470
|
-
| null;
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
}
|
|
5809
|
+
placement?:
|
|
5810
|
+
| {
|
|
5811
|
+
mode: "smart";
|
|
5812
|
+
lastAnalyzedAt?: string | null;
|
|
5813
|
+
status?:
|
|
5814
|
+
| "SUCCESS"
|
|
5815
|
+
| "UNSUPPORTED_APPLICATION"
|
|
5816
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
5817
|
+
| null;
|
|
5818
|
+
}
|
|
5819
|
+
| {
|
|
5820
|
+
region: string;
|
|
5821
|
+
lastAnalyzedAt?: string | null;
|
|
5822
|
+
status?:
|
|
5823
|
+
| "SUCCESS"
|
|
5824
|
+
| "UNSUPPORTED_APPLICATION"
|
|
5825
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
5826
|
+
| null;
|
|
5827
|
+
}
|
|
5828
|
+
| {
|
|
5829
|
+
hostname: string;
|
|
5830
|
+
lastAnalyzedAt?: string | null;
|
|
5831
|
+
status?:
|
|
5832
|
+
| "SUCCESS"
|
|
5833
|
+
| "UNSUPPORTED_APPLICATION"
|
|
5834
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
5835
|
+
| null;
|
|
5836
|
+
}
|
|
5837
|
+
| {
|
|
5838
|
+
host: string;
|
|
5839
|
+
lastAnalyzedAt?: string | null;
|
|
5840
|
+
status?:
|
|
5841
|
+
| "SUCCESS"
|
|
5842
|
+
| "UNSUPPORTED_APPLICATION"
|
|
5843
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
5844
|
+
| null;
|
|
5845
|
+
}
|
|
5846
|
+
| null;
|
|
5847
|
+
placementMode?: "smart" | null;
|
|
5848
|
+
placementStatus?:
|
|
5849
|
+
| "SUCCESS"
|
|
5850
|
+
| "UNSUPPORTED_APPLICATION"
|
|
5851
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
5852
|
+
| null;
|
|
5853
|
+
routes?: { id: string; pattern: string; script?: string | null }[] | null;
|
|
5854
|
+
tag?: string | null;
|
|
5855
|
+
tags?: string[] | null;
|
|
5856
|
+
tailConsumers?: unknown[] | null;
|
|
5857
|
+
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
5858
|
+
}[];
|
|
5859
|
+
}
|
|
5477
5860
|
|
|
5478
|
-
export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
5479
|
-
Schema.
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
Schema.
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
Schema.
|
|
5486
|
-
|
|
5487
|
-
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
Schema.
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
Schema.
|
|
5496
|
-
|
|
5497
|
-
|
|
5498
|
-
|
|
5499
|
-
|
|
5500
|
-
|
|
5501
|
-
Schema.
|
|
5502
|
-
Schema.Array(
|
|
5503
|
-
Schema.Struct({
|
|
5504
|
-
handlers: Schema.optional(
|
|
5505
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
5506
|
-
),
|
|
5507
|
-
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5508
|
-
}),
|
|
5509
|
-
),
|
|
5510
|
-
Schema.Null,
|
|
5511
|
-
]),
|
|
5512
|
-
),
|
|
5513
|
-
observability: Schema.optional(
|
|
5514
|
-
Schema.Union([
|
|
5515
|
-
Schema.Struct({
|
|
5516
|
-
enabled: Schema.Boolean,
|
|
5517
|
-
headSamplingRate: Schema.optional(
|
|
5518
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
5519
|
-
),
|
|
5520
|
-
logs: Schema.optional(
|
|
5521
|
-
Schema.Union([
|
|
5522
|
-
Schema.Struct({
|
|
5523
|
-
enabled: Schema.Boolean,
|
|
5524
|
-
invocationLogs: Schema.Boolean,
|
|
5525
|
-
destinations: Schema.optional(
|
|
5526
|
-
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
5527
|
-
),
|
|
5528
|
-
headSamplingRate: Schema.optional(
|
|
5529
|
-
Schema.Union([Schema.Number, Schema.Null]),
|
|
5530
|
-
),
|
|
5531
|
-
persist: Schema.optional(
|
|
5532
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
5533
|
-
),
|
|
5534
|
-
}).pipe(
|
|
5535
|
-
Schema.encodeKeys({
|
|
5536
|
-
enabled: "enabled",
|
|
5537
|
-
invocationLogs: "invocation_logs",
|
|
5538
|
-
destinations: "destinations",
|
|
5539
|
-
headSamplingRate: "head_sampling_rate",
|
|
5540
|
-
persist: "persist",
|
|
5541
|
-
}),
|
|
5542
|
-
),
|
|
5543
|
-
Schema.Null,
|
|
5544
|
-
]),
|
|
5545
|
-
),
|
|
5546
|
-
}).pipe(
|
|
5547
|
-
Schema.encodeKeys({
|
|
5548
|
-
enabled: "enabled",
|
|
5549
|
-
headSamplingRate: "head_sampling_rate",
|
|
5550
|
-
logs: "logs",
|
|
5551
|
-
}),
|
|
5552
|
-
),
|
|
5553
|
-
Schema.Null,
|
|
5554
|
-
]),
|
|
5555
|
-
),
|
|
5556
|
-
placement: Schema.optional(
|
|
5557
|
-
Schema.Union([
|
|
5861
|
+
export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
5862
|
+
result: Schema.Array(
|
|
5863
|
+
Schema.Struct({
|
|
5864
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5865
|
+
compatibilityDate: Schema.optional(
|
|
5866
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5867
|
+
),
|
|
5868
|
+
compatibilityFlags: Schema.optional(
|
|
5869
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
5870
|
+
),
|
|
5871
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5872
|
+
etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5873
|
+
handlers: Schema.optional(
|
|
5874
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
5875
|
+
),
|
|
5876
|
+
hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5877
|
+
hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5878
|
+
lastDeployedFrom: Schema.optional(
|
|
5879
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5880
|
+
),
|
|
5881
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
5882
|
+
migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5883
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5884
|
+
namedHandlers: Schema.optional(
|
|
5558
5885
|
Schema.Union([
|
|
5559
|
-
Schema.
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
Schema.Union([
|
|
5566
|
-
Schema.Literals([
|
|
5567
|
-
"SUCCESS",
|
|
5568
|
-
"UNSUPPORTED_APPLICATION",
|
|
5569
|
-
"INSUFFICIENT_INVOCATIONS",
|
|
5570
|
-
]),
|
|
5571
|
-
Schema.Null,
|
|
5572
|
-
]),
|
|
5573
|
-
),
|
|
5574
|
-
}).pipe(
|
|
5575
|
-
Schema.encodeKeys({
|
|
5576
|
-
mode: "mode",
|
|
5577
|
-
lastAnalyzedAt: "last_analyzed_at",
|
|
5578
|
-
status: "status",
|
|
5579
|
-
}),
|
|
5580
|
-
),
|
|
5581
|
-
Schema.Struct({
|
|
5582
|
-
region: Schema.String,
|
|
5583
|
-
lastAnalyzedAt: Schema.optional(
|
|
5584
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
5585
|
-
),
|
|
5586
|
-
status: Schema.optional(
|
|
5587
|
-
Schema.Union([
|
|
5588
|
-
Schema.Literals([
|
|
5589
|
-
"SUCCESS",
|
|
5590
|
-
"UNSUPPORTED_APPLICATION",
|
|
5591
|
-
"INSUFFICIENT_INVOCATIONS",
|
|
5592
|
-
]),
|
|
5593
|
-
Schema.Null,
|
|
5594
|
-
]),
|
|
5595
|
-
),
|
|
5596
|
-
}).pipe(
|
|
5597
|
-
Schema.encodeKeys({
|
|
5598
|
-
region: "region",
|
|
5599
|
-
lastAnalyzedAt: "last_analyzed_at",
|
|
5600
|
-
status: "status",
|
|
5886
|
+
Schema.Array(
|
|
5887
|
+
Schema.Struct({
|
|
5888
|
+
handlers: Schema.optional(
|
|
5889
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
5890
|
+
),
|
|
5891
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5601
5892
|
}),
|
|
5602
5893
|
),
|
|
5894
|
+
Schema.Null,
|
|
5895
|
+
]),
|
|
5896
|
+
),
|
|
5897
|
+
observability: Schema.optional(
|
|
5898
|
+
Schema.Union([
|
|
5603
5899
|
Schema.Struct({
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
Schema.Union([Schema.
|
|
5900
|
+
enabled: Schema.Boolean,
|
|
5901
|
+
headSamplingRate: Schema.optional(
|
|
5902
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
5607
5903
|
),
|
|
5608
|
-
|
|
5904
|
+
logs: Schema.optional(
|
|
5609
5905
|
Schema.Union([
|
|
5610
|
-
Schema.
|
|
5611
|
-
|
|
5612
|
-
|
|
5613
|
-
|
|
5614
|
-
|
|
5906
|
+
Schema.Struct({
|
|
5907
|
+
enabled: Schema.Boolean,
|
|
5908
|
+
invocationLogs: Schema.Boolean,
|
|
5909
|
+
destinations: Schema.optional(
|
|
5910
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
5911
|
+
),
|
|
5912
|
+
headSamplingRate: Schema.optional(
|
|
5913
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
5914
|
+
),
|
|
5915
|
+
persist: Schema.optional(
|
|
5916
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
5917
|
+
),
|
|
5918
|
+
}).pipe(
|
|
5919
|
+
Schema.encodeKeys({
|
|
5920
|
+
enabled: "enabled",
|
|
5921
|
+
invocationLogs: "invocation_logs",
|
|
5922
|
+
destinations: "destinations",
|
|
5923
|
+
headSamplingRate: "head_sampling_rate",
|
|
5924
|
+
persist: "persist",
|
|
5925
|
+
}),
|
|
5926
|
+
),
|
|
5615
5927
|
Schema.Null,
|
|
5616
5928
|
]),
|
|
5617
5929
|
),
|
|
5618
5930
|
}).pipe(
|
|
5619
5931
|
Schema.encodeKeys({
|
|
5620
|
-
|
|
5621
|
-
|
|
5622
|
-
|
|
5932
|
+
enabled: "enabled",
|
|
5933
|
+
headSamplingRate: "head_sampling_rate",
|
|
5934
|
+
logs: "logs",
|
|
5623
5935
|
}),
|
|
5624
5936
|
),
|
|
5625
|
-
Schema.
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5937
|
+
Schema.Null,
|
|
5938
|
+
]),
|
|
5939
|
+
),
|
|
5940
|
+
placement: Schema.optional(
|
|
5941
|
+
Schema.Union([
|
|
5942
|
+
Schema.Union([
|
|
5943
|
+
Schema.Struct({
|
|
5944
|
+
mode: Schema.Literal("smart"),
|
|
5945
|
+
lastAnalyzedAt: Schema.optional(
|
|
5946
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5947
|
+
),
|
|
5948
|
+
status: Schema.optional(
|
|
5949
|
+
Schema.Union([
|
|
5950
|
+
Schema.Literals([
|
|
5951
|
+
"SUCCESS",
|
|
5952
|
+
"UNSUPPORTED_APPLICATION",
|
|
5953
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
5954
|
+
]),
|
|
5955
|
+
Schema.Null,
|
|
5956
|
+
]),
|
|
5957
|
+
),
|
|
5958
|
+
}).pipe(
|
|
5959
|
+
Schema.encodeKeys({
|
|
5960
|
+
mode: "mode",
|
|
5961
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
5962
|
+
status: "status",
|
|
5963
|
+
}),
|
|
5629
5964
|
),
|
|
5630
|
-
|
|
5631
|
-
Schema.
|
|
5632
|
-
|
|
5633
|
-
|
|
5634
|
-
|
|
5635
|
-
|
|
5965
|
+
Schema.Struct({
|
|
5966
|
+
region: Schema.String,
|
|
5967
|
+
lastAnalyzedAt: Schema.optional(
|
|
5968
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5969
|
+
),
|
|
5970
|
+
status: Schema.optional(
|
|
5971
|
+
Schema.Union([
|
|
5972
|
+
Schema.Literals([
|
|
5973
|
+
"SUCCESS",
|
|
5974
|
+
"UNSUPPORTED_APPLICATION",
|
|
5975
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
5976
|
+
]),
|
|
5977
|
+
Schema.Null,
|
|
5636
5978
|
]),
|
|
5637
|
-
|
|
5638
|
-
|
|
5979
|
+
),
|
|
5980
|
+
}).pipe(
|
|
5981
|
+
Schema.encodeKeys({
|
|
5982
|
+
region: "region",
|
|
5983
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
5984
|
+
status: "status",
|
|
5985
|
+
}),
|
|
5639
5986
|
),
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5987
|
+
Schema.Struct({
|
|
5988
|
+
hostname: Schema.String,
|
|
5989
|
+
lastAnalyzedAt: Schema.optional(
|
|
5990
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5991
|
+
),
|
|
5992
|
+
status: Schema.optional(
|
|
5993
|
+
Schema.Union([
|
|
5994
|
+
Schema.Literals([
|
|
5995
|
+
"SUCCESS",
|
|
5996
|
+
"UNSUPPORTED_APPLICATION",
|
|
5997
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
5998
|
+
]),
|
|
5999
|
+
Schema.Null,
|
|
6000
|
+
]),
|
|
6001
|
+
),
|
|
6002
|
+
}).pipe(
|
|
6003
|
+
Schema.encodeKeys({
|
|
6004
|
+
hostname: "hostname",
|
|
6005
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
6006
|
+
status: "status",
|
|
6007
|
+
}),
|
|
6008
|
+
),
|
|
6009
|
+
Schema.Struct({
|
|
6010
|
+
host: Schema.String,
|
|
6011
|
+
lastAnalyzedAt: Schema.optional(
|
|
6012
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6013
|
+
),
|
|
6014
|
+
status: Schema.optional(
|
|
6015
|
+
Schema.Union([
|
|
6016
|
+
Schema.Literals([
|
|
6017
|
+
"SUCCESS",
|
|
6018
|
+
"UNSUPPORTED_APPLICATION",
|
|
6019
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
6020
|
+
]),
|
|
6021
|
+
Schema.Null,
|
|
6022
|
+
]),
|
|
6023
|
+
),
|
|
6024
|
+
}).pipe(
|
|
6025
|
+
Schema.encodeKeys({
|
|
6026
|
+
host: "host",
|
|
6027
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
6028
|
+
status: "status",
|
|
6029
|
+
}),
|
|
6030
|
+
),
|
|
6031
|
+
]),
|
|
6032
|
+
Schema.Null,
|
|
6033
|
+
]),
|
|
6034
|
+
),
|
|
6035
|
+
placementMode: Schema.optional(
|
|
6036
|
+
Schema.Union([Schema.Literal("smart"), Schema.Null]),
|
|
6037
|
+
),
|
|
6038
|
+
placementStatus: Schema.optional(
|
|
6039
|
+
Schema.Union([
|
|
6040
|
+
Schema.Literals([
|
|
6041
|
+
"SUCCESS",
|
|
6042
|
+
"UNSUPPORTED_APPLICATION",
|
|
6043
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
6044
|
+
]),
|
|
6045
|
+
Schema.Null,
|
|
6046
|
+
]),
|
|
6047
|
+
),
|
|
6048
|
+
routes: Schema.optional(
|
|
6049
|
+
Schema.Union([
|
|
6050
|
+
Schema.Array(
|
|
6051
|
+
Schema.Struct({
|
|
6052
|
+
id: Schema.String,
|
|
6053
|
+
pattern: Schema.String,
|
|
6054
|
+
script: Schema.optional(
|
|
6055
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6056
|
+
),
|
|
5645
6057
|
}),
|
|
5646
6058
|
),
|
|
6059
|
+
Schema.Null,
|
|
5647
6060
|
]),
|
|
5648
|
-
|
|
5649
|
-
]),
|
|
5650
|
-
|
|
5651
|
-
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
|
|
5655
|
-
|
|
5656
|
-
|
|
5657
|
-
|
|
5658
|
-
"
|
|
5659
|
-
|
|
6061
|
+
),
|
|
6062
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6063
|
+
tags: Schema.optional(
|
|
6064
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
6065
|
+
),
|
|
6066
|
+
tailConsumers: Schema.optional(
|
|
6067
|
+
Schema.Union([Schema.Array(Schema.Unknown), Schema.Null]),
|
|
6068
|
+
),
|
|
6069
|
+
usageModel: Schema.optional(
|
|
6070
|
+
Schema.Union([
|
|
6071
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
6072
|
+
Schema.Null,
|
|
5660
6073
|
]),
|
|
5661
|
-
|
|
5662
|
-
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
]),
|
|
6074
|
+
),
|
|
6075
|
+
}).pipe(
|
|
6076
|
+
Schema.encodeKeys({
|
|
6077
|
+
id: "id",
|
|
6078
|
+
compatibilityDate: "compatibility_date",
|
|
6079
|
+
compatibilityFlags: "compatibility_flags",
|
|
6080
|
+
createdOn: "created_on",
|
|
6081
|
+
etag: "etag",
|
|
6082
|
+
handlers: "handlers",
|
|
6083
|
+
hasAssets: "has_assets",
|
|
6084
|
+
hasModules: "has_modules",
|
|
6085
|
+
lastDeployedFrom: "last_deployed_from",
|
|
6086
|
+
logpush: "logpush",
|
|
6087
|
+
migrationTag: "migration_tag",
|
|
6088
|
+
modifiedOn: "modified_on",
|
|
6089
|
+
namedHandlers: "named_handlers",
|
|
6090
|
+
observability: "observability",
|
|
6091
|
+
placement: "placement",
|
|
6092
|
+
placementMode: "placement_mode",
|
|
6093
|
+
placementStatus: "placement_status",
|
|
6094
|
+
routes: "routes",
|
|
6095
|
+
tag: "tag",
|
|
6096
|
+
tags: "tags",
|
|
6097
|
+
tailConsumers: "tail_consumers",
|
|
6098
|
+
usageModel: "usage_model",
|
|
6099
|
+
}),
|
|
5688
6100
|
),
|
|
5689
|
-
}).pipe(
|
|
5690
|
-
Schema.encodeKeys({
|
|
5691
|
-
id: "id",
|
|
5692
|
-
compatibilityDate: "compatibility_date",
|
|
5693
|
-
compatibilityFlags: "compatibility_flags",
|
|
5694
|
-
createdOn: "created_on",
|
|
5695
|
-
etag: "etag",
|
|
5696
|
-
handlers: "handlers",
|
|
5697
|
-
hasAssets: "has_assets",
|
|
5698
|
-
hasModules: "has_modules",
|
|
5699
|
-
lastDeployedFrom: "last_deployed_from",
|
|
5700
|
-
logpush: "logpush",
|
|
5701
|
-
migrationTag: "migration_tag",
|
|
5702
|
-
modifiedOn: "modified_on",
|
|
5703
|
-
namedHandlers: "named_handlers",
|
|
5704
|
-
observability: "observability",
|
|
5705
|
-
placement: "placement",
|
|
5706
|
-
placementMode: "placement_mode",
|
|
5707
|
-
placementStatus: "placement_status",
|
|
5708
|
-
routes: "routes",
|
|
5709
|
-
tag: "tag",
|
|
5710
|
-
tags: "tags",
|
|
5711
|
-
tailConsumers: "tail_consumers",
|
|
5712
|
-
usageModel: "usage_model",
|
|
5713
|
-
}),
|
|
5714
6101
|
),
|
|
5715
|
-
) as unknown as Schema.Schema<ListScriptsResponse>;
|
|
6102
|
+
}) as unknown as Schema.Schema<ListScriptsResponse>;
|
|
5716
6103
|
|
|
5717
6104
|
export type ListScriptsError = DefaultErrors | InvalidRoute;
|
|
5718
6105
|
|
|
5719
|
-
export const listScripts: API.
|
|
6106
|
+
export const listScripts: API.PaginatedOperationMethod<
|
|
5720
6107
|
ListScriptsRequest,
|
|
5721
6108
|
ListScriptsResponse,
|
|
5722
6109
|
ListScriptsError,
|
|
5723
6110
|
Credentials | HttpClient.HttpClient
|
|
5724
|
-
>
|
|
6111
|
+
> & {
|
|
6112
|
+
pages: (
|
|
6113
|
+
input: ListScriptsRequest,
|
|
6114
|
+
) => stream.Stream<
|
|
6115
|
+
ListScriptsResponse,
|
|
6116
|
+
ListScriptsError,
|
|
6117
|
+
Credentials | HttpClient.HttpClient
|
|
6118
|
+
>;
|
|
6119
|
+
items: (input: ListScriptsRequest) => stream.Stream<
|
|
6120
|
+
{
|
|
6121
|
+
id?: string | null;
|
|
6122
|
+
compatibilityDate?: string | null;
|
|
6123
|
+
compatibilityFlags?: string[] | null;
|
|
6124
|
+
createdOn?: string | null;
|
|
6125
|
+
etag?: string | null;
|
|
6126
|
+
handlers?: string[] | null;
|
|
6127
|
+
hasAssets?: boolean | null;
|
|
6128
|
+
hasModules?: boolean | null;
|
|
6129
|
+
lastDeployedFrom?: string | null;
|
|
6130
|
+
logpush?: boolean | null;
|
|
6131
|
+
migrationTag?: string | null;
|
|
6132
|
+
modifiedOn?: string | null;
|
|
6133
|
+
namedHandlers?:
|
|
6134
|
+
| { handlers?: string[] | null; name?: string | null }[]
|
|
6135
|
+
| null;
|
|
6136
|
+
observability?: {
|
|
6137
|
+
enabled: boolean;
|
|
6138
|
+
headSamplingRate?: number | null;
|
|
6139
|
+
logs?: {
|
|
6140
|
+
enabled: boolean;
|
|
6141
|
+
invocationLogs: boolean;
|
|
6142
|
+
destinations?: string[] | null;
|
|
6143
|
+
headSamplingRate?: number | null;
|
|
6144
|
+
persist?: boolean | null;
|
|
6145
|
+
} | null;
|
|
6146
|
+
} | null;
|
|
6147
|
+
placement?:
|
|
6148
|
+
| {
|
|
6149
|
+
mode: "smart";
|
|
6150
|
+
lastAnalyzedAt?: string | null;
|
|
6151
|
+
status?:
|
|
6152
|
+
| "SUCCESS"
|
|
6153
|
+
| "UNSUPPORTED_APPLICATION"
|
|
6154
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
6155
|
+
| null;
|
|
6156
|
+
}
|
|
6157
|
+
| {
|
|
6158
|
+
region: string;
|
|
6159
|
+
lastAnalyzedAt?: string | null;
|
|
6160
|
+
status?:
|
|
6161
|
+
| "SUCCESS"
|
|
6162
|
+
| "UNSUPPORTED_APPLICATION"
|
|
6163
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
6164
|
+
| null;
|
|
6165
|
+
}
|
|
6166
|
+
| {
|
|
6167
|
+
hostname: string;
|
|
6168
|
+
lastAnalyzedAt?: string | null;
|
|
6169
|
+
status?:
|
|
6170
|
+
| "SUCCESS"
|
|
6171
|
+
| "UNSUPPORTED_APPLICATION"
|
|
6172
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
6173
|
+
| null;
|
|
6174
|
+
}
|
|
6175
|
+
| {
|
|
6176
|
+
host: string;
|
|
6177
|
+
lastAnalyzedAt?: string | null;
|
|
6178
|
+
status?:
|
|
6179
|
+
| "SUCCESS"
|
|
6180
|
+
| "UNSUPPORTED_APPLICATION"
|
|
6181
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
6182
|
+
| null;
|
|
6183
|
+
}
|
|
6184
|
+
| null;
|
|
6185
|
+
placementMode?: "smart" | null;
|
|
6186
|
+
placementStatus?:
|
|
6187
|
+
| "SUCCESS"
|
|
6188
|
+
| "UNSUPPORTED_APPLICATION"
|
|
6189
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
6190
|
+
| null;
|
|
6191
|
+
routes?: { id: string; pattern: string; script?: string | null }[] | null;
|
|
6192
|
+
tag?: string | null;
|
|
6193
|
+
tags?: string[] | null;
|
|
6194
|
+
tailConsumers?: unknown[] | null;
|
|
6195
|
+
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
6196
|
+
},
|
|
6197
|
+
ListScriptsError,
|
|
6198
|
+
Credentials | HttpClient.HttpClient
|
|
6199
|
+
>;
|
|
6200
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
5725
6201
|
input: ListScriptsRequest,
|
|
5726
6202
|
output: ListScriptsResponse,
|
|
5727
6203
|
errors: [InvalidRoute],
|
|
6204
|
+
pagination: {
|
|
6205
|
+
mode: "single",
|
|
6206
|
+
items: "result",
|
|
6207
|
+
} as const,
|
|
5728
6208
|
}));
|
|
5729
6209
|
|
|
5730
6210
|
export interface PutScriptRequest {
|
|
@@ -6583,33 +7063,37 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6583
7063
|
Schema.Null,
|
|
6584
7064
|
]),
|
|
6585
7065
|
),
|
|
6586
|
-
})
|
|
6587
|
-
|
|
6588
|
-
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6602
|
-
|
|
6603
|
-
|
|
6604
|
-
|
|
6605
|
-
|
|
6606
|
-
|
|
6607
|
-
|
|
6608
|
-
|
|
6609
|
-
|
|
6610
|
-
|
|
6611
|
-
|
|
6612
|
-
)
|
|
7066
|
+
})
|
|
7067
|
+
.pipe(
|
|
7068
|
+
Schema.encodeKeys({
|
|
7069
|
+
startupTimeMs: "startup_time_ms",
|
|
7070
|
+
id: "id",
|
|
7071
|
+
compatibilityDate: "compatibility_date",
|
|
7072
|
+
compatibilityFlags: "compatibility_flags",
|
|
7073
|
+
createdOn: "created_on",
|
|
7074
|
+
entryPoint: "entry_point",
|
|
7075
|
+
etag: "etag",
|
|
7076
|
+
handlers: "handlers",
|
|
7077
|
+
hasAssets: "has_assets",
|
|
7078
|
+
hasModules: "has_modules",
|
|
7079
|
+
lastDeployedFrom: "last_deployed_from",
|
|
7080
|
+
logpush: "logpush",
|
|
7081
|
+
migrationTag: "migration_tag",
|
|
7082
|
+
modifiedOn: "modified_on",
|
|
7083
|
+
namedHandlers: "named_handlers",
|
|
7084
|
+
observability: "observability",
|
|
7085
|
+
placement: "placement",
|
|
7086
|
+
placementMode: "placement_mode",
|
|
7087
|
+
placementStatus: "placement_status",
|
|
7088
|
+
tag: "tag",
|
|
7089
|
+
tags: "tags",
|
|
7090
|
+
tailConsumers: "tail_consumers",
|
|
7091
|
+
usageModel: "usage_model",
|
|
7092
|
+
}),
|
|
7093
|
+
)
|
|
7094
|
+
.pipe(
|
|
7095
|
+
T.ResponsePath("result"),
|
|
7096
|
+
) as unknown as Schema.Schema<PutScriptResponse>;
|
|
6613
7097
|
|
|
6614
7098
|
export type PutScriptError = DefaultErrors | InvalidRoute;
|
|
6615
7099
|
|
|
@@ -6646,7 +7130,9 @@ export const DeleteScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6646
7130
|
export type DeleteScriptResponse = unknown;
|
|
6647
7131
|
|
|
6648
7132
|
export const DeleteScriptResponse =
|
|
6649
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown
|
|
7133
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
7134
|
+
T.ResponsePath("result"),
|
|
7135
|
+
) as unknown as Schema.Schema<DeleteScriptResponse>;
|
|
6650
7136
|
|
|
6651
7137
|
export type DeleteScriptError = DefaultErrors | WorkerNotFound;
|
|
6652
7138
|
|
|
@@ -6726,6 +7212,8 @@ export const SearchScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Array(
|
|
|
6726
7212
|
serviceName: "service_name",
|
|
6727
7213
|
}),
|
|
6728
7214
|
),
|
|
7215
|
+
).pipe(
|
|
7216
|
+
T.ResponsePath("result"),
|
|
6729
7217
|
) as unknown as Schema.Schema<SearchScriptResponse>;
|
|
6730
7218
|
|
|
6731
7219
|
export type SearchScriptError = DefaultErrors | InvalidRoute;
|
|
@@ -6778,7 +7266,9 @@ export const CreateScriptAssetUploadResponse =
|
|
|
6778
7266
|
Schema.Union([Schema.Array(Schema.Array(Schema.String)), Schema.Null]),
|
|
6779
7267
|
),
|
|
6780
7268
|
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6781
|
-
})
|
|
7269
|
+
}).pipe(
|
|
7270
|
+
T.ResponsePath("result"),
|
|
7271
|
+
) as unknown as Schema.Schema<CreateScriptAssetUploadResponse>;
|
|
6782
7272
|
|
|
6783
7273
|
export type CreateScriptAssetUploadError = DefaultErrors;
|
|
6784
7274
|
|
|
@@ -6966,17 +7456,21 @@ export const GetScriptDeploymentResponse =
|
|
|
6966
7456
|
]),
|
|
6967
7457
|
),
|
|
6968
7458
|
authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
6969
|
-
})
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
7459
|
+
})
|
|
7460
|
+
.pipe(
|
|
7461
|
+
Schema.encodeKeys({
|
|
7462
|
+
id: "id",
|
|
7463
|
+
createdOn: "created_on",
|
|
7464
|
+
source: "source",
|
|
7465
|
+
strategy: "strategy",
|
|
7466
|
+
versions: "versions",
|
|
7467
|
+
annotations: "annotations",
|
|
7468
|
+
authorEmail: "author_email",
|
|
7469
|
+
}),
|
|
7470
|
+
)
|
|
7471
|
+
.pipe(
|
|
7472
|
+
T.ResponsePath("result"),
|
|
7473
|
+
) as unknown as Schema.Schema<GetScriptDeploymentResponse>;
|
|
6980
7474
|
|
|
6981
7475
|
export type GetScriptDeploymentError =
|
|
6982
7476
|
| DefaultErrors
|
|
@@ -7078,7 +7572,9 @@ export const ListScriptDeploymentsResponse =
|
|
|
7078
7572
|
}),
|
|
7079
7573
|
),
|
|
7080
7574
|
),
|
|
7081
|
-
})
|
|
7575
|
+
}).pipe(
|
|
7576
|
+
T.ResponsePath("result"),
|
|
7577
|
+
) as unknown as Schema.Schema<ListScriptDeploymentsResponse>;
|
|
7082
7578
|
|
|
7083
7579
|
export type ListScriptDeploymentsError = DefaultErrors | WorkerNotFound;
|
|
7084
7580
|
|
|
@@ -7192,17 +7688,21 @@ export const CreateScriptDeploymentResponse =
|
|
|
7192
7688
|
]),
|
|
7193
7689
|
),
|
|
7194
7690
|
authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
7195
|
-
})
|
|
7196
|
-
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7691
|
+
})
|
|
7692
|
+
.pipe(
|
|
7693
|
+
Schema.encodeKeys({
|
|
7694
|
+
id: "id",
|
|
7695
|
+
createdOn: "created_on",
|
|
7696
|
+
source: "source",
|
|
7697
|
+
strategy: "strategy",
|
|
7698
|
+
versions: "versions",
|
|
7699
|
+
annotations: "annotations",
|
|
7700
|
+
authorEmail: "author_email",
|
|
7701
|
+
}),
|
|
7702
|
+
)
|
|
7703
|
+
.pipe(
|
|
7704
|
+
T.ResponsePath("result"),
|
|
7705
|
+
) as unknown as Schema.Schema<CreateScriptDeploymentResponse>;
|
|
7206
7706
|
|
|
7207
7707
|
export type CreateScriptDeploymentError = DefaultErrors | WorkerNotFound;
|
|
7208
7708
|
|
|
@@ -7367,7 +7867,9 @@ export const GetScriptScheduleResponse =
|
|
|
7367
7867
|
}),
|
|
7368
7868
|
),
|
|
7369
7869
|
),
|
|
7370
|
-
})
|
|
7870
|
+
}).pipe(
|
|
7871
|
+
T.ResponsePath("result"),
|
|
7872
|
+
) as unknown as Schema.Schema<GetScriptScheduleResponse>;
|
|
7371
7873
|
|
|
7372
7874
|
export type GetScriptScheduleError = DefaultErrors | WorkerNotFound;
|
|
7373
7875
|
|
|
@@ -7429,7 +7931,9 @@ export const PutScriptScheduleResponse =
|
|
|
7429
7931
|
}),
|
|
7430
7932
|
),
|
|
7431
7933
|
),
|
|
7432
|
-
})
|
|
7934
|
+
}).pipe(
|
|
7935
|
+
T.ResponsePath("result"),
|
|
7936
|
+
) as unknown as Schema.Schema<PutScriptScheduleResponse>;
|
|
7433
7937
|
|
|
7434
7938
|
export type PutScriptScheduleError = DefaultErrors | WorkerNotFound;
|
|
7435
7939
|
|
|
@@ -7953,20 +8457,24 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
7953
8457
|
Schema.Null,
|
|
7954
8458
|
]),
|
|
7955
8459
|
),
|
|
7956
|
-
})
|
|
7957
|
-
|
|
7958
|
-
|
|
7959
|
-
|
|
7960
|
-
|
|
7961
|
-
|
|
7962
|
-
|
|
7963
|
-
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
8460
|
+
})
|
|
8461
|
+
.pipe(
|
|
8462
|
+
Schema.encodeKeys({
|
|
8463
|
+
bindings: "bindings",
|
|
8464
|
+
compatibilityDate: "compatibility_date",
|
|
8465
|
+
compatibilityFlags: "compatibility_flags",
|
|
8466
|
+
limits: "limits",
|
|
8467
|
+
logpush: "logpush",
|
|
8468
|
+
observability: "observability",
|
|
8469
|
+
placement: "placement",
|
|
8470
|
+
tags: "tags",
|
|
8471
|
+
tailConsumers: "tail_consumers",
|
|
8472
|
+
usageModel: "usage_model",
|
|
8473
|
+
}),
|
|
8474
|
+
)
|
|
8475
|
+
.pipe(
|
|
8476
|
+
T.ResponsePath("result"),
|
|
8477
|
+
) as unknown as Schema.Schema<GetScriptScriptAndVersionSettingResponse>;
|
|
7970
8478
|
|
|
7971
8479
|
export type GetScriptScriptAndVersionSettingError =
|
|
7972
8480
|
| DefaultErrors
|
|
@@ -8969,20 +9477,24 @@ export const PatchScriptScriptAndVersionSettingResponse =
|
|
|
8969
9477
|
Schema.Null,
|
|
8970
9478
|
]),
|
|
8971
9479
|
),
|
|
8972
|
-
})
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
9480
|
+
})
|
|
9481
|
+
.pipe(
|
|
9482
|
+
Schema.encodeKeys({
|
|
9483
|
+
bindings: "bindings",
|
|
9484
|
+
compatibilityDate: "compatibility_date",
|
|
9485
|
+
compatibilityFlags: "compatibility_flags",
|
|
9486
|
+
limits: "limits",
|
|
9487
|
+
logpush: "logpush",
|
|
9488
|
+
observability: "observability",
|
|
9489
|
+
placement: "placement",
|
|
9490
|
+
tags: "tags",
|
|
9491
|
+
tailConsumers: "tail_consumers",
|
|
9492
|
+
usageModel: "usage_model",
|
|
9493
|
+
}),
|
|
9494
|
+
)
|
|
9495
|
+
.pipe(
|
|
9496
|
+
T.ResponsePath("result"),
|
|
9497
|
+
) as unknown as Schema.Schema<PatchScriptScriptAndVersionSettingResponse>;
|
|
8986
9498
|
|
|
8987
9499
|
export type PatchScriptScriptAndVersionSettingError =
|
|
8988
9500
|
| DefaultErrors
|
|
@@ -9073,6 +9585,8 @@ export const GetScriptSecretResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
|
|
|
9073
9585
|
),
|
|
9074
9586
|
}),
|
|
9075
9587
|
],
|
|
9588
|
+
).pipe(
|
|
9589
|
+
T.ResponsePath("result"),
|
|
9076
9590
|
) as unknown as Schema.Schema<GetScriptSecretResponse>;
|
|
9077
9591
|
|
|
9078
9592
|
export type GetScriptSecretError =
|
|
@@ -9108,65 +9622,102 @@ export const ListScriptSecretsRequest =
|
|
|
9108
9622
|
}),
|
|
9109
9623
|
) as unknown as Schema.Schema<ListScriptSecretsRequest>;
|
|
9110
9624
|
|
|
9111
|
-
export
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9625
|
+
export interface ListScriptSecretsResponse {
|
|
9626
|
+
result: (
|
|
9627
|
+
| { name: string; type: "secret_text" }
|
|
9628
|
+
| {
|
|
9629
|
+
algorithm: unknown;
|
|
9630
|
+
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
9631
|
+
name: string;
|
|
9632
|
+
type: "secret_key";
|
|
9633
|
+
usages: (
|
|
9634
|
+
| "encrypt"
|
|
9635
|
+
| "decrypt"
|
|
9636
|
+
| "sign"
|
|
9637
|
+
| "verify"
|
|
9638
|
+
| "deriveKey"
|
|
9639
|
+
| "deriveBits"
|
|
9640
|
+
| "wrapKey"
|
|
9641
|
+
| "unwrapKey"
|
|
9642
|
+
)[];
|
|
9643
|
+
}
|
|
9644
|
+
)[];
|
|
9645
|
+
}
|
|
9130
9646
|
|
|
9131
9647
|
export const ListScriptSecretsResponse =
|
|
9132
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
9133
|
-
Schema.
|
|
9134
|
-
Schema.
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
Schema.
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9648
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9649
|
+
result: Schema.Array(
|
|
9650
|
+
Schema.Union([
|
|
9651
|
+
Schema.Struct({
|
|
9652
|
+
name: Schema.String,
|
|
9653
|
+
type: Schema.Literal("secret_text"),
|
|
9654
|
+
}),
|
|
9655
|
+
Schema.Struct({
|
|
9656
|
+
algorithm: Schema.Unknown,
|
|
9657
|
+
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
9658
|
+
name: Schema.String,
|
|
9659
|
+
type: Schema.Literal("secret_key"),
|
|
9660
|
+
usages: Schema.Array(
|
|
9661
|
+
Schema.Literals([
|
|
9662
|
+
"encrypt",
|
|
9663
|
+
"decrypt",
|
|
9664
|
+
"sign",
|
|
9665
|
+
"verify",
|
|
9666
|
+
"deriveKey",
|
|
9667
|
+
"deriveBits",
|
|
9668
|
+
"wrapKey",
|
|
9669
|
+
"unwrapKey",
|
|
9670
|
+
]),
|
|
9671
|
+
),
|
|
9672
|
+
}),
|
|
9673
|
+
]),
|
|
9674
|
+
),
|
|
9675
|
+
}) as unknown as Schema.Schema<ListScriptSecretsResponse>;
|
|
9158
9676
|
|
|
9159
9677
|
export type ListScriptSecretsError = DefaultErrors | WorkerNotFound;
|
|
9160
9678
|
|
|
9161
|
-
export const listScriptSecrets: API.
|
|
9679
|
+
export const listScriptSecrets: API.PaginatedOperationMethod<
|
|
9162
9680
|
ListScriptSecretsRequest,
|
|
9163
9681
|
ListScriptSecretsResponse,
|
|
9164
9682
|
ListScriptSecretsError,
|
|
9165
9683
|
Credentials | HttpClient.HttpClient
|
|
9166
|
-
>
|
|
9684
|
+
> & {
|
|
9685
|
+
pages: (
|
|
9686
|
+
input: ListScriptSecretsRequest,
|
|
9687
|
+
) => stream.Stream<
|
|
9688
|
+
ListScriptSecretsResponse,
|
|
9689
|
+
ListScriptSecretsError,
|
|
9690
|
+
Credentials | HttpClient.HttpClient
|
|
9691
|
+
>;
|
|
9692
|
+
items: (input: ListScriptSecretsRequest) => stream.Stream<
|
|
9693
|
+
| { name: string; type: "secret_text" }
|
|
9694
|
+
| {
|
|
9695
|
+
algorithm: unknown;
|
|
9696
|
+
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
9697
|
+
name: string;
|
|
9698
|
+
type: "secret_key";
|
|
9699
|
+
usages: (
|
|
9700
|
+
| "encrypt"
|
|
9701
|
+
| "decrypt"
|
|
9702
|
+
| "sign"
|
|
9703
|
+
| "verify"
|
|
9704
|
+
| "deriveKey"
|
|
9705
|
+
| "deriveBits"
|
|
9706
|
+
| "wrapKey"
|
|
9707
|
+
| "unwrapKey"
|
|
9708
|
+
)[];
|
|
9709
|
+
},
|
|
9710
|
+
ListScriptSecretsError,
|
|
9711
|
+
Credentials | HttpClient.HttpClient
|
|
9712
|
+
>;
|
|
9713
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
9167
9714
|
input: ListScriptSecretsRequest,
|
|
9168
9715
|
output: ListScriptSecretsResponse,
|
|
9169
9716
|
errors: [WorkerNotFound],
|
|
9717
|
+
pagination: {
|
|
9718
|
+
mode: "single",
|
|
9719
|
+
items: "result",
|
|
9720
|
+
} as const,
|
|
9170
9721
|
}));
|
|
9171
9722
|
|
|
9172
9723
|
export interface PutScriptSecretRequest {
|
|
@@ -9240,6 +9791,8 @@ export const PutScriptSecretResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Union(
|
|
|
9240
9791
|
),
|
|
9241
9792
|
}),
|
|
9242
9793
|
],
|
|
9794
|
+
).pipe(
|
|
9795
|
+
T.ResponsePath("result"),
|
|
9243
9796
|
) as unknown as Schema.Schema<PutScriptSecretResponse>;
|
|
9244
9797
|
|
|
9245
9798
|
export type PutScriptSecretError = DefaultErrors | WorkerNotFound;
|
|
@@ -9282,7 +9835,9 @@ export const DeleteScriptSecretRequest =
|
|
|
9282
9835
|
export type DeleteScriptSecretResponse = unknown;
|
|
9283
9836
|
|
|
9284
9837
|
export const DeleteScriptSecretResponse =
|
|
9285
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown
|
|
9838
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Unknown.pipe(
|
|
9839
|
+
T.ResponsePath("result"),
|
|
9840
|
+
) as unknown as Schema.Schema<DeleteScriptSecretResponse>;
|
|
9286
9841
|
|
|
9287
9842
|
export type DeleteScriptSecretError =
|
|
9288
9843
|
| DefaultErrors
|
|
@@ -9476,12 +10031,16 @@ export const GetScriptSubdomainResponse =
|
|
|
9476
10031
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9477
10032
|
enabled: Schema.Boolean,
|
|
9478
10033
|
previewsEnabled: Schema.Boolean,
|
|
9479
|
-
})
|
|
9480
|
-
|
|
9481
|
-
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
10034
|
+
})
|
|
10035
|
+
.pipe(
|
|
10036
|
+
Schema.encodeKeys({
|
|
10037
|
+
enabled: "enabled",
|
|
10038
|
+
previewsEnabled: "previews_enabled",
|
|
10039
|
+
}),
|
|
10040
|
+
)
|
|
10041
|
+
.pipe(
|
|
10042
|
+
T.ResponsePath("result"),
|
|
10043
|
+
) as unknown as Schema.Schema<GetScriptSubdomainResponse>;
|
|
9485
10044
|
|
|
9486
10045
|
export type GetScriptSubdomainError = DefaultErrors | WorkerNotFound;
|
|
9487
10046
|
|
|
@@ -9534,12 +10093,16 @@ export const CreateScriptSubdomainResponse =
|
|
|
9534
10093
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9535
10094
|
enabled: Schema.Boolean,
|
|
9536
10095
|
previewsEnabled: Schema.Boolean,
|
|
9537
|
-
})
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9542
|
-
|
|
10096
|
+
})
|
|
10097
|
+
.pipe(
|
|
10098
|
+
Schema.encodeKeys({
|
|
10099
|
+
enabled: "enabled",
|
|
10100
|
+
previewsEnabled: "previews_enabled",
|
|
10101
|
+
}),
|
|
10102
|
+
)
|
|
10103
|
+
.pipe(
|
|
10104
|
+
T.ResponsePath("result"),
|
|
10105
|
+
) as unknown as Schema.Schema<CreateScriptSubdomainResponse>;
|
|
9543
10106
|
|
|
9544
10107
|
export type CreateScriptSubdomainError = DefaultErrors | WorkerNotFound;
|
|
9545
10108
|
|
|
@@ -9582,12 +10145,16 @@ export const DeleteScriptSubdomainResponse =
|
|
|
9582
10145
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9583
10146
|
enabled: Schema.Boolean,
|
|
9584
10147
|
previewsEnabled: Schema.Boolean,
|
|
9585
|
-
})
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
10148
|
+
})
|
|
10149
|
+
.pipe(
|
|
10150
|
+
Schema.encodeKeys({
|
|
10151
|
+
enabled: "enabled",
|
|
10152
|
+
previewsEnabled: "previews_enabled",
|
|
10153
|
+
}),
|
|
10154
|
+
)
|
|
10155
|
+
.pipe(
|
|
10156
|
+
T.ResponsePath("result"),
|
|
10157
|
+
) as unknown as Schema.Schema<DeleteScriptSubdomainResponse>;
|
|
9591
10158
|
|
|
9592
10159
|
export type DeleteScriptSubdomainError = DefaultErrors | WorkerNotFound;
|
|
9593
10160
|
|
|
@@ -9633,9 +10200,11 @@ export const GetScriptTailResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
9633
10200
|
id: Schema.String,
|
|
9634
10201
|
expiresAt: Schema.String,
|
|
9635
10202
|
url: Schema.String,
|
|
9636
|
-
})
|
|
9637
|
-
Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" })
|
|
9638
|
-
|
|
10203
|
+
})
|
|
10204
|
+
.pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
|
|
10205
|
+
.pipe(
|
|
10206
|
+
T.ResponsePath("result"),
|
|
10207
|
+
) as unknown as Schema.Schema<GetScriptTailResponse>;
|
|
9639
10208
|
|
|
9640
10209
|
export type GetScriptTailError = DefaultErrors | WorkerNotFound;
|
|
9641
10210
|
|
|
@@ -9682,9 +10251,11 @@ export const CreateScriptTailResponse =
|
|
|
9682
10251
|
id: Schema.String,
|
|
9683
10252
|
expiresAt: Schema.String,
|
|
9684
10253
|
url: Schema.String,
|
|
9685
|
-
})
|
|
9686
|
-
Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" })
|
|
9687
|
-
|
|
10254
|
+
})
|
|
10255
|
+
.pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
|
|
10256
|
+
.pipe(
|
|
10257
|
+
T.ResponsePath("result"),
|
|
10258
|
+
) as unknown as Schema.Schema<CreateScriptTailResponse>;
|
|
9688
10259
|
|
|
9689
10260
|
export type CreateScriptTailError = DefaultErrors | WorkerNotFound;
|
|
9690
10261
|
|
|
@@ -10394,7 +10965,9 @@ export const GetScriptVersionResponse =
|
|
|
10394
10965
|
]),
|
|
10395
10966
|
),
|
|
10396
10967
|
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
10397
|
-
})
|
|
10968
|
+
}).pipe(
|
|
10969
|
+
T.ResponsePath("result"),
|
|
10970
|
+
) as unknown as Schema.Schema<GetScriptVersionResponse>;
|
|
10398
10971
|
|
|
10399
10972
|
export type GetScriptVersionError =
|
|
10400
10973
|
| DefaultErrors
|
|
@@ -10432,97 +11005,177 @@ export const ListScriptVersionsRequest =
|
|
|
10432
11005
|
}),
|
|
10433
11006
|
) as unknown as Schema.Schema<ListScriptVersionsRequest>;
|
|
10434
11007
|
|
|
10435
|
-
export
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10446
|
-
|
|
10447
|
-
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
11008
|
+
export interface ListScriptVersionsResponse {
|
|
11009
|
+
result: {
|
|
11010
|
+
items?:
|
|
11011
|
+
| {
|
|
11012
|
+
id?: string | null;
|
|
11013
|
+
metadata?: {
|
|
11014
|
+
authorEmail?: string | null;
|
|
11015
|
+
authorId?: string | null;
|
|
11016
|
+
createdOn?: string | null;
|
|
11017
|
+
hasPreview?: boolean | null;
|
|
11018
|
+
modifiedOn?: string | null;
|
|
11019
|
+
source?:
|
|
11020
|
+
| "unknown"
|
|
11021
|
+
| "api"
|
|
11022
|
+
| "wrangler"
|
|
11023
|
+
| "terraform"
|
|
11024
|
+
| "dash"
|
|
11025
|
+
| "dash_template"
|
|
11026
|
+
| "integration"
|
|
11027
|
+
| "quick_editor"
|
|
11028
|
+
| "playground"
|
|
11029
|
+
| "workersci"
|
|
11030
|
+
| null;
|
|
11031
|
+
} | null;
|
|
11032
|
+
number?: number | null;
|
|
11033
|
+
}[]
|
|
10454
11034
|
| null;
|
|
10455
|
-
}
|
|
10456
|
-
|
|
10457
|
-
|
|
11035
|
+
};
|
|
11036
|
+
resultInfo: {
|
|
11037
|
+
count?: number | null;
|
|
11038
|
+
page?: number | null;
|
|
11039
|
+
perPage?: number | null;
|
|
11040
|
+
totalCount?: number | null;
|
|
11041
|
+
};
|
|
11042
|
+
}
|
|
10458
11043
|
|
|
10459
11044
|
export const ListScriptVersionsResponse =
|
|
10460
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
10461
|
-
Schema.Struct({
|
|
10462
|
-
|
|
10463
|
-
metadata: Schema.optional(
|
|
11045
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11046
|
+
result: Schema.Struct({
|
|
11047
|
+
items: Schema.optional(
|
|
10464
11048
|
Schema.Union([
|
|
10465
|
-
Schema.
|
|
10466
|
-
|
|
10467
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
10468
|
-
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10480
|
-
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
|
|
10486
|
-
|
|
10487
|
-
|
|
10488
|
-
|
|
10489
|
-
|
|
10490
|
-
|
|
10491
|
-
|
|
10492
|
-
|
|
10493
|
-
|
|
11049
|
+
Schema.Array(
|
|
11050
|
+
Schema.Struct({
|
|
11051
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
11052
|
+
metadata: Schema.optional(
|
|
11053
|
+
Schema.Union([
|
|
11054
|
+
Schema.Struct({
|
|
11055
|
+
authorEmail: Schema.optional(
|
|
11056
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11057
|
+
),
|
|
11058
|
+
authorId: Schema.optional(
|
|
11059
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11060
|
+
),
|
|
11061
|
+
createdOn: Schema.optional(
|
|
11062
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11063
|
+
),
|
|
11064
|
+
hasPreview: Schema.optional(
|
|
11065
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
11066
|
+
),
|
|
11067
|
+
modifiedOn: Schema.optional(
|
|
11068
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11069
|
+
),
|
|
11070
|
+
source: Schema.optional(
|
|
11071
|
+
Schema.Union([
|
|
11072
|
+
Schema.Literals([
|
|
11073
|
+
"unknown",
|
|
11074
|
+
"api",
|
|
11075
|
+
"wrangler",
|
|
11076
|
+
"terraform",
|
|
11077
|
+
"dash",
|
|
11078
|
+
"dash_template",
|
|
11079
|
+
"integration",
|
|
11080
|
+
"quick_editor",
|
|
11081
|
+
"playground",
|
|
11082
|
+
"workersci",
|
|
11083
|
+
]),
|
|
11084
|
+
Schema.Null,
|
|
11085
|
+
]),
|
|
11086
|
+
),
|
|
11087
|
+
}).pipe(
|
|
11088
|
+
Schema.encodeKeys({
|
|
11089
|
+
authorEmail: "author_email",
|
|
11090
|
+
authorId: "author_id",
|
|
11091
|
+
createdOn: "created_on",
|
|
11092
|
+
hasPreview: "hasPreview",
|
|
11093
|
+
modifiedOn: "modified_on",
|
|
11094
|
+
source: "source",
|
|
11095
|
+
}),
|
|
11096
|
+
),
|
|
11097
|
+
Schema.Null,
|
|
10494
11098
|
]),
|
|
10495
|
-
|
|
10496
|
-
|
|
10497
|
-
|
|
10498
|
-
|
|
10499
|
-
Schema.encodeKeys({
|
|
10500
|
-
authorEmail: "author_email",
|
|
10501
|
-
authorId: "author_id",
|
|
10502
|
-
createdOn: "created_on",
|
|
10503
|
-
hasPreview: "hasPreview",
|
|
10504
|
-
modifiedOn: "modified_on",
|
|
10505
|
-
source: "source",
|
|
11099
|
+
),
|
|
11100
|
+
number: Schema.optional(
|
|
11101
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
11102
|
+
),
|
|
10506
11103
|
}),
|
|
10507
11104
|
),
|
|
10508
11105
|
Schema.Null,
|
|
10509
11106
|
]),
|
|
10510
11107
|
),
|
|
10511
|
-
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
10512
11108
|
}),
|
|
11109
|
+
resultInfo: Schema.Struct({
|
|
11110
|
+
count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
11111
|
+
page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
11112
|
+
perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
11113
|
+
totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
11114
|
+
}).pipe(
|
|
11115
|
+
Schema.encodeKeys({
|
|
11116
|
+
count: "count",
|
|
11117
|
+
page: "page",
|
|
11118
|
+
perPage: "per_page",
|
|
11119
|
+
totalCount: "total_count",
|
|
11120
|
+
}),
|
|
11121
|
+
),
|
|
11122
|
+
}).pipe(
|
|
11123
|
+
Schema.encodeKeys({ result: "result", resultInfo: "result_info" }),
|
|
10513
11124
|
) as unknown as Schema.Schema<ListScriptVersionsResponse>;
|
|
10514
11125
|
|
|
10515
11126
|
export type ListScriptVersionsError = DefaultErrors | WorkerNotFound;
|
|
10516
11127
|
|
|
10517
|
-
export const listScriptVersions: API.
|
|
11128
|
+
export const listScriptVersions: API.PaginatedOperationMethod<
|
|
10518
11129
|
ListScriptVersionsRequest,
|
|
10519
11130
|
ListScriptVersionsResponse,
|
|
10520
11131
|
ListScriptVersionsError,
|
|
10521
11132
|
Credentials | HttpClient.HttpClient
|
|
10522
|
-
>
|
|
11133
|
+
> & {
|
|
11134
|
+
pages: (
|
|
11135
|
+
input: ListScriptVersionsRequest,
|
|
11136
|
+
) => stream.Stream<
|
|
11137
|
+
ListScriptVersionsResponse,
|
|
11138
|
+
ListScriptVersionsError,
|
|
11139
|
+
Credentials | HttpClient.HttpClient
|
|
11140
|
+
>;
|
|
11141
|
+
items: (input: ListScriptVersionsRequest) => stream.Stream<
|
|
11142
|
+
{
|
|
11143
|
+
id?: string | null;
|
|
11144
|
+
metadata?: {
|
|
11145
|
+
authorEmail?: string | null;
|
|
11146
|
+
authorId?: string | null;
|
|
11147
|
+
createdOn?: string | null;
|
|
11148
|
+
hasPreview?: boolean | null;
|
|
11149
|
+
modifiedOn?: string | null;
|
|
11150
|
+
source?:
|
|
11151
|
+
| "unknown"
|
|
11152
|
+
| "api"
|
|
11153
|
+
| "wrangler"
|
|
11154
|
+
| "terraform"
|
|
11155
|
+
| "dash"
|
|
11156
|
+
| "dash_template"
|
|
11157
|
+
| "integration"
|
|
11158
|
+
| "quick_editor"
|
|
11159
|
+
| "playground"
|
|
11160
|
+
| "workersci"
|
|
11161
|
+
| null;
|
|
11162
|
+
} | null;
|
|
11163
|
+
number?: number | null;
|
|
11164
|
+
},
|
|
11165
|
+
ListScriptVersionsError,
|
|
11166
|
+
Credentials | HttpClient.HttpClient
|
|
11167
|
+
>;
|
|
11168
|
+
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
10523
11169
|
input: ListScriptVersionsRequest,
|
|
10524
11170
|
output: ListScriptVersionsResponse,
|
|
10525
11171
|
errors: [WorkerNotFound],
|
|
11172
|
+
pagination: {
|
|
11173
|
+
mode: "page",
|
|
11174
|
+
inputToken: "page",
|
|
11175
|
+
outputToken: "resultInfo.page",
|
|
11176
|
+
items: "result.items",
|
|
11177
|
+
pageSize: "perPage",
|
|
11178
|
+
} as const,
|
|
10526
11179
|
}));
|
|
10527
11180
|
|
|
10528
11181
|
export interface CreateScriptVersionRequest {
|
|
@@ -11508,15 +12161,19 @@ export const CreateScriptVersionResponse =
|
|
|
11508
12161
|
),
|
|
11509
12162
|
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
11510
12163
|
startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
11511
|
-
})
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
12164
|
+
})
|
|
12165
|
+
.pipe(
|
|
12166
|
+
Schema.encodeKeys({
|
|
12167
|
+
resources: "resources",
|
|
12168
|
+
id: "id",
|
|
12169
|
+
metadata: "metadata",
|
|
12170
|
+
number: "number",
|
|
12171
|
+
startupTimeMs: "startup_time_ms",
|
|
12172
|
+
}),
|
|
12173
|
+
)
|
|
12174
|
+
.pipe(
|
|
12175
|
+
T.ResponsePath("result"),
|
|
12176
|
+
) as unknown as Schema.Schema<CreateScriptVersionResponse>;
|
|
11520
12177
|
|
|
11521
12178
|
export type CreateScriptVersionError = DefaultErrors | WorkerNotFound;
|
|
11522
12179
|
|
|
@@ -11552,7 +12209,9 @@ export interface GetSubdomainResponse {
|
|
|
11552
12209
|
|
|
11553
12210
|
export const GetSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11554
12211
|
subdomain: Schema.String,
|
|
11555
|
-
})
|
|
12212
|
+
}).pipe(
|
|
12213
|
+
T.ResponsePath("result"),
|
|
12214
|
+
) as unknown as Schema.Schema<GetSubdomainResponse>;
|
|
11556
12215
|
|
|
11557
12216
|
export type GetSubdomainError = DefaultErrors | InvalidRoute;
|
|
11558
12217
|
|
|
@@ -11587,7 +12246,9 @@ export interface PutSubdomainResponse {
|
|
|
11587
12246
|
|
|
11588
12247
|
export const PutSubdomainResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11589
12248
|
subdomain: Schema.String,
|
|
11590
|
-
})
|
|
12249
|
+
}).pipe(
|
|
12250
|
+
T.ResponsePath("result"),
|
|
12251
|
+
) as unknown as Schema.Schema<PutSubdomainResponse>;
|
|
11591
12252
|
|
|
11592
12253
|
export type PutSubdomainError = DefaultErrors | InvalidRoute;
|
|
11593
12254
|
|