@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.
@@ -175,13 +175,11 @@ export class WorkerVersionNotFound extends T.applyErrorMatchers(Schema.TaggedErr
175
175
  message: Schema.String,
176
176
  }), [{ code: 10071 }]) {
177
177
  }
178
- const ListBetaWorkersResponseResult =
179
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
178
+ const ListBetaWorkersResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
180
179
  id: Schema.String,
181
180
  name: Schema.String,
182
181
  }));
183
- const ListBetaWorkersResponseResultInfo =
184
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
182
+ const ListBetaWorkersResponseResultInfo = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
185
183
  count: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
186
184
  page: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
187
185
  perPage: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
@@ -316,14 +314,12 @@ const WorkersBindingKindAISearch = /*@__PURE__*/ Schema.suspend(() => Schema.Str
316
314
  type: "type",
317
315
  namespace: "namespace",
318
316
  })));
319
- const WorkersBindingKindAISearchNamespace =
320
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
317
+ const WorkersBindingKindAISearchNamespace = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
321
318
  name: Schema.String,
322
319
  namespace: Schema.String,
323
320
  type: Schema.Literal("ai_search_namespace"),
324
321
  }));
325
- const WorkersBindingKindAnalyticsEngine =
326
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
322
+ const WorkersBindingKindAnalyticsEngine = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
327
323
  dataset: Schema.String,
328
324
  name: Schema.String,
329
325
  type: Schema.Literal("analytics_engine"),
@@ -361,15 +357,13 @@ const Outbound = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
361
357
  params: Schema.optional(Schema.Union([Schema.Array(TailConsumer), Schema.Null])),
362
358
  worker: Schema.optional(Schema.Union([Worker, Schema.Null])),
363
359
  }));
364
- const WorkersBindingKindDispatchNamespace =
365
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
360
+ const WorkersBindingKindDispatchNamespace = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
366
361
  name: Schema.String,
367
362
  namespace: Schema.String,
368
363
  type: Schema.Literal("dispatch_namespace"),
369
364
  outbound: Schema.optional(Schema.Union([Outbound, Schema.Null])),
370
365
  }));
371
- const WorkersBindingKindDurableObjectNamespace =
372
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
366
+ const WorkersBindingKindDurableObjectNamespace = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
373
367
  name: Schema.String,
374
368
  type: Schema.Literal("durable_object_namespace"),
375
369
  className: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -411,8 +405,7 @@ const WorkersBindingKindJson = /*@__PURE__*/ Schema.suspend(() => Schema.Struct(
411
405
  name: Schema.String,
412
406
  type: Schema.Literal("json"),
413
407
  }));
414
- const WorkersBindingKindKVNamespace =
415
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
408
+ const WorkersBindingKindKVNamespace = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
416
409
  name: Schema.String,
417
410
  namespaceId: Schema.String,
418
411
  type: Schema.Literal("kv_namespace"),
@@ -425,8 +418,7 @@ const WorkersBindingKindMedia = /*@__PURE__*/ Schema.suspend(() => Schema.Struct
425
418
  name: Schema.String,
426
419
  type: Schema.Literal("media"),
427
420
  }));
428
- const WorkersBindingKindMTLSCertificate =
429
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
421
+ const WorkersBindingKindMTLSCertificate = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
430
422
  certificateId: Schema.String,
431
423
  name: Schema.String,
432
424
  type: Schema.Literal("mtls_certificate"),
@@ -520,18 +512,12 @@ const WorkersBindingKindVectorize = /*@__PURE__*/ Schema.suspend(() => Schema.St
520
512
  indexName: Schema.String,
521
513
  name: Schema.String,
522
514
  type: Schema.Literal("vectorize"),
523
- }).pipe(Schema.encodeKeys({
524
- indexName: "index_name",
525
- name: "name",
526
- type: "type",
527
- })));
528
- const WorkersBindingKindVersionMetadata =
529
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
515
+ }).pipe(Schema.encodeKeys({ indexName: "index_name", name: "name", type: "type" })));
516
+ const WorkersBindingKindVersionMetadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
530
517
  name: Schema.String,
531
518
  type: Schema.Literal("version_metadata"),
532
519
  }));
533
- const WorkersBindingKindSecretsStoreSecret =
534
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
520
+ const WorkersBindingKindSecretsStoreSecret = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
535
521
  name: Schema.String,
536
522
  secretName: Schema.String,
537
523
  storeId: Schema.String,
@@ -591,11 +577,7 @@ const WorkersBindingKindVPCService = /*@__PURE__*/ Schema.suspend(() => Schema.S
591
577
  name: Schema.String,
592
578
  serviceId: Schema.String,
593
579
  type: Schema.Literal("vpc_service"),
594
- }).pipe(Schema.encodeKeys({
595
- name: "name",
596
- serviceId: "service_id",
597
- type: "type",
598
- })));
580
+ }).pipe(Schema.encodeKeys({ name: "name", serviceId: "service_id", type: "type" })));
599
581
  const WorkersBindingKindVPCNetwork = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
600
582
  name: Schema.String,
601
583
  type: Schema.Literal("vpc_network"),
@@ -607,13 +589,11 @@ const WorkersBindingKindVPCNetwork = /*@__PURE__*/ Schema.suspend(() => Schema.S
607
589
  networkId: "network_id",
608
590
  tunnelId: "tunnel_id",
609
591
  })));
610
- const GetBetaWorkerVersionResponseBinding35 =
611
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
592
+ const GetBetaWorkerVersionResponseBinding35 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
612
593
  name: Schema.String,
613
594
  type: Schema.Literal("worker_loader"),
614
595
  }));
615
- const GetBetaWorkerVersionResponseBinding36 =
616
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
596
+ const GetBetaWorkerVersionResponseBinding36 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
617
597
  name: Schema.String,
618
598
  type: Schema.Literal("artifacts"),
619
599
  namespace: Schema.String,
@@ -647,16 +627,11 @@ const MigrationStepParam = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
647
627
  renamedClasses: "renamed_classes",
648
628
  transferredClasses: "transferred_classes",
649
629
  })));
650
- const WorkersMultipleStepMigrations =
651
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
630
+ const WorkersMultipleStepMigrations = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
652
631
  newTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
653
632
  oldTag: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
654
633
  steps: Schema.optional(Schema.Union([Schema.Array(MigrationStepParam), Schema.Null])),
655
- }).pipe(Schema.encodeKeys({
656
- newTag: "new_tag",
657
- oldTag: "old_tag",
658
- steps: "steps",
659
- })));
634
+ }).pipe(Schema.encodeKeys({ newTag: "new_tag", oldTag: "old_tag", steps: "steps" })));
660
635
  const Module = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
661
636
  contentBase64: Schema.String,
662
637
  contentType: Schema.String,
@@ -678,28 +653,23 @@ const Hostname = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
678
653
  const Host = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
679
654
  host: Schema.String,
680
655
  }));
681
- const GetBetaWorkerVersionResponsePlacement4 =
682
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
656
+ const GetBetaWorkerVersionResponsePlacement4 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
683
657
  mode: Schema.Literal("targeted"),
684
658
  region: Schema.String,
685
659
  }));
686
- const GetBetaWorkerVersionResponsePlacement5 =
687
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
660
+ const GetBetaWorkerVersionResponsePlacement5 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
688
661
  hostname: Schema.String,
689
662
  mode: Schema.Literal("targeted"),
690
663
  }));
691
- const GetBetaWorkerVersionResponsePlacement6 =
692
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
664
+ const GetBetaWorkerVersionResponsePlacement6 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
693
665
  host: Schema.String,
694
666
  mode: Schema.Literal("targeted"),
695
667
  }));
696
- const GetBetaWorkerVersionResponsePlacement7 =
697
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
668
+ const GetBetaWorkerVersionResponsePlacement7 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
698
669
  mode: Schema.Literal("targeted"),
699
670
  target: Schema.Array(Schema.Union([Region, Hostname, Host])),
700
671
  }));
701
- const ListBetaWorkerVersionsResponseResult =
702
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
672
+ const ListBetaWorkerVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
703
673
  id: Schema.String,
704
674
  createdOn: Schema.String,
705
675
  number: Schema.Number,
@@ -809,8 +779,7 @@ const Annotations2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
809
779
  workersMessage: "workers/message",
810
780
  workersTag: "workers/tag",
811
781
  })));
812
- const WorkersBindingKindDurableObjectNamespace2 =
813
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
782
+ const WorkersBindingKindDurableObjectNamespace2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
814
783
  name: Schema.String,
815
784
  type: Schema.Literal("durable_object_namespace"),
816
785
  className: Schema.String,
@@ -827,8 +796,7 @@ const WorkersBindingKindDurableObjectNamespace2 =
827
796
  namespaceId: "namespace_id",
828
797
  scriptName: "script_name",
829
798
  })));
830
- const WorkersBindingKindSecretText2 =
831
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
799
+ const WorkersBindingKindSecretText2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
832
800
  name: Schema.String,
833
801
  text: Schema.String,
834
802
  type: Schema.Literal("secret_text"),
@@ -1052,8 +1020,7 @@ const ListObservabilityQueriesResponseResultParametersFilter =
1052
1020
  filters: Schema.Array(Schema.Unknown),
1053
1021
  kind: Schema.Literal("group"),
1054
1022
  }));
1055
- const WorkersObservabilityFilterLeaf =
1056
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1023
+ const WorkersObservabilityFilterLeaf = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1057
1024
  key: Schema.String,
1058
1025
  operation: Schema.Union([
1059
1026
  Schema.Literals([
@@ -1150,8 +1117,7 @@ const Parameters = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1150
1117
  needle: Schema.optional(Schema.Union([Needle, Schema.Null])),
1151
1118
  orderBy: Schema.optional(Schema.Union([OrderBy, Schema.Null])),
1152
1119
  }));
1153
- const ListObservabilityQueriesResponseResult =
1154
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1120
+ const ListObservabilityQueriesResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1155
1121
  id: Schema.String,
1156
1122
  adhoc: Schema.Boolean,
1157
1123
  created: Schema.String,
@@ -1502,8 +1468,7 @@ const Parameters3 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1502
1468
  needle: Schema.optional(Schema.Union([Needle, Schema.Null])),
1503
1469
  orderBy: Schema.optional(Schema.Union([OrderBy, Schema.Null])),
1504
1470
  }));
1505
- const KeysObservabilityTelemetryResponseResult =
1506
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1471
+ const KeysObservabilityTelemetryResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1507
1472
  key: Schema.String,
1508
1473
  lastSeenAt: Schema.Number,
1509
1474
  type: Schema.Union([
@@ -1586,8 +1551,7 @@ const Events2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1586
1551
  series: Schema.optional(Schema.Union([Schema.Array(Series3), Schema.Null])),
1587
1552
  statistics: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
1588
1553
  }));
1589
- const ValuesObservabilityTelemetryResponseResult =
1590
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1554
+ const ValuesObservabilityTelemetryResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1591
1555
  dataset: Schema.String,
1592
1556
  key: Schema.String,
1593
1557
  type: Schema.Union([
@@ -1648,8 +1612,7 @@ const Observability2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1648
1612
  logs: "logs",
1649
1613
  traces: "traces",
1650
1614
  })));
1651
- const ListScriptsResponseResultPlacement =
1652
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1615
+ const ListScriptsResponseResultPlacement = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1653
1616
  mode: Schema.Literal("smart"),
1654
1617
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1655
1618
  status: Schema.optional(Schema.Union([
@@ -1668,8 +1631,7 @@ const ListScriptsResponseResultPlacement =
1668
1631
  lastAnalyzedAt: "last_analyzed_at",
1669
1632
  status: "status",
1670
1633
  })));
1671
- const ListScriptsResponseResultPlacement1 =
1672
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1634
+ const ListScriptsResponseResultPlacement1 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1673
1635
  region: Schema.String,
1674
1636
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1675
1637
  status: Schema.optional(Schema.Union([
@@ -1688,8 +1650,7 @@ const ListScriptsResponseResultPlacement1 =
1688
1650
  lastAnalyzedAt: "last_analyzed_at",
1689
1651
  status: "status",
1690
1652
  })));
1691
- const ListScriptsResponseResultPlacement2 =
1692
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1653
+ const ListScriptsResponseResultPlacement2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1693
1654
  hostname: Schema.String,
1694
1655
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1695
1656
  status: Schema.optional(Schema.Union([
@@ -1708,8 +1669,7 @@ const ListScriptsResponseResultPlacement2 =
1708
1669
  lastAnalyzedAt: "last_analyzed_at",
1709
1670
  status: "status",
1710
1671
  })));
1711
- const ListScriptsResponseResultPlacement3 =
1712
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1672
+ const ListScriptsResponseResultPlacement3 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1713
1673
  host: Schema.String,
1714
1674
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1715
1675
  status: Schema.optional(Schema.Union([
@@ -1728,8 +1688,7 @@ const ListScriptsResponseResultPlacement3 =
1728
1688
  lastAnalyzedAt: "last_analyzed_at",
1729
1689
  status: "status",
1730
1690
  })));
1731
- const ListScriptsResponseResultPlacement4 =
1732
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1691
+ const ListScriptsResponseResultPlacement4 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1733
1692
  mode: Schema.Literal("targeted"),
1734
1693
  region: Schema.String,
1735
1694
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1750,8 +1709,7 @@ const ListScriptsResponseResultPlacement4 =
1750
1709
  lastAnalyzedAt: "last_analyzed_at",
1751
1710
  status: "status",
1752
1711
  })));
1753
- const ListScriptsResponseResultPlacement5 =
1754
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1712
+ const ListScriptsResponseResultPlacement5 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1755
1713
  hostname: Schema.String,
1756
1714
  mode: Schema.Literal("targeted"),
1757
1715
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1772,8 +1730,7 @@ const ListScriptsResponseResultPlacement5 =
1772
1730
  lastAnalyzedAt: "last_analyzed_at",
1773
1731
  status: "status",
1774
1732
  })));
1775
- const ListScriptsResponseResultPlacement6 =
1776
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1733
+ const ListScriptsResponseResultPlacement6 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1777
1734
  host: Schema.String,
1778
1735
  mode: Schema.Literal("targeted"),
1779
1736
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1794,8 +1751,7 @@ const ListScriptsResponseResultPlacement6 =
1794
1751
  lastAnalyzedAt: "last_analyzed_at",
1795
1752
  status: "status",
1796
1753
  })));
1797
- const ListScriptsResponseResultPlacement7 =
1798
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1754
+ const ListScriptsResponseResultPlacement7 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1799
1755
  mode: Schema.Literal("targeted"),
1800
1756
  target: Schema.Array(Schema.Union([Region, Hostname, Host])),
1801
1757
  lastAnalyzedAt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -1938,13 +1894,11 @@ const Assets2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1938
1894
  config: Schema.optional(Schema.Union([Config2, Schema.Null])),
1939
1895
  jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
1940
1896
  }));
1941
- const PutScriptRequestMetadataBinding37Simple =
1942
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1897
+ const PutScriptRequestMetadataBinding37Simple = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1943
1898
  limit: Schema.Number,
1944
1899
  period: Schema.Number,
1945
1900
  }));
1946
- const PutScriptRequestMetadataBinding37 =
1947
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1901
+ const PutScriptRequestMetadataBinding37 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1948
1902
  name: Schema.String,
1949
1903
  type: Schema.Literal("ratelimit"),
1950
1904
  namespaceId: Schema.String,
@@ -1955,8 +1909,7 @@ const PutScriptRequestMetadataBinding37 =
1955
1909
  namespaceId: "namespace_id",
1956
1910
  simple: "simple",
1957
1911
  })));
1958
- const PutScriptRequestMetadataCache =
1959
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1912
+ const PutScriptRequestMetadataCache = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
1960
1913
  enabled: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1961
1914
  crossVersionCache: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
1962
1915
  }).pipe(Schema.encodeKeys({
@@ -2434,8 +2387,7 @@ const CreateScriptEdgePreviewRequestMetadataObservability =
2434
2387
  logs: "logs",
2435
2388
  traces: "traces",
2436
2389
  })));
2437
- const CreateScriptEdgePreviewRequestMetadata =
2438
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2390
+ const CreateScriptEdgePreviewRequestMetadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2439
2391
  mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2440
2392
  bodyPart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2441
2393
  compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -2779,14 +2731,12 @@ const Metadata4 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2779
2731
  modifiedOn: "modified_on",
2780
2732
  source: "source",
2781
2733
  })));
2782
- const ListScriptVersionsResponseResultItem =
2783
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2734
+ const ListScriptVersionsResponseResultItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2784
2735
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2785
2736
  metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
2786
2737
  number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
2787
2738
  }));
2788
- const ListScriptVersionsResponseResult =
2789
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2739
+ const ListScriptVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2790
2740
  items: Schema.optional(Schema.Union([
2791
2741
  Schema.Array(ListScriptVersionsResponseResultItem),
2792
2742
  Schema.Null,
@@ -2867,15 +2817,13 @@ const Metadata5 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2867
2817
  usageModel: "usage_model",
2868
2818
  cache: "cache_options",
2869
2819
  })));
2870
- export const GetAccountSettingRequest =
2871
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2820
+ export const GetAccountSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2872
2821
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2873
2822
  }).pipe(T.Http({
2874
2823
  method: "GET",
2875
2824
  path: "/accounts/{account_id}/workers/account-settings",
2876
2825
  })));
2877
- export const GetAccountSettingResponse =
2878
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2826
+ export const GetAccountSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2879
2827
  defaultUsageModel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2880
2828
  greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2881
2829
  })
@@ -2889,8 +2837,7 @@ export const getAccountSetting = /*@__PURE__*/ API.make(() => ({
2889
2837
  output: GetAccountSettingResponse,
2890
2838
  errors: [InvalidRoute, Forbidden],
2891
2839
  }));
2892
- export const PutAccountSettingRequest =
2893
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2840
+ export const PutAccountSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2894
2841
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2895
2842
  defaultUsageModel: Schema.optional(Schema.String),
2896
2843
  greenCompute: Schema.optional(Schema.Boolean),
@@ -2901,8 +2848,7 @@ export const PutAccountSettingRequest =
2901
2848
  method: "PUT",
2902
2849
  path: "/accounts/{account_id}/workers/account-settings",
2903
2850
  })));
2904
- export const PutAccountSettingResponse =
2905
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2851
+ export const PutAccountSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2906
2852
  defaultUsageModel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2907
2853
  greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
2908
2854
  })
@@ -2916,8 +2862,7 @@ export const putAccountSetting = /*@__PURE__*/ API.make(() => ({
2916
2862
  output: PutAccountSettingResponse,
2917
2863
  errors: [InvalidRoute, Forbidden],
2918
2864
  }));
2919
- export const CreateAssetUploadRequest =
2920
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2865
+ export const CreateAssetUploadRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2921
2866
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2922
2867
  base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
2923
2868
  jwtToken: Schema.optional(Schema.String).pipe(T.HttpHeader("Authorization")),
@@ -2927,8 +2872,7 @@ export const CreateAssetUploadRequest =
2927
2872
  path: "/accounts/{account_id}/workers/assets/upload",
2928
2873
  contentType: "multipart",
2929
2874
  })));
2930
- export const CreateAssetUploadResponse =
2931
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2875
+ export const CreateAssetUploadResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2932
2876
  jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
2933
2877
  }).pipe(T.ResponsePath("result")));
2934
2878
  export const createAssetUpload = /*@__PURE__*/ API.make(() => ({
@@ -2952,8 +2896,7 @@ export const getBetaWorker = /*@__PURE__*/ API.make(() => ({
2952
2896
  output: GetBetaWorkerResponse,
2953
2897
  errors: [WorkerNotFound, InvalidRoute],
2954
2898
  }));
2955
- export const ListBetaWorkersRequest =
2956
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2899
+ export const ListBetaWorkersRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2957
2900
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2958
2901
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
2959
2902
  perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
@@ -2963,8 +2906,7 @@ export const ListBetaWorkersRequest =
2963
2906
  Schema.String,
2964
2907
  ])).pipe(T.HttpQuery("order_by")),
2965
2908
  }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" })));
2966
- export const ListBetaWorkersResponse =
2967
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2909
+ export const ListBetaWorkersResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2968
2910
  result: Schema.Array(ListBetaWorkersResponseResult),
2969
2911
  resultInfo: Schema.optional(Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null])),
2970
2912
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
@@ -2980,8 +2922,7 @@ export const listBetaWorkers = /*@__PURE__*/ API.makePaginated(() => ({
2980
2922
  pageSize: "perPage",
2981
2923
  },
2982
2924
  }));
2983
- export const CreateBetaWorkerRequest =
2984
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2925
+ export const CreateBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2985
2926
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
2986
2927
  name: Schema.String,
2987
2928
  logpush: Schema.optional(Schema.Boolean),
@@ -2996,12 +2937,8 @@ export const CreateBetaWorkerRequest =
2996
2937
  subdomain: "subdomain",
2997
2938
  tags: "tags",
2998
2939
  tailConsumers: "tail_consumers",
2999
- }), T.Http({
3000
- method: "POST",
3001
- path: "/accounts/{account_id}/workers/workers",
3002
- })));
3003
- export const CreateBetaWorkerResponse =
3004
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2940
+ }), T.Http({ method: "POST", path: "/accounts/{account_id}/workers/workers" })));
2941
+ export const CreateBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3005
2942
  id: Schema.String,
3006
2943
  name: Schema.String,
3007
2944
  }).pipe(T.ResponsePath("result")));
@@ -3010,8 +2947,7 @@ export const createBetaWorker = /*@__PURE__*/ API.make(() => ({
3010
2947
  output: CreateBetaWorkerResponse,
3011
2948
  errors: [InvalidRoute],
3012
2949
  }));
3013
- export const UpdateBetaWorkerRequest =
3014
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2950
+ export const UpdateBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3015
2951
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3016
2952
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3017
2953
  name: Schema.String,
@@ -3031,8 +2967,7 @@ export const UpdateBetaWorkerRequest =
3031
2967
  method: "PUT",
3032
2968
  path: "/accounts/{account_id}/workers/workers/{workerId}",
3033
2969
  })));
3034
- export const UpdateBetaWorkerResponse =
3035
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2970
+ export const UpdateBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3036
2971
  id: Schema.String,
3037
2972
  name: Schema.String,
3038
2973
  }).pipe(T.ResponsePath("result")));
@@ -3041,8 +2976,7 @@ export const updateBetaWorker = /*@__PURE__*/ API.make(() => ({
3041
2976
  output: UpdateBetaWorkerResponse,
3042
2977
  errors: [WorkerNotFound],
3043
2978
  }));
3044
- export const PatchBetaWorkerRequest =
3045
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2979
+ export const PatchBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3046
2980
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3047
2981
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3048
2982
  logpush: Schema.Boolean,
@@ -3062,8 +2996,7 @@ export const PatchBetaWorkerRequest =
3062
2996
  method: "PATCH",
3063
2997
  path: "/accounts/{account_id}/workers/workers/{workerId}",
3064
2998
  })));
3065
- export const PatchBetaWorkerResponse =
3066
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
2999
+ export const PatchBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3067
3000
  id: Schema.String,
3068
3001
  name: Schema.String,
3069
3002
  }).pipe(T.ResponsePath("result")));
@@ -3072,16 +3005,14 @@ export const patchBetaWorker = /*@__PURE__*/ API.make(() => ({
3072
3005
  output: PatchBetaWorkerResponse,
3073
3006
  errors: [WorkerNotFound],
3074
3007
  }));
3075
- export const DeleteBetaWorkerRequest =
3076
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3008
+ export const DeleteBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3077
3009
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3078
3010
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3079
3011
  }).pipe(T.Http({
3080
3012
  method: "DELETE",
3081
3013
  path: "/accounts/{account_id}/workers/workers/{workerId}",
3082
3014
  })));
3083
- export const DeleteBetaWorkerResponse =
3084
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3015
+ export const DeleteBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3085
3016
  errors: Schema.Array(Error2),
3086
3017
  messages: Schema.Array(Error2),
3087
3018
  success: Schema.Literal(true),
@@ -3091,8 +3022,7 @@ export const deleteBetaWorker = /*@__PURE__*/ API.make(() => ({
3091
3022
  output: DeleteBetaWorkerResponse,
3092
3023
  errors: [WorkerNotFound],
3093
3024
  }));
3094
- export const GetBetaWorkerVersionRequest =
3095
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3025
+ export const GetBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3096
3026
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3097
3027
  versionId: Schema.String.pipe(T.HttpPath("versionId")),
3098
3028
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3101,8 +3031,7 @@ export const GetBetaWorkerVersionRequest =
3101
3031
  method: "GET",
3102
3032
  path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
3103
3033
  })));
3104
- export const GetBetaWorkerVersionResponse =
3105
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3034
+ export const GetBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3106
3035
  id: Schema.String,
3107
3036
  createdOn: Schema.String,
3108
3037
  number: Schema.Number,
@@ -3212,8 +3141,7 @@ export const getBetaWorkerVersion = /*@__PURE__*/ API.make(() => ({
3212
3141
  output: GetBetaWorkerVersionResponse,
3213
3142
  errors: [WorkerNotFound, WorkerVersionNotFound],
3214
3143
  }));
3215
- export const ListBetaWorkerVersionsRequest =
3216
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3144
+ export const ListBetaWorkerVersionsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3217
3145
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3218
3146
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3219
3147
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
@@ -3222,8 +3150,7 @@ export const ListBetaWorkerVersionsRequest =
3222
3150
  method: "GET",
3223
3151
  path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
3224
3152
  })));
3225
- export const ListBetaWorkerVersionsResponse =
3226
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3153
+ export const ListBetaWorkerVersionsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3227
3154
  result: Schema.Array(ListBetaWorkerVersionsResponseResult),
3228
3155
  resultInfo: Schema.optional(Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null])),
3229
3156
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
@@ -3239,8 +3166,7 @@ export const listBetaWorkerVersions = /*@__PURE__*/ API.makePaginated(() => ({
3239
3166
  pageSize: "perPage",
3240
3167
  },
3241
3168
  }));
3242
- export const CreateBetaWorkerVersionRequest =
3243
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3169
+ export const CreateBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3244
3170
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3245
3171
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3246
3172
  deploy: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("deploy")),
@@ -3323,8 +3249,7 @@ export const CreateBetaWorkerVersionRequest =
3323
3249
  method: "POST",
3324
3250
  path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
3325
3251
  })));
3326
- export const CreateBetaWorkerVersionResponse =
3327
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3252
+ export const CreateBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3328
3253
  id: Schema.String,
3329
3254
  createdOn: Schema.String,
3330
3255
  number: Schema.Number,
@@ -3434,8 +3359,7 @@ export const createBetaWorkerVersion = /*@__PURE__*/ API.make(() => ({
3434
3359
  output: CreateBetaWorkerVersionResponse,
3435
3360
  errors: [WorkerNotFound],
3436
3361
  }));
3437
- export const DeleteBetaWorkerVersionRequest =
3438
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3362
+ export const DeleteBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3439
3363
  workerId: Schema.String.pipe(T.HttpPath("workerId")),
3440
3364
  versionId: Schema.String.pipe(T.HttpPath("versionId")),
3441
3365
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -3443,8 +3367,7 @@ export const DeleteBetaWorkerVersionRequest =
3443
3367
  method: "DELETE",
3444
3368
  path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
3445
3369
  })));
3446
- export const DeleteBetaWorkerVersionResponse =
3447
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3370
+ export const DeleteBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3448
3371
  errors: Schema.Array(Error2),
3449
3372
  messages: Schema.Array(Error2),
3450
3373
  success: Schema.Literal(true),
@@ -3656,8 +3579,7 @@ export const deleteObservabilityDestination = /*@__PURE__*/ API.make(() => ({
3656
3579
  output: DeleteObservabilityDestinationResponse,
3657
3580
  errors: [ObservabilityDestinationNotFound, Forbidden],
3658
3581
  }));
3659
- export const ListObservabilityQueriesRequest =
3660
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3582
+ export const ListObservabilityQueriesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3661
3583
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3662
3584
  order: Schema.optional(Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String])).pipe(T.HttpQuery("order")),
3663
3585
  orderBy: Schema.optional(Schema.Union([Schema.Literals(["created", "updated"]), Schema.String])).pipe(T.HttpQuery("orderBy")),
@@ -3667,8 +3589,7 @@ export const ListObservabilityQueriesRequest =
3667
3589
  method: "GET",
3668
3590
  path: "/accounts/{account_id}/workers/observability/queries",
3669
3591
  })));
3670
- export const ListObservabilityQueriesResponse =
3671
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3592
+ export const ListObservabilityQueriesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3672
3593
  result: Schema.Array(ListObservabilityQueriesResponseResult),
3673
3594
  }));
3674
3595
  export const listObservabilityQueries = /*@__PURE__*/ API.makePaginated(() => ({
@@ -3680,8 +3601,7 @@ export const listObservabilityQueries = /*@__PURE__*/ API.makePaginated(() => ({
3680
3601
  items: "result",
3681
3602
  },
3682
3603
  }));
3683
- export const CreateObservabilityQueryRequest =
3684
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3604
+ export const CreateObservabilityQueryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3685
3605
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3686
3606
  description: Schema.Union([Schema.String, Schema.Null]),
3687
3607
  name: Schema.String,
@@ -3690,8 +3610,7 @@ export const CreateObservabilityQueryRequest =
3690
3610
  method: "POST",
3691
3611
  path: "/accounts/{account_id}/workers/observability/queries",
3692
3612
  })));
3693
- export const CreateObservabilityQueryResponse =
3694
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3613
+ export const CreateObservabilityQueryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3695
3614
  id: Schema.String,
3696
3615
  adhoc: Schema.Boolean,
3697
3616
  created: Schema.String,
@@ -3707,8 +3626,7 @@ export const createObservabilityQuery = /*@__PURE__*/ API.make(() => ({
3707
3626
  output: CreateObservabilityQueryResponse,
3708
3627
  errors: [],
3709
3628
  }));
3710
- export const GetObservabilitySharedQueryRequest =
3711
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3629
+ export const GetObservabilitySharedQueryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3712
3630
  id: Schema.String.pipe(T.HttpPath("id")),
3713
3631
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3714
3632
  view: Schema.optional(Schema.Union([
@@ -3719,8 +3637,7 @@ export const GetObservabilitySharedQueryRequest =
3719
3637
  method: "GET",
3720
3638
  path: "/accounts/{account_id}/workers/observability/shared/query/{id}",
3721
3639
  })));
3722
- export const GetObservabilitySharedQueryResponse =
3723
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3640
+ export const GetObservabilitySharedQueryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3724
3641
  run: Run,
3725
3642
  statistics: Statistics,
3726
3643
  agents: Schema.optional(Schema.Union([Schema.Array(Agent), Schema.Null])),
@@ -3777,8 +3694,7 @@ export const createObservabilitySharedQuery = /*@__PURE__*/ API.make(() => ({
3777
3694
  output: CreateObservabilitySharedQueryResponse,
3778
3695
  errors: [],
3779
3696
  }));
3780
- export const KeysObservabilityTelemetryRequest =
3781
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3697
+ export const KeysObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3782
3698
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3783
3699
  datasets: Schema.optional(Schema.Array(Schema.String)),
3784
3700
  filters: Schema.optional(Schema.Array(Schema.Union([
@@ -3794,8 +3710,7 @@ export const KeysObservabilityTelemetryRequest =
3794
3710
  method: "POST",
3795
3711
  path: "/accounts/{account_id}/workers/observability/telemetry/keys",
3796
3712
  })));
3797
- export const KeysObservabilityTelemetryResponse =
3798
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3713
+ export const KeysObservabilityTelemetryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3799
3714
  result: Schema.Array(KeysObservabilityTelemetryResponseResult),
3800
3715
  }));
3801
3716
  export const keysObservabilityTelemetry = /*@__PURE__*/ API.makePaginated(() => ({
@@ -3807,8 +3722,7 @@ export const keysObservabilityTelemetry = /*@__PURE__*/ API.makePaginated(() =>
3807
3722
  items: "result",
3808
3723
  },
3809
3724
  }));
3810
- export const QueryObservabilityTelemetryRequest =
3811
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3725
+ export const QueryObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3812
3726
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3813
3727
  queryId: Schema.String,
3814
3728
  timeframe: Timeframe,
@@ -3837,8 +3751,7 @@ export const QueryObservabilityTelemetryRequest =
3837
3751
  method: "POST",
3838
3752
  path: "/accounts/{account_id}/workers/observability/telemetry/query",
3839
3753
  })));
3840
- export const QueryObservabilityTelemetryResponse =
3841
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3754
+ export const QueryObservabilityTelemetryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3842
3755
  run: Run2,
3843
3756
  statistics: Statistics,
3844
3757
  agents: Schema.optional(Schema.Union([Schema.Array(Agent), Schema.Null])),
@@ -3853,8 +3766,7 @@ export const queryObservabilityTelemetry = /*@__PURE__*/ API.make(() => ({
3853
3766
  output: QueryObservabilityTelemetryResponse,
3854
3767
  errors: [InvalidRoute],
3855
3768
  }));
3856
- export const ValuesObservabilityTelemetryRequest =
3857
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3769
+ export const ValuesObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
3858
3770
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
3859
3771
  datasets: Schema.Array(Schema.String),
3860
3772
  key: Schema.String,
@@ -4147,8 +4059,7 @@ export const searchScript = /*@__PURE__*/ API.make(() => ({
4147
4059
  output: SearchScriptResponse,
4148
4060
  errors: [InvalidRoute],
4149
4061
  }));
4150
- export const CreateScriptAssetUploadRequest =
4151
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4062
+ export const CreateScriptAssetUploadRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4152
4063
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4153
4064
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4154
4065
  manifest: Schema.Record(Schema.String, Schema.Unknown),
@@ -4156,8 +4067,7 @@ export const CreateScriptAssetUploadRequest =
4156
4067
  method: "POST",
4157
4068
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/assets-upload-session",
4158
4069
  })));
4159
- export const CreateScriptAssetUploadResponse =
4160
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4070
+ export const CreateScriptAssetUploadResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4161
4071
  buckets: Schema.optional(Schema.Union([Schema.Array(Schema.Array(Schema.String)), Schema.Null])),
4162
4072
  jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4163
4073
  }).pipe(T.ResponsePath("result")));
@@ -4166,23 +4076,20 @@ export const createScriptAssetUpload = /*@__PURE__*/ API.make(() => ({
4166
4076
  output: CreateScriptAssetUploadResponse,
4167
4077
  errors: [],
4168
4078
  }));
4169
- export const GetScriptContentRequest =
4170
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4079
+ export const GetScriptContentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4171
4080
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4172
4081
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4173
4082
  }).pipe(T.Http({
4174
4083
  method: "GET",
4175
4084
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/content/v2",
4176
4085
  })));
4177
- export const GetScriptContentResponse =
4178
- /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
4086
+ export const GetScriptContentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
4179
4087
  export const getScriptContent = /*@__PURE__*/ API.make(() => ({
4180
4088
  input: GetScriptContentRequest,
4181
4089
  output: GetScriptContentResponse,
4182
4090
  errors: [WorkerNotFound],
4183
4091
  }));
4184
- export const PutScriptContentRequest =
4185
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4092
+ export const PutScriptContentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4186
4093
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4187
4094
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4188
4095
  cfworkerbodypart: Schema.optional(Schema.String).pipe(T.HttpHeader("CF-WORKER-BODY-PART")),
@@ -4194,8 +4101,7 @@ export const PutScriptContentRequest =
4194
4101
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/content",
4195
4102
  contentType: "multipart",
4196
4103
  })));
4197
- export const PutScriptContentResponse =
4198
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4104
+ export const PutScriptContentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4199
4105
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4200
4106
  compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4201
4107
  compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
@@ -4283,8 +4189,7 @@ export const putScriptContent = /*@__PURE__*/ API.make(() => ({
4283
4189
  ScriptModuleNotFound,
4284
4190
  ],
4285
4191
  }));
4286
- export const GetScriptDeploymentRequest =
4287
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4192
+ export const GetScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4288
4193
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4289
4194
  deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
4290
4195
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4292,8 +4197,7 @@ export const GetScriptDeploymentRequest =
4292
4197
  method: "GET",
4293
4198
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
4294
4199
  })));
4295
- export const GetScriptDeploymentResponse =
4296
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4200
+ export const GetScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4297
4201
  id: Schema.String,
4298
4202
  createdOn: Schema.String,
4299
4203
  source: Schema.String,
@@ -4317,16 +4221,14 @@ export const getScriptDeployment = /*@__PURE__*/ API.make(() => ({
4317
4221
  output: GetScriptDeploymentResponse,
4318
4222
  errors: [WorkerNotFound, DeploymentNotFound],
4319
4223
  }));
4320
- export const ListScriptDeploymentsRequest =
4321
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4224
+ export const ListScriptDeploymentsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4322
4225
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4323
4226
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4324
4227
  }).pipe(T.Http({
4325
4228
  method: "GET",
4326
4229
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
4327
4230
  })));
4328
- export const ListScriptDeploymentsResponse =
4329
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4231
+ export const ListScriptDeploymentsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4330
4232
  deployments: Schema.Array(Deployment),
4331
4233
  }).pipe(T.ResponsePath("result")));
4332
4234
  export const listScriptDeployments = /*@__PURE__*/ API.make(() => ({
@@ -4334,8 +4236,7 @@ export const listScriptDeployments = /*@__PURE__*/ API.make(() => ({
4334
4236
  output: ListScriptDeploymentsResponse,
4335
4237
  errors: [WorkerNotFound],
4336
4238
  }));
4337
- export const CreateScriptDeploymentRequest =
4338
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4239
+ export const CreateScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4339
4240
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4340
4241
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4341
4242
  force: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("force")),
@@ -4346,8 +4247,7 @@ export const CreateScriptDeploymentRequest =
4346
4247
  method: "POST",
4347
4248
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
4348
4249
  })));
4349
- export const CreateScriptDeploymentResponse =
4350
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4250
+ export const CreateScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4351
4251
  id: Schema.String,
4352
4252
  createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4353
4253
  source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
@@ -4371,8 +4271,7 @@ export const createScriptDeployment = /*@__PURE__*/ API.make(() => ({
4371
4271
  output: CreateScriptDeploymentResponse,
4372
4272
  errors: [WorkerNotFound],
4373
4273
  }));
4374
- export const DeleteScriptDeploymentRequest =
4375
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4274
+ export const DeleteScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4376
4275
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4377
4276
  deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
4378
4277
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4380,8 +4279,7 @@ export const DeleteScriptDeploymentRequest =
4380
4279
  method: "DELETE",
4381
4280
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
4382
4281
  })));
4383
- export const DeleteScriptDeploymentResponse =
4384
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4282
+ export const DeleteScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4385
4283
  errors: Schema.Array(Error2),
4386
4284
  messages: Schema.Array(Error2),
4387
4285
  success: Schema.Literal(true),
@@ -4391,8 +4289,7 @@ export const deleteScriptDeployment = /*@__PURE__*/ API.make(() => ({
4391
4289
  output: DeleteScriptDeploymentResponse,
4392
4290
  errors: [WorkerNotFound, DeploymentNotFound],
4393
4291
  }));
4394
- export const CreateScriptEdgePreviewRequest =
4395
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4292
+ export const CreateScriptEdgePreviewRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4396
4293
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4397
4294
  scriptName: Schema.String.pipe(T.HttpPath("script_name")),
4398
4295
  cfPreviewUploadConfigToken: Schema.String.pipe(T.HttpHeader("cf-preview-upload-config-token")),
@@ -4411,8 +4308,7 @@ export const CreateScriptEdgePreviewRequest =
4411
4308
  path: "/accounts/{account_id}/workers/scripts/{script_name}/edge-preview",
4412
4309
  contentType: "multipart",
4413
4310
  })));
4414
- export const CreateScriptEdgePreviewResponse =
4415
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4311
+ export const CreateScriptEdgePreviewResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4416
4312
  previewToken: Schema.String,
4417
4313
  tailUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4418
4314
  })
@@ -4426,16 +4322,14 @@ export const createScriptEdgePreview = /*@__PURE__*/ API.make(() => ({
4426
4322
  output: CreateScriptEdgePreviewResponse,
4427
4323
  errors: [InvalidRoute],
4428
4324
  }));
4429
- export const GetScriptScheduleRequest =
4430
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4325
+ export const GetScriptScheduleRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4431
4326
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4432
4327
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4433
4328
  }).pipe(T.Http({
4434
4329
  method: "GET",
4435
4330
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
4436
4331
  })));
4437
- export const GetScriptScheduleResponse =
4438
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4332
+ export const GetScriptScheduleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4439
4333
  schedules: Schema.Array(Schedule),
4440
4334
  }).pipe(T.ResponsePath("result")));
4441
4335
  export const getScriptSchedule = /*@__PURE__*/ API.make(() => ({
@@ -4443,8 +4337,7 @@ export const getScriptSchedule = /*@__PURE__*/ API.make(() => ({
4443
4337
  output: GetScriptScheduleResponse,
4444
4338
  errors: [WorkerNotFound],
4445
4339
  }));
4446
- export const PutScriptScheduleRequest =
4447
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4340
+ export const PutScriptScheduleRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4448
4341
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4449
4342
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4450
4343
  body: Schema.Array(Body).pipe(T.HttpBody()),
@@ -4452,8 +4345,7 @@ export const PutScriptScheduleRequest =
4452
4345
  method: "PUT",
4453
4346
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
4454
4347
  })));
4455
- export const PutScriptScheduleResponse =
4456
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4348
+ export const PutScriptScheduleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4457
4349
  schedules: Schema.Array(Schedule),
4458
4350
  }).pipe(T.ResponsePath("result")));
4459
4351
  export const putScriptSchedule = /*@__PURE__*/ API.make(() => ({
@@ -4639,8 +4531,7 @@ export const patchScriptScriptAndVersionSetting = /*@__PURE__*/ API.make(() => (
4639
4531
  output: PatchScriptScriptAndVersionSettingResponse,
4640
4532
  errors: [WorkerNotFound, ContentTypeRequired],
4641
4533
  }));
4642
- export const GetScriptSecretRequest =
4643
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4534
+ export const GetScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4644
4535
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4645
4536
  secretName: Schema.String.pipe(T.HttpPath("secretName")),
4646
4537
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4649,8 +4540,7 @@ export const GetScriptSecretRequest =
4649
4540
  method: "GET",
4650
4541
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
4651
4542
  })));
4652
- export const GetScriptSecretResponse =
4653
- /*@__PURE__*/ Schema.suspend(() => Schema.Union([
4543
+ export const GetScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Union([
4654
4544
  WorkersBindingKindSecretKey,
4655
4545
  WorkersBindingKindSecretText,
4656
4546
  ]).pipe(T.ResponsePath("result")));
@@ -4659,20 +4549,15 @@ export const getScriptSecret = /*@__PURE__*/ API.make(() => ({
4659
4549
  output: GetScriptSecretResponse,
4660
4550
  errors: [WorkerNotFound, SecretNotFound],
4661
4551
  }));
4662
- export const ListScriptSecretsRequest =
4663
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4552
+ export const ListScriptSecretsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4664
4553
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4665
4554
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4666
4555
  }).pipe(T.Http({
4667
4556
  method: "GET",
4668
4557
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
4669
4558
  })));
4670
- export const ListScriptSecretsResponse =
4671
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4672
- result: Schema.Array(Schema.Union([
4673
- WorkersBindingKindSecretKey,
4674
- WorkersBindingKindSecretText,
4675
- ])),
4559
+ export const ListScriptSecretsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4560
+ result: Schema.Array(Schema.Union([WorkersBindingKindSecretKey, WorkersBindingKindSecretText])),
4676
4561
  }));
4677
4562
  export const listScriptSecrets = /*@__PURE__*/ API.makePaginated(() => ({
4678
4563
  input: ListScriptSecretsRequest,
@@ -4683,8 +4568,7 @@ export const listScriptSecrets = /*@__PURE__*/ API.makePaginated(() => ({
4683
4568
  items: "result",
4684
4569
  },
4685
4570
  }));
4686
- export const PutScriptSecretRequest =
4687
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4571
+ export const PutScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4688
4572
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4689
4573
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4690
4574
  name: Schema.String,
@@ -4726,8 +4610,7 @@ export const PutScriptSecretRequest =
4726
4610
  method: "PUT",
4727
4611
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
4728
4612
  })));
4729
- export const PutScriptSecretResponse =
4730
- /*@__PURE__*/ Schema.suspend(() => Schema.Union([
4613
+ export const PutScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Union([
4731
4614
  WorkersBindingKindSecretKey,
4732
4615
  WorkersBindingKindSecretText,
4733
4616
  ]).pipe(T.ResponsePath("result")));
@@ -4736,8 +4619,7 @@ export const putScriptSecret = /*@__PURE__*/ API.make(() => ({
4736
4619
  output: PutScriptSecretResponse,
4737
4620
  errors: [WorkerNotFound],
4738
4621
  }));
4739
- export const DeleteScriptSecretRequest =
4740
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4622
+ export const DeleteScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4741
4623
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4742
4624
  secretName: Schema.String.pipe(T.HttpPath("secretName")),
4743
4625
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4746,15 +4628,13 @@ export const DeleteScriptSecretRequest =
4746
4628
  method: "DELETE",
4747
4629
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
4748
4630
  })));
4749
- export const DeleteScriptSecretResponse =
4750
- /*@__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
4631
+ export const DeleteScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
4751
4632
  export const deleteScriptSecret = /*@__PURE__*/ API.make(() => ({
4752
4633
  input: DeleteScriptSecretRequest,
4753
4634
  output: DeleteScriptSecretResponse,
4754
4635
  errors: [WorkerNotFound, SecretNotFound],
4755
4636
  }));
4756
- export const BulkUpdateScriptSecretsRequest =
4757
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4637
+ export const BulkUpdateScriptSecretsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4758
4638
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4759
4639
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4760
4640
  secrets: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
@@ -4763,23 +4643,20 @@ export const BulkUpdateScriptSecretsRequest =
4763
4643
  method: "PATCH",
4764
4644
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets-bulk",
4765
4645
  })));
4766
- export const BulkUpdateScriptSecretsResponse =
4767
- /*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
4646
+ export const BulkUpdateScriptSecretsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
4768
4647
  export const bulkUpdateScriptSecrets = /*@__PURE__*/ API.make(() => ({
4769
4648
  input: BulkUpdateScriptSecretsRequest,
4770
4649
  output: BulkUpdateScriptSecretsResponse,
4771
4650
  errors: [],
4772
4651
  }));
4773
- export const GetScriptSettingRequest =
4774
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4652
+ export const GetScriptSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4775
4653
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4776
4654
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4777
4655
  }).pipe(T.Http({
4778
4656
  method: "GET",
4779
4657
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
4780
4658
  })));
4781
- export const GetScriptSettingResponse =
4782
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4659
+ export const GetScriptSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4783
4660
  logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4784
4661
  observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
4785
4662
  tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
@@ -4797,8 +4674,7 @@ export const getScriptSetting = /*@__PURE__*/ API.make(() => ({
4797
4674
  output: GetScriptSettingResponse,
4798
4675
  errors: [WorkerNotFound, WorkerHasNoVersions],
4799
4676
  }));
4800
- export const PatchScriptSettingRequest =
4801
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4677
+ export const PatchScriptSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4802
4678
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4803
4679
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4804
4680
  logpush: Schema.optional(Schema.Boolean),
@@ -4814,8 +4690,7 @@ export const PatchScriptSettingRequest =
4814
4690
  method: "PATCH",
4815
4691
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
4816
4692
  })));
4817
- export const PatchScriptSettingResponse =
4818
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4693
+ export const PatchScriptSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4819
4694
  logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
4820
4695
  observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
4821
4696
  tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
@@ -4833,16 +4708,14 @@ export const patchScriptSetting = /*@__PURE__*/ API.make(() => ({
4833
4708
  output: PatchScriptSettingResponse,
4834
4709
  errors: [WorkerNotFound],
4835
4710
  }));
4836
- export const GetScriptSubdomainRequest =
4837
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4711
+ export const GetScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4838
4712
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4839
4713
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4840
4714
  }).pipe(T.Http({
4841
4715
  method: "GET",
4842
4716
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
4843
4717
  })));
4844
- export const GetScriptSubdomainResponse =
4845
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4718
+ export const GetScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4846
4719
  enabled: Schema.Boolean,
4847
4720
  previewsEnabled: Schema.Boolean,
4848
4721
  })
@@ -4856,8 +4729,7 @@ export const getScriptSubdomain = /*@__PURE__*/ API.make(() => ({
4856
4729
  output: GetScriptSubdomainResponse,
4857
4730
  errors: [WorkerNotFound],
4858
4731
  }));
4859
- export const CreateScriptSubdomainRequest =
4860
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4732
+ export const CreateScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4861
4733
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4862
4734
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4863
4735
  enabled: Schema.Boolean,
@@ -4869,8 +4741,7 @@ export const CreateScriptSubdomainRequest =
4869
4741
  method: "POST",
4870
4742
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
4871
4743
  })));
4872
- export const CreateScriptSubdomainResponse =
4873
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4744
+ export const CreateScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4874
4745
  enabled: Schema.Boolean,
4875
4746
  previewsEnabled: Schema.Boolean,
4876
4747
  })
@@ -4884,16 +4755,14 @@ export const createScriptSubdomain = /*@__PURE__*/ API.make(() => ({
4884
4755
  output: CreateScriptSubdomainResponse,
4885
4756
  errors: [WorkerNotFound],
4886
4757
  }));
4887
- export const DeleteScriptSubdomainRequest =
4888
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4758
+ export const DeleteScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4889
4759
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4890
4760
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4891
4761
  }).pipe(T.Http({
4892
4762
  method: "DELETE",
4893
4763
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
4894
4764
  })));
4895
- export const DeleteScriptSubdomainResponse =
4896
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4765
+ export const DeleteScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4897
4766
  enabled: Schema.Boolean,
4898
4767
  previewsEnabled: Schema.Boolean,
4899
4768
  })
@@ -4926,8 +4795,7 @@ export const getScriptTail = /*@__PURE__*/ API.make(() => ({
4926
4795
  output: GetScriptTailResponse,
4927
4796
  errors: [WorkerNotFound],
4928
4797
  }));
4929
- export const CreateScriptTailRequest =
4930
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4798
+ export const CreateScriptTailRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4931
4799
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4932
4800
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4933
4801
  body: Schema.Unknown.pipe(T.HttpBody()),
@@ -4935,8 +4803,7 @@ export const CreateScriptTailRequest =
4935
4803
  method: "POST",
4936
4804
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails",
4937
4805
  })));
4938
- export const CreateScriptTailResponse =
4939
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4806
+ export const CreateScriptTailResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4940
4807
  id: Schema.String,
4941
4808
  expiresAt: Schema.String,
4942
4809
  url: Schema.String,
@@ -4948,8 +4815,7 @@ export const createScriptTail = /*@__PURE__*/ API.make(() => ({
4948
4815
  output: CreateScriptTailResponse,
4949
4816
  errors: [WorkerNotFound],
4950
4817
  }));
4951
- export const DeleteScriptTailRequest =
4952
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4818
+ export const DeleteScriptTailRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4953
4819
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4954
4820
  id: Schema.String.pipe(T.HttpPath("id")),
4955
4821
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4957,8 +4823,7 @@ export const DeleteScriptTailRequest =
4957
4823
  method: "DELETE",
4958
4824
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails/{id}",
4959
4825
  })));
4960
- export const DeleteScriptTailResponse =
4961
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4826
+ export const DeleteScriptTailResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4962
4827
  errors: Schema.Array(Error2),
4963
4828
  messages: Schema.Array(Error2),
4964
4829
  success: Schema.Literal(true),
@@ -4968,8 +4833,7 @@ export const deleteScriptTail = /*@__PURE__*/ API.make(() => ({
4968
4833
  output: DeleteScriptTailResponse,
4969
4834
  errors: [WorkerNotFound],
4970
4835
  }));
4971
- export const GetScriptVersionRequest =
4972
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4836
+ export const GetScriptVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4973
4837
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4974
4838
  versionId: Schema.String.pipe(T.HttpPath("versionId")),
4975
4839
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
@@ -4977,8 +4841,7 @@ export const GetScriptVersionRequest =
4977
4841
  method: "GET",
4978
4842
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions/{versionId}",
4979
4843
  })));
4980
- export const GetScriptVersionResponse =
4981
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4844
+ export const GetScriptVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4982
4845
  resources: Resources,
4983
4846
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
4984
4847
  metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
@@ -4989,8 +4852,7 @@ export const getScriptVersion = /*@__PURE__*/ API.make(() => ({
4989
4852
  output: GetScriptVersionResponse,
4990
4853
  errors: [WorkerNotFound, VersionNotFound],
4991
4854
  }));
4992
- export const ListScriptVersionsRequest =
4993
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4855
+ export const ListScriptVersionsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4994
4856
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
4995
4857
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
4996
4858
  page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
@@ -5000,8 +4862,7 @@ export const ListScriptVersionsRequest =
5000
4862
  method: "GET",
5001
4863
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
5002
4864
  })));
5003
- export const ListScriptVersionsResponse =
5004
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4865
+ export const ListScriptVersionsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5005
4866
  result: ListScriptVersionsResponseResult,
5006
4867
  resultInfo: Schema.optional(Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null])),
5007
4868
  }).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
@@ -5017,8 +4878,7 @@ export const listScriptVersions = /*@__PURE__*/ API.makePaginated(() => ({
5017
4878
  pageSize: "perPage",
5018
4879
  },
5019
4880
  }));
5020
- export const CreateScriptVersionRequest =
5021
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4881
+ export const CreateScriptVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5022
4882
  scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
5023
4883
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
5024
4884
  bindingsInherit: Schema.optional(Schema.Literal("strict")).pipe(T.HttpQuery("bindings_inherit")),
@@ -5029,8 +4889,7 @@ export const CreateScriptVersionRequest =
5029
4889
  path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
5030
4890
  contentType: "multipart",
5031
4891
  })));
5032
- export const CreateScriptVersionResponse =
5033
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4892
+ export const CreateScriptVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5034
4893
  resources: Resources,
5035
4894
  id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5036
4895
  metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
@@ -5048,10 +4907,26 @@ export const CreateScriptVersionResponse =
5048
4907
  export const createScriptVersion = /*@__PURE__*/ API.make(() => ({
5049
4908
  input: CreateScriptVersionRequest,
5050
4909
  output: CreateScriptVersionResponse,
5051
- errors: [WorkerNotFound],
4910
+ errors: [
4911
+ WorkerNotFound,
4912
+ InvalidWorkerScript,
4913
+ InternalServerError,
4914
+ ScriptStartupError,
4915
+ ScriptModuleNotFound,
4916
+ SecretsStoreBindingNotFound,
4917
+ KVNamespaceNotFound,
4918
+ R2BucketNotFound,
4919
+ D1DatabaseNotFound,
4920
+ QueueNotFound,
4921
+ ServiceBindingNotFound,
4922
+ DurableObjectClassNotFound,
4923
+ HyperdriveConfigNotFound,
4924
+ VectorizeIndexNotFound,
4925
+ DispatchNamespaceNotFound,
4926
+ MtlsCertificateNotFound,
4927
+ ],
5052
4928
  }));
5053
- export const CreateServiceEdgePreviewRequest =
5054
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4929
+ export const CreateServiceEdgePreviewRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5055
4930
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
5056
4931
  serviceName: Schema.String.pipe(T.HttpPath("service_name")),
5057
4932
  environmentName: Schema.String.pipe(T.HttpPath("environment_name")),
@@ -5071,8 +4946,7 @@ export const CreateServiceEdgePreviewRequest =
5071
4946
  path: "/accounts/{account_id}/workers/services/{service_name}/environments/{environment_name}/edge-preview",
5072
4947
  contentType: "multipart",
5073
4948
  })));
5074
- export const CreateServiceEdgePreviewResponse =
5075
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4949
+ export const CreateServiceEdgePreviewResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5076
4950
  previewToken: Schema.String,
5077
4951
  tailUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
5078
4952
  })
@@ -5088,10 +4962,7 @@ export const createServiceEdgePreview = /*@__PURE__*/ API.make(() => ({
5088
4962
  }));
5089
4963
  export const GetSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5090
4964
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
5091
- }).pipe(T.Http({
5092
- method: "GET",
5093
- path: "/accounts/{account_id}/workers/subdomain",
5094
- })));
4965
+ }).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/subdomain" })));
5095
4966
  export const GetSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5096
4967
  subdomain: Schema.String,
5097
4968
  }).pipe(T.ResponsePath("result")));
@@ -5103,10 +4974,7 @@ export const getSubdomain = /*@__PURE__*/ API.make(() => ({
5103
4974
  export const PutSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5104
4975
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
5105
4976
  subdomain: Schema.String,
5106
- }).pipe(T.Http({
5107
- method: "PUT",
5108
- path: "/accounts/{account_id}/workers/subdomain",
5109
- })));
4977
+ }).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/workers/subdomain" })));
5110
4978
  export const PutSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5111
4979
  subdomain: Schema.String,
5112
4980
  }).pipe(T.ResponsePath("result")));
@@ -5115,15 +4983,13 @@ export const putSubdomain = /*@__PURE__*/ API.make(() => ({
5115
4983
  output: PutSubdomainResponse,
5116
4984
  errors: [SubdomainAlreadyExists, InvalidRoute, Forbidden],
5117
4985
  }));
5118
- export const DeleteSubdomainRequest =
5119
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
4986
+ export const DeleteSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5120
4987
  accountId: Schema.String.pipe(T.HttpPath("account_id")),
5121
4988
  }).pipe(T.Http({
5122
4989
  method: "DELETE",
5123
4990
  path: "/accounts/{account_id}/workers/subdomain",
5124
4991
  })));
5125
- export const DeleteSubdomainResponse =
5126
- /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
4992
+ export const DeleteSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
5127
4993
  export const deleteSubdomain = /*@__PURE__*/ API.make(() => ({
5128
4994
  input: DeleteSubdomainRequest,
5129
4995
  output: DeleteSubdomainResponse,
@@ -5188,8 +5054,7 @@ export const liveTailObservabilityTelemetry = /*@__PURE__*/ API.make(() => ({
5188
5054
  output: LiveTailObservabilityTelemetryResponse,
5189
5055
  errors: [],
5190
5056
  }));
5191
- export const CreateZoneEdgePreviewSessionRequest =
5192
- /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5057
+ export const CreateZoneEdgePreviewSessionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
5193
5058
  zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
5194
5059
  }).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/workers/edge-preview" })));
5195
5060
  export const CreateZoneEdgePreviewSessionResponse =