@distilled.cloud/cloudflare 0.7.11 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/abuse-reports.d.ts +3 -53
- package/lib/services/abuse-reports.d.ts.map +1 -1
- package/lib/services/abuse-reports.js +0 -1
- package/lib/services/abuse-reports.js.map +1 -1
- package/lib/services/accounts.d.ts +7 -261
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +0 -1
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -105
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +0 -1
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts +5 -146
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +0 -1
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/ai.d.ts +6 -42
- package/lib/services/ai.d.ts.map +1 -1
- package/lib/services/ai.js +0 -1
- package/lib/services/ai.js.map +1 -1
- package/lib/services/aisearch.d.ts +4 -126
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +0 -1
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.d.ts +6 -125
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +0 -1
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +6 -248
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +0 -1
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +1 -29
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +0 -1
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/brand-protection.d.ts +1 -5
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +0 -1
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/calls.d.ts +2 -19
- package/lib/services/calls.d.ts.map +1 -1
- package/lib/services/calls.js +0 -1
- package/lib/services/calls.js.map +1 -1
- package/lib/services/client-certificates.d.ts +1 -27
- package/lib/services/client-certificates.d.ts.map +1 -1
- package/lib/services/client-certificates.js +0 -1
- package/lib/services/client-certificates.js.map +1 -1
- package/lib/services/cloud-connector.d.ts +2 -27
- package/lib/services/cloud-connector.d.ts.map +1 -1
- package/lib/services/cloud-connector.js +0 -1
- package/lib/services/cloud-connector.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +6 -63
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +0 -1
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/connectivity.d.ts +1 -36
- package/lib/services/connectivity.d.ts.map +1 -1
- package/lib/services/connectivity.js +0 -1
- package/lib/services/connectivity.js.map +1 -1
- package/lib/services/content-scanning.d.ts +3 -22
- package/lib/services/content-scanning.d.ts.map +1 -1
- package/lib/services/content-scanning.js +0 -1
- package/lib/services/content-scanning.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +2 -71
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +0 -1
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +1 -58
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +0 -1
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/custom-nameservers.d.ts +2 -18
- package/lib/services/custom-nameservers.d.ts.map +1 -1
- package/lib/services/custom-nameservers.js +0 -1
- package/lib/services/custom-nameservers.js.map +1 -1
- package/lib/services/custom-pages.d.ts +1 -14
- package/lib/services/custom-pages.d.ts.map +1 -1
- package/lib/services/custom-pages.js +0 -1
- package/lib/services/custom-pages.js.map +1 -1
- package/lib/services/d1.d.ts +3 -57
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +0 -1
- package/lib/services/d1.js.map +1 -1
- package/lib/services/diagnostics.d.ts +1 -32
- package/lib/services/diagnostics.d.ts.map +1 -1
- package/lib/services/diagnostics.js +0 -1
- package/lib/services/diagnostics.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +1 -22
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +0 -1
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +6 -101
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +0 -1
- package/lib/services/dns.js.map +1 -1
- package/lib/services/durable-objects.d.ts +2 -18
- package/lib/services/durable-objects.d.ts.map +1 -1
- package/lib/services/durable-objects.js +0 -1
- package/lib/services/durable-objects.js.map +1 -1
- package/lib/services/email-routing.d.ts +3 -41
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +0 -1
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/email-security.d.ts +11 -205
- package/lib/services/email-security.d.ts.map +1 -1
- package/lib/services/email-security.js +0 -1
- package/lib/services/email-security.js.map +1 -1
- package/lib/services/filters.d.ts +3 -31
- package/lib/services/filters.d.ts.map +1 -1
- package/lib/services/filters.js +0 -1
- package/lib/services/filters.js.map +1 -1
- package/lib/services/firewall.d.ts +13 -259
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +0 -1
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +1 -36
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +0 -1
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +1 -11
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +0 -1
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +1 -36
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +0 -1
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +6 -95
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +0 -1
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +1 -15
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +0 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +6 -75
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +0 -1
- package/lib/services/intel.js.map +1 -1
- package/lib/services/keyless-certificates.d.ts +1 -19
- package/lib/services/keyless-certificates.d.ts.map +1 -1
- package/lib/services/keyless-certificates.js +0 -1
- package/lib/services/keyless-certificates.js.map +1 -1
- package/lib/services/kv.d.ts +2 -17
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +0 -1
- package/lib/services/kv.js.map +1 -1
- package/lib/services/leaked-credential-checks.d.ts +1 -9
- package/lib/services/leaked-credential-checks.d.ts.map +1 -1
- package/lib/services/leaked-credential-checks.js +0 -1
- package/lib/services/leaked-credential-checks.js.map +1 -1
- package/lib/services/load-balancers.d.ts +8 -259
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +0 -1
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +3 -77
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +0 -1
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts +5 -282
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +0 -1
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +1 -17
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +0 -1
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +10 -232
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +0 -1
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +1 -74
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +0 -1
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/mtls-certificates.d.ts +2 -22
- package/lib/services/mtls-certificates.d.ts.map +1 -1
- package/lib/services/mtls-certificates.js +0 -1
- package/lib/services/mtls-certificates.js.map +1 -1
- package/lib/services/organizations.d.ts +1 -30
- package/lib/services/organizations.d.ts.map +1 -1
- package/lib/services/organizations.js +0 -1
- package/lib/services/organizations.js.map +1 -1
- package/lib/services/origin-ca-certificates.d.ts +1 -13
- package/lib/services/origin-ca-certificates.d.ts.map +1 -1
- package/lib/services/origin-ca-certificates.js +0 -1
- package/lib/services/origin-ca-certificates.js.map +1 -1
- package/lib/services/origin-tls-client-auth.d.ts +3 -32
- package/lib/services/origin-tls-client-auth.d.ts.map +1 -1
- package/lib/services/origin-tls-client-auth.js +0 -1
- package/lib/services/origin-tls-client-auth.js.map +1 -1
- package/lib/services/page-shield.d.ts +4 -75
- package/lib/services/page-shield.d.ts.map +1 -1
- package/lib/services/page-shield.js +0 -1
- package/lib/services/page-shield.js.map +1 -1
- package/lib/services/pages.d.ts +3 -310
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +0 -1
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +3 -237
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +0 -1
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +3 -112
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +0 -1
- package/lib/services/queues.js.map +1 -1
- package/lib/services/r2.d.ts +15 -44
- package/lib/services/r2.d.ts.map +1 -1
- package/lib/services/r2.js +16 -1
- package/lib/services/r2.js.map +1 -1
- package/lib/services/radar.d.ts +3 -70
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +0 -1
- package/lib/services/radar.js.map +1 -1
- package/lib/services/rate-limits.d.ts +1 -38
- package/lib/services/rate-limits.d.ts.map +1 -1
- package/lib/services/rate-limits.js +0 -1
- package/lib/services/rate-limits.js.map +1 -1
- package/lib/services/registrar.d.ts +1 -39
- package/lib/services/registrar.d.ts.map +1 -1
- package/lib/services/registrar.js +0 -1
- package/lib/services/registrar.js.map +1 -1
- package/lib/services/resource-sharing.d.ts +3 -61
- package/lib/services/resource-sharing.d.ts.map +1 -1
- package/lib/services/resource-sharing.js +0 -1
- package/lib/services/resource-sharing.js.map +1 -1
- package/lib/services/rules.d.ts +2 -53
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +0 -1
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +3 -37
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +0 -1
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +1 -26
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +0 -1
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.d.ts +2 -19
- package/lib/services/schema-validation.d.ts.map +1 -1
- package/lib/services/schema-validation.js +0 -1
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/secrets-store.d.ts +5 -55
- package/lib/services/secrets-store.d.ts.map +1 -1
- package/lib/services/secrets-store.js +0 -1
- package/lib/services/secrets-store.js.map +1 -1
- package/lib/services/security-center.d.ts +1 -25
- package/lib/services/security-center.d.ts.map +1 -1
- package/lib/services/security-center.js +0 -1
- package/lib/services/security-center.js.map +1 -1
- package/lib/services/snippets.d.ts +4 -42
- package/lib/services/snippets.d.ts.map +1 -1
- package/lib/services/snippets.js +0 -1
- package/lib/services/snippets.js.map +1 -1
- package/lib/services/spectrum.d.ts +1 -43
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +0 -1
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +2 -107
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +0 -1
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +1 -41
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +0 -1
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +6 -102
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +0 -1
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +4 -99
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +0 -1
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/turnstile.d.ts +1 -17
- package/lib/services/turnstile.d.ts.map +1 -1
- package/lib/services/turnstile.js +0 -1
- package/lib/services/turnstile.js.map +1 -1
- package/lib/services/user.d.ts +7 -131
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +0 -1
- package/lib/services/user.js.map +1 -1
- package/lib/services/vectorize.d.ts +1 -14
- package/lib/services/vectorize.d.ts.map +1 -1
- package/lib/services/vectorize.js +0 -1
- package/lib/services/vectorize.js.map +1 -1
- package/lib/services/waiting-rooms.d.ts +7 -121
- package/lib/services/waiting-rooms.d.ts.map +1 -1
- package/lib/services/waiting-rooms.js +0 -1
- package/lib/services/waiting-rooms.js.map +1 -1
- package/lib/services/web3.d.ts +1 -14
- package/lib/services/web3.d.ts.map +1 -1
- package/lib/services/web3.js +0 -1
- package/lib/services/web3.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +5 -165
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +0 -1
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +588 -339
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +1698 -776
- package/lib/services/workers.js.map +1 -1
- package/lib/services/workflows.d.ts +4 -55
- package/lib/services/workflows.d.ts.map +1 -1
- package/lib/services/workflows.js +0 -1
- package/lib/services/workflows.js.map +1 -1
- package/lib/services/zaraz.d.ts +1 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +0 -1
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +9340 -15045
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +0 -1
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +4 -94
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +0 -1
- package/lib/services/zones.js.map +1 -1
- package/package.json +3 -3
- package/src/services/abuse-reports.ts +3 -104
- package/src/services/accounts.ts +7 -299
- package/src/services/addressing.ts +8 -181
- package/src/services/ai-gateway.ts +5 -221
- package/src/services/ai.ts +6 -107
- package/src/services/aisearch.ts +4 -255
- package/src/services/alerting.ts +6 -263
- package/src/services/api-gateway.ts +6 -351
- package/src/services/audit-logs.ts +1 -31
- package/src/services/brand-protection.ts +1 -17
- package/src/services/calls.ts +2 -39
- package/src/services/client-certificates.ts +1 -42
- package/src/services/cloud-connector.ts +2 -53
- package/src/services/cloudforce-one.ts +6 -130
- package/src/services/connectivity.ts +1 -34
- package/src/services/content-scanning.ts +3 -49
- package/src/services/custom-certificates.ts +2 -85
- package/src/services/custom-hostnames.ts +1 -112
- package/src/services/custom-nameservers.ts +2 -37
- package/src/services/custom-pages.ts +1 -24
- package/src/services/d1.ts +3 -97
- package/src/services/diagnostics.ts +1 -51
- package/src/services/dns-firewall.ts +1 -32
- package/src/services/dns.ts +6 -152
- package/src/services/durable-objects.ts +2 -37
- package/src/services/email-routing.ts +3 -91
- package/src/services/email-security.ts +11 -419
- package/src/services/filters.ts +3 -61
- package/src/services/firewall.ts +13 -530
- package/src/services/healthchecks.ts +1 -63
- package/src/services/hostnames.ts +1 -21
- package/src/services/hyperdrive.ts +1 -49
- package/src/services/iam.ts +6 -139
- package/src/services/images.ts +1 -27
- package/src/services/intel.ts +6 -146
- package/src/services/keyless-certificates.ts +1 -26
- package/src/services/kv.ts +2 -33
- package/src/services/leaked-credential-checks.ts +1 -17
- package/src/services/load-balancers.ts +8 -401
- package/src/services/logpush.ts +3 -169
- package/src/services/magic-cloud-networking.ts +5 -573
- package/src/services/magic-network-monitoring.ts +1 -36
- package/src/services/magic-transit.ts +10 -338
- package/src/services/memberships.ts +1 -48
- package/src/services/mtls-certificates.ts +2 -41
- package/src/services/organizations.ts +1 -37
- package/src/services/origin-ca-certificates.ts +1 -23
- package/src/services/origin-tls-client-auth.ts +3 -62
- package/src/services/page-shield.ts +4 -115
- package/src/services/pages.ts +3 -338
- package/src/services/pipelines.ts +3 -333
- package/src/services/queues.ts +3 -133
- package/src/services/r2.ts +53 -84
- package/src/services/radar.ts +3 -89
- package/src/services/rate-limits.ts +1 -50
- package/src/services/registrar.ts +1 -68
- package/src/services/resource-sharing.ts +3 -111
- package/src/services/rules.ts +2 -76
- package/src/services/rulesets.ts +3 -136
- package/src/services/rum.ts +1 -38
- package/src/services/schema-validation.ts +2 -38
- package/src/services/secrets-store.ts +5 -99
- package/src/services/security-center.ts +1 -44
- package/src/services/snippets.ts +4 -80
- package/src/services/spectrum.ts +1 -48
- package/src/services/speed.ts +2 -219
- package/src/services/ssl.ts +1 -80
- package/src/services/stream.ts +6 -163
- package/src/services/token-validation.ts +4 -131
- package/src/services/turnstile.ts +1 -31
- package/src/services/user.ts +7 -213
- package/src/services/vectorize.ts +1 -24
- package/src/services/waiting-rooms.ts +7 -239
- package/src/services/web3.ts +1 -24
- package/src/services/workers-for-platforms.ts +5 -192
- package/src/services/workers.ts +2392 -1198
- package/src/services/workflows.ts +4 -111
- package/src/services/zaraz.ts +1 -21
- package/src/services/zero-trust.ts +347 -6158
- package/src/services/zones.ts +4 -131
package/src/services/workers.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* DO NOT EDIT - regenerate with: bun scripts/generate.ts --service workers
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import * as stream from "effect/Stream";
|
|
9
8
|
import * as Schema from "effect/Schema";
|
|
10
9
|
import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
11
10
|
import * as API from "../client/api.ts";
|
|
@@ -48,7 +47,10 @@ export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
|
|
|
48
47
|
"InvalidRoute",
|
|
49
48
|
{ code: Schema.Number, message: Schema.String },
|
|
50
49
|
) {}
|
|
51
|
-
T.applyErrorMatchers(InvalidRoute, [
|
|
50
|
+
T.applyErrorMatchers(InvalidRoute, [
|
|
51
|
+
{ code: 7003 },
|
|
52
|
+
{ code: 7003, message: { includes: "Could not route" } },
|
|
53
|
+
]);
|
|
52
54
|
|
|
53
55
|
export class InvalidRoutePattern extends Schema.TaggedErrorClass<InvalidRoutePattern>()(
|
|
54
56
|
"InvalidRoutePattern",
|
|
@@ -376,22 +378,7 @@ export const listBetaWorkers: API.PaginatedOperationMethod<
|
|
|
376
378
|
ListBetaWorkersResponse,
|
|
377
379
|
ListBetaWorkersError,
|
|
378
380
|
Credentials | HttpClient.HttpClient
|
|
379
|
-
>
|
|
380
|
-
pages: (
|
|
381
|
-
input: ListBetaWorkersRequest,
|
|
382
|
-
) => stream.Stream<
|
|
383
|
-
ListBetaWorkersResponse,
|
|
384
|
-
ListBetaWorkersError,
|
|
385
|
-
Credentials | HttpClient.HttpClient
|
|
386
|
-
>;
|
|
387
|
-
items: (
|
|
388
|
-
input: ListBetaWorkersRequest,
|
|
389
|
-
) => stream.Stream<
|
|
390
|
-
{ id: string; name: string },
|
|
391
|
-
ListBetaWorkersError,
|
|
392
|
-
Credentials | HttpClient.HttpClient
|
|
393
|
-
>;
|
|
394
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
381
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
395
382
|
input: ListBetaWorkersRequest,
|
|
396
383
|
output: ListBetaWorkersResponse,
|
|
397
384
|
errors: [InvalidRoute],
|
|
@@ -2353,178 +2340,7 @@ export const listBetaWorkerVersions: API.PaginatedOperationMethod<
|
|
|
2353
2340
|
ListBetaWorkerVersionsResponse,
|
|
2354
2341
|
ListBetaWorkerVersionsError,
|
|
2355
2342
|
Credentials | HttpClient.HttpClient
|
|
2356
|
-
>
|
|
2357
|
-
pages: (
|
|
2358
|
-
input: ListBetaWorkerVersionsRequest,
|
|
2359
|
-
) => stream.Stream<
|
|
2360
|
-
ListBetaWorkerVersionsResponse,
|
|
2361
|
-
ListBetaWorkerVersionsError,
|
|
2362
|
-
Credentials | HttpClient.HttpClient
|
|
2363
|
-
>;
|
|
2364
|
-
items: (input: ListBetaWorkerVersionsRequest) => stream.Stream<
|
|
2365
|
-
{
|
|
2366
|
-
id: string;
|
|
2367
|
-
createdOn: string;
|
|
2368
|
-
number: number;
|
|
2369
|
-
annotations?: {
|
|
2370
|
-
workersMessage?: string | null;
|
|
2371
|
-
workersTag?: string | null;
|
|
2372
|
-
workersTriggeredBy?: string | null;
|
|
2373
|
-
} | null;
|
|
2374
|
-
assets?: {
|
|
2375
|
-
config?: {
|
|
2376
|
-
htmlHandling?:
|
|
2377
|
-
| "auto-trailing-slash"
|
|
2378
|
-
| "force-trailing-slash"
|
|
2379
|
-
| "drop-trailing-slash"
|
|
2380
|
-
| "none"
|
|
2381
|
-
| null;
|
|
2382
|
-
notFoundHandling?:
|
|
2383
|
-
| "none"
|
|
2384
|
-
| "404-page"
|
|
2385
|
-
| "single-page-application"
|
|
2386
|
-
| null;
|
|
2387
|
-
runWorkerFirst?: string[] | boolean | null;
|
|
2388
|
-
} | null;
|
|
2389
|
-
jwt?: string | null;
|
|
2390
|
-
} | null;
|
|
2391
|
-
bindings?:
|
|
2392
|
-
| (
|
|
2393
|
-
| { name: string; type: "ai" }
|
|
2394
|
-
| { dataset: string; name: string; type: "analytics_engine" }
|
|
2395
|
-
| { name: string; type: "assets" }
|
|
2396
|
-
| { name: string; type: "browser" }
|
|
2397
|
-
| { id: string; name: string; type: "d1" }
|
|
2398
|
-
| { name: string; part: string; type: "data_blob" }
|
|
2399
|
-
| {
|
|
2400
|
-
name: string;
|
|
2401
|
-
namespace: string;
|
|
2402
|
-
type: "dispatch_namespace";
|
|
2403
|
-
outbound?: {
|
|
2404
|
-
params?: string[] | null;
|
|
2405
|
-
worker?: {
|
|
2406
|
-
environment?: string | null;
|
|
2407
|
-
service?: string | null;
|
|
2408
|
-
} | null;
|
|
2409
|
-
} | null;
|
|
2410
|
-
}
|
|
2411
|
-
| {
|
|
2412
|
-
name: string;
|
|
2413
|
-
type: "durable_object_namespace";
|
|
2414
|
-
className?: string | null;
|
|
2415
|
-
environment?: string | null;
|
|
2416
|
-
namespaceId?: string | null;
|
|
2417
|
-
scriptName?: string | null;
|
|
2418
|
-
}
|
|
2419
|
-
| { id: string; name: string; type: "hyperdrive" }
|
|
2420
|
-
| {
|
|
2421
|
-
name: string;
|
|
2422
|
-
type: "inherit";
|
|
2423
|
-
oldName?: string | null;
|
|
2424
|
-
versionId?: string | null;
|
|
2425
|
-
}
|
|
2426
|
-
| { name: string; type: "images" }
|
|
2427
|
-
| { json: string; name: string; type: "json" }
|
|
2428
|
-
| { name: string; namespaceId: string; type: "kv_namespace" }
|
|
2429
|
-
| { certificateId: string; name: string; type: "mtls_certificate" }
|
|
2430
|
-
| { name: string; text: string; type: "plain_text" }
|
|
2431
|
-
| { name: string; pipeline: string; type: "pipelines" }
|
|
2432
|
-
| { name: string; queueName: string; type: "queue" }
|
|
2433
|
-
| {
|
|
2434
|
-
bucketName: string;
|
|
2435
|
-
name: string;
|
|
2436
|
-
type: "r2_bucket";
|
|
2437
|
-
jurisdiction?: "eu" | "fedramp" | null;
|
|
2438
|
-
}
|
|
2439
|
-
| { name: string; type: "secret_text" }
|
|
2440
|
-
| {
|
|
2441
|
-
name: string;
|
|
2442
|
-
type: "send_email";
|
|
2443
|
-
allowedDestinationAddresses?: string[] | null;
|
|
2444
|
-
allowedSenderAddresses?: string[] | null;
|
|
2445
|
-
destinationAddress?: string | null;
|
|
2446
|
-
}
|
|
2447
|
-
| {
|
|
2448
|
-
name: string;
|
|
2449
|
-
service: string;
|
|
2450
|
-
type: "service";
|
|
2451
|
-
environment?: string | null;
|
|
2452
|
-
}
|
|
2453
|
-
| { name: string; part: string; type: "text_blob" }
|
|
2454
|
-
| { indexName: string; name: string; type: "vectorize" }
|
|
2455
|
-
| { name: string; type: "version_metadata" }
|
|
2456
|
-
| {
|
|
2457
|
-
name: string;
|
|
2458
|
-
secretName: string;
|
|
2459
|
-
storeId: string;
|
|
2460
|
-
type: "secrets_store_secret";
|
|
2461
|
-
}
|
|
2462
|
-
| {
|
|
2463
|
-
algorithm: unknown;
|
|
2464
|
-
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
2465
|
-
name: string;
|
|
2466
|
-
type: "secret_key";
|
|
2467
|
-
usages: (
|
|
2468
|
-
| "encrypt"
|
|
2469
|
-
| "decrypt"
|
|
2470
|
-
| "sign"
|
|
2471
|
-
| "verify"
|
|
2472
|
-
| "deriveKey"
|
|
2473
|
-
| "deriveBits"
|
|
2474
|
-
| "wrapKey"
|
|
2475
|
-
| "unwrapKey"
|
|
2476
|
-
)[];
|
|
2477
|
-
}
|
|
2478
|
-
| {
|
|
2479
|
-
name: string;
|
|
2480
|
-
type: "workflow";
|
|
2481
|
-
workflowName: string;
|
|
2482
|
-
className?: string | null;
|
|
2483
|
-
scriptName?: string | null;
|
|
2484
|
-
}
|
|
2485
|
-
| { name: string; part: string; type: "wasm_module" }
|
|
2486
|
-
)[]
|
|
2487
|
-
| null;
|
|
2488
|
-
compatibilityDate?: string | null;
|
|
2489
|
-
compatibilityFlags?: string[] | null;
|
|
2490
|
-
limits?: { cpuMs: number } | null;
|
|
2491
|
-
mainModule?: string | null;
|
|
2492
|
-
migrations?:
|
|
2493
|
-
| unknown
|
|
2494
|
-
| {
|
|
2495
|
-
newTag?: string | null;
|
|
2496
|
-
oldTag?: string | null;
|
|
2497
|
-
steps?:
|
|
2498
|
-
| {
|
|
2499
|
-
deletedClasses?: string[] | null;
|
|
2500
|
-
newClasses?: string[] | null;
|
|
2501
|
-
newSqliteClasses?: string[] | null;
|
|
2502
|
-
renamedClasses?:
|
|
2503
|
-
| { from?: string | null; to?: string | null }[]
|
|
2504
|
-
| null;
|
|
2505
|
-
transferredClasses?:
|
|
2506
|
-
| {
|
|
2507
|
-
from?: string | null;
|
|
2508
|
-
fromScript?: string | null;
|
|
2509
|
-
to?: string | null;
|
|
2510
|
-
}[]
|
|
2511
|
-
| null;
|
|
2512
|
-
}[]
|
|
2513
|
-
| null;
|
|
2514
|
-
}
|
|
2515
|
-
| null;
|
|
2516
|
-
modules?:
|
|
2517
|
-
| { contentBase64: string; contentType: string; name: string }[]
|
|
2518
|
-
| null;
|
|
2519
|
-
placement?: { mode?: "smart" | null } | null;
|
|
2520
|
-
source?: string | null;
|
|
2521
|
-
startupTimeMs?: number | null;
|
|
2522
|
-
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
2523
|
-
},
|
|
2524
|
-
ListBetaWorkerVersionsError,
|
|
2525
|
-
Credentials | HttpClient.HttpClient
|
|
2526
|
-
>;
|
|
2527
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2343
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
2528
2344
|
input: ListBetaWorkerVersionsRequest,
|
|
2529
2345
|
output: ListBetaWorkerVersionsResponse,
|
|
2530
2346
|
errors: [WorkerNotFound],
|
|
@@ -4101,27 +3917,7 @@ export const listDomains: API.PaginatedOperationMethod<
|
|
|
4101
3917
|
ListDomainsResponse,
|
|
4102
3918
|
ListDomainsError,
|
|
4103
3919
|
Credentials | HttpClient.HttpClient
|
|
4104
|
-
>
|
|
4105
|
-
pages: (
|
|
4106
|
-
input: ListDomainsRequest,
|
|
4107
|
-
) => stream.Stream<
|
|
4108
|
-
ListDomainsResponse,
|
|
4109
|
-
ListDomainsError,
|
|
4110
|
-
Credentials | HttpClient.HttpClient
|
|
4111
|
-
>;
|
|
4112
|
-
items: (input: ListDomainsRequest) => stream.Stream<
|
|
4113
|
-
{
|
|
4114
|
-
id?: string | null;
|
|
4115
|
-
environment?: string | null;
|
|
4116
|
-
hostname?: string | null;
|
|
4117
|
-
service?: string | null;
|
|
4118
|
-
zoneId?: string | null;
|
|
4119
|
-
zoneName?: string | null;
|
|
4120
|
-
},
|
|
4121
|
-
ListDomainsError,
|
|
4122
|
-
Credentials | HttpClient.HttpClient
|
|
4123
|
-
>;
|
|
4124
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
3920
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
4125
3921
|
input: ListDomainsRequest,
|
|
4126
3922
|
output: ListDomainsResponse,
|
|
4127
3923
|
errors: [InvalidRoute],
|
|
@@ -4403,22 +4199,7 @@ export const keysObservabilityTelemetry: API.PaginatedOperationMethod<
|
|
|
4403
4199
|
KeysObservabilityTelemetryResponse,
|
|
4404
4200
|
KeysObservabilityTelemetryError,
|
|
4405
4201
|
Credentials | HttpClient.HttpClient
|
|
4406
|
-
>
|
|
4407
|
-
pages: (
|
|
4408
|
-
input: KeysObservabilityTelemetryRequest,
|
|
4409
|
-
) => stream.Stream<
|
|
4410
|
-
KeysObservabilityTelemetryResponse,
|
|
4411
|
-
KeysObservabilityTelemetryError,
|
|
4412
|
-
Credentials | HttpClient.HttpClient
|
|
4413
|
-
>;
|
|
4414
|
-
items: (
|
|
4415
|
-
input: KeysObservabilityTelemetryRequest,
|
|
4416
|
-
) => stream.Stream<
|
|
4417
|
-
{ key: string; lastSeenAt: number; type: "string" | "boolean" | "number" },
|
|
4418
|
-
KeysObservabilityTelemetryError,
|
|
4419
|
-
Credentials | HttpClient.HttpClient
|
|
4420
|
-
>;
|
|
4421
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
4202
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
4422
4203
|
input: KeysObservabilityTelemetryRequest,
|
|
4423
4204
|
output: KeysObservabilityTelemetryResponse,
|
|
4424
4205
|
errors: [InvalidRoute],
|
|
@@ -6001,25 +5782,7 @@ export const valuesObservabilityTelemetry: API.PaginatedOperationMethod<
|
|
|
6001
5782
|
ValuesObservabilityTelemetryResponse,
|
|
6002
5783
|
ValuesObservabilityTelemetryError,
|
|
6003
5784
|
Credentials | HttpClient.HttpClient
|
|
6004
|
-
>
|
|
6005
|
-
pages: (
|
|
6006
|
-
input: ValuesObservabilityTelemetryRequest,
|
|
6007
|
-
) => stream.Stream<
|
|
6008
|
-
ValuesObservabilityTelemetryResponse,
|
|
6009
|
-
ValuesObservabilityTelemetryError,
|
|
6010
|
-
Credentials | HttpClient.HttpClient
|
|
6011
|
-
>;
|
|
6012
|
-
items: (input: ValuesObservabilityTelemetryRequest) => stream.Stream<
|
|
6013
|
-
{
|
|
6014
|
-
dataset: string;
|
|
6015
|
-
key: string;
|
|
6016
|
-
type: "string" | "boolean" | "number";
|
|
6017
|
-
value: string | number | boolean;
|
|
6018
|
-
},
|
|
6019
|
-
ValuesObservabilityTelemetryError,
|
|
6020
|
-
Credentials | HttpClient.HttpClient
|
|
6021
|
-
>;
|
|
6022
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
5785
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
6023
5786
|
input: ValuesObservabilityTelemetryRequest,
|
|
6024
5787
|
output: ValuesObservabilityTelemetryResponse,
|
|
6025
5788
|
errors: [InvalidRoute],
|
|
@@ -6106,22 +5869,7 @@ export const listRoutes: API.PaginatedOperationMethod<
|
|
|
6106
5869
|
ListRoutesResponse,
|
|
6107
5870
|
ListRoutesError,
|
|
6108
5871
|
Credentials | HttpClient.HttpClient
|
|
6109
|
-
>
|
|
6110
|
-
pages: (
|
|
6111
|
-
input: ListRoutesRequest,
|
|
6112
|
-
) => stream.Stream<
|
|
6113
|
-
ListRoutesResponse,
|
|
6114
|
-
ListRoutesError,
|
|
6115
|
-
Credentials | HttpClient.HttpClient
|
|
6116
|
-
>;
|
|
6117
|
-
items: (
|
|
6118
|
-
input: ListRoutesRequest,
|
|
6119
|
-
) => stream.Stream<
|
|
6120
|
-
{ id: string; pattern: string; script?: string | null },
|
|
6121
|
-
ListRoutesError,
|
|
6122
|
-
Credentials | HttpClient.HttpClient
|
|
6123
|
-
>;
|
|
6124
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
5872
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
6125
5873
|
input: ListRoutesRequest,
|
|
6126
5874
|
output: ListRoutesResponse,
|
|
6127
5875
|
errors: [InvalidRoute],
|
|
@@ -6674,102 +6422,7 @@ export const listScripts: API.PaginatedOperationMethod<
|
|
|
6674
6422
|
ListScriptsResponse,
|
|
6675
6423
|
ListScriptsError,
|
|
6676
6424
|
Credentials | HttpClient.HttpClient
|
|
6677
|
-
>
|
|
6678
|
-
pages: (
|
|
6679
|
-
input: ListScriptsRequest,
|
|
6680
|
-
) => stream.Stream<
|
|
6681
|
-
ListScriptsResponse,
|
|
6682
|
-
ListScriptsError,
|
|
6683
|
-
Credentials | HttpClient.HttpClient
|
|
6684
|
-
>;
|
|
6685
|
-
items: (input: ListScriptsRequest) => stream.Stream<
|
|
6686
|
-
{
|
|
6687
|
-
id?: string | null;
|
|
6688
|
-
compatibilityDate?: string | null;
|
|
6689
|
-
compatibilityFlags?: string[] | null;
|
|
6690
|
-
createdOn?: string | null;
|
|
6691
|
-
etag?: string | null;
|
|
6692
|
-
handlers?: string[] | null;
|
|
6693
|
-
hasAssets?: boolean | null;
|
|
6694
|
-
hasModules?: boolean | null;
|
|
6695
|
-
lastDeployedFrom?: string | null;
|
|
6696
|
-
logpush?: boolean | null;
|
|
6697
|
-
migrationTag?: string | null;
|
|
6698
|
-
modifiedOn?: string | null;
|
|
6699
|
-
namedHandlers?:
|
|
6700
|
-
| { handlers?: string[] | null; name?: string | null }[]
|
|
6701
|
-
| null;
|
|
6702
|
-
observability?: {
|
|
6703
|
-
enabled: boolean;
|
|
6704
|
-
headSamplingRate?: number | null;
|
|
6705
|
-
logs?: {
|
|
6706
|
-
enabled: boolean;
|
|
6707
|
-
invocationLogs: boolean;
|
|
6708
|
-
destinations?: string[] | null;
|
|
6709
|
-
headSamplingRate?: number | null;
|
|
6710
|
-
persist?: boolean | null;
|
|
6711
|
-
} | null;
|
|
6712
|
-
} | null;
|
|
6713
|
-
placement?:
|
|
6714
|
-
| {
|
|
6715
|
-
mode: "smart";
|
|
6716
|
-
lastAnalyzedAt?: string | null;
|
|
6717
|
-
status?:
|
|
6718
|
-
| "SUCCESS"
|
|
6719
|
-
| "UNSUPPORTED_APPLICATION"
|
|
6720
|
-
| "INSUFFICIENT_INVOCATIONS"
|
|
6721
|
-
| null;
|
|
6722
|
-
}
|
|
6723
|
-
| {
|
|
6724
|
-
region: string;
|
|
6725
|
-
lastAnalyzedAt?: string | null;
|
|
6726
|
-
status?:
|
|
6727
|
-
| "SUCCESS"
|
|
6728
|
-
| "UNSUPPORTED_APPLICATION"
|
|
6729
|
-
| "INSUFFICIENT_INVOCATIONS"
|
|
6730
|
-
| null;
|
|
6731
|
-
}
|
|
6732
|
-
| {
|
|
6733
|
-
hostname: string;
|
|
6734
|
-
lastAnalyzedAt?: string | null;
|
|
6735
|
-
status?:
|
|
6736
|
-
| "SUCCESS"
|
|
6737
|
-
| "UNSUPPORTED_APPLICATION"
|
|
6738
|
-
| "INSUFFICIENT_INVOCATIONS"
|
|
6739
|
-
| null;
|
|
6740
|
-
}
|
|
6741
|
-
| {
|
|
6742
|
-
host: string;
|
|
6743
|
-
lastAnalyzedAt?: string | null;
|
|
6744
|
-
status?:
|
|
6745
|
-
| "SUCCESS"
|
|
6746
|
-
| "UNSUPPORTED_APPLICATION"
|
|
6747
|
-
| "INSUFFICIENT_INVOCATIONS"
|
|
6748
|
-
| null;
|
|
6749
|
-
}
|
|
6750
|
-
| null;
|
|
6751
|
-
placementMode?: "smart" | null;
|
|
6752
|
-
placementStatus?:
|
|
6753
|
-
| "SUCCESS"
|
|
6754
|
-
| "UNSUPPORTED_APPLICATION"
|
|
6755
|
-
| "INSUFFICIENT_INVOCATIONS"
|
|
6756
|
-
| null;
|
|
6757
|
-
routes?: { id: string; pattern: string; script?: string | null }[] | null;
|
|
6758
|
-
tag?: string | null;
|
|
6759
|
-
tags?: string[] | null;
|
|
6760
|
-
tailConsumers?:
|
|
6761
|
-
| {
|
|
6762
|
-
service: string;
|
|
6763
|
-
environment?: string | null;
|
|
6764
|
-
namespace?: string | null;
|
|
6765
|
-
}[]
|
|
6766
|
-
| null;
|
|
6767
|
-
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
6768
|
-
},
|
|
6769
|
-
ListScriptsError,
|
|
6770
|
-
Credentials | HttpClient.HttpClient
|
|
6771
|
-
>;
|
|
6772
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
6425
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
6773
6426
|
input: ListScriptsRequest,
|
|
6774
6427
|
output: ListScriptsResponse,
|
|
6775
6428
|
errors: [InvalidRoute],
|
|
@@ -8894,104 +8547,858 @@ export const deleteScriptDeployment: API.OperationMethod<
|
|
|
8894
8547
|
}));
|
|
8895
8548
|
|
|
8896
8549
|
// =============================================================================
|
|
8897
|
-
//
|
|
8550
|
+
// ScriptEdgePreview
|
|
8898
8551
|
// =============================================================================
|
|
8899
8552
|
|
|
8900
|
-
export interface
|
|
8901
|
-
scriptName: string;
|
|
8902
|
-
/** Identifier. */
|
|
8553
|
+
export interface CreateScriptEdgePreviewRequest {
|
|
8903
8554
|
accountId: string;
|
|
8904
|
-
}
|
|
8905
|
-
|
|
8906
|
-
export const GetScriptScheduleRequest =
|
|
8907
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8908
|
-
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
8909
|
-
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8910
|
-
}).pipe(
|
|
8911
|
-
T.Http({
|
|
8912
|
-
method: "GET",
|
|
8913
|
-
path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
|
|
8914
|
-
}),
|
|
8915
|
-
) as unknown as Schema.Schema<GetScriptScheduleRequest>;
|
|
8916
|
-
|
|
8917
|
-
export interface GetScriptScheduleResponse {
|
|
8918
|
-
schedules: {
|
|
8919
|
-
cron: string;
|
|
8920
|
-
createdOn?: string | null;
|
|
8921
|
-
modifiedOn?: string | null;
|
|
8922
|
-
}[];
|
|
8923
|
-
}
|
|
8924
|
-
|
|
8925
|
-
export const GetScriptScheduleResponse =
|
|
8926
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8927
|
-
schedules: Schema.Array(
|
|
8928
|
-
Schema.Struct({
|
|
8929
|
-
cron: Schema.String,
|
|
8930
|
-
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8931
|
-
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8932
|
-
}).pipe(
|
|
8933
|
-
Schema.encodeKeys({
|
|
8934
|
-
cron: "cron",
|
|
8935
|
-
createdOn: "created_on",
|
|
8936
|
-
modifiedOn: "modified_on",
|
|
8937
|
-
}),
|
|
8938
|
-
),
|
|
8939
|
-
),
|
|
8940
|
-
}).pipe(
|
|
8941
|
-
T.ResponsePath("result"),
|
|
8942
|
-
) as unknown as Schema.Schema<GetScriptScheduleResponse>;
|
|
8943
|
-
|
|
8944
|
-
export type GetScriptScheduleError = DefaultErrors | WorkerNotFound;
|
|
8945
|
-
|
|
8946
|
-
export const getScriptSchedule: API.OperationMethod<
|
|
8947
|
-
GetScriptScheduleRequest,
|
|
8948
|
-
GetScriptScheduleResponse,
|
|
8949
|
-
GetScriptScheduleError,
|
|
8950
|
-
Credentials | HttpClient.HttpClient
|
|
8951
|
-
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
8952
|
-
input: GetScriptScheduleRequest,
|
|
8953
|
-
output: GetScriptScheduleResponse,
|
|
8954
|
-
errors: [WorkerNotFound],
|
|
8955
|
-
}));
|
|
8956
|
-
|
|
8957
|
-
export interface PutScriptScheduleRequest {
|
|
8958
8555
|
scriptName: string;
|
|
8959
|
-
/**
|
|
8960
|
-
|
|
8961
|
-
|
|
8962
|
-
|
|
8556
|
+
/** The session token returned by createZoneEdgePreviewSession or createSubdomainEdgePreviewSession. */
|
|
8557
|
+
cfPreviewUploadConfigToken: string;
|
|
8558
|
+
metadata?: {
|
|
8559
|
+
mainModule?: string;
|
|
8560
|
+
bodyPart?: string;
|
|
8561
|
+
compatibilityDate?: string;
|
|
8562
|
+
compatibilityFlags?: string[];
|
|
8563
|
+
usageModel?: "bundled" | "unbound" | "standard";
|
|
8564
|
+
bindings?: (
|
|
8565
|
+
| { type: "plain_text"; name: string; text: string }
|
|
8566
|
+
| { type: "secret_text"; name: string; text: string }
|
|
8567
|
+
| { type: "json"; name: string; json: unknown }
|
|
8568
|
+
| {
|
|
8569
|
+
type: "kv_namespace";
|
|
8570
|
+
name: string;
|
|
8571
|
+
namespaceId: string;
|
|
8572
|
+
raw?: boolean;
|
|
8573
|
+
}
|
|
8574
|
+
| {
|
|
8575
|
+
type: "durable_object_namespace";
|
|
8576
|
+
name: string;
|
|
8577
|
+
className: string;
|
|
8578
|
+
scriptName?: string;
|
|
8579
|
+
environment?: string;
|
|
8580
|
+
namespaceId?: string;
|
|
8581
|
+
}
|
|
8582
|
+
| {
|
|
8583
|
+
type: "r2_bucket";
|
|
8584
|
+
name: string;
|
|
8585
|
+
bucketName: string;
|
|
8586
|
+
jurisdiction?: string;
|
|
8587
|
+
raw?: boolean;
|
|
8588
|
+
}
|
|
8589
|
+
| { type: "d1"; name: string; id: string; raw?: boolean }
|
|
8590
|
+
| {
|
|
8591
|
+
type: "queue";
|
|
8592
|
+
name: string;
|
|
8593
|
+
queueName: string;
|
|
8594
|
+
deliveryDelay?: number;
|
|
8595
|
+
raw?: boolean;
|
|
8596
|
+
}
|
|
8597
|
+
| {
|
|
8598
|
+
type: "service";
|
|
8599
|
+
name: string;
|
|
8600
|
+
service: string;
|
|
8601
|
+
environment?: string;
|
|
8602
|
+
entrypoint?: string;
|
|
8603
|
+
}
|
|
8604
|
+
| { type: "ai"; name: string; staging?: boolean; raw?: boolean }
|
|
8605
|
+
| { type: "browser"; name: string; raw?: boolean }
|
|
8606
|
+
| { type: "images"; name: string; raw?: boolean }
|
|
8607
|
+
| { type: "vectorize"; name: string; indexName: string; raw?: boolean }
|
|
8608
|
+
| {
|
|
8609
|
+
type: "workflow";
|
|
8610
|
+
name: string;
|
|
8611
|
+
workflowName: string;
|
|
8612
|
+
className: string;
|
|
8613
|
+
scriptName?: string;
|
|
8614
|
+
raw?: boolean;
|
|
8615
|
+
}
|
|
8616
|
+
| { type: "hyperdrive"; name: string; id: string }
|
|
8617
|
+
| { type: "analytics_engine"; name: string; dataset?: string }
|
|
8618
|
+
| {
|
|
8619
|
+
type: "dispatch_namespace";
|
|
8620
|
+
name: string;
|
|
8621
|
+
namespace: string;
|
|
8622
|
+
outbound?: {
|
|
8623
|
+
worker?: { service?: string; environment?: string };
|
|
8624
|
+
params?: { name: string }[];
|
|
8625
|
+
};
|
|
8626
|
+
}
|
|
8627
|
+
| {
|
|
8628
|
+
type: "send_email";
|
|
8629
|
+
name: string;
|
|
8630
|
+
destinationAddress?: string;
|
|
8631
|
+
allowedDestinationAddresses?: string[];
|
|
8632
|
+
allowedSenderAddresses?: string[];
|
|
8633
|
+
}
|
|
8634
|
+
| { type: "mtls_certificate"; name: string; certificateId: string }
|
|
8635
|
+
| { type: "wasm_module"; name: string; part: string }
|
|
8636
|
+
| { type: "text_blob"; name: string; part: string }
|
|
8637
|
+
| { type: "data_blob"; name: string; part: string }
|
|
8638
|
+
| { type: "pipelines"; name: string; pipeline: string }
|
|
8639
|
+
| {
|
|
8640
|
+
type: "secrets_store_secret";
|
|
8641
|
+
name: string;
|
|
8642
|
+
storeId: string;
|
|
8643
|
+
secretName: string;
|
|
8644
|
+
}
|
|
8645
|
+
| { type: "stream"; name: string }
|
|
8646
|
+
| { type: "media"; name: string }
|
|
8647
|
+
| { type: "version_metadata"; name: string }
|
|
8648
|
+
| { type: "assets"; name: string }
|
|
8649
|
+
| { type: "worker_loader"; name: string }
|
|
8650
|
+
| { type: "logfwdr"; name: string; destination: string }
|
|
8651
|
+
| { type: "ai_search_namespace"; name: string; namespace: string }
|
|
8652
|
+
| { type: "ai_search"; name: string; instanceName: string }
|
|
8653
|
+
| {
|
|
8654
|
+
type: "ratelimit";
|
|
8655
|
+
name: string;
|
|
8656
|
+
namespaceId: string;
|
|
8657
|
+
simple: { limit: number; period: "10" | "60" };
|
|
8658
|
+
}
|
|
8659
|
+
| { type: "inherit"; name: string }
|
|
8660
|
+
)[];
|
|
8661
|
+
keepBindings?: string[];
|
|
8662
|
+
migrations?: {
|
|
8663
|
+
oldTag?: string;
|
|
8664
|
+
newTag?: string;
|
|
8665
|
+
steps?: {
|
|
8666
|
+
newClasses?: string[];
|
|
8667
|
+
newSqliteClasses?: string[];
|
|
8668
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
8669
|
+
deletedClasses?: string[];
|
|
8670
|
+
}[];
|
|
8671
|
+
};
|
|
8672
|
+
capnpSchema?: string;
|
|
8673
|
+
logpush?: boolean;
|
|
8674
|
+
placement?:
|
|
8675
|
+
| { mode: "smart"; hint?: string }
|
|
8676
|
+
| { region: string }
|
|
8677
|
+
| { host: string }
|
|
8678
|
+
| { hostname: string };
|
|
8679
|
+
tailConsumers?: { service: string; environment?: string }[];
|
|
8680
|
+
streamingTailConsumers?: { service: string; environment?: string }[];
|
|
8681
|
+
limits?: { cpuMs?: number; subrequests?: number };
|
|
8682
|
+
assets?: {
|
|
8683
|
+
jwt?: string;
|
|
8684
|
+
config?: {
|
|
8685
|
+
htmlHandling?:
|
|
8686
|
+
| "auto-trailing-slash"
|
|
8687
|
+
| "force-trailing-slash"
|
|
8688
|
+
| "drop-trailing-slash"
|
|
8689
|
+
| "none";
|
|
8690
|
+
notFoundHandling?: "single-page-application" | "404-page" | "none";
|
|
8691
|
+
runWorkerFirst?: boolean | string[];
|
|
8692
|
+
redirects?: string;
|
|
8693
|
+
headers?: string;
|
|
8694
|
+
};
|
|
8695
|
+
};
|
|
8696
|
+
observability?: {
|
|
8697
|
+
enabled?: boolean;
|
|
8698
|
+
headSamplingRate?: number;
|
|
8699
|
+
logs?: {
|
|
8700
|
+
enabled?: boolean;
|
|
8701
|
+
headSamplingRate?: number;
|
|
8702
|
+
invocationLogs?: boolean;
|
|
8703
|
+
persist?: boolean;
|
|
8704
|
+
destinations?: string[];
|
|
8705
|
+
};
|
|
8706
|
+
traces?: {
|
|
8707
|
+
enabled?: boolean;
|
|
8708
|
+
headSamplingRate?: number;
|
|
8709
|
+
persist?: boolean;
|
|
8710
|
+
destinations?: string[];
|
|
8711
|
+
};
|
|
8712
|
+
};
|
|
8713
|
+
containers?: { className: string }[];
|
|
8714
|
+
annotations?: unknown;
|
|
8715
|
+
keepAssets?: boolean;
|
|
8716
|
+
tags?: string[];
|
|
8717
|
+
};
|
|
8718
|
+
/** Module files comprising the worker script. */
|
|
8719
|
+
files?: (File | Blob)[];
|
|
8720
|
+
wranglerSessionConfig?:
|
|
8721
|
+
| { workersDev: true; minimalMode?: boolean }
|
|
8722
|
+
| { routes: string[]; minimalMode?: boolean };
|
|
8963
8723
|
}
|
|
8964
8724
|
|
|
8965
|
-
export const
|
|
8725
|
+
export const CreateScriptEdgePreviewRequest =
|
|
8966
8726
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8967
|
-
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
8968
8727
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
}).pipe(
|
|
8975
|
-
T.Http({
|
|
8976
|
-
method: "PUT",
|
|
8977
|
-
path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
|
|
8978
|
-
}),
|
|
8979
|
-
) as unknown as Schema.Schema<PutScriptScheduleRequest>;
|
|
8980
|
-
|
|
8981
|
-
export interface PutScriptScheduleResponse {
|
|
8982
|
-
schedules: {
|
|
8983
|
-
cron: string;
|
|
8984
|
-
createdOn?: string | null;
|
|
8985
|
-
modifiedOn?: string | null;
|
|
8986
|
-
}[];
|
|
8987
|
-
}
|
|
8988
|
-
|
|
8989
|
-
export const PutScriptScheduleResponse =
|
|
8990
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8991
|
-
schedules: Schema.Array(
|
|
8728
|
+
scriptName: Schema.String.pipe(T.HttpPath("script_name")),
|
|
8729
|
+
cfPreviewUploadConfigToken: Schema.String.pipe(
|
|
8730
|
+
T.HttpHeader("cf-preview-upload-config-token"),
|
|
8731
|
+
),
|
|
8732
|
+
metadata: Schema.optional(
|
|
8992
8733
|
Schema.Struct({
|
|
8993
|
-
|
|
8994
|
-
|
|
8734
|
+
mainModule: Schema.optional(Schema.String),
|
|
8735
|
+
bodyPart: Schema.optional(Schema.String),
|
|
8736
|
+
compatibilityDate: Schema.optional(Schema.String),
|
|
8737
|
+
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
8738
|
+
usageModel: Schema.optional(
|
|
8739
|
+
Schema.Literals(["bundled", "unbound", "standard"]),
|
|
8740
|
+
),
|
|
8741
|
+
bindings: Schema.optional(
|
|
8742
|
+
Schema.Array(
|
|
8743
|
+
Schema.Union([
|
|
8744
|
+
Schema.Struct({
|
|
8745
|
+
type: Schema.Literal("plain_text"),
|
|
8746
|
+
name: Schema.String,
|
|
8747
|
+
text: Schema.String,
|
|
8748
|
+
}),
|
|
8749
|
+
Schema.Struct({
|
|
8750
|
+
type: Schema.Literal("secret_text"),
|
|
8751
|
+
name: Schema.String,
|
|
8752
|
+
text: Schema.String,
|
|
8753
|
+
}),
|
|
8754
|
+
Schema.Struct({
|
|
8755
|
+
type: Schema.Literal("json"),
|
|
8756
|
+
name: Schema.String,
|
|
8757
|
+
json: Schema.Unknown,
|
|
8758
|
+
}),
|
|
8759
|
+
Schema.Struct({
|
|
8760
|
+
type: Schema.Literal("kv_namespace"),
|
|
8761
|
+
name: Schema.String,
|
|
8762
|
+
namespaceId: Schema.String,
|
|
8763
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8764
|
+
}).pipe(
|
|
8765
|
+
Schema.encodeKeys({
|
|
8766
|
+
type: "type",
|
|
8767
|
+
name: "name",
|
|
8768
|
+
namespaceId: "namespace_id",
|
|
8769
|
+
raw: "raw",
|
|
8770
|
+
}),
|
|
8771
|
+
),
|
|
8772
|
+
Schema.Struct({
|
|
8773
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
8774
|
+
name: Schema.String,
|
|
8775
|
+
className: Schema.String,
|
|
8776
|
+
scriptName: Schema.optional(Schema.String),
|
|
8777
|
+
environment: Schema.optional(Schema.String),
|
|
8778
|
+
namespaceId: Schema.optional(Schema.String),
|
|
8779
|
+
}).pipe(
|
|
8780
|
+
Schema.encodeKeys({
|
|
8781
|
+
type: "type",
|
|
8782
|
+
name: "name",
|
|
8783
|
+
className: "class_name",
|
|
8784
|
+
scriptName: "script_name",
|
|
8785
|
+
environment: "environment",
|
|
8786
|
+
namespaceId: "namespace_id",
|
|
8787
|
+
}),
|
|
8788
|
+
),
|
|
8789
|
+
Schema.Struct({
|
|
8790
|
+
type: Schema.Literal("r2_bucket"),
|
|
8791
|
+
name: Schema.String,
|
|
8792
|
+
bucketName: Schema.String,
|
|
8793
|
+
jurisdiction: Schema.optional(Schema.String),
|
|
8794
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8795
|
+
}).pipe(
|
|
8796
|
+
Schema.encodeKeys({
|
|
8797
|
+
type: "type",
|
|
8798
|
+
name: "name",
|
|
8799
|
+
bucketName: "bucket_name",
|
|
8800
|
+
jurisdiction: "jurisdiction",
|
|
8801
|
+
raw: "raw",
|
|
8802
|
+
}),
|
|
8803
|
+
),
|
|
8804
|
+
Schema.Struct({
|
|
8805
|
+
type: Schema.Literal("d1"),
|
|
8806
|
+
name: Schema.String,
|
|
8807
|
+
id: Schema.String,
|
|
8808
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8809
|
+
}),
|
|
8810
|
+
Schema.Struct({
|
|
8811
|
+
type: Schema.Literal("queue"),
|
|
8812
|
+
name: Schema.String,
|
|
8813
|
+
queueName: Schema.String,
|
|
8814
|
+
deliveryDelay: Schema.optional(Schema.Number),
|
|
8815
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8816
|
+
}).pipe(
|
|
8817
|
+
Schema.encodeKeys({
|
|
8818
|
+
type: "type",
|
|
8819
|
+
name: "name",
|
|
8820
|
+
queueName: "queue_name",
|
|
8821
|
+
deliveryDelay: "delivery_delay",
|
|
8822
|
+
raw: "raw",
|
|
8823
|
+
}),
|
|
8824
|
+
),
|
|
8825
|
+
Schema.Struct({
|
|
8826
|
+
type: Schema.Literal("service"),
|
|
8827
|
+
name: Schema.String,
|
|
8828
|
+
service: Schema.String,
|
|
8829
|
+
environment: Schema.optional(Schema.String),
|
|
8830
|
+
entrypoint: Schema.optional(Schema.String),
|
|
8831
|
+
}),
|
|
8832
|
+
Schema.Struct({
|
|
8833
|
+
type: Schema.Literal("ai"),
|
|
8834
|
+
name: Schema.String,
|
|
8835
|
+
staging: Schema.optional(Schema.Boolean),
|
|
8836
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8837
|
+
}),
|
|
8838
|
+
Schema.Struct({
|
|
8839
|
+
type: Schema.Literal("browser"),
|
|
8840
|
+
name: Schema.String,
|
|
8841
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8842
|
+
}),
|
|
8843
|
+
Schema.Struct({
|
|
8844
|
+
type: Schema.Literal("images"),
|
|
8845
|
+
name: Schema.String,
|
|
8846
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8847
|
+
}),
|
|
8848
|
+
Schema.Struct({
|
|
8849
|
+
type: Schema.Literal("vectorize"),
|
|
8850
|
+
name: Schema.String,
|
|
8851
|
+
indexName: Schema.String,
|
|
8852
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8853
|
+
}).pipe(
|
|
8854
|
+
Schema.encodeKeys({
|
|
8855
|
+
type: "type",
|
|
8856
|
+
name: "name",
|
|
8857
|
+
indexName: "index_name",
|
|
8858
|
+
raw: "raw",
|
|
8859
|
+
}),
|
|
8860
|
+
),
|
|
8861
|
+
Schema.Struct({
|
|
8862
|
+
type: Schema.Literal("workflow"),
|
|
8863
|
+
name: Schema.String,
|
|
8864
|
+
workflowName: Schema.String,
|
|
8865
|
+
className: Schema.String,
|
|
8866
|
+
scriptName: Schema.optional(Schema.String),
|
|
8867
|
+
raw: Schema.optional(Schema.Boolean),
|
|
8868
|
+
}).pipe(
|
|
8869
|
+
Schema.encodeKeys({
|
|
8870
|
+
type: "type",
|
|
8871
|
+
name: "name",
|
|
8872
|
+
workflowName: "workflow_name",
|
|
8873
|
+
className: "class_name",
|
|
8874
|
+
scriptName: "script_name",
|
|
8875
|
+
raw: "raw",
|
|
8876
|
+
}),
|
|
8877
|
+
),
|
|
8878
|
+
Schema.Struct({
|
|
8879
|
+
type: Schema.Literal("hyperdrive"),
|
|
8880
|
+
name: Schema.String,
|
|
8881
|
+
id: Schema.String,
|
|
8882
|
+
}),
|
|
8883
|
+
Schema.Struct({
|
|
8884
|
+
type: Schema.Literal("analytics_engine"),
|
|
8885
|
+
name: Schema.String,
|
|
8886
|
+
dataset: Schema.optional(Schema.String),
|
|
8887
|
+
}),
|
|
8888
|
+
Schema.Struct({
|
|
8889
|
+
type: Schema.Literal("dispatch_namespace"),
|
|
8890
|
+
name: Schema.String,
|
|
8891
|
+
namespace: Schema.String,
|
|
8892
|
+
outbound: Schema.optional(
|
|
8893
|
+
Schema.Struct({
|
|
8894
|
+
worker: Schema.optional(
|
|
8895
|
+
Schema.Struct({
|
|
8896
|
+
service: Schema.optional(Schema.String),
|
|
8897
|
+
environment: Schema.optional(Schema.String),
|
|
8898
|
+
}),
|
|
8899
|
+
),
|
|
8900
|
+
params: Schema.optional(
|
|
8901
|
+
Schema.Array(
|
|
8902
|
+
Schema.Struct({
|
|
8903
|
+
name: Schema.String,
|
|
8904
|
+
}),
|
|
8905
|
+
),
|
|
8906
|
+
),
|
|
8907
|
+
}),
|
|
8908
|
+
),
|
|
8909
|
+
}),
|
|
8910
|
+
Schema.Struct({
|
|
8911
|
+
type: Schema.Literal("send_email"),
|
|
8912
|
+
name: Schema.String,
|
|
8913
|
+
destinationAddress: Schema.optional(Schema.String),
|
|
8914
|
+
allowedDestinationAddresses: Schema.optional(
|
|
8915
|
+
Schema.Array(Schema.String),
|
|
8916
|
+
),
|
|
8917
|
+
allowedSenderAddresses: Schema.optional(
|
|
8918
|
+
Schema.Array(Schema.String),
|
|
8919
|
+
),
|
|
8920
|
+
}).pipe(
|
|
8921
|
+
Schema.encodeKeys({
|
|
8922
|
+
type: "type",
|
|
8923
|
+
name: "name",
|
|
8924
|
+
destinationAddress: "destination_address",
|
|
8925
|
+
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
8926
|
+
allowedSenderAddresses: "allowed_sender_addresses",
|
|
8927
|
+
}),
|
|
8928
|
+
),
|
|
8929
|
+
Schema.Struct({
|
|
8930
|
+
type: Schema.Literal("mtls_certificate"),
|
|
8931
|
+
name: Schema.String,
|
|
8932
|
+
certificateId: Schema.String,
|
|
8933
|
+
}).pipe(
|
|
8934
|
+
Schema.encodeKeys({
|
|
8935
|
+
type: "type",
|
|
8936
|
+
name: "name",
|
|
8937
|
+
certificateId: "certificate_id",
|
|
8938
|
+
}),
|
|
8939
|
+
),
|
|
8940
|
+
Schema.Struct({
|
|
8941
|
+
type: Schema.Literal("wasm_module"),
|
|
8942
|
+
name: Schema.String,
|
|
8943
|
+
part: Schema.String,
|
|
8944
|
+
}),
|
|
8945
|
+
Schema.Struct({
|
|
8946
|
+
type: Schema.Literal("text_blob"),
|
|
8947
|
+
name: Schema.String,
|
|
8948
|
+
part: Schema.String,
|
|
8949
|
+
}),
|
|
8950
|
+
Schema.Struct({
|
|
8951
|
+
type: Schema.Literal("data_blob"),
|
|
8952
|
+
name: Schema.String,
|
|
8953
|
+
part: Schema.String,
|
|
8954
|
+
}),
|
|
8955
|
+
Schema.Struct({
|
|
8956
|
+
type: Schema.Literal("pipelines"),
|
|
8957
|
+
name: Schema.String,
|
|
8958
|
+
pipeline: Schema.String,
|
|
8959
|
+
}),
|
|
8960
|
+
Schema.Struct({
|
|
8961
|
+
type: Schema.Literal("secrets_store_secret"),
|
|
8962
|
+
name: Schema.String,
|
|
8963
|
+
storeId: Schema.String,
|
|
8964
|
+
secretName: Schema.String,
|
|
8965
|
+
}).pipe(
|
|
8966
|
+
Schema.encodeKeys({
|
|
8967
|
+
type: "type",
|
|
8968
|
+
name: "name",
|
|
8969
|
+
storeId: "store_id",
|
|
8970
|
+
secretName: "secret_name",
|
|
8971
|
+
}),
|
|
8972
|
+
),
|
|
8973
|
+
Schema.Struct({
|
|
8974
|
+
type: Schema.Literal("stream"),
|
|
8975
|
+
name: Schema.String,
|
|
8976
|
+
}),
|
|
8977
|
+
Schema.Struct({
|
|
8978
|
+
type: Schema.Literal("media"),
|
|
8979
|
+
name: Schema.String,
|
|
8980
|
+
}),
|
|
8981
|
+
Schema.Struct({
|
|
8982
|
+
type: Schema.Literal("version_metadata"),
|
|
8983
|
+
name: Schema.String,
|
|
8984
|
+
}),
|
|
8985
|
+
Schema.Struct({
|
|
8986
|
+
type: Schema.Literal("assets"),
|
|
8987
|
+
name: Schema.String,
|
|
8988
|
+
}),
|
|
8989
|
+
Schema.Struct({
|
|
8990
|
+
type: Schema.Literal("worker_loader"),
|
|
8991
|
+
name: Schema.String,
|
|
8992
|
+
}),
|
|
8993
|
+
Schema.Struct({
|
|
8994
|
+
type: Schema.Literal("logfwdr"),
|
|
8995
|
+
name: Schema.String,
|
|
8996
|
+
destination: Schema.String,
|
|
8997
|
+
}),
|
|
8998
|
+
Schema.Struct({
|
|
8999
|
+
type: Schema.Literal("ai_search_namespace"),
|
|
9000
|
+
name: Schema.String,
|
|
9001
|
+
namespace: Schema.String,
|
|
9002
|
+
}),
|
|
9003
|
+
Schema.Struct({
|
|
9004
|
+
type: Schema.Literal("ai_search"),
|
|
9005
|
+
name: Schema.String,
|
|
9006
|
+
instanceName: Schema.String,
|
|
9007
|
+
}).pipe(
|
|
9008
|
+
Schema.encodeKeys({
|
|
9009
|
+
type: "type",
|
|
9010
|
+
name: "name",
|
|
9011
|
+
instanceName: "instance_name",
|
|
9012
|
+
}),
|
|
9013
|
+
),
|
|
9014
|
+
Schema.Struct({
|
|
9015
|
+
type: Schema.Literal("ratelimit"),
|
|
9016
|
+
name: Schema.String,
|
|
9017
|
+
namespaceId: Schema.String,
|
|
9018
|
+
simple: Schema.Struct({
|
|
9019
|
+
limit: Schema.Number,
|
|
9020
|
+
period: Schema.Literals(["10", "60"]),
|
|
9021
|
+
}),
|
|
9022
|
+
}).pipe(
|
|
9023
|
+
Schema.encodeKeys({
|
|
9024
|
+
type: "type",
|
|
9025
|
+
name: "name",
|
|
9026
|
+
namespaceId: "namespace_id",
|
|
9027
|
+
simple: "simple",
|
|
9028
|
+
}),
|
|
9029
|
+
),
|
|
9030
|
+
Schema.Struct({
|
|
9031
|
+
type: Schema.Literal("inherit"),
|
|
9032
|
+
name: Schema.String,
|
|
9033
|
+
}),
|
|
9034
|
+
]),
|
|
9035
|
+
),
|
|
9036
|
+
),
|
|
9037
|
+
keepBindings: Schema.optional(Schema.Array(Schema.String)),
|
|
9038
|
+
migrations: Schema.optional(
|
|
9039
|
+
Schema.Struct({
|
|
9040
|
+
oldTag: Schema.optional(Schema.String),
|
|
9041
|
+
newTag: Schema.optional(Schema.String),
|
|
9042
|
+
steps: Schema.optional(
|
|
9043
|
+
Schema.Array(
|
|
9044
|
+
Schema.Struct({
|
|
9045
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
9046
|
+
newSqliteClasses: Schema.optional(
|
|
9047
|
+
Schema.Array(Schema.String),
|
|
9048
|
+
),
|
|
9049
|
+
renamedClasses: Schema.optional(
|
|
9050
|
+
Schema.Array(
|
|
9051
|
+
Schema.Struct({
|
|
9052
|
+
from: Schema.optional(Schema.String),
|
|
9053
|
+
to: Schema.optional(Schema.String),
|
|
9054
|
+
}),
|
|
9055
|
+
),
|
|
9056
|
+
),
|
|
9057
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
9058
|
+
}).pipe(
|
|
9059
|
+
Schema.encodeKeys({
|
|
9060
|
+
newClasses: "new_classes",
|
|
9061
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
9062
|
+
renamedClasses: "renamed_classes",
|
|
9063
|
+
deletedClasses: "deleted_classes",
|
|
9064
|
+
}),
|
|
9065
|
+
),
|
|
9066
|
+
),
|
|
9067
|
+
),
|
|
9068
|
+
}).pipe(
|
|
9069
|
+
Schema.encodeKeys({
|
|
9070
|
+
oldTag: "old_tag",
|
|
9071
|
+
newTag: "new_tag",
|
|
9072
|
+
steps: "steps",
|
|
9073
|
+
}),
|
|
9074
|
+
),
|
|
9075
|
+
),
|
|
9076
|
+
capnpSchema: Schema.optional(Schema.String),
|
|
9077
|
+
logpush: Schema.optional(Schema.Boolean),
|
|
9078
|
+
placement: Schema.optional(
|
|
9079
|
+
Schema.Union([
|
|
9080
|
+
Schema.Struct({
|
|
9081
|
+
mode: Schema.Literal("smart"),
|
|
9082
|
+
hint: Schema.optional(Schema.String),
|
|
9083
|
+
}),
|
|
9084
|
+
Schema.Struct({
|
|
9085
|
+
region: Schema.String,
|
|
9086
|
+
}),
|
|
9087
|
+
Schema.Struct({
|
|
9088
|
+
host: Schema.String,
|
|
9089
|
+
}),
|
|
9090
|
+
Schema.Struct({
|
|
9091
|
+
hostname: Schema.String,
|
|
9092
|
+
}),
|
|
9093
|
+
]),
|
|
9094
|
+
),
|
|
9095
|
+
tailConsumers: Schema.optional(
|
|
9096
|
+
Schema.Array(
|
|
9097
|
+
Schema.Struct({
|
|
9098
|
+
service: Schema.String,
|
|
9099
|
+
environment: Schema.optional(Schema.String),
|
|
9100
|
+
}),
|
|
9101
|
+
),
|
|
9102
|
+
),
|
|
9103
|
+
streamingTailConsumers: Schema.optional(
|
|
9104
|
+
Schema.Array(
|
|
9105
|
+
Schema.Struct({
|
|
9106
|
+
service: Schema.String,
|
|
9107
|
+
environment: Schema.optional(Schema.String),
|
|
9108
|
+
}),
|
|
9109
|
+
),
|
|
9110
|
+
),
|
|
9111
|
+
limits: Schema.optional(
|
|
9112
|
+
Schema.Struct({
|
|
9113
|
+
cpuMs: Schema.optional(Schema.Number),
|
|
9114
|
+
subrequests: Schema.optional(Schema.Number),
|
|
9115
|
+
}).pipe(
|
|
9116
|
+
Schema.encodeKeys({ cpuMs: "cpu_ms", subrequests: "subrequests" }),
|
|
9117
|
+
),
|
|
9118
|
+
),
|
|
9119
|
+
assets: Schema.optional(
|
|
9120
|
+
Schema.Struct({
|
|
9121
|
+
jwt: Schema.optional(Schema.String),
|
|
9122
|
+
config: Schema.optional(
|
|
9123
|
+
Schema.Struct({
|
|
9124
|
+
htmlHandling: Schema.optional(
|
|
9125
|
+
Schema.Literals([
|
|
9126
|
+
"auto-trailing-slash",
|
|
9127
|
+
"force-trailing-slash",
|
|
9128
|
+
"drop-trailing-slash",
|
|
9129
|
+
"none",
|
|
9130
|
+
]),
|
|
9131
|
+
),
|
|
9132
|
+
notFoundHandling: Schema.optional(
|
|
9133
|
+
Schema.Literals([
|
|
9134
|
+
"single-page-application",
|
|
9135
|
+
"404-page",
|
|
9136
|
+
"none",
|
|
9137
|
+
]),
|
|
9138
|
+
),
|
|
9139
|
+
runWorkerFirst: Schema.optional(
|
|
9140
|
+
Schema.Union([Schema.Boolean, Schema.Array(Schema.String)]),
|
|
9141
|
+
),
|
|
9142
|
+
redirects: Schema.optional(Schema.String),
|
|
9143
|
+
headers: Schema.optional(Schema.String),
|
|
9144
|
+
}).pipe(
|
|
9145
|
+
Schema.encodeKeys({
|
|
9146
|
+
htmlHandling: "html_handling",
|
|
9147
|
+
notFoundHandling: "not_found_handling",
|
|
9148
|
+
runWorkerFirst: "run_worker_first",
|
|
9149
|
+
redirects: "_redirects",
|
|
9150
|
+
headers: "_headers",
|
|
9151
|
+
}),
|
|
9152
|
+
),
|
|
9153
|
+
),
|
|
9154
|
+
}),
|
|
9155
|
+
),
|
|
9156
|
+
observability: Schema.optional(
|
|
9157
|
+
Schema.Struct({
|
|
9158
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
9159
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
9160
|
+
logs: Schema.optional(
|
|
9161
|
+
Schema.Struct({
|
|
9162
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
9163
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
9164
|
+
invocationLogs: Schema.optional(Schema.Boolean),
|
|
9165
|
+
persist: Schema.optional(Schema.Boolean),
|
|
9166
|
+
destinations: Schema.optional(Schema.Array(Schema.String)),
|
|
9167
|
+
}).pipe(
|
|
9168
|
+
Schema.encodeKeys({
|
|
9169
|
+
enabled: "enabled",
|
|
9170
|
+
headSamplingRate: "head_sampling_rate",
|
|
9171
|
+
invocationLogs: "invocation_logs",
|
|
9172
|
+
persist: "persist",
|
|
9173
|
+
destinations: "destinations",
|
|
9174
|
+
}),
|
|
9175
|
+
),
|
|
9176
|
+
),
|
|
9177
|
+
traces: Schema.optional(
|
|
9178
|
+
Schema.Struct({
|
|
9179
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
9180
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
9181
|
+
persist: Schema.optional(Schema.Boolean),
|
|
9182
|
+
destinations: Schema.optional(Schema.Array(Schema.String)),
|
|
9183
|
+
}).pipe(
|
|
9184
|
+
Schema.encodeKeys({
|
|
9185
|
+
enabled: "enabled",
|
|
9186
|
+
headSamplingRate: "head_sampling_rate",
|
|
9187
|
+
persist: "persist",
|
|
9188
|
+
destinations: "destinations",
|
|
9189
|
+
}),
|
|
9190
|
+
),
|
|
9191
|
+
),
|
|
9192
|
+
}).pipe(
|
|
9193
|
+
Schema.encodeKeys({
|
|
9194
|
+
enabled: "enabled",
|
|
9195
|
+
headSamplingRate: "head_sampling_rate",
|
|
9196
|
+
logs: "logs",
|
|
9197
|
+
traces: "traces",
|
|
9198
|
+
}),
|
|
9199
|
+
),
|
|
9200
|
+
),
|
|
9201
|
+
containers: Schema.optional(
|
|
9202
|
+
Schema.Array(
|
|
9203
|
+
Schema.Struct({
|
|
9204
|
+
className: Schema.String,
|
|
9205
|
+
}).pipe(Schema.encodeKeys({ className: "class_name" })),
|
|
9206
|
+
),
|
|
9207
|
+
),
|
|
9208
|
+
annotations: Schema.optional(Schema.Unknown),
|
|
9209
|
+
keepAssets: Schema.optional(Schema.Boolean),
|
|
9210
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
9211
|
+
}).pipe(
|
|
9212
|
+
Schema.encodeKeys({
|
|
9213
|
+
mainModule: "main_module",
|
|
9214
|
+
bodyPart: "body_part",
|
|
9215
|
+
compatibilityDate: "compatibility_date",
|
|
9216
|
+
compatibilityFlags: "compatibility_flags",
|
|
9217
|
+
usageModel: "usage_model",
|
|
9218
|
+
bindings: "bindings",
|
|
9219
|
+
keepBindings: "keep_bindings",
|
|
9220
|
+
migrations: "migrations",
|
|
9221
|
+
capnpSchema: "capnp_schema",
|
|
9222
|
+
logpush: "logpush",
|
|
9223
|
+
placement: "placement",
|
|
9224
|
+
tailConsumers: "tail_consumers",
|
|
9225
|
+
streamingTailConsumers: "streaming_tail_consumers",
|
|
9226
|
+
limits: "limits",
|
|
9227
|
+
assets: "assets",
|
|
9228
|
+
observability: "observability",
|
|
9229
|
+
containers: "containers",
|
|
9230
|
+
annotations: "annotations",
|
|
9231
|
+
keepAssets: "keep_assets",
|
|
9232
|
+
tags: "tags",
|
|
9233
|
+
}),
|
|
9234
|
+
),
|
|
9235
|
+
),
|
|
9236
|
+
files: Schema.optional(
|
|
9237
|
+
Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
|
|
9238
|
+
),
|
|
9239
|
+
wranglerSessionConfig: Schema.optional(
|
|
9240
|
+
Schema.Union([
|
|
9241
|
+
Schema.Struct({
|
|
9242
|
+
workersDev: Schema.Literal(true),
|
|
9243
|
+
minimalMode: Schema.optional(Schema.Boolean),
|
|
9244
|
+
}).pipe(
|
|
9245
|
+
Schema.encodeKeys({
|
|
9246
|
+
workersDev: "workers_dev",
|
|
9247
|
+
minimalMode: "minimal_mode",
|
|
9248
|
+
}),
|
|
9249
|
+
),
|
|
9250
|
+
Schema.Struct({
|
|
9251
|
+
routes: Schema.Array(Schema.String),
|
|
9252
|
+
minimalMode: Schema.optional(Schema.Boolean),
|
|
9253
|
+
}).pipe(
|
|
9254
|
+
Schema.encodeKeys({ routes: "routes", minimalMode: "minimal_mode" }),
|
|
9255
|
+
),
|
|
9256
|
+
]),
|
|
9257
|
+
),
|
|
9258
|
+
}).pipe(
|
|
9259
|
+
Schema.encodeKeys({
|
|
9260
|
+
metadata: "metadata",
|
|
9261
|
+
files: "files",
|
|
9262
|
+
wranglerSessionConfig: "wrangler-session-config",
|
|
9263
|
+
}),
|
|
9264
|
+
T.Http({
|
|
9265
|
+
method: "POST",
|
|
9266
|
+
path: "/accounts/{account_id}/workers/scripts/{script_name}/edge-preview",
|
|
9267
|
+
contentType: "multipart",
|
|
9268
|
+
}),
|
|
9269
|
+
) as unknown as Schema.Schema<CreateScriptEdgePreviewRequest>;
|
|
9270
|
+
|
|
9271
|
+
export interface CreateScriptEdgePreviewResponse {
|
|
9272
|
+
/** Token to send as cf-workers-preview-token header when making requests to the preview host. */
|
|
9273
|
+
previewToken: string;
|
|
9274
|
+
/** URL for tailing live logs from the preview worker. */
|
|
9275
|
+
tailUrl: string;
|
|
9276
|
+
}
|
|
9277
|
+
|
|
9278
|
+
export const CreateScriptEdgePreviewResponse =
|
|
9279
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9280
|
+
previewToken: Schema.String,
|
|
9281
|
+
tailUrl: Schema.String,
|
|
9282
|
+
})
|
|
9283
|
+
.pipe(
|
|
9284
|
+
Schema.encodeKeys({ previewToken: "preview_token", tailUrl: "tail_url" }),
|
|
9285
|
+
)
|
|
9286
|
+
.pipe(
|
|
9287
|
+
T.ResponsePath("result"),
|
|
9288
|
+
) as unknown as Schema.Schema<CreateScriptEdgePreviewResponse>;
|
|
9289
|
+
|
|
9290
|
+
export type CreateScriptEdgePreviewError = DefaultErrors | InvalidRoute;
|
|
9291
|
+
|
|
9292
|
+
export const createScriptEdgePreview: API.OperationMethod<
|
|
9293
|
+
CreateScriptEdgePreviewRequest,
|
|
9294
|
+
CreateScriptEdgePreviewResponse,
|
|
9295
|
+
CreateScriptEdgePreviewError,
|
|
9296
|
+
Credentials | HttpClient.HttpClient
|
|
9297
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
9298
|
+
input: CreateScriptEdgePreviewRequest,
|
|
9299
|
+
output: CreateScriptEdgePreviewResponse,
|
|
9300
|
+
errors: [InvalidRoute],
|
|
9301
|
+
}));
|
|
9302
|
+
|
|
9303
|
+
// =============================================================================
|
|
9304
|
+
// ScriptSchedule
|
|
9305
|
+
// =============================================================================
|
|
9306
|
+
|
|
9307
|
+
export interface GetScriptScheduleRequest {
|
|
9308
|
+
scriptName: string;
|
|
9309
|
+
/** Identifier. */
|
|
9310
|
+
accountId: string;
|
|
9311
|
+
}
|
|
9312
|
+
|
|
9313
|
+
export const GetScriptScheduleRequest =
|
|
9314
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9315
|
+
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
9316
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
9317
|
+
}).pipe(
|
|
9318
|
+
T.Http({
|
|
9319
|
+
method: "GET",
|
|
9320
|
+
path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
|
|
9321
|
+
}),
|
|
9322
|
+
) as unknown as Schema.Schema<GetScriptScheduleRequest>;
|
|
9323
|
+
|
|
9324
|
+
export interface GetScriptScheduleResponse {
|
|
9325
|
+
schedules: {
|
|
9326
|
+
cron: string;
|
|
9327
|
+
createdOn?: string | null;
|
|
9328
|
+
modifiedOn?: string | null;
|
|
9329
|
+
}[];
|
|
9330
|
+
}
|
|
9331
|
+
|
|
9332
|
+
export const GetScriptScheduleResponse =
|
|
9333
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9334
|
+
schedules: Schema.Array(
|
|
9335
|
+
Schema.Struct({
|
|
9336
|
+
cron: Schema.String,
|
|
9337
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
9338
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
9339
|
+
}).pipe(
|
|
9340
|
+
Schema.encodeKeys({
|
|
9341
|
+
cron: "cron",
|
|
9342
|
+
createdOn: "created_on",
|
|
9343
|
+
modifiedOn: "modified_on",
|
|
9344
|
+
}),
|
|
9345
|
+
),
|
|
9346
|
+
),
|
|
9347
|
+
}).pipe(
|
|
9348
|
+
T.ResponsePath("result"),
|
|
9349
|
+
) as unknown as Schema.Schema<GetScriptScheduleResponse>;
|
|
9350
|
+
|
|
9351
|
+
export type GetScriptScheduleError = DefaultErrors | WorkerNotFound;
|
|
9352
|
+
|
|
9353
|
+
export const getScriptSchedule: API.OperationMethod<
|
|
9354
|
+
GetScriptScheduleRequest,
|
|
9355
|
+
GetScriptScheduleResponse,
|
|
9356
|
+
GetScriptScheduleError,
|
|
9357
|
+
Credentials | HttpClient.HttpClient
|
|
9358
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
9359
|
+
input: GetScriptScheduleRequest,
|
|
9360
|
+
output: GetScriptScheduleResponse,
|
|
9361
|
+
errors: [WorkerNotFound],
|
|
9362
|
+
}));
|
|
9363
|
+
|
|
9364
|
+
export interface PutScriptScheduleRequest {
|
|
9365
|
+
scriptName: string;
|
|
9366
|
+
/** Path param: Identifier. */
|
|
9367
|
+
accountId: string;
|
|
9368
|
+
/** Body param: */
|
|
9369
|
+
body: { cron: string }[];
|
|
9370
|
+
}
|
|
9371
|
+
|
|
9372
|
+
export const PutScriptScheduleRequest =
|
|
9373
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9374
|
+
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
9375
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
9376
|
+
body: Schema.Array(
|
|
9377
|
+
Schema.Struct({
|
|
9378
|
+
cron: Schema.String,
|
|
9379
|
+
}),
|
|
9380
|
+
).pipe(T.HttpBody()),
|
|
9381
|
+
}).pipe(
|
|
9382
|
+
T.Http({
|
|
9383
|
+
method: "PUT",
|
|
9384
|
+
path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
|
|
9385
|
+
}),
|
|
9386
|
+
) as unknown as Schema.Schema<PutScriptScheduleRequest>;
|
|
9387
|
+
|
|
9388
|
+
export interface PutScriptScheduleResponse {
|
|
9389
|
+
schedules: {
|
|
9390
|
+
cron: string;
|
|
9391
|
+
createdOn?: string | null;
|
|
9392
|
+
modifiedOn?: string | null;
|
|
9393
|
+
}[];
|
|
9394
|
+
}
|
|
9395
|
+
|
|
9396
|
+
export const PutScriptScheduleResponse =
|
|
9397
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
9398
|
+
schedules: Schema.Array(
|
|
9399
|
+
Schema.Struct({
|
|
9400
|
+
cron: Schema.String,
|
|
9401
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8995
9402
|
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8996
9403
|
}).pipe(
|
|
8997
9404
|
Schema.encodeKeys({
|
|
@@ -10923,36 +11330,7 @@ export const listScriptSecrets: API.PaginatedOperationMethod<
|
|
|
10923
11330
|
ListScriptSecretsResponse,
|
|
10924
11331
|
ListScriptSecretsError,
|
|
10925
11332
|
Credentials | HttpClient.HttpClient
|
|
10926
|
-
>
|
|
10927
|
-
pages: (
|
|
10928
|
-
input: ListScriptSecretsRequest,
|
|
10929
|
-
) => stream.Stream<
|
|
10930
|
-
ListScriptSecretsResponse,
|
|
10931
|
-
ListScriptSecretsError,
|
|
10932
|
-
Credentials | HttpClient.HttpClient
|
|
10933
|
-
>;
|
|
10934
|
-
items: (input: ListScriptSecretsRequest) => stream.Stream<
|
|
10935
|
-
| { name: string; type: "secret_text" }
|
|
10936
|
-
| {
|
|
10937
|
-
algorithm: unknown;
|
|
10938
|
-
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
10939
|
-
name: string;
|
|
10940
|
-
type: "secret_key";
|
|
10941
|
-
usages: (
|
|
10942
|
-
| "encrypt"
|
|
10943
|
-
| "decrypt"
|
|
10944
|
-
| "sign"
|
|
10945
|
-
| "verify"
|
|
10946
|
-
| "deriveKey"
|
|
10947
|
-
| "deriveBits"
|
|
10948
|
-
| "wrapKey"
|
|
10949
|
-
| "unwrapKey"
|
|
10950
|
-
)[];
|
|
10951
|
-
},
|
|
10952
|
-
ListScriptSecretsError,
|
|
10953
|
-
Credentials | HttpClient.HttpClient
|
|
10954
|
-
>;
|
|
10955
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
11333
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
10956
11334
|
input: ListScriptSecretsRequest,
|
|
10957
11335
|
output: ListScriptSecretsResponse,
|
|
10958
11336
|
errors: [WorkerNotFound],
|
|
@@ -12588,42 +12966,7 @@ export const listScriptVersions: API.PaginatedOperationMethod<
|
|
|
12588
12966
|
ListScriptVersionsResponse,
|
|
12589
12967
|
ListScriptVersionsError,
|
|
12590
12968
|
Credentials | HttpClient.HttpClient
|
|
12591
|
-
>
|
|
12592
|
-
pages: (
|
|
12593
|
-
input: ListScriptVersionsRequest,
|
|
12594
|
-
) => stream.Stream<
|
|
12595
|
-
ListScriptVersionsResponse,
|
|
12596
|
-
ListScriptVersionsError,
|
|
12597
|
-
Credentials | HttpClient.HttpClient
|
|
12598
|
-
>;
|
|
12599
|
-
items: (input: ListScriptVersionsRequest) => stream.Stream<
|
|
12600
|
-
{
|
|
12601
|
-
id?: string | null;
|
|
12602
|
-
metadata?: {
|
|
12603
|
-
authorEmail?: string | null;
|
|
12604
|
-
authorId?: string | null;
|
|
12605
|
-
createdOn?: string | null;
|
|
12606
|
-
hasPreview?: boolean | null;
|
|
12607
|
-
modifiedOn?: string | null;
|
|
12608
|
-
source?:
|
|
12609
|
-
| "unknown"
|
|
12610
|
-
| "api"
|
|
12611
|
-
| "wrangler"
|
|
12612
|
-
| "terraform"
|
|
12613
|
-
| "dash"
|
|
12614
|
-
| "dash_template"
|
|
12615
|
-
| "integration"
|
|
12616
|
-
| "quick_editor"
|
|
12617
|
-
| "playground"
|
|
12618
|
-
| "workersci"
|
|
12619
|
-
| null;
|
|
12620
|
-
} | null;
|
|
12621
|
-
number?: number | null;
|
|
12622
|
-
},
|
|
12623
|
-
ListScriptVersionsError,
|
|
12624
|
-
Credentials | HttpClient.HttpClient
|
|
12625
|
-
>;
|
|
12626
|
-
} = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
12969
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.makePaginated(() => ({
|
|
12627
12970
|
input: ListScriptVersionsRequest,
|
|
12628
12971
|
output: ListScriptVersionsResponse,
|
|
12629
12972
|
errors: [WorkerNotFound],
|
|
@@ -12779,881 +13122,1637 @@ export const CreateScriptVersionRequest =
|
|
|
12779
13122
|
}),
|
|
12780
13123
|
Schema.Struct({
|
|
12781
13124
|
name: Schema.String,
|
|
12782
|
-
type: Schema.Literal("browser"),
|
|
12783
|
-
}),
|
|
13125
|
+
type: Schema.Literal("browser"),
|
|
13126
|
+
}),
|
|
13127
|
+
Schema.Struct({
|
|
13128
|
+
id: Schema.String,
|
|
13129
|
+
name: Schema.String,
|
|
13130
|
+
type: Schema.Literal("d1"),
|
|
13131
|
+
}),
|
|
13132
|
+
Schema.Struct({
|
|
13133
|
+
name: Schema.String,
|
|
13134
|
+
part: Schema.String,
|
|
13135
|
+
type: Schema.Literal("data_blob"),
|
|
13136
|
+
}),
|
|
13137
|
+
Schema.Struct({
|
|
13138
|
+
name: Schema.String,
|
|
13139
|
+
namespace: Schema.String,
|
|
13140
|
+
type: Schema.Literal("dispatch_namespace"),
|
|
13141
|
+
outbound: Schema.optional(
|
|
13142
|
+
Schema.Struct({
|
|
13143
|
+
params: Schema.optional(Schema.Array(Schema.String)),
|
|
13144
|
+
worker: Schema.optional(
|
|
13145
|
+
Schema.Struct({
|
|
13146
|
+
environment: Schema.optional(Schema.String),
|
|
13147
|
+
service: Schema.optional(Schema.String),
|
|
13148
|
+
}),
|
|
13149
|
+
),
|
|
13150
|
+
}),
|
|
13151
|
+
),
|
|
13152
|
+
}),
|
|
13153
|
+
Schema.Struct({
|
|
13154
|
+
name: Schema.String,
|
|
13155
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
13156
|
+
className: Schema.optional(Schema.String),
|
|
13157
|
+
environment: Schema.optional(Schema.String),
|
|
13158
|
+
namespaceId: Schema.optional(Schema.String),
|
|
13159
|
+
scriptName: Schema.optional(Schema.String),
|
|
13160
|
+
}).pipe(
|
|
13161
|
+
Schema.encodeKeys({
|
|
13162
|
+
name: "name",
|
|
13163
|
+
type: "type",
|
|
13164
|
+
className: "class_name",
|
|
13165
|
+
environment: "environment",
|
|
13166
|
+
namespaceId: "namespace_id",
|
|
13167
|
+
scriptName: "script_name",
|
|
13168
|
+
}),
|
|
13169
|
+
),
|
|
13170
|
+
Schema.Struct({
|
|
13171
|
+
id: Schema.String,
|
|
13172
|
+
name: Schema.String,
|
|
13173
|
+
type: Schema.Literal("hyperdrive"),
|
|
13174
|
+
}),
|
|
13175
|
+
Schema.Struct({
|
|
13176
|
+
name: Schema.String,
|
|
13177
|
+
type: Schema.Literal("inherit"),
|
|
13178
|
+
oldName: Schema.optional(Schema.String),
|
|
13179
|
+
versionId: Schema.optional(Schema.String),
|
|
13180
|
+
}).pipe(
|
|
13181
|
+
Schema.encodeKeys({
|
|
13182
|
+
name: "name",
|
|
13183
|
+
type: "type",
|
|
13184
|
+
oldName: "old_name",
|
|
13185
|
+
versionId: "version_id",
|
|
13186
|
+
}),
|
|
13187
|
+
),
|
|
13188
|
+
Schema.Struct({
|
|
13189
|
+
name: Schema.String,
|
|
13190
|
+
type: Schema.Literal("images"),
|
|
13191
|
+
}),
|
|
13192
|
+
Schema.Struct({
|
|
13193
|
+
json: Schema.String,
|
|
13194
|
+
name: Schema.String,
|
|
13195
|
+
type: Schema.Literal("json"),
|
|
13196
|
+
}),
|
|
13197
|
+
Schema.Struct({
|
|
13198
|
+
name: Schema.String,
|
|
13199
|
+
namespaceId: Schema.String,
|
|
13200
|
+
type: Schema.Literal("kv_namespace"),
|
|
13201
|
+
}).pipe(
|
|
13202
|
+
Schema.encodeKeys({
|
|
13203
|
+
name: "name",
|
|
13204
|
+
namespaceId: "namespace_id",
|
|
13205
|
+
type: "type",
|
|
13206
|
+
}),
|
|
13207
|
+
),
|
|
13208
|
+
Schema.Struct({
|
|
13209
|
+
certificateId: Schema.String,
|
|
13210
|
+
name: Schema.String,
|
|
13211
|
+
type: Schema.Literal("mtls_certificate"),
|
|
13212
|
+
}).pipe(
|
|
13213
|
+
Schema.encodeKeys({
|
|
13214
|
+
certificateId: "certificate_id",
|
|
13215
|
+
name: "name",
|
|
13216
|
+
type: "type",
|
|
13217
|
+
}),
|
|
13218
|
+
),
|
|
13219
|
+
Schema.Struct({
|
|
13220
|
+
name: Schema.String,
|
|
13221
|
+
text: Schema.String,
|
|
13222
|
+
type: Schema.Literal("plain_text"),
|
|
13223
|
+
}),
|
|
13224
|
+
Schema.Struct({
|
|
13225
|
+
name: Schema.String,
|
|
13226
|
+
pipeline: Schema.String,
|
|
13227
|
+
type: Schema.Literal("pipelines"),
|
|
13228
|
+
}),
|
|
13229
|
+
Schema.Struct({
|
|
13230
|
+
name: Schema.String,
|
|
13231
|
+
queueName: Schema.String,
|
|
13232
|
+
type: Schema.Literal("queue"),
|
|
13233
|
+
}).pipe(
|
|
13234
|
+
Schema.encodeKeys({
|
|
13235
|
+
name: "name",
|
|
13236
|
+
queueName: "queue_name",
|
|
13237
|
+
type: "type",
|
|
13238
|
+
}),
|
|
13239
|
+
),
|
|
13240
|
+
Schema.Struct({
|
|
13241
|
+
bucketName: Schema.String,
|
|
13242
|
+
name: Schema.String,
|
|
13243
|
+
type: Schema.Literal("r2_bucket"),
|
|
13244
|
+
jurisdiction: Schema.optional(Schema.Literals(["eu", "fedramp"])),
|
|
13245
|
+
}).pipe(
|
|
13246
|
+
Schema.encodeKeys({
|
|
13247
|
+
bucketName: "bucket_name",
|
|
13248
|
+
name: "name",
|
|
13249
|
+
type: "type",
|
|
13250
|
+
jurisdiction: "jurisdiction",
|
|
13251
|
+
}),
|
|
13252
|
+
),
|
|
13253
|
+
Schema.Struct({
|
|
13254
|
+
name: Schema.String,
|
|
13255
|
+
text: Schema.String,
|
|
13256
|
+
type: Schema.Literal("secret_text"),
|
|
13257
|
+
}),
|
|
13258
|
+
Schema.Struct({
|
|
13259
|
+
name: Schema.String,
|
|
13260
|
+
type: Schema.Literal("send_email"),
|
|
13261
|
+
allowedDestinationAddresses: Schema.optional(
|
|
13262
|
+
Schema.Array(Schema.String),
|
|
13263
|
+
),
|
|
13264
|
+
allowedSenderAddresses: Schema.optional(
|
|
13265
|
+
Schema.Array(Schema.String),
|
|
13266
|
+
),
|
|
13267
|
+
destinationAddress: Schema.optional(Schema.String),
|
|
13268
|
+
}).pipe(
|
|
13269
|
+
Schema.encodeKeys({
|
|
13270
|
+
name: "name",
|
|
13271
|
+
type: "type",
|
|
13272
|
+
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
13273
|
+
allowedSenderAddresses: "allowed_sender_addresses",
|
|
13274
|
+
destinationAddress: "destination_address",
|
|
13275
|
+
}),
|
|
13276
|
+
),
|
|
13277
|
+
Schema.Struct({
|
|
13278
|
+
name: Schema.String,
|
|
13279
|
+
service: Schema.String,
|
|
13280
|
+
type: Schema.Literal("service"),
|
|
13281
|
+
environment: Schema.optional(Schema.String),
|
|
13282
|
+
}),
|
|
13283
|
+
Schema.Struct({
|
|
13284
|
+
name: Schema.String,
|
|
13285
|
+
part: Schema.String,
|
|
13286
|
+
type: Schema.Literal("text_blob"),
|
|
13287
|
+
}),
|
|
13288
|
+
Schema.Struct({
|
|
13289
|
+
indexName: Schema.String,
|
|
13290
|
+
name: Schema.String,
|
|
13291
|
+
type: Schema.Literal("vectorize"),
|
|
13292
|
+
}).pipe(
|
|
13293
|
+
Schema.encodeKeys({
|
|
13294
|
+
indexName: "index_name",
|
|
13295
|
+
name: "name",
|
|
13296
|
+
type: "type",
|
|
13297
|
+
}),
|
|
13298
|
+
),
|
|
13299
|
+
Schema.Struct({
|
|
13300
|
+
name: Schema.String,
|
|
13301
|
+
type: Schema.Literal("version_metadata"),
|
|
13302
|
+
}),
|
|
13303
|
+
Schema.Struct({
|
|
13304
|
+
name: Schema.String,
|
|
13305
|
+
secretName: Schema.String,
|
|
13306
|
+
storeId: Schema.String,
|
|
13307
|
+
type: Schema.Literal("secrets_store_secret"),
|
|
13308
|
+
}).pipe(
|
|
13309
|
+
Schema.encodeKeys({
|
|
13310
|
+
name: "name",
|
|
13311
|
+
secretName: "secret_name",
|
|
13312
|
+
storeId: "store_id",
|
|
13313
|
+
type: "type",
|
|
13314
|
+
}),
|
|
13315
|
+
),
|
|
13316
|
+
Schema.Struct({
|
|
13317
|
+
algorithm: Schema.Unknown,
|
|
13318
|
+
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
13319
|
+
name: Schema.String,
|
|
13320
|
+
type: Schema.Literal("secret_key"),
|
|
13321
|
+
usages: Schema.Array(
|
|
13322
|
+
Schema.Literals([
|
|
13323
|
+
"encrypt",
|
|
13324
|
+
"decrypt",
|
|
13325
|
+
"sign",
|
|
13326
|
+
"verify",
|
|
13327
|
+
"deriveKey",
|
|
13328
|
+
"deriveBits",
|
|
13329
|
+
"wrapKey",
|
|
13330
|
+
"unwrapKey",
|
|
13331
|
+
]),
|
|
13332
|
+
),
|
|
13333
|
+
keyBase64: Schema.optional(Schema.String),
|
|
13334
|
+
keyJwk: Schema.optional(Schema.Unknown),
|
|
13335
|
+
}).pipe(
|
|
13336
|
+
Schema.encodeKeys({
|
|
13337
|
+
algorithm: "algorithm",
|
|
13338
|
+
format: "format",
|
|
13339
|
+
name: "name",
|
|
13340
|
+
type: "type",
|
|
13341
|
+
usages: "usages",
|
|
13342
|
+
keyBase64: "key_base64",
|
|
13343
|
+
keyJwk: "key_jwk",
|
|
13344
|
+
}),
|
|
13345
|
+
),
|
|
12784
13346
|
Schema.Struct({
|
|
12785
|
-
id: Schema.String,
|
|
12786
13347
|
name: Schema.String,
|
|
12787
|
-
type: Schema.Literal("
|
|
12788
|
-
|
|
13348
|
+
type: Schema.Literal("workflow"),
|
|
13349
|
+
workflowName: Schema.String,
|
|
13350
|
+
className: Schema.optional(Schema.String),
|
|
13351
|
+
scriptName: Schema.optional(Schema.String),
|
|
13352
|
+
}).pipe(
|
|
13353
|
+
Schema.encodeKeys({
|
|
13354
|
+
name: "name",
|
|
13355
|
+
type: "type",
|
|
13356
|
+
workflowName: "workflow_name",
|
|
13357
|
+
className: "class_name",
|
|
13358
|
+
scriptName: "script_name",
|
|
13359
|
+
}),
|
|
13360
|
+
),
|
|
12789
13361
|
Schema.Struct({
|
|
12790
13362
|
name: Schema.String,
|
|
12791
13363
|
part: Schema.String,
|
|
12792
|
-
type: Schema.Literal("
|
|
13364
|
+
type: Schema.Literal("wasm_module"),
|
|
12793
13365
|
}),
|
|
12794
13366
|
Schema.Struct({
|
|
12795
13367
|
name: Schema.String,
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
13368
|
+
type: Schema.Literal("worker_loader"),
|
|
13369
|
+
}),
|
|
13370
|
+
]),
|
|
13371
|
+
),
|
|
13372
|
+
),
|
|
13373
|
+
compatibilityDate: Schema.optional(Schema.String),
|
|
13374
|
+
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
13375
|
+
keepBindings: Schema.optional(Schema.Array(Schema.String)),
|
|
13376
|
+
usageModel: Schema.optional(
|
|
13377
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
13378
|
+
),
|
|
13379
|
+
}).pipe(
|
|
13380
|
+
Schema.encodeKeys({
|
|
13381
|
+
mainModule: "main_module",
|
|
13382
|
+
annotations: "annotations",
|
|
13383
|
+
bindings: "bindings",
|
|
13384
|
+
compatibilityDate: "compatibility_date",
|
|
13385
|
+
compatibilityFlags: "compatibility_flags",
|
|
13386
|
+
keepBindings: "keep_bindings",
|
|
13387
|
+
usageModel: "usage_model",
|
|
13388
|
+
}),
|
|
13389
|
+
),
|
|
13390
|
+
files: Schema.optional(
|
|
13391
|
+
Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
|
|
13392
|
+
),
|
|
13393
|
+
}).pipe(
|
|
13394
|
+
T.Http({
|
|
13395
|
+
method: "POST",
|
|
13396
|
+
path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
|
|
13397
|
+
contentType: "multipart",
|
|
13398
|
+
}),
|
|
13399
|
+
) as unknown as Schema.Schema<CreateScriptVersionRequest>;
|
|
13400
|
+
|
|
13401
|
+
export interface CreateScriptVersionResponse {
|
|
13402
|
+
resources: {
|
|
13403
|
+
bindings?:
|
|
13404
|
+
| (
|
|
13405
|
+
| { name: string; type: "ai" }
|
|
13406
|
+
| { dataset: string; name: string; type: "analytics_engine" }
|
|
13407
|
+
| { name: string; type: "assets" }
|
|
13408
|
+
| { name: string; type: "browser" }
|
|
13409
|
+
| { id: string; name: string; type: "d1" }
|
|
13410
|
+
| { name: string; part: string; type: "data_blob" }
|
|
13411
|
+
| {
|
|
13412
|
+
name: string;
|
|
13413
|
+
namespace: string;
|
|
13414
|
+
type: "dispatch_namespace";
|
|
13415
|
+
outbound?: {
|
|
13416
|
+
params?: string[] | null;
|
|
13417
|
+
worker?: {
|
|
13418
|
+
environment?: string | null;
|
|
13419
|
+
service?: string | null;
|
|
13420
|
+
} | null;
|
|
13421
|
+
} | null;
|
|
13422
|
+
}
|
|
13423
|
+
| {
|
|
13424
|
+
name: string;
|
|
13425
|
+
type: "durable_object_namespace";
|
|
13426
|
+
className?: string | null;
|
|
13427
|
+
environment?: string | null;
|
|
13428
|
+
namespaceId?: string | null;
|
|
13429
|
+
scriptName?: string | null;
|
|
13430
|
+
}
|
|
13431
|
+
| { id: string; name: string; type: "hyperdrive" }
|
|
13432
|
+
| {
|
|
13433
|
+
name: string;
|
|
13434
|
+
type: "inherit";
|
|
13435
|
+
oldName?: string | null;
|
|
13436
|
+
versionId?: string | null;
|
|
13437
|
+
}
|
|
13438
|
+
| { name: string; type: "images" }
|
|
13439
|
+
| { json: string; name: string; type: "json" }
|
|
13440
|
+
| { name: string; namespaceId: string; type: "kv_namespace" }
|
|
13441
|
+
| { certificateId: string; name: string; type: "mtls_certificate" }
|
|
13442
|
+
| { name: string; text: string; type: "plain_text" }
|
|
13443
|
+
| { name: string; pipeline: string; type: "pipelines" }
|
|
13444
|
+
| { name: string; queueName: string; type: "queue" }
|
|
13445
|
+
| {
|
|
13446
|
+
bucketName: string;
|
|
13447
|
+
name: string;
|
|
13448
|
+
type: "r2_bucket";
|
|
13449
|
+
jurisdiction?: "eu" | "fedramp" | null;
|
|
13450
|
+
}
|
|
13451
|
+
| { name: string; type: "secret_text" }
|
|
13452
|
+
| {
|
|
13453
|
+
name: string;
|
|
13454
|
+
type: "send_email";
|
|
13455
|
+
allowedDestinationAddresses?: string[] | null;
|
|
13456
|
+
allowedSenderAddresses?: string[] | null;
|
|
13457
|
+
destinationAddress?: string | null;
|
|
13458
|
+
}
|
|
13459
|
+
| {
|
|
13460
|
+
name: string;
|
|
13461
|
+
service: string;
|
|
13462
|
+
type: "service";
|
|
13463
|
+
environment?: string | null;
|
|
13464
|
+
}
|
|
13465
|
+
| { name: string; part: string; type: "text_blob" }
|
|
13466
|
+
| { indexName: string; name: string; type: "vectorize" }
|
|
13467
|
+
| { name: string; type: "version_metadata" }
|
|
13468
|
+
| {
|
|
13469
|
+
name: string;
|
|
13470
|
+
secretName: string;
|
|
13471
|
+
storeId: string;
|
|
13472
|
+
type: "secrets_store_secret";
|
|
13473
|
+
}
|
|
13474
|
+
| {
|
|
13475
|
+
algorithm: unknown;
|
|
13476
|
+
format: "raw" | "pkcs8" | "spki" | "jwk";
|
|
13477
|
+
name: string;
|
|
13478
|
+
type: "secret_key";
|
|
13479
|
+
usages: (
|
|
13480
|
+
| "encrypt"
|
|
13481
|
+
| "decrypt"
|
|
13482
|
+
| "sign"
|
|
13483
|
+
| "verify"
|
|
13484
|
+
| "deriveKey"
|
|
13485
|
+
| "deriveBits"
|
|
13486
|
+
| "wrapKey"
|
|
13487
|
+
| "unwrapKey"
|
|
13488
|
+
)[];
|
|
13489
|
+
}
|
|
13490
|
+
| {
|
|
13491
|
+
name: string;
|
|
13492
|
+
type: "workflow";
|
|
13493
|
+
workflowName: string;
|
|
13494
|
+
className?: string | null;
|
|
13495
|
+
scriptName?: string | null;
|
|
13496
|
+
}
|
|
13497
|
+
| { name: string; part: string; type: "wasm_module" }
|
|
13498
|
+
| { name: string; type: "worker_loader" }
|
|
13499
|
+
)[]
|
|
13500
|
+
| null;
|
|
13501
|
+
script?: {
|
|
13502
|
+
etag?: string | null;
|
|
13503
|
+
handlers?: string[] | null;
|
|
13504
|
+
lastDeployedFrom?: string | null;
|
|
13505
|
+
namedHandlers?:
|
|
13506
|
+
| { handlers?: string[] | null; name?: string | null }[]
|
|
13507
|
+
| null;
|
|
13508
|
+
} | null;
|
|
13509
|
+
scriptRuntime?: {
|
|
13510
|
+
compatibilityDate?: string | null;
|
|
13511
|
+
compatibilityFlags?: string[] | null;
|
|
13512
|
+
limits?: { cpuMs?: number | null } | null;
|
|
13513
|
+
migrationTag?: string | null;
|
|
13514
|
+
usageModel?: "bundled" | "unbound" | "standard" | null;
|
|
13515
|
+
} | null;
|
|
13516
|
+
};
|
|
13517
|
+
/** Unique identifier for the version. */
|
|
13518
|
+
id?: string | null;
|
|
13519
|
+
metadata?: {
|
|
13520
|
+
authorEmail?: string | null;
|
|
13521
|
+
authorId?: string | null;
|
|
13522
|
+
createdOn?: string | null;
|
|
13523
|
+
hasPreview?: boolean | null;
|
|
13524
|
+
modifiedOn?: string | null;
|
|
13525
|
+
source?:
|
|
13526
|
+
| "unknown"
|
|
13527
|
+
| "api"
|
|
13528
|
+
| "wrangler"
|
|
13529
|
+
| "terraform"
|
|
13530
|
+
| "dash"
|
|
13531
|
+
| "dash_template"
|
|
13532
|
+
| "integration"
|
|
13533
|
+
| "quick_editor"
|
|
13534
|
+
| "playground"
|
|
13535
|
+
| "workersci"
|
|
13536
|
+
| null;
|
|
13537
|
+
} | null;
|
|
13538
|
+
/** Sequential version number. */
|
|
13539
|
+
number?: number | null;
|
|
13540
|
+
/** Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time). */
|
|
13541
|
+
startupTimeMs?: number | null;
|
|
13542
|
+
}
|
|
13543
|
+
|
|
13544
|
+
export const CreateScriptVersionResponse =
|
|
13545
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13546
|
+
resources: Schema.Struct({
|
|
13547
|
+
bindings: Schema.optional(
|
|
13548
|
+
Schema.Union([
|
|
13549
|
+
Schema.Array(
|
|
13550
|
+
Schema.Union([
|
|
13551
|
+
Schema.Struct({
|
|
13552
|
+
name: Schema.String,
|
|
13553
|
+
type: Schema.Literal("ai"),
|
|
13554
|
+
}),
|
|
13555
|
+
Schema.Struct({
|
|
13556
|
+
dataset: Schema.String,
|
|
13557
|
+
name: Schema.String,
|
|
13558
|
+
type: Schema.Literal("analytics_engine"),
|
|
13559
|
+
}),
|
|
13560
|
+
Schema.Struct({
|
|
13561
|
+
name: Schema.String,
|
|
13562
|
+
type: Schema.Literal("assets"),
|
|
13563
|
+
}),
|
|
13564
|
+
Schema.Struct({
|
|
13565
|
+
name: Schema.String,
|
|
13566
|
+
type: Schema.Literal("browser"),
|
|
13567
|
+
}),
|
|
13568
|
+
Schema.Struct({
|
|
13569
|
+
id: Schema.String,
|
|
13570
|
+
name: Schema.String,
|
|
13571
|
+
type: Schema.Literal("d1"),
|
|
13572
|
+
}),
|
|
13573
|
+
Schema.Struct({
|
|
13574
|
+
name: Schema.String,
|
|
13575
|
+
part: Schema.String,
|
|
13576
|
+
type: Schema.Literal("data_blob"),
|
|
13577
|
+
}),
|
|
13578
|
+
Schema.Struct({
|
|
13579
|
+
name: Schema.String,
|
|
13580
|
+
namespace: Schema.String,
|
|
13581
|
+
type: Schema.Literal("dispatch_namespace"),
|
|
13582
|
+
outbound: Schema.optional(
|
|
13583
|
+
Schema.Union([
|
|
12802
13584
|
Schema.Struct({
|
|
12803
|
-
|
|
12804
|
-
|
|
13585
|
+
params: Schema.optional(
|
|
13586
|
+
Schema.Union([
|
|
13587
|
+
Schema.Array(Schema.String),
|
|
13588
|
+
Schema.Null,
|
|
13589
|
+
]),
|
|
13590
|
+
),
|
|
13591
|
+
worker: Schema.optional(
|
|
13592
|
+
Schema.Union([
|
|
13593
|
+
Schema.Struct({
|
|
13594
|
+
environment: Schema.optional(
|
|
13595
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13596
|
+
),
|
|
13597
|
+
service: Schema.optional(
|
|
13598
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13599
|
+
),
|
|
13600
|
+
}),
|
|
13601
|
+
Schema.Null,
|
|
13602
|
+
]),
|
|
13603
|
+
),
|
|
12805
13604
|
}),
|
|
12806
|
-
|
|
13605
|
+
Schema.Null,
|
|
13606
|
+
]),
|
|
13607
|
+
),
|
|
13608
|
+
}),
|
|
13609
|
+
Schema.Struct({
|
|
13610
|
+
name: Schema.String,
|
|
13611
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
13612
|
+
className: Schema.optional(
|
|
13613
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13614
|
+
),
|
|
13615
|
+
environment: Schema.optional(
|
|
13616
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13617
|
+
),
|
|
13618
|
+
namespaceId: Schema.optional(
|
|
13619
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13620
|
+
),
|
|
13621
|
+
scriptName: Schema.optional(
|
|
13622
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13623
|
+
),
|
|
13624
|
+
}).pipe(
|
|
13625
|
+
Schema.encodeKeys({
|
|
13626
|
+
name: "name",
|
|
13627
|
+
type: "type",
|
|
13628
|
+
className: "class_name",
|
|
13629
|
+
environment: "environment",
|
|
13630
|
+
namespaceId: "namespace_id",
|
|
13631
|
+
scriptName: "script_name",
|
|
12807
13632
|
}),
|
|
12808
13633
|
),
|
|
12809
|
-
|
|
12810
|
-
|
|
12811
|
-
|
|
12812
|
-
|
|
12813
|
-
className: Schema.optional(Schema.String),
|
|
12814
|
-
environment: Schema.optional(Schema.String),
|
|
12815
|
-
namespaceId: Schema.optional(Schema.String),
|
|
12816
|
-
scriptName: Schema.optional(Schema.String),
|
|
12817
|
-
}).pipe(
|
|
12818
|
-
Schema.encodeKeys({
|
|
12819
|
-
name: "name",
|
|
12820
|
-
type: "type",
|
|
12821
|
-
className: "class_name",
|
|
12822
|
-
environment: "environment",
|
|
12823
|
-
namespaceId: "namespace_id",
|
|
12824
|
-
scriptName: "script_name",
|
|
13634
|
+
Schema.Struct({
|
|
13635
|
+
id: Schema.String,
|
|
13636
|
+
name: Schema.String,
|
|
13637
|
+
type: Schema.Literal("hyperdrive"),
|
|
12825
13638
|
}),
|
|
12826
|
-
|
|
12827
|
-
|
|
12828
|
-
|
|
12829
|
-
|
|
12830
|
-
|
|
12831
|
-
|
|
12832
|
-
|
|
12833
|
-
|
|
12834
|
-
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12841
|
-
|
|
12842
|
-
|
|
13639
|
+
Schema.Struct({
|
|
13640
|
+
name: Schema.String,
|
|
13641
|
+
type: Schema.Literal("inherit"),
|
|
13642
|
+
oldName: Schema.optional(
|
|
13643
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13644
|
+
),
|
|
13645
|
+
versionId: Schema.optional(
|
|
13646
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13647
|
+
),
|
|
13648
|
+
}).pipe(
|
|
13649
|
+
Schema.encodeKeys({
|
|
13650
|
+
name: "name",
|
|
13651
|
+
type: "type",
|
|
13652
|
+
oldName: "old_name",
|
|
13653
|
+
versionId: "version_id",
|
|
13654
|
+
}),
|
|
13655
|
+
),
|
|
13656
|
+
Schema.Struct({
|
|
13657
|
+
name: Schema.String,
|
|
13658
|
+
type: Schema.Literal("images"),
|
|
12843
13659
|
}),
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12847
|
-
|
|
12848
|
-
}),
|
|
12849
|
-
Schema.Struct({
|
|
12850
|
-
json: Schema.String,
|
|
12851
|
-
name: Schema.String,
|
|
12852
|
-
type: Schema.Literal("json"),
|
|
12853
|
-
}),
|
|
12854
|
-
Schema.Struct({
|
|
12855
|
-
name: Schema.String,
|
|
12856
|
-
namespaceId: Schema.String,
|
|
12857
|
-
type: Schema.Literal("kv_namespace"),
|
|
12858
|
-
}).pipe(
|
|
12859
|
-
Schema.encodeKeys({
|
|
12860
|
-
name: "name",
|
|
12861
|
-
namespaceId: "namespace_id",
|
|
12862
|
-
type: "type",
|
|
13660
|
+
Schema.Struct({
|
|
13661
|
+
json: Schema.String,
|
|
13662
|
+
name: Schema.String,
|
|
13663
|
+
type: Schema.Literal("json"),
|
|
12863
13664
|
}),
|
|
12864
|
-
|
|
12865
|
-
|
|
12866
|
-
|
|
12867
|
-
|
|
12868
|
-
|
|
12869
|
-
|
|
12870
|
-
|
|
12871
|
-
|
|
12872
|
-
|
|
12873
|
-
|
|
13665
|
+
Schema.Struct({
|
|
13666
|
+
name: Schema.String,
|
|
13667
|
+
namespaceId: Schema.String,
|
|
13668
|
+
type: Schema.Literal("kv_namespace"),
|
|
13669
|
+
}).pipe(
|
|
13670
|
+
Schema.encodeKeys({
|
|
13671
|
+
name: "name",
|
|
13672
|
+
namespaceId: "namespace_id",
|
|
13673
|
+
type: "type",
|
|
13674
|
+
}),
|
|
13675
|
+
),
|
|
13676
|
+
Schema.Struct({
|
|
13677
|
+
certificateId: Schema.String,
|
|
13678
|
+
name: Schema.String,
|
|
13679
|
+
type: Schema.Literal("mtls_certificate"),
|
|
13680
|
+
}).pipe(
|
|
13681
|
+
Schema.encodeKeys({
|
|
13682
|
+
certificateId: "certificate_id",
|
|
13683
|
+
name: "name",
|
|
13684
|
+
type: "type",
|
|
13685
|
+
}),
|
|
13686
|
+
),
|
|
13687
|
+
Schema.Struct({
|
|
13688
|
+
name: Schema.String,
|
|
13689
|
+
text: Schema.String,
|
|
13690
|
+
type: Schema.Literal("plain_text"),
|
|
13691
|
+
}),
|
|
13692
|
+
Schema.Struct({
|
|
13693
|
+
name: Schema.String,
|
|
13694
|
+
pipeline: Schema.String,
|
|
13695
|
+
type: Schema.Literal("pipelines"),
|
|
13696
|
+
}),
|
|
13697
|
+
Schema.Struct({
|
|
13698
|
+
name: Schema.String,
|
|
13699
|
+
queueName: Schema.String,
|
|
13700
|
+
type: Schema.Literal("queue"),
|
|
13701
|
+
}).pipe(
|
|
13702
|
+
Schema.encodeKeys({
|
|
13703
|
+
name: "name",
|
|
13704
|
+
queueName: "queue_name",
|
|
13705
|
+
type: "type",
|
|
13706
|
+
}),
|
|
13707
|
+
),
|
|
13708
|
+
Schema.Struct({
|
|
13709
|
+
bucketName: Schema.String,
|
|
13710
|
+
name: Schema.String,
|
|
13711
|
+
type: Schema.Literal("r2_bucket"),
|
|
13712
|
+
jurisdiction: Schema.optional(
|
|
13713
|
+
Schema.Union([
|
|
13714
|
+
Schema.Literals(["eu", "fedramp"]),
|
|
13715
|
+
Schema.Null,
|
|
13716
|
+
]),
|
|
13717
|
+
),
|
|
13718
|
+
}).pipe(
|
|
13719
|
+
Schema.encodeKeys({
|
|
13720
|
+
bucketName: "bucket_name",
|
|
13721
|
+
name: "name",
|
|
13722
|
+
type: "type",
|
|
13723
|
+
jurisdiction: "jurisdiction",
|
|
13724
|
+
}),
|
|
13725
|
+
),
|
|
13726
|
+
Schema.Struct({
|
|
13727
|
+
name: Schema.String,
|
|
13728
|
+
type: Schema.Literal("secret_text"),
|
|
13729
|
+
}),
|
|
13730
|
+
Schema.Struct({
|
|
13731
|
+
name: Schema.String,
|
|
13732
|
+
type: Schema.Literal("send_email"),
|
|
13733
|
+
allowedDestinationAddresses: Schema.optional(
|
|
13734
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
13735
|
+
),
|
|
13736
|
+
allowedSenderAddresses: Schema.optional(
|
|
13737
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
13738
|
+
),
|
|
13739
|
+
destinationAddress: Schema.optional(
|
|
13740
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13741
|
+
),
|
|
13742
|
+
}).pipe(
|
|
13743
|
+
Schema.encodeKeys({
|
|
13744
|
+
name: "name",
|
|
13745
|
+
type: "type",
|
|
13746
|
+
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
13747
|
+
allowedSenderAddresses: "allowed_sender_addresses",
|
|
13748
|
+
destinationAddress: "destination_address",
|
|
13749
|
+
}),
|
|
13750
|
+
),
|
|
13751
|
+
Schema.Struct({
|
|
13752
|
+
name: Schema.String,
|
|
13753
|
+
service: Schema.String,
|
|
13754
|
+
type: Schema.Literal("service"),
|
|
13755
|
+
environment: Schema.optional(
|
|
13756
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13757
|
+
),
|
|
12874
13758
|
}),
|
|
12875
|
-
|
|
12876
|
-
|
|
12877
|
-
|
|
12878
|
-
|
|
12879
|
-
type: Schema.Literal("plain_text"),
|
|
12880
|
-
}),
|
|
12881
|
-
Schema.Struct({
|
|
12882
|
-
name: Schema.String,
|
|
12883
|
-
pipeline: Schema.String,
|
|
12884
|
-
type: Schema.Literal("pipelines"),
|
|
12885
|
-
}),
|
|
12886
|
-
Schema.Struct({
|
|
12887
|
-
name: Schema.String,
|
|
12888
|
-
queueName: Schema.String,
|
|
12889
|
-
type: Schema.Literal("queue"),
|
|
12890
|
-
}).pipe(
|
|
12891
|
-
Schema.encodeKeys({
|
|
12892
|
-
name: "name",
|
|
12893
|
-
queueName: "queue_name",
|
|
12894
|
-
type: "type",
|
|
13759
|
+
Schema.Struct({
|
|
13760
|
+
name: Schema.String,
|
|
13761
|
+
part: Schema.String,
|
|
13762
|
+
type: Schema.Literal("text_blob"),
|
|
12895
13763
|
}),
|
|
12896
|
-
|
|
12897
|
-
|
|
12898
|
-
|
|
12899
|
-
|
|
12900
|
-
|
|
12901
|
-
|
|
12902
|
-
|
|
12903
|
-
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
|
|
12907
|
-
|
|
13764
|
+
Schema.Struct({
|
|
13765
|
+
indexName: Schema.String,
|
|
13766
|
+
name: Schema.String,
|
|
13767
|
+
type: Schema.Literal("vectorize"),
|
|
13768
|
+
}).pipe(
|
|
13769
|
+
Schema.encodeKeys({
|
|
13770
|
+
indexName: "index_name",
|
|
13771
|
+
name: "name",
|
|
13772
|
+
type: "type",
|
|
13773
|
+
}),
|
|
13774
|
+
),
|
|
13775
|
+
Schema.Struct({
|
|
13776
|
+
name: Schema.String,
|
|
13777
|
+
type: Schema.Literal("version_metadata"),
|
|
12908
13778
|
}),
|
|
12909
|
-
|
|
12910
|
-
|
|
12911
|
-
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
|
|
12915
|
-
|
|
12916
|
-
|
|
12917
|
-
|
|
12918
|
-
|
|
12919
|
-
|
|
13779
|
+
Schema.Struct({
|
|
13780
|
+
name: Schema.String,
|
|
13781
|
+
secretName: Schema.String,
|
|
13782
|
+
storeId: Schema.String,
|
|
13783
|
+
type: Schema.Literal("secrets_store_secret"),
|
|
13784
|
+
}).pipe(
|
|
13785
|
+
Schema.encodeKeys({
|
|
13786
|
+
name: "name",
|
|
13787
|
+
secretName: "secret_name",
|
|
13788
|
+
storeId: "store_id",
|
|
13789
|
+
type: "type",
|
|
13790
|
+
}),
|
|
12920
13791
|
),
|
|
12921
|
-
|
|
12922
|
-
Schema.
|
|
13792
|
+
Schema.Struct({
|
|
13793
|
+
algorithm: Schema.Unknown,
|
|
13794
|
+
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
13795
|
+
name: Schema.String,
|
|
13796
|
+
type: Schema.Literal("secret_key"),
|
|
13797
|
+
usages: Schema.Array(
|
|
13798
|
+
Schema.Literals([
|
|
13799
|
+
"encrypt",
|
|
13800
|
+
"decrypt",
|
|
13801
|
+
"sign",
|
|
13802
|
+
"verify",
|
|
13803
|
+
"deriveKey",
|
|
13804
|
+
"deriveBits",
|
|
13805
|
+
"wrapKey",
|
|
13806
|
+
"unwrapKey",
|
|
13807
|
+
]),
|
|
13808
|
+
),
|
|
13809
|
+
}),
|
|
13810
|
+
Schema.Struct({
|
|
13811
|
+
name: Schema.String,
|
|
13812
|
+
type: Schema.Literal("workflow"),
|
|
13813
|
+
workflowName: Schema.String,
|
|
13814
|
+
className: Schema.optional(
|
|
13815
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13816
|
+
),
|
|
13817
|
+
scriptName: Schema.optional(
|
|
13818
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13819
|
+
),
|
|
13820
|
+
}).pipe(
|
|
13821
|
+
Schema.encodeKeys({
|
|
13822
|
+
name: "name",
|
|
13823
|
+
type: "type",
|
|
13824
|
+
workflowName: "workflow_name",
|
|
13825
|
+
className: "class_name",
|
|
13826
|
+
scriptName: "script_name",
|
|
13827
|
+
}),
|
|
12923
13828
|
),
|
|
12924
|
-
|
|
12925
|
-
|
|
12926
|
-
|
|
12927
|
-
|
|
12928
|
-
type: "type",
|
|
12929
|
-
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
12930
|
-
allowedSenderAddresses: "allowed_sender_addresses",
|
|
12931
|
-
destinationAddress: "destination_address",
|
|
13829
|
+
Schema.Struct({
|
|
13830
|
+
name: Schema.String,
|
|
13831
|
+
part: Schema.String,
|
|
13832
|
+
type: Schema.Literal("wasm_module"),
|
|
12932
13833
|
}),
|
|
12933
|
-
|
|
12934
|
-
|
|
12935
|
-
|
|
12936
|
-
service: Schema.String,
|
|
12937
|
-
type: Schema.Literal("service"),
|
|
12938
|
-
environment: Schema.optional(Schema.String),
|
|
12939
|
-
}),
|
|
12940
|
-
Schema.Struct({
|
|
12941
|
-
name: Schema.String,
|
|
12942
|
-
part: Schema.String,
|
|
12943
|
-
type: Schema.Literal("text_blob"),
|
|
12944
|
-
}),
|
|
12945
|
-
Schema.Struct({
|
|
12946
|
-
indexName: Schema.String,
|
|
12947
|
-
name: Schema.String,
|
|
12948
|
-
type: Schema.Literal("vectorize"),
|
|
12949
|
-
}).pipe(
|
|
12950
|
-
Schema.encodeKeys({
|
|
12951
|
-
indexName: "index_name",
|
|
12952
|
-
name: "name",
|
|
12953
|
-
type: "type",
|
|
13834
|
+
Schema.Struct({
|
|
13835
|
+
name: Schema.String,
|
|
13836
|
+
type: Schema.Literal("worker_loader"),
|
|
12954
13837
|
}),
|
|
13838
|
+
]),
|
|
13839
|
+
),
|
|
13840
|
+
Schema.Null,
|
|
13841
|
+
]),
|
|
13842
|
+
),
|
|
13843
|
+
script: Schema.optional(
|
|
13844
|
+
Schema.Union([
|
|
13845
|
+
Schema.Struct({
|
|
13846
|
+
etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
13847
|
+
handlers: Schema.optional(
|
|
13848
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
12955
13849
|
),
|
|
12956
|
-
Schema.
|
|
12957
|
-
|
|
12958
|
-
|
|
13850
|
+
lastDeployedFrom: Schema.optional(
|
|
13851
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13852
|
+
),
|
|
13853
|
+
namedHandlers: Schema.optional(
|
|
13854
|
+
Schema.Union([
|
|
13855
|
+
Schema.Array(
|
|
13856
|
+
Schema.Struct({
|
|
13857
|
+
handlers: Schema.optional(
|
|
13858
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
13859
|
+
),
|
|
13860
|
+
name: Schema.optional(
|
|
13861
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13862
|
+
),
|
|
13863
|
+
}),
|
|
13864
|
+
),
|
|
13865
|
+
Schema.Null,
|
|
13866
|
+
]),
|
|
13867
|
+
),
|
|
13868
|
+
}).pipe(
|
|
13869
|
+
Schema.encodeKeys({
|
|
13870
|
+
etag: "etag",
|
|
13871
|
+
handlers: "handlers",
|
|
13872
|
+
lastDeployedFrom: "last_deployed_from",
|
|
13873
|
+
namedHandlers: "named_handlers",
|
|
12959
13874
|
}),
|
|
12960
|
-
|
|
12961
|
-
|
|
12962
|
-
|
|
12963
|
-
|
|
12964
|
-
|
|
12965
|
-
|
|
12966
|
-
|
|
12967
|
-
|
|
12968
|
-
|
|
12969
|
-
storeId: "store_id",
|
|
12970
|
-
type: "type",
|
|
12971
|
-
}),
|
|
13875
|
+
),
|
|
13876
|
+
Schema.Null,
|
|
13877
|
+
]),
|
|
13878
|
+
),
|
|
13879
|
+
scriptRuntime: Schema.optional(
|
|
13880
|
+
Schema.Union([
|
|
13881
|
+
Schema.Struct({
|
|
13882
|
+
compatibilityDate: Schema.optional(
|
|
13883
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
12972
13884
|
),
|
|
12973
|
-
Schema.
|
|
12974
|
-
|
|
12975
|
-
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
12976
|
-
name: Schema.String,
|
|
12977
|
-
type: Schema.Literal("secret_key"),
|
|
12978
|
-
usages: Schema.Array(
|
|
12979
|
-
Schema.Literals([
|
|
12980
|
-
"encrypt",
|
|
12981
|
-
"decrypt",
|
|
12982
|
-
"sign",
|
|
12983
|
-
"verify",
|
|
12984
|
-
"deriveKey",
|
|
12985
|
-
"deriveBits",
|
|
12986
|
-
"wrapKey",
|
|
12987
|
-
"unwrapKey",
|
|
12988
|
-
]),
|
|
12989
|
-
),
|
|
12990
|
-
keyBase64: Schema.optional(Schema.String),
|
|
12991
|
-
keyJwk: Schema.optional(Schema.Unknown),
|
|
12992
|
-
}).pipe(
|
|
12993
|
-
Schema.encodeKeys({
|
|
12994
|
-
algorithm: "algorithm",
|
|
12995
|
-
format: "format",
|
|
12996
|
-
name: "name",
|
|
12997
|
-
type: "type",
|
|
12998
|
-
usages: "usages",
|
|
12999
|
-
keyBase64: "key_base64",
|
|
13000
|
-
keyJwk: "key_jwk",
|
|
13001
|
-
}),
|
|
13885
|
+
compatibilityFlags: Schema.optional(
|
|
13886
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
13002
13887
|
),
|
|
13003
|
-
Schema.
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
type: "type",
|
|
13013
|
-
workflowName: "workflow_name",
|
|
13014
|
-
className: "class_name",
|
|
13015
|
-
scriptName: "script_name",
|
|
13016
|
-
}),
|
|
13888
|
+
limits: Schema.optional(
|
|
13889
|
+
Schema.Union([
|
|
13890
|
+
Schema.Struct({
|
|
13891
|
+
cpuMs: Schema.optional(
|
|
13892
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
13893
|
+
),
|
|
13894
|
+
}).pipe(Schema.encodeKeys({ cpuMs: "cpu_ms" })),
|
|
13895
|
+
Schema.Null,
|
|
13896
|
+
]),
|
|
13017
13897
|
),
|
|
13018
|
-
Schema.
|
|
13019
|
-
|
|
13020
|
-
|
|
13021
|
-
|
|
13022
|
-
|
|
13023
|
-
|
|
13024
|
-
|
|
13025
|
-
|
|
13898
|
+
migrationTag: Schema.optional(
|
|
13899
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13900
|
+
),
|
|
13901
|
+
usageModel: Schema.optional(
|
|
13902
|
+
Schema.Union([
|
|
13903
|
+
Schema.Literals(["bundled", "unbound", "standard"]),
|
|
13904
|
+
Schema.Null,
|
|
13905
|
+
]),
|
|
13906
|
+
),
|
|
13907
|
+
}).pipe(
|
|
13908
|
+
Schema.encodeKeys({
|
|
13909
|
+
compatibilityDate: "compatibility_date",
|
|
13910
|
+
compatibilityFlags: "compatibility_flags",
|
|
13911
|
+
limits: "limits",
|
|
13912
|
+
migrationTag: "migration_tag",
|
|
13913
|
+
usageModel: "usage_model",
|
|
13026
13914
|
}),
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
compatibilityDate: Schema.optional(Schema.String),
|
|
13031
|
-
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
13032
|
-
keepBindings: Schema.optional(Schema.Array(Schema.String)),
|
|
13033
|
-
usageModel: Schema.optional(
|
|
13034
|
-
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
13915
|
+
),
|
|
13916
|
+
Schema.Null,
|
|
13917
|
+
]),
|
|
13035
13918
|
),
|
|
13036
13919
|
}).pipe(
|
|
13037
13920
|
Schema.encodeKeys({
|
|
13038
|
-
mainModule: "main_module",
|
|
13039
|
-
annotations: "annotations",
|
|
13040
13921
|
bindings: "bindings",
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
keepBindings: "keep_bindings",
|
|
13044
|
-
usageModel: "usage_model",
|
|
13922
|
+
script: "script",
|
|
13923
|
+
scriptRuntime: "script_runtime",
|
|
13045
13924
|
}),
|
|
13046
13925
|
),
|
|
13047
|
-
|
|
13048
|
-
|
|
13926
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
13927
|
+
metadata: Schema.optional(
|
|
13928
|
+
Schema.Union([
|
|
13929
|
+
Schema.Struct({
|
|
13930
|
+
authorEmail: Schema.optional(
|
|
13931
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13932
|
+
),
|
|
13933
|
+
authorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
13934
|
+
createdOn: Schema.optional(
|
|
13935
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13936
|
+
),
|
|
13937
|
+
hasPreview: Schema.optional(
|
|
13938
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
13939
|
+
),
|
|
13940
|
+
modifiedOn: Schema.optional(
|
|
13941
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
13942
|
+
),
|
|
13943
|
+
source: Schema.optional(
|
|
13944
|
+
Schema.Union([
|
|
13945
|
+
Schema.Literals([
|
|
13946
|
+
"unknown",
|
|
13947
|
+
"api",
|
|
13948
|
+
"wrangler",
|
|
13949
|
+
"terraform",
|
|
13950
|
+
"dash",
|
|
13951
|
+
"dash_template",
|
|
13952
|
+
"integration",
|
|
13953
|
+
"quick_editor",
|
|
13954
|
+
"playground",
|
|
13955
|
+
"workersci",
|
|
13956
|
+
]),
|
|
13957
|
+
Schema.Null,
|
|
13958
|
+
]),
|
|
13959
|
+
),
|
|
13960
|
+
}).pipe(
|
|
13961
|
+
Schema.encodeKeys({
|
|
13962
|
+
authorEmail: "author_email",
|
|
13963
|
+
authorId: "author_id",
|
|
13964
|
+
createdOn: "created_on",
|
|
13965
|
+
hasPreview: "hasPreview",
|
|
13966
|
+
modifiedOn: "modified_on",
|
|
13967
|
+
source: "source",
|
|
13968
|
+
}),
|
|
13969
|
+
),
|
|
13970
|
+
Schema.Null,
|
|
13971
|
+
]),
|
|
13049
13972
|
),
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13054
|
-
|
|
13055
|
-
|
|
13056
|
-
|
|
13973
|
+
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
13974
|
+
startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
13975
|
+
})
|
|
13976
|
+
.pipe(
|
|
13977
|
+
Schema.encodeKeys({
|
|
13978
|
+
resources: "resources",
|
|
13979
|
+
id: "id",
|
|
13980
|
+
metadata: "metadata",
|
|
13981
|
+
number: "number",
|
|
13982
|
+
startupTimeMs: "startup_time_ms",
|
|
13983
|
+
}),
|
|
13984
|
+
)
|
|
13985
|
+
.pipe(
|
|
13986
|
+
T.ResponsePath("result"),
|
|
13987
|
+
) as unknown as Schema.Schema<CreateScriptVersionResponse>;
|
|
13057
13988
|
|
|
13058
|
-
export
|
|
13059
|
-
|
|
13060
|
-
|
|
13061
|
-
|
|
13062
|
-
|
|
13063
|
-
|
|
13064
|
-
|
|
13065
|
-
|
|
13066
|
-
|
|
13067
|
-
|
|
13068
|
-
|
|
13069
|
-
|
|
13070
|
-
|
|
13071
|
-
|
|
13072
|
-
|
|
13073
|
-
|
|
13074
|
-
|
|
13075
|
-
|
|
13076
|
-
|
|
13077
|
-
|
|
13078
|
-
|
|
13079
|
-
|
|
13080
|
-
|
|
13081
|
-
|
|
13082
|
-
|
|
13083
|
-
|
|
13084
|
-
|
|
13085
|
-
|
|
13086
|
-
|
|
13087
|
-
|
|
13088
|
-
|
|
13089
|
-
|
|
13090
|
-
|
|
13091
|
-
|
|
13092
|
-
|
|
13093
|
-
|
|
13094
|
-
|
|
13095
|
-
|
|
13096
|
-
|
|
13097
|
-
|
|
13098
|
-
|
|
13099
|
-
|
|
13100
|
-
|
|
13101
|
-
|
|
13102
|
-
|
|
13103
|
-
|
|
13104
|
-
|
|
13105
|
-
|
|
13106
|
-
|
|
13107
|
-
|
|
13108
|
-
|
|
13109
|
-
|
|
13110
|
-
|
|
13111
|
-
|
|
13112
|
-
|
|
13113
|
-
|
|
13114
|
-
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
|
|
13118
|
-
|
|
13119
|
-
|
|
13120
|
-
|
|
13121
|
-
|
|
13122
|
-
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13140
|
-
|
|
13141
|
-
|
|
13142
|
-
|
|
13143
|
-
|
|
13144
|
-
|
|
13145
|
-
|
|
13146
|
-
}
|
|
13147
|
-
|
|
13148
|
-
|
|
13149
|
-
|
|
13150
|
-
|
|
13151
|
-
|
|
13152
|
-
|
|
13153
|
-
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
|
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13172
|
-
|
|
13989
|
+
export type CreateScriptVersionError = DefaultErrors | WorkerNotFound;
|
|
13990
|
+
|
|
13991
|
+
export const createScriptVersion: API.OperationMethod<
|
|
13992
|
+
CreateScriptVersionRequest,
|
|
13993
|
+
CreateScriptVersionResponse,
|
|
13994
|
+
CreateScriptVersionError,
|
|
13995
|
+
Credentials | HttpClient.HttpClient
|
|
13996
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
13997
|
+
input: CreateScriptVersionRequest,
|
|
13998
|
+
output: CreateScriptVersionResponse,
|
|
13999
|
+
errors: [WorkerNotFound],
|
|
14000
|
+
}));
|
|
14001
|
+
|
|
14002
|
+
// =============================================================================
|
|
14003
|
+
// ServiceEdgePreview
|
|
14004
|
+
// =============================================================================
|
|
14005
|
+
|
|
14006
|
+
export interface CreateServiceEdgePreviewRequest {
|
|
14007
|
+
accountId: string;
|
|
14008
|
+
serviceName: string;
|
|
14009
|
+
environmentName: string;
|
|
14010
|
+
/** The session token returned by createZoneEdgePreviewSession or createSubdomainEdgePreviewSession. */
|
|
14011
|
+
cfPreviewUploadConfigToken: string;
|
|
14012
|
+
metadata?: {
|
|
14013
|
+
mainModule?: string;
|
|
14014
|
+
bodyPart?: string;
|
|
14015
|
+
compatibilityDate?: string;
|
|
14016
|
+
compatibilityFlags?: string[];
|
|
14017
|
+
usageModel?: "bundled" | "unbound" | "standard";
|
|
14018
|
+
bindings?: (
|
|
14019
|
+
| { type: "plain_text"; name: string; text: string }
|
|
14020
|
+
| { type: "secret_text"; name: string; text: string }
|
|
14021
|
+
| { type: "json"; name: string; json: unknown }
|
|
14022
|
+
| {
|
|
14023
|
+
type: "kv_namespace";
|
|
14024
|
+
name: string;
|
|
14025
|
+
namespaceId: string;
|
|
14026
|
+
raw?: boolean;
|
|
14027
|
+
}
|
|
14028
|
+
| {
|
|
14029
|
+
type: "durable_object_namespace";
|
|
14030
|
+
name: string;
|
|
14031
|
+
className: string;
|
|
14032
|
+
scriptName?: string;
|
|
14033
|
+
environment?: string;
|
|
14034
|
+
namespaceId?: string;
|
|
14035
|
+
}
|
|
14036
|
+
| {
|
|
14037
|
+
type: "r2_bucket";
|
|
14038
|
+
name: string;
|
|
14039
|
+
bucketName: string;
|
|
14040
|
+
jurisdiction?: string;
|
|
14041
|
+
raw?: boolean;
|
|
14042
|
+
}
|
|
14043
|
+
| { type: "d1"; name: string; id: string; raw?: boolean }
|
|
14044
|
+
| {
|
|
14045
|
+
type: "queue";
|
|
14046
|
+
name: string;
|
|
14047
|
+
queueName: string;
|
|
14048
|
+
deliveryDelay?: number;
|
|
14049
|
+
raw?: boolean;
|
|
14050
|
+
}
|
|
14051
|
+
| {
|
|
14052
|
+
type: "service";
|
|
14053
|
+
name: string;
|
|
14054
|
+
service: string;
|
|
14055
|
+
environment?: string;
|
|
14056
|
+
entrypoint?: string;
|
|
14057
|
+
}
|
|
14058
|
+
| { type: "ai"; name: string; staging?: boolean; raw?: boolean }
|
|
14059
|
+
| { type: "browser"; name: string; raw?: boolean }
|
|
14060
|
+
| { type: "images"; name: string; raw?: boolean }
|
|
14061
|
+
| { type: "vectorize"; name: string; indexName: string; raw?: boolean }
|
|
14062
|
+
| {
|
|
14063
|
+
type: "workflow";
|
|
14064
|
+
name: string;
|
|
14065
|
+
workflowName: string;
|
|
14066
|
+
className: string;
|
|
14067
|
+
scriptName?: string;
|
|
14068
|
+
raw?: boolean;
|
|
14069
|
+
}
|
|
14070
|
+
| { type: "hyperdrive"; name: string; id: string }
|
|
14071
|
+
| { type: "analytics_engine"; name: string; dataset?: string }
|
|
14072
|
+
| {
|
|
14073
|
+
type: "dispatch_namespace";
|
|
14074
|
+
name: string;
|
|
14075
|
+
namespace: string;
|
|
14076
|
+
outbound?: {
|
|
14077
|
+
worker?: { service?: string; environment?: string };
|
|
14078
|
+
params?: { name: string }[];
|
|
14079
|
+
};
|
|
14080
|
+
}
|
|
14081
|
+
| {
|
|
14082
|
+
type: "send_email";
|
|
14083
|
+
name: string;
|
|
14084
|
+
destinationAddress?: string;
|
|
14085
|
+
allowedDestinationAddresses?: string[];
|
|
14086
|
+
allowedSenderAddresses?: string[];
|
|
14087
|
+
}
|
|
14088
|
+
| { type: "mtls_certificate"; name: string; certificateId: string }
|
|
14089
|
+
| { type: "wasm_module"; name: string; part: string }
|
|
14090
|
+
| { type: "text_blob"; name: string; part: string }
|
|
14091
|
+
| { type: "data_blob"; name: string; part: string }
|
|
14092
|
+
| { type: "pipelines"; name: string; pipeline: string }
|
|
14093
|
+
| {
|
|
14094
|
+
type: "secrets_store_secret";
|
|
14095
|
+
name: string;
|
|
14096
|
+
storeId: string;
|
|
14097
|
+
secretName: string;
|
|
14098
|
+
}
|
|
14099
|
+
| { type: "stream"; name: string }
|
|
14100
|
+
| { type: "media"; name: string }
|
|
14101
|
+
| { type: "version_metadata"; name: string }
|
|
14102
|
+
| { type: "assets"; name: string }
|
|
14103
|
+
| { type: "worker_loader"; name: string }
|
|
14104
|
+
| { type: "logfwdr"; name: string; destination: string }
|
|
14105
|
+
| { type: "ai_search_namespace"; name: string; namespace: string }
|
|
14106
|
+
| { type: "ai_search"; name: string; instanceName: string }
|
|
14107
|
+
| {
|
|
14108
|
+
type: "ratelimit";
|
|
14109
|
+
name: string;
|
|
14110
|
+
namespaceId: string;
|
|
14111
|
+
simple: { limit: number; period: "10" | "60" };
|
|
14112
|
+
}
|
|
14113
|
+
| { type: "inherit"; name: string }
|
|
14114
|
+
)[];
|
|
14115
|
+
keepBindings?: string[];
|
|
14116
|
+
migrations?: {
|
|
14117
|
+
oldTag?: string;
|
|
14118
|
+
newTag?: string;
|
|
14119
|
+
steps?: {
|
|
14120
|
+
newClasses?: string[];
|
|
14121
|
+
newSqliteClasses?: string[];
|
|
14122
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
14123
|
+
deletedClasses?: string[];
|
|
14124
|
+
}[];
|
|
14125
|
+
};
|
|
14126
|
+
capnpSchema?: string;
|
|
14127
|
+
logpush?: boolean;
|
|
14128
|
+
placement?:
|
|
14129
|
+
| { mode: "smart"; hint?: string }
|
|
14130
|
+
| { region: string }
|
|
14131
|
+
| { host: string }
|
|
14132
|
+
| { hostname: string };
|
|
14133
|
+
tailConsumers?: { service: string; environment?: string }[];
|
|
14134
|
+
streamingTailConsumers?: { service: string; environment?: string }[];
|
|
14135
|
+
limits?: { cpuMs?: number; subrequests?: number };
|
|
14136
|
+
assets?: {
|
|
14137
|
+
jwt?: string;
|
|
14138
|
+
config?: {
|
|
14139
|
+
htmlHandling?:
|
|
14140
|
+
| "auto-trailing-slash"
|
|
14141
|
+
| "force-trailing-slash"
|
|
14142
|
+
| "drop-trailing-slash"
|
|
14143
|
+
| "none";
|
|
14144
|
+
notFoundHandling?: "single-page-application" | "404-page" | "none";
|
|
14145
|
+
runWorkerFirst?: boolean | string[];
|
|
14146
|
+
redirects?: string;
|
|
14147
|
+
headers?: string;
|
|
14148
|
+
};
|
|
14149
|
+
};
|
|
14150
|
+
observability?: {
|
|
14151
|
+
enabled?: boolean;
|
|
14152
|
+
headSamplingRate?: number;
|
|
14153
|
+
logs?: {
|
|
14154
|
+
enabled?: boolean;
|
|
14155
|
+
headSamplingRate?: number;
|
|
14156
|
+
invocationLogs?: boolean;
|
|
14157
|
+
persist?: boolean;
|
|
14158
|
+
destinations?: string[];
|
|
14159
|
+
};
|
|
14160
|
+
traces?: {
|
|
14161
|
+
enabled?: boolean;
|
|
14162
|
+
headSamplingRate?: number;
|
|
14163
|
+
persist?: boolean;
|
|
14164
|
+
destinations?: string[];
|
|
14165
|
+
};
|
|
14166
|
+
};
|
|
14167
|
+
containers?: { className: string }[];
|
|
14168
|
+
annotations?: unknown;
|
|
14169
|
+
keepAssets?: boolean;
|
|
14170
|
+
tags?: string[];
|
|
13173
14171
|
};
|
|
13174
|
-
/**
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
createdOn?: string | null;
|
|
13180
|
-
hasPreview?: boolean | null;
|
|
13181
|
-
modifiedOn?: string | null;
|
|
13182
|
-
source?:
|
|
13183
|
-
| "unknown"
|
|
13184
|
-
| "api"
|
|
13185
|
-
| "wrangler"
|
|
13186
|
-
| "terraform"
|
|
13187
|
-
| "dash"
|
|
13188
|
-
| "dash_template"
|
|
13189
|
-
| "integration"
|
|
13190
|
-
| "quick_editor"
|
|
13191
|
-
| "playground"
|
|
13192
|
-
| "workersci"
|
|
13193
|
-
| null;
|
|
13194
|
-
} | null;
|
|
13195
|
-
/** Sequential version number. */
|
|
13196
|
-
number?: number | null;
|
|
13197
|
-
/** Time in milliseconds spent on [Worker startup](https://developers.cloudflare.com/workers/platform/limits/#worker-startup-time). */
|
|
13198
|
-
startupTimeMs?: number | null;
|
|
14172
|
+
/** Module files comprising the worker script. */
|
|
14173
|
+
files?: (File | Blob)[];
|
|
14174
|
+
wranglerSessionConfig?:
|
|
14175
|
+
| { workersDev: true; minimalMode?: boolean }
|
|
14176
|
+
| { routes: string[]; minimalMode?: boolean };
|
|
13199
14177
|
}
|
|
13200
14178
|
|
|
13201
|
-
export const
|
|
14179
|
+
export const CreateServiceEdgePreviewRequest =
|
|
13202
14180
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
14181
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
14182
|
+
serviceName: Schema.String.pipe(T.HttpPath("service_name")),
|
|
14183
|
+
environmentName: Schema.String.pipe(T.HttpPath("environment_name")),
|
|
14184
|
+
cfPreviewUploadConfigToken: Schema.String.pipe(
|
|
14185
|
+
T.HttpHeader("cf-preview-upload-config-token"),
|
|
14186
|
+
),
|
|
14187
|
+
metadata: Schema.optional(
|
|
14188
|
+
Schema.Struct({
|
|
14189
|
+
mainModule: Schema.optional(Schema.String),
|
|
14190
|
+
bodyPart: Schema.optional(Schema.String),
|
|
14191
|
+
compatibilityDate: Schema.optional(Schema.String),
|
|
14192
|
+
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
14193
|
+
usageModel: Schema.optional(
|
|
14194
|
+
Schema.Literals(["bundled", "unbound", "standard"]),
|
|
14195
|
+
),
|
|
14196
|
+
bindings: Schema.optional(
|
|
13206
14197
|
Schema.Array(
|
|
13207
14198
|
Schema.Union([
|
|
13208
14199
|
Schema.Struct({
|
|
14200
|
+
type: Schema.Literal("plain_text"),
|
|
13209
14201
|
name: Schema.String,
|
|
13210
|
-
|
|
13211
|
-
}),
|
|
13212
|
-
Schema.Struct({
|
|
13213
|
-
dataset: Schema.String,
|
|
13214
|
-
name: Schema.String,
|
|
13215
|
-
type: Schema.Literal("analytics_engine"),
|
|
13216
|
-
}),
|
|
13217
|
-
Schema.Struct({
|
|
13218
|
-
name: Schema.String,
|
|
13219
|
-
type: Schema.Literal("assets"),
|
|
13220
|
-
}),
|
|
13221
|
-
Schema.Struct({
|
|
13222
|
-
name: Schema.String,
|
|
13223
|
-
type: Schema.Literal("browser"),
|
|
13224
|
-
}),
|
|
13225
|
-
Schema.Struct({
|
|
13226
|
-
id: Schema.String,
|
|
13227
|
-
name: Schema.String,
|
|
13228
|
-
type: Schema.Literal("d1"),
|
|
14202
|
+
text: Schema.String,
|
|
13229
14203
|
}),
|
|
13230
14204
|
Schema.Struct({
|
|
14205
|
+
type: Schema.Literal("secret_text"),
|
|
13231
14206
|
name: Schema.String,
|
|
13232
|
-
|
|
13233
|
-
type: Schema.Literal("data_blob"),
|
|
14207
|
+
text: Schema.String,
|
|
13234
14208
|
}),
|
|
13235
14209
|
Schema.Struct({
|
|
14210
|
+
type: Schema.Literal("json"),
|
|
13236
14211
|
name: Schema.String,
|
|
13237
|
-
|
|
13238
|
-
type: Schema.Literal("dispatch_namespace"),
|
|
13239
|
-
outbound: Schema.optional(
|
|
13240
|
-
Schema.Union([
|
|
13241
|
-
Schema.Struct({
|
|
13242
|
-
params: Schema.optional(
|
|
13243
|
-
Schema.Union([
|
|
13244
|
-
Schema.Array(Schema.String),
|
|
13245
|
-
Schema.Null,
|
|
13246
|
-
]),
|
|
13247
|
-
),
|
|
13248
|
-
worker: Schema.optional(
|
|
13249
|
-
Schema.Union([
|
|
13250
|
-
Schema.Struct({
|
|
13251
|
-
environment: Schema.optional(
|
|
13252
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13253
|
-
),
|
|
13254
|
-
service: Schema.optional(
|
|
13255
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13256
|
-
),
|
|
13257
|
-
}),
|
|
13258
|
-
Schema.Null,
|
|
13259
|
-
]),
|
|
13260
|
-
),
|
|
13261
|
-
}),
|
|
13262
|
-
Schema.Null,
|
|
13263
|
-
]),
|
|
13264
|
-
),
|
|
14212
|
+
json: Schema.Unknown,
|
|
13265
14213
|
}),
|
|
13266
14214
|
Schema.Struct({
|
|
14215
|
+
type: Schema.Literal("kv_namespace"),
|
|
13267
14216
|
name: Schema.String,
|
|
13268
|
-
|
|
13269
|
-
|
|
13270
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13271
|
-
),
|
|
13272
|
-
environment: Schema.optional(
|
|
13273
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13274
|
-
),
|
|
13275
|
-
namespaceId: Schema.optional(
|
|
13276
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13277
|
-
),
|
|
13278
|
-
scriptName: Schema.optional(
|
|
13279
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13280
|
-
),
|
|
14217
|
+
namespaceId: Schema.String,
|
|
14218
|
+
raw: Schema.optional(Schema.Boolean),
|
|
13281
14219
|
}).pipe(
|
|
13282
14220
|
Schema.encodeKeys({
|
|
13283
|
-
name: "name",
|
|
13284
14221
|
type: "type",
|
|
13285
|
-
|
|
13286
|
-
environment: "environment",
|
|
14222
|
+
name: "name",
|
|
13287
14223
|
namespaceId: "namespace_id",
|
|
13288
|
-
|
|
14224
|
+
raw: "raw",
|
|
13289
14225
|
}),
|
|
13290
14226
|
),
|
|
13291
14227
|
Schema.Struct({
|
|
13292
|
-
|
|
13293
|
-
name: Schema.String,
|
|
13294
|
-
type: Schema.Literal("hyperdrive"),
|
|
13295
|
-
}),
|
|
13296
|
-
Schema.Struct({
|
|
14228
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
13297
14229
|
name: Schema.String,
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
),
|
|
13302
|
-
versionId: Schema.optional(
|
|
13303
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13304
|
-
),
|
|
14230
|
+
className: Schema.String,
|
|
14231
|
+
scriptName: Schema.optional(Schema.String),
|
|
14232
|
+
environment: Schema.optional(Schema.String),
|
|
14233
|
+
namespaceId: Schema.optional(Schema.String),
|
|
13305
14234
|
}).pipe(
|
|
13306
14235
|
Schema.encodeKeys({
|
|
13307
|
-
name: "name",
|
|
13308
14236
|
type: "type",
|
|
13309
|
-
|
|
13310
|
-
|
|
14237
|
+
name: "name",
|
|
14238
|
+
className: "class_name",
|
|
14239
|
+
scriptName: "script_name",
|
|
14240
|
+
environment: "environment",
|
|
14241
|
+
namespaceId: "namespace_id",
|
|
13311
14242
|
}),
|
|
13312
14243
|
),
|
|
13313
14244
|
Schema.Struct({
|
|
14245
|
+
type: Schema.Literal("r2_bucket"),
|
|
13314
14246
|
name: Schema.String,
|
|
13315
|
-
|
|
13316
|
-
|
|
13317
|
-
|
|
13318
|
-
json: Schema.String,
|
|
13319
|
-
name: Schema.String,
|
|
13320
|
-
type: Schema.Literal("json"),
|
|
13321
|
-
}),
|
|
13322
|
-
Schema.Struct({
|
|
13323
|
-
name: Schema.String,
|
|
13324
|
-
namespaceId: Schema.String,
|
|
13325
|
-
type: Schema.Literal("kv_namespace"),
|
|
14247
|
+
bucketName: Schema.String,
|
|
14248
|
+
jurisdiction: Schema.optional(Schema.String),
|
|
14249
|
+
raw: Schema.optional(Schema.Boolean),
|
|
13326
14250
|
}).pipe(
|
|
13327
14251
|
Schema.encodeKeys({
|
|
13328
|
-
name: "name",
|
|
13329
|
-
namespaceId: "namespace_id",
|
|
13330
14252
|
type: "type",
|
|
14253
|
+
name: "name",
|
|
14254
|
+
bucketName: "bucket_name",
|
|
14255
|
+
jurisdiction: "jurisdiction",
|
|
14256
|
+
raw: "raw",
|
|
13331
14257
|
}),
|
|
13332
14258
|
),
|
|
13333
14259
|
Schema.Struct({
|
|
13334
|
-
|
|
14260
|
+
type: Schema.Literal("d1"),
|
|
13335
14261
|
name: Schema.String,
|
|
13336
|
-
|
|
14262
|
+
id: Schema.String,
|
|
14263
|
+
raw: Schema.optional(Schema.Boolean),
|
|
14264
|
+
}),
|
|
14265
|
+
Schema.Struct({
|
|
14266
|
+
type: Schema.Literal("queue"),
|
|
14267
|
+
name: Schema.String,
|
|
14268
|
+
queueName: Schema.String,
|
|
14269
|
+
deliveryDelay: Schema.optional(Schema.Number),
|
|
14270
|
+
raw: Schema.optional(Schema.Boolean),
|
|
13337
14271
|
}).pipe(
|
|
13338
|
-
Schema.encodeKeys({
|
|
13339
|
-
certificateId: "certificate_id",
|
|
13340
|
-
name: "name",
|
|
14272
|
+
Schema.encodeKeys({
|
|
13341
14273
|
type: "type",
|
|
14274
|
+
name: "name",
|
|
14275
|
+
queueName: "queue_name",
|
|
14276
|
+
deliveryDelay: "delivery_delay",
|
|
14277
|
+
raw: "raw",
|
|
13342
14278
|
}),
|
|
13343
14279
|
),
|
|
13344
14280
|
Schema.Struct({
|
|
14281
|
+
type: Schema.Literal("service"),
|
|
13345
14282
|
name: Schema.String,
|
|
13346
|
-
|
|
13347
|
-
|
|
14283
|
+
service: Schema.String,
|
|
14284
|
+
environment: Schema.optional(Schema.String),
|
|
14285
|
+
entrypoint: Schema.optional(Schema.String),
|
|
13348
14286
|
}),
|
|
13349
14287
|
Schema.Struct({
|
|
14288
|
+
type: Schema.Literal("ai"),
|
|
13350
14289
|
name: Schema.String,
|
|
13351
|
-
|
|
13352
|
-
|
|
14290
|
+
staging: Schema.optional(Schema.Boolean),
|
|
14291
|
+
raw: Schema.optional(Schema.Boolean),
|
|
13353
14292
|
}),
|
|
13354
14293
|
Schema.Struct({
|
|
14294
|
+
type: Schema.Literal("browser"),
|
|
13355
14295
|
name: Schema.String,
|
|
13356
|
-
|
|
13357
|
-
|
|
14296
|
+
raw: Schema.optional(Schema.Boolean),
|
|
14297
|
+
}),
|
|
14298
|
+
Schema.Struct({
|
|
14299
|
+
type: Schema.Literal("images"),
|
|
14300
|
+
name: Schema.String,
|
|
14301
|
+
raw: Schema.optional(Schema.Boolean),
|
|
14302
|
+
}),
|
|
14303
|
+
Schema.Struct({
|
|
14304
|
+
type: Schema.Literal("vectorize"),
|
|
14305
|
+
name: Schema.String,
|
|
14306
|
+
indexName: Schema.String,
|
|
14307
|
+
raw: Schema.optional(Schema.Boolean),
|
|
13358
14308
|
}).pipe(
|
|
13359
14309
|
Schema.encodeKeys({
|
|
13360
|
-
name: "name",
|
|
13361
|
-
queueName: "queue_name",
|
|
13362
14310
|
type: "type",
|
|
14311
|
+
name: "name",
|
|
14312
|
+
indexName: "index_name",
|
|
14313
|
+
raw: "raw",
|
|
13363
14314
|
}),
|
|
13364
14315
|
),
|
|
13365
14316
|
Schema.Struct({
|
|
13366
|
-
|
|
14317
|
+
type: Schema.Literal("workflow"),
|
|
13367
14318
|
name: Schema.String,
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
Schema.Null,
|
|
13373
|
-
]),
|
|
13374
|
-
),
|
|
14319
|
+
workflowName: Schema.String,
|
|
14320
|
+
className: Schema.String,
|
|
14321
|
+
scriptName: Schema.optional(Schema.String),
|
|
14322
|
+
raw: Schema.optional(Schema.Boolean),
|
|
13375
14323
|
}).pipe(
|
|
13376
14324
|
Schema.encodeKeys({
|
|
13377
|
-
bucketName: "bucket_name",
|
|
13378
|
-
name: "name",
|
|
13379
14325
|
type: "type",
|
|
13380
|
-
|
|
14326
|
+
name: "name",
|
|
14327
|
+
workflowName: "workflow_name",
|
|
14328
|
+
className: "class_name",
|
|
14329
|
+
scriptName: "script_name",
|
|
14330
|
+
raw: "raw",
|
|
13381
14331
|
}),
|
|
13382
14332
|
),
|
|
13383
14333
|
Schema.Struct({
|
|
14334
|
+
type: Schema.Literal("hyperdrive"),
|
|
13384
14335
|
name: Schema.String,
|
|
13385
|
-
|
|
14336
|
+
id: Schema.String,
|
|
13386
14337
|
}),
|
|
13387
14338
|
Schema.Struct({
|
|
14339
|
+
type: Schema.Literal("analytics_engine"),
|
|
14340
|
+
name: Schema.String,
|
|
14341
|
+
dataset: Schema.optional(Schema.String),
|
|
14342
|
+
}),
|
|
14343
|
+
Schema.Struct({
|
|
14344
|
+
type: Schema.Literal("dispatch_namespace"),
|
|
13388
14345
|
name: Schema.String,
|
|
14346
|
+
namespace: Schema.String,
|
|
14347
|
+
outbound: Schema.optional(
|
|
14348
|
+
Schema.Struct({
|
|
14349
|
+
worker: Schema.optional(
|
|
14350
|
+
Schema.Struct({
|
|
14351
|
+
service: Schema.optional(Schema.String),
|
|
14352
|
+
environment: Schema.optional(Schema.String),
|
|
14353
|
+
}),
|
|
14354
|
+
),
|
|
14355
|
+
params: Schema.optional(
|
|
14356
|
+
Schema.Array(
|
|
14357
|
+
Schema.Struct({
|
|
14358
|
+
name: Schema.String,
|
|
14359
|
+
}),
|
|
14360
|
+
),
|
|
14361
|
+
),
|
|
14362
|
+
}),
|
|
14363
|
+
),
|
|
14364
|
+
}),
|
|
14365
|
+
Schema.Struct({
|
|
13389
14366
|
type: Schema.Literal("send_email"),
|
|
14367
|
+
name: Schema.String,
|
|
14368
|
+
destinationAddress: Schema.optional(Schema.String),
|
|
13390
14369
|
allowedDestinationAddresses: Schema.optional(
|
|
13391
|
-
Schema.
|
|
14370
|
+
Schema.Array(Schema.String),
|
|
13392
14371
|
),
|
|
13393
14372
|
allowedSenderAddresses: Schema.optional(
|
|
13394
|
-
Schema.
|
|
13395
|
-
),
|
|
13396
|
-
destinationAddress: Schema.optional(
|
|
13397
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
14373
|
+
Schema.Array(Schema.String),
|
|
13398
14374
|
),
|
|
13399
14375
|
}).pipe(
|
|
13400
14376
|
Schema.encodeKeys({
|
|
13401
|
-
name: "name",
|
|
13402
14377
|
type: "type",
|
|
14378
|
+
name: "name",
|
|
14379
|
+
destinationAddress: "destination_address",
|
|
13403
14380
|
allowedDestinationAddresses: "allowed_destination_addresses",
|
|
13404
14381
|
allowedSenderAddresses: "allowed_sender_addresses",
|
|
13405
|
-
destinationAddress: "destination_address",
|
|
13406
14382
|
}),
|
|
13407
14383
|
),
|
|
13408
14384
|
Schema.Struct({
|
|
14385
|
+
type: Schema.Literal("mtls_certificate"),
|
|
13409
14386
|
name: Schema.String,
|
|
13410
|
-
|
|
13411
|
-
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
14387
|
+
certificateId: Schema.String,
|
|
14388
|
+
}).pipe(
|
|
14389
|
+
Schema.encodeKeys({
|
|
14390
|
+
type: "type",
|
|
14391
|
+
name: "name",
|
|
14392
|
+
certificateId: "certificate_id",
|
|
14393
|
+
}),
|
|
14394
|
+
),
|
|
13416
14395
|
Schema.Struct({
|
|
14396
|
+
type: Schema.Literal("wasm_module"),
|
|
13417
14397
|
name: Schema.String,
|
|
13418
14398
|
part: Schema.String,
|
|
14399
|
+
}),
|
|
14400
|
+
Schema.Struct({
|
|
13419
14401
|
type: Schema.Literal("text_blob"),
|
|
14402
|
+
name: Schema.String,
|
|
14403
|
+
part: Schema.String,
|
|
13420
14404
|
}),
|
|
13421
14405
|
Schema.Struct({
|
|
13422
|
-
|
|
14406
|
+
type: Schema.Literal("data_blob"),
|
|
13423
14407
|
name: Schema.String,
|
|
13424
|
-
|
|
13425
|
-
})
|
|
13426
|
-
Schema.encodeKeys({
|
|
13427
|
-
indexName: "index_name",
|
|
13428
|
-
name: "name",
|
|
13429
|
-
type: "type",
|
|
13430
|
-
}),
|
|
13431
|
-
),
|
|
14408
|
+
part: Schema.String,
|
|
14409
|
+
}),
|
|
13432
14410
|
Schema.Struct({
|
|
14411
|
+
type: Schema.Literal("pipelines"),
|
|
13433
14412
|
name: Schema.String,
|
|
13434
|
-
|
|
14413
|
+
pipeline: Schema.String,
|
|
13435
14414
|
}),
|
|
13436
14415
|
Schema.Struct({
|
|
14416
|
+
type: Schema.Literal("secrets_store_secret"),
|
|
13437
14417
|
name: Schema.String,
|
|
13438
|
-
secretName: Schema.String,
|
|
13439
14418
|
storeId: Schema.String,
|
|
13440
|
-
|
|
14419
|
+
secretName: Schema.String,
|
|
13441
14420
|
}).pipe(
|
|
13442
14421
|
Schema.encodeKeys({
|
|
14422
|
+
type: "type",
|
|
13443
14423
|
name: "name",
|
|
13444
|
-
secretName: "secret_name",
|
|
13445
14424
|
storeId: "store_id",
|
|
13446
|
-
|
|
14425
|
+
secretName: "secret_name",
|
|
13447
14426
|
}),
|
|
13448
14427
|
),
|
|
13449
14428
|
Schema.Struct({
|
|
13450
|
-
|
|
13451
|
-
format: Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
|
|
14429
|
+
type: Schema.Literal("stream"),
|
|
13452
14430
|
name: Schema.String,
|
|
13453
|
-
type: Schema.Literal("secret_key"),
|
|
13454
|
-
usages: Schema.Array(
|
|
13455
|
-
Schema.Literals([
|
|
13456
|
-
"encrypt",
|
|
13457
|
-
"decrypt",
|
|
13458
|
-
"sign",
|
|
13459
|
-
"verify",
|
|
13460
|
-
"deriveKey",
|
|
13461
|
-
"deriveBits",
|
|
13462
|
-
"wrapKey",
|
|
13463
|
-
"unwrapKey",
|
|
13464
|
-
]),
|
|
13465
|
-
),
|
|
13466
14431
|
}),
|
|
13467
14432
|
Schema.Struct({
|
|
14433
|
+
type: Schema.Literal("media"),
|
|
13468
14434
|
name: Schema.String,
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
14435
|
+
}),
|
|
14436
|
+
Schema.Struct({
|
|
14437
|
+
type: Schema.Literal("version_metadata"),
|
|
14438
|
+
name: Schema.String,
|
|
14439
|
+
}),
|
|
14440
|
+
Schema.Struct({
|
|
14441
|
+
type: Schema.Literal("assets"),
|
|
14442
|
+
name: Schema.String,
|
|
14443
|
+
}),
|
|
14444
|
+
Schema.Struct({
|
|
14445
|
+
type: Schema.Literal("worker_loader"),
|
|
14446
|
+
name: Schema.String,
|
|
14447
|
+
}),
|
|
14448
|
+
Schema.Struct({
|
|
14449
|
+
type: Schema.Literal("logfwdr"),
|
|
14450
|
+
name: Schema.String,
|
|
14451
|
+
destination: Schema.String,
|
|
14452
|
+
}),
|
|
14453
|
+
Schema.Struct({
|
|
14454
|
+
type: Schema.Literal("ai_search_namespace"),
|
|
14455
|
+
name: Schema.String,
|
|
14456
|
+
namespace: Schema.String,
|
|
14457
|
+
}),
|
|
14458
|
+
Schema.Struct({
|
|
14459
|
+
type: Schema.Literal("ai_search"),
|
|
14460
|
+
name: Schema.String,
|
|
14461
|
+
instanceName: Schema.String,
|
|
13477
14462
|
}).pipe(
|
|
13478
14463
|
Schema.encodeKeys({
|
|
13479
|
-
name: "name",
|
|
13480
14464
|
type: "type",
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
scriptName: "script_name",
|
|
14465
|
+
name: "name",
|
|
14466
|
+
instanceName: "instance_name",
|
|
13484
14467
|
}),
|
|
13485
14468
|
),
|
|
13486
14469
|
Schema.Struct({
|
|
14470
|
+
type: Schema.Literal("ratelimit"),
|
|
13487
14471
|
name: Schema.String,
|
|
13488
|
-
|
|
13489
|
-
|
|
13490
|
-
|
|
14472
|
+
namespaceId: Schema.String,
|
|
14473
|
+
simple: Schema.Struct({
|
|
14474
|
+
limit: Schema.Number,
|
|
14475
|
+
period: Schema.Literals(["10", "60"]),
|
|
14476
|
+
}),
|
|
14477
|
+
}).pipe(
|
|
14478
|
+
Schema.encodeKeys({
|
|
14479
|
+
type: "type",
|
|
14480
|
+
name: "name",
|
|
14481
|
+
namespaceId: "namespace_id",
|
|
14482
|
+
simple: "simple",
|
|
14483
|
+
}),
|
|
14484
|
+
),
|
|
13491
14485
|
Schema.Struct({
|
|
14486
|
+
type: Schema.Literal("inherit"),
|
|
13492
14487
|
name: Schema.String,
|
|
13493
|
-
type: Schema.Literal("worker_loader"),
|
|
13494
14488
|
}),
|
|
13495
14489
|
]),
|
|
13496
14490
|
),
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
script: Schema.optional(
|
|
13501
|
-
Schema.Union([
|
|
14491
|
+
),
|
|
14492
|
+
keepBindings: Schema.optional(Schema.Array(Schema.String)),
|
|
14493
|
+
migrations: Schema.optional(
|
|
13502
14494
|
Schema.Struct({
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
|
|
13518
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
14495
|
+
oldTag: Schema.optional(Schema.String),
|
|
14496
|
+
newTag: Schema.optional(Schema.String),
|
|
14497
|
+
steps: Schema.optional(
|
|
14498
|
+
Schema.Array(
|
|
14499
|
+
Schema.Struct({
|
|
14500
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
14501
|
+
newSqliteClasses: Schema.optional(
|
|
14502
|
+
Schema.Array(Schema.String),
|
|
14503
|
+
),
|
|
14504
|
+
renamedClasses: Schema.optional(
|
|
14505
|
+
Schema.Array(
|
|
14506
|
+
Schema.Struct({
|
|
14507
|
+
from: Schema.optional(Schema.String),
|
|
14508
|
+
to: Schema.optional(Schema.String),
|
|
14509
|
+
}),
|
|
13519
14510
|
),
|
|
14511
|
+
),
|
|
14512
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
14513
|
+
}).pipe(
|
|
14514
|
+
Schema.encodeKeys({
|
|
14515
|
+
newClasses: "new_classes",
|
|
14516
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
14517
|
+
renamedClasses: "renamed_classes",
|
|
14518
|
+
deletedClasses: "deleted_classes",
|
|
13520
14519
|
}),
|
|
13521
14520
|
),
|
|
13522
|
-
|
|
13523
|
-
]),
|
|
14521
|
+
),
|
|
13524
14522
|
),
|
|
13525
14523
|
}).pipe(
|
|
13526
14524
|
Schema.encodeKeys({
|
|
13527
|
-
|
|
13528
|
-
|
|
13529
|
-
|
|
13530
|
-
|
|
14525
|
+
oldTag: "old_tag",
|
|
14526
|
+
newTag: "new_tag",
|
|
14527
|
+
steps: "steps",
|
|
14528
|
+
}),
|
|
14529
|
+
),
|
|
14530
|
+
),
|
|
14531
|
+
capnpSchema: Schema.optional(Schema.String),
|
|
14532
|
+
logpush: Schema.optional(Schema.Boolean),
|
|
14533
|
+
placement: Schema.optional(
|
|
14534
|
+
Schema.Union([
|
|
14535
|
+
Schema.Struct({
|
|
14536
|
+
mode: Schema.Literal("smart"),
|
|
14537
|
+
hint: Schema.optional(Schema.String),
|
|
14538
|
+
}),
|
|
14539
|
+
Schema.Struct({
|
|
14540
|
+
region: Schema.String,
|
|
14541
|
+
}),
|
|
14542
|
+
Schema.Struct({
|
|
14543
|
+
host: Schema.String,
|
|
14544
|
+
}),
|
|
14545
|
+
Schema.Struct({
|
|
14546
|
+
hostname: Schema.String,
|
|
14547
|
+
}),
|
|
14548
|
+
]),
|
|
14549
|
+
),
|
|
14550
|
+
tailConsumers: Schema.optional(
|
|
14551
|
+
Schema.Array(
|
|
14552
|
+
Schema.Struct({
|
|
14553
|
+
service: Schema.String,
|
|
14554
|
+
environment: Schema.optional(Schema.String),
|
|
13531
14555
|
}),
|
|
13532
14556
|
),
|
|
13533
|
-
|
|
13534
|
-
|
|
13535
|
-
|
|
13536
|
-
|
|
13537
|
-
|
|
14557
|
+
),
|
|
14558
|
+
streamingTailConsumers: Schema.optional(
|
|
14559
|
+
Schema.Array(
|
|
14560
|
+
Schema.Struct({
|
|
14561
|
+
service: Schema.String,
|
|
14562
|
+
environment: Schema.optional(Schema.String),
|
|
14563
|
+
}),
|
|
14564
|
+
),
|
|
14565
|
+
),
|
|
14566
|
+
limits: Schema.optional(
|
|
13538
14567
|
Schema.Struct({
|
|
13539
|
-
|
|
13540
|
-
|
|
13541
|
-
|
|
13542
|
-
|
|
13543
|
-
|
|
13544
|
-
|
|
13545
|
-
|
|
13546
|
-
|
|
13547
|
-
|
|
13548
|
-
|
|
13549
|
-
|
|
13550
|
-
|
|
13551
|
-
|
|
13552
|
-
|
|
13553
|
-
|
|
14568
|
+
cpuMs: Schema.optional(Schema.Number),
|
|
14569
|
+
subrequests: Schema.optional(Schema.Number),
|
|
14570
|
+
}).pipe(
|
|
14571
|
+
Schema.encodeKeys({ cpuMs: "cpu_ms", subrequests: "subrequests" }),
|
|
14572
|
+
),
|
|
14573
|
+
),
|
|
14574
|
+
assets: Schema.optional(
|
|
14575
|
+
Schema.Struct({
|
|
14576
|
+
jwt: Schema.optional(Schema.String),
|
|
14577
|
+
config: Schema.optional(
|
|
14578
|
+
Schema.Struct({
|
|
14579
|
+
htmlHandling: Schema.optional(
|
|
14580
|
+
Schema.Literals([
|
|
14581
|
+
"auto-trailing-slash",
|
|
14582
|
+
"force-trailing-slash",
|
|
14583
|
+
"drop-trailing-slash",
|
|
14584
|
+
"none",
|
|
14585
|
+
]),
|
|
14586
|
+
),
|
|
14587
|
+
notFoundHandling: Schema.optional(
|
|
14588
|
+
Schema.Literals([
|
|
14589
|
+
"single-page-application",
|
|
14590
|
+
"404-page",
|
|
14591
|
+
"none",
|
|
14592
|
+
]),
|
|
14593
|
+
),
|
|
14594
|
+
runWorkerFirst: Schema.optional(
|
|
14595
|
+
Schema.Union([Schema.Boolean, Schema.Array(Schema.String)]),
|
|
14596
|
+
),
|
|
14597
|
+
redirects: Schema.optional(Schema.String),
|
|
14598
|
+
headers: Schema.optional(Schema.String),
|
|
14599
|
+
}).pipe(
|
|
14600
|
+
Schema.encodeKeys({
|
|
14601
|
+
htmlHandling: "html_handling",
|
|
14602
|
+
notFoundHandling: "not_found_handling",
|
|
14603
|
+
runWorkerFirst: "run_worker_first",
|
|
14604
|
+
redirects: "_redirects",
|
|
14605
|
+
headers: "_headers",
|
|
14606
|
+
}),
|
|
14607
|
+
),
|
|
13554
14608
|
),
|
|
13555
|
-
|
|
13556
|
-
|
|
14609
|
+
}),
|
|
14610
|
+
),
|
|
14611
|
+
observability: Schema.optional(
|
|
14612
|
+
Schema.Struct({
|
|
14613
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
14614
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
14615
|
+
logs: Schema.optional(
|
|
14616
|
+
Schema.Struct({
|
|
14617
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
14618
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
14619
|
+
invocationLogs: Schema.optional(Schema.Boolean),
|
|
14620
|
+
persist: Schema.optional(Schema.Boolean),
|
|
14621
|
+
destinations: Schema.optional(Schema.Array(Schema.String)),
|
|
14622
|
+
}).pipe(
|
|
14623
|
+
Schema.encodeKeys({
|
|
14624
|
+
enabled: "enabled",
|
|
14625
|
+
headSamplingRate: "head_sampling_rate",
|
|
14626
|
+
invocationLogs: "invocation_logs",
|
|
14627
|
+
persist: "persist",
|
|
14628
|
+
destinations: "destinations",
|
|
14629
|
+
}),
|
|
14630
|
+
),
|
|
13557
14631
|
),
|
|
13558
|
-
|
|
13559
|
-
Schema.
|
|
13560
|
-
Schema.
|
|
13561
|
-
Schema.
|
|
13562
|
-
|
|
14632
|
+
traces: Schema.optional(
|
|
14633
|
+
Schema.Struct({
|
|
14634
|
+
enabled: Schema.optional(Schema.Boolean),
|
|
14635
|
+
headSamplingRate: Schema.optional(Schema.Number),
|
|
14636
|
+
persist: Schema.optional(Schema.Boolean),
|
|
14637
|
+
destinations: Schema.optional(Schema.Array(Schema.String)),
|
|
14638
|
+
}).pipe(
|
|
14639
|
+
Schema.encodeKeys({
|
|
14640
|
+
enabled: "enabled",
|
|
14641
|
+
headSamplingRate: "head_sampling_rate",
|
|
14642
|
+
persist: "persist",
|
|
14643
|
+
destinations: "destinations",
|
|
14644
|
+
}),
|
|
14645
|
+
),
|
|
13563
14646
|
),
|
|
13564
14647
|
}).pipe(
|
|
13565
14648
|
Schema.encodeKeys({
|
|
13566
|
-
|
|
13567
|
-
|
|
13568
|
-
|
|
13569
|
-
|
|
13570
|
-
usageModel: "usage_model",
|
|
14649
|
+
enabled: "enabled",
|
|
14650
|
+
headSamplingRate: "head_sampling_rate",
|
|
14651
|
+
logs: "logs",
|
|
14652
|
+
traces: "traces",
|
|
13571
14653
|
}),
|
|
13572
14654
|
),
|
|
13573
|
-
|
|
13574
|
-
|
|
14655
|
+
),
|
|
14656
|
+
containers: Schema.optional(
|
|
14657
|
+
Schema.Array(
|
|
14658
|
+
Schema.Struct({
|
|
14659
|
+
className: Schema.String,
|
|
14660
|
+
}).pipe(Schema.encodeKeys({ className: "class_name" })),
|
|
14661
|
+
),
|
|
14662
|
+
),
|
|
14663
|
+
annotations: Schema.optional(Schema.Unknown),
|
|
14664
|
+
keepAssets: Schema.optional(Schema.Boolean),
|
|
14665
|
+
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
14666
|
+
}).pipe(
|
|
14667
|
+
Schema.encodeKeys({
|
|
14668
|
+
mainModule: "main_module",
|
|
14669
|
+
bodyPart: "body_part",
|
|
14670
|
+
compatibilityDate: "compatibility_date",
|
|
14671
|
+
compatibilityFlags: "compatibility_flags",
|
|
14672
|
+
usageModel: "usage_model",
|
|
14673
|
+
bindings: "bindings",
|
|
14674
|
+
keepBindings: "keep_bindings",
|
|
14675
|
+
migrations: "migrations",
|
|
14676
|
+
capnpSchema: "capnp_schema",
|
|
14677
|
+
logpush: "logpush",
|
|
14678
|
+
placement: "placement",
|
|
14679
|
+
tailConsumers: "tail_consumers",
|
|
14680
|
+
streamingTailConsumers: "streaming_tail_consumers",
|
|
14681
|
+
limits: "limits",
|
|
14682
|
+
assets: "assets",
|
|
14683
|
+
observability: "observability",
|
|
14684
|
+
containers: "containers",
|
|
14685
|
+
annotations: "annotations",
|
|
14686
|
+
keepAssets: "keep_assets",
|
|
14687
|
+
tags: "tags",
|
|
14688
|
+
}),
|
|
13575
14689
|
),
|
|
13576
|
-
}).pipe(
|
|
13577
|
-
Schema.encodeKeys({
|
|
13578
|
-
bindings: "bindings",
|
|
13579
|
-
script: "script",
|
|
13580
|
-
scriptRuntime: "script_runtime",
|
|
13581
|
-
}),
|
|
13582
14690
|
),
|
|
13583
|
-
|
|
13584
|
-
|
|
14691
|
+
files: Schema.optional(
|
|
14692
|
+
Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
|
|
14693
|
+
),
|
|
14694
|
+
wranglerSessionConfig: Schema.optional(
|
|
13585
14695
|
Schema.Union([
|
|
13586
14696
|
Schema.Struct({
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
),
|
|
13590
|
-
authorId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
13591
|
-
createdOn: Schema.optional(
|
|
13592
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13593
|
-
),
|
|
13594
|
-
hasPreview: Schema.optional(
|
|
13595
|
-
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
13596
|
-
),
|
|
13597
|
-
modifiedOn: Schema.optional(
|
|
13598
|
-
Schema.Union([Schema.String, Schema.Null]),
|
|
13599
|
-
),
|
|
13600
|
-
source: Schema.optional(
|
|
13601
|
-
Schema.Union([
|
|
13602
|
-
Schema.Literals([
|
|
13603
|
-
"unknown",
|
|
13604
|
-
"api",
|
|
13605
|
-
"wrangler",
|
|
13606
|
-
"terraform",
|
|
13607
|
-
"dash",
|
|
13608
|
-
"dash_template",
|
|
13609
|
-
"integration",
|
|
13610
|
-
"quick_editor",
|
|
13611
|
-
"playground",
|
|
13612
|
-
"workersci",
|
|
13613
|
-
]),
|
|
13614
|
-
Schema.Null,
|
|
13615
|
-
]),
|
|
13616
|
-
),
|
|
14697
|
+
workersDev: Schema.Literal(true),
|
|
14698
|
+
minimalMode: Schema.optional(Schema.Boolean),
|
|
13617
14699
|
}).pipe(
|
|
13618
14700
|
Schema.encodeKeys({
|
|
13619
|
-
|
|
13620
|
-
|
|
13621
|
-
createdOn: "created_on",
|
|
13622
|
-
hasPreview: "hasPreview",
|
|
13623
|
-
modifiedOn: "modified_on",
|
|
13624
|
-
source: "source",
|
|
14701
|
+
workersDev: "workers_dev",
|
|
14702
|
+
minimalMode: "minimal_mode",
|
|
13625
14703
|
}),
|
|
13626
14704
|
),
|
|
13627
|
-
Schema.
|
|
14705
|
+
Schema.Struct({
|
|
14706
|
+
routes: Schema.Array(Schema.String),
|
|
14707
|
+
minimalMode: Schema.optional(Schema.Boolean),
|
|
14708
|
+
}).pipe(
|
|
14709
|
+
Schema.encodeKeys({ routes: "routes", minimalMode: "minimal_mode" }),
|
|
14710
|
+
),
|
|
13628
14711
|
]),
|
|
13629
14712
|
),
|
|
13630
|
-
|
|
13631
|
-
|
|
14713
|
+
}).pipe(
|
|
14714
|
+
Schema.encodeKeys({
|
|
14715
|
+
metadata: "metadata",
|
|
14716
|
+
files: "files",
|
|
14717
|
+
wranglerSessionConfig: "wrangler-session-config",
|
|
14718
|
+
}),
|
|
14719
|
+
T.Http({
|
|
14720
|
+
method: "POST",
|
|
14721
|
+
path: "/accounts/{account_id}/workers/services/{service_name}/environments/{environment_name}/edge-preview",
|
|
14722
|
+
contentType: "multipart",
|
|
14723
|
+
}),
|
|
14724
|
+
) as unknown as Schema.Schema<CreateServiceEdgePreviewRequest>;
|
|
14725
|
+
|
|
14726
|
+
export interface CreateServiceEdgePreviewResponse {
|
|
14727
|
+
/** Token to send as cf-workers-preview-token header when making requests to the preview host. */
|
|
14728
|
+
previewToken: string;
|
|
14729
|
+
/** URL for tailing live logs from the preview worker. */
|
|
14730
|
+
tailUrl: string;
|
|
14731
|
+
}
|
|
14732
|
+
|
|
14733
|
+
export const CreateServiceEdgePreviewResponse =
|
|
14734
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14735
|
+
previewToken: Schema.String,
|
|
14736
|
+
tailUrl: Schema.String,
|
|
13632
14737
|
})
|
|
13633
14738
|
.pipe(
|
|
13634
|
-
Schema.encodeKeys({
|
|
13635
|
-
resources: "resources",
|
|
13636
|
-
id: "id",
|
|
13637
|
-
metadata: "metadata",
|
|
13638
|
-
number: "number",
|
|
13639
|
-
startupTimeMs: "startup_time_ms",
|
|
13640
|
-
}),
|
|
14739
|
+
Schema.encodeKeys({ previewToken: "preview_token", tailUrl: "tail_url" }),
|
|
13641
14740
|
)
|
|
13642
14741
|
.pipe(
|
|
13643
14742
|
T.ResponsePath("result"),
|
|
13644
|
-
) as unknown as Schema.Schema<
|
|
14743
|
+
) as unknown as Schema.Schema<CreateServiceEdgePreviewResponse>;
|
|
13645
14744
|
|
|
13646
|
-
export type
|
|
14745
|
+
export type CreateServiceEdgePreviewError = DefaultErrors | InvalidRoute;
|
|
13647
14746
|
|
|
13648
|
-
export const
|
|
13649
|
-
|
|
13650
|
-
|
|
13651
|
-
|
|
14747
|
+
export const createServiceEdgePreview: API.OperationMethod<
|
|
14748
|
+
CreateServiceEdgePreviewRequest,
|
|
14749
|
+
CreateServiceEdgePreviewResponse,
|
|
14750
|
+
CreateServiceEdgePreviewError,
|
|
13652
14751
|
Credentials | HttpClient.HttpClient
|
|
13653
14752
|
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
13654
|
-
input:
|
|
13655
|
-
output:
|
|
13656
|
-
errors: [
|
|
14753
|
+
input: CreateServiceEdgePreviewRequest,
|
|
14754
|
+
output: CreateServiceEdgePreviewResponse,
|
|
14755
|
+
errors: [InvalidRoute],
|
|
13657
14756
|
}));
|
|
13658
14757
|
|
|
13659
14758
|
// =============================================================================
|
|
@@ -13764,3 +14863,98 @@ export const deleteSubdomain: API.OperationMethod<
|
|
|
13764
14863
|
output: DeleteSubdomainResponse,
|
|
13765
14864
|
errors: [InvalidRoute],
|
|
13766
14865
|
}));
|
|
14866
|
+
|
|
14867
|
+
// =============================================================================
|
|
14868
|
+
// SubdomainEdgePreviewSession
|
|
14869
|
+
// =============================================================================
|
|
14870
|
+
|
|
14871
|
+
export interface CreateSubdomainEdgePreviewSessionRequest {
|
|
14872
|
+
accountId: string;
|
|
14873
|
+
}
|
|
14874
|
+
|
|
14875
|
+
export const CreateSubdomainEdgePreviewSessionRequest =
|
|
14876
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14877
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
14878
|
+
}).pipe(
|
|
14879
|
+
T.Http({
|
|
14880
|
+
method: "GET",
|
|
14881
|
+
path: "/accounts/{account_id}/workers/subdomain/edge-preview",
|
|
14882
|
+
}),
|
|
14883
|
+
) as unknown as Schema.Schema<CreateSubdomainEdgePreviewSessionRequest>;
|
|
14884
|
+
|
|
14885
|
+
export interface CreateSubdomainEdgePreviewSessionResponse {
|
|
14886
|
+
/** Session token used as cf-preview-upload-config-token when uploading a preview worker. */
|
|
14887
|
+
token: string;
|
|
14888
|
+
/** Optional URL to exchange the token for a re-encoded version. */
|
|
14889
|
+
exchangeUrl?: string | null;
|
|
14890
|
+
}
|
|
14891
|
+
|
|
14892
|
+
export const CreateSubdomainEdgePreviewSessionResponse =
|
|
14893
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14894
|
+
token: Schema.String,
|
|
14895
|
+
exchangeUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
14896
|
+
})
|
|
14897
|
+
.pipe(Schema.encodeKeys({ token: "token", exchangeUrl: "exchange_url" }))
|
|
14898
|
+
.pipe(
|
|
14899
|
+
T.ResponsePath("result"),
|
|
14900
|
+
) as unknown as Schema.Schema<CreateSubdomainEdgePreviewSessionResponse>;
|
|
14901
|
+
|
|
14902
|
+
export type CreateSubdomainEdgePreviewSessionError =
|
|
14903
|
+
| DefaultErrors
|
|
14904
|
+
| InvalidRoute;
|
|
14905
|
+
|
|
14906
|
+
export const createSubdomainEdgePreviewSession: API.OperationMethod<
|
|
14907
|
+
CreateSubdomainEdgePreviewSessionRequest,
|
|
14908
|
+
CreateSubdomainEdgePreviewSessionResponse,
|
|
14909
|
+
CreateSubdomainEdgePreviewSessionError,
|
|
14910
|
+
Credentials | HttpClient.HttpClient
|
|
14911
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
14912
|
+
input: CreateSubdomainEdgePreviewSessionRequest,
|
|
14913
|
+
output: CreateSubdomainEdgePreviewSessionResponse,
|
|
14914
|
+
errors: [InvalidRoute],
|
|
14915
|
+
}));
|
|
14916
|
+
|
|
14917
|
+
// =============================================================================
|
|
14918
|
+
// ZoneEdgePreviewSession
|
|
14919
|
+
// =============================================================================
|
|
14920
|
+
|
|
14921
|
+
export interface CreateZoneEdgePreviewSessionRequest {
|
|
14922
|
+
zoneId: string;
|
|
14923
|
+
}
|
|
14924
|
+
|
|
14925
|
+
export const CreateZoneEdgePreviewSessionRequest =
|
|
14926
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14927
|
+
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
14928
|
+
}).pipe(
|
|
14929
|
+
T.Http({ method: "GET", path: "/zones/{zone_id}/workers/edge-preview" }),
|
|
14930
|
+
) as unknown as Schema.Schema<CreateZoneEdgePreviewSessionRequest>;
|
|
14931
|
+
|
|
14932
|
+
export interface CreateZoneEdgePreviewSessionResponse {
|
|
14933
|
+
/** Session token used as cf-preview-upload-config-token when uploading a preview worker. */
|
|
14934
|
+
token: string;
|
|
14935
|
+
/** Optional URL to exchange the token for a re-encoded version. */
|
|
14936
|
+
exchangeUrl?: string | null;
|
|
14937
|
+
}
|
|
14938
|
+
|
|
14939
|
+
export const CreateZoneEdgePreviewSessionResponse =
|
|
14940
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
14941
|
+
token: Schema.String,
|
|
14942
|
+
exchangeUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
14943
|
+
})
|
|
14944
|
+
.pipe(Schema.encodeKeys({ token: "token", exchangeUrl: "exchange_url" }))
|
|
14945
|
+
.pipe(
|
|
14946
|
+
T.ResponsePath("result"),
|
|
14947
|
+
) as unknown as Schema.Schema<CreateZoneEdgePreviewSessionResponse>;
|
|
14948
|
+
|
|
14949
|
+
export type CreateZoneEdgePreviewSessionError = DefaultErrors | InvalidRoute;
|
|
14950
|
+
|
|
14951
|
+
export const createZoneEdgePreviewSession: API.OperationMethod<
|
|
14952
|
+
CreateZoneEdgePreviewSessionRequest,
|
|
14953
|
+
CreateZoneEdgePreviewSessionResponse,
|
|
14954
|
+
CreateZoneEdgePreviewSessionError,
|
|
14955
|
+
Credentials | HttpClient.HttpClient
|
|
14956
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
14957
|
+
input: CreateZoneEdgePreviewSessionRequest,
|
|
14958
|
+
output: CreateZoneEdgePreviewSessionResponse,
|
|
14959
|
+
errors: [InvalidRoute],
|
|
14960
|
+
}));
|