@distilled.cloud/cloudflare 0.30.1 → 0.30.2

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.
@@ -332,13 +332,12 @@ interface ListBetaWorkersResponseResult {
332
332
  /** Name of the referencing Worker. */
333
333
  name: string;
334
334
  }
335
- const ListBetaWorkersResponseResult =
336
- /*@__PURE__*/ Schema.suspend(() =>
337
- Schema.Struct({
338
- id: Schema.String,
339
- name: Schema.String,
340
- }),
341
- ) as unknown as Schema.Codec<ListBetaWorkersResponseResult>;
335
+ const ListBetaWorkersResponseResult = /*@__PURE__*/ Schema.suspend(() =>
336
+ Schema.Struct({
337
+ id: Schema.String,
338
+ name: Schema.String,
339
+ }),
340
+ ) as unknown as Schema.Codec<ListBetaWorkersResponseResult>;
342
341
 
343
342
  interface ListBetaWorkersResponseResultInfo {
344
343
  count?: number | null;
@@ -346,22 +345,21 @@ interface ListBetaWorkersResponseResultInfo {
346
345
  perPage?: number | null;
347
346
  totalCount?: number | null;
348
347
  }
349
- const ListBetaWorkersResponseResultInfo =
350
- /*@__PURE__*/ Schema.suspend(() =>
351
- Schema.Struct({
352
- count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
353
- page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
354
- perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
355
- totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
356
- }).pipe(
357
- Schema.encodeKeys({
358
- count: "count",
359
- page: "page",
360
- perPage: "per_page",
361
- totalCount: "total_count",
362
- }),
363
- ),
364
- ) as unknown as Schema.Codec<ListBetaWorkersResponseResultInfo>;
348
+ const ListBetaWorkersResponseResultInfo = /*@__PURE__*/ Schema.suspend(() =>
349
+ Schema.Struct({
350
+ count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
351
+ page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
352
+ perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
353
+ totalCount: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
354
+ }).pipe(
355
+ Schema.encodeKeys({
356
+ count: "count",
357
+ page: "page",
358
+ perPage: "per_page",
359
+ totalCount: "total_count",
360
+ }),
361
+ ),
362
+ ) as unknown as Schema.Codec<ListBetaWorkersResponseResultInfo>;
365
363
 
366
364
  interface Logs {
367
365
  /** A list of destinations where logs will be exported to. */
@@ -702,14 +700,13 @@ interface WorkersBindingKindAISearchNamespace {
702
700
  /** The kind of resource that the binding provides. */
703
701
  type: "ai_search_namespace";
704
702
  }
705
- const WorkersBindingKindAISearchNamespace =
706
- /*@__PURE__*/ Schema.suspend(() =>
707
- Schema.Struct({
708
- name: Schema.String,
709
- namespace: Schema.String,
710
- type: Schema.Literal("ai_search_namespace"),
711
- }),
712
- ) as unknown as Schema.Codec<WorkersBindingKindAISearchNamespace>;
703
+ const WorkersBindingKindAISearchNamespace = /*@__PURE__*/ Schema.suspend(() =>
704
+ Schema.Struct({
705
+ name: Schema.String,
706
+ namespace: Schema.String,
707
+ type: Schema.Literal("ai_search_namespace"),
708
+ }),
709
+ ) as unknown as Schema.Codec<WorkersBindingKindAISearchNamespace>;
713
710
 
714
711
  interface WorkersBindingKindAnalyticsEngine {
715
712
  /** The name of the dataset to bind to. */
@@ -719,14 +716,13 @@ interface WorkersBindingKindAnalyticsEngine {
719
716
  /** The kind of resource that the binding provides. */
720
717
  type: "analytics_engine";
721
718
  }
722
- const WorkersBindingKindAnalyticsEngine =
723
- /*@__PURE__*/ Schema.suspend(() =>
724
- Schema.Struct({
725
- dataset: Schema.String,
726
- name: Schema.String,
727
- type: Schema.Literal("analytics_engine"),
728
- }),
729
- ) as unknown as Schema.Codec<WorkersBindingKindAnalyticsEngine>;
719
+ const WorkersBindingKindAnalyticsEngine = /*@__PURE__*/ Schema.suspend(() =>
720
+ Schema.Struct({
721
+ dataset: Schema.String,
722
+ name: Schema.String,
723
+ type: Schema.Literal("analytics_engine"),
724
+ }),
725
+ ) as unknown as Schema.Codec<WorkersBindingKindAnalyticsEngine>;
730
726
 
731
727
  interface WorkersBindingKindAssets {
732
728
  /** A JavaScript variable name for the binding. */
@@ -848,15 +844,14 @@ interface WorkersBindingKindDispatchNamespace {
848
844
  } | null;
849
845
  } | null;
850
846
  }
851
- const WorkersBindingKindDispatchNamespace =
852
- /*@__PURE__*/ Schema.suspend(() =>
853
- Schema.Struct({
854
- name: Schema.String,
855
- namespace: Schema.String,
856
- type: Schema.Literal("dispatch_namespace"),
857
- outbound: Schema.optional(Schema.Union([Outbound, Schema.Null])),
858
- }),
859
- ) as unknown as Schema.Codec<WorkersBindingKindDispatchNamespace>;
847
+ const WorkersBindingKindDispatchNamespace = /*@__PURE__*/ Schema.suspend(() =>
848
+ Schema.Struct({
849
+ name: Schema.String,
850
+ namespace: Schema.String,
851
+ type: Schema.Literal("dispatch_namespace"),
852
+ outbound: Schema.optional(Schema.Union([Outbound, Schema.Null])),
853
+ }),
854
+ ) as unknown as Schema.Codec<WorkersBindingKindDispatchNamespace>;
860
855
 
861
856
  interface WorkersBindingKindDurableObjectNamespace {
862
857
  /** A JavaScript variable name for the binding. */
@@ -874,8 +869,8 @@ interface WorkersBindingKindDurableObjectNamespace {
874
869
  /** The script where the Durable Object is defined, if it is external to this Worker. */
875
870
  scriptName?: string | null;
876
871
  }
877
- const WorkersBindingKindDurableObjectNamespace =
878
- /*@__PURE__*/ Schema.suspend(() =>
872
+ const WorkersBindingKindDurableObjectNamespace = /*@__PURE__*/ Schema.suspend(
873
+ () =>
879
874
  Schema.Struct({
880
875
  name: Schema.String,
881
876
  type: Schema.Literal("durable_object_namespace"),
@@ -897,7 +892,7 @@ const WorkersBindingKindDurableObjectNamespace =
897
892
  scriptName: "script_name",
898
893
  }),
899
894
  ),
900
- ) as unknown as Schema.Codec<WorkersBindingKindDurableObjectNamespace>;
895
+ ) as unknown as Schema.Codec<WorkersBindingKindDurableObjectNamespace>;
901
896
 
902
897
  interface WorkersBindingKindHyperdrive {
903
898
  /** Identifier of the Hyperdrive connection to bind to. */
@@ -978,20 +973,19 @@ interface WorkersBindingKindKVNamespace {
978
973
  /** The kind of resource that the binding provides. */
979
974
  type: "kv_namespace";
980
975
  }
981
- const WorkersBindingKindKVNamespace =
982
- /*@__PURE__*/ Schema.suspend(() =>
983
- Schema.Struct({
984
- name: Schema.String,
985
- namespaceId: Schema.String,
986
- type: Schema.Literal("kv_namespace"),
987
- }).pipe(
988
- Schema.encodeKeys({
989
- name: "name",
990
- namespaceId: "namespace_id",
991
- type: "type",
992
- }),
993
- ),
994
- ) as unknown as Schema.Codec<WorkersBindingKindKVNamespace>;
976
+ const WorkersBindingKindKVNamespace = /*@__PURE__*/ Schema.suspend(() =>
977
+ Schema.Struct({
978
+ name: Schema.String,
979
+ namespaceId: Schema.String,
980
+ type: Schema.Literal("kv_namespace"),
981
+ }).pipe(
982
+ Schema.encodeKeys({
983
+ name: "name",
984
+ namespaceId: "namespace_id",
985
+ type: "type",
986
+ }),
987
+ ),
988
+ ) as unknown as Schema.Codec<WorkersBindingKindKVNamespace>;
995
989
 
996
990
  interface WorkersBindingKindMedia {
997
991
  /** A JavaScript variable name for the binding. */
@@ -1014,20 +1008,19 @@ interface WorkersBindingKindMTLSCertificate {
1014
1008
  /** The kind of resource that the binding provides. */
1015
1009
  type: "mtls_certificate";
1016
1010
  }
1017
- const WorkersBindingKindMTLSCertificate =
1018
- /*@__PURE__*/ Schema.suspend(() =>
1019
- Schema.Struct({
1020
- certificateId: Schema.String,
1021
- name: Schema.String,
1022
- type: Schema.Literal("mtls_certificate"),
1023
- }).pipe(
1024
- Schema.encodeKeys({
1025
- certificateId: "certificate_id",
1026
- name: "name",
1027
- type: "type",
1028
- }),
1029
- ),
1030
- ) as unknown as Schema.Codec<WorkersBindingKindMTLSCertificate>;
1011
+ const WorkersBindingKindMTLSCertificate = /*@__PURE__*/ Schema.suspend(() =>
1012
+ Schema.Struct({
1013
+ certificateId: Schema.String,
1014
+ name: Schema.String,
1015
+ type: Schema.Literal("mtls_certificate"),
1016
+ }).pipe(
1017
+ Schema.encodeKeys({
1018
+ certificateId: "certificate_id",
1019
+ name: "name",
1020
+ type: "type",
1021
+ }),
1022
+ ),
1023
+ ) as unknown as Schema.Codec<WorkersBindingKindMTLSCertificate>;
1031
1024
 
1032
1025
  interface WorkersBindingKindPlainText {
1033
1026
  /** A JavaScript variable name for the binding. */
@@ -1264,11 +1257,7 @@ const WorkersBindingKindVectorize = /*@__PURE__*/ Schema.suspend(() =>
1264
1257
  name: Schema.String,
1265
1258
  type: Schema.Literal("vectorize"),
1266
1259
  }).pipe(
1267
- Schema.encodeKeys({
1268
- indexName: "index_name",
1269
- name: "name",
1270
- type: "type",
1271
- }),
1260
+ Schema.encodeKeys({ indexName: "index_name", name: "name", type: "type" }),
1272
1261
  ),
1273
1262
  ) as unknown as Schema.Codec<WorkersBindingKindVectorize>;
1274
1263
 
@@ -1278,13 +1267,12 @@ interface WorkersBindingKindVersionMetadata {
1278
1267
  /** The kind of resource that the binding provides. */
1279
1268
  type: "version_metadata";
1280
1269
  }
1281
- const WorkersBindingKindVersionMetadata =
1282
- /*@__PURE__*/ Schema.suspend(() =>
1283
- Schema.Struct({
1284
- name: Schema.String,
1285
- type: Schema.Literal("version_metadata"),
1286
- }),
1287
- ) as unknown as Schema.Codec<WorkersBindingKindVersionMetadata>;
1270
+ const WorkersBindingKindVersionMetadata = /*@__PURE__*/ Schema.suspend(() =>
1271
+ Schema.Struct({
1272
+ name: Schema.String,
1273
+ type: Schema.Literal("version_metadata"),
1274
+ }),
1275
+ ) as unknown as Schema.Codec<WorkersBindingKindVersionMetadata>;
1288
1276
 
1289
1277
  interface WorkersBindingKindSecretsStoreSecret {
1290
1278
  /** A JavaScript variable name for the binding. */
@@ -1296,22 +1284,21 @@ interface WorkersBindingKindSecretsStoreSecret {
1296
1284
  /** The kind of resource that the binding provides. */
1297
1285
  type: "secrets_store_secret";
1298
1286
  }
1299
- const WorkersBindingKindSecretsStoreSecret =
1300
- /*@__PURE__*/ Schema.suspend(() =>
1301
- Schema.Struct({
1302
- name: Schema.String,
1303
- secretName: Schema.String,
1304
- storeId: Schema.String,
1305
- type: Schema.Literal("secrets_store_secret"),
1306
- }).pipe(
1307
- Schema.encodeKeys({
1308
- name: "name",
1309
- secretName: "secret_name",
1310
- storeId: "store_id",
1311
- type: "type",
1312
- }),
1313
- ),
1314
- ) as unknown as Schema.Codec<WorkersBindingKindSecretsStoreSecret>;
1287
+ const WorkersBindingKindSecretsStoreSecret = /*@__PURE__*/ Schema.suspend(() =>
1288
+ Schema.Struct({
1289
+ name: Schema.String,
1290
+ secretName: Schema.String,
1291
+ storeId: Schema.String,
1292
+ type: Schema.Literal("secrets_store_secret"),
1293
+ }).pipe(
1294
+ Schema.encodeKeys({
1295
+ name: "name",
1296
+ secretName: "secret_name",
1297
+ storeId: "store_id",
1298
+ type: "type",
1299
+ }),
1300
+ ),
1301
+ ) as unknown as Schema.Codec<WorkersBindingKindSecretsStoreSecret>;
1315
1302
 
1316
1303
  interface WorkersBindingKindFlagship {
1317
1304
  /** ID of the Flagship app to bind to for feature flag evaluation. */
@@ -1438,11 +1425,7 @@ const WorkersBindingKindVPCService = /*@__PURE__*/ Schema.suspend(() =>
1438
1425
  serviceId: Schema.String,
1439
1426
  type: Schema.Literal("vpc_service"),
1440
1427
  }).pipe(
1441
- Schema.encodeKeys({
1442
- name: "name",
1443
- serviceId: "service_id",
1444
- type: "type",
1445
- }),
1428
+ Schema.encodeKeys({ name: "name", serviceId: "service_id", type: "type" }),
1446
1429
  ),
1447
1430
  ) as unknown as Schema.Codec<WorkersBindingKindVPCService>;
1448
1431
 
@@ -1476,27 +1459,25 @@ interface GetBetaWorkerVersionResponseBinding35 {
1476
1459
  name: string;
1477
1460
  type: "worker_loader";
1478
1461
  }
1479
- const GetBetaWorkerVersionResponseBinding35 =
1480
- /*@__PURE__*/ Schema.suspend(() =>
1481
- Schema.Struct({
1482
- name: Schema.String,
1483
- type: Schema.Literal("worker_loader"),
1484
- }),
1485
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponseBinding35>;
1462
+ const GetBetaWorkerVersionResponseBinding35 = /*@__PURE__*/ Schema.suspend(() =>
1463
+ Schema.Struct({
1464
+ name: Schema.String,
1465
+ type: Schema.Literal("worker_loader"),
1466
+ }),
1467
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponseBinding35>;
1486
1468
 
1487
1469
  interface GetBetaWorkerVersionResponseBinding36 {
1488
1470
  name: string;
1489
1471
  type: "artifacts";
1490
1472
  namespace: string;
1491
1473
  }
1492
- const GetBetaWorkerVersionResponseBinding36 =
1493
- /*@__PURE__*/ Schema.suspend(() =>
1494
- Schema.Struct({
1495
- name: Schema.String,
1496
- type: Schema.Literal("artifacts"),
1497
- namespace: Schema.String,
1498
- }),
1499
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponseBinding36>;
1474
+ const GetBetaWorkerVersionResponseBinding36 = /*@__PURE__*/ Schema.suspend(() =>
1475
+ Schema.Struct({
1476
+ name: Schema.String,
1477
+ type: Schema.Literal("artifacts"),
1478
+ namespace: Schema.String,
1479
+ }),
1480
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponseBinding36>;
1500
1481
 
1501
1482
  interface Container {
1502
1483
  /** Select which Durable Object class should get this container attached. */
@@ -1611,22 +1592,17 @@ interface WorkersMultipleStepMigrations {
1611
1592
  }[]
1612
1593
  | null;
1613
1594
  }
1614
- const WorkersMultipleStepMigrations =
1615
- /*@__PURE__*/ Schema.suspend(() =>
1616
- Schema.Struct({
1617
- newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1618
- oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1619
- steps: Schema.optional(
1620
- Schema.Union([Schema.Array(MigrationStepParam), Schema.Null]),
1621
- ),
1622
- }).pipe(
1623
- Schema.encodeKeys({
1624
- newTag: "new_tag",
1625
- oldTag: "old_tag",
1626
- steps: "steps",
1627
- }),
1595
+ const WorkersMultipleStepMigrations = /*@__PURE__*/ Schema.suspend(() =>
1596
+ Schema.Struct({
1597
+ newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1598
+ oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1599
+ steps: Schema.optional(
1600
+ Schema.Union([Schema.Array(MigrationStepParam), Schema.Null]),
1628
1601
  ),
1629
- ) as unknown as Schema.Codec<WorkersMultipleStepMigrations>;
1602
+ }).pipe(
1603
+ Schema.encodeKeys({ newTag: "new_tag", oldTag: "old_tag", steps: "steps" }),
1604
+ ),
1605
+ ) as unknown as Schema.Codec<WorkersMultipleStepMigrations>;
1630
1606
 
1631
1607
  interface Module {
1632
1608
  /** The base64-encoded module content. */
@@ -1696,13 +1672,13 @@ interface GetBetaWorkerVersionResponsePlacement4 {
1696
1672
  /** Cloud region for targeted placement in format 'provider:region'. */
1697
1673
  region: string;
1698
1674
  }
1699
- const GetBetaWorkerVersionResponsePlacement4 =
1700
- /*@__PURE__*/ Schema.suspend(() =>
1675
+ const GetBetaWorkerVersionResponsePlacement4 = /*@__PURE__*/ Schema.suspend(
1676
+ () =>
1701
1677
  Schema.Struct({
1702
1678
  mode: Schema.Literal("targeted"),
1703
1679
  region: Schema.String,
1704
1680
  }),
1705
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement4>;
1681
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement4>;
1706
1682
 
1707
1683
  interface GetBetaWorkerVersionResponsePlacement5 {
1708
1684
  /** HTTP hostname for targeted placement. */
@@ -1710,13 +1686,13 @@ interface GetBetaWorkerVersionResponsePlacement5 {
1710
1686
  /** Targeted placement mode. */
1711
1687
  mode: "targeted";
1712
1688
  }
1713
- const GetBetaWorkerVersionResponsePlacement5 =
1714
- /*@__PURE__*/ Schema.suspend(() =>
1689
+ const GetBetaWorkerVersionResponsePlacement5 = /*@__PURE__*/ Schema.suspend(
1690
+ () =>
1715
1691
  Schema.Struct({
1716
1692
  hostname: Schema.String,
1717
1693
  mode: Schema.Literal("targeted"),
1718
1694
  }),
1719
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement5>;
1695
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement5>;
1720
1696
 
1721
1697
  interface GetBetaWorkerVersionResponsePlacement6 {
1722
1698
  /** TCP host and port for targeted placement. */
@@ -1724,13 +1700,13 @@ interface GetBetaWorkerVersionResponsePlacement6 {
1724
1700
  /** Targeted placement mode. */
1725
1701
  mode: "targeted";
1726
1702
  }
1727
- const GetBetaWorkerVersionResponsePlacement6 =
1728
- /*@__PURE__*/ Schema.suspend(() =>
1703
+ const GetBetaWorkerVersionResponsePlacement6 = /*@__PURE__*/ Schema.suspend(
1704
+ () =>
1729
1705
  Schema.Struct({
1730
1706
  host: Schema.String,
1731
1707
  mode: Schema.Literal("targeted"),
1732
1708
  }),
1733
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement6>;
1709
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement6>;
1734
1710
 
1735
1711
  interface GetBetaWorkerVersionResponsePlacement7 {
1736
1712
  /** Targeted placement mode. */
@@ -1738,13 +1714,13 @@ interface GetBetaWorkerVersionResponsePlacement7 {
1738
1714
  /** Array of placement targets (currently limited to single target). */
1739
1715
  target: ({ region: string } | { hostname: string } | { host: string })[];
1740
1716
  }
1741
- const GetBetaWorkerVersionResponsePlacement7 =
1742
- /*@__PURE__*/ Schema.suspend(() =>
1717
+ const GetBetaWorkerVersionResponsePlacement7 = /*@__PURE__*/ Schema.suspend(
1718
+ () =>
1743
1719
  Schema.Struct({
1744
1720
  mode: Schema.Literal("targeted"),
1745
1721
  target: Schema.Array(Schema.Union([Region, Hostname, Host])),
1746
1722
  }),
1747
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement7>;
1723
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponsePlacement7>;
1748
1724
 
1749
1725
  interface ListBetaWorkerVersionsResponseResult {
1750
1726
  /** Version identifier. */
@@ -1982,134 +1958,129 @@ interface ListBetaWorkerVersionsResponseResult {
1982
1958
  /** @deprecated Usage model for the version. */
1983
1959
  usageModel?: "standard" | "bundled" | "unbound" | (string & {}) | null;
1984
1960
  }
1985
- const ListBetaWorkerVersionsResponseResult =
1986
- /*@__PURE__*/ Schema.suspend(() =>
1987
- Schema.Struct({
1988
- id: Schema.String,
1989
- createdOn: Schema.String,
1990
- number: Schema.Number,
1991
- urls: Schema.Array(Schema.String),
1992
- annotations: Schema.optional(Schema.Union([Annotations, Schema.Null])),
1993
- assets: Schema.optional(Schema.Union([Assets, Schema.Null])),
1994
- bindings: Schema.optional(
1995
- Schema.Union([
1996
- Schema.Array(
1997
- Schema.Union([
1998
- WorkersBindingKindSecretKey,
1999
- WorkersBindingKindRatelimit,
2000
- WorkersBindingKindSecretsStoreSecret,
2001
- WorkersBindingKindAISearch,
2002
- WorkersBindingKindAISearchNamespace,
2003
- WorkersBindingKindAnalyticsEngine,
2004
- WorkersBindingKindD1,
2005
- WorkersBindingKindDataBlob,
2006
- WorkersBindingKindDispatchNamespace,
2007
- WorkersBindingKindHyperdrive,
2008
- WorkersBindingKindJson,
2009
- WorkersBindingKindKVNamespace,
2010
- WorkersBindingKindMTLSCertificate,
2011
- WorkersBindingKindPlainText,
2012
- WorkersBindingKindPipelines,
2013
- WorkersBindingKindQueue,
2014
- WorkersBindingKindR2Bucket,
2015
- WorkersBindingKindService,
2016
- WorkersBindingKindTextBlob,
2017
- WorkersBindingKindVectorize,
2018
- WorkersBindingKindFlagship,
2019
- WorkersBindingKindWorkflow,
2020
- WorkersBindingKindWasmModule,
2021
- WorkersBindingKindVPCService,
2022
- GetBetaWorkerVersionResponseBinding36,
2023
- WorkersBindingKindAI,
2024
- WorkersBindingKindAssets,
2025
- WorkersBindingKindBrowser,
2026
- WorkersBindingKindDurableObjectNamespace,
2027
- WorkersBindingKindInherit,
2028
- WorkersBindingKindImages,
2029
- WorkersBindingKindMedia,
2030
- WorkersBindingKindSecretText,
2031
- WorkersBindingKindSendEmail,
2032
- WorkersBindingKindVersionMetadata,
2033
- WorkersBindingKindVPCNetwork,
2034
- GetBetaWorkerVersionResponseBinding35,
2035
- ]),
2036
- ),
2037
- Schema.Null,
2038
- ]),
2039
- ),
2040
- compatibilityDate: Schema.optional(
2041
- Schema.Union([Schema.String, Schema.Null]),
2042
- ),
2043
- compatibilityFlags: Schema.optional(
2044
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2045
- ),
2046
- containers: Schema.optional(
2047
- Schema.Union([Schema.Array(Container), Schema.Null]),
2048
- ),
2049
- limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
2050
- mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2051
- migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2052
- migrations: Schema.optional(
2053
- Schema.Union([
2054
- Schema.Union([Schema.Unknown, WorkersMultipleStepMigrations]),
2055
- Schema.Null,
2056
- ]),
2057
- ),
2058
- modules: Schema.optional(
2059
- Schema.Union([Schema.Array(Module), Schema.Null]),
2060
- ),
2061
- placement: Schema.optional(
2062
- Schema.Union([
1961
+ const ListBetaWorkerVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
1962
+ Schema.Struct({
1963
+ id: Schema.String,
1964
+ createdOn: Schema.String,
1965
+ number: Schema.Number,
1966
+ urls: Schema.Array(Schema.String),
1967
+ annotations: Schema.optional(Schema.Union([Annotations, Schema.Null])),
1968
+ assets: Schema.optional(Schema.Union([Assets, Schema.Null])),
1969
+ bindings: Schema.optional(
1970
+ Schema.Union([
1971
+ Schema.Array(
2063
1972
  Schema.Union([
2064
- GetBetaWorkerVersionResponsePlacement4,
2065
- GetBetaWorkerVersionResponsePlacement5,
2066
- GetBetaWorkerVersionResponsePlacement6,
2067
- GetBetaWorkerVersionResponsePlacement7,
2068
- Mode,
2069
- Region,
2070
- Hostname,
2071
- Host,
2072
- ]),
2073
- Schema.Null,
2074
- ]),
2075
- ),
2076
- source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2077
- startupTimeMs: Schema.optional(
2078
- Schema.Union([Schema.Number, Schema.Null]),
2079
- ),
2080
- usageModel: Schema.optional(
2081
- Schema.Union([
2082
- Schema.Union([
2083
- Schema.Literals(["standard", "bundled", "unbound"]),
2084
- Schema.String,
1973
+ WorkersBindingKindSecretKey,
1974
+ WorkersBindingKindRatelimit,
1975
+ WorkersBindingKindSecretsStoreSecret,
1976
+ WorkersBindingKindAISearch,
1977
+ WorkersBindingKindAISearchNamespace,
1978
+ WorkersBindingKindAnalyticsEngine,
1979
+ WorkersBindingKindD1,
1980
+ WorkersBindingKindDataBlob,
1981
+ WorkersBindingKindDispatchNamespace,
1982
+ WorkersBindingKindHyperdrive,
1983
+ WorkersBindingKindJson,
1984
+ WorkersBindingKindKVNamespace,
1985
+ WorkersBindingKindMTLSCertificate,
1986
+ WorkersBindingKindPlainText,
1987
+ WorkersBindingKindPipelines,
1988
+ WorkersBindingKindQueue,
1989
+ WorkersBindingKindR2Bucket,
1990
+ WorkersBindingKindService,
1991
+ WorkersBindingKindTextBlob,
1992
+ WorkersBindingKindVectorize,
1993
+ WorkersBindingKindFlagship,
1994
+ WorkersBindingKindWorkflow,
1995
+ WorkersBindingKindWasmModule,
1996
+ WorkersBindingKindVPCService,
1997
+ GetBetaWorkerVersionResponseBinding36,
1998
+ WorkersBindingKindAI,
1999
+ WorkersBindingKindAssets,
2000
+ WorkersBindingKindBrowser,
2001
+ WorkersBindingKindDurableObjectNamespace,
2002
+ WorkersBindingKindInherit,
2003
+ WorkersBindingKindImages,
2004
+ WorkersBindingKindMedia,
2005
+ WorkersBindingKindSecretText,
2006
+ WorkersBindingKindSendEmail,
2007
+ WorkersBindingKindVersionMetadata,
2008
+ WorkersBindingKindVPCNetwork,
2009
+ GetBetaWorkerVersionResponseBinding35,
2085
2010
  ]),
2086
- Schema.Null,
2011
+ ),
2012
+ Schema.Null,
2013
+ ]),
2014
+ ),
2015
+ compatibilityDate: Schema.optional(
2016
+ Schema.Union([Schema.String, Schema.Null]),
2017
+ ),
2018
+ compatibilityFlags: Schema.optional(
2019
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
2020
+ ),
2021
+ containers: Schema.optional(
2022
+ Schema.Union([Schema.Array(Container), Schema.Null]),
2023
+ ),
2024
+ limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
2025
+ mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2026
+ migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2027
+ migrations: Schema.optional(
2028
+ Schema.Union([
2029
+ Schema.Union([Schema.Unknown, WorkersMultipleStepMigrations]),
2030
+ Schema.Null,
2031
+ ]),
2032
+ ),
2033
+ modules: Schema.optional(Schema.Union([Schema.Array(Module), Schema.Null])),
2034
+ placement: Schema.optional(
2035
+ Schema.Union([
2036
+ Schema.Union([
2037
+ GetBetaWorkerVersionResponsePlacement4,
2038
+ GetBetaWorkerVersionResponsePlacement5,
2039
+ GetBetaWorkerVersionResponsePlacement6,
2040
+ GetBetaWorkerVersionResponsePlacement7,
2041
+ Mode,
2042
+ Region,
2043
+ Hostname,
2044
+ Host,
2087
2045
  ]),
2088
- ),
2089
- }).pipe(
2090
- Schema.encodeKeys({
2091
- id: "id",
2092
- createdOn: "created_on",
2093
- number: "number",
2094
- urls: "urls",
2095
- annotations: "annotations",
2096
- assets: "assets",
2097
- bindings: "bindings",
2098
- compatibilityDate: "compatibility_date",
2099
- compatibilityFlags: "compatibility_flags",
2100
- containers: "containers",
2101
- limits: "limits",
2102
- mainModule: "main_module",
2103
- migrationTag: "migration_tag",
2104
- migrations: "migrations",
2105
- modules: "modules",
2106
- placement: "placement",
2107
- source: "source",
2108
- startupTimeMs: "startup_time_ms",
2109
- usageModel: "usage_model",
2110
- }),
2046
+ Schema.Null,
2047
+ ]),
2048
+ ),
2049
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2050
+ startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2051
+ usageModel: Schema.optional(
2052
+ Schema.Union([
2053
+ Schema.Union([
2054
+ Schema.Literals(["standard", "bundled", "unbound"]),
2055
+ Schema.String,
2056
+ ]),
2057
+ Schema.Null,
2058
+ ]),
2111
2059
  ),
2112
- ) as unknown as Schema.Codec<ListBetaWorkerVersionsResponseResult>;
2060
+ }).pipe(
2061
+ Schema.encodeKeys({
2062
+ id: "id",
2063
+ createdOn: "created_on",
2064
+ number: "number",
2065
+ urls: "urls",
2066
+ annotations: "annotations",
2067
+ assets: "assets",
2068
+ bindings: "bindings",
2069
+ compatibilityDate: "compatibility_date",
2070
+ compatibilityFlags: "compatibility_flags",
2071
+ containers: "containers",
2072
+ limits: "limits",
2073
+ mainModule: "main_module",
2074
+ migrationTag: "migration_tag",
2075
+ migrations: "migrations",
2076
+ modules: "modules",
2077
+ placement: "placement",
2078
+ source: "source",
2079
+ startupTimeMs: "startup_time_ms",
2080
+ usageModel: "usage_model",
2081
+ }),
2082
+ ),
2083
+ ) as unknown as Schema.Codec<ListBetaWorkerVersionsResponseResult>;
2113
2084
 
2114
2085
  interface Annotations2 {
2115
2086
  /** Human-readable message about the version. Truncated to 1000 bytes if longer. */
@@ -2145,8 +2116,8 @@ interface WorkersBindingKindDurableObjectNamespace2 {
2145
2116
  /** The script where the Durable Object is defined, if it is external to this Worker. */
2146
2117
  scriptName?: string | null;
2147
2118
  }
2148
- const WorkersBindingKindDurableObjectNamespace2 =
2149
- /*@__PURE__*/ Schema.suspend(() =>
2119
+ const WorkersBindingKindDurableObjectNamespace2 = /*@__PURE__*/ Schema.suspend(
2120
+ () =>
2150
2121
  Schema.Struct({
2151
2122
  name: Schema.String,
2152
2123
  type: Schema.Literal("durable_object_namespace"),
@@ -2168,7 +2139,7 @@ const WorkersBindingKindDurableObjectNamespace2 =
2168
2139
  scriptName: "script_name",
2169
2140
  }),
2170
2141
  ),
2171
- ) as unknown as Schema.Codec<WorkersBindingKindDurableObjectNamespace2>;
2142
+ ) as unknown as Schema.Codec<WorkersBindingKindDurableObjectNamespace2>;
2172
2143
 
2173
2144
  interface WorkersBindingKindSecretText2 {
2174
2145
  /** A JavaScript variable name for the binding. */
@@ -2178,14 +2149,13 @@ interface WorkersBindingKindSecretText2 {
2178
2149
  /** The kind of resource that the binding provides. */
2179
2150
  type: "secret_text";
2180
2151
  }
2181
- const WorkersBindingKindSecretText2 =
2182
- /*@__PURE__*/ Schema.suspend(() =>
2183
- Schema.Struct({
2184
- name: Schema.String,
2185
- text: Schema.String,
2186
- type: Schema.Literal("secret_text"),
2187
- }),
2188
- ) as unknown as Schema.Codec<WorkersBindingKindSecretText2>;
2152
+ const WorkersBindingKindSecretText2 = /*@__PURE__*/ Schema.suspend(() =>
2153
+ Schema.Struct({
2154
+ name: Schema.String,
2155
+ text: Schema.String,
2156
+ type: Schema.Literal("secret_text"),
2157
+ }),
2158
+ ) as unknown as Schema.Codec<WorkersBindingKindSecretText2>;
2189
2159
 
2190
2160
  interface WorkersBindingKindSecretKey2 {
2191
2161
  /** Algorithm-specific key parameters. [Learn more](https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/importKey#algorithm). */
@@ -2700,60 +2670,59 @@ interface WorkersObservabilityFilterLeaf {
2700
2670
  /** Comparison value. Must match actual values in your data — verify with the values endpoint. Ensure the value type (string/number/boolean) matches the field type. String comparisons are case-sensitive. */
2701
2671
  value?: string | number | boolean | null;
2702
2672
  }
2703
- const WorkersObservabilityFilterLeaf =
2704
- /*@__PURE__*/ Schema.suspend(() =>
2705
- Schema.Struct({
2706
- key: Schema.String,
2707
- operation: Schema.Union([
2708
- Schema.Literals([
2709
- "includes",
2710
- "not_includes",
2711
- "starts_with",
2712
- "ends_with",
2713
- "regex",
2714
- "exists",
2715
- "is_null",
2716
- "in",
2717
- "not_in",
2718
- "eq",
2719
- "neq",
2720
- "gt",
2721
- "gte",
2722
- "lt",
2723
- "lte",
2724
- "=",
2725
- "!=",
2726
- ">",
2727
- ">=",
2728
- "<",
2729
- "<=",
2730
- "INCLUDES",
2731
- "DOES_NOT_INCLUDE",
2732
- "MATCH_REGEX",
2733
- "EXISTS",
2734
- "DOES_NOT_EXIST",
2735
- "IN",
2736
- "NOT_IN",
2737
- "STARTS_WITH",
2738
- "ENDS_WITH",
2739
- ]),
2740
- Schema.String,
2673
+ const WorkersObservabilityFilterLeaf = /*@__PURE__*/ Schema.suspend(() =>
2674
+ Schema.Struct({
2675
+ key: Schema.String,
2676
+ operation: Schema.Union([
2677
+ Schema.Literals([
2678
+ "includes",
2679
+ "not_includes",
2680
+ "starts_with",
2681
+ "ends_with",
2682
+ "regex",
2683
+ "exists",
2684
+ "is_null",
2685
+ "in",
2686
+ "not_in",
2687
+ "eq",
2688
+ "neq",
2689
+ "gt",
2690
+ "gte",
2691
+ "lt",
2692
+ "lte",
2693
+ "=",
2694
+ "!=",
2695
+ ">",
2696
+ ">=",
2697
+ "<",
2698
+ "<=",
2699
+ "INCLUDES",
2700
+ "DOES_NOT_INCLUDE",
2701
+ "MATCH_REGEX",
2702
+ "EXISTS",
2703
+ "DOES_NOT_EXIST",
2704
+ "IN",
2705
+ "NOT_IN",
2706
+ "STARTS_WITH",
2707
+ "ENDS_WITH",
2741
2708
  ]),
2742
- type: Schema.Union([
2743
- Schema.Literals(["string", "number", "boolean"]),
2744
- Schema.String,
2709
+ Schema.String,
2710
+ ]),
2711
+ type: Schema.Union([
2712
+ Schema.Literals(["string", "number", "boolean"]),
2713
+ Schema.String,
2714
+ ]),
2715
+ kind: Schema.optional(
2716
+ Schema.Union([Schema.Literal("filter"), Schema.Null]),
2717
+ ),
2718
+ value: Schema.optional(
2719
+ Schema.Union([
2720
+ Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
2721
+ Schema.Null,
2745
2722
  ]),
2746
- kind: Schema.optional(
2747
- Schema.Union([Schema.Literal("filter"), Schema.Null]),
2748
- ),
2749
- value: Schema.optional(
2750
- Schema.Union([
2751
- Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
2752
- Schema.Null,
2753
- ]),
2754
- ),
2755
- }),
2756
- ) as unknown as Schema.Codec<WorkersObservabilityFilterLeaf>;
2723
+ ),
2724
+ }),
2725
+ ) as unknown as Schema.Codec<WorkersObservabilityFilterLeaf>;
2757
2726
 
2758
2727
  interface GroupBy {
2759
2728
  type: "string" | "number" | "boolean" | (string & {});
@@ -3114,8 +3083,8 @@ interface ListObservabilityQueriesResponseResult {
3114
3083
  updated: string;
3115
3084
  updatedBy: string;
3116
3085
  }
3117
- const ListObservabilityQueriesResponseResult =
3118
- /*@__PURE__*/ Schema.suspend(() =>
3086
+ const ListObservabilityQueriesResponseResult = /*@__PURE__*/ Schema.suspend(
3087
+ () =>
3119
3088
  Schema.Struct({
3120
3089
  id: Schema.String,
3121
3090
  adhoc: Schema.Boolean,
@@ -3127,7 +3096,7 @@ const ListObservabilityQueriesResponseResult =
3127
3096
  updated: Schema.String,
3128
3097
  updatedBy: Schema.String,
3129
3098
  }),
3130
- ) as unknown as Schema.Codec<ListObservabilityQueriesResponseResult>;
3099
+ ) as unknown as Schema.Codec<ListObservabilityQueriesResponseResult>;
3131
3100
 
3132
3101
  interface Needle2 {
3133
3102
  value: unknown;
@@ -4863,8 +4832,8 @@ interface KeysObservabilityTelemetryResponseResult {
4863
4832
  lastSeenAt: number;
4864
4833
  type: "string" | "boolean" | "number" | (string & {});
4865
4834
  }
4866
- const KeysObservabilityTelemetryResponseResult =
4867
- /*@__PURE__*/ Schema.suspend(() =>
4835
+ const KeysObservabilityTelemetryResponseResult = /*@__PURE__*/ Schema.suspend(
4836
+ () =>
4868
4837
  Schema.Struct({
4869
4838
  key: Schema.String,
4870
4839
  lastSeenAt: Schema.Number,
@@ -4873,7 +4842,7 @@ const KeysObservabilityTelemetryResponseResult =
4873
4842
  Schema.String,
4874
4843
  ]),
4875
4844
  }),
4876
- ) as unknown as Schema.Codec<KeysObservabilityTelemetryResponseResult>;
4845
+ ) as unknown as Schema.Codec<KeysObservabilityTelemetryResponseResult>;
4877
4846
 
4878
4847
  interface Query2 {
4879
4848
  id: string;
@@ -5610,8 +5579,8 @@ interface ValuesObservabilityTelemetryResponseResult {
5610
5579
  type: "string" | "boolean" | "number" | (string & {});
5611
5580
  value: string | number | boolean;
5612
5581
  }
5613
- const ValuesObservabilityTelemetryResponseResult =
5614
- /*@__PURE__*/ Schema.suspend(() =>
5582
+ const ValuesObservabilityTelemetryResponseResult = /*@__PURE__*/ Schema.suspend(
5583
+ () =>
5615
5584
  Schema.Struct({
5616
5585
  dataset: Schema.String,
5617
5586
  key: Schema.String,
@@ -5621,7 +5590,7 @@ const ValuesObservabilityTelemetryResponseResult =
5621
5590
  ]),
5622
5591
  value: Schema.Union([Schema.String, Schema.Number, Schema.Boolean]),
5623
5592
  }),
5624
- ) as unknown as Schema.Codec<ValuesObservabilityTelemetryResponseResult>;
5593
+ ) as unknown as Schema.Codec<ValuesObservabilityTelemetryResponseResult>;
5625
5594
 
5626
5595
  interface ListRoutesResponseResult {
5627
5596
  /** Identifier. */
@@ -5783,34 +5752,31 @@ interface ListScriptsResponseResultPlacement {
5783
5752
  | (string & {})
5784
5753
  | null;
5785
5754
  }
5786
- const ListScriptsResponseResultPlacement =
5787
- /*@__PURE__*/ Schema.suspend(() =>
5788
- Schema.Struct({
5789
- mode: Schema.Literal("smart"),
5790
- lastAnalyzedAt: Schema.optional(
5791
- Schema.Union([Schema.String, Schema.Null]),
5792
- ),
5793
- status: Schema.optional(
5755
+ const ListScriptsResponseResultPlacement = /*@__PURE__*/ Schema.suspend(() =>
5756
+ Schema.Struct({
5757
+ mode: Schema.Literal("smart"),
5758
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5759
+ status: Schema.optional(
5760
+ Schema.Union([
5794
5761
  Schema.Union([
5795
- Schema.Union([
5796
- Schema.Literals([
5797
- "SUCCESS",
5798
- "UNSUPPORTED_APPLICATION",
5799
- "INSUFFICIENT_INVOCATIONS",
5800
- ]),
5801
- Schema.String,
5762
+ Schema.Literals([
5763
+ "SUCCESS",
5764
+ "UNSUPPORTED_APPLICATION",
5765
+ "INSUFFICIENT_INVOCATIONS",
5802
5766
  ]),
5803
- Schema.Null,
5767
+ Schema.String,
5804
5768
  ]),
5805
- ),
5806
- }).pipe(
5807
- Schema.encodeKeys({
5808
- mode: "mode",
5809
- lastAnalyzedAt: "last_analyzed_at",
5810
- status: "status",
5811
- }),
5769
+ Schema.Null,
5770
+ ]),
5812
5771
  ),
5813
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement>;
5772
+ }).pipe(
5773
+ Schema.encodeKeys({
5774
+ mode: "mode",
5775
+ lastAnalyzedAt: "last_analyzed_at",
5776
+ status: "status",
5777
+ }),
5778
+ ),
5779
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement>;
5814
5780
 
5815
5781
  interface ListScriptsResponseResultPlacement1 {
5816
5782
  /** Cloud region for targeted placement in format 'provider:region'. */
@@ -5825,34 +5791,31 @@ interface ListScriptsResponseResultPlacement1 {
5825
5791
  | (string & {})
5826
5792
  | null;
5827
5793
  }
5828
- const ListScriptsResponseResultPlacement1 =
5829
- /*@__PURE__*/ Schema.suspend(() =>
5830
- Schema.Struct({
5831
- region: Schema.String,
5832
- lastAnalyzedAt: Schema.optional(
5833
- Schema.Union([Schema.String, Schema.Null]),
5834
- ),
5835
- status: Schema.optional(
5794
+ const ListScriptsResponseResultPlacement1 = /*@__PURE__*/ Schema.suspend(() =>
5795
+ Schema.Struct({
5796
+ region: Schema.String,
5797
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5798
+ status: Schema.optional(
5799
+ Schema.Union([
5836
5800
  Schema.Union([
5837
- Schema.Union([
5838
- Schema.Literals([
5839
- "SUCCESS",
5840
- "UNSUPPORTED_APPLICATION",
5841
- "INSUFFICIENT_INVOCATIONS",
5842
- ]),
5843
- Schema.String,
5801
+ Schema.Literals([
5802
+ "SUCCESS",
5803
+ "UNSUPPORTED_APPLICATION",
5804
+ "INSUFFICIENT_INVOCATIONS",
5844
5805
  ]),
5845
- Schema.Null,
5806
+ Schema.String,
5846
5807
  ]),
5847
- ),
5848
- }).pipe(
5849
- Schema.encodeKeys({
5850
- region: "region",
5851
- lastAnalyzedAt: "last_analyzed_at",
5852
- status: "status",
5853
- }),
5808
+ Schema.Null,
5809
+ ]),
5854
5810
  ),
5855
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement1>;
5811
+ }).pipe(
5812
+ Schema.encodeKeys({
5813
+ region: "region",
5814
+ lastAnalyzedAt: "last_analyzed_at",
5815
+ status: "status",
5816
+ }),
5817
+ ),
5818
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement1>;
5856
5819
 
5857
5820
  interface ListScriptsResponseResultPlacement2 {
5858
5821
  /** HTTP hostname for targeted placement. */
@@ -5867,37 +5830,34 @@ interface ListScriptsResponseResultPlacement2 {
5867
5830
  | (string & {})
5868
5831
  | null;
5869
5832
  }
5870
- const ListScriptsResponseResultPlacement2 =
5871
- /*@__PURE__*/ Schema.suspend(() =>
5872
- Schema.Struct({
5873
- hostname: Schema.String,
5874
- lastAnalyzedAt: Schema.optional(
5875
- Schema.Union([Schema.String, Schema.Null]),
5876
- ),
5877
- status: Schema.optional(
5833
+ const ListScriptsResponseResultPlacement2 = /*@__PURE__*/ Schema.suspend(() =>
5834
+ Schema.Struct({
5835
+ hostname: Schema.String,
5836
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5837
+ status: Schema.optional(
5838
+ Schema.Union([
5878
5839
  Schema.Union([
5879
- Schema.Union([
5880
- Schema.Literals([
5881
- "SUCCESS",
5882
- "UNSUPPORTED_APPLICATION",
5883
- "INSUFFICIENT_INVOCATIONS",
5884
- ]),
5885
- Schema.String,
5840
+ Schema.Literals([
5841
+ "SUCCESS",
5842
+ "UNSUPPORTED_APPLICATION",
5843
+ "INSUFFICIENT_INVOCATIONS",
5886
5844
  ]),
5887
- Schema.Null,
5845
+ Schema.String,
5888
5846
  ]),
5889
- ),
5890
- }).pipe(
5891
- Schema.encodeKeys({
5892
- hostname: "hostname",
5893
- lastAnalyzedAt: "last_analyzed_at",
5894
- status: "status",
5895
- }),
5847
+ Schema.Null,
5848
+ ]),
5896
5849
  ),
5897
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement2>;
5898
-
5899
- interface ListScriptsResponseResultPlacement3 {
5900
- /** TCP host and port for targeted placement. */
5850
+ }).pipe(
5851
+ Schema.encodeKeys({
5852
+ hostname: "hostname",
5853
+ lastAnalyzedAt: "last_analyzed_at",
5854
+ status: "status",
5855
+ }),
5856
+ ),
5857
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement2>;
5858
+
5859
+ interface ListScriptsResponseResultPlacement3 {
5860
+ /** TCP host and port for targeted placement. */
5901
5861
  host: string;
5902
5862
  /** The last time the script was analyzed for [Smart Placement](https://developers.cloudflare.com/workers/configuration/smart-placement). */
5903
5863
  lastAnalyzedAt?: string | null;
@@ -5909,34 +5869,31 @@ interface ListScriptsResponseResultPlacement3 {
5909
5869
  | (string & {})
5910
5870
  | null;
5911
5871
  }
5912
- const ListScriptsResponseResultPlacement3 =
5913
- /*@__PURE__*/ Schema.suspend(() =>
5914
- Schema.Struct({
5915
- host: Schema.String,
5916
- lastAnalyzedAt: Schema.optional(
5917
- Schema.Union([Schema.String, Schema.Null]),
5918
- ),
5919
- status: Schema.optional(
5872
+ const ListScriptsResponseResultPlacement3 = /*@__PURE__*/ Schema.suspend(() =>
5873
+ Schema.Struct({
5874
+ host: Schema.String,
5875
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5876
+ status: Schema.optional(
5877
+ Schema.Union([
5920
5878
  Schema.Union([
5921
- Schema.Union([
5922
- Schema.Literals([
5923
- "SUCCESS",
5924
- "UNSUPPORTED_APPLICATION",
5925
- "INSUFFICIENT_INVOCATIONS",
5926
- ]),
5927
- Schema.String,
5879
+ Schema.Literals([
5880
+ "SUCCESS",
5881
+ "UNSUPPORTED_APPLICATION",
5882
+ "INSUFFICIENT_INVOCATIONS",
5928
5883
  ]),
5929
- Schema.Null,
5884
+ Schema.String,
5930
5885
  ]),
5931
- ),
5932
- }).pipe(
5933
- Schema.encodeKeys({
5934
- host: "host",
5935
- lastAnalyzedAt: "last_analyzed_at",
5936
- status: "status",
5937
- }),
5886
+ Schema.Null,
5887
+ ]),
5938
5888
  ),
5939
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement3>;
5889
+ }).pipe(
5890
+ Schema.encodeKeys({
5891
+ host: "host",
5892
+ lastAnalyzedAt: "last_analyzed_at",
5893
+ status: "status",
5894
+ }),
5895
+ ),
5896
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement3>;
5940
5897
 
5941
5898
  interface ListScriptsResponseResultPlacement4 {
5942
5899
  /** Targeted placement mode. */
@@ -5953,36 +5910,33 @@ interface ListScriptsResponseResultPlacement4 {
5953
5910
  | (string & {})
5954
5911
  | null;
5955
5912
  }
5956
- const ListScriptsResponseResultPlacement4 =
5957
- /*@__PURE__*/ Schema.suspend(() =>
5958
- Schema.Struct({
5959
- mode: Schema.Literal("targeted"),
5960
- region: Schema.String,
5961
- lastAnalyzedAt: Schema.optional(
5962
- Schema.Union([Schema.String, Schema.Null]),
5963
- ),
5964
- status: Schema.optional(
5913
+ const ListScriptsResponseResultPlacement4 = /*@__PURE__*/ Schema.suspend(() =>
5914
+ Schema.Struct({
5915
+ mode: Schema.Literal("targeted"),
5916
+ region: Schema.String,
5917
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5918
+ status: Schema.optional(
5919
+ Schema.Union([
5965
5920
  Schema.Union([
5966
- Schema.Union([
5967
- Schema.Literals([
5968
- "SUCCESS",
5969
- "UNSUPPORTED_APPLICATION",
5970
- "INSUFFICIENT_INVOCATIONS",
5971
- ]),
5972
- Schema.String,
5921
+ Schema.Literals([
5922
+ "SUCCESS",
5923
+ "UNSUPPORTED_APPLICATION",
5924
+ "INSUFFICIENT_INVOCATIONS",
5973
5925
  ]),
5974
- Schema.Null,
5926
+ Schema.String,
5975
5927
  ]),
5976
- ),
5977
- }).pipe(
5978
- Schema.encodeKeys({
5979
- mode: "mode",
5980
- region: "region",
5981
- lastAnalyzedAt: "last_analyzed_at",
5982
- status: "status",
5983
- }),
5928
+ Schema.Null,
5929
+ ]),
5984
5930
  ),
5985
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement4>;
5931
+ }).pipe(
5932
+ Schema.encodeKeys({
5933
+ mode: "mode",
5934
+ region: "region",
5935
+ lastAnalyzedAt: "last_analyzed_at",
5936
+ status: "status",
5937
+ }),
5938
+ ),
5939
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement4>;
5986
5940
 
5987
5941
  interface ListScriptsResponseResultPlacement5 {
5988
5942
  /** HTTP hostname for targeted placement. */
@@ -5999,36 +5953,33 @@ interface ListScriptsResponseResultPlacement5 {
5999
5953
  | (string & {})
6000
5954
  | null;
6001
5955
  }
6002
- const ListScriptsResponseResultPlacement5 =
6003
- /*@__PURE__*/ Schema.suspend(() =>
6004
- Schema.Struct({
6005
- hostname: Schema.String,
6006
- mode: Schema.Literal("targeted"),
6007
- lastAnalyzedAt: Schema.optional(
6008
- Schema.Union([Schema.String, Schema.Null]),
6009
- ),
6010
- status: Schema.optional(
5956
+ const ListScriptsResponseResultPlacement5 = /*@__PURE__*/ Schema.suspend(() =>
5957
+ Schema.Struct({
5958
+ hostname: Schema.String,
5959
+ mode: Schema.Literal("targeted"),
5960
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5961
+ status: Schema.optional(
5962
+ Schema.Union([
6011
5963
  Schema.Union([
6012
- Schema.Union([
6013
- Schema.Literals([
6014
- "SUCCESS",
6015
- "UNSUPPORTED_APPLICATION",
6016
- "INSUFFICIENT_INVOCATIONS",
6017
- ]),
6018
- Schema.String,
5964
+ Schema.Literals([
5965
+ "SUCCESS",
5966
+ "UNSUPPORTED_APPLICATION",
5967
+ "INSUFFICIENT_INVOCATIONS",
6019
5968
  ]),
6020
- Schema.Null,
5969
+ Schema.String,
6021
5970
  ]),
6022
- ),
6023
- }).pipe(
6024
- Schema.encodeKeys({
6025
- hostname: "hostname",
6026
- mode: "mode",
6027
- lastAnalyzedAt: "last_analyzed_at",
6028
- status: "status",
6029
- }),
5971
+ Schema.Null,
5972
+ ]),
6030
5973
  ),
6031
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement5>;
5974
+ }).pipe(
5975
+ Schema.encodeKeys({
5976
+ hostname: "hostname",
5977
+ mode: "mode",
5978
+ lastAnalyzedAt: "last_analyzed_at",
5979
+ status: "status",
5980
+ }),
5981
+ ),
5982
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement5>;
6032
5983
 
6033
5984
  interface ListScriptsResponseResultPlacement6 {
6034
5985
  /** TCP host and port for targeted placement. */
@@ -6045,36 +5996,33 @@ interface ListScriptsResponseResultPlacement6 {
6045
5996
  | (string & {})
6046
5997
  | null;
6047
5998
  }
6048
- const ListScriptsResponseResultPlacement6 =
6049
- /*@__PURE__*/ Schema.suspend(() =>
6050
- Schema.Struct({
6051
- host: Schema.String,
6052
- mode: Schema.Literal("targeted"),
6053
- lastAnalyzedAt: Schema.optional(
6054
- Schema.Union([Schema.String, Schema.Null]),
6055
- ),
6056
- status: Schema.optional(
5999
+ const ListScriptsResponseResultPlacement6 = /*@__PURE__*/ Schema.suspend(() =>
6000
+ Schema.Struct({
6001
+ host: Schema.String,
6002
+ mode: Schema.Literal("targeted"),
6003
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6004
+ status: Schema.optional(
6005
+ Schema.Union([
6057
6006
  Schema.Union([
6058
- Schema.Union([
6059
- Schema.Literals([
6060
- "SUCCESS",
6061
- "UNSUPPORTED_APPLICATION",
6062
- "INSUFFICIENT_INVOCATIONS",
6063
- ]),
6064
- Schema.String,
6007
+ Schema.Literals([
6008
+ "SUCCESS",
6009
+ "UNSUPPORTED_APPLICATION",
6010
+ "INSUFFICIENT_INVOCATIONS",
6065
6011
  ]),
6066
- Schema.Null,
6012
+ Schema.String,
6067
6013
  ]),
6068
- ),
6069
- }).pipe(
6070
- Schema.encodeKeys({
6071
- host: "host",
6072
- mode: "mode",
6073
- lastAnalyzedAt: "last_analyzed_at",
6074
- status: "status",
6075
- }),
6014
+ Schema.Null,
6015
+ ]),
6076
6016
  ),
6077
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement6>;
6017
+ }).pipe(
6018
+ Schema.encodeKeys({
6019
+ host: "host",
6020
+ mode: "mode",
6021
+ lastAnalyzedAt: "last_analyzed_at",
6022
+ status: "status",
6023
+ }),
6024
+ ),
6025
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement6>;
6078
6026
 
6079
6027
  interface ListScriptsResponseResultPlacement7 {
6080
6028
  /** Targeted placement mode. */
@@ -6091,36 +6039,33 @@ interface ListScriptsResponseResultPlacement7 {
6091
6039
  | (string & {})
6092
6040
  | null;
6093
6041
  }
6094
- const ListScriptsResponseResultPlacement7 =
6095
- /*@__PURE__*/ Schema.suspend(() =>
6096
- Schema.Struct({
6097
- mode: Schema.Literal("targeted"),
6098
- target: Schema.Array(Schema.Union([Region, Hostname, Host])),
6099
- lastAnalyzedAt: Schema.optional(
6100
- Schema.Union([Schema.String, Schema.Null]),
6101
- ),
6102
- status: Schema.optional(
6042
+ const ListScriptsResponseResultPlacement7 = /*@__PURE__*/ Schema.suspend(() =>
6043
+ Schema.Struct({
6044
+ mode: Schema.Literal("targeted"),
6045
+ target: Schema.Array(Schema.Union([Region, Hostname, Host])),
6046
+ lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
6047
+ status: Schema.optional(
6048
+ Schema.Union([
6103
6049
  Schema.Union([
6104
- Schema.Union([
6105
- Schema.Literals([
6106
- "SUCCESS",
6107
- "UNSUPPORTED_APPLICATION",
6108
- "INSUFFICIENT_INVOCATIONS",
6109
- ]),
6110
- Schema.String,
6050
+ Schema.Literals([
6051
+ "SUCCESS",
6052
+ "UNSUPPORTED_APPLICATION",
6053
+ "INSUFFICIENT_INVOCATIONS",
6111
6054
  ]),
6112
- Schema.Null,
6055
+ Schema.String,
6113
6056
  ]),
6114
- ),
6115
- }).pipe(
6116
- Schema.encodeKeys({
6117
- mode: "mode",
6118
- target: "target",
6119
- lastAnalyzedAt: "last_analyzed_at",
6120
- status: "status",
6121
- }),
6057
+ Schema.Null,
6058
+ ]),
6122
6059
  ),
6123
- ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement7>;
6060
+ }).pipe(
6061
+ Schema.encodeKeys({
6062
+ mode: "mode",
6063
+ target: "target",
6064
+ lastAnalyzedAt: "last_analyzed_at",
6065
+ status: "status",
6066
+ }),
6067
+ ),
6068
+ ) as unknown as Schema.Codec<ListScriptsResponseResultPlacement7>;
6124
6069
 
6125
6070
  interface ConsumerScript {
6126
6071
  /** Name of Worker that is to be the consumer. */
@@ -6514,13 +6459,13 @@ interface PutScriptRequestMetadataBinding37Simple {
6514
6459
  limit: number;
6515
6460
  period: number;
6516
6461
  }
6517
- const PutScriptRequestMetadataBinding37Simple =
6518
- /*@__PURE__*/ Schema.suspend(() =>
6462
+ const PutScriptRequestMetadataBinding37Simple = /*@__PURE__*/ Schema.suspend(
6463
+ () =>
6519
6464
  Schema.Struct({
6520
6465
  limit: Schema.Number,
6521
6466
  period: Schema.Number,
6522
6467
  }),
6523
- ) as unknown as Schema.Codec<PutScriptRequestMetadataBinding37Simple>;
6468
+ ) as unknown as Schema.Codec<PutScriptRequestMetadataBinding37Simple>;
6524
6469
 
6525
6470
  interface PutScriptRequestMetadataBinding37 {
6526
6471
  name: string;
@@ -6528,41 +6473,39 @@ interface PutScriptRequestMetadataBinding37 {
6528
6473
  namespaceId: string;
6529
6474
  simple: { limit: number; period: number };
6530
6475
  }
6531
- const PutScriptRequestMetadataBinding37 =
6532
- /*@__PURE__*/ Schema.suspend(() =>
6533
- Schema.Struct({
6534
- name: Schema.String,
6535
- type: Schema.Literal("ratelimit"),
6536
- namespaceId: Schema.String,
6537
- simple: PutScriptRequestMetadataBinding37Simple,
6538
- }).pipe(
6539
- Schema.encodeKeys({
6540
- name: "name",
6541
- type: "type",
6542
- namespaceId: "namespace_id",
6543
- simple: "simple",
6544
- }),
6545
- ),
6546
- ) as unknown as Schema.Codec<PutScriptRequestMetadataBinding37>;
6476
+ const PutScriptRequestMetadataBinding37 = /*@__PURE__*/ Schema.suspend(() =>
6477
+ Schema.Struct({
6478
+ name: Schema.String,
6479
+ type: Schema.Literal("ratelimit"),
6480
+ namespaceId: Schema.String,
6481
+ simple: PutScriptRequestMetadataBinding37Simple,
6482
+ }).pipe(
6483
+ Schema.encodeKeys({
6484
+ name: "name",
6485
+ type: "type",
6486
+ namespaceId: "namespace_id",
6487
+ simple: "simple",
6488
+ }),
6489
+ ),
6490
+ ) as unknown as Schema.Codec<PutScriptRequestMetadataBinding37>;
6547
6491
 
6548
6492
  interface PutScriptRequestMetadataCache {
6549
6493
  enabled?: boolean | null;
6550
6494
  crossVersionCache?: boolean | null;
6551
6495
  }
6552
- const PutScriptRequestMetadataCache =
6553
- /*@__PURE__*/ Schema.suspend(() =>
6554
- Schema.Struct({
6555
- enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
6556
- crossVersionCache: Schema.optional(
6557
- Schema.Union([Schema.Boolean, Schema.Null]),
6558
- ),
6559
- }).pipe(
6560
- Schema.encodeKeys({
6561
- enabled: "enabled",
6562
- crossVersionCache: "cross_version_cache",
6563
- }),
6496
+ const PutScriptRequestMetadataCache = /*@__PURE__*/ Schema.suspend(() =>
6497
+ Schema.Struct({
6498
+ enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
6499
+ crossVersionCache: Schema.optional(
6500
+ Schema.Union([Schema.Boolean, Schema.Null]),
6564
6501
  ),
6565
- ) as unknown as Schema.Codec<PutScriptRequestMetadataCache>;
6502
+ }).pipe(
6503
+ Schema.encodeKeys({
6504
+ enabled: "enabled",
6505
+ crossVersionCache: "cross_version_cache",
6506
+ }),
6507
+ ),
6508
+ ) as unknown as Schema.Codec<PutScriptRequestMetadataCache>;
6566
6509
 
6567
6510
  interface Metadata2 {
6568
6511
  /** Annotations for the version created by this upload. */
@@ -8014,8 +7957,8 @@ interface CreateScriptEdgePreviewRequestMetadata {
8014
7957
  keepAssets?: boolean | null;
8015
7958
  tags?: string[] | null;
8016
7959
  }
8017
- const CreateScriptEdgePreviewRequestMetadata =
8018
- /*@__PURE__*/ Schema.suspend(() =>
7960
+ const CreateScriptEdgePreviewRequestMetadata = /*@__PURE__*/ Schema.suspend(
7961
+ () =>
8019
7962
  Schema.Struct({
8020
7963
  mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8021
7964
  bodyPart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -8161,7 +8104,7 @@ const CreateScriptEdgePreviewRequestMetadata =
8161
8104
  tags: "tags",
8162
8105
  }),
8163
8106
  ),
8164
- ) as unknown as Schema.Codec<CreateScriptEdgePreviewRequestMetadata>;
8107
+ ) as unknown as Schema.Codec<CreateScriptEdgePreviewRequestMetadata>;
8165
8108
 
8166
8109
  interface CreateScriptEdgePreviewRequestWranglerSessionConfig {
8167
8110
  workersDev: true;
@@ -8961,14 +8904,13 @@ interface ListScriptVersionsResponseResultItem {
8961
8904
  /** Sequential version number. */
8962
8905
  number?: number | null;
8963
8906
  }
8964
- const ListScriptVersionsResponseResultItem =
8965
- /*@__PURE__*/ Schema.suspend(() =>
8966
- Schema.Struct({
8967
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8968
- metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
8969
- number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
8970
- }),
8971
- ) as unknown as Schema.Codec<ListScriptVersionsResponseResultItem>;
8907
+ const ListScriptVersionsResponseResultItem = /*@__PURE__*/ Schema.suspend(() =>
8908
+ Schema.Struct({
8909
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
8910
+ metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
8911
+ number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
8912
+ }),
8913
+ ) as unknown as Schema.Codec<ListScriptVersionsResponseResultItem>;
8972
8914
 
8973
8915
  interface ListScriptVersionsResponseResult {
8974
8916
  items?:
@@ -8998,17 +8940,16 @@ interface ListScriptVersionsResponseResult {
8998
8940
  }[]
8999
8941
  | null;
9000
8942
  }
9001
- const ListScriptVersionsResponseResult =
9002
- /*@__PURE__*/ Schema.suspend(() =>
9003
- Schema.Struct({
9004
- items: Schema.optional(
9005
- Schema.Union([
9006
- Schema.Array(ListScriptVersionsResponseResultItem),
9007
- Schema.Null,
9008
- ]),
9009
- ),
9010
- }),
9011
- ) as unknown as Schema.Codec<ListScriptVersionsResponseResult>;
8943
+ const ListScriptVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() =>
8944
+ Schema.Struct({
8945
+ items: Schema.optional(
8946
+ Schema.Union([
8947
+ Schema.Array(ListScriptVersionsResponseResultItem),
8948
+ Schema.Null,
8949
+ ]),
8950
+ ),
8951
+ }),
8952
+ ) as unknown as Schema.Codec<ListScriptVersionsResponseResult>;
9012
8953
 
9013
8954
  interface Annotations5 {
9014
8955
  /** Associated alias for a version. */
@@ -9284,41 +9225,37 @@ export interface GetAccountSettingRequest {
9284
9225
  accountId: string;
9285
9226
  }
9286
9227
 
9287
- export const GetAccountSettingRequest =
9288
- /*@__PURE__*/ Schema.suspend(() =>
9289
- Schema.Struct({
9290
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9291
- }).pipe(
9292
- T.Http({
9293
- method: "GET",
9294
- path: "/accounts/{account_id}/workers/account-settings",
9295
- }),
9296
- ),
9297
- ) as unknown as Schema.Codec<GetAccountSettingRequest>;
9228
+ export const GetAccountSettingRequest = /*@__PURE__*/ Schema.suspend(() =>
9229
+ Schema.Struct({
9230
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9231
+ }).pipe(
9232
+ T.Http({
9233
+ method: "GET",
9234
+ path: "/accounts/{account_id}/workers/account-settings",
9235
+ }),
9236
+ ),
9237
+ ) as unknown as Schema.Codec<GetAccountSettingRequest>;
9298
9238
 
9299
9239
  export interface GetAccountSettingResponse {
9300
9240
  defaultUsageModel?: string | null;
9301
9241
  greenCompute?: boolean | null;
9302
9242
  }
9303
9243
 
9304
- export const GetAccountSettingResponse =
9305
- /*@__PURE__*/ Schema.suspend(() =>
9306
- Schema.Struct({
9307
- defaultUsageModel: Schema.optional(
9308
- Schema.Union([Schema.String, Schema.Null]),
9309
- ),
9310
- greenCompute: Schema.optional(
9311
- Schema.Union([Schema.Boolean, Schema.Null]),
9312
- ),
9313
- })
9314
- .pipe(
9315
- Schema.encodeKeys({
9316
- defaultUsageModel: "default_usage_model",
9317
- greenCompute: "green_compute",
9318
- }),
9319
- )
9320
- .pipe(T.ResponsePath("result")),
9321
- ) as unknown as Schema.Codec<GetAccountSettingResponse>;
9244
+ export const GetAccountSettingResponse = /*@__PURE__*/ Schema.suspend(() =>
9245
+ Schema.Struct({
9246
+ defaultUsageModel: Schema.optional(
9247
+ Schema.Union([Schema.String, Schema.Null]),
9248
+ ),
9249
+ greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
9250
+ })
9251
+ .pipe(
9252
+ Schema.encodeKeys({
9253
+ defaultUsageModel: "default_usage_model",
9254
+ greenCompute: "green_compute",
9255
+ }),
9256
+ )
9257
+ .pipe(T.ResponsePath("result")),
9258
+ ) as unknown as Schema.Codec<GetAccountSettingResponse>;
9322
9259
 
9323
9260
  export type GetAccountSettingError = DefaultErrors | InvalidRoute | Forbidden;
9324
9261
 
@@ -9342,47 +9279,43 @@ export interface PutAccountSettingRequest {
9342
9279
  greenCompute?: boolean;
9343
9280
  }
9344
9281
 
9345
- export const PutAccountSettingRequest =
9346
- /*@__PURE__*/ Schema.suspend(() =>
9347
- Schema.Struct({
9348
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9349
- defaultUsageModel: Schema.optional(Schema.String),
9350
- greenCompute: Schema.optional(Schema.Boolean),
9351
- }).pipe(
9352
- Schema.encodeKeys({
9353
- defaultUsageModel: "default_usage_model",
9354
- greenCompute: "green_compute",
9355
- }),
9356
- T.Http({
9357
- method: "PUT",
9358
- path: "/accounts/{account_id}/workers/account-settings",
9359
- }),
9360
- ),
9361
- ) as unknown as Schema.Codec<PutAccountSettingRequest>;
9282
+ export const PutAccountSettingRequest = /*@__PURE__*/ Schema.suspend(() =>
9283
+ Schema.Struct({
9284
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9285
+ defaultUsageModel: Schema.optional(Schema.String),
9286
+ greenCompute: Schema.optional(Schema.Boolean),
9287
+ }).pipe(
9288
+ Schema.encodeKeys({
9289
+ defaultUsageModel: "default_usage_model",
9290
+ greenCompute: "green_compute",
9291
+ }),
9292
+ T.Http({
9293
+ method: "PUT",
9294
+ path: "/accounts/{account_id}/workers/account-settings",
9295
+ }),
9296
+ ),
9297
+ ) as unknown as Schema.Codec<PutAccountSettingRequest>;
9362
9298
 
9363
9299
  export interface PutAccountSettingResponse {
9364
9300
  defaultUsageModel?: string | null;
9365
9301
  greenCompute?: boolean | null;
9366
9302
  }
9367
9303
 
9368
- export const PutAccountSettingResponse =
9369
- /*@__PURE__*/ Schema.suspend(() =>
9370
- Schema.Struct({
9371
- defaultUsageModel: Schema.optional(
9372
- Schema.Union([Schema.String, Schema.Null]),
9373
- ),
9374
- greenCompute: Schema.optional(
9375
- Schema.Union([Schema.Boolean, Schema.Null]),
9376
- ),
9377
- })
9378
- .pipe(
9379
- Schema.encodeKeys({
9380
- defaultUsageModel: "default_usage_model",
9381
- greenCompute: "green_compute",
9382
- }),
9383
- )
9384
- .pipe(T.ResponsePath("result")),
9385
- ) as unknown as Schema.Codec<PutAccountSettingResponse>;
9304
+ export const PutAccountSettingResponse = /*@__PURE__*/ Schema.suspend(() =>
9305
+ Schema.Struct({
9306
+ defaultUsageModel: Schema.optional(
9307
+ Schema.Union([Schema.String, Schema.Null]),
9308
+ ),
9309
+ greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
9310
+ })
9311
+ .pipe(
9312
+ Schema.encodeKeys({
9313
+ defaultUsageModel: "default_usage_model",
9314
+ greenCompute: "green_compute",
9315
+ }),
9316
+ )
9317
+ .pipe(T.ResponsePath("result")),
9318
+ ) as unknown as Schema.Codec<PutAccountSettingResponse>;
9386
9319
 
9387
9320
  export type PutAccountSettingError = DefaultErrors | InvalidRoute | Forbidden;
9388
9321
 
@@ -9412,35 +9345,33 @@ export interface CreateAssetUploadRequest {
9412
9345
  body: Record<string, unknown>;
9413
9346
  }
9414
9347
 
9415
- export const CreateAssetUploadRequest =
9416
- /*@__PURE__*/ Schema.suspend(() =>
9417
- Schema.Struct({
9418
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9419
- base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
9420
- jwtToken: Schema.optional(Schema.String).pipe(
9421
- T.HttpHeader("Authorization"),
9422
- ),
9423
- body: Schema.Record(Schema.String, Schema.Unknown).pipe(T.HttpBody()),
9424
- }).pipe(
9425
- T.Http({
9426
- method: "POST",
9427
- path: "/accounts/{account_id}/workers/assets/upload",
9428
- contentType: "multipart",
9429
- }),
9348
+ export const CreateAssetUploadRequest = /*@__PURE__*/ Schema.suspend(() =>
9349
+ Schema.Struct({
9350
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9351
+ base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
9352
+ jwtToken: Schema.optional(Schema.String).pipe(
9353
+ T.HttpHeader("Authorization"),
9430
9354
  ),
9431
- ) as unknown as Schema.Codec<CreateAssetUploadRequest>;
9355
+ body: Schema.Record(Schema.String, Schema.Unknown).pipe(T.HttpBody()),
9356
+ }).pipe(
9357
+ T.Http({
9358
+ method: "POST",
9359
+ path: "/accounts/{account_id}/workers/assets/upload",
9360
+ contentType: "multipart",
9361
+ }),
9362
+ ),
9363
+ ) as unknown as Schema.Codec<CreateAssetUploadRequest>;
9432
9364
 
9433
9365
  export interface CreateAssetUploadResponse {
9434
9366
  /** A "completion" JWT which can be redeemed when creating a Worker version. */
9435
9367
  jwt?: string | null;
9436
9368
  }
9437
9369
 
9438
- export const CreateAssetUploadResponse =
9439
- /*@__PURE__*/ Schema.suspend(() =>
9440
- Schema.Struct({
9441
- jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9442
- }).pipe(T.ResponsePath("result")),
9443
- ) as unknown as Schema.Codec<CreateAssetUploadResponse>;
9370
+ export const CreateAssetUploadResponse = /*@__PURE__*/ Schema.suspend(() =>
9371
+ Schema.Struct({
9372
+ jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
9373
+ }).pipe(T.ResponsePath("result")),
9374
+ ) as unknown as Schema.Codec<CreateAssetUploadResponse>;
9444
9375
 
9445
9376
  export type CreateAssetUploadError = DefaultErrors | InvalidRoute;
9446
9377
 
@@ -9520,25 +9451,24 @@ export interface ListBetaWorkersRequest {
9520
9451
  | (string & {});
9521
9452
  }
9522
9453
 
9523
- export const ListBetaWorkersRequest =
9524
- /*@__PURE__*/ Schema.suspend(() =>
9525
- Schema.Struct({
9526
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9527
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
9528
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
9529
- order: Schema.optional(
9530
- Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
9531
- ).pipe(T.HttpQuery("order")),
9532
- orderBy: Schema.optional(
9533
- Schema.Union([
9534
- Schema.Literals(["deployed_on", "updated_on", "created_on", "name"]),
9535
- Schema.String,
9536
- ]),
9537
- ).pipe(T.HttpQuery("order_by")),
9538
- }).pipe(
9539
- T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" }),
9540
- ),
9541
- ) as unknown as Schema.Codec<ListBetaWorkersRequest>;
9454
+ export const ListBetaWorkersRequest = /*@__PURE__*/ Schema.suspend(() =>
9455
+ Schema.Struct({
9456
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9457
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
9458
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
9459
+ order: Schema.optional(
9460
+ Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String]),
9461
+ ).pipe(T.HttpQuery("order")),
9462
+ orderBy: Schema.optional(
9463
+ Schema.Union([
9464
+ Schema.Literals(["deployed_on", "updated_on", "created_on", "name"]),
9465
+ Schema.String,
9466
+ ]),
9467
+ ).pipe(T.HttpQuery("order_by")),
9468
+ }).pipe(
9469
+ T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" }),
9470
+ ),
9471
+ ) as unknown as Schema.Codec<ListBetaWorkersRequest>;
9542
9472
 
9543
9473
  export interface ListBetaWorkersResponse {
9544
9474
  result: { id: string; name: string }[];
@@ -9550,15 +9480,14 @@ export interface ListBetaWorkersResponse {
9550
9480
  } | null;
9551
9481
  }
9552
9482
 
9553
- export const ListBetaWorkersResponse =
9554
- /*@__PURE__*/ Schema.suspend(() =>
9555
- Schema.Struct({
9556
- result: Schema.Array(ListBetaWorkersResponseResult),
9557
- resultInfo: Schema.optional(
9558
- Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null]),
9559
- ),
9560
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
9561
- ) as unknown as Schema.Codec<ListBetaWorkersResponse>;
9483
+ export const ListBetaWorkersResponse = /*@__PURE__*/ Schema.suspend(() =>
9484
+ Schema.Struct({
9485
+ result: Schema.Array(ListBetaWorkersResponseResult),
9486
+ resultInfo: Schema.optional(
9487
+ Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null]),
9488
+ ),
9489
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
9490
+ ) as unknown as Schema.Codec<ListBetaWorkersResponse>;
9562
9491
 
9563
9492
  export type ListBetaWorkersError = DefaultErrors | InvalidRoute;
9564
9493
 
@@ -9614,31 +9543,27 @@ export interface CreateBetaWorkerRequest {
9614
9543
  tailConsumers?: { name: string }[];
9615
9544
  }
9616
9545
 
9617
- export const CreateBetaWorkerRequest =
9618
- /*@__PURE__*/ Schema.suspend(() =>
9619
- Schema.Struct({
9620
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9621
- name: Schema.String,
9622
- logpush: Schema.optional(Schema.Boolean),
9623
- observability: Schema.optional(Observability),
9624
- subdomain: Schema.optional(Subdomain),
9625
- tags: Schema.optional(Schema.Array(Schema.String)),
9626
- tailConsumers: Schema.optional(Schema.Array(TailConsumer)),
9627
- }).pipe(
9628
- Schema.encodeKeys({
9629
- name: "name",
9630
- logpush: "logpush",
9631
- observability: "observability",
9632
- subdomain: "subdomain",
9633
- tags: "tags",
9634
- tailConsumers: "tail_consumers",
9635
- }),
9636
- T.Http({
9637
- method: "POST",
9638
- path: "/accounts/{account_id}/workers/workers",
9639
- }),
9640
- ),
9641
- ) as unknown as Schema.Codec<CreateBetaWorkerRequest>;
9546
+ export const CreateBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() =>
9547
+ Schema.Struct({
9548
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9549
+ name: Schema.String,
9550
+ logpush: Schema.optional(Schema.Boolean),
9551
+ observability: Schema.optional(Observability),
9552
+ subdomain: Schema.optional(Subdomain),
9553
+ tags: Schema.optional(Schema.Array(Schema.String)),
9554
+ tailConsumers: Schema.optional(Schema.Array(TailConsumer)),
9555
+ }).pipe(
9556
+ Schema.encodeKeys({
9557
+ name: "name",
9558
+ logpush: "logpush",
9559
+ observability: "observability",
9560
+ subdomain: "subdomain",
9561
+ tags: "tags",
9562
+ tailConsumers: "tail_consumers",
9563
+ }),
9564
+ T.Http({ method: "POST", path: "/accounts/{account_id}/workers/workers" }),
9565
+ ),
9566
+ ) as unknown as Schema.Codec<CreateBetaWorkerRequest>;
9642
9567
 
9643
9568
  export interface CreateBetaWorkerResponse {
9644
9569
  /** ID of the referencing Worker. */
@@ -9647,13 +9572,12 @@ export interface CreateBetaWorkerResponse {
9647
9572
  name: string;
9648
9573
  }
9649
9574
 
9650
- export const CreateBetaWorkerResponse =
9651
- /*@__PURE__*/ Schema.suspend(() =>
9652
- Schema.Struct({
9653
- id: Schema.String,
9654
- name: Schema.String,
9655
- }).pipe(T.ResponsePath("result")),
9656
- ) as unknown as Schema.Codec<CreateBetaWorkerResponse>;
9575
+ export const CreateBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() =>
9576
+ Schema.Struct({
9577
+ id: Schema.String,
9578
+ name: Schema.String,
9579
+ }).pipe(T.ResponsePath("result")),
9580
+ ) as unknown as Schema.Codec<CreateBetaWorkerResponse>;
9657
9581
 
9658
9582
  export type CreateBetaWorkerError = DefaultErrors | InvalidRoute;
9659
9583
 
@@ -9703,32 +9627,31 @@ export interface UpdateBetaWorkerRequest {
9703
9627
  tailConsumers?: { name: string }[];
9704
9628
  }
9705
9629
 
9706
- export const UpdateBetaWorkerRequest =
9707
- /*@__PURE__*/ Schema.suspend(() =>
9708
- Schema.Struct({
9709
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
9710
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9711
- name: Schema.String,
9712
- logpush: Schema.optional(Schema.Boolean),
9713
- observability: Schema.optional(Observability),
9714
- subdomain: Schema.optional(Subdomain),
9715
- tags: Schema.optional(Schema.Array(Schema.String)),
9716
- tailConsumers: Schema.optional(Schema.Array(TailConsumer)),
9717
- }).pipe(
9718
- Schema.encodeKeys({
9719
- name: "name",
9720
- logpush: "logpush",
9721
- observability: "observability",
9722
- subdomain: "subdomain",
9723
- tags: "tags",
9724
- tailConsumers: "tail_consumers",
9725
- }),
9726
- T.Http({
9727
- method: "PUT",
9728
- path: "/accounts/{account_id}/workers/workers/{workerId}",
9729
- }),
9730
- ),
9731
- ) as unknown as Schema.Codec<UpdateBetaWorkerRequest>;
9630
+ export const UpdateBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() =>
9631
+ Schema.Struct({
9632
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
9633
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9634
+ name: Schema.String,
9635
+ logpush: Schema.optional(Schema.Boolean),
9636
+ observability: Schema.optional(Observability),
9637
+ subdomain: Schema.optional(Subdomain),
9638
+ tags: Schema.optional(Schema.Array(Schema.String)),
9639
+ tailConsumers: Schema.optional(Schema.Array(TailConsumer)),
9640
+ }).pipe(
9641
+ Schema.encodeKeys({
9642
+ name: "name",
9643
+ logpush: "logpush",
9644
+ observability: "observability",
9645
+ subdomain: "subdomain",
9646
+ tags: "tags",
9647
+ tailConsumers: "tail_consumers",
9648
+ }),
9649
+ T.Http({
9650
+ method: "PUT",
9651
+ path: "/accounts/{account_id}/workers/workers/{workerId}",
9652
+ }),
9653
+ ),
9654
+ ) as unknown as Schema.Codec<UpdateBetaWorkerRequest>;
9732
9655
 
9733
9656
  export interface UpdateBetaWorkerResponse {
9734
9657
  /** ID of the referencing Worker. */
@@ -9737,13 +9660,12 @@ export interface UpdateBetaWorkerResponse {
9737
9660
  name: string;
9738
9661
  }
9739
9662
 
9740
- export const UpdateBetaWorkerResponse =
9741
- /*@__PURE__*/ Schema.suspend(() =>
9742
- Schema.Struct({
9743
- id: Schema.String,
9744
- name: Schema.String,
9745
- }).pipe(T.ResponsePath("result")),
9746
- ) as unknown as Schema.Codec<UpdateBetaWorkerResponse>;
9663
+ export const UpdateBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() =>
9664
+ Schema.Struct({
9665
+ id: Schema.String,
9666
+ name: Schema.String,
9667
+ }).pipe(T.ResponsePath("result")),
9668
+ ) as unknown as Schema.Codec<UpdateBetaWorkerResponse>;
9747
9669
 
9748
9670
  export type UpdateBetaWorkerError = DefaultErrors | WorkerNotFound;
9749
9671
 
@@ -9793,32 +9715,31 @@ export interface PatchBetaWorkerRequest {
9793
9715
  tailConsumers: { name: string }[];
9794
9716
  }
9795
9717
 
9796
- export const PatchBetaWorkerRequest =
9797
- /*@__PURE__*/ Schema.suspend(() =>
9798
- Schema.Struct({
9799
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
9800
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9801
- logpush: Schema.Boolean,
9802
- name: Schema.String,
9803
- observability: Observability,
9804
- subdomain: Subdomain,
9805
- tags: Schema.Array(Schema.String),
9806
- tailConsumers: Schema.Array(TailConsumer),
9807
- }).pipe(
9808
- Schema.encodeKeys({
9809
- logpush: "logpush",
9810
- name: "name",
9811
- observability: "observability",
9812
- subdomain: "subdomain",
9813
- tags: "tags",
9814
- tailConsumers: "tail_consumers",
9815
- }),
9816
- T.Http({
9817
- method: "PATCH",
9818
- path: "/accounts/{account_id}/workers/workers/{workerId}",
9819
- }),
9820
- ),
9821
- ) as unknown as Schema.Codec<PatchBetaWorkerRequest>;
9718
+ export const PatchBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() =>
9719
+ Schema.Struct({
9720
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
9721
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9722
+ logpush: Schema.Boolean,
9723
+ name: Schema.String,
9724
+ observability: Observability,
9725
+ subdomain: Subdomain,
9726
+ tags: Schema.Array(Schema.String),
9727
+ tailConsumers: Schema.Array(TailConsumer),
9728
+ }).pipe(
9729
+ Schema.encodeKeys({
9730
+ logpush: "logpush",
9731
+ name: "name",
9732
+ observability: "observability",
9733
+ subdomain: "subdomain",
9734
+ tags: "tags",
9735
+ tailConsumers: "tail_consumers",
9736
+ }),
9737
+ T.Http({
9738
+ method: "PATCH",
9739
+ path: "/accounts/{account_id}/workers/workers/{workerId}",
9740
+ }),
9741
+ ),
9742
+ ) as unknown as Schema.Codec<PatchBetaWorkerRequest>;
9822
9743
 
9823
9744
  export interface PatchBetaWorkerResponse {
9824
9745
  /** ID of the referencing Worker. */
@@ -9827,13 +9748,12 @@ export interface PatchBetaWorkerResponse {
9827
9748
  name: string;
9828
9749
  }
9829
9750
 
9830
- export const PatchBetaWorkerResponse =
9831
- /*@__PURE__*/ Schema.suspend(() =>
9832
- Schema.Struct({
9833
- id: Schema.String,
9834
- name: Schema.String,
9835
- }).pipe(T.ResponsePath("result")),
9836
- ) as unknown as Schema.Codec<PatchBetaWorkerResponse>;
9751
+ export const PatchBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() =>
9752
+ Schema.Struct({
9753
+ id: Schema.String,
9754
+ name: Schema.String,
9755
+ }).pipe(T.ResponsePath("result")),
9756
+ ) as unknown as Schema.Codec<PatchBetaWorkerResponse>;
9837
9757
 
9838
9758
  export type PatchBetaWorkerError = DefaultErrors | WorkerNotFound;
9839
9759
 
@@ -9854,18 +9774,17 @@ export interface DeleteBetaWorkerRequest {
9854
9774
  accountId: string;
9855
9775
  }
9856
9776
 
9857
- export const DeleteBetaWorkerRequest =
9858
- /*@__PURE__*/ Schema.suspend(() =>
9859
- Schema.Struct({
9860
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
9861
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9862
- }).pipe(
9863
- T.Http({
9864
- method: "DELETE",
9865
- path: "/accounts/{account_id}/workers/workers/{workerId}",
9866
- }),
9867
- ),
9868
- ) as unknown as Schema.Codec<DeleteBetaWorkerRequest>;
9777
+ export const DeleteBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() =>
9778
+ Schema.Struct({
9779
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
9780
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9781
+ }).pipe(
9782
+ T.Http({
9783
+ method: "DELETE",
9784
+ path: "/accounts/{account_id}/workers/workers/{workerId}",
9785
+ }),
9786
+ ),
9787
+ ) as unknown as Schema.Codec<DeleteBetaWorkerRequest>;
9869
9788
 
9870
9789
  export interface DeleteBetaWorkerResponse {
9871
9790
  errors: {
@@ -9884,14 +9803,13 @@ export interface DeleteBetaWorkerResponse {
9884
9803
  success: true;
9885
9804
  }
9886
9805
 
9887
- export const DeleteBetaWorkerResponse =
9888
- /*@__PURE__*/ Schema.suspend(() =>
9889
- Schema.Struct({
9890
- errors: Schema.Array(Error2),
9891
- messages: Schema.Array(Error2),
9892
- success: Schema.Literal(true),
9893
- }),
9894
- ) as unknown as Schema.Codec<DeleteBetaWorkerResponse>;
9806
+ export const DeleteBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() =>
9807
+ Schema.Struct({
9808
+ errors: Schema.Array(Error2),
9809
+ messages: Schema.Array(Error2),
9810
+ success: Schema.Literal(true),
9811
+ }),
9812
+ ) as unknown as Schema.Codec<DeleteBetaWorkerResponse>;
9895
9813
 
9896
9814
  export type DeleteBetaWorkerError = DefaultErrors | WorkerNotFound;
9897
9815
 
@@ -9919,22 +9837,21 @@ export interface GetBetaWorkerVersionRequest {
9919
9837
  include?: "modules";
9920
9838
  }
9921
9839
 
9922
- export const GetBetaWorkerVersionRequest =
9923
- /*@__PURE__*/ Schema.suspend(() =>
9924
- Schema.Struct({
9925
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
9926
- versionId: Schema.String.pipe(T.HttpPath("versionId")),
9927
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
9928
- include: Schema.optional(Schema.Literal("modules")).pipe(
9929
- T.HttpQuery("include"),
9930
- ),
9931
- }).pipe(
9932
- T.Http({
9933
- method: "GET",
9934
- path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
9935
- }),
9840
+ export const GetBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
9841
+ Schema.Struct({
9842
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
9843
+ versionId: Schema.String.pipe(T.HttpPath("versionId")),
9844
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
9845
+ include: Schema.optional(Schema.Literal("modules")).pipe(
9846
+ T.HttpQuery("include"),
9936
9847
  ),
9937
- ) as unknown as Schema.Codec<GetBetaWorkerVersionRequest>;
9848
+ }).pipe(
9849
+ T.Http({
9850
+ method: "GET",
9851
+ path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
9852
+ }),
9853
+ ),
9854
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionRequest>;
9938
9855
 
9939
9856
  export interface GetBetaWorkerVersionResponse {
9940
9857
  /** Version identifier. */
@@ -10173,136 +10090,131 @@ export interface GetBetaWorkerVersionResponse {
10173
10090
  usageModel?: "standard" | "bundled" | "unbound" | (string & {}) | null;
10174
10091
  }
10175
10092
 
10176
- export const GetBetaWorkerVersionResponse =
10177
- /*@__PURE__*/ Schema.suspend(() =>
10178
- Schema.Struct({
10179
- id: Schema.String,
10180
- createdOn: Schema.String,
10181
- number: Schema.Number,
10182
- urls: Schema.Array(Schema.String),
10183
- annotations: Schema.optional(Schema.Union([Annotations, Schema.Null])),
10184
- assets: Schema.optional(Schema.Union([Assets, Schema.Null])),
10185
- bindings: Schema.optional(
10186
- Schema.Union([
10187
- Schema.Array(
10188
- Schema.Union([
10189
- WorkersBindingKindSecretKey,
10190
- WorkersBindingKindRatelimit,
10191
- WorkersBindingKindSecretsStoreSecret,
10192
- WorkersBindingKindAISearch,
10193
- WorkersBindingKindAISearchNamespace,
10194
- WorkersBindingKindAnalyticsEngine,
10195
- WorkersBindingKindD1,
10196
- WorkersBindingKindDataBlob,
10197
- WorkersBindingKindDispatchNamespace,
10198
- WorkersBindingKindHyperdrive,
10199
- WorkersBindingKindJson,
10200
- WorkersBindingKindKVNamespace,
10201
- WorkersBindingKindMTLSCertificate,
10202
- WorkersBindingKindPlainText,
10203
- WorkersBindingKindPipelines,
10204
- WorkersBindingKindQueue,
10205
- WorkersBindingKindR2Bucket,
10206
- WorkersBindingKindService,
10207
- WorkersBindingKindTextBlob,
10208
- WorkersBindingKindVectorize,
10209
- WorkersBindingKindFlagship,
10210
- WorkersBindingKindWorkflow,
10211
- WorkersBindingKindWasmModule,
10212
- WorkersBindingKindVPCService,
10213
- GetBetaWorkerVersionResponseBinding36,
10214
- WorkersBindingKindAI,
10215
- WorkersBindingKindAssets,
10216
- WorkersBindingKindBrowser,
10217
- WorkersBindingKindDurableObjectNamespace,
10218
- WorkersBindingKindInherit,
10219
- WorkersBindingKindImages,
10220
- WorkersBindingKindMedia,
10221
- WorkersBindingKindSecretText,
10222
- WorkersBindingKindSendEmail,
10223
- WorkersBindingKindVersionMetadata,
10224
- WorkersBindingKindVPCNetwork,
10225
- GetBetaWorkerVersionResponseBinding35,
10226
- ]),
10227
- ),
10228
- Schema.Null,
10229
- ]),
10230
- ),
10231
- compatibilityDate: Schema.optional(
10232
- Schema.Union([Schema.String, Schema.Null]),
10233
- ),
10234
- compatibilityFlags: Schema.optional(
10235
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10236
- ),
10237
- containers: Schema.optional(
10238
- Schema.Union([Schema.Array(Container), Schema.Null]),
10239
- ),
10240
- limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
10241
- mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10242
- migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10243
- migrations: Schema.optional(
10244
- Schema.Union([
10245
- Schema.Union([Schema.Unknown, WorkersMultipleStepMigrations]),
10246
- Schema.Null,
10247
- ]),
10248
- ),
10249
- modules: Schema.optional(
10250
- Schema.Union([Schema.Array(Module), Schema.Null]),
10251
- ),
10252
- placement: Schema.optional(
10253
- Schema.Union([
10093
+ export const GetBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
10094
+ Schema.Struct({
10095
+ id: Schema.String,
10096
+ createdOn: Schema.String,
10097
+ number: Schema.Number,
10098
+ urls: Schema.Array(Schema.String),
10099
+ annotations: Schema.optional(Schema.Union([Annotations, Schema.Null])),
10100
+ assets: Schema.optional(Schema.Union([Assets, Schema.Null])),
10101
+ bindings: Schema.optional(
10102
+ Schema.Union([
10103
+ Schema.Array(
10254
10104
  Schema.Union([
10255
- GetBetaWorkerVersionResponsePlacement4,
10256
- GetBetaWorkerVersionResponsePlacement5,
10257
- GetBetaWorkerVersionResponsePlacement6,
10258
- GetBetaWorkerVersionResponsePlacement7,
10259
- Mode,
10260
- Region,
10261
- Hostname,
10262
- Host,
10105
+ WorkersBindingKindSecretKey,
10106
+ WorkersBindingKindRatelimit,
10107
+ WorkersBindingKindSecretsStoreSecret,
10108
+ WorkersBindingKindAISearch,
10109
+ WorkersBindingKindAISearchNamespace,
10110
+ WorkersBindingKindAnalyticsEngine,
10111
+ WorkersBindingKindD1,
10112
+ WorkersBindingKindDataBlob,
10113
+ WorkersBindingKindDispatchNamespace,
10114
+ WorkersBindingKindHyperdrive,
10115
+ WorkersBindingKindJson,
10116
+ WorkersBindingKindKVNamespace,
10117
+ WorkersBindingKindMTLSCertificate,
10118
+ WorkersBindingKindPlainText,
10119
+ WorkersBindingKindPipelines,
10120
+ WorkersBindingKindQueue,
10121
+ WorkersBindingKindR2Bucket,
10122
+ WorkersBindingKindService,
10123
+ WorkersBindingKindTextBlob,
10124
+ WorkersBindingKindVectorize,
10125
+ WorkersBindingKindFlagship,
10126
+ WorkersBindingKindWorkflow,
10127
+ WorkersBindingKindWasmModule,
10128
+ WorkersBindingKindVPCService,
10129
+ GetBetaWorkerVersionResponseBinding36,
10130
+ WorkersBindingKindAI,
10131
+ WorkersBindingKindAssets,
10132
+ WorkersBindingKindBrowser,
10133
+ WorkersBindingKindDurableObjectNamespace,
10134
+ WorkersBindingKindInherit,
10135
+ WorkersBindingKindImages,
10136
+ WorkersBindingKindMedia,
10137
+ WorkersBindingKindSecretText,
10138
+ WorkersBindingKindSendEmail,
10139
+ WorkersBindingKindVersionMetadata,
10140
+ WorkersBindingKindVPCNetwork,
10141
+ GetBetaWorkerVersionResponseBinding35,
10263
10142
  ]),
10264
- Schema.Null,
10143
+ ),
10144
+ Schema.Null,
10145
+ ]),
10146
+ ),
10147
+ compatibilityDate: Schema.optional(
10148
+ Schema.Union([Schema.String, Schema.Null]),
10149
+ ),
10150
+ compatibilityFlags: Schema.optional(
10151
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
10152
+ ),
10153
+ containers: Schema.optional(
10154
+ Schema.Union([Schema.Array(Container), Schema.Null]),
10155
+ ),
10156
+ limits: Schema.optional(Schema.Union([Limits, Schema.Null])),
10157
+ mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10158
+ migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10159
+ migrations: Schema.optional(
10160
+ Schema.Union([
10161
+ Schema.Union([Schema.Unknown, WorkersMultipleStepMigrations]),
10162
+ Schema.Null,
10163
+ ]),
10164
+ ),
10165
+ modules: Schema.optional(Schema.Union([Schema.Array(Module), Schema.Null])),
10166
+ placement: Schema.optional(
10167
+ Schema.Union([
10168
+ Schema.Union([
10169
+ GetBetaWorkerVersionResponsePlacement4,
10170
+ GetBetaWorkerVersionResponsePlacement5,
10171
+ GetBetaWorkerVersionResponsePlacement6,
10172
+ GetBetaWorkerVersionResponsePlacement7,
10173
+ Mode,
10174
+ Region,
10175
+ Hostname,
10176
+ Host,
10265
10177
  ]),
10266
- ),
10267
- source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10268
- startupTimeMs: Schema.optional(
10269
- Schema.Union([Schema.Number, Schema.Null]),
10270
- ),
10271
- usageModel: Schema.optional(
10178
+ Schema.Null,
10179
+ ]),
10180
+ ),
10181
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
10182
+ startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
10183
+ usageModel: Schema.optional(
10184
+ Schema.Union([
10272
10185
  Schema.Union([
10273
- Schema.Union([
10274
- Schema.Literals(["standard", "bundled", "unbound"]),
10275
- Schema.String,
10276
- ]),
10277
- Schema.Null,
10186
+ Schema.Literals(["standard", "bundled", "unbound"]),
10187
+ Schema.String,
10278
10188
  ]),
10279
- ),
10280
- })
10281
- .pipe(
10282
- Schema.encodeKeys({
10283
- id: "id",
10284
- createdOn: "created_on",
10285
- number: "number",
10286
- urls: "urls",
10287
- annotations: "annotations",
10288
- assets: "assets",
10289
- bindings: "bindings",
10290
- compatibilityDate: "compatibility_date",
10291
- compatibilityFlags: "compatibility_flags",
10292
- containers: "containers",
10293
- limits: "limits",
10294
- mainModule: "main_module",
10295
- migrationTag: "migration_tag",
10296
- migrations: "migrations",
10297
- modules: "modules",
10298
- placement: "placement",
10299
- source: "source",
10300
- startupTimeMs: "startup_time_ms",
10301
- usageModel: "usage_model",
10302
- }),
10303
- )
10304
- .pipe(T.ResponsePath("result")),
10305
- ) as unknown as Schema.Codec<GetBetaWorkerVersionResponse>;
10189
+ Schema.Null,
10190
+ ]),
10191
+ ),
10192
+ })
10193
+ .pipe(
10194
+ Schema.encodeKeys({
10195
+ id: "id",
10196
+ createdOn: "created_on",
10197
+ number: "number",
10198
+ urls: "urls",
10199
+ annotations: "annotations",
10200
+ assets: "assets",
10201
+ bindings: "bindings",
10202
+ compatibilityDate: "compatibility_date",
10203
+ compatibilityFlags: "compatibility_flags",
10204
+ containers: "containers",
10205
+ limits: "limits",
10206
+ mainModule: "main_module",
10207
+ migrationTag: "migration_tag",
10208
+ migrations: "migrations",
10209
+ modules: "modules",
10210
+ placement: "placement",
10211
+ source: "source",
10212
+ startupTimeMs: "startup_time_ms",
10213
+ usageModel: "usage_model",
10214
+ }),
10215
+ )
10216
+ .pipe(T.ResponsePath("result")),
10217
+ ) as unknown as Schema.Codec<GetBetaWorkerVersionResponse>;
10306
10218
 
10307
10219
  export type GetBetaWorkerVersionError =
10308
10220
  | DefaultErrors
@@ -10328,20 +10240,19 @@ export interface ListBetaWorkerVersionsRequest {
10328
10240
  perPage?: number;
10329
10241
  }
10330
10242
 
10331
- export const ListBetaWorkerVersionsRequest =
10332
- /*@__PURE__*/ Schema.suspend(() =>
10333
- Schema.Struct({
10334
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
10335
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
10336
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
10337
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
10338
- }).pipe(
10339
- T.Http({
10340
- method: "GET",
10341
- path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
10342
- }),
10343
- ),
10344
- ) as unknown as Schema.Codec<ListBetaWorkerVersionsRequest>;
10243
+ export const ListBetaWorkerVersionsRequest = /*@__PURE__*/ Schema.suspend(() =>
10244
+ Schema.Struct({
10245
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
10246
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
10247
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
10248
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
10249
+ }).pipe(
10250
+ T.Http({
10251
+ method: "GET",
10252
+ path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
10253
+ }),
10254
+ ),
10255
+ ) as unknown as Schema.Codec<ListBetaWorkerVersionsRequest>;
10345
10256
 
10346
10257
  export interface ListBetaWorkerVersionsResponse {
10347
10258
  result: {
@@ -10569,15 +10480,14 @@ export interface ListBetaWorkerVersionsResponse {
10569
10480
  } | null;
10570
10481
  }
10571
10482
 
10572
- export const ListBetaWorkerVersionsResponse =
10573
- /*@__PURE__*/ Schema.suspend(() =>
10574
- Schema.Struct({
10575
- result: Schema.Array(ListBetaWorkerVersionsResponseResult),
10576
- resultInfo: Schema.optional(
10577
- Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null]),
10578
- ),
10579
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
10580
- ) as unknown as Schema.Codec<ListBetaWorkerVersionsResponse>;
10483
+ export const ListBetaWorkerVersionsResponse = /*@__PURE__*/ Schema.suspend(() =>
10484
+ Schema.Struct({
10485
+ result: Schema.Array(ListBetaWorkerVersionsResponseResult),
10486
+ resultInfo: Schema.optional(
10487
+ Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null]),
10488
+ ),
10489
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
10490
+ ) as unknown as Schema.Codec<ListBetaWorkerVersionsResponse>;
10581
10491
 
10582
10492
  export type ListBetaWorkerVersionsError = DefaultErrors | WorkerNotFound;
10583
10493
 
@@ -10809,105 +10719,104 @@ export interface CreateBetaWorkerVersionRequest {
10809
10719
  usageModel?: "standard" | "bundled" | "unbound" | (string & {});
10810
10720
  }
10811
10721
 
10812
- export const CreateBetaWorkerVersionRequest =
10813
- /*@__PURE__*/ Schema.suspend(() =>
10814
- Schema.Struct({
10815
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
10816
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
10817
- deploy: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("deploy")),
10818
- annotations: Schema.optional(Annotations2),
10819
- assets: Schema.optional(Assets),
10820
- bindings: Schema.optional(
10821
- Schema.Array(
10822
- Schema.Union([
10823
- WorkersBindingKindSecretKey2,
10824
- WorkersBindingKindRatelimit,
10825
- WorkersBindingKindSecretsStoreSecret,
10826
- WorkersBindingKindWorkflow2,
10827
- WorkersBindingKindAISearch,
10828
- WorkersBindingKindAISearchNamespace,
10829
- WorkersBindingKindAnalyticsEngine,
10830
- WorkersBindingKindD1,
10831
- WorkersBindingKindDataBlob,
10832
- WorkersBindingKindDispatchNamespace,
10833
- WorkersBindingKindDurableObjectNamespace2,
10834
- WorkersBindingKindHyperdrive,
10835
- WorkersBindingKindJson,
10836
- WorkersBindingKindKVNamespace,
10837
- WorkersBindingKindMTLSCertificate,
10838
- WorkersBindingKindPlainText,
10839
- WorkersBindingKindPipelines,
10840
- WorkersBindingKindQueue,
10841
- WorkersBindingKindR2Bucket,
10842
- WorkersBindingKindSecretText2,
10843
- WorkersBindingKindService,
10844
- WorkersBindingKindTextBlob,
10845
- WorkersBindingKindVectorize,
10846
- WorkersBindingKindFlagship,
10847
- WorkersBindingKindWasmModule,
10848
- WorkersBindingKindVPCService,
10849
- GetBetaWorkerVersionResponseBinding36,
10850
- WorkersBindingKindAI,
10851
- WorkersBindingKindAssets,
10852
- WorkersBindingKindBrowser,
10853
- WorkersBindingKindInherit,
10854
- WorkersBindingKindImages,
10855
- WorkersBindingKindMedia,
10856
- WorkersBindingKindSendEmail,
10857
- WorkersBindingKindVersionMetadata,
10858
- WorkersBindingKindVPCNetwork,
10859
- GetBetaWorkerVersionResponseBinding35,
10860
- ]),
10861
- ),
10862
- ),
10863
- compatibilityDate: Schema.optional(Schema.String),
10864
- compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
10865
- containers: Schema.optional(Schema.Array(Container)),
10866
- limits: Schema.optional(Limits),
10867
- mainModule: Schema.optional(Schema.String),
10868
- migrations: Schema.optional(
10869
- Schema.Union([SingleStepMigrationParam, WorkersMultipleStepMigrations]),
10870
- ),
10871
- modules: Schema.optional(Schema.Array(Module)),
10872
- placement: Schema.optional(
10873
- Schema.Union([
10874
- GetBetaWorkerVersionResponsePlacement4,
10875
- GetBetaWorkerVersionResponsePlacement5,
10876
- GetBetaWorkerVersionResponsePlacement6,
10877
- GetBetaWorkerVersionResponsePlacement7,
10878
- Mode,
10879
- Region,
10880
- Hostname,
10881
- Host,
10882
- ]),
10883
- ),
10884
- usageModel: Schema.optional(
10722
+ export const CreateBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
10723
+ Schema.Struct({
10724
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
10725
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
10726
+ deploy: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("deploy")),
10727
+ annotations: Schema.optional(Annotations2),
10728
+ assets: Schema.optional(Assets),
10729
+ bindings: Schema.optional(
10730
+ Schema.Array(
10885
10731
  Schema.Union([
10886
- Schema.Literals(["standard", "bundled", "unbound"]),
10887
- Schema.String,
10732
+ WorkersBindingKindSecretKey2,
10733
+ WorkersBindingKindRatelimit,
10734
+ WorkersBindingKindSecretsStoreSecret,
10735
+ WorkersBindingKindWorkflow2,
10736
+ WorkersBindingKindAISearch,
10737
+ WorkersBindingKindAISearchNamespace,
10738
+ WorkersBindingKindAnalyticsEngine,
10739
+ WorkersBindingKindD1,
10740
+ WorkersBindingKindDataBlob,
10741
+ WorkersBindingKindDispatchNamespace,
10742
+ WorkersBindingKindDurableObjectNamespace2,
10743
+ WorkersBindingKindHyperdrive,
10744
+ WorkersBindingKindJson,
10745
+ WorkersBindingKindKVNamespace,
10746
+ WorkersBindingKindMTLSCertificate,
10747
+ WorkersBindingKindPlainText,
10748
+ WorkersBindingKindPipelines,
10749
+ WorkersBindingKindQueue,
10750
+ WorkersBindingKindR2Bucket,
10751
+ WorkersBindingKindSecretText2,
10752
+ WorkersBindingKindService,
10753
+ WorkersBindingKindTextBlob,
10754
+ WorkersBindingKindVectorize,
10755
+ WorkersBindingKindFlagship,
10756
+ WorkersBindingKindWasmModule,
10757
+ WorkersBindingKindVPCService,
10758
+ GetBetaWorkerVersionResponseBinding36,
10759
+ WorkersBindingKindAI,
10760
+ WorkersBindingKindAssets,
10761
+ WorkersBindingKindBrowser,
10762
+ WorkersBindingKindInherit,
10763
+ WorkersBindingKindImages,
10764
+ WorkersBindingKindMedia,
10765
+ WorkersBindingKindSendEmail,
10766
+ WorkersBindingKindVersionMetadata,
10767
+ WorkersBindingKindVPCNetwork,
10768
+ GetBetaWorkerVersionResponseBinding35,
10888
10769
  ]),
10889
10770
  ),
10890
- }).pipe(
10891
- Schema.encodeKeys({
10892
- annotations: "annotations",
10893
- assets: "assets",
10894
- bindings: "bindings",
10895
- compatibilityDate: "compatibility_date",
10896
- compatibilityFlags: "compatibility_flags",
10897
- containers: "containers",
10898
- limits: "limits",
10899
- mainModule: "main_module",
10900
- migrations: "migrations",
10901
- modules: "modules",
10902
- placement: "placement",
10903
- usageModel: "usage_model",
10904
- }),
10905
- T.Http({
10906
- method: "POST",
10907
- path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
10908
- }),
10909
10771
  ),
10910
- ) as unknown as Schema.Codec<CreateBetaWorkerVersionRequest>;
10772
+ compatibilityDate: Schema.optional(Schema.String),
10773
+ compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
10774
+ containers: Schema.optional(Schema.Array(Container)),
10775
+ limits: Schema.optional(Limits),
10776
+ mainModule: Schema.optional(Schema.String),
10777
+ migrations: Schema.optional(
10778
+ Schema.Union([SingleStepMigrationParam, WorkersMultipleStepMigrations]),
10779
+ ),
10780
+ modules: Schema.optional(Schema.Array(Module)),
10781
+ placement: Schema.optional(
10782
+ Schema.Union([
10783
+ GetBetaWorkerVersionResponsePlacement4,
10784
+ GetBetaWorkerVersionResponsePlacement5,
10785
+ GetBetaWorkerVersionResponsePlacement6,
10786
+ GetBetaWorkerVersionResponsePlacement7,
10787
+ Mode,
10788
+ Region,
10789
+ Hostname,
10790
+ Host,
10791
+ ]),
10792
+ ),
10793
+ usageModel: Schema.optional(
10794
+ Schema.Union([
10795
+ Schema.Literals(["standard", "bundled", "unbound"]),
10796
+ Schema.String,
10797
+ ]),
10798
+ ),
10799
+ }).pipe(
10800
+ Schema.encodeKeys({
10801
+ annotations: "annotations",
10802
+ assets: "assets",
10803
+ bindings: "bindings",
10804
+ compatibilityDate: "compatibility_date",
10805
+ compatibilityFlags: "compatibility_flags",
10806
+ containers: "containers",
10807
+ limits: "limits",
10808
+ mainModule: "main_module",
10809
+ migrations: "migrations",
10810
+ modules: "modules",
10811
+ placement: "placement",
10812
+ usageModel: "usage_model",
10813
+ }),
10814
+ T.Http({
10815
+ method: "POST",
10816
+ path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
10817
+ }),
10818
+ ),
10819
+ ) as unknown as Schema.Codec<CreateBetaWorkerVersionRequest>;
10911
10820
 
10912
10821
  export interface CreateBetaWorkerVersionResponse {
10913
10822
  /** Version identifier. */
@@ -11146,8 +11055,8 @@ export interface CreateBetaWorkerVersionResponse {
11146
11055
  usageModel?: "standard" | "bundled" | "unbound" | (string & {}) | null;
11147
11056
  }
11148
11057
 
11149
- export const CreateBetaWorkerVersionResponse =
11150
- /*@__PURE__*/ Schema.suspend(() =>
11058
+ export const CreateBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(
11059
+ () =>
11151
11060
  Schema.Struct({
11152
11061
  id: Schema.String,
11153
11062
  createdOn: Schema.String,
@@ -11275,7 +11184,7 @@ export const CreateBetaWorkerVersionResponse =
11275
11184
  }),
11276
11185
  )
11277
11186
  .pipe(T.ResponsePath("result")),
11278
- ) as unknown as Schema.Codec<CreateBetaWorkerVersionResponse>;
11187
+ ) as unknown as Schema.Codec<CreateBetaWorkerVersionResponse>;
11279
11188
 
11280
11189
  export type CreateBetaWorkerVersionError = DefaultErrors | WorkerNotFound;
11281
11190
 
@@ -11297,19 +11206,18 @@ export interface DeleteBetaWorkerVersionRequest {
11297
11206
  accountId: string;
11298
11207
  }
11299
11208
 
11300
- export const DeleteBetaWorkerVersionRequest =
11301
- /*@__PURE__*/ Schema.suspend(() =>
11302
- Schema.Struct({
11303
- workerId: Schema.String.pipe(T.HttpPath("workerId")),
11304
- versionId: Schema.String.pipe(T.HttpPath("versionId")),
11305
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
11306
- }).pipe(
11307
- T.Http({
11308
- method: "DELETE",
11309
- path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
11310
- }),
11311
- ),
11312
- ) as unknown as Schema.Codec<DeleteBetaWorkerVersionRequest>;
11209
+ export const DeleteBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
11210
+ Schema.Struct({
11211
+ workerId: Schema.String.pipe(T.HttpPath("workerId")),
11212
+ versionId: Schema.String.pipe(T.HttpPath("versionId")),
11213
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
11214
+ }).pipe(
11215
+ T.Http({
11216
+ method: "DELETE",
11217
+ path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
11218
+ }),
11219
+ ),
11220
+ ) as unknown as Schema.Codec<DeleteBetaWorkerVersionRequest>;
11313
11221
 
11314
11222
  export interface DeleteBetaWorkerVersionResponse {
11315
11223
  errors: {
@@ -11328,14 +11236,14 @@ export interface DeleteBetaWorkerVersionResponse {
11328
11236
  success: true;
11329
11237
  }
11330
11238
 
11331
- export const DeleteBetaWorkerVersionResponse =
11332
- /*@__PURE__*/ Schema.suspend(() =>
11239
+ export const DeleteBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(
11240
+ () =>
11333
11241
  Schema.Struct({
11334
11242
  errors: Schema.Array(Error2),
11335
11243
  messages: Schema.Array(Error2),
11336
11244
  success: Schema.Literal(true),
11337
11245
  }),
11338
- ) as unknown as Schema.Codec<DeleteBetaWorkerVersionResponse>;
11246
+ ) as unknown as Schema.Codec<DeleteBetaWorkerVersionResponse>;
11339
11247
 
11340
11248
  export type DeleteBetaWorkerVersionError =
11341
11249
  | DefaultErrors
@@ -11972,8 +11880,8 @@ export interface ListObservabilityQueriesRequest {
11972
11880
  perPage?: number;
11973
11881
  }
11974
11882
 
11975
- export const ListObservabilityQueriesRequest =
11976
- /*@__PURE__*/ Schema.suspend(() =>
11883
+ export const ListObservabilityQueriesRequest = /*@__PURE__*/ Schema.suspend(
11884
+ () =>
11977
11885
  Schema.Struct({
11978
11886
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
11979
11887
  order: Schema.optional(
@@ -11990,7 +11898,7 @@ export const ListObservabilityQueriesRequest =
11990
11898
  path: "/accounts/{account_id}/workers/observability/queries",
11991
11899
  }),
11992
11900
  ),
11993
- ) as unknown as Schema.Codec<ListObservabilityQueriesRequest>;
11901
+ ) as unknown as Schema.Codec<ListObservabilityQueriesRequest>;
11994
11902
 
11995
11903
  export interface ListObservabilityQueriesResponse {
11996
11904
  result: {
@@ -12133,12 +12041,12 @@ export interface ListObservabilityQueriesResponse {
12133
12041
  }[];
12134
12042
  }
12135
12043
 
12136
- export const ListObservabilityQueriesResponse =
12137
- /*@__PURE__*/ Schema.suspend(() =>
12044
+ export const ListObservabilityQueriesResponse = /*@__PURE__*/ Schema.suspend(
12045
+ () =>
12138
12046
  Schema.Struct({
12139
12047
  result: Schema.Array(ListObservabilityQueriesResponseResult),
12140
12048
  }),
12141
- ) as unknown as Schema.Codec<ListObservabilityQueriesResponse>;
12049
+ ) as unknown as Schema.Codec<ListObservabilityQueriesResponse>;
12142
12050
 
12143
12051
  export type ListObservabilityQueriesError = DefaultErrors;
12144
12052
 
@@ -12277,8 +12185,8 @@ export interface CreateObservabilityQueryRequest {
12277
12185
  };
12278
12186
  }
12279
12187
 
12280
- export const CreateObservabilityQueryRequest =
12281
- /*@__PURE__*/ Schema.suspend(() =>
12188
+ export const CreateObservabilityQueryRequest = /*@__PURE__*/ Schema.suspend(
12189
+ () =>
12282
12190
  Schema.Struct({
12283
12191
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
12284
12192
  description: Schema.Union([Schema.String, Schema.Null]),
@@ -12290,7 +12198,7 @@ export const CreateObservabilityQueryRequest =
12290
12198
  path: "/accounts/{account_id}/workers/observability/queries",
12291
12199
  }),
12292
12200
  ),
12293
- ) as unknown as Schema.Codec<CreateObservabilityQueryRequest>;
12201
+ ) as unknown as Schema.Codec<CreateObservabilityQueryRequest>;
12294
12202
 
12295
12203
  export interface CreateObservabilityQueryResponse {
12296
12204
  id: string;
@@ -12426,8 +12334,8 @@ export interface CreateObservabilityQueryResponse {
12426
12334
  updatedBy: string;
12427
12335
  }
12428
12336
 
12429
- export const CreateObservabilityQueryResponse =
12430
- /*@__PURE__*/ Schema.suspend(() =>
12337
+ export const CreateObservabilityQueryResponse = /*@__PURE__*/ Schema.suspend(
12338
+ () =>
12431
12339
  Schema.Struct({
12432
12340
  id: Schema.String,
12433
12341
  adhoc: Schema.Boolean,
@@ -12439,7 +12347,7 @@ export const CreateObservabilityQueryResponse =
12439
12347
  updated: Schema.String,
12440
12348
  updatedBy: Schema.String,
12441
12349
  }).pipe(T.ResponsePath("result")),
12442
- ) as unknown as Schema.Codec<CreateObservabilityQueryResponse>;
12350
+ ) as unknown as Schema.Codec<CreateObservabilityQueryResponse>;
12443
12351
 
12444
12352
  export type CreateObservabilityQueryError = DefaultErrors;
12445
12353
 
@@ -12466,8 +12374,8 @@ export interface GetObservabilitySharedQueryRequest {
12466
12374
  view?: "events" | "invocations" | "calculations" | (string & {});
12467
12375
  }
12468
12376
 
12469
- export const GetObservabilitySharedQueryRequest =
12470
- /*@__PURE__*/ Schema.suspend(() =>
12377
+ export const GetObservabilitySharedQueryRequest = /*@__PURE__*/ Schema.suspend(
12378
+ () =>
12471
12379
  Schema.Struct({
12472
12380
  id: Schema.String.pipe(T.HttpPath("id")),
12473
12381
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -12483,7 +12391,7 @@ export const GetObservabilitySharedQueryRequest =
12483
12391
  path: "/accounts/{account_id}/workers/observability/shared/query/{id}",
12484
12392
  }),
12485
12393
  ),
12486
- ) as unknown as Schema.Codec<GetObservabilitySharedQueryRequest>;
12394
+ ) as unknown as Schema.Codec<GetObservabilitySharedQueryRequest>;
12487
12395
 
12488
12396
  export interface GetObservabilitySharedQueryResponse {
12489
12397
  /** Represents a single execution of a query against Workers Observability data, including the query definition, execution status, and performance statistics. */
@@ -12888,8 +12796,8 @@ export interface GetObservabilitySharedQueryResponse {
12888
12796
  | null;
12889
12797
  }
12890
12798
 
12891
- export const GetObservabilitySharedQueryResponse =
12892
- /*@__PURE__*/ Schema.suspend(() =>
12799
+ export const GetObservabilitySharedQueryResponse = /*@__PURE__*/ Schema.suspend(
12800
+ () =>
12893
12801
  Schema.Struct({
12894
12802
  run: Run,
12895
12803
  statistics: Statistics,
@@ -12909,7 +12817,7 @@ export const GetObservabilitySharedQueryResponse =
12909
12817
  ),
12910
12818
  traces: Schema.optional(Schema.Union([Schema.Array(Trace), Schema.Null])),
12911
12819
  }).pipe(T.ResponsePath("result")),
12912
- ) as unknown as Schema.Codec<GetObservabilitySharedQueryResponse>;
12820
+ ) as unknown as Schema.Codec<GetObservabilitySharedQueryResponse>;
12913
12821
 
12914
12822
  export type GetObservabilitySharedQueryError = DefaultErrors;
12915
12823
 
@@ -13296,8 +13204,8 @@ export interface KeysObservabilityTelemetryRequest {
13296
13204
  to?: number;
13297
13205
  }
13298
13206
 
13299
- export const KeysObservabilityTelemetryRequest =
13300
- /*@__PURE__*/ Schema.suspend(() =>
13207
+ export const KeysObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(
13208
+ () =>
13301
13209
  Schema.Struct({
13302
13210
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
13303
13211
  datasets: Schema.optional(Schema.Array(Schema.String)),
@@ -13320,7 +13228,7 @@ export const KeysObservabilityTelemetryRequest =
13320
13228
  path: "/accounts/{account_id}/workers/observability/telemetry/keys",
13321
13229
  }),
13322
13230
  ),
13323
- ) as unknown as Schema.Codec<KeysObservabilityTelemetryRequest>;
13231
+ ) as unknown as Schema.Codec<KeysObservabilityTelemetryRequest>;
13324
13232
 
13325
13233
  export interface KeysObservabilityTelemetryResponse {
13326
13234
  result: {
@@ -13330,12 +13238,12 @@ export interface KeysObservabilityTelemetryResponse {
13330
13238
  }[];
13331
13239
  }
13332
13240
 
13333
- export const KeysObservabilityTelemetryResponse =
13334
- /*@__PURE__*/ Schema.suspend(() =>
13241
+ export const KeysObservabilityTelemetryResponse = /*@__PURE__*/ Schema.suspend(
13242
+ () =>
13335
13243
  Schema.Struct({
13336
13244
  result: Schema.Array(KeysObservabilityTelemetryResponseResult),
13337
13245
  }),
13338
- ) as unknown as Schema.Codec<KeysObservabilityTelemetryResponse>;
13246
+ ) as unknown as Schema.Codec<KeysObservabilityTelemetryResponse>;
13339
13247
 
13340
13248
  export type KeysObservabilityTelemetryError = DefaultErrors | InvalidRoute;
13341
13249
 
@@ -13545,8 +13453,8 @@ export interface QueryObservabilityTelemetryRequest {
13545
13453
  | (string & {});
13546
13454
  }
13547
13455
 
13548
- export const QueryObservabilityTelemetryRequest =
13549
- /*@__PURE__*/ Schema.suspend(() =>
13456
+ export const QueryObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(
13457
+ () =>
13550
13458
  Schema.Struct({
13551
13459
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
13552
13460
  queryId: Schema.String,
@@ -13580,7 +13488,7 @@ export const QueryObservabilityTelemetryRequest =
13580
13488
  path: "/accounts/{account_id}/workers/observability/telemetry/query",
13581
13489
  }),
13582
13490
  ),
13583
- ) as unknown as Schema.Codec<QueryObservabilityTelemetryRequest>;
13491
+ ) as unknown as Schema.Codec<QueryObservabilityTelemetryRequest>;
13584
13492
 
13585
13493
  export interface QueryObservabilityTelemetryResponse {
13586
13494
  /** Represents a single execution of a query against Workers Observability data, including the query definition, execution status, and performance statistics. */
@@ -13987,8 +13895,8 @@ export interface QueryObservabilityTelemetryResponse {
13987
13895
  | null;
13988
13896
  }
13989
13897
 
13990
- export const QueryObservabilityTelemetryResponse =
13991
- /*@__PURE__*/ Schema.suspend(() =>
13898
+ export const QueryObservabilityTelemetryResponse = /*@__PURE__*/ Schema.suspend(
13899
+ () =>
13992
13900
  Schema.Struct({
13993
13901
  run: Run2,
13994
13902
  statistics: Statistics,
@@ -14003,7 +13911,7 @@ export const QueryObservabilityTelemetryResponse =
14003
13911
  invocations: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
14004
13912
  traces: Schema.optional(Schema.Union([Schema.Array(Trace), Schema.Null])),
14005
13913
  }).pipe(T.ResponsePath("result")),
14006
- ) as unknown as Schema.Codec<QueryObservabilityTelemetryResponse>;
13914
+ ) as unknown as Schema.Codec<QueryObservabilityTelemetryResponse>;
14007
13915
 
14008
13916
  export type QueryObservabilityTelemetryError = DefaultErrors | InvalidRoute;
14009
13917
 
@@ -14129,8 +14037,8 @@ export interface ValuesObservabilityTelemetryRequest {
14129
14037
  };
14130
14038
  }
14131
14039
 
14132
- export const ValuesObservabilityTelemetryRequest =
14133
- /*@__PURE__*/ Schema.suspend(() =>
14040
+ export const ValuesObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(
14041
+ () =>
14134
14042
  Schema.Struct({
14135
14043
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
14136
14044
  datasets: Schema.Array(Schema.String),
@@ -14156,7 +14064,7 @@ export const ValuesObservabilityTelemetryRequest =
14156
14064
  path: "/accounts/{account_id}/workers/observability/telemetry/values",
14157
14065
  }),
14158
14066
  ),
14159
- ) as unknown as Schema.Codec<ValuesObservabilityTelemetryRequest>;
14067
+ ) as unknown as Schema.Codec<ValuesObservabilityTelemetryRequest>;
14160
14068
 
14161
14069
  export interface ValuesObservabilityTelemetryResponse {
14162
14070
  result: {
@@ -15365,19 +15273,18 @@ export interface CreateScriptAssetUploadRequest {
15365
15273
  manifest: Record<string, unknown>;
15366
15274
  }
15367
15275
 
15368
- export const CreateScriptAssetUploadRequest =
15369
- /*@__PURE__*/ Schema.suspend(() =>
15370
- Schema.Struct({
15371
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15372
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
15373
- manifest: Schema.Record(Schema.String, Schema.Unknown),
15374
- }).pipe(
15375
- T.Http({
15376
- method: "POST",
15377
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/assets-upload-session",
15378
- }),
15379
- ),
15380
- ) as unknown as Schema.Codec<CreateScriptAssetUploadRequest>;
15276
+ export const CreateScriptAssetUploadRequest = /*@__PURE__*/ Schema.suspend(() =>
15277
+ Schema.Struct({
15278
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15279
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15280
+ manifest: Schema.Record(Schema.String, Schema.Unknown),
15281
+ }).pipe(
15282
+ T.Http({
15283
+ method: "POST",
15284
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/assets-upload-session",
15285
+ }),
15286
+ ),
15287
+ ) as unknown as Schema.Codec<CreateScriptAssetUploadRequest>;
15381
15288
 
15382
15289
  export interface CreateScriptAssetUploadResponse {
15383
15290
  /** The requests to make to upload assets. */
@@ -15386,15 +15293,15 @@ export interface CreateScriptAssetUploadResponse {
15386
15293
  jwt?: string | null;
15387
15294
  }
15388
15295
 
15389
- export const CreateScriptAssetUploadResponse =
15390
- /*@__PURE__*/ Schema.suspend(() =>
15296
+ export const CreateScriptAssetUploadResponse = /*@__PURE__*/ Schema.suspend(
15297
+ () =>
15391
15298
  Schema.Struct({
15392
15299
  buckets: Schema.optional(
15393
15300
  Schema.Union([Schema.Array(Schema.Array(Schema.String)), Schema.Null]),
15394
15301
  ),
15395
15302
  jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15396
15303
  }).pipe(T.ResponsePath("result")),
15397
- ) as unknown as Schema.Codec<CreateScriptAssetUploadResponse>;
15304
+ ) as unknown as Schema.Codec<CreateScriptAssetUploadResponse>;
15398
15305
 
15399
15306
  export type CreateScriptAssetUploadError = DefaultErrors;
15400
15307
 
@@ -15419,25 +15326,23 @@ export interface GetScriptContentRequest {
15419
15326
  accountId: string;
15420
15327
  }
15421
15328
 
15422
- export const GetScriptContentRequest =
15423
- /*@__PURE__*/ Schema.suspend(() =>
15424
- Schema.Struct({
15425
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15426
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
15427
- }).pipe(
15428
- T.Http({
15429
- method: "GET",
15430
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/content/v2",
15431
- }),
15432
- ),
15433
- ) as unknown as Schema.Codec<GetScriptContentRequest>;
15329
+ export const GetScriptContentRequest = /*@__PURE__*/ Schema.suspend(() =>
15330
+ Schema.Struct({
15331
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15332
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15333
+ }).pipe(
15334
+ T.Http({
15335
+ method: "GET",
15336
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/content/v2",
15337
+ }),
15338
+ ),
15339
+ ) as unknown as Schema.Codec<GetScriptContentRequest>;
15434
15340
 
15435
15341
  export type GetScriptContentResponse = unknown;
15436
15342
 
15437
- export const GetScriptContentResponse =
15438
- /*@__PURE__*/ Schema.suspend(
15439
- () => Schema.Unknown,
15440
- ) as unknown as Schema.Codec<GetScriptContentResponse>;
15343
+ export const GetScriptContentResponse = /*@__PURE__*/ Schema.suspend(
15344
+ () => Schema.Unknown,
15345
+ ) as unknown as Schema.Codec<GetScriptContentResponse>;
15441
15346
 
15442
15347
  export type GetScriptContentError = DefaultErrors | WorkerNotFound;
15443
15348
 
@@ -15466,29 +15371,28 @@ export interface PutScriptContentRequest {
15466
15371
  files?: (File | Blob)[];
15467
15372
  }
15468
15373
 
15469
- export const PutScriptContentRequest =
15470
- /*@__PURE__*/ Schema.suspend(() =>
15471
- Schema.Struct({
15472
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15473
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
15474
- cfworkerbodypart: Schema.optional(Schema.String).pipe(
15475
- T.HttpHeader("CF-WORKER-BODY-PART"),
15476
- ),
15477
- cfworkermainmodulepart: Schema.optional(Schema.String).pipe(
15478
- T.HttpHeader("CF-WORKER-MAIN-MODULE-PART"),
15479
- ),
15480
- metadata: Metadata3,
15481
- files: Schema.optional(
15482
- Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
15483
- ),
15484
- }).pipe(
15485
- T.Http({
15486
- method: "PUT",
15487
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/content",
15488
- contentType: "multipart",
15489
- }),
15374
+ export const PutScriptContentRequest = /*@__PURE__*/ Schema.suspend(() =>
15375
+ Schema.Struct({
15376
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15377
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15378
+ cfworkerbodypart: Schema.optional(Schema.String).pipe(
15379
+ T.HttpHeader("CF-WORKER-BODY-PART"),
15490
15380
  ),
15491
- ) as unknown as Schema.Codec<PutScriptContentRequest>;
15381
+ cfworkermainmodulepart: Schema.optional(Schema.String).pipe(
15382
+ T.HttpHeader("CF-WORKER-MAIN-MODULE-PART"),
15383
+ ),
15384
+ metadata: Metadata3,
15385
+ files: Schema.optional(
15386
+ Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
15387
+ ),
15388
+ }).pipe(
15389
+ T.Http({
15390
+ method: "PUT",
15391
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/content",
15392
+ contentType: "multipart",
15393
+ }),
15394
+ ),
15395
+ ) as unknown as Schema.Codec<PutScriptContentRequest>;
15492
15396
 
15493
15397
  export interface PutScriptContentResponse {
15494
15398
  /** The name used to identify the script. */
@@ -15652,113 +15556,110 @@ export interface PutScriptContentResponse {
15652
15556
  usageModel?: "standard" | "bundled" | "unbound" | (string & {}) | null;
15653
15557
  }
15654
15558
 
15655
- export const PutScriptContentResponse =
15656
- /*@__PURE__*/ Schema.suspend(() =>
15657
- Schema.Struct({
15658
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15659
- compatibilityDate: Schema.optional(
15660
- Schema.Union([Schema.String, Schema.Null]),
15661
- ),
15662
- compatibilityFlags: Schema.optional(
15663
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
15664
- ),
15665
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15666
- etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15667
- handlers: Schema.optional(
15668
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
15669
- ),
15670
- hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
15671
- hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
15672
- lastDeployedFrom: Schema.optional(
15673
- Schema.Union([Schema.String, Schema.Null]),
15674
- ),
15675
- logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
15676
- migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15677
- modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15678
- namedHandlers: Schema.optional(
15679
- Schema.Union([Schema.Array(NamedHandler), Schema.Null]),
15680
- ),
15681
- observability: Schema.optional(
15682
- Schema.Union([Observability2, Schema.Null]),
15683
- ),
15684
- placement: Schema.optional(
15685
- Schema.Union([
15686
- Schema.Union([
15687
- ListScriptsResponseResultPlacement4,
15688
- ListScriptsResponseResultPlacement5,
15689
- ListScriptsResponseResultPlacement6,
15690
- ListScriptsResponseResultPlacement7,
15691
- ListScriptsResponseResultPlacement,
15692
- ListScriptsResponseResultPlacement1,
15693
- ListScriptsResponseResultPlacement2,
15694
- ListScriptsResponseResultPlacement3,
15695
- ]),
15696
- Schema.Null,
15697
- ]),
15698
- ),
15699
- placementMode: Schema.optional(
15559
+ export const PutScriptContentResponse = /*@__PURE__*/ Schema.suspend(() =>
15560
+ Schema.Struct({
15561
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15562
+ compatibilityDate: Schema.optional(
15563
+ Schema.Union([Schema.String, Schema.Null]),
15564
+ ),
15565
+ compatibilityFlags: Schema.optional(
15566
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
15567
+ ),
15568
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15569
+ etag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15570
+ handlers: Schema.optional(
15571
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
15572
+ ),
15573
+ hasAssets: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
15574
+ hasModules: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
15575
+ lastDeployedFrom: Schema.optional(
15576
+ Schema.Union([Schema.String, Schema.Null]),
15577
+ ),
15578
+ logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
15579
+ migrationTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15580
+ modifiedOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15581
+ namedHandlers: Schema.optional(
15582
+ Schema.Union([Schema.Array(NamedHandler), Schema.Null]),
15583
+ ),
15584
+ observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
15585
+ placement: Schema.optional(
15586
+ Schema.Union([
15700
15587
  Schema.Union([
15701
- Schema.Union([Schema.Literals(["smart", "targeted"]), Schema.String]),
15702
- Schema.Null,
15703
- ]),
15704
- ),
15705
- placementStatus: Schema.optional(
15588
+ ListScriptsResponseResultPlacement4,
15589
+ ListScriptsResponseResultPlacement5,
15590
+ ListScriptsResponseResultPlacement6,
15591
+ ListScriptsResponseResultPlacement7,
15592
+ ListScriptsResponseResultPlacement,
15593
+ ListScriptsResponseResultPlacement1,
15594
+ ListScriptsResponseResultPlacement2,
15595
+ ListScriptsResponseResultPlacement3,
15596
+ ]),
15597
+ Schema.Null,
15598
+ ]),
15599
+ ),
15600
+ placementMode: Schema.optional(
15601
+ Schema.Union([
15602
+ Schema.Union([Schema.Literals(["smart", "targeted"]), Schema.String]),
15603
+ Schema.Null,
15604
+ ]),
15605
+ ),
15606
+ placementStatus: Schema.optional(
15607
+ Schema.Union([
15706
15608
  Schema.Union([
15707
- Schema.Union([
15708
- Schema.Literals([
15709
- "SUCCESS",
15710
- "UNSUPPORTED_APPLICATION",
15711
- "INSUFFICIENT_INVOCATIONS",
15712
- ]),
15713
- Schema.String,
15609
+ Schema.Literals([
15610
+ "SUCCESS",
15611
+ "UNSUPPORTED_APPLICATION",
15612
+ "INSUFFICIENT_INVOCATIONS",
15714
15613
  ]),
15715
- Schema.Null,
15614
+ Schema.String,
15716
15615
  ]),
15717
- ),
15718
- tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15719
- tags: Schema.optional(
15720
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
15721
- ),
15722
- tailConsumers: Schema.optional(
15723
- Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
15724
- ),
15725
- usageModel: Schema.optional(
15616
+ Schema.Null,
15617
+ ]),
15618
+ ),
15619
+ tag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15620
+ tags: Schema.optional(
15621
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
15622
+ ),
15623
+ tailConsumers: Schema.optional(
15624
+ Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
15625
+ ),
15626
+ usageModel: Schema.optional(
15627
+ Schema.Union([
15726
15628
  Schema.Union([
15727
- Schema.Union([
15728
- Schema.Literals(["standard", "bundled", "unbound"]),
15729
- Schema.String,
15730
- ]),
15731
- Schema.Null,
15629
+ Schema.Literals(["standard", "bundled", "unbound"]),
15630
+ Schema.String,
15732
15631
  ]),
15733
- ),
15734
- })
15735
- .pipe(
15736
- Schema.encodeKeys({
15737
- id: "id",
15738
- compatibilityDate: "compatibility_date",
15739
- compatibilityFlags: "compatibility_flags",
15740
- createdOn: "created_on",
15741
- etag: "etag",
15742
- handlers: "handlers",
15743
- hasAssets: "has_assets",
15744
- hasModules: "has_modules",
15745
- lastDeployedFrom: "last_deployed_from",
15746
- logpush: "logpush",
15747
- migrationTag: "migration_tag",
15748
- modifiedOn: "modified_on",
15749
- namedHandlers: "named_handlers",
15750
- observability: "observability",
15751
- placement: "placement",
15752
- placementMode: "placement_mode",
15753
- placementStatus: "placement_status",
15754
- tag: "tag",
15755
- tags: "tags",
15756
- tailConsumers: "tail_consumers",
15757
- usageModel: "usage_model",
15758
- }),
15759
- )
15760
- .pipe(T.ResponsePath("result")),
15761
- ) as unknown as Schema.Codec<PutScriptContentResponse>;
15632
+ Schema.Null,
15633
+ ]),
15634
+ ),
15635
+ })
15636
+ .pipe(
15637
+ Schema.encodeKeys({
15638
+ id: "id",
15639
+ compatibilityDate: "compatibility_date",
15640
+ compatibilityFlags: "compatibility_flags",
15641
+ createdOn: "created_on",
15642
+ etag: "etag",
15643
+ handlers: "handlers",
15644
+ hasAssets: "has_assets",
15645
+ hasModules: "has_modules",
15646
+ lastDeployedFrom: "last_deployed_from",
15647
+ logpush: "logpush",
15648
+ migrationTag: "migration_tag",
15649
+ modifiedOn: "modified_on",
15650
+ namedHandlers: "named_handlers",
15651
+ observability: "observability",
15652
+ placement: "placement",
15653
+ placementMode: "placement_mode",
15654
+ placementStatus: "placement_status",
15655
+ tag: "tag",
15656
+ tags: "tags",
15657
+ tailConsumers: "tail_consumers",
15658
+ usageModel: "usage_model",
15659
+ }),
15660
+ )
15661
+ .pipe(T.ResponsePath("result")),
15662
+ ) as unknown as Schema.Codec<PutScriptContentResponse>;
15762
15663
 
15763
15664
  export type PutScriptContentError =
15764
15665
  | DefaultErrors
@@ -15794,19 +15695,18 @@ export interface GetScriptDeploymentRequest {
15794
15695
  accountId: string;
15795
15696
  }
15796
15697
 
15797
- export const GetScriptDeploymentRequest =
15798
- /*@__PURE__*/ Schema.suspend(() =>
15799
- Schema.Struct({
15800
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15801
- deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
15802
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
15803
- }).pipe(
15804
- T.Http({
15805
- method: "GET",
15806
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
15807
- }),
15808
- ),
15809
- ) as unknown as Schema.Codec<GetScriptDeploymentRequest>;
15698
+ export const GetScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() =>
15699
+ Schema.Struct({
15700
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15701
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
15702
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15703
+ }).pipe(
15704
+ T.Http({
15705
+ method: "GET",
15706
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
15707
+ }),
15708
+ ),
15709
+ ) as unknown as Schema.Codec<GetScriptDeploymentRequest>;
15810
15710
 
15811
15711
  export interface GetScriptDeploymentResponse {
15812
15712
  id: string;
@@ -15821,30 +15721,29 @@ export interface GetScriptDeploymentResponse {
15821
15721
  authorEmail?: string | null;
15822
15722
  }
15823
15723
 
15824
- export const GetScriptDeploymentResponse =
15825
- /*@__PURE__*/ Schema.suspend(() =>
15826
- Schema.Struct({
15827
- id: Schema.String,
15828
- createdOn: Schema.String,
15829
- source: Schema.String,
15830
- strategy: Schema.Literal("percentage"),
15831
- versions: Schema.Array(Version),
15832
- annotations: Schema.optional(Schema.Union([Annotations3, Schema.Null])),
15833
- authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15834
- })
15835
- .pipe(
15836
- Schema.encodeKeys({
15837
- id: "id",
15838
- createdOn: "created_on",
15839
- source: "source",
15840
- strategy: "strategy",
15841
- versions: "versions",
15842
- annotations: "annotations",
15843
- authorEmail: "author_email",
15844
- }),
15845
- )
15846
- .pipe(T.ResponsePath("result")),
15847
- ) as unknown as Schema.Codec<GetScriptDeploymentResponse>;
15724
+ export const GetScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() =>
15725
+ Schema.Struct({
15726
+ id: Schema.String,
15727
+ createdOn: Schema.String,
15728
+ source: Schema.String,
15729
+ strategy: Schema.Literal("percentage"),
15730
+ versions: Schema.Array(Version),
15731
+ annotations: Schema.optional(Schema.Union([Annotations3, Schema.Null])),
15732
+ authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15733
+ })
15734
+ .pipe(
15735
+ Schema.encodeKeys({
15736
+ id: "id",
15737
+ createdOn: "created_on",
15738
+ source: "source",
15739
+ strategy: "strategy",
15740
+ versions: "versions",
15741
+ annotations: "annotations",
15742
+ authorEmail: "author_email",
15743
+ }),
15744
+ )
15745
+ .pipe(T.ResponsePath("result")),
15746
+ ) as unknown as Schema.Codec<GetScriptDeploymentResponse>;
15848
15747
 
15849
15748
  export type GetScriptDeploymentError =
15850
15749
  | DefaultErrors
@@ -15868,18 +15767,17 @@ export interface ListScriptDeploymentsRequest {
15868
15767
  accountId: string;
15869
15768
  }
15870
15769
 
15871
- export const ListScriptDeploymentsRequest =
15872
- /*@__PURE__*/ Schema.suspend(() =>
15873
- Schema.Struct({
15874
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15875
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
15876
- }).pipe(
15877
- T.Http({
15878
- method: "GET",
15879
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
15880
- }),
15881
- ),
15882
- ) as unknown as Schema.Codec<ListScriptDeploymentsRequest>;
15770
+ export const ListScriptDeploymentsRequest = /*@__PURE__*/ Schema.suspend(() =>
15771
+ Schema.Struct({
15772
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15773
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15774
+ }).pipe(
15775
+ T.Http({
15776
+ method: "GET",
15777
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
15778
+ }),
15779
+ ),
15780
+ ) as unknown as Schema.Codec<ListScriptDeploymentsRequest>;
15883
15781
 
15884
15782
  export interface ListScriptDeploymentsResponse {
15885
15783
  deployments: {
@@ -15896,12 +15794,11 @@ export interface ListScriptDeploymentsResponse {
15896
15794
  }[];
15897
15795
  }
15898
15796
 
15899
- export const ListScriptDeploymentsResponse =
15900
- /*@__PURE__*/ Schema.suspend(() =>
15901
- Schema.Struct({
15902
- deployments: Schema.Array(Deployment),
15903
- }).pipe(T.ResponsePath("result")),
15904
- ) as unknown as Schema.Codec<ListScriptDeploymentsResponse>;
15797
+ export const ListScriptDeploymentsResponse = /*@__PURE__*/ Schema.suspend(() =>
15798
+ Schema.Struct({
15799
+ deployments: Schema.Array(Deployment),
15800
+ }).pipe(T.ResponsePath("result")),
15801
+ ) as unknown as Schema.Codec<ListScriptDeploymentsResponse>;
15905
15802
 
15906
15803
  export type ListScriptDeploymentsError = DefaultErrors | WorkerNotFound;
15907
15804
 
@@ -15930,22 +15827,21 @@ export interface CreateScriptDeploymentRequest {
15930
15827
  annotations?: { workersMessage?: string };
15931
15828
  }
15932
15829
 
15933
- export const CreateScriptDeploymentRequest =
15934
- /*@__PURE__*/ Schema.suspend(() =>
15935
- Schema.Struct({
15936
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15937
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
15938
- force: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("force")),
15939
- strategy: Schema.Literal("percentage"),
15940
- versions: Schema.Array(Version),
15941
- annotations: Schema.optional(Annotations4),
15942
- }).pipe(
15943
- T.Http({
15944
- method: "POST",
15945
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
15946
- }),
15947
- ),
15948
- ) as unknown as Schema.Codec<CreateScriptDeploymentRequest>;
15830
+ export const CreateScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() =>
15831
+ Schema.Struct({
15832
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15833
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15834
+ force: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("force")),
15835
+ strategy: Schema.Literal("percentage"),
15836
+ versions: Schema.Array(Version),
15837
+ annotations: Schema.optional(Annotations4),
15838
+ }).pipe(
15839
+ T.Http({
15840
+ method: "POST",
15841
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
15842
+ }),
15843
+ ),
15844
+ ) as unknown as Schema.Codec<CreateScriptDeploymentRequest>;
15949
15845
 
15950
15846
  export interface CreateScriptDeploymentResponse {
15951
15847
  id: string;
@@ -15960,34 +15856,33 @@ export interface CreateScriptDeploymentResponse {
15960
15856
  authorEmail?: string | null;
15961
15857
  }
15962
15858
 
15963
- export const CreateScriptDeploymentResponse =
15964
- /*@__PURE__*/ Schema.suspend(() =>
15965
- Schema.Struct({
15966
- id: Schema.String,
15967
- createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15968
- source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15969
- strategy: Schema.optional(
15970
- Schema.Union([Schema.Literal("percentage"), Schema.Null]),
15971
- ),
15972
- versions: Schema.optional(
15973
- Schema.Union([Schema.Array(Version), Schema.Null]),
15974
- ),
15975
- annotations: Schema.optional(Schema.Union([Annotations3, Schema.Null])),
15976
- authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15977
- })
15978
- .pipe(
15979
- Schema.encodeKeys({
15980
- id: "id",
15981
- createdOn: "created_on",
15982
- source: "source",
15983
- strategy: "strategy",
15984
- versions: "versions",
15985
- annotations: "annotations",
15986
- authorEmail: "author_email",
15987
- }),
15988
- )
15989
- .pipe(T.ResponsePath("result")),
15990
- ) as unknown as Schema.Codec<CreateScriptDeploymentResponse>;
15859
+ export const CreateScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() =>
15860
+ Schema.Struct({
15861
+ id: Schema.String,
15862
+ createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15863
+ source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15864
+ strategy: Schema.optional(
15865
+ Schema.Union([Schema.Literal("percentage"), Schema.Null]),
15866
+ ),
15867
+ versions: Schema.optional(
15868
+ Schema.Union([Schema.Array(Version), Schema.Null]),
15869
+ ),
15870
+ annotations: Schema.optional(Schema.Union([Annotations3, Schema.Null])),
15871
+ authorEmail: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
15872
+ })
15873
+ .pipe(
15874
+ Schema.encodeKeys({
15875
+ id: "id",
15876
+ createdOn: "created_on",
15877
+ source: "source",
15878
+ strategy: "strategy",
15879
+ versions: "versions",
15880
+ annotations: "annotations",
15881
+ authorEmail: "author_email",
15882
+ }),
15883
+ )
15884
+ .pipe(T.ResponsePath("result")),
15885
+ ) as unknown as Schema.Codec<CreateScriptDeploymentResponse>;
15991
15886
 
15992
15887
  export type CreateScriptDeploymentError = DefaultErrors | WorkerNotFound;
15993
15888
 
@@ -16009,19 +15904,18 @@ export interface DeleteScriptDeploymentRequest {
16009
15904
  accountId: string;
16010
15905
  }
16011
15906
 
16012
- export const DeleteScriptDeploymentRequest =
16013
- /*@__PURE__*/ Schema.suspend(() =>
16014
- Schema.Struct({
16015
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
16016
- deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
16017
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
16018
- }).pipe(
16019
- T.Http({
16020
- method: "DELETE",
16021
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
16022
- }),
16023
- ),
16024
- ) as unknown as Schema.Codec<DeleteScriptDeploymentRequest>;
15907
+ export const DeleteScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() =>
15908
+ Schema.Struct({
15909
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
15910
+ deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
15911
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
15912
+ }).pipe(
15913
+ T.Http({
15914
+ method: "DELETE",
15915
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
15916
+ }),
15917
+ ),
15918
+ ) as unknown as Schema.Codec<DeleteScriptDeploymentRequest>;
16025
15919
 
16026
15920
  export interface DeleteScriptDeploymentResponse {
16027
15921
  errors: {
@@ -16040,14 +15934,13 @@ export interface DeleteScriptDeploymentResponse {
16040
15934
  success: true;
16041
15935
  }
16042
15936
 
16043
- export const DeleteScriptDeploymentResponse =
16044
- /*@__PURE__*/ Schema.suspend(() =>
16045
- Schema.Struct({
16046
- errors: Schema.Array(Error2),
16047
- messages: Schema.Array(Error2),
16048
- success: Schema.Literal(true),
16049
- }),
16050
- ) as unknown as Schema.Codec<DeleteScriptDeploymentResponse>;
15937
+ export const DeleteScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() =>
15938
+ Schema.Struct({
15939
+ errors: Schema.Array(Error2),
15940
+ messages: Schema.Array(Error2),
15941
+ success: Schema.Literal(true),
15942
+ }),
15943
+ ) as unknown as Schema.Codec<DeleteScriptDeploymentResponse>;
16051
15944
 
16052
15945
  export type DeleteScriptDeploymentError =
16053
15946
  | DefaultErrors
@@ -16269,37 +16162,36 @@ export interface CreateScriptEdgePreviewRequest {
16269
16162
  | { routes: string[]; minimalMode?: boolean };
16270
16163
  }
16271
16164
 
16272
- export const CreateScriptEdgePreviewRequest =
16273
- /*@__PURE__*/ Schema.suspend(() =>
16274
- Schema.Struct({
16275
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
16276
- scriptName: Schema.String.pipe(T.HttpPath("script_name")),
16277
- cfPreviewUploadConfigToken: Schema.String.pipe(
16278
- T.HttpHeader("cf-preview-upload-config-token"),
16279
- ),
16280
- metadata: Schema.optional(CreateScriptEdgePreviewRequestMetadata),
16281
- files: Schema.optional(
16282
- Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
16283
- ),
16284
- wranglerSessionConfig: Schema.optional(
16285
- Schema.Union([
16286
- CreateScriptEdgePreviewRequestWranglerSessionConfig,
16287
- CreateScriptEdgePreviewRequestWranglerSessionConfig1,
16288
- ]),
16289
- ),
16290
- }).pipe(
16291
- Schema.encodeKeys({
16292
- metadata: "metadata",
16293
- files: "files",
16294
- wranglerSessionConfig: "wrangler-session-config",
16295
- }),
16296
- T.Http({
16297
- method: "POST",
16298
- path: "/accounts/{account_id}/workers/scripts/{script_name}/edge-preview",
16299
- contentType: "multipart",
16300
- }),
16165
+ export const CreateScriptEdgePreviewRequest = /*@__PURE__*/ Schema.suspend(() =>
16166
+ Schema.Struct({
16167
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
16168
+ scriptName: Schema.String.pipe(T.HttpPath("script_name")),
16169
+ cfPreviewUploadConfigToken: Schema.String.pipe(
16170
+ T.HttpHeader("cf-preview-upload-config-token"),
16171
+ ),
16172
+ metadata: Schema.optional(CreateScriptEdgePreviewRequestMetadata),
16173
+ files: Schema.optional(
16174
+ Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
16175
+ ),
16176
+ wranglerSessionConfig: Schema.optional(
16177
+ Schema.Union([
16178
+ CreateScriptEdgePreviewRequestWranglerSessionConfig,
16179
+ CreateScriptEdgePreviewRequestWranglerSessionConfig1,
16180
+ ]),
16301
16181
  ),
16302
- ) as unknown as Schema.Codec<CreateScriptEdgePreviewRequest>;
16182
+ }).pipe(
16183
+ Schema.encodeKeys({
16184
+ metadata: "metadata",
16185
+ files: "files",
16186
+ wranglerSessionConfig: "wrangler-session-config",
16187
+ }),
16188
+ T.Http({
16189
+ method: "POST",
16190
+ path: "/accounts/{account_id}/workers/scripts/{script_name}/edge-preview",
16191
+ contentType: "multipart",
16192
+ }),
16193
+ ),
16194
+ ) as unknown as Schema.Codec<CreateScriptEdgePreviewRequest>;
16303
16195
 
16304
16196
  export interface CreateScriptEdgePreviewResponse {
16305
16197
  /** Token to send as cf-workers-preview-token header when making requests to the preview host. */
@@ -16308,8 +16200,8 @@ export interface CreateScriptEdgePreviewResponse {
16308
16200
  tailUrl?: string | null;
16309
16201
  }
16310
16202
 
16311
- export const CreateScriptEdgePreviewResponse =
16312
- /*@__PURE__*/ Schema.suspend(() =>
16203
+ export const CreateScriptEdgePreviewResponse = /*@__PURE__*/ Schema.suspend(
16204
+ () =>
16313
16205
  Schema.Struct({
16314
16206
  previewToken: Schema.String,
16315
16207
  tailUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -16321,7 +16213,7 @@ export const CreateScriptEdgePreviewResponse =
16321
16213
  }),
16322
16214
  )
16323
16215
  .pipe(T.ResponsePath("result")),
16324
- ) as unknown as Schema.Codec<CreateScriptEdgePreviewResponse>;
16216
+ ) as unknown as Schema.Codec<CreateScriptEdgePreviewResponse>;
16325
16217
 
16326
16218
  export type CreateScriptEdgePreviewError = DefaultErrors | InvalidRoute;
16327
16219
 
@@ -16346,18 +16238,17 @@ export interface GetScriptScheduleRequest {
16346
16238
  accountId: string;
16347
16239
  }
16348
16240
 
16349
- export const GetScriptScheduleRequest =
16350
- /*@__PURE__*/ Schema.suspend(() =>
16351
- Schema.Struct({
16352
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
16353
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
16354
- }).pipe(
16355
- T.Http({
16356
- method: "GET",
16357
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
16358
- }),
16359
- ),
16360
- ) as unknown as Schema.Codec<GetScriptScheduleRequest>;
16241
+ export const GetScriptScheduleRequest = /*@__PURE__*/ Schema.suspend(() =>
16242
+ Schema.Struct({
16243
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
16244
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
16245
+ }).pipe(
16246
+ T.Http({
16247
+ method: "GET",
16248
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
16249
+ }),
16250
+ ),
16251
+ ) as unknown as Schema.Codec<GetScriptScheduleRequest>;
16361
16252
 
16362
16253
  export interface GetScriptScheduleResponse {
16363
16254
  schedules: {
@@ -16367,12 +16258,11 @@ export interface GetScriptScheduleResponse {
16367
16258
  }[];
16368
16259
  }
16369
16260
 
16370
- export const GetScriptScheduleResponse =
16371
- /*@__PURE__*/ Schema.suspend(() =>
16372
- Schema.Struct({
16373
- schedules: Schema.Array(Schedule),
16374
- }).pipe(T.ResponsePath("result")),
16375
- ) as unknown as Schema.Codec<GetScriptScheduleResponse>;
16261
+ export const GetScriptScheduleResponse = /*@__PURE__*/ Schema.suspend(() =>
16262
+ Schema.Struct({
16263
+ schedules: Schema.Array(Schedule),
16264
+ }).pipe(T.ResponsePath("result")),
16265
+ ) as unknown as Schema.Codec<GetScriptScheduleResponse>;
16376
16266
 
16377
16267
  export type GetScriptScheduleError = DefaultErrors | WorkerNotFound;
16378
16268
 
@@ -16395,19 +16285,18 @@ export interface PutScriptScheduleRequest {
16395
16285
  body: { cron: string }[];
16396
16286
  }
16397
16287
 
16398
- export const PutScriptScheduleRequest =
16399
- /*@__PURE__*/ Schema.suspend(() =>
16400
- Schema.Struct({
16401
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
16402
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
16403
- body: Schema.Array(Body).pipe(T.HttpBody()),
16404
- }).pipe(
16405
- T.Http({
16406
- method: "PUT",
16407
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
16408
- }),
16409
- ),
16410
- ) as unknown as Schema.Codec<PutScriptScheduleRequest>;
16288
+ export const PutScriptScheduleRequest = /*@__PURE__*/ Schema.suspend(() =>
16289
+ Schema.Struct({
16290
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
16291
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
16292
+ body: Schema.Array(Body).pipe(T.HttpBody()),
16293
+ }).pipe(
16294
+ T.Http({
16295
+ method: "PUT",
16296
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
16297
+ }),
16298
+ ),
16299
+ ) as unknown as Schema.Codec<PutScriptScheduleRequest>;
16411
16300
 
16412
16301
  export interface PutScriptScheduleResponse {
16413
16302
  schedules: {
@@ -16417,12 +16306,11 @@ export interface PutScriptScheduleResponse {
16417
16306
  }[];
16418
16307
  }
16419
16308
 
16420
- export const PutScriptScheduleResponse =
16421
- /*@__PURE__*/ Schema.suspend(() =>
16422
- Schema.Struct({
16423
- schedules: Schema.Array(Schedule),
16424
- }).pipe(T.ResponsePath("result")),
16425
- ) as unknown as Schema.Codec<PutScriptScheduleResponse>;
16309
+ export const PutScriptScheduleResponse = /*@__PURE__*/ Schema.suspend(() =>
16310
+ Schema.Struct({
16311
+ schedules: Schema.Array(Schedule),
16312
+ }).pipe(T.ResponsePath("result")),
16313
+ ) as unknown as Schema.Codec<PutScriptScheduleResponse>;
16426
16314
 
16427
16315
  export type PutScriptScheduleError = DefaultErrors | WorkerNotFound;
16428
16316
 
@@ -17284,22 +17172,21 @@ export interface GetScriptSecretRequest {
17284
17172
  urlEncoded?: boolean;
17285
17173
  }
17286
17174
 
17287
- export const GetScriptSecretRequest =
17288
- /*@__PURE__*/ Schema.suspend(() =>
17289
- Schema.Struct({
17290
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17291
- secretName: Schema.String.pipe(T.HttpPath("secretName")),
17292
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17293
- urlEncoded: Schema.optional(Schema.Boolean).pipe(
17294
- T.HttpQuery("url_encoded"),
17295
- ),
17296
- }).pipe(
17297
- T.Http({
17298
- method: "GET",
17299
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
17300
- }),
17175
+ export const GetScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() =>
17176
+ Schema.Struct({
17177
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17178
+ secretName: Schema.String.pipe(T.HttpPath("secretName")),
17179
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17180
+ urlEncoded: Schema.optional(Schema.Boolean).pipe(
17181
+ T.HttpQuery("url_encoded"),
17301
17182
  ),
17302
- ) as unknown as Schema.Codec<GetScriptSecretRequest>;
17183
+ }).pipe(
17184
+ T.Http({
17185
+ method: "GET",
17186
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
17187
+ }),
17188
+ ),
17189
+ ) as unknown as Schema.Codec<GetScriptSecretRequest>;
17303
17190
 
17304
17191
  export type GetScriptSecretResponse =
17305
17192
  | { name: string; type: "secret_text" }
@@ -17321,13 +17208,12 @@ export type GetScriptSecretResponse =
17321
17208
  )[];
17322
17209
  };
17323
17210
 
17324
- export const GetScriptSecretResponse =
17325
- /*@__PURE__*/ Schema.suspend(() =>
17326
- Schema.Union([
17327
- WorkersBindingKindSecretKey,
17328
- WorkersBindingKindSecretText,
17329
- ]).pipe(T.ResponsePath("result")),
17330
- ) as unknown as Schema.Codec<GetScriptSecretResponse>;
17211
+ export const GetScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() =>
17212
+ Schema.Union([
17213
+ WorkersBindingKindSecretKey,
17214
+ WorkersBindingKindSecretText,
17215
+ ]).pipe(T.ResponsePath("result")),
17216
+ ) as unknown as Schema.Codec<GetScriptSecretResponse>;
17331
17217
 
17332
17218
  export type GetScriptSecretError =
17333
17219
  | DefaultErrors
@@ -17351,18 +17237,17 @@ export interface ListScriptSecretsRequest {
17351
17237
  accountId: string;
17352
17238
  }
17353
17239
 
17354
- export const ListScriptSecretsRequest =
17355
- /*@__PURE__*/ Schema.suspend(() =>
17356
- Schema.Struct({
17357
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17358
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17359
- }).pipe(
17360
- T.Http({
17361
- method: "GET",
17362
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
17363
- }),
17364
- ),
17365
- ) as unknown as Schema.Codec<ListScriptSecretsRequest>;
17240
+ export const ListScriptSecretsRequest = /*@__PURE__*/ Schema.suspend(() =>
17241
+ Schema.Struct({
17242
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17243
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17244
+ }).pipe(
17245
+ T.Http({
17246
+ method: "GET",
17247
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
17248
+ }),
17249
+ ),
17250
+ ) as unknown as Schema.Codec<ListScriptSecretsRequest>;
17366
17251
 
17367
17252
  export interface ListScriptSecretsResponse {
17368
17253
  result: (
@@ -17387,17 +17272,13 @@ export interface ListScriptSecretsResponse {
17387
17272
  )[];
17388
17273
  }
17389
17274
 
17390
- export const ListScriptSecretsResponse =
17391
- /*@__PURE__*/ Schema.suspend(() =>
17392
- Schema.Struct({
17393
- result: Schema.Array(
17394
- Schema.Union([
17395
- WorkersBindingKindSecretKey,
17396
- WorkersBindingKindSecretText,
17397
- ]),
17398
- ),
17399
- }),
17400
- ) as unknown as Schema.Codec<ListScriptSecretsResponse>;
17275
+ export const ListScriptSecretsResponse = /*@__PURE__*/ Schema.suspend(() =>
17276
+ Schema.Struct({
17277
+ result: Schema.Array(
17278
+ Schema.Union([WorkersBindingKindSecretKey, WorkersBindingKindSecretText]),
17279
+ ),
17280
+ }),
17281
+ ) as unknown as Schema.Codec<ListScriptSecretsResponse>;
17401
17282
 
17402
17283
  export type ListScriptSecretsError = DefaultErrors | WorkerNotFound;
17403
17284
 
@@ -17448,60 +17329,59 @@ export interface PutScriptSecretRequest {
17448
17329
  keyJwk?: unknown;
17449
17330
  }
17450
17331
 
17451
- export const PutScriptSecretRequest =
17452
- /*@__PURE__*/ Schema.suspend(() =>
17453
- Schema.Struct({
17454
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17455
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17456
- name: Schema.String,
17457
- text: Schema.optional(Schema.String),
17458
- type: Schema.Union([
17459
- Schema.Literals(["secret_text", "secret_key"]),
17332
+ export const PutScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() =>
17333
+ Schema.Struct({
17334
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17335
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17336
+ name: Schema.String,
17337
+ text: Schema.optional(Schema.String),
17338
+ type: Schema.Union([
17339
+ Schema.Literals(["secret_text", "secret_key"]),
17340
+ Schema.String,
17341
+ ]),
17342
+ algorithm: Schema.optional(Schema.Unknown),
17343
+ format: Schema.optional(
17344
+ Schema.Union([
17345
+ Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
17460
17346
  Schema.String,
17461
17347
  ]),
17462
- algorithm: Schema.optional(Schema.Unknown),
17463
- format: Schema.optional(
17348
+ ),
17349
+ usages: Schema.optional(
17350
+ Schema.Array(
17464
17351
  Schema.Union([
17465
- Schema.Literals(["raw", "pkcs8", "spki", "jwk"]),
17352
+ Schema.Literals([
17353
+ "encrypt",
17354
+ "decrypt",
17355
+ "sign",
17356
+ "verify",
17357
+ "deriveKey",
17358
+ "deriveBits",
17359
+ "wrapKey",
17360
+ "unwrapKey",
17361
+ ]),
17466
17362
  Schema.String,
17467
17363
  ]),
17468
17364
  ),
17469
- usages: Schema.optional(
17470
- Schema.Array(
17471
- Schema.Union([
17472
- Schema.Literals([
17473
- "encrypt",
17474
- "decrypt",
17475
- "sign",
17476
- "verify",
17477
- "deriveKey",
17478
- "deriveBits",
17479
- "wrapKey",
17480
- "unwrapKey",
17481
- ]),
17482
- Schema.String,
17483
- ]),
17484
- ),
17485
- ),
17486
- keyBase64: Schema.optional(Schema.String),
17487
- keyJwk: Schema.optional(Schema.Unknown),
17488
- }).pipe(
17489
- Schema.encodeKeys({
17490
- name: "name",
17491
- text: "text",
17492
- type: "type",
17493
- algorithm: "algorithm",
17494
- format: "format",
17495
- usages: "usages",
17496
- keyBase64: "key_base64",
17497
- keyJwk: "key_jwk",
17498
- }),
17499
- T.Http({
17500
- method: "PUT",
17501
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
17502
- }),
17503
17365
  ),
17504
- ) as unknown as Schema.Codec<PutScriptSecretRequest>;
17366
+ keyBase64: Schema.optional(Schema.String),
17367
+ keyJwk: Schema.optional(Schema.Unknown),
17368
+ }).pipe(
17369
+ Schema.encodeKeys({
17370
+ name: "name",
17371
+ text: "text",
17372
+ type: "type",
17373
+ algorithm: "algorithm",
17374
+ format: "format",
17375
+ usages: "usages",
17376
+ keyBase64: "key_base64",
17377
+ keyJwk: "key_jwk",
17378
+ }),
17379
+ T.Http({
17380
+ method: "PUT",
17381
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
17382
+ }),
17383
+ ),
17384
+ ) as unknown as Schema.Codec<PutScriptSecretRequest>;
17505
17385
 
17506
17386
  export type PutScriptSecretResponse =
17507
17387
  | { name: string; type: "secret_text" }
@@ -17523,13 +17403,12 @@ export type PutScriptSecretResponse =
17523
17403
  )[];
17524
17404
  };
17525
17405
 
17526
- export const PutScriptSecretResponse =
17527
- /*@__PURE__*/ Schema.suspend(() =>
17528
- Schema.Union([
17529
- WorkersBindingKindSecretKey,
17530
- WorkersBindingKindSecretText,
17531
- ]).pipe(T.ResponsePath("result")),
17532
- ) as unknown as Schema.Codec<PutScriptSecretResponse>;
17406
+ export const PutScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() =>
17407
+ Schema.Union([
17408
+ WorkersBindingKindSecretKey,
17409
+ WorkersBindingKindSecretText,
17410
+ ]).pipe(T.ResponsePath("result")),
17411
+ ) as unknown as Schema.Codec<PutScriptSecretResponse>;
17533
17412
 
17534
17413
  export type PutScriptSecretError = DefaultErrors | WorkerNotFound;
17535
17414
 
@@ -17553,30 +17432,28 @@ export interface DeleteScriptSecretRequest {
17553
17432
  urlEncoded?: boolean;
17554
17433
  }
17555
17434
 
17556
- export const DeleteScriptSecretRequest =
17557
- /*@__PURE__*/ Schema.suspend(() =>
17558
- Schema.Struct({
17559
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17560
- secretName: Schema.String.pipe(T.HttpPath("secretName")),
17561
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17562
- urlEncoded: Schema.optional(Schema.Boolean).pipe(
17563
- T.HttpQuery("url_encoded"),
17564
- ),
17565
- }).pipe(
17566
- T.Http({
17567
- method: "DELETE",
17568
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
17569
- }),
17435
+ export const DeleteScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() =>
17436
+ Schema.Struct({
17437
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17438
+ secretName: Schema.String.pipe(T.HttpPath("secretName")),
17439
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17440
+ urlEncoded: Schema.optional(Schema.Boolean).pipe(
17441
+ T.HttpQuery("url_encoded"),
17570
17442
  ),
17571
- ) as unknown as Schema.Codec<DeleteScriptSecretRequest>;
17443
+ }).pipe(
17444
+ T.Http({
17445
+ method: "DELETE",
17446
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
17447
+ }),
17448
+ ),
17449
+ ) as unknown as Schema.Codec<DeleteScriptSecretRequest>;
17572
17450
 
17573
17451
  export type DeleteScriptSecretResponse = unknown;
17574
17452
 
17575
- export const DeleteScriptSecretResponse =
17576
- /*@__PURE__*/ Schema.suspend(() =>
17577
- Schema.Unknown.pipe(T.ResponsePath("result")),
17578
- ) as unknown as Schema.Codec<DeleteScriptSecretResponse>;
17579
-
17453
+ export const DeleteScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() =>
17454
+ Schema.Unknown.pipe(T.ResponsePath("result")),
17455
+ ) as unknown as Schema.Codec<DeleteScriptSecretResponse>;
17456
+
17580
17457
  export type DeleteScriptSecretError =
17581
17458
  | DefaultErrors
17582
17459
  | WorkerNotFound
@@ -17603,30 +17480,27 @@ export interface BulkUpdateScriptSecretsRequest {
17603
17480
  versionTags?: Record<string, unknown>;
17604
17481
  }
17605
17482
 
17606
- export const BulkUpdateScriptSecretsRequest =
17607
- /*@__PURE__*/ Schema.suspend(() =>
17608
- Schema.Struct({
17609
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17610
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17611
- secrets: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
17612
- versionTags: Schema.optional(
17613
- Schema.Record(Schema.String, Schema.Unknown),
17614
- ),
17615
- }).pipe(
17616
- Schema.encodeKeys({ secrets: "secrets", versionTags: "version_tags" }),
17617
- T.Http({
17618
- method: "PATCH",
17619
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets-bulk",
17620
- }),
17621
- ),
17622
- ) as unknown as Schema.Codec<BulkUpdateScriptSecretsRequest>;
17483
+ export const BulkUpdateScriptSecretsRequest = /*@__PURE__*/ Schema.suspend(() =>
17484
+ Schema.Struct({
17485
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17486
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17487
+ secrets: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
17488
+ versionTags: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
17489
+ }).pipe(
17490
+ Schema.encodeKeys({ secrets: "secrets", versionTags: "version_tags" }),
17491
+ T.Http({
17492
+ method: "PATCH",
17493
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets-bulk",
17494
+ }),
17495
+ ),
17496
+ ) as unknown as Schema.Codec<BulkUpdateScriptSecretsRequest>;
17623
17497
 
17624
17498
  export type BulkUpdateScriptSecretsResponse = Record<string, unknown>;
17625
17499
 
17626
- export const BulkUpdateScriptSecretsResponse =
17627
- /*@__PURE__*/ Schema.suspend(() =>
17500
+ export const BulkUpdateScriptSecretsResponse = /*@__PURE__*/ Schema.suspend(
17501
+ () =>
17628
17502
  Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")),
17629
- ) as unknown as Schema.Codec<BulkUpdateScriptSecretsResponse>;
17503
+ ) as unknown as Schema.Codec<BulkUpdateScriptSecretsResponse>;
17630
17504
 
17631
17505
  export type BulkUpdateScriptSecretsError = DefaultErrors;
17632
17506
 
@@ -17651,18 +17525,17 @@ export interface GetScriptSettingRequest {
17651
17525
  accountId: string;
17652
17526
  }
17653
17527
 
17654
- export const GetScriptSettingRequest =
17655
- /*@__PURE__*/ Schema.suspend(() =>
17656
- Schema.Struct({
17657
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17658
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17659
- }).pipe(
17660
- T.Http({
17661
- method: "GET",
17662
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
17663
- }),
17664
- ),
17665
- ) as unknown as Schema.Codec<GetScriptSettingRequest>;
17528
+ export const GetScriptSettingRequest = /*@__PURE__*/ Schema.suspend(() =>
17529
+ Schema.Struct({
17530
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17531
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17532
+ }).pipe(
17533
+ T.Http({
17534
+ method: "GET",
17535
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
17536
+ }),
17537
+ ),
17538
+ ) as unknown as Schema.Codec<GetScriptSettingRequest>;
17666
17539
 
17667
17540
  export interface GetScriptSettingResponse {
17668
17541
  /** Whether Logpush is turned on for the Worker. */
@@ -17698,30 +17571,27 @@ export interface GetScriptSettingResponse {
17698
17571
  | null;
17699
17572
  }
17700
17573
 
17701
- export const GetScriptSettingResponse =
17702
- /*@__PURE__*/ Schema.suspend(() =>
17703
- Schema.Struct({
17704
- logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
17705
- observability: Schema.optional(
17706
- Schema.Union([Observability2, Schema.Null]),
17707
- ),
17708
- tags: Schema.optional(
17709
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
17710
- ),
17711
- tailConsumers: Schema.optional(
17712
- Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
17713
- ),
17714
- })
17715
- .pipe(
17716
- Schema.encodeKeys({
17717
- logpush: "logpush",
17718
- observability: "observability",
17719
- tags: "tags",
17720
- tailConsumers: "tail_consumers",
17721
- }),
17722
- )
17723
- .pipe(T.ResponsePath("result")),
17724
- ) as unknown as Schema.Codec<GetScriptSettingResponse>;
17574
+ export const GetScriptSettingResponse = /*@__PURE__*/ Schema.suspend(() =>
17575
+ Schema.Struct({
17576
+ logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
17577
+ observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
17578
+ tags: Schema.optional(
17579
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
17580
+ ),
17581
+ tailConsumers: Schema.optional(
17582
+ Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
17583
+ ),
17584
+ })
17585
+ .pipe(
17586
+ Schema.encodeKeys({
17587
+ logpush: "logpush",
17588
+ observability: "observability",
17589
+ tags: "tags",
17590
+ tailConsumers: "tail_consumers",
17591
+ }),
17592
+ )
17593
+ .pipe(T.ResponsePath("result")),
17594
+ ) as unknown as Schema.Codec<GetScriptSettingResponse>;
17725
17595
 
17726
17596
  export type GetScriptSettingError =
17727
17597
  | DefaultErrors
@@ -17772,34 +17642,31 @@ export interface PatchScriptSettingRequest {
17772
17642
  | null;
17773
17643
  }
17774
17644
 
17775
- export const PatchScriptSettingRequest =
17776
- /*@__PURE__*/ Schema.suspend(() =>
17777
- Schema.Struct({
17778
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17779
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17780
- logpush: Schema.optional(Schema.Boolean),
17781
- observability: Schema.optional(
17782
- Schema.Union([Observability2, Schema.Null]),
17783
- ),
17784
- tags: Schema.optional(
17785
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
17786
- ),
17787
- tailConsumers: Schema.optional(
17788
- Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
17789
- ),
17790
- }).pipe(
17791
- Schema.encodeKeys({
17792
- logpush: "logpush",
17793
- observability: "observability",
17794
- tags: "tags",
17795
- tailConsumers: "tail_consumers",
17796
- }),
17797
- T.Http({
17798
- method: "PATCH",
17799
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
17800
- }),
17645
+ export const PatchScriptSettingRequest = /*@__PURE__*/ Schema.suspend(() =>
17646
+ Schema.Struct({
17647
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17648
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17649
+ logpush: Schema.optional(Schema.Boolean),
17650
+ observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
17651
+ tags: Schema.optional(
17652
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
17653
+ ),
17654
+ tailConsumers: Schema.optional(
17655
+ Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
17801
17656
  ),
17802
- ) as unknown as Schema.Codec<PatchScriptSettingRequest>;
17657
+ }).pipe(
17658
+ Schema.encodeKeys({
17659
+ logpush: "logpush",
17660
+ observability: "observability",
17661
+ tags: "tags",
17662
+ tailConsumers: "tail_consumers",
17663
+ }),
17664
+ T.Http({
17665
+ method: "PATCH",
17666
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
17667
+ }),
17668
+ ),
17669
+ ) as unknown as Schema.Codec<PatchScriptSettingRequest>;
17803
17670
 
17804
17671
  export interface PatchScriptSettingResponse {
17805
17672
  /** Whether Logpush is turned on for the Worker. */
@@ -17835,30 +17702,27 @@ export interface PatchScriptSettingResponse {
17835
17702
  | null;
17836
17703
  }
17837
17704
 
17838
- export const PatchScriptSettingResponse =
17839
- /*@__PURE__*/ Schema.suspend(() =>
17840
- Schema.Struct({
17841
- logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
17842
- observability: Schema.optional(
17843
- Schema.Union([Observability2, Schema.Null]),
17844
- ),
17845
- tags: Schema.optional(
17846
- Schema.Union([Schema.Array(Schema.String), Schema.Null]),
17847
- ),
17848
- tailConsumers: Schema.optional(
17849
- Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
17850
- ),
17851
- })
17852
- .pipe(
17853
- Schema.encodeKeys({
17854
- logpush: "logpush",
17855
- observability: "observability",
17856
- tags: "tags",
17857
- tailConsumers: "tail_consumers",
17858
- }),
17859
- )
17860
- .pipe(T.ResponsePath("result")),
17861
- ) as unknown as Schema.Codec<PatchScriptSettingResponse>;
17705
+ export const PatchScriptSettingResponse = /*@__PURE__*/ Schema.suspend(() =>
17706
+ Schema.Struct({
17707
+ logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
17708
+ observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
17709
+ tags: Schema.optional(
17710
+ Schema.Union([Schema.Array(Schema.String), Schema.Null]),
17711
+ ),
17712
+ tailConsumers: Schema.optional(
17713
+ Schema.Union([Schema.Array(ConsumerScript), Schema.Null]),
17714
+ ),
17715
+ })
17716
+ .pipe(
17717
+ Schema.encodeKeys({
17718
+ logpush: "logpush",
17719
+ observability: "observability",
17720
+ tags: "tags",
17721
+ tailConsumers: "tail_consumers",
17722
+ }),
17723
+ )
17724
+ .pipe(T.ResponsePath("result")),
17725
+ ) as unknown as Schema.Codec<PatchScriptSettingResponse>;
17862
17726
 
17863
17727
  export type PatchScriptSettingError = DefaultErrors | WorkerNotFound;
17864
17728
 
@@ -17883,18 +17747,17 @@ export interface GetScriptSubdomainRequest {
17883
17747
  accountId: string;
17884
17748
  }
17885
17749
 
17886
- export const GetScriptSubdomainRequest =
17887
- /*@__PURE__*/ Schema.suspend(() =>
17888
- Schema.Struct({
17889
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17890
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17891
- }).pipe(
17892
- T.Http({
17893
- method: "GET",
17894
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
17895
- }),
17896
- ),
17897
- ) as unknown as Schema.Codec<GetScriptSubdomainRequest>;
17750
+ export const GetScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() =>
17751
+ Schema.Struct({
17752
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17753
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17754
+ }).pipe(
17755
+ T.Http({
17756
+ method: "GET",
17757
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
17758
+ }),
17759
+ ),
17760
+ ) as unknown as Schema.Codec<GetScriptSubdomainRequest>;
17898
17761
 
17899
17762
  export interface GetScriptSubdomainResponse {
17900
17763
  /** Whether the Worker is available on the workers.dev subdomain. */
@@ -17903,20 +17766,19 @@ export interface GetScriptSubdomainResponse {
17903
17766
  previewsEnabled: boolean;
17904
17767
  }
17905
17768
 
17906
- export const GetScriptSubdomainResponse =
17907
- /*@__PURE__*/ Schema.suspend(() =>
17908
- Schema.Struct({
17909
- enabled: Schema.Boolean,
17910
- previewsEnabled: Schema.Boolean,
17911
- })
17912
- .pipe(
17913
- Schema.encodeKeys({
17914
- enabled: "enabled",
17915
- previewsEnabled: "previews_enabled",
17916
- }),
17917
- )
17918
- .pipe(T.ResponsePath("result")),
17919
- ) as unknown as Schema.Codec<GetScriptSubdomainResponse>;
17769
+ export const GetScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() =>
17770
+ Schema.Struct({
17771
+ enabled: Schema.Boolean,
17772
+ previewsEnabled: Schema.Boolean,
17773
+ })
17774
+ .pipe(
17775
+ Schema.encodeKeys({
17776
+ enabled: "enabled",
17777
+ previewsEnabled: "previews_enabled",
17778
+ }),
17779
+ )
17780
+ .pipe(T.ResponsePath("result")),
17781
+ ) as unknown as Schema.Codec<GetScriptSubdomainResponse>;
17920
17782
 
17921
17783
  export type GetScriptSubdomainError = DefaultErrors | WorkerNotFound;
17922
17784
 
@@ -17941,24 +17803,23 @@ export interface CreateScriptSubdomainRequest {
17941
17803
  previewsEnabled?: boolean;
17942
17804
  }
17943
17805
 
17944
- export const CreateScriptSubdomainRequest =
17945
- /*@__PURE__*/ Schema.suspend(() =>
17946
- Schema.Struct({
17947
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17948
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
17949
- enabled: Schema.Boolean,
17950
- previewsEnabled: Schema.optional(Schema.Boolean),
17951
- }).pipe(
17952
- Schema.encodeKeys({
17953
- enabled: "enabled",
17954
- previewsEnabled: "previews_enabled",
17955
- }),
17956
- T.Http({
17957
- method: "POST",
17958
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
17959
- }),
17960
- ),
17961
- ) as unknown as Schema.Codec<CreateScriptSubdomainRequest>;
17806
+ export const CreateScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() =>
17807
+ Schema.Struct({
17808
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17809
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17810
+ enabled: Schema.Boolean,
17811
+ previewsEnabled: Schema.optional(Schema.Boolean),
17812
+ }).pipe(
17813
+ Schema.encodeKeys({
17814
+ enabled: "enabled",
17815
+ previewsEnabled: "previews_enabled",
17816
+ }),
17817
+ T.Http({
17818
+ method: "POST",
17819
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
17820
+ }),
17821
+ ),
17822
+ ) as unknown as Schema.Codec<CreateScriptSubdomainRequest>;
17962
17823
 
17963
17824
  export interface CreateScriptSubdomainResponse {
17964
17825
  /** Whether the Worker is available on the workers.dev subdomain. */
@@ -17967,20 +17828,19 @@ export interface CreateScriptSubdomainResponse {
17967
17828
  previewsEnabled: boolean;
17968
17829
  }
17969
17830
 
17970
- export const CreateScriptSubdomainResponse =
17971
- /*@__PURE__*/ Schema.suspend(() =>
17972
- Schema.Struct({
17973
- enabled: Schema.Boolean,
17974
- previewsEnabled: Schema.Boolean,
17975
- })
17976
- .pipe(
17977
- Schema.encodeKeys({
17978
- enabled: "enabled",
17979
- previewsEnabled: "previews_enabled",
17980
- }),
17981
- )
17982
- .pipe(T.ResponsePath("result")),
17983
- ) as unknown as Schema.Codec<CreateScriptSubdomainResponse>;
17831
+ export const CreateScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() =>
17832
+ Schema.Struct({
17833
+ enabled: Schema.Boolean,
17834
+ previewsEnabled: Schema.Boolean,
17835
+ })
17836
+ .pipe(
17837
+ Schema.encodeKeys({
17838
+ enabled: "enabled",
17839
+ previewsEnabled: "previews_enabled",
17840
+ }),
17841
+ )
17842
+ .pipe(T.ResponsePath("result")),
17843
+ ) as unknown as Schema.Codec<CreateScriptSubdomainResponse>;
17984
17844
 
17985
17845
  export type CreateScriptSubdomainError = DefaultErrors | WorkerNotFound;
17986
17846
 
@@ -17996,23 +17856,22 @@ export const createScriptSubdomain: API.OperationMethod<
17996
17856
  }));
17997
17857
 
17998
17858
  export interface DeleteScriptSubdomainRequest {
17999
- scriptName: string;
18000
- /** Identifier. */
18001
- accountId: string;
18002
- }
18003
-
18004
- export const DeleteScriptSubdomainRequest =
18005
- /*@__PURE__*/ Schema.suspend(() =>
18006
- Schema.Struct({
18007
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18008
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
18009
- }).pipe(
18010
- T.Http({
18011
- method: "DELETE",
18012
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
18013
- }),
18014
- ),
18015
- ) as unknown as Schema.Codec<DeleteScriptSubdomainRequest>;
17859
+ scriptName: string;
17860
+ /** Identifier. */
17861
+ accountId: string;
17862
+ }
17863
+
17864
+ export const DeleteScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() =>
17865
+ Schema.Struct({
17866
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17867
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17868
+ }).pipe(
17869
+ T.Http({
17870
+ method: "DELETE",
17871
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
17872
+ }),
17873
+ ),
17874
+ ) as unknown as Schema.Codec<DeleteScriptSubdomainRequest>;
18016
17875
 
18017
17876
  export interface DeleteScriptSubdomainResponse {
18018
17877
  /** Whether the Worker is available on the workers.dev subdomain. */
@@ -18021,20 +17880,19 @@ export interface DeleteScriptSubdomainResponse {
18021
17880
  previewsEnabled: boolean;
18022
17881
  }
18023
17882
 
18024
- export const DeleteScriptSubdomainResponse =
18025
- /*@__PURE__*/ Schema.suspend(() =>
18026
- Schema.Struct({
18027
- enabled: Schema.Boolean,
18028
- previewsEnabled: Schema.Boolean,
18029
- })
18030
- .pipe(
18031
- Schema.encodeKeys({
18032
- enabled: "enabled",
18033
- previewsEnabled: "previews_enabled",
18034
- }),
18035
- )
18036
- .pipe(T.ResponsePath("result")),
18037
- ) as unknown as Schema.Codec<DeleteScriptSubdomainResponse>;
17883
+ export const DeleteScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() =>
17884
+ Schema.Struct({
17885
+ enabled: Schema.Boolean,
17886
+ previewsEnabled: Schema.Boolean,
17887
+ })
17888
+ .pipe(
17889
+ Schema.encodeKeys({
17890
+ enabled: "enabled",
17891
+ previewsEnabled: "previews_enabled",
17892
+ }),
17893
+ )
17894
+ .pipe(T.ResponsePath("result")),
17895
+ ) as unknown as Schema.Codec<DeleteScriptSubdomainResponse>;
18038
17896
 
18039
17897
  export type DeleteScriptSubdomainError = DefaultErrors | WorkerNotFound;
18040
17898
 
@@ -18109,19 +17967,18 @@ export interface CreateScriptTailRequest {
18109
17967
  body: unknown;
18110
17968
  }
18111
17969
 
18112
- export const CreateScriptTailRequest =
18113
- /*@__PURE__*/ Schema.suspend(() =>
18114
- Schema.Struct({
18115
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18116
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
18117
- body: Schema.Unknown.pipe(T.HttpBody()),
18118
- }).pipe(
18119
- T.Http({
18120
- method: "POST",
18121
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails",
18122
- }),
18123
- ),
18124
- ) as unknown as Schema.Codec<CreateScriptTailRequest>;
17970
+ export const CreateScriptTailRequest = /*@__PURE__*/ Schema.suspend(() =>
17971
+ Schema.Struct({
17972
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
17973
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
17974
+ body: Schema.Unknown.pipe(T.HttpBody()),
17975
+ }).pipe(
17976
+ T.Http({
17977
+ method: "POST",
17978
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails",
17979
+ }),
17980
+ ),
17981
+ ) as unknown as Schema.Codec<CreateScriptTailRequest>;
18125
17982
 
18126
17983
  export interface CreateScriptTailResponse {
18127
17984
  /** Identifier. */
@@ -18130,18 +17987,15 @@ export interface CreateScriptTailResponse {
18130
17987
  url: string;
18131
17988
  }
18132
17989
 
18133
- export const CreateScriptTailResponse =
18134
- /*@__PURE__*/ Schema.suspend(() =>
18135
- Schema.Struct({
18136
- id: Schema.String,
18137
- expiresAt: Schema.String,
18138
- url: Schema.String,
18139
- })
18140
- .pipe(
18141
- Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }),
18142
- )
18143
- .pipe(T.ResponsePath("result")),
18144
- ) as unknown as Schema.Codec<CreateScriptTailResponse>;
17990
+ export const CreateScriptTailResponse = /*@__PURE__*/ Schema.suspend(() =>
17991
+ Schema.Struct({
17992
+ id: Schema.String,
17993
+ expiresAt: Schema.String,
17994
+ url: Schema.String,
17995
+ })
17996
+ .pipe(Schema.encodeKeys({ id: "id", expiresAt: "expires_at", url: "url" }))
17997
+ .pipe(T.ResponsePath("result")),
17998
+ ) as unknown as Schema.Codec<CreateScriptTailResponse>;
18145
17999
 
18146
18000
  export type CreateScriptTailError = DefaultErrors | WorkerNotFound;
18147
18001
 
@@ -18163,19 +18017,18 @@ export interface DeleteScriptTailRequest {
18163
18017
  accountId: string;
18164
18018
  }
18165
18019
 
18166
- export const DeleteScriptTailRequest =
18167
- /*@__PURE__*/ Schema.suspend(() =>
18168
- Schema.Struct({
18169
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18170
- id: Schema.String.pipe(T.HttpPath("id")),
18171
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
18172
- }).pipe(
18173
- T.Http({
18174
- method: "DELETE",
18175
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails/{id}",
18176
- }),
18177
- ),
18178
- ) as unknown as Schema.Codec<DeleteScriptTailRequest>;
18020
+ export const DeleteScriptTailRequest = /*@__PURE__*/ Schema.suspend(() =>
18021
+ Schema.Struct({
18022
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18023
+ id: Schema.String.pipe(T.HttpPath("id")),
18024
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
18025
+ }).pipe(
18026
+ T.Http({
18027
+ method: "DELETE",
18028
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails/{id}",
18029
+ }),
18030
+ ),
18031
+ ) as unknown as Schema.Codec<DeleteScriptTailRequest>;
18179
18032
 
18180
18033
  export interface DeleteScriptTailResponse {
18181
18034
  errors: {
@@ -18194,14 +18047,13 @@ export interface DeleteScriptTailResponse {
18194
18047
  success: true;
18195
18048
  }
18196
18049
 
18197
- export const DeleteScriptTailResponse =
18198
- /*@__PURE__*/ Schema.suspend(() =>
18199
- Schema.Struct({
18200
- errors: Schema.Array(Error2),
18201
- messages: Schema.Array(Error2),
18202
- success: Schema.Literal(true),
18203
- }),
18204
- ) as unknown as Schema.Codec<DeleteScriptTailResponse>;
18050
+ export const DeleteScriptTailResponse = /*@__PURE__*/ Schema.suspend(() =>
18051
+ Schema.Struct({
18052
+ errors: Schema.Array(Error2),
18053
+ messages: Schema.Array(Error2),
18054
+ success: Schema.Literal(true),
18055
+ }),
18056
+ ) as unknown as Schema.Codec<DeleteScriptTailResponse>;
18205
18057
 
18206
18058
  export type DeleteScriptTailError = DefaultErrors | WorkerNotFound;
18207
18059
 
@@ -18227,19 +18079,18 @@ export interface GetScriptVersionRequest {
18227
18079
  accountId: string;
18228
18080
  }
18229
18081
 
18230
- export const GetScriptVersionRequest =
18231
- /*@__PURE__*/ Schema.suspend(() =>
18232
- Schema.Struct({
18233
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18234
- versionId: Schema.String.pipe(T.HttpPath("versionId")),
18235
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
18236
- }).pipe(
18237
- T.Http({
18238
- method: "GET",
18239
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions/{versionId}",
18240
- }),
18241
- ),
18242
- ) as unknown as Schema.Codec<GetScriptVersionRequest>;
18082
+ export const GetScriptVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
18083
+ Schema.Struct({
18084
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18085
+ versionId: Schema.String.pipe(T.HttpPath("versionId")),
18086
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
18087
+ }).pipe(
18088
+ T.Http({
18089
+ method: "GET",
18090
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions/{versionId}",
18091
+ }),
18092
+ ),
18093
+ ) as unknown as Schema.Codec<GetScriptVersionRequest>;
18243
18094
 
18244
18095
  export interface GetScriptVersionResponse {
18245
18096
  resources: {
@@ -18419,15 +18270,14 @@ export interface GetScriptVersionResponse {
18419
18270
  number?: number | null;
18420
18271
  }
18421
18272
 
18422
- export const GetScriptVersionResponse =
18423
- /*@__PURE__*/ Schema.suspend(() =>
18424
- Schema.Struct({
18425
- resources: Resources,
18426
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18427
- metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
18428
- number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18429
- }).pipe(T.ResponsePath("result")),
18430
- ) as unknown as Schema.Codec<GetScriptVersionResponse>;
18273
+ export const GetScriptVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
18274
+ Schema.Struct({
18275
+ resources: Resources,
18276
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18277
+ metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
18278
+ number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18279
+ }).pipe(T.ResponsePath("result")),
18280
+ ) as unknown as Schema.Codec<GetScriptVersionResponse>;
18431
18281
 
18432
18282
  export type GetScriptVersionError =
18433
18283
  | DefaultErrors
@@ -18455,23 +18305,20 @@ export interface ListScriptVersionsRequest {
18455
18305
  deployable?: boolean;
18456
18306
  }
18457
18307
 
18458
- export const ListScriptVersionsRequest =
18459
- /*@__PURE__*/ Schema.suspend(() =>
18460
- Schema.Struct({
18461
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18462
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
18463
- page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
18464
- perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
18465
- deployable: Schema.optional(Schema.Boolean).pipe(
18466
- T.HttpQuery("deployable"),
18467
- ),
18468
- }).pipe(
18469
- T.Http({
18470
- method: "GET",
18471
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
18472
- }),
18473
- ),
18474
- ) as unknown as Schema.Codec<ListScriptVersionsRequest>;
18308
+ export const ListScriptVersionsRequest = /*@__PURE__*/ Schema.suspend(() =>
18309
+ Schema.Struct({
18310
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18311
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
18312
+ page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
18313
+ perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
18314
+ deployable: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("deployable")),
18315
+ }).pipe(
18316
+ T.Http({
18317
+ method: "GET",
18318
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
18319
+ }),
18320
+ ),
18321
+ ) as unknown as Schema.Codec<ListScriptVersionsRequest>;
18475
18322
 
18476
18323
  export interface ListScriptVersionsResponse {
18477
18324
  result: {
@@ -18510,15 +18357,14 @@ export interface ListScriptVersionsResponse {
18510
18357
  } | null;
18511
18358
  }
18512
18359
 
18513
- export const ListScriptVersionsResponse =
18514
- /*@__PURE__*/ Schema.suspend(() =>
18515
- Schema.Struct({
18516
- result: ListScriptVersionsResponseResult,
18517
- resultInfo: Schema.optional(
18518
- Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null]),
18519
- ),
18520
- }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
18521
- ) as unknown as Schema.Codec<ListScriptVersionsResponse>;
18360
+ export const ListScriptVersionsResponse = /*@__PURE__*/ Schema.suspend(() =>
18361
+ Schema.Struct({
18362
+ result: ListScriptVersionsResponseResult,
18363
+ resultInfo: Schema.optional(
18364
+ Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null]),
18365
+ ),
18366
+ }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })),
18367
+ ) as unknown as Schema.Codec<ListScriptVersionsResponse>;
18522
18368
 
18523
18369
  export type ListScriptVersionsError = DefaultErrors | WorkerNotFound;
18524
18370
 
@@ -18684,26 +18530,25 @@ export interface CreateScriptVersionRequest {
18684
18530
  files?: (File | Blob)[];
18685
18531
  }
18686
18532
 
18687
- export const CreateScriptVersionRequest =
18688
- /*@__PURE__*/ Schema.suspend(() =>
18689
- Schema.Struct({
18690
- scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18691
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
18692
- bindingsInherit: Schema.optional(Schema.Literal("strict")).pipe(
18693
- T.HttpQuery("bindings_inherit"),
18694
- ),
18695
- metadata: Metadata5,
18696
- files: Schema.optional(
18697
- Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
18698
- ),
18699
- }).pipe(
18700
- T.Http({
18701
- method: "POST",
18702
- path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
18703
- contentType: "multipart",
18704
- }),
18533
+ export const CreateScriptVersionRequest = /*@__PURE__*/ Schema.suspend(() =>
18534
+ Schema.Struct({
18535
+ scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
18536
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
18537
+ bindingsInherit: Schema.optional(Schema.Literal("strict")).pipe(
18538
+ T.HttpQuery("bindings_inherit"),
18539
+ ),
18540
+ metadata: Metadata5,
18541
+ files: Schema.optional(
18542
+ Schema.Array(UploadableSchema.pipe(T.HttpFormDataFile())),
18705
18543
  ),
18706
- ) as unknown as Schema.Codec<CreateScriptVersionRequest>;
18544
+ }).pipe(
18545
+ T.Http({
18546
+ method: "POST",
18547
+ path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
18548
+ contentType: "multipart",
18549
+ }),
18550
+ ),
18551
+ ) as unknown as Schema.Codec<CreateScriptVersionRequest>;
18707
18552
 
18708
18553
  export interface CreateScriptVersionResponse {
18709
18554
  resources: {
@@ -18885,30 +18730,44 @@ export interface CreateScriptVersionResponse {
18885
18730
  startupTimeMs?: number | null;
18886
18731
  }
18887
18732
 
18888
- export const CreateScriptVersionResponse =
18889
- /*@__PURE__*/ Schema.suspend(() =>
18890
- Schema.Struct({
18891
- resources: Resources,
18892
- id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18893
- metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
18894
- number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18895
- startupTimeMs: Schema.optional(
18896
- Schema.Union([Schema.Number, Schema.Null]),
18897
- ),
18898
- })
18899
- .pipe(
18900
- Schema.encodeKeys({
18901
- resources: "resources",
18902
- id: "id",
18903
- metadata: "metadata",
18904
- number: "number",
18905
- startupTimeMs: "startup_time_ms",
18906
- }),
18907
- )
18908
- .pipe(T.ResponsePath("result")),
18909
- ) as unknown as Schema.Codec<CreateScriptVersionResponse>;
18733
+ export const CreateScriptVersionResponse = /*@__PURE__*/ Schema.suspend(() =>
18734
+ Schema.Struct({
18735
+ resources: Resources,
18736
+ id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
18737
+ metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
18738
+ number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18739
+ startupTimeMs: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
18740
+ })
18741
+ .pipe(
18742
+ Schema.encodeKeys({
18743
+ resources: "resources",
18744
+ id: "id",
18745
+ metadata: "metadata",
18746
+ number: "number",
18747
+ startupTimeMs: "startup_time_ms",
18748
+ }),
18749
+ )
18750
+ .pipe(T.ResponsePath("result")),
18751
+ ) as unknown as Schema.Codec<CreateScriptVersionResponse>;
18910
18752
 
18911
- export type CreateScriptVersionError = DefaultErrors | WorkerNotFound;
18753
+ export type CreateScriptVersionError =
18754
+ | DefaultErrors
18755
+ | WorkerNotFound
18756
+ | InvalidWorkerScript
18757
+ | InternalServerError
18758
+ | ScriptStartupError
18759
+ | ScriptModuleNotFound
18760
+ | SecretsStoreBindingNotFound
18761
+ | KVNamespaceNotFound
18762
+ | R2BucketNotFound
18763
+ | D1DatabaseNotFound
18764
+ | QueueNotFound
18765
+ | ServiceBindingNotFound
18766
+ | DurableObjectClassNotFound
18767
+ | HyperdriveConfigNotFound
18768
+ | VectorizeIndexNotFound
18769
+ | DispatchNamespaceNotFound
18770
+ | MtlsCertificateNotFound;
18912
18771
 
18913
18772
  export const createScriptVersion: API.OperationMethod<
18914
18773
  CreateScriptVersionRequest,
@@ -18918,7 +18777,24 @@ export const createScriptVersion: API.OperationMethod<
18918
18777
  > = /*@__PURE__*/ API.make(() => ({
18919
18778
  input: CreateScriptVersionRequest,
18920
18779
  output: CreateScriptVersionResponse,
18921
- errors: [WorkerNotFound],
18780
+ errors: [
18781
+ WorkerNotFound,
18782
+ InvalidWorkerScript,
18783
+ InternalServerError,
18784
+ ScriptStartupError,
18785
+ ScriptModuleNotFound,
18786
+ SecretsStoreBindingNotFound,
18787
+ KVNamespaceNotFound,
18788
+ R2BucketNotFound,
18789
+ D1DatabaseNotFound,
18790
+ QueueNotFound,
18791
+ ServiceBindingNotFound,
18792
+ DurableObjectClassNotFound,
18793
+ HyperdriveConfigNotFound,
18794
+ VectorizeIndexNotFound,
18795
+ DispatchNamespaceNotFound,
18796
+ MtlsCertificateNotFound,
18797
+ ],
18922
18798
  }));
18923
18799
 
18924
18800
  // =============================================================================
@@ -19126,8 +19002,8 @@ export interface CreateServiceEdgePreviewRequest {
19126
19002
  | { routes: string[]; minimalMode?: boolean };
19127
19003
  }
19128
19004
 
19129
- export const CreateServiceEdgePreviewRequest =
19130
- /*@__PURE__*/ Schema.suspend(() =>
19005
+ export const CreateServiceEdgePreviewRequest = /*@__PURE__*/ Schema.suspend(
19006
+ () =>
19131
19007
  Schema.Struct({
19132
19008
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
19133
19009
  serviceName: Schema.String.pipe(T.HttpPath("service_name")),
@@ -19157,7 +19033,7 @@ export const CreateServiceEdgePreviewRequest =
19157
19033
  contentType: "multipart",
19158
19034
  }),
19159
19035
  ),
19160
- ) as unknown as Schema.Codec<CreateServiceEdgePreviewRequest>;
19036
+ ) as unknown as Schema.Codec<CreateServiceEdgePreviewRequest>;
19161
19037
 
19162
19038
  export interface CreateServiceEdgePreviewResponse {
19163
19039
  /** Token to send as cf-workers-preview-token header when making requests to the preview host. */
@@ -19166,8 +19042,8 @@ export interface CreateServiceEdgePreviewResponse {
19166
19042
  tailUrl?: string | null;
19167
19043
  }
19168
19044
 
19169
- export const CreateServiceEdgePreviewResponse =
19170
- /*@__PURE__*/ Schema.suspend(() =>
19045
+ export const CreateServiceEdgePreviewResponse = /*@__PURE__*/ Schema.suspend(
19046
+ () =>
19171
19047
  Schema.Struct({
19172
19048
  previewToken: Schema.String,
19173
19049
  tailUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -19179,7 +19055,7 @@ export const CreateServiceEdgePreviewResponse =
19179
19055
  }),
19180
19056
  )
19181
19057
  .pipe(T.ResponsePath("result")),
19182
- ) as unknown as Schema.Codec<CreateServiceEdgePreviewResponse>;
19058
+ ) as unknown as Schema.Codec<CreateServiceEdgePreviewResponse>;
19183
19059
 
19184
19060
  export type CreateServiceEdgePreviewError = DefaultErrors | InvalidRoute;
19185
19061
 
@@ -19207,10 +19083,7 @@ export const GetSubdomainRequest = /*@__PURE__*/ Schema.suspend(() =>
19207
19083
  Schema.Struct({
19208
19084
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
19209
19085
  }).pipe(
19210
- T.Http({
19211
- method: "GET",
19212
- path: "/accounts/{account_id}/workers/subdomain",
19213
- }),
19086
+ T.Http({ method: "GET", path: "/accounts/{account_id}/workers/subdomain" }),
19214
19087
  ),
19215
19088
  ) as unknown as Schema.Codec<GetSubdomainRequest>;
19216
19089
 
@@ -19253,10 +19126,7 @@ export const PutSubdomainRequest = /*@__PURE__*/ Schema.suspend(() =>
19253
19126
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
19254
19127
  subdomain: Schema.String,
19255
19128
  }).pipe(
19256
- T.Http({
19257
- method: "PUT",
19258
- path: "/accounts/{account_id}/workers/subdomain",
19259
- }),
19129
+ T.Http({ method: "PUT", path: "/accounts/{account_id}/workers/subdomain" }),
19260
19130
  ),
19261
19131
  ) as unknown as Schema.Codec<PutSubdomainRequest>;
19262
19132
 
@@ -19292,24 +19162,22 @@ export interface DeleteSubdomainRequest {
19292
19162
  accountId: string;
19293
19163
  }
19294
19164
 
19295
- export const DeleteSubdomainRequest =
19296
- /*@__PURE__*/ Schema.suspend(() =>
19297
- Schema.Struct({
19298
- accountId: Schema.String.pipe(T.HttpPath("account_id")),
19299
- }).pipe(
19300
- T.Http({
19301
- method: "DELETE",
19302
- path: "/accounts/{account_id}/workers/subdomain",
19303
- }),
19304
- ),
19305
- ) as unknown as Schema.Codec<DeleteSubdomainRequest>;
19165
+ export const DeleteSubdomainRequest = /*@__PURE__*/ Schema.suspend(() =>
19166
+ Schema.Struct({
19167
+ accountId: Schema.String.pipe(T.HttpPath("account_id")),
19168
+ }).pipe(
19169
+ T.Http({
19170
+ method: "DELETE",
19171
+ path: "/accounts/{account_id}/workers/subdomain",
19172
+ }),
19173
+ ),
19174
+ ) as unknown as Schema.Codec<DeleteSubdomainRequest>;
19306
19175
 
19307
19176
  export type DeleteSubdomainResponse = unknown;
19308
19177
 
19309
- export const DeleteSubdomainResponse =
19310
- /*@__PURE__*/ Schema.suspend(
19311
- () => Schema.Unknown,
19312
- ) as unknown as Schema.Codec<DeleteSubdomainResponse>;
19178
+ export const DeleteSubdomainResponse = /*@__PURE__*/ Schema.suspend(
19179
+ () => Schema.Unknown,
19180
+ ) as unknown as Schema.Codec<DeleteSubdomainResponse>;
19313
19181
 
19314
19182
  export type DeleteSubdomainError =
19315
19183
  | DefaultErrors
@@ -19587,14 +19455,14 @@ export interface CreateZoneEdgePreviewSessionRequest {
19587
19455
  zoneId: string;
19588
19456
  }
19589
19457
 
19590
- export const CreateZoneEdgePreviewSessionRequest =
19591
- /*@__PURE__*/ Schema.suspend(() =>
19458
+ export const CreateZoneEdgePreviewSessionRequest = /*@__PURE__*/ Schema.suspend(
19459
+ () =>
19592
19460
  Schema.Struct({
19593
19461
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
19594
19462
  }).pipe(
19595
19463
  T.Http({ method: "GET", path: "/zones/{zone_id}/workers/edge-preview" }),
19596
19464
  ),
19597
- ) as unknown as Schema.Codec<CreateZoneEdgePreviewSessionRequest>;
19465
+ ) as unknown as Schema.Codec<CreateZoneEdgePreviewSessionRequest>;
19598
19466
 
19599
19467
  export interface CreateZoneEdgePreviewSessionResponse {
19600
19468
  /** Session token used as cf-preview-upload-config-token when uploading a preview worker. */