@distilled.cloud/cloudflare 0.6.1 → 0.7.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/accounts.d.ts +901 -36
- package/lib/services/accounts.d.ts.map +1 -1
- package/lib/services/accounts.js +1386 -32
- package/lib/services/accounts.js.map +1 -1
- package/lib/services/addressing.d.ts +8 -2
- package/lib/services/addressing.d.ts.map +1 -1
- package/lib/services/addressing.js +14 -2
- package/lib/services/addressing.js.map +1 -1
- package/lib/services/ai-gateway.d.ts.map +1 -1
- package/lib/services/ai-gateway.js +7 -7
- package/lib/services/ai-gateway.js.map +1 -1
- package/lib/services/aisearch.d.ts.map +1 -1
- package/lib/services/aisearch.js +24 -9
- package/lib/services/aisearch.js.map +1 -1
- package/lib/services/alerting.js +2 -2
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/api-gateway.d.ts +114 -16
- package/lib/services/api-gateway.d.ts.map +1 -1
- package/lib/services/api-gateway.js +187 -15
- package/lib/services/api-gateway.js.map +1 -1
- package/lib/services/audit-logs.d.ts +63 -3
- package/lib/services/audit-logs.d.ts.map +1 -1
- package/lib/services/audit-logs.js +62 -3
- package/lib/services/audit-logs.js.map +1 -1
- package/lib/services/bot-management.d.ts +54 -8
- package/lib/services/bot-management.d.ts.map +1 -1
- package/lib/services/bot-management.js +128 -16
- package/lib/services/bot-management.js.map +1 -1
- package/lib/services/brand-protection.d.ts.map +1 -1
- package/lib/services/brand-protection.js +26 -8
- package/lib/services/brand-protection.js.map +1 -1
- package/lib/services/browser-rendering.d.ts.map +1 -1
- package/lib/services/browser-rendering.js +13 -10
- package/lib/services/browser-rendering.js.map +1 -1
- package/lib/services/cloudforce-one.d.ts +61 -6
- package/lib/services/cloudforce-one.d.ts.map +1 -1
- package/lib/services/cloudforce-one.js +107 -6
- package/lib/services/cloudforce-one.js.map +1 -1
- package/lib/services/custom-certificates.d.ts +145 -8
- package/lib/services/custom-certificates.d.ts.map +1 -1
- package/lib/services/custom-certificates.js +226 -7
- package/lib/services/custom-certificates.js.map +1 -1
- package/lib/services/custom-hostnames.d.ts +8 -8
- package/lib/services/custom-hostnames.d.ts.map +1 -1
- package/lib/services/custom-hostnames.js +17 -14
- package/lib/services/custom-hostnames.js.map +1 -1
- package/lib/services/d1.d.ts +68 -8
- package/lib/services/d1.d.ts.map +1 -1
- package/lib/services/d1.js +96 -8
- package/lib/services/d1.js.map +1 -1
- package/lib/services/dns-firewall.d.ts +57 -4
- package/lib/services/dns-firewall.d.ts.map +1 -1
- package/lib/services/dns-firewall.js +86 -5
- package/lib/services/dns-firewall.js.map +1 -1
- package/lib/services/dns.d.ts +85 -745
- package/lib/services/dns.d.ts.map +1 -1
- package/lib/services/dns.js +118 -1424
- package/lib/services/dns.js.map +1 -1
- package/lib/services/email-routing.d.ts +59 -7
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +165 -7
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/firewall.d.ts +228 -39
- package/lib/services/firewall.d.ts.map +1 -1
- package/lib/services/firewall.js +220 -33
- package/lib/services/firewall.js.map +1 -1
- package/lib/services/healthchecks.d.ts +112 -6
- package/lib/services/healthchecks.d.ts.map +1 -1
- package/lib/services/healthchecks.js +248 -14
- package/lib/services/healthchecks.js.map +1 -1
- package/lib/services/hostnames.d.ts +5 -5
- package/lib/services/hostnames.d.ts.map +1 -1
- package/lib/services/hostnames.js +16 -4
- package/lib/services/hostnames.js.map +1 -1
- package/lib/services/hyperdrive.d.ts +223 -11
- package/lib/services/hyperdrive.d.ts.map +1 -1
- package/lib/services/hyperdrive.js +351 -11
- package/lib/services/hyperdrive.js.map +1 -1
- package/lib/services/iam.d.ts +62 -2
- package/lib/services/iam.d.ts.map +1 -1
- package/lib/services/iam.js +82 -11
- package/lib/services/iam.js.map +1 -1
- package/lib/services/images.d.ts +9 -1
- package/lib/services/images.d.ts.map +1 -1
- package/lib/services/images.js +12 -1
- package/lib/services/images.js.map +1 -1
- package/lib/services/intel.d.ts +4 -4
- package/lib/services/intel.d.ts.map +1 -1
- package/lib/services/intel.js +2 -3
- package/lib/services/intel.js.map +1 -1
- package/lib/services/kv.d.ts.map +1 -1
- package/lib/services/kv.js +2 -2
- package/lib/services/kv.js.map +1 -1
- package/lib/services/load-balancers.d.ts +537 -108
- package/lib/services/load-balancers.d.ts.map +1 -1
- package/lib/services/load-balancers.js +1266 -161
- package/lib/services/load-balancers.js.map +1 -1
- package/lib/services/logpush.d.ts +153 -9
- package/lib/services/logpush.d.ts.map +1 -1
- package/lib/services/logpush.js +246 -9
- package/lib/services/logpush.js.map +1 -1
- package/lib/services/magic-cloud-networking.d.ts.map +1 -1
- package/lib/services/magic-cloud-networking.js +54 -30
- package/lib/services/magic-cloud-networking.js.map +1 -1
- package/lib/services/magic-network-monitoring.d.ts +46 -5
- package/lib/services/magic-network-monitoring.d.ts.map +1 -1
- package/lib/services/magic-network-monitoring.js +79 -5
- package/lib/services/magic-network-monitoring.js.map +1 -1
- package/lib/services/magic-transit.d.ts +127 -21
- package/lib/services/magic-transit.d.ts.map +1 -1
- package/lib/services/magic-transit.js +291 -29
- package/lib/services/magic-transit.js.map +1 -1
- package/lib/services/memberships.d.ts +248 -52
- package/lib/services/memberships.d.ts.map +1 -1
- package/lib/services/memberships.js +360 -39
- package/lib/services/memberships.js.map +1 -1
- package/lib/services/page-rules.d.ts +432 -8
- package/lib/services/page-rules.d.ts.map +1 -1
- package/lib/services/page-rules.js +877 -33
- package/lib/services/page-rules.js.map +1 -1
- package/lib/services/pages.d.ts +457 -297
- package/lib/services/pages.d.ts.map +1 -1
- package/lib/services/pages.js +1366 -491
- package/lib/services/pages.js.map +1 -1
- package/lib/services/pipelines.d.ts +96 -76
- package/lib/services/pipelines.d.ts.map +1 -1
- package/lib/services/pipelines.js +145 -197
- package/lib/services/pipelines.js.map +1 -1
- package/lib/services/queues.d.ts +228 -12
- package/lib/services/queues.d.ts.map +1 -1
- package/lib/services/queues.js +487 -11
- package/lib/services/queues.js.map +1 -1
- package/lib/services/radar.d.ts +82 -18
- package/lib/services/radar.d.ts.map +1 -1
- package/lib/services/radar.js +111 -47
- package/lib/services/radar.js.map +1 -1
- package/lib/services/realtime-kit.d.ts +650 -334
- package/lib/services/realtime-kit.d.ts.map +1 -1
- package/lib/services/realtime-kit.js +1472 -693
- package/lib/services/realtime-kit.js.map +1 -1
- package/lib/services/request-tracers.d.ts +12 -1
- package/lib/services/request-tracers.d.ts.map +1 -1
- package/lib/services/request-tracers.js +28 -3
- package/lib/services/request-tracers.js.map +1 -1
- package/lib/services/rules.d.ts +65 -10
- package/lib/services/rules.d.ts.map +1 -1
- package/lib/services/rules.js +102 -8
- package/lib/services/rules.js.map +1 -1
- package/lib/services/rulesets.d.ts +7892 -1806
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +18720 -4149
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/rum.d.ts +45 -5
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +80 -4
- package/lib/services/rum.js.map +1 -1
- package/lib/services/schema-validation.js +2 -2
- package/lib/services/schema-validation.js.map +1 -1
- package/lib/services/spectrum.d.ts +139 -33
- package/lib/services/spectrum.d.ts.map +1 -1
- package/lib/services/spectrum.js +190 -34
- package/lib/services/spectrum.js.map +1 -1
- package/lib/services/speed.d.ts +345 -24
- package/lib/services/speed.d.ts.map +1 -1
- package/lib/services/speed.js +785 -19
- package/lib/services/speed.js.map +1 -1
- package/lib/services/ssl.d.ts +6 -6
- package/lib/services/ssl.d.ts.map +1 -1
- package/lib/services/ssl.js +5 -5
- package/lib/services/ssl.js.map +1 -1
- package/lib/services/stream.d.ts +171 -17
- package/lib/services/stream.d.ts.map +1 -1
- package/lib/services/stream.js +164 -11
- package/lib/services/stream.js.map +1 -1
- package/lib/services/token-validation.d.ts +16 -2
- package/lib/services/token-validation.d.ts.map +1 -1
- package/lib/services/token-validation.js +32 -2
- package/lib/services/token-validation.js.map +1 -1
- package/lib/services/url-scanner.d.ts +43 -11
- package/lib/services/url-scanner.d.ts.map +1 -1
- package/lib/services/url-scanner.js +46 -11
- package/lib/services/url-scanner.js.map +1 -1
- package/lib/services/user.d.ts +312 -21
- package/lib/services/user.d.ts.map +1 -1
- package/lib/services/user.js +442 -19
- package/lib/services/user.js.map +1 -1
- package/lib/services/workers-for-platforms.d.ts +223 -13
- package/lib/services/workers-for-platforms.d.ts.map +1 -1
- package/lib/services/workers-for-platforms.js +481 -13
- package/lib/services/workers-for-platforms.js.map +1 -1
- package/lib/services/workers.d.ts +345 -31
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +649 -34
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts +212 -11
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +311 -30
- package/lib/services/zaraz.js.map +1 -1
- package/lib/services/zero-trust.d.ts +19333 -1905
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +30269 -5710
- package/lib/services/zero-trust.js.map +1 -1
- package/lib/services/zones.d.ts +61 -7
- package/lib/services/zones.d.ts.map +1 -1
- package/lib/services/zones.js +188 -7
- package/lib/services/zones.js.map +1 -1
- package/package.json +2 -2
- package/src/services/accounts.ts +2897 -63
- package/src/services/addressing.ts +28 -4
- package/src/services/ai-gateway.ts +9 -7
- package/src/services/aisearch.ts +28 -9
- package/src/services/alerting.ts +2 -2
- package/src/services/api-gateway.ts +410 -27
- package/src/services/audit-logs.ts +135 -5
- package/src/services/bot-management.ts +282 -24
- package/src/services/brand-protection.ts +28 -8
- package/src/services/browser-rendering.ts +31 -11
- package/src/services/cloudforce-one.ts +201 -9
- package/src/services/custom-certificates.ts +405 -14
- package/src/services/custom-hostnames.ts +29 -22
- package/src/services/d1.ts +180 -12
- package/src/services/dns-firewall.ts +163 -7
- package/src/services/dns.ts +213 -2389
- package/src/services/email-routing.ts +346 -12
- package/src/services/firewall.ts +556 -72
- package/src/services/healthchecks.ts +463 -18
- package/src/services/hostnames.ts +21 -9
- package/src/services/hyperdrive.ts +730 -17
- package/src/services/iam.ts +228 -24
- package/src/services/images.ts +29 -2
- package/src/services/intel.ts +6 -5
- package/src/services/kv.ts +6 -2
- package/src/services/load-balancers.ts +2387 -294
- package/src/services/logpush.ts +659 -15
- package/src/services/magic-cloud-networking.ts +74 -30
- package/src/services/magic-network-monitoring.ts +170 -8
- package/src/services/magic-transit.ts +631 -62
- package/src/services/memberships.ts +710 -91
- package/src/services/page-rules.ts +1592 -88
- package/src/services/pages.ts +2011 -1098
- package/src/services/pipelines.ts +285 -331
- package/src/services/queues.ts +1110 -22
- package/src/services/radar.ts +128 -64
- package/src/services/realtime-kit.ts +2829 -1603
- package/src/services/request-tracers.ts +54 -4
- package/src/services/rules.ts +214 -18
- package/src/services/rulesets.ts +34524 -6913
- package/src/services/rum.ts +187 -9
- package/src/services/schema-validation.ts +2 -2
- package/src/services/spectrum.ts +357 -67
- package/src/services/speed.ts +1845 -42
- package/src/services/ssl.ts +11 -11
- package/src/services/stream.ts +397 -22
- package/src/services/token-validation.ts +64 -4
- package/src/services/url-scanner.ts +92 -20
- package/src/services/user.ts +973 -34
- package/src/services/workers-for-platforms.ts +1012 -39
- package/src/services/workers.ts +1472 -120
- package/src/services/zaraz.ts +640 -37
- package/src/services/zero-trust.ts +55498 -12667
- package/src/services/zones.ts +360 -14
package/src/services/workers.ts
CHANGED
|
@@ -220,7 +220,7 @@ export const CreateAssetUploadRequest =
|
|
|
220
220
|
jwtToken: Schema.optional(Schema.String).pipe(
|
|
221
221
|
T.HttpHeader("Authorization"),
|
|
222
222
|
),
|
|
223
|
-
body: Schema.
|
|
223
|
+
body: Schema.Record(Schema.String, Schema.Unknown).pipe(T.HttpBody()),
|
|
224
224
|
}).pipe(
|
|
225
225
|
T.Http({
|
|
226
226
|
method: "POST",
|
|
@@ -997,7 +997,30 @@ export interface GetBetaWorkerVersionResponse {
|
|
|
997
997
|
/** The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler). */
|
|
998
998
|
mainModule?: string | null;
|
|
999
999
|
/** Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed. */
|
|
1000
|
-
migrations?:
|
|
1000
|
+
migrations?:
|
|
1001
|
+
| unknown
|
|
1002
|
+
| {
|
|
1003
|
+
newTag?: string | null;
|
|
1004
|
+
oldTag?: string | null;
|
|
1005
|
+
steps?:
|
|
1006
|
+
| {
|
|
1007
|
+
deletedClasses?: string[] | null;
|
|
1008
|
+
newClasses?: string[] | null;
|
|
1009
|
+
newSqliteClasses?: string[] | null;
|
|
1010
|
+
renamedClasses?:
|
|
1011
|
+
| { from?: string | null; to?: string | null }[]
|
|
1012
|
+
| null;
|
|
1013
|
+
transferredClasses?:
|
|
1014
|
+
| {
|
|
1015
|
+
from?: string | null;
|
|
1016
|
+
fromScript?: string | null;
|
|
1017
|
+
to?: string | null;
|
|
1018
|
+
}[]
|
|
1019
|
+
| null;
|
|
1020
|
+
}[]
|
|
1021
|
+
| null;
|
|
1022
|
+
}
|
|
1023
|
+
| null;
|
|
1001
1024
|
/** Code, sourcemaps, and other content used at runtime. This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers. */
|
|
1002
1025
|
modules?:
|
|
1003
1026
|
| { contentBase64: string; contentType: string; name: string }[]
|
|
@@ -1388,7 +1411,89 @@ export const GetBetaWorkerVersionResponse =
|
|
|
1388
1411
|
]),
|
|
1389
1412
|
),
|
|
1390
1413
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1391
|
-
migrations: Schema.optional(
|
|
1414
|
+
migrations: Schema.optional(
|
|
1415
|
+
Schema.Union([
|
|
1416
|
+
Schema.Union([
|
|
1417
|
+
Schema.Unknown,
|
|
1418
|
+
Schema.Struct({
|
|
1419
|
+
newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1420
|
+
oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
1421
|
+
steps: Schema.optional(
|
|
1422
|
+
Schema.Union([
|
|
1423
|
+
Schema.Array(
|
|
1424
|
+
Schema.Struct({
|
|
1425
|
+
deletedClasses: Schema.optional(
|
|
1426
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1427
|
+
),
|
|
1428
|
+
newClasses: Schema.optional(
|
|
1429
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1430
|
+
),
|
|
1431
|
+
newSqliteClasses: Schema.optional(
|
|
1432
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
1433
|
+
),
|
|
1434
|
+
renamedClasses: Schema.optional(
|
|
1435
|
+
Schema.Union([
|
|
1436
|
+
Schema.Array(
|
|
1437
|
+
Schema.Struct({
|
|
1438
|
+
from: Schema.optional(
|
|
1439
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1440
|
+
),
|
|
1441
|
+
to: Schema.optional(
|
|
1442
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1443
|
+
),
|
|
1444
|
+
}),
|
|
1445
|
+
),
|
|
1446
|
+
Schema.Null,
|
|
1447
|
+
]),
|
|
1448
|
+
),
|
|
1449
|
+
transferredClasses: Schema.optional(
|
|
1450
|
+
Schema.Union([
|
|
1451
|
+
Schema.Array(
|
|
1452
|
+
Schema.Struct({
|
|
1453
|
+
from: Schema.optional(
|
|
1454
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1455
|
+
),
|
|
1456
|
+
fromScript: Schema.optional(
|
|
1457
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1458
|
+
),
|
|
1459
|
+
to: Schema.optional(
|
|
1460
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
1461
|
+
),
|
|
1462
|
+
}).pipe(
|
|
1463
|
+
Schema.encodeKeys({
|
|
1464
|
+
from: "from",
|
|
1465
|
+
fromScript: "from_script",
|
|
1466
|
+
to: "to",
|
|
1467
|
+
}),
|
|
1468
|
+
),
|
|
1469
|
+
),
|
|
1470
|
+
Schema.Null,
|
|
1471
|
+
]),
|
|
1472
|
+
),
|
|
1473
|
+
}).pipe(
|
|
1474
|
+
Schema.encodeKeys({
|
|
1475
|
+
deletedClasses: "deleted_classes",
|
|
1476
|
+
newClasses: "new_classes",
|
|
1477
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
1478
|
+
renamedClasses: "renamed_classes",
|
|
1479
|
+
transferredClasses: "transferred_classes",
|
|
1480
|
+
}),
|
|
1481
|
+
),
|
|
1482
|
+
),
|
|
1483
|
+
Schema.Null,
|
|
1484
|
+
]),
|
|
1485
|
+
),
|
|
1486
|
+
}).pipe(
|
|
1487
|
+
Schema.encodeKeys({
|
|
1488
|
+
newTag: "new_tag",
|
|
1489
|
+
oldTag: "old_tag",
|
|
1490
|
+
steps: "steps",
|
|
1491
|
+
}),
|
|
1492
|
+
),
|
|
1493
|
+
]),
|
|
1494
|
+
Schema.Null,
|
|
1495
|
+
]),
|
|
1496
|
+
),
|
|
1392
1497
|
modules: Schema.optional(
|
|
1393
1498
|
Schema.Union([
|
|
1394
1499
|
Schema.Array(
|
|
@@ -1611,7 +1716,30 @@ export interface ListBetaWorkerVersionsResponse {
|
|
|
1611
1716
|
compatibilityFlags?: string[] | null;
|
|
1612
1717
|
limits?: { cpuMs: number } | null;
|
|
1613
1718
|
mainModule?: string | null;
|
|
1614
|
-
migrations?:
|
|
1719
|
+
migrations?:
|
|
1720
|
+
| unknown
|
|
1721
|
+
| {
|
|
1722
|
+
newTag?: string | null;
|
|
1723
|
+
oldTag?: string | null;
|
|
1724
|
+
steps?:
|
|
1725
|
+
| {
|
|
1726
|
+
deletedClasses?: string[] | null;
|
|
1727
|
+
newClasses?: string[] | null;
|
|
1728
|
+
newSqliteClasses?: string[] | null;
|
|
1729
|
+
renamedClasses?:
|
|
1730
|
+
| { from?: string | null; to?: string | null }[]
|
|
1731
|
+
| null;
|
|
1732
|
+
transferredClasses?:
|
|
1733
|
+
| {
|
|
1734
|
+
from?: string | null;
|
|
1735
|
+
fromScript?: string | null;
|
|
1736
|
+
to?: string | null;
|
|
1737
|
+
}[]
|
|
1738
|
+
| null;
|
|
1739
|
+
}[]
|
|
1740
|
+
| null;
|
|
1741
|
+
}
|
|
1742
|
+
| null;
|
|
1615
1743
|
modules?:
|
|
1616
1744
|
| { contentBase64: string; contentType: string; name: string }[]
|
|
1617
1745
|
| null;
|
|
@@ -2017,7 +2145,100 @@ export const ListBetaWorkerVersionsResponse =
|
|
|
2017
2145
|
),
|
|
2018
2146
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2019
2147
|
migrations: Schema.optional(
|
|
2020
|
-
Schema.Union([
|
|
2148
|
+
Schema.Union([
|
|
2149
|
+
Schema.Union([
|
|
2150
|
+
Schema.Unknown,
|
|
2151
|
+
Schema.Struct({
|
|
2152
|
+
newTag: Schema.optional(
|
|
2153
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2154
|
+
),
|
|
2155
|
+
oldTag: Schema.optional(
|
|
2156
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2157
|
+
),
|
|
2158
|
+
steps: Schema.optional(
|
|
2159
|
+
Schema.Union([
|
|
2160
|
+
Schema.Array(
|
|
2161
|
+
Schema.Struct({
|
|
2162
|
+
deletedClasses: Schema.optional(
|
|
2163
|
+
Schema.Union([
|
|
2164
|
+
Schema.Array(Schema.String),
|
|
2165
|
+
Schema.Null,
|
|
2166
|
+
]),
|
|
2167
|
+
),
|
|
2168
|
+
newClasses: Schema.optional(
|
|
2169
|
+
Schema.Union([
|
|
2170
|
+
Schema.Array(Schema.String),
|
|
2171
|
+
Schema.Null,
|
|
2172
|
+
]),
|
|
2173
|
+
),
|
|
2174
|
+
newSqliteClasses: Schema.optional(
|
|
2175
|
+
Schema.Union([
|
|
2176
|
+
Schema.Array(Schema.String),
|
|
2177
|
+
Schema.Null,
|
|
2178
|
+
]),
|
|
2179
|
+
),
|
|
2180
|
+
renamedClasses: Schema.optional(
|
|
2181
|
+
Schema.Union([
|
|
2182
|
+
Schema.Array(
|
|
2183
|
+
Schema.Struct({
|
|
2184
|
+
from: Schema.optional(
|
|
2185
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2186
|
+
),
|
|
2187
|
+
to: Schema.optional(
|
|
2188
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2189
|
+
),
|
|
2190
|
+
}),
|
|
2191
|
+
),
|
|
2192
|
+
Schema.Null,
|
|
2193
|
+
]),
|
|
2194
|
+
),
|
|
2195
|
+
transferredClasses: Schema.optional(
|
|
2196
|
+
Schema.Union([
|
|
2197
|
+
Schema.Array(
|
|
2198
|
+
Schema.Struct({
|
|
2199
|
+
from: Schema.optional(
|
|
2200
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2201
|
+
),
|
|
2202
|
+
fromScript: Schema.optional(
|
|
2203
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2204
|
+
),
|
|
2205
|
+
to: Schema.optional(
|
|
2206
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
2207
|
+
),
|
|
2208
|
+
}).pipe(
|
|
2209
|
+
Schema.encodeKeys({
|
|
2210
|
+
from: "from",
|
|
2211
|
+
fromScript: "from_script",
|
|
2212
|
+
to: "to",
|
|
2213
|
+
}),
|
|
2214
|
+
),
|
|
2215
|
+
),
|
|
2216
|
+
Schema.Null,
|
|
2217
|
+
]),
|
|
2218
|
+
),
|
|
2219
|
+
}).pipe(
|
|
2220
|
+
Schema.encodeKeys({
|
|
2221
|
+
deletedClasses: "deleted_classes",
|
|
2222
|
+
newClasses: "new_classes",
|
|
2223
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
2224
|
+
renamedClasses: "renamed_classes",
|
|
2225
|
+
transferredClasses: "transferred_classes",
|
|
2226
|
+
}),
|
|
2227
|
+
),
|
|
2228
|
+
),
|
|
2229
|
+
Schema.Null,
|
|
2230
|
+
]),
|
|
2231
|
+
),
|
|
2232
|
+
}).pipe(
|
|
2233
|
+
Schema.encodeKeys({
|
|
2234
|
+
newTag: "new_tag",
|
|
2235
|
+
oldTag: "old_tag",
|
|
2236
|
+
steps: "steps",
|
|
2237
|
+
}),
|
|
2238
|
+
),
|
|
2239
|
+
]),
|
|
2240
|
+
Schema.Null,
|
|
2241
|
+
]),
|
|
2021
2242
|
),
|
|
2022
2243
|
modules: Schema.optional(
|
|
2023
2244
|
Schema.Union([
|
|
@@ -2238,7 +2459,30 @@ export const listBetaWorkerVersions: API.PaginatedOperationMethod<
|
|
|
2238
2459
|
compatibilityFlags?: string[] | null;
|
|
2239
2460
|
limits?: { cpuMs: number } | null;
|
|
2240
2461
|
mainModule?: string | null;
|
|
2241
|
-
migrations?:
|
|
2462
|
+
migrations?:
|
|
2463
|
+
| unknown
|
|
2464
|
+
| {
|
|
2465
|
+
newTag?: string | null;
|
|
2466
|
+
oldTag?: string | null;
|
|
2467
|
+
steps?:
|
|
2468
|
+
| {
|
|
2469
|
+
deletedClasses?: string[] | null;
|
|
2470
|
+
newClasses?: string[] | null;
|
|
2471
|
+
newSqliteClasses?: string[] | null;
|
|
2472
|
+
renamedClasses?:
|
|
2473
|
+
| { from?: string | null; to?: string | null }[]
|
|
2474
|
+
| null;
|
|
2475
|
+
transferredClasses?:
|
|
2476
|
+
| {
|
|
2477
|
+
from?: string | null;
|
|
2478
|
+
fromScript?: string | null;
|
|
2479
|
+
to?: string | null;
|
|
2480
|
+
}[]
|
|
2481
|
+
| null;
|
|
2482
|
+
}[]
|
|
2483
|
+
| null;
|
|
2484
|
+
}
|
|
2485
|
+
| null;
|
|
2242
2486
|
modules?:
|
|
2243
2487
|
| { contentBase64: string; contentType: string; name: string }[]
|
|
2244
2488
|
| null;
|
|
@@ -2379,8 +2623,34 @@ export interface CreateBetaWorkerVersionRequest {
|
|
|
2379
2623
|
mainModule?: string;
|
|
2380
2624
|
/** Body param: Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed. */
|
|
2381
2625
|
migrations?:
|
|
2382
|
-
|
|
|
2383
|
-
|
|
2626
|
+
| {
|
|
2627
|
+
deletedClasses?: string[];
|
|
2628
|
+
newClasses?: string[];
|
|
2629
|
+
newSqliteClasses?: string[];
|
|
2630
|
+
newTag?: string;
|
|
2631
|
+
oldTag?: string;
|
|
2632
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
2633
|
+
transferredClasses?: {
|
|
2634
|
+
from?: string;
|
|
2635
|
+
fromScript?: string;
|
|
2636
|
+
to?: string;
|
|
2637
|
+
}[];
|
|
2638
|
+
}
|
|
2639
|
+
| {
|
|
2640
|
+
newTag?: string;
|
|
2641
|
+
oldTag?: string;
|
|
2642
|
+
steps?: {
|
|
2643
|
+
deletedClasses?: string[];
|
|
2644
|
+
newClasses?: string[];
|
|
2645
|
+
newSqliteClasses?: string[];
|
|
2646
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
2647
|
+
transferredClasses?: {
|
|
2648
|
+
from?: string;
|
|
2649
|
+
fromScript?: string;
|
|
2650
|
+
to?: string;
|
|
2651
|
+
}[];
|
|
2652
|
+
}[];
|
|
2653
|
+
};
|
|
2384
2654
|
/** Body param: Code, sourcemaps, and other content used at runtime. This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https:/ */
|
|
2385
2655
|
modules?: { contentBase64: string; contentType: string; name: string }[];
|
|
2386
2656
|
/** Body param: Placement settings for the version. */
|
|
@@ -2706,11 +2976,89 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
2706
2976
|
mainModule: Schema.optional(Schema.String),
|
|
2707
2977
|
migrations: Schema.optional(
|
|
2708
2978
|
Schema.Union([
|
|
2709
|
-
Schema.
|
|
2979
|
+
Schema.Struct({
|
|
2980
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
2981
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
2982
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
2983
|
+
newTag: Schema.optional(Schema.String),
|
|
2984
|
+
oldTag: Schema.optional(Schema.String),
|
|
2985
|
+
renamedClasses: Schema.optional(
|
|
2986
|
+
Schema.Array(
|
|
2987
|
+
Schema.Struct({
|
|
2988
|
+
from: Schema.optional(Schema.String),
|
|
2989
|
+
to: Schema.optional(Schema.String),
|
|
2990
|
+
}),
|
|
2991
|
+
),
|
|
2992
|
+
),
|
|
2993
|
+
transferredClasses: Schema.optional(
|
|
2994
|
+
Schema.Array(
|
|
2995
|
+
Schema.Struct({
|
|
2996
|
+
from: Schema.optional(Schema.String),
|
|
2997
|
+
fromScript: Schema.optional(Schema.String),
|
|
2998
|
+
to: Schema.optional(Schema.String),
|
|
2999
|
+
}).pipe(
|
|
3000
|
+
Schema.encodeKeys({
|
|
3001
|
+
from: "from",
|
|
3002
|
+
fromScript: "from_script",
|
|
3003
|
+
to: "to",
|
|
3004
|
+
}),
|
|
3005
|
+
),
|
|
3006
|
+
),
|
|
3007
|
+
),
|
|
3008
|
+
}).pipe(
|
|
3009
|
+
Schema.encodeKeys({
|
|
3010
|
+
deletedClasses: "deleted_classes",
|
|
3011
|
+
newClasses: "new_classes",
|
|
3012
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
3013
|
+
newTag: "new_tag",
|
|
3014
|
+
oldTag: "old_tag",
|
|
3015
|
+
renamedClasses: "renamed_classes",
|
|
3016
|
+
transferredClasses: "transferred_classes",
|
|
3017
|
+
}),
|
|
3018
|
+
),
|
|
2710
3019
|
Schema.Struct({
|
|
2711
3020
|
newTag: Schema.optional(Schema.String),
|
|
2712
3021
|
oldTag: Schema.optional(Schema.String),
|
|
2713
|
-
steps: Schema.optional(
|
|
3022
|
+
steps: Schema.optional(
|
|
3023
|
+
Schema.Array(
|
|
3024
|
+
Schema.Struct({
|
|
3025
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3026
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3027
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
3028
|
+
renamedClasses: Schema.optional(
|
|
3029
|
+
Schema.Array(
|
|
3030
|
+
Schema.Struct({
|
|
3031
|
+
from: Schema.optional(Schema.String),
|
|
3032
|
+
to: Schema.optional(Schema.String),
|
|
3033
|
+
}),
|
|
3034
|
+
),
|
|
3035
|
+
),
|
|
3036
|
+
transferredClasses: Schema.optional(
|
|
3037
|
+
Schema.Array(
|
|
3038
|
+
Schema.Struct({
|
|
3039
|
+
from: Schema.optional(Schema.String),
|
|
3040
|
+
fromScript: Schema.optional(Schema.String),
|
|
3041
|
+
to: Schema.optional(Schema.String),
|
|
3042
|
+
}).pipe(
|
|
3043
|
+
Schema.encodeKeys({
|
|
3044
|
+
from: "from",
|
|
3045
|
+
fromScript: "from_script",
|
|
3046
|
+
to: "to",
|
|
3047
|
+
}),
|
|
3048
|
+
),
|
|
3049
|
+
),
|
|
3050
|
+
),
|
|
3051
|
+
}).pipe(
|
|
3052
|
+
Schema.encodeKeys({
|
|
3053
|
+
deletedClasses: "deleted_classes",
|
|
3054
|
+
newClasses: "new_classes",
|
|
3055
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
3056
|
+
renamedClasses: "renamed_classes",
|
|
3057
|
+
transferredClasses: "transferred_classes",
|
|
3058
|
+
}),
|
|
3059
|
+
),
|
|
3060
|
+
),
|
|
3061
|
+
),
|
|
2714
3062
|
}).pipe(
|
|
2715
3063
|
Schema.encodeKeys({
|
|
2716
3064
|
newTag: "new_tag",
|
|
@@ -2897,7 +3245,30 @@ export interface CreateBetaWorkerVersionResponse {
|
|
|
2897
3245
|
/** The name of the main module in the `modules` array (e.g. the name of the module that exports a `fetch` handler). */
|
|
2898
3246
|
mainModule?: string | null;
|
|
2899
3247
|
/** Migrations for Durable Objects associated with the version. Migrations are applied when the version is deployed. */
|
|
2900
|
-
migrations?:
|
|
3248
|
+
migrations?:
|
|
3249
|
+
| unknown
|
|
3250
|
+
| {
|
|
3251
|
+
newTag?: string | null;
|
|
3252
|
+
oldTag?: string | null;
|
|
3253
|
+
steps?:
|
|
3254
|
+
| {
|
|
3255
|
+
deletedClasses?: string[] | null;
|
|
3256
|
+
newClasses?: string[] | null;
|
|
3257
|
+
newSqliteClasses?: string[] | null;
|
|
3258
|
+
renamedClasses?:
|
|
3259
|
+
| { from?: string | null; to?: string | null }[]
|
|
3260
|
+
| null;
|
|
3261
|
+
transferredClasses?:
|
|
3262
|
+
| {
|
|
3263
|
+
from?: string | null;
|
|
3264
|
+
fromScript?: string | null;
|
|
3265
|
+
to?: string | null;
|
|
3266
|
+
}[]
|
|
3267
|
+
| null;
|
|
3268
|
+
}[]
|
|
3269
|
+
| null;
|
|
3270
|
+
}
|
|
3271
|
+
| null;
|
|
2901
3272
|
/** Code, sourcemaps, and other content used at runtime. This includes [`_headers`](https://developers.cloudflare.com/workers/static-assets/headers/#custom-headers) and [`_redirects`](https://developers. */
|
|
2902
3273
|
modules?:
|
|
2903
3274
|
| { contentBase64: string; contentType: string; name: string }[]
|
|
@@ -3288,7 +3659,89 @@ export const CreateBetaWorkerVersionResponse =
|
|
|
3288
3659
|
]),
|
|
3289
3660
|
),
|
|
3290
3661
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3291
|
-
migrations: Schema.optional(
|
|
3662
|
+
migrations: Schema.optional(
|
|
3663
|
+
Schema.Union([
|
|
3664
|
+
Schema.Union([
|
|
3665
|
+
Schema.Unknown,
|
|
3666
|
+
Schema.Struct({
|
|
3667
|
+
newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3668
|
+
oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
3669
|
+
steps: Schema.optional(
|
|
3670
|
+
Schema.Union([
|
|
3671
|
+
Schema.Array(
|
|
3672
|
+
Schema.Struct({
|
|
3673
|
+
deletedClasses: Schema.optional(
|
|
3674
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3675
|
+
),
|
|
3676
|
+
newClasses: Schema.optional(
|
|
3677
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3678
|
+
),
|
|
3679
|
+
newSqliteClasses: Schema.optional(
|
|
3680
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
3681
|
+
),
|
|
3682
|
+
renamedClasses: Schema.optional(
|
|
3683
|
+
Schema.Union([
|
|
3684
|
+
Schema.Array(
|
|
3685
|
+
Schema.Struct({
|
|
3686
|
+
from: Schema.optional(
|
|
3687
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3688
|
+
),
|
|
3689
|
+
to: Schema.optional(
|
|
3690
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3691
|
+
),
|
|
3692
|
+
}),
|
|
3693
|
+
),
|
|
3694
|
+
Schema.Null,
|
|
3695
|
+
]),
|
|
3696
|
+
),
|
|
3697
|
+
transferredClasses: Schema.optional(
|
|
3698
|
+
Schema.Union([
|
|
3699
|
+
Schema.Array(
|
|
3700
|
+
Schema.Struct({
|
|
3701
|
+
from: Schema.optional(
|
|
3702
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3703
|
+
),
|
|
3704
|
+
fromScript: Schema.optional(
|
|
3705
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3706
|
+
),
|
|
3707
|
+
to: Schema.optional(
|
|
3708
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
3709
|
+
),
|
|
3710
|
+
}).pipe(
|
|
3711
|
+
Schema.encodeKeys({
|
|
3712
|
+
from: "from",
|
|
3713
|
+
fromScript: "from_script",
|
|
3714
|
+
to: "to",
|
|
3715
|
+
}),
|
|
3716
|
+
),
|
|
3717
|
+
),
|
|
3718
|
+
Schema.Null,
|
|
3719
|
+
]),
|
|
3720
|
+
),
|
|
3721
|
+
}).pipe(
|
|
3722
|
+
Schema.encodeKeys({
|
|
3723
|
+
deletedClasses: "deleted_classes",
|
|
3724
|
+
newClasses: "new_classes",
|
|
3725
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
3726
|
+
renamedClasses: "renamed_classes",
|
|
3727
|
+
transferredClasses: "transferred_classes",
|
|
3728
|
+
}),
|
|
3729
|
+
),
|
|
3730
|
+
),
|
|
3731
|
+
Schema.Null,
|
|
3732
|
+
]),
|
|
3733
|
+
),
|
|
3734
|
+
}).pipe(
|
|
3735
|
+
Schema.encodeKeys({
|
|
3736
|
+
newTag: "new_tag",
|
|
3737
|
+
oldTag: "old_tag",
|
|
3738
|
+
steps: "steps",
|
|
3739
|
+
}),
|
|
3740
|
+
),
|
|
3741
|
+
]),
|
|
3742
|
+
Schema.Null,
|
|
3743
|
+
]),
|
|
3744
|
+
),
|
|
3292
3745
|
modules: Schema.optional(
|
|
3293
3746
|
Schema.Union([
|
|
3294
3747
|
Schema.Array(
|
|
@@ -4396,7 +4849,9 @@ export interface QueryObservabilityTelemetryResponse {
|
|
|
4396
4849
|
series: {
|
|
4397
4850
|
data: {
|
|
4398
4851
|
count: number;
|
|
4852
|
+
firstSeen: string;
|
|
4399
4853
|
interval: number;
|
|
4854
|
+
lastSeen: string;
|
|
4400
4855
|
sampleInterval: number;
|
|
4401
4856
|
value: number;
|
|
4402
4857
|
groups?: { key: string; value: string | number | boolean }[] | null;
|
|
@@ -4419,7 +4874,9 @@ export interface QueryObservabilityTelemetryResponse {
|
|
|
4419
4874
|
series: {
|
|
4420
4875
|
data: {
|
|
4421
4876
|
count: number;
|
|
4877
|
+
firstSeen: string;
|
|
4422
4878
|
interval: number;
|
|
4879
|
+
lastSeen: string;
|
|
4423
4880
|
sampleInterval: number;
|
|
4424
4881
|
value: number;
|
|
4425
4882
|
groups?: { key: string; value: string | number | boolean }[] | null;
|
|
@@ -4536,11 +4993,18 @@ export interface QueryObservabilityTelemetryResponse {
|
|
|
4536
4993
|
series?:
|
|
4537
4994
|
| {
|
|
4538
4995
|
data: {
|
|
4996
|
+
aggregates: {
|
|
4997
|
+
count: number;
|
|
4998
|
+
firstSeen?: string | null;
|
|
4999
|
+
interval: number;
|
|
5000
|
+
lastSeen?: string | null;
|
|
5001
|
+
bin?: unknown | null;
|
|
5002
|
+
};
|
|
4539
5003
|
count: number;
|
|
4540
5004
|
interval: number;
|
|
4541
5005
|
sampleInterval: number;
|
|
4542
|
-
|
|
4543
|
-
groups?:
|
|
5006
|
+
errors?: number | null;
|
|
5007
|
+
groups?: Record<string, unknown> | null;
|
|
4544
5008
|
}[];
|
|
4545
5009
|
time: string;
|
|
4546
5010
|
}[]
|
|
@@ -4857,7 +5321,9 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
4857
5321
|
data: Schema.Array(
|
|
4858
5322
|
Schema.Struct({
|
|
4859
5323
|
count: Schema.Number,
|
|
5324
|
+
firstSeen: Schema.String,
|
|
4860
5325
|
interval: Schema.Number,
|
|
5326
|
+
lastSeen: Schema.String,
|
|
4861
5327
|
sampleInterval: Schema.Number,
|
|
4862
5328
|
value: Schema.Number,
|
|
4863
5329
|
groups: Schema.optional(
|
|
@@ -4919,7 +5385,9 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
4919
5385
|
data: Schema.Array(
|
|
4920
5386
|
Schema.Struct({
|
|
4921
5387
|
count: Schema.Number,
|
|
5388
|
+
firstSeen: Schema.String,
|
|
4922
5389
|
interval: Schema.Number,
|
|
5390
|
+
lastSeen: Schema.String,
|
|
4923
5391
|
sampleInterval: Schema.Number,
|
|
4924
5392
|
value: Schema.Number,
|
|
4925
5393
|
groups: Schema.optional(
|
|
@@ -5080,7 +5548,10 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
5080
5548
|
Schema.Union([Schema.String, Schema.Null]),
|
|
5081
5549
|
),
|
|
5082
5550
|
event: Schema.optional(
|
|
5083
|
-
Schema.Union([
|
|
5551
|
+
Schema.Union([
|
|
5552
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
5553
|
+
Schema.Null,
|
|
5554
|
+
]),
|
|
5084
5555
|
),
|
|
5085
5556
|
executionModel: Schema.optional(
|
|
5086
5557
|
Schema.Union([
|
|
@@ -5151,8 +5622,11 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
5151
5622
|
Schema.Union([Schema.String, Schema.Null]),
|
|
5152
5623
|
),
|
|
5153
5624
|
event: Schema.optional(
|
|
5154
|
-
Schema.Union([
|
|
5155
|
-
|
|
5625
|
+
Schema.Union([
|
|
5626
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
5627
|
+
Schema.Null,
|
|
5628
|
+
]),
|
|
5629
|
+
),
|
|
5156
5630
|
executionModel: Schema.optional(
|
|
5157
5631
|
Schema.Union([
|
|
5158
5632
|
Schema.Literals(["durableObject", "stateless"]),
|
|
@@ -5205,24 +5679,36 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
5205
5679
|
Schema.Struct({
|
|
5206
5680
|
data: Schema.Array(
|
|
5207
5681
|
Schema.Struct({
|
|
5682
|
+
aggregates: Schema.Struct({
|
|
5683
|
+
count: Schema.Number,
|
|
5684
|
+
firstSeen: Schema.optional(
|
|
5685
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5686
|
+
),
|
|
5687
|
+
interval: Schema.Number,
|
|
5688
|
+
lastSeen: Schema.optional(
|
|
5689
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
5690
|
+
),
|
|
5691
|
+
bin: Schema.optional(
|
|
5692
|
+
Schema.Union([Schema.Unknown, Schema.Null]),
|
|
5693
|
+
),
|
|
5694
|
+
}).pipe(
|
|
5695
|
+
Schema.encodeKeys({
|
|
5696
|
+
count: "_count",
|
|
5697
|
+
firstSeen: "_firstSeen",
|
|
5698
|
+
interval: "_interval",
|
|
5699
|
+
lastSeen: "_lastSeen",
|
|
5700
|
+
bin: "bin",
|
|
5701
|
+
}),
|
|
5702
|
+
),
|
|
5208
5703
|
count: Schema.Number,
|
|
5209
5704
|
interval: Schema.Number,
|
|
5210
5705
|
sampleInterval: Schema.Number,
|
|
5211
|
-
|
|
5706
|
+
errors: Schema.optional(
|
|
5212
5707
|
Schema.Union([Schema.Number, Schema.Null]),
|
|
5213
5708
|
),
|
|
5214
5709
|
groups: Schema.optional(
|
|
5215
5710
|
Schema.Union([
|
|
5216
|
-
Schema.
|
|
5217
|
-
Schema.Struct({
|
|
5218
|
-
key: Schema.String,
|
|
5219
|
-
value: Schema.Union([
|
|
5220
|
-
Schema.String,
|
|
5221
|
-
Schema.Number,
|
|
5222
|
-
Schema.Boolean,
|
|
5223
|
-
]),
|
|
5224
|
-
}),
|
|
5225
|
-
),
|
|
5711
|
+
Schema.Record(Schema.String, Schema.Unknown),
|
|
5226
5712
|
Schema.Null,
|
|
5227
5713
|
]),
|
|
5228
5714
|
),
|
|
@@ -5239,7 +5725,7 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
5239
5725
|
]),
|
|
5240
5726
|
),
|
|
5241
5727
|
invocations: Schema.optional(
|
|
5242
|
-
Schema.Union([Schema.
|
|
5728
|
+
Schema.Union([Schema.Record(Schema.String, Schema.Unknown), Schema.Null]),
|
|
5243
5729
|
),
|
|
5244
5730
|
patterns: Schema.optional(
|
|
5245
5731
|
Schema.Union([
|
|
@@ -5758,10 +6244,10 @@ export const GetScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
5758
6244
|
}),
|
|
5759
6245
|
) as unknown as Schema.Schema<GetScriptRequest>;
|
|
5760
6246
|
|
|
5761
|
-
export type GetScriptResponse =
|
|
6247
|
+
export type GetScriptResponse = string;
|
|
5762
6248
|
|
|
5763
6249
|
export const GetScriptResponse =
|
|
5764
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
6250
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.String as unknown as Schema.Schema<GetScriptResponse>;
|
|
5765
6251
|
|
|
5766
6252
|
export type GetScriptError = DefaultErrors | WorkerNotFound | InvalidRoute;
|
|
5767
6253
|
|
|
@@ -5865,7 +6351,13 @@ export interface ListScriptsResponse {
|
|
|
5865
6351
|
routes?: { id: string; pattern: string; script?: string | null }[] | null;
|
|
5866
6352
|
tag?: string | null;
|
|
5867
6353
|
tags?: string[] | null;
|
|
5868
|
-
tailConsumers?:
|
|
6354
|
+
tailConsumers?:
|
|
6355
|
+
| {
|
|
6356
|
+
service: string;
|
|
6357
|
+
environment?: string | null;
|
|
6358
|
+
namespace?: string | null;
|
|
6359
|
+
}[]
|
|
6360
|
+
| null;
|
|
5869
6361
|
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
5870
6362
|
}[];
|
|
5871
6363
|
}
|
|
@@ -6076,7 +6568,20 @@ export const ListScriptsResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6076
6568
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
6077
6569
|
),
|
|
6078
6570
|
tailConsumers: Schema.optional(
|
|
6079
|
-
Schema.Union([
|
|
6571
|
+
Schema.Union([
|
|
6572
|
+
Schema.Array(
|
|
6573
|
+
Schema.Struct({
|
|
6574
|
+
service: Schema.String,
|
|
6575
|
+
environment: Schema.optional(
|
|
6576
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6577
|
+
),
|
|
6578
|
+
namespace: Schema.optional(
|
|
6579
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
6580
|
+
),
|
|
6581
|
+
}),
|
|
6582
|
+
),
|
|
6583
|
+
Schema.Null,
|
|
6584
|
+
]),
|
|
6080
6585
|
),
|
|
6081
6586
|
usageModel: Schema.optional(
|
|
6082
6587
|
Schema.Union([
|
|
@@ -6203,7 +6708,13 @@ export const listScripts: API.PaginatedOperationMethod<
|
|
|
6203
6708
|
routes?: { id: string; pattern: string; script?: string | null }[] | null;
|
|
6204
6709
|
tag?: string | null;
|
|
6205
6710
|
tags?: string[] | null;
|
|
6206
|
-
tailConsumers?:
|
|
6711
|
+
tailConsumers?:
|
|
6712
|
+
| {
|
|
6713
|
+
service: string;
|
|
6714
|
+
environment?: string | null;
|
|
6715
|
+
namespace?: string | null;
|
|
6716
|
+
}[]
|
|
6717
|
+
| null;
|
|
6207
6718
|
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
6208
6719
|
},
|
|
6209
6720
|
ListScriptsError,
|
|
@@ -6333,8 +6844,34 @@ export interface PutScriptRequest {
|
|
|
6333
6844
|
logpush?: boolean;
|
|
6334
6845
|
mainModule?: string;
|
|
6335
6846
|
migrations?:
|
|
6336
|
-
|
|
|
6337
|
-
|
|
6847
|
+
| {
|
|
6848
|
+
deletedClasses?: string[];
|
|
6849
|
+
newClasses?: string[];
|
|
6850
|
+
newSqliteClasses?: string[];
|
|
6851
|
+
newTag?: string;
|
|
6852
|
+
oldTag?: string;
|
|
6853
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
6854
|
+
transferredClasses?: {
|
|
6855
|
+
from?: string;
|
|
6856
|
+
fromScript?: string;
|
|
6857
|
+
to?: string;
|
|
6858
|
+
}[];
|
|
6859
|
+
}
|
|
6860
|
+
| {
|
|
6861
|
+
newTag?: string;
|
|
6862
|
+
oldTag?: string;
|
|
6863
|
+
steps?: {
|
|
6864
|
+
deletedClasses?: string[];
|
|
6865
|
+
newClasses?: string[];
|
|
6866
|
+
newSqliteClasses?: string[];
|
|
6867
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
6868
|
+
transferredClasses?: {
|
|
6869
|
+
from?: string;
|
|
6870
|
+
fromScript?: string;
|
|
6871
|
+
to?: string;
|
|
6872
|
+
}[];
|
|
6873
|
+
}[];
|
|
6874
|
+
};
|
|
6338
6875
|
observability?: {
|
|
6339
6876
|
enabled: boolean;
|
|
6340
6877
|
headSamplingRate?: number | null;
|
|
@@ -6352,7 +6889,9 @@ export interface PutScriptRequest {
|
|
|
6352
6889
|
| { hostname: string }
|
|
6353
6890
|
| { host: string };
|
|
6354
6891
|
tags?: string[];
|
|
6355
|
-
tailConsumers?:
|
|
6892
|
+
tailConsumers?:
|
|
6893
|
+
| { service: string; environment?: string; namespace?: string }[]
|
|
6894
|
+
| null;
|
|
6356
6895
|
usageModel?: "standard" | "bundled" | "unbound";
|
|
6357
6896
|
};
|
|
6358
6897
|
/** Body param: An array of modules (often JavaScript files) comprising a Worker script. At least one module must be present and referenced in the metadata as `main_module` or `body_part` by filename.<br/ */
|
|
@@ -6674,11 +7213,89 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6674
7213
|
mainModule: Schema.optional(Schema.String),
|
|
6675
7214
|
migrations: Schema.optional(
|
|
6676
7215
|
Schema.Union([
|
|
6677
|
-
Schema.
|
|
7216
|
+
Schema.Struct({
|
|
7217
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
7218
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
7219
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
7220
|
+
newTag: Schema.optional(Schema.String),
|
|
7221
|
+
oldTag: Schema.optional(Schema.String),
|
|
7222
|
+
renamedClasses: Schema.optional(
|
|
7223
|
+
Schema.Array(
|
|
7224
|
+
Schema.Struct({
|
|
7225
|
+
from: Schema.optional(Schema.String),
|
|
7226
|
+
to: Schema.optional(Schema.String),
|
|
7227
|
+
}),
|
|
7228
|
+
),
|
|
7229
|
+
),
|
|
7230
|
+
transferredClasses: Schema.optional(
|
|
7231
|
+
Schema.Array(
|
|
7232
|
+
Schema.Struct({
|
|
7233
|
+
from: Schema.optional(Schema.String),
|
|
7234
|
+
fromScript: Schema.optional(Schema.String),
|
|
7235
|
+
to: Schema.optional(Schema.String),
|
|
7236
|
+
}).pipe(
|
|
7237
|
+
Schema.encodeKeys({
|
|
7238
|
+
from: "from",
|
|
7239
|
+
fromScript: "from_script",
|
|
7240
|
+
to: "to",
|
|
7241
|
+
}),
|
|
7242
|
+
),
|
|
7243
|
+
),
|
|
7244
|
+
),
|
|
7245
|
+
}).pipe(
|
|
7246
|
+
Schema.encodeKeys({
|
|
7247
|
+
deletedClasses: "deleted_classes",
|
|
7248
|
+
newClasses: "new_classes",
|
|
7249
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
7250
|
+
newTag: "new_tag",
|
|
7251
|
+
oldTag: "old_tag",
|
|
7252
|
+
renamedClasses: "renamed_classes",
|
|
7253
|
+
transferredClasses: "transferred_classes",
|
|
7254
|
+
}),
|
|
7255
|
+
),
|
|
6678
7256
|
Schema.Struct({
|
|
6679
7257
|
newTag: Schema.optional(Schema.String),
|
|
6680
7258
|
oldTag: Schema.optional(Schema.String),
|
|
6681
|
-
steps: Schema.optional(
|
|
7259
|
+
steps: Schema.optional(
|
|
7260
|
+
Schema.Array(
|
|
7261
|
+
Schema.Struct({
|
|
7262
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
7263
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
7264
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
7265
|
+
renamedClasses: Schema.optional(
|
|
7266
|
+
Schema.Array(
|
|
7267
|
+
Schema.Struct({
|
|
7268
|
+
from: Schema.optional(Schema.String),
|
|
7269
|
+
to: Schema.optional(Schema.String),
|
|
7270
|
+
}),
|
|
7271
|
+
),
|
|
7272
|
+
),
|
|
7273
|
+
transferredClasses: Schema.optional(
|
|
7274
|
+
Schema.Array(
|
|
7275
|
+
Schema.Struct({
|
|
7276
|
+
from: Schema.optional(Schema.String),
|
|
7277
|
+
fromScript: Schema.optional(Schema.String),
|
|
7278
|
+
to: Schema.optional(Schema.String),
|
|
7279
|
+
}).pipe(
|
|
7280
|
+
Schema.encodeKeys({
|
|
7281
|
+
from: "from",
|
|
7282
|
+
fromScript: "from_script",
|
|
7283
|
+
to: "to",
|
|
7284
|
+
}),
|
|
7285
|
+
),
|
|
7286
|
+
),
|
|
7287
|
+
),
|
|
7288
|
+
}).pipe(
|
|
7289
|
+
Schema.encodeKeys({
|
|
7290
|
+
deletedClasses: "deleted_classes",
|
|
7291
|
+
newClasses: "new_classes",
|
|
7292
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
7293
|
+
renamedClasses: "renamed_classes",
|
|
7294
|
+
transferredClasses: "transferred_classes",
|
|
7295
|
+
}),
|
|
7296
|
+
),
|
|
7297
|
+
),
|
|
7298
|
+
),
|
|
6682
7299
|
}).pipe(
|
|
6683
7300
|
Schema.encodeKeys({
|
|
6684
7301
|
newTag: "new_tag",
|
|
@@ -6742,7 +7359,16 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6742
7359
|
),
|
|
6743
7360
|
tags: Schema.optional(Schema.Array(Schema.String)),
|
|
6744
7361
|
tailConsumers: Schema.optional(
|
|
6745
|
-
Schema.Union([
|
|
7362
|
+
Schema.Union([
|
|
7363
|
+
Schema.Array(
|
|
7364
|
+
Schema.Struct({
|
|
7365
|
+
service: Schema.String,
|
|
7366
|
+
environment: Schema.optional(Schema.String),
|
|
7367
|
+
namespace: Schema.optional(Schema.String),
|
|
7368
|
+
}),
|
|
7369
|
+
),
|
|
7370
|
+
Schema.Null,
|
|
7371
|
+
]),
|
|
6746
7372
|
),
|
|
6747
7373
|
usageModel: Schema.optional(
|
|
6748
7374
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
@@ -6872,7 +7498,13 @@ export interface PutScriptResponse {
|
|
|
6872
7498
|
/** Tags associated with the Worker. */
|
|
6873
7499
|
tags?: string[] | null;
|
|
6874
7500
|
/** List of Workers that will consume logs from the attached Worker. */
|
|
6875
|
-
tailConsumers?:
|
|
7501
|
+
tailConsumers?:
|
|
7502
|
+
| {
|
|
7503
|
+
service: string;
|
|
7504
|
+
environment?: string | null;
|
|
7505
|
+
namespace?: string | null;
|
|
7506
|
+
}[]
|
|
7507
|
+
| null;
|
|
6876
7508
|
/** Usage model for the Worker invocations. */
|
|
6877
7509
|
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
6878
7510
|
}
|
|
@@ -7067,7 +7699,20 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
7067
7699
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
7068
7700
|
),
|
|
7069
7701
|
tailConsumers: Schema.optional(
|
|
7070
|
-
Schema.Union([
|
|
7702
|
+
Schema.Union([
|
|
7703
|
+
Schema.Array(
|
|
7704
|
+
Schema.Struct({
|
|
7705
|
+
service: Schema.String,
|
|
7706
|
+
environment: Schema.optional(
|
|
7707
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
7708
|
+
),
|
|
7709
|
+
namespace: Schema.optional(
|
|
7710
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
7711
|
+
),
|
|
7712
|
+
}),
|
|
7713
|
+
),
|
|
7714
|
+
Schema.Null,
|
|
7715
|
+
]),
|
|
7071
7716
|
),
|
|
7072
7717
|
usageModel: Schema.optional(
|
|
7073
7718
|
Schema.Union([
|
|
@@ -7257,7 +7902,7 @@ export const CreateScriptAssetUploadRequest =
|
|
|
7257
7902
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7258
7903
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
7259
7904
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
7260
|
-
manifest: Schema.
|
|
7905
|
+
manifest: Schema.Record(Schema.String, Schema.Unknown),
|
|
7261
7906
|
}).pipe(
|
|
7262
7907
|
T.Http({
|
|
7263
7908
|
method: "POST",
|
|
@@ -7375,71 +8020,410 @@ export const PutScriptContentRequest =
|
|
|
7375
8020
|
}),
|
|
7376
8021
|
) as unknown as Schema.Schema<PutScriptContentRequest>;
|
|
7377
8022
|
|
|
7378
|
-
export
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
|
7385
|
-
|
|
7386
|
-
|
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
T.Http({
|
|
7417
|
-
method: "GET",
|
|
7418
|
-
path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
|
|
7419
|
-
}),
|
|
7420
|
-
) as unknown as Schema.Schema<GetScriptDeploymentRequest>;
|
|
7421
|
-
|
|
7422
|
-
export interface GetScriptDeploymentResponse {
|
|
7423
|
-
id: string;
|
|
7424
|
-
createdOn: string;
|
|
7425
|
-
source: string;
|
|
7426
|
-
strategy: "percentage";
|
|
7427
|
-
versions: { percentage: number; versionId: string }[];
|
|
7428
|
-
annotations?: {
|
|
7429
|
-
workersMessage?: string | null;
|
|
7430
|
-
workersTriggeredBy?: string | null;
|
|
8023
|
+
export interface PutScriptContentResponse {
|
|
8024
|
+
/** The name used to identify the script. */
|
|
8025
|
+
id?: string | null;
|
|
8026
|
+
/** Date indicating targeted support in the Workers runtime. Backwards incompatible fixes to the runtime following this date will not affect this Worker. */
|
|
8027
|
+
compatibilityDate?: string | null;
|
|
8028
|
+
/** Flags that enable or disable certain features in the Workers runtime. Used to enable upcoming features or opt in or out of specific changes not included in a `compatibility_date`. */
|
|
8029
|
+
compatibilityFlags?: string[] | null;
|
|
8030
|
+
/** When the script was created. */
|
|
8031
|
+
createdOn?: string | null;
|
|
8032
|
+
/** Hashed script content, can be used in a If-None-Match header when updating. */
|
|
8033
|
+
etag?: string | null;
|
|
8034
|
+
/** The names of handlers exported as part of the default export. */
|
|
8035
|
+
handlers?: string[] | null;
|
|
8036
|
+
/** Whether a Worker contains assets. */
|
|
8037
|
+
hasAssets?: boolean | null;
|
|
8038
|
+
/** Whether a Worker contains modules. */
|
|
8039
|
+
hasModules?: boolean | null;
|
|
8040
|
+
/** The client most recently used to deploy this Worker. */
|
|
8041
|
+
lastDeployedFrom?: string | null;
|
|
8042
|
+
/** Whether Logpush is turned on for the Worker. */
|
|
8043
|
+
logpush?: boolean | null;
|
|
8044
|
+
/** The tag of the Durable Object migration that was most recently applied for this Worker. */
|
|
8045
|
+
migrationTag?: string | null;
|
|
8046
|
+
/** When the script was last modified. */
|
|
8047
|
+
modifiedOn?: string | null;
|
|
8048
|
+
/** Named exports, such as Durable Object class implementations and named entrypoints. */
|
|
8049
|
+
namedHandlers?: { handlers?: string[] | null; name?: string | null }[] | null;
|
|
8050
|
+
/** Observability settings for the Worker. */
|
|
8051
|
+
observability?: {
|
|
8052
|
+
enabled: boolean;
|
|
8053
|
+
headSamplingRate?: number | null;
|
|
8054
|
+
logs?: {
|
|
8055
|
+
enabled: boolean;
|
|
8056
|
+
invocationLogs: boolean;
|
|
8057
|
+
destinations?: string[] | null;
|
|
8058
|
+
headSamplingRate?: number | null;
|
|
8059
|
+
persist?: boolean | null;
|
|
8060
|
+
} | null;
|
|
7431
8061
|
} | null;
|
|
7432
|
-
|
|
8062
|
+
/** Configuration for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). Specify either mode for Smart Placement, or one of region/hostname/host for targeted place */
|
|
8063
|
+
placement?:
|
|
8064
|
+
| {
|
|
8065
|
+
mode: "smart";
|
|
8066
|
+
lastAnalyzedAt?: string | null;
|
|
8067
|
+
status?:
|
|
8068
|
+
| "SUCCESS"
|
|
8069
|
+
| "UNSUPPORTED_APPLICATION"
|
|
8070
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
8071
|
+
| null;
|
|
8072
|
+
}
|
|
8073
|
+
| {
|
|
8074
|
+
region: string;
|
|
8075
|
+
lastAnalyzedAt?: string | null;
|
|
8076
|
+
status?:
|
|
8077
|
+
| "SUCCESS"
|
|
8078
|
+
| "UNSUPPORTED_APPLICATION"
|
|
8079
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
8080
|
+
| null;
|
|
8081
|
+
}
|
|
8082
|
+
| {
|
|
8083
|
+
hostname: string;
|
|
8084
|
+
lastAnalyzedAt?: string | null;
|
|
8085
|
+
status?:
|
|
8086
|
+
| "SUCCESS"
|
|
8087
|
+
| "UNSUPPORTED_APPLICATION"
|
|
8088
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
8089
|
+
| null;
|
|
8090
|
+
}
|
|
8091
|
+
| {
|
|
8092
|
+
host: string;
|
|
8093
|
+
lastAnalyzedAt?: string | null;
|
|
8094
|
+
status?:
|
|
8095
|
+
| "SUCCESS"
|
|
8096
|
+
| "UNSUPPORTED_APPLICATION"
|
|
8097
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
8098
|
+
| null;
|
|
8099
|
+
}
|
|
8100
|
+
| null;
|
|
8101
|
+
/** @deprecated Enables [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). */
|
|
8102
|
+
placementMode?: "smart" | null;
|
|
8103
|
+
/** @deprecated Status of [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). */
|
|
8104
|
+
placementStatus?:
|
|
8105
|
+
| "SUCCESS"
|
|
8106
|
+
| "UNSUPPORTED_APPLICATION"
|
|
8107
|
+
| "INSUFFICIENT_INVOCATIONS"
|
|
8108
|
+
| null;
|
|
8109
|
+
/** The immutable ID of the script. */
|
|
8110
|
+
tag?: string | null;
|
|
8111
|
+
/** Tags associated with the Worker. */
|
|
8112
|
+
tags?: string[] | null;
|
|
8113
|
+
/** List of Workers that will consume logs from the attached Worker. */
|
|
8114
|
+
tailConsumers?:
|
|
8115
|
+
| {
|
|
8116
|
+
service: string;
|
|
8117
|
+
environment?: string | null;
|
|
8118
|
+
namespace?: string | null;
|
|
8119
|
+
}[]
|
|
8120
|
+
| null;
|
|
8121
|
+
/** Usage model for the Worker invocations. */
|
|
8122
|
+
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
7433
8123
|
}
|
|
7434
8124
|
|
|
7435
|
-
export const
|
|
8125
|
+
export const PutScriptContentResponse =
|
|
7436
8126
|
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
7437
|
-
id: Schema.String,
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
Schema.
|
|
8127
|
+
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8128
|
+
compatibilityDate: Schema.optional(
|
|
8129
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8130
|
+
),
|
|
8131
|
+
compatibilityFlags: Schema.optional(
|
|
8132
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8133
|
+
),
|
|
8134
|
+
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8135
|
+
etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8136
|
+
handlers: Schema.optional(
|
|
8137
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8138
|
+
),
|
|
8139
|
+
hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
8140
|
+
hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
8141
|
+
lastDeployedFrom: Schema.optional(
|
|
8142
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8143
|
+
),
|
|
8144
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
8145
|
+
migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8146
|
+
modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8147
|
+
namedHandlers: Schema.optional(
|
|
8148
|
+
Schema.Union([
|
|
8149
|
+
Schema.Array(
|
|
8150
|
+
Schema.Struct({
|
|
8151
|
+
handlers: Schema.optional(
|
|
8152
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8153
|
+
),
|
|
8154
|
+
name: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8155
|
+
}),
|
|
8156
|
+
),
|
|
8157
|
+
Schema.Null,
|
|
8158
|
+
]),
|
|
8159
|
+
),
|
|
8160
|
+
observability: Schema.optional(
|
|
8161
|
+
Schema.Union([
|
|
8162
|
+
Schema.Struct({
|
|
8163
|
+
enabled: Schema.Boolean,
|
|
8164
|
+
headSamplingRate: Schema.optional(
|
|
8165
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
8166
|
+
),
|
|
8167
|
+
logs: Schema.optional(
|
|
8168
|
+
Schema.Union([
|
|
8169
|
+
Schema.Struct({
|
|
8170
|
+
enabled: Schema.Boolean,
|
|
8171
|
+
invocationLogs: Schema.Boolean,
|
|
8172
|
+
destinations: Schema.optional(
|
|
8173
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8174
|
+
),
|
|
8175
|
+
headSamplingRate: Schema.optional(
|
|
8176
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
8177
|
+
),
|
|
8178
|
+
persist: Schema.optional(
|
|
8179
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
8180
|
+
),
|
|
8181
|
+
}).pipe(
|
|
8182
|
+
Schema.encodeKeys({
|
|
8183
|
+
enabled: "enabled",
|
|
8184
|
+
invocationLogs: "invocation_logs",
|
|
8185
|
+
destinations: "destinations",
|
|
8186
|
+
headSamplingRate: "head_sampling_rate",
|
|
8187
|
+
persist: "persist",
|
|
8188
|
+
}),
|
|
8189
|
+
),
|
|
8190
|
+
Schema.Null,
|
|
8191
|
+
]),
|
|
8192
|
+
),
|
|
8193
|
+
}).pipe(
|
|
8194
|
+
Schema.encodeKeys({
|
|
8195
|
+
enabled: "enabled",
|
|
8196
|
+
headSamplingRate: "head_sampling_rate",
|
|
8197
|
+
logs: "logs",
|
|
8198
|
+
}),
|
|
8199
|
+
),
|
|
8200
|
+
Schema.Null,
|
|
8201
|
+
]),
|
|
8202
|
+
),
|
|
8203
|
+
placement: Schema.optional(
|
|
8204
|
+
Schema.Union([
|
|
8205
|
+
Schema.Union([
|
|
8206
|
+
Schema.Struct({
|
|
8207
|
+
mode: Schema.Literal("smart"),
|
|
8208
|
+
lastAnalyzedAt: Schema.optional(
|
|
8209
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8210
|
+
),
|
|
8211
|
+
status: Schema.optional(
|
|
8212
|
+
Schema.Union([
|
|
8213
|
+
Schema.Literals([
|
|
8214
|
+
"SUCCESS",
|
|
8215
|
+
"UNSUPPORTED_APPLICATION",
|
|
8216
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
8217
|
+
]),
|
|
8218
|
+
Schema.Null,
|
|
8219
|
+
]),
|
|
8220
|
+
),
|
|
8221
|
+
}).pipe(
|
|
8222
|
+
Schema.encodeKeys({
|
|
8223
|
+
mode: "mode",
|
|
8224
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
8225
|
+
status: "status",
|
|
8226
|
+
}),
|
|
8227
|
+
),
|
|
8228
|
+
Schema.Struct({
|
|
8229
|
+
region: Schema.String,
|
|
8230
|
+
lastAnalyzedAt: Schema.optional(
|
|
8231
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8232
|
+
),
|
|
8233
|
+
status: Schema.optional(
|
|
8234
|
+
Schema.Union([
|
|
8235
|
+
Schema.Literals([
|
|
8236
|
+
"SUCCESS",
|
|
8237
|
+
"UNSUPPORTED_APPLICATION",
|
|
8238
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
8239
|
+
]),
|
|
8240
|
+
Schema.Null,
|
|
8241
|
+
]),
|
|
8242
|
+
),
|
|
8243
|
+
}).pipe(
|
|
8244
|
+
Schema.encodeKeys({
|
|
8245
|
+
region: "region",
|
|
8246
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
8247
|
+
status: "status",
|
|
8248
|
+
}),
|
|
8249
|
+
),
|
|
8250
|
+
Schema.Struct({
|
|
8251
|
+
hostname: Schema.String,
|
|
8252
|
+
lastAnalyzedAt: Schema.optional(
|
|
8253
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8254
|
+
),
|
|
8255
|
+
status: Schema.optional(
|
|
8256
|
+
Schema.Union([
|
|
8257
|
+
Schema.Literals([
|
|
8258
|
+
"SUCCESS",
|
|
8259
|
+
"UNSUPPORTED_APPLICATION",
|
|
8260
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
8261
|
+
]),
|
|
8262
|
+
Schema.Null,
|
|
8263
|
+
]),
|
|
8264
|
+
),
|
|
8265
|
+
}).pipe(
|
|
8266
|
+
Schema.encodeKeys({
|
|
8267
|
+
hostname: "hostname",
|
|
8268
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
8269
|
+
status: "status",
|
|
8270
|
+
}),
|
|
8271
|
+
),
|
|
8272
|
+
Schema.Struct({
|
|
8273
|
+
host: Schema.String,
|
|
8274
|
+
lastAnalyzedAt: Schema.optional(
|
|
8275
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8276
|
+
),
|
|
8277
|
+
status: Schema.optional(
|
|
8278
|
+
Schema.Union([
|
|
8279
|
+
Schema.Literals([
|
|
8280
|
+
"SUCCESS",
|
|
8281
|
+
"UNSUPPORTED_APPLICATION",
|
|
8282
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
8283
|
+
]),
|
|
8284
|
+
Schema.Null,
|
|
8285
|
+
]),
|
|
8286
|
+
),
|
|
8287
|
+
}).pipe(
|
|
8288
|
+
Schema.encodeKeys({
|
|
8289
|
+
host: "host",
|
|
8290
|
+
lastAnalyzedAt: "last_analyzed_at",
|
|
8291
|
+
status: "status",
|
|
8292
|
+
}),
|
|
8293
|
+
),
|
|
8294
|
+
]),
|
|
8295
|
+
Schema.Null,
|
|
8296
|
+
]),
|
|
8297
|
+
),
|
|
8298
|
+
placementMode: Schema.optional(
|
|
8299
|
+
Schema.Union([Schema.Literal("smart"), Schema.Null]),
|
|
8300
|
+
),
|
|
8301
|
+
placementStatus: Schema.optional(
|
|
8302
|
+
Schema.Union([
|
|
8303
|
+
Schema.Literals([
|
|
8304
|
+
"SUCCESS",
|
|
8305
|
+
"UNSUPPORTED_APPLICATION",
|
|
8306
|
+
"INSUFFICIENT_INVOCATIONS",
|
|
8307
|
+
]),
|
|
8308
|
+
Schema.Null,
|
|
8309
|
+
]),
|
|
8310
|
+
),
|
|
8311
|
+
tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
8312
|
+
tags: Schema.optional(
|
|
8313
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8314
|
+
),
|
|
8315
|
+
tailConsumers: Schema.optional(
|
|
8316
|
+
Schema.Union([
|
|
8317
|
+
Schema.Array(
|
|
8318
|
+
Schema.Struct({
|
|
8319
|
+
service: Schema.String,
|
|
8320
|
+
environment: Schema.optional(
|
|
8321
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8322
|
+
),
|
|
8323
|
+
namespace: Schema.optional(
|
|
8324
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
8325
|
+
),
|
|
8326
|
+
}),
|
|
8327
|
+
),
|
|
8328
|
+
Schema.Null,
|
|
8329
|
+
]),
|
|
8330
|
+
),
|
|
8331
|
+
usageModel: Schema.optional(
|
|
8332
|
+
Schema.Union([
|
|
8333
|
+
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
8334
|
+
Schema.Null,
|
|
8335
|
+
]),
|
|
8336
|
+
),
|
|
8337
|
+
})
|
|
8338
|
+
.pipe(
|
|
8339
|
+
Schema.encodeKeys({
|
|
8340
|
+
id: "id",
|
|
8341
|
+
compatibilityDate: "compatibility_date",
|
|
8342
|
+
compatibilityFlags: "compatibility_flags",
|
|
8343
|
+
createdOn: "created_on",
|
|
8344
|
+
etag: "etag",
|
|
8345
|
+
handlers: "handlers",
|
|
8346
|
+
hasAssets: "has_assets",
|
|
8347
|
+
hasModules: "has_modules",
|
|
8348
|
+
lastDeployedFrom: "last_deployed_from",
|
|
8349
|
+
logpush: "logpush",
|
|
8350
|
+
migrationTag: "migration_tag",
|
|
8351
|
+
modifiedOn: "modified_on",
|
|
8352
|
+
namedHandlers: "named_handlers",
|
|
8353
|
+
observability: "observability",
|
|
8354
|
+
placement: "placement",
|
|
8355
|
+
placementMode: "placement_mode",
|
|
8356
|
+
placementStatus: "placement_status",
|
|
8357
|
+
tag: "tag",
|
|
8358
|
+
tags: "tags",
|
|
8359
|
+
tailConsumers: "tail_consumers",
|
|
8360
|
+
usageModel: "usage_model",
|
|
8361
|
+
}),
|
|
8362
|
+
)
|
|
8363
|
+
.pipe(
|
|
8364
|
+
T.ResponsePath("result"),
|
|
8365
|
+
) as unknown as Schema.Schema<PutScriptContentResponse>;
|
|
8366
|
+
|
|
8367
|
+
export type PutScriptContentError =
|
|
8368
|
+
| DefaultErrors
|
|
8369
|
+
| WorkerNotFound
|
|
8370
|
+
| InvalidWorkerScript;
|
|
8371
|
+
|
|
8372
|
+
export const putScriptContent: API.OperationMethod<
|
|
8373
|
+
PutScriptContentRequest,
|
|
8374
|
+
PutScriptContentResponse,
|
|
8375
|
+
PutScriptContentError,
|
|
8376
|
+
Credentials | HttpClient.HttpClient
|
|
8377
|
+
> = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
8378
|
+
input: PutScriptContentRequest,
|
|
8379
|
+
output: PutScriptContentResponse,
|
|
8380
|
+
errors: [WorkerNotFound, InvalidWorkerScript],
|
|
8381
|
+
}));
|
|
8382
|
+
|
|
8383
|
+
// =============================================================================
|
|
8384
|
+
// ScriptDeployment
|
|
8385
|
+
// =============================================================================
|
|
8386
|
+
|
|
8387
|
+
export interface GetScriptDeploymentRequest {
|
|
8388
|
+
scriptName: string;
|
|
8389
|
+
deploymentId: string;
|
|
8390
|
+
/** Identifier. */
|
|
8391
|
+
accountId: string;
|
|
8392
|
+
}
|
|
8393
|
+
|
|
8394
|
+
export const GetScriptDeploymentRequest =
|
|
8395
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8396
|
+
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
8397
|
+
deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
|
|
8398
|
+
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
8399
|
+
}).pipe(
|
|
8400
|
+
T.Http({
|
|
8401
|
+
method: "GET",
|
|
8402
|
+
path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
|
|
8403
|
+
}),
|
|
8404
|
+
) as unknown as Schema.Schema<GetScriptDeploymentRequest>;
|
|
8405
|
+
|
|
8406
|
+
export interface GetScriptDeploymentResponse {
|
|
8407
|
+
id: string;
|
|
8408
|
+
createdOn: string;
|
|
8409
|
+
source: string;
|
|
8410
|
+
strategy: "percentage";
|
|
8411
|
+
versions: { percentage: number; versionId: string }[];
|
|
8412
|
+
annotations?: {
|
|
8413
|
+
workersMessage?: string | null;
|
|
8414
|
+
workersTriggeredBy?: string | null;
|
|
8415
|
+
} | null;
|
|
8416
|
+
authorEmail?: string | null;
|
|
8417
|
+
}
|
|
8418
|
+
|
|
8419
|
+
export const GetScriptDeploymentResponse =
|
|
8420
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
8421
|
+
id: Schema.String,
|
|
8422
|
+
createdOn: Schema.String,
|
|
8423
|
+
source: Schema.String,
|
|
8424
|
+
strategy: Schema.Literal("percentage"),
|
|
8425
|
+
versions: Schema.Array(
|
|
8426
|
+
Schema.Struct({
|
|
7443
8427
|
percentage: Schema.Number,
|
|
7444
8428
|
versionId: Schema.String,
|
|
7445
8429
|
}).pipe(
|
|
@@ -8108,7 +9092,13 @@ export interface GetScriptScriptAndVersionSettingResponse {
|
|
|
8108
9092
|
/** Tags associated with the Worker. */
|
|
8109
9093
|
tags?: string[] | null;
|
|
8110
9094
|
/** List of Workers that will consume logs from the attached Worker. */
|
|
8111
|
-
tailConsumers?:
|
|
9095
|
+
tailConsumers?:
|
|
9096
|
+
| {
|
|
9097
|
+
service: string;
|
|
9098
|
+
environment?: string | null;
|
|
9099
|
+
namespace?: string | null;
|
|
9100
|
+
}[]
|
|
9101
|
+
| null;
|
|
8112
9102
|
/** Usage model for the Worker invocations. */
|
|
8113
9103
|
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
8114
9104
|
}
|
|
@@ -8464,7 +9454,20 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
8464
9454
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8465
9455
|
),
|
|
8466
9456
|
tailConsumers: Schema.optional(
|
|
8467
|
-
Schema.Union([
|
|
9457
|
+
Schema.Union([
|
|
9458
|
+
Schema.Array(
|
|
9459
|
+
Schema.Struct({
|
|
9460
|
+
service: Schema.String,
|
|
9461
|
+
environment: Schema.optional(
|
|
9462
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
9463
|
+
),
|
|
9464
|
+
namespace: Schema.optional(
|
|
9465
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
9466
|
+
),
|
|
9467
|
+
}),
|
|
9468
|
+
),
|
|
9469
|
+
Schema.Null,
|
|
9470
|
+
]),
|
|
8468
9471
|
),
|
|
8469
9472
|
usageModel: Schema.optional(
|
|
8470
9473
|
Schema.Union([
|
|
@@ -8601,8 +9604,34 @@ export interface PatchScriptScriptAndVersionSettingRequest {
|
|
|
8601
9604
|
limits?: { cpuMs?: number };
|
|
8602
9605
|
logpush?: boolean;
|
|
8603
9606
|
migrations?:
|
|
8604
|
-
|
|
|
8605
|
-
|
|
9607
|
+
| {
|
|
9608
|
+
deletedClasses?: string[];
|
|
9609
|
+
newClasses?: string[];
|
|
9610
|
+
newSqliteClasses?: string[];
|
|
9611
|
+
newTag?: string;
|
|
9612
|
+
oldTag?: string;
|
|
9613
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
9614
|
+
transferredClasses?: {
|
|
9615
|
+
from?: string;
|
|
9616
|
+
fromScript?: string;
|
|
9617
|
+
to?: string;
|
|
9618
|
+
}[];
|
|
9619
|
+
}
|
|
9620
|
+
| {
|
|
9621
|
+
newTag?: string;
|
|
9622
|
+
oldTag?: string;
|
|
9623
|
+
steps?: {
|
|
9624
|
+
deletedClasses?: string[];
|
|
9625
|
+
newClasses?: string[];
|
|
9626
|
+
newSqliteClasses?: string[];
|
|
9627
|
+
renamedClasses?: { from?: string; to?: string }[];
|
|
9628
|
+
transferredClasses?: {
|
|
9629
|
+
from?: string;
|
|
9630
|
+
fromScript?: string;
|
|
9631
|
+
to?: string;
|
|
9632
|
+
}[];
|
|
9633
|
+
}[];
|
|
9634
|
+
};
|
|
8606
9635
|
observability?: {
|
|
8607
9636
|
enabled: boolean;
|
|
8608
9637
|
headSamplingRate?: number | null;
|
|
@@ -8620,7 +9649,9 @@ export interface PatchScriptScriptAndVersionSettingRequest {
|
|
|
8620
9649
|
| { hostname: string }
|
|
8621
9650
|
| { host: string };
|
|
8622
9651
|
tags?: string[] | null;
|
|
8623
|
-
tailConsumers?:
|
|
9652
|
+
tailConsumers?:
|
|
9653
|
+
| { service: string; environment?: string; namespace?: string }[]
|
|
9654
|
+
| null;
|
|
8624
9655
|
usageModel?: "standard" | "bundled" | "unbound";
|
|
8625
9656
|
};
|
|
8626
9657
|
}
|
|
@@ -8905,11 +9936,93 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
8905
9936
|
logpush: Schema.optional(Schema.Boolean),
|
|
8906
9937
|
migrations: Schema.optional(
|
|
8907
9938
|
Schema.Union([
|
|
8908
|
-
Schema.
|
|
9939
|
+
Schema.Struct({
|
|
9940
|
+
deletedClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
9941
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
9942
|
+
newSqliteClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
9943
|
+
newTag: Schema.optional(Schema.String),
|
|
9944
|
+
oldTag: Schema.optional(Schema.String),
|
|
9945
|
+
renamedClasses: Schema.optional(
|
|
9946
|
+
Schema.Array(
|
|
9947
|
+
Schema.Struct({
|
|
9948
|
+
from: Schema.optional(Schema.String),
|
|
9949
|
+
to: Schema.optional(Schema.String),
|
|
9950
|
+
}),
|
|
9951
|
+
),
|
|
9952
|
+
),
|
|
9953
|
+
transferredClasses: Schema.optional(
|
|
9954
|
+
Schema.Array(
|
|
9955
|
+
Schema.Struct({
|
|
9956
|
+
from: Schema.optional(Schema.String),
|
|
9957
|
+
fromScript: Schema.optional(Schema.String),
|
|
9958
|
+
to: Schema.optional(Schema.String),
|
|
9959
|
+
}).pipe(
|
|
9960
|
+
Schema.encodeKeys({
|
|
9961
|
+
from: "from",
|
|
9962
|
+
fromScript: "from_script",
|
|
9963
|
+
to: "to",
|
|
9964
|
+
}),
|
|
9965
|
+
),
|
|
9966
|
+
),
|
|
9967
|
+
),
|
|
9968
|
+
}).pipe(
|
|
9969
|
+
Schema.encodeKeys({
|
|
9970
|
+
deletedClasses: "deleted_classes",
|
|
9971
|
+
newClasses: "new_classes",
|
|
9972
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
9973
|
+
newTag: "new_tag",
|
|
9974
|
+
oldTag: "old_tag",
|
|
9975
|
+
renamedClasses: "renamed_classes",
|
|
9976
|
+
transferredClasses: "transferred_classes",
|
|
9977
|
+
}),
|
|
9978
|
+
),
|
|
8909
9979
|
Schema.Struct({
|
|
8910
9980
|
newTag: Schema.optional(Schema.String),
|
|
8911
9981
|
oldTag: Schema.optional(Schema.String),
|
|
8912
|
-
steps: Schema.optional(
|
|
9982
|
+
steps: Schema.optional(
|
|
9983
|
+
Schema.Array(
|
|
9984
|
+
Schema.Struct({
|
|
9985
|
+
deletedClasses: Schema.optional(
|
|
9986
|
+
Schema.Array(Schema.String),
|
|
9987
|
+
),
|
|
9988
|
+
newClasses: Schema.optional(Schema.Array(Schema.String)),
|
|
9989
|
+
newSqliteClasses: Schema.optional(
|
|
9990
|
+
Schema.Array(Schema.String),
|
|
9991
|
+
),
|
|
9992
|
+
renamedClasses: Schema.optional(
|
|
9993
|
+
Schema.Array(
|
|
9994
|
+
Schema.Struct({
|
|
9995
|
+
from: Schema.optional(Schema.String),
|
|
9996
|
+
to: Schema.optional(Schema.String),
|
|
9997
|
+
}),
|
|
9998
|
+
),
|
|
9999
|
+
),
|
|
10000
|
+
transferredClasses: Schema.optional(
|
|
10001
|
+
Schema.Array(
|
|
10002
|
+
Schema.Struct({
|
|
10003
|
+
from: Schema.optional(Schema.String),
|
|
10004
|
+
fromScript: Schema.optional(Schema.String),
|
|
10005
|
+
to: Schema.optional(Schema.String),
|
|
10006
|
+
}).pipe(
|
|
10007
|
+
Schema.encodeKeys({
|
|
10008
|
+
from: "from",
|
|
10009
|
+
fromScript: "from_script",
|
|
10010
|
+
to: "to",
|
|
10011
|
+
}),
|
|
10012
|
+
),
|
|
10013
|
+
),
|
|
10014
|
+
),
|
|
10015
|
+
}).pipe(
|
|
10016
|
+
Schema.encodeKeys({
|
|
10017
|
+
deletedClasses: "deleted_classes",
|
|
10018
|
+
newClasses: "new_classes",
|
|
10019
|
+
newSqliteClasses: "new_sqlite_classes",
|
|
10020
|
+
renamedClasses: "renamed_classes",
|
|
10021
|
+
transferredClasses: "transferred_classes",
|
|
10022
|
+
}),
|
|
10023
|
+
),
|
|
10024
|
+
),
|
|
10025
|
+
),
|
|
8913
10026
|
}).pipe(
|
|
8914
10027
|
Schema.encodeKeys({
|
|
8915
10028
|
newTag: "new_tag",
|
|
@@ -8975,7 +10088,16 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
8975
10088
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
8976
10089
|
),
|
|
8977
10090
|
tailConsumers: Schema.optional(
|
|
8978
|
-
Schema.Union([
|
|
10091
|
+
Schema.Union([
|
|
10092
|
+
Schema.Array(
|
|
10093
|
+
Schema.Struct({
|
|
10094
|
+
service: Schema.String,
|
|
10095
|
+
environment: Schema.optional(Schema.String),
|
|
10096
|
+
namespace: Schema.optional(Schema.String),
|
|
10097
|
+
}),
|
|
10098
|
+
),
|
|
10099
|
+
Schema.Null,
|
|
10100
|
+
]),
|
|
8979
10101
|
),
|
|
8980
10102
|
usageModel: Schema.optional(
|
|
8981
10103
|
Schema.Literals(["standard", "bundled", "unbound"]),
|
|
@@ -9128,7 +10250,13 @@ export interface PatchScriptScriptAndVersionSettingResponse {
|
|
|
9128
10250
|
/** Tags associated with the Worker. */
|
|
9129
10251
|
tags?: string[] | null;
|
|
9130
10252
|
/** List of Workers that will consume logs from the attached Worker. */
|
|
9131
|
-
tailConsumers?:
|
|
10253
|
+
tailConsumers?:
|
|
10254
|
+
| {
|
|
10255
|
+
service: string;
|
|
10256
|
+
environment?: string | null;
|
|
10257
|
+
namespace?: string | null;
|
|
10258
|
+
}[]
|
|
10259
|
+
| null;
|
|
9132
10260
|
/** Usage model for the Worker invocations. */
|
|
9133
10261
|
usageModel?: "standard" | "bundled" | "unbound" | null;
|
|
9134
10262
|
}
|
|
@@ -9484,7 +10612,20 @@ export const PatchScriptScriptAndVersionSettingResponse =
|
|
|
9484
10612
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
9485
10613
|
),
|
|
9486
10614
|
tailConsumers: Schema.optional(
|
|
9487
|
-
Schema.Union([
|
|
10615
|
+
Schema.Union([
|
|
10616
|
+
Schema.Array(
|
|
10617
|
+
Schema.Struct({
|
|
10618
|
+
service: Schema.String,
|
|
10619
|
+
environment: Schema.optional(
|
|
10620
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
10621
|
+
),
|
|
10622
|
+
namespace: Schema.optional(
|
|
10623
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
10624
|
+
),
|
|
10625
|
+
}),
|
|
10626
|
+
),
|
|
10627
|
+
Schema.Null,
|
|
10628
|
+
]),
|
|
9488
10629
|
),
|
|
9489
10630
|
usageModel: Schema.optional(
|
|
9490
10631
|
Schema.Union([
|
|
@@ -9891,10 +11032,110 @@ export const GetScriptSettingRequest =
|
|
|
9891
11032
|
}),
|
|
9892
11033
|
) as unknown as Schema.Schema<GetScriptSettingRequest>;
|
|
9893
11034
|
|
|
9894
|
-
export
|
|
11035
|
+
export interface GetScriptSettingResponse {
|
|
11036
|
+
/** Whether Logpush is turned on for the Worker. */
|
|
11037
|
+
logpush?: boolean | null;
|
|
11038
|
+
/** Observability settings for the Worker. */
|
|
11039
|
+
observability?: {
|
|
11040
|
+
enabled: boolean;
|
|
11041
|
+
headSamplingRate?: number | null;
|
|
11042
|
+
logs?: {
|
|
11043
|
+
enabled: boolean;
|
|
11044
|
+
invocationLogs: boolean;
|
|
11045
|
+
destinations?: string[] | null;
|
|
11046
|
+
headSamplingRate?: number | null;
|
|
11047
|
+
persist?: boolean | null;
|
|
11048
|
+
} | null;
|
|
11049
|
+
} | null;
|
|
11050
|
+
/** Tags associated with the Worker. */
|
|
11051
|
+
tags?: string[] | null;
|
|
11052
|
+
/** List of Workers that will consume logs from the attached Worker. */
|
|
11053
|
+
tailConsumers?:
|
|
11054
|
+
| {
|
|
11055
|
+
service: string;
|
|
11056
|
+
environment?: string | null;
|
|
11057
|
+
namespace?: string | null;
|
|
11058
|
+
}[]
|
|
11059
|
+
| null;
|
|
11060
|
+
}
|
|
9895
11061
|
|
|
9896
11062
|
export const GetScriptSettingResponse =
|
|
9897
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
11063
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11064
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
11065
|
+
observability: Schema.optional(
|
|
11066
|
+
Schema.Union([
|
|
11067
|
+
Schema.Struct({
|
|
11068
|
+
enabled: Schema.Boolean,
|
|
11069
|
+
headSamplingRate: Schema.optional(
|
|
11070
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
11071
|
+
),
|
|
11072
|
+
logs: Schema.optional(
|
|
11073
|
+
Schema.Union([
|
|
11074
|
+
Schema.Struct({
|
|
11075
|
+
enabled: Schema.Boolean,
|
|
11076
|
+
invocationLogs: Schema.Boolean,
|
|
11077
|
+
destinations: Schema.optional(
|
|
11078
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
11079
|
+
),
|
|
11080
|
+
headSamplingRate: Schema.optional(
|
|
11081
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
11082
|
+
),
|
|
11083
|
+
persist: Schema.optional(
|
|
11084
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
11085
|
+
),
|
|
11086
|
+
}).pipe(
|
|
11087
|
+
Schema.encodeKeys({
|
|
11088
|
+
enabled: "enabled",
|
|
11089
|
+
invocationLogs: "invocation_logs",
|
|
11090
|
+
destinations: "destinations",
|
|
11091
|
+
headSamplingRate: "head_sampling_rate",
|
|
11092
|
+
persist: "persist",
|
|
11093
|
+
}),
|
|
11094
|
+
),
|
|
11095
|
+
Schema.Null,
|
|
11096
|
+
]),
|
|
11097
|
+
),
|
|
11098
|
+
}).pipe(
|
|
11099
|
+
Schema.encodeKeys({
|
|
11100
|
+
enabled: "enabled",
|
|
11101
|
+
headSamplingRate: "head_sampling_rate",
|
|
11102
|
+
logs: "logs",
|
|
11103
|
+
}),
|
|
11104
|
+
),
|
|
11105
|
+
Schema.Null,
|
|
11106
|
+
]),
|
|
11107
|
+
),
|
|
11108
|
+
tags: Schema.optional(
|
|
11109
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
11110
|
+
),
|
|
11111
|
+
tailConsumers: Schema.optional(
|
|
11112
|
+
Schema.Union([
|
|
11113
|
+
Schema.Array(
|
|
11114
|
+
Schema.Struct({
|
|
11115
|
+
service: Schema.String,
|
|
11116
|
+
environment: Schema.optional(
|
|
11117
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11118
|
+
),
|
|
11119
|
+
namespace: Schema.optional(
|
|
11120
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11121
|
+
),
|
|
11122
|
+
}),
|
|
11123
|
+
),
|
|
11124
|
+
Schema.Null,
|
|
11125
|
+
]),
|
|
11126
|
+
),
|
|
11127
|
+
})
|
|
11128
|
+
.pipe(
|
|
11129
|
+
Schema.encodeKeys({
|
|
11130
|
+
logpush: "logpush",
|
|
11131
|
+
observability: "observability",
|
|
11132
|
+
tags: "tags",
|
|
11133
|
+
tailConsumers: "tail_consumers",
|
|
11134
|
+
}),
|
|
11135
|
+
)
|
|
11136
|
+
.pipe(
|
|
11137
|
+
T.ResponsePath("result"),
|
|
11138
|
+
) as unknown as Schema.Schema<GetScriptSettingResponse>;
|
|
9898
11139
|
|
|
9899
11140
|
export type GetScriptSettingError = DefaultErrors | WorkerNotFound;
|
|
9900
11141
|
|
|
@@ -9930,7 +11171,9 @@ export interface PatchScriptSettingRequest {
|
|
|
9930
11171
|
/** Body param: Tags associated with the Worker. */
|
|
9931
11172
|
tags?: string[] | null;
|
|
9932
11173
|
/** Body param: List of Workers that will consume logs from the attached Worker. */
|
|
9933
|
-
tailConsumers?:
|
|
11174
|
+
tailConsumers?:
|
|
11175
|
+
| { service: string; environment?: string; namespace?: string }[]
|
|
11176
|
+
| null;
|
|
9934
11177
|
}
|
|
9935
11178
|
|
|
9936
11179
|
export const PatchScriptSettingRequest =
|
|
@@ -9981,7 +11224,16 @@ export const PatchScriptSettingRequest =
|
|
|
9981
11224
|
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
9982
11225
|
),
|
|
9983
11226
|
tailConsumers: Schema.optional(
|
|
9984
|
-
Schema.Union([
|
|
11227
|
+
Schema.Union([
|
|
11228
|
+
Schema.Array(
|
|
11229
|
+
Schema.Struct({
|
|
11230
|
+
service: Schema.String,
|
|
11231
|
+
environment: Schema.optional(Schema.String),
|
|
11232
|
+
namespace: Schema.optional(Schema.String),
|
|
11233
|
+
}),
|
|
11234
|
+
),
|
|
11235
|
+
Schema.Null,
|
|
11236
|
+
]),
|
|
9985
11237
|
),
|
|
9986
11238
|
}).pipe(
|
|
9987
11239
|
Schema.encodeKeys({
|
|
@@ -9996,10 +11248,110 @@ export const PatchScriptSettingRequest =
|
|
|
9996
11248
|
}),
|
|
9997
11249
|
) as unknown as Schema.Schema<PatchScriptSettingRequest>;
|
|
9998
11250
|
|
|
9999
|
-
export
|
|
11251
|
+
export interface PatchScriptSettingResponse {
|
|
11252
|
+
/** Whether Logpush is turned on for the Worker. */
|
|
11253
|
+
logpush?: boolean | null;
|
|
11254
|
+
/** Observability settings for the Worker. */
|
|
11255
|
+
observability?: {
|
|
11256
|
+
enabled: boolean;
|
|
11257
|
+
headSamplingRate?: number | null;
|
|
11258
|
+
logs?: {
|
|
11259
|
+
enabled: boolean;
|
|
11260
|
+
invocationLogs: boolean;
|
|
11261
|
+
destinations?: string[] | null;
|
|
11262
|
+
headSamplingRate?: number | null;
|
|
11263
|
+
persist?: boolean | null;
|
|
11264
|
+
} | null;
|
|
11265
|
+
} | null;
|
|
11266
|
+
/** Tags associated with the Worker. */
|
|
11267
|
+
tags?: string[] | null;
|
|
11268
|
+
/** List of Workers that will consume logs from the attached Worker. */
|
|
11269
|
+
tailConsumers?:
|
|
11270
|
+
| {
|
|
11271
|
+
service: string;
|
|
11272
|
+
environment?: string | null;
|
|
11273
|
+
namespace?: string | null;
|
|
11274
|
+
}[]
|
|
11275
|
+
| null;
|
|
11276
|
+
}
|
|
10000
11277
|
|
|
10001
11278
|
export const PatchScriptSettingResponse =
|
|
10002
|
-
/*@__PURE__*/ /*#__PURE__*/ Schema.
|
|
11279
|
+
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
11280
|
+
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
11281
|
+
observability: Schema.optional(
|
|
11282
|
+
Schema.Union([
|
|
11283
|
+
Schema.Struct({
|
|
11284
|
+
enabled: Schema.Boolean,
|
|
11285
|
+
headSamplingRate: Schema.optional(
|
|
11286
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
11287
|
+
),
|
|
11288
|
+
logs: Schema.optional(
|
|
11289
|
+
Schema.Union([
|
|
11290
|
+
Schema.Struct({
|
|
11291
|
+
enabled: Schema.Boolean,
|
|
11292
|
+
invocationLogs: Schema.Boolean,
|
|
11293
|
+
destinations: Schema.optional(
|
|
11294
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
11295
|
+
),
|
|
11296
|
+
headSamplingRate: Schema.optional(
|
|
11297
|
+
Schema.Union([Schema.Number, Schema.Null]),
|
|
11298
|
+
),
|
|
11299
|
+
persist: Schema.optional(
|
|
11300
|
+
Schema.Union([Schema.Boolean, Schema.Null]),
|
|
11301
|
+
),
|
|
11302
|
+
}).pipe(
|
|
11303
|
+
Schema.encodeKeys({
|
|
11304
|
+
enabled: "enabled",
|
|
11305
|
+
invocationLogs: "invocation_logs",
|
|
11306
|
+
destinations: "destinations",
|
|
11307
|
+
headSamplingRate: "head_sampling_rate",
|
|
11308
|
+
persist: "persist",
|
|
11309
|
+
}),
|
|
11310
|
+
),
|
|
11311
|
+
Schema.Null,
|
|
11312
|
+
]),
|
|
11313
|
+
),
|
|
11314
|
+
}).pipe(
|
|
11315
|
+
Schema.encodeKeys({
|
|
11316
|
+
enabled: "enabled",
|
|
11317
|
+
headSamplingRate: "head_sampling_rate",
|
|
11318
|
+
logs: "logs",
|
|
11319
|
+
}),
|
|
11320
|
+
),
|
|
11321
|
+
Schema.Null,
|
|
11322
|
+
]),
|
|
11323
|
+
),
|
|
11324
|
+
tags: Schema.optional(
|
|
11325
|
+
Schema.Union([Schema.Array(Schema.String), Schema.Null]),
|
|
11326
|
+
),
|
|
11327
|
+
tailConsumers: Schema.optional(
|
|
11328
|
+
Schema.Union([
|
|
11329
|
+
Schema.Array(
|
|
11330
|
+
Schema.Struct({
|
|
11331
|
+
service: Schema.String,
|
|
11332
|
+
environment: Schema.optional(
|
|
11333
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11334
|
+
),
|
|
11335
|
+
namespace: Schema.optional(
|
|
11336
|
+
Schema.Union([Schema.String, Schema.Null]),
|
|
11337
|
+
),
|
|
11338
|
+
}),
|
|
11339
|
+
),
|
|
11340
|
+
Schema.Null,
|
|
11341
|
+
]),
|
|
11342
|
+
),
|
|
11343
|
+
})
|
|
11344
|
+
.pipe(
|
|
11345
|
+
Schema.encodeKeys({
|
|
11346
|
+
logpush: "logpush",
|
|
11347
|
+
observability: "observability",
|
|
11348
|
+
tags: "tags",
|
|
11349
|
+
tailConsumers: "tail_consumers",
|
|
11350
|
+
}),
|
|
11351
|
+
)
|
|
11352
|
+
.pipe(
|
|
11353
|
+
T.ResponsePath("result"),
|
|
11354
|
+
) as unknown as Schema.Schema<PatchScriptSettingResponse>;
|
|
10003
11355
|
|
|
10004
11356
|
export type PatchScriptSettingError = DefaultErrors | WorkerNotFound;
|
|
10005
11357
|
|