@distilled.cloud/cloudflare 0.30.1 → 0.30.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/services/email-routing.d.ts +13 -1
- package/lib/services/email-routing.d.ts.map +1 -1
- package/lib/services/email-routing.js +24 -35
- package/lib/services/email-routing.js.map +1 -1
- package/lib/services/rum.d.ts +7 -1
- package/lib/services/rum.d.ts.map +1 -1
- package/lib/services/rum.js +12 -13
- package/lib/services/rum.js.map +1 -1
- package/lib/services/workers.d.ts +3 -1
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +157 -288
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zero-trust.d.ts +1 -1
- package/lib/services/zero-trust.d.ts.map +1 -1
- package/lib/services/zero-trust.js +693 -1433
- package/lib/services/zero-trust.js.map +1 -1
- package/package.json +5 -5
- package/src/services/email-routing.ts +278 -281
- package/src/services/rum.ts +106 -107
- package/src/services/workers.ts +1868 -1989
- package/src/services/zero-trust.ts +9828 -10455
package/lib/services/workers.js
CHANGED
|
@@ -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
|
-
|
|
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({
|
|
@@ -2067,6 +2020,9 @@ const Metadata2 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
2067
2020
|
containers: "containers",
|
|
2068
2021
|
cache: "cache_options",
|
|
2069
2022
|
})));
|
|
2023
|
+
const PutScriptResponsePlacement8 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2024
|
+
mode: Schema.Literal("targeted"),
|
|
2025
|
+
}));
|
|
2070
2026
|
const ScriptSearchResponseItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2071
2027
|
id: Schema.String,
|
|
2072
2028
|
createdOn: Schema.String,
|
|
@@ -2434,8 +2390,7 @@ const CreateScriptEdgePreviewRequestMetadataObservability =
|
|
|
2434
2390
|
logs: "logs",
|
|
2435
2391
|
traces: "traces",
|
|
2436
2392
|
})));
|
|
2437
|
-
const CreateScriptEdgePreviewRequestMetadata =
|
|
2438
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2393
|
+
const CreateScriptEdgePreviewRequestMetadata = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2439
2394
|
mainModule: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2440
2395
|
bodyPart: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2441
2396
|
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -2779,14 +2734,12 @@ const Metadata4 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
2779
2734
|
modifiedOn: "modified_on",
|
|
2780
2735
|
source: "source",
|
|
2781
2736
|
})));
|
|
2782
|
-
const ListScriptVersionsResponseResultItem =
|
|
2783
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2737
|
+
const ListScriptVersionsResponseResultItem = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2784
2738
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2785
2739
|
metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
|
|
2786
2740
|
number: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2787
2741
|
}));
|
|
2788
|
-
const ListScriptVersionsResponseResult =
|
|
2789
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2742
|
+
const ListScriptVersionsResponseResult = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2790
2743
|
items: Schema.optional(Schema.Union([
|
|
2791
2744
|
Schema.Array(ListScriptVersionsResponseResultItem),
|
|
2792
2745
|
Schema.Null,
|
|
@@ -2867,15 +2820,13 @@ const Metadata5 = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
|
2867
2820
|
usageModel: "usage_model",
|
|
2868
2821
|
cache: "cache_options",
|
|
2869
2822
|
})));
|
|
2870
|
-
export const GetAccountSettingRequest =
|
|
2871
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2823
|
+
export const GetAccountSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2872
2824
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2873
2825
|
}).pipe(T.Http({
|
|
2874
2826
|
method: "GET",
|
|
2875
2827
|
path: "/accounts/{account_id}/workers/account-settings",
|
|
2876
2828
|
})));
|
|
2877
|
-
export const GetAccountSettingResponse =
|
|
2878
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2829
|
+
export const GetAccountSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2879
2830
|
defaultUsageModel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2880
2831
|
greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2881
2832
|
})
|
|
@@ -2889,8 +2840,7 @@ export const getAccountSetting = /*@__PURE__*/ API.make(() => ({
|
|
|
2889
2840
|
output: GetAccountSettingResponse,
|
|
2890
2841
|
errors: [InvalidRoute, Forbidden],
|
|
2891
2842
|
}));
|
|
2892
|
-
export const PutAccountSettingRequest =
|
|
2893
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2843
|
+
export const PutAccountSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2894
2844
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2895
2845
|
defaultUsageModel: Schema.optional(Schema.String),
|
|
2896
2846
|
greenCompute: Schema.optional(Schema.Boolean),
|
|
@@ -2901,8 +2851,7 @@ export const PutAccountSettingRequest =
|
|
|
2901
2851
|
method: "PUT",
|
|
2902
2852
|
path: "/accounts/{account_id}/workers/account-settings",
|
|
2903
2853
|
})));
|
|
2904
|
-
export const PutAccountSettingResponse =
|
|
2905
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2854
|
+
export const PutAccountSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2906
2855
|
defaultUsageModel: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2907
2856
|
greenCompute: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
2908
2857
|
})
|
|
@@ -2916,8 +2865,7 @@ export const putAccountSetting = /*@__PURE__*/ API.make(() => ({
|
|
|
2916
2865
|
output: PutAccountSettingResponse,
|
|
2917
2866
|
errors: [InvalidRoute, Forbidden],
|
|
2918
2867
|
}));
|
|
2919
|
-
export const CreateAssetUploadRequest =
|
|
2920
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2868
|
+
export const CreateAssetUploadRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2921
2869
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2922
2870
|
base64: Schema.Literal(true).pipe(T.HttpQuery("base64")),
|
|
2923
2871
|
jwtToken: Schema.optional(Schema.String).pipe(T.HttpHeader("Authorization")),
|
|
@@ -2927,8 +2875,7 @@ export const CreateAssetUploadRequest =
|
|
|
2927
2875
|
path: "/accounts/{account_id}/workers/assets/upload",
|
|
2928
2876
|
contentType: "multipart",
|
|
2929
2877
|
})));
|
|
2930
|
-
export const CreateAssetUploadResponse =
|
|
2931
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2878
|
+
export const CreateAssetUploadResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2932
2879
|
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2933
2880
|
}).pipe(T.ResponsePath("result")));
|
|
2934
2881
|
export const createAssetUpload = /*@__PURE__*/ API.make(() => ({
|
|
@@ -2952,8 +2899,7 @@ export const getBetaWorker = /*@__PURE__*/ API.make(() => ({
|
|
|
2952
2899
|
output: GetBetaWorkerResponse,
|
|
2953
2900
|
errors: [WorkerNotFound, InvalidRoute],
|
|
2954
2901
|
}));
|
|
2955
|
-
export const ListBetaWorkersRequest =
|
|
2956
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2902
|
+
export const ListBetaWorkersRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2957
2903
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2958
2904
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
2959
2905
|
perPage: Schema.optional(Schema.Number).pipe(T.HttpQuery("per_page")),
|
|
@@ -2963,8 +2909,7 @@ export const ListBetaWorkersRequest =
|
|
|
2963
2909
|
Schema.String,
|
|
2964
2910
|
])).pipe(T.HttpQuery("order_by")),
|
|
2965
2911
|
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/workers" })));
|
|
2966
|
-
export const ListBetaWorkersResponse =
|
|
2967
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2912
|
+
export const ListBetaWorkersResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2968
2913
|
result: Schema.Array(ListBetaWorkersResponseResult),
|
|
2969
2914
|
resultInfo: Schema.optional(Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null])),
|
|
2970
2915
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
@@ -2980,8 +2925,7 @@ export const listBetaWorkers = /*@__PURE__*/ API.makePaginated(() => ({
|
|
|
2980
2925
|
pageSize: "perPage",
|
|
2981
2926
|
},
|
|
2982
2927
|
}));
|
|
2983
|
-
export const CreateBetaWorkerRequest =
|
|
2984
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2928
|
+
export const CreateBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2985
2929
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
2986
2930
|
name: Schema.String,
|
|
2987
2931
|
logpush: Schema.optional(Schema.Boolean),
|
|
@@ -2996,12 +2940,8 @@ export const CreateBetaWorkerRequest =
|
|
|
2996
2940
|
subdomain: "subdomain",
|
|
2997
2941
|
tags: "tags",
|
|
2998
2942
|
tailConsumers: "tail_consumers",
|
|
2999
|
-
}), T.Http({
|
|
3000
|
-
|
|
3001
|
-
path: "/accounts/{account_id}/workers/workers",
|
|
3002
|
-
})));
|
|
3003
|
-
export const CreateBetaWorkerResponse =
|
|
3004
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2943
|
+
}), T.Http({ method: "POST", path: "/accounts/{account_id}/workers/workers" })));
|
|
2944
|
+
export const CreateBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3005
2945
|
id: Schema.String,
|
|
3006
2946
|
name: Schema.String,
|
|
3007
2947
|
}).pipe(T.ResponsePath("result")));
|
|
@@ -3010,8 +2950,7 @@ export const createBetaWorker = /*@__PURE__*/ API.make(() => ({
|
|
|
3010
2950
|
output: CreateBetaWorkerResponse,
|
|
3011
2951
|
errors: [InvalidRoute],
|
|
3012
2952
|
}));
|
|
3013
|
-
export const UpdateBetaWorkerRequest =
|
|
3014
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2953
|
+
export const UpdateBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3015
2954
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3016
2955
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3017
2956
|
name: Schema.String,
|
|
@@ -3031,8 +2970,7 @@ export const UpdateBetaWorkerRequest =
|
|
|
3031
2970
|
method: "PUT",
|
|
3032
2971
|
path: "/accounts/{account_id}/workers/workers/{workerId}",
|
|
3033
2972
|
})));
|
|
3034
|
-
export const UpdateBetaWorkerResponse =
|
|
3035
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2973
|
+
export const UpdateBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3036
2974
|
id: Schema.String,
|
|
3037
2975
|
name: Schema.String,
|
|
3038
2976
|
}).pipe(T.ResponsePath("result")));
|
|
@@ -3041,8 +2979,7 @@ export const updateBetaWorker = /*@__PURE__*/ API.make(() => ({
|
|
|
3041
2979
|
output: UpdateBetaWorkerResponse,
|
|
3042
2980
|
errors: [WorkerNotFound],
|
|
3043
2981
|
}));
|
|
3044
|
-
export const PatchBetaWorkerRequest =
|
|
3045
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
2982
|
+
export const PatchBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3046
2983
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3047
2984
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3048
2985
|
logpush: Schema.Boolean,
|
|
@@ -3062,8 +2999,7 @@ export const PatchBetaWorkerRequest =
|
|
|
3062
2999
|
method: "PATCH",
|
|
3063
3000
|
path: "/accounts/{account_id}/workers/workers/{workerId}",
|
|
3064
3001
|
})));
|
|
3065
|
-
export const PatchBetaWorkerResponse =
|
|
3066
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3002
|
+
export const PatchBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3067
3003
|
id: Schema.String,
|
|
3068
3004
|
name: Schema.String,
|
|
3069
3005
|
}).pipe(T.ResponsePath("result")));
|
|
@@ -3072,16 +3008,14 @@ export const patchBetaWorker = /*@__PURE__*/ API.make(() => ({
|
|
|
3072
3008
|
output: PatchBetaWorkerResponse,
|
|
3073
3009
|
errors: [WorkerNotFound],
|
|
3074
3010
|
}));
|
|
3075
|
-
export const DeleteBetaWorkerRequest =
|
|
3076
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3011
|
+
export const DeleteBetaWorkerRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3077
3012
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3078
3013
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3079
3014
|
}).pipe(T.Http({
|
|
3080
3015
|
method: "DELETE",
|
|
3081
3016
|
path: "/accounts/{account_id}/workers/workers/{workerId}",
|
|
3082
3017
|
})));
|
|
3083
|
-
export const DeleteBetaWorkerResponse =
|
|
3084
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3018
|
+
export const DeleteBetaWorkerResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3085
3019
|
errors: Schema.Array(Error2),
|
|
3086
3020
|
messages: Schema.Array(Error2),
|
|
3087
3021
|
success: Schema.Literal(true),
|
|
@@ -3091,8 +3025,7 @@ export const deleteBetaWorker = /*@__PURE__*/ API.make(() => ({
|
|
|
3091
3025
|
output: DeleteBetaWorkerResponse,
|
|
3092
3026
|
errors: [WorkerNotFound],
|
|
3093
3027
|
}));
|
|
3094
|
-
export const GetBetaWorkerVersionRequest =
|
|
3095
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3028
|
+
export const GetBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3096
3029
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3097
3030
|
versionId: Schema.String.pipe(T.HttpPath("versionId")),
|
|
3098
3031
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3101,8 +3034,7 @@ export const GetBetaWorkerVersionRequest =
|
|
|
3101
3034
|
method: "GET",
|
|
3102
3035
|
path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
|
|
3103
3036
|
})));
|
|
3104
|
-
export const GetBetaWorkerVersionResponse =
|
|
3105
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3037
|
+
export const GetBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3106
3038
|
id: Schema.String,
|
|
3107
3039
|
createdOn: Schema.String,
|
|
3108
3040
|
number: Schema.Number,
|
|
@@ -3212,8 +3144,7 @@ export const getBetaWorkerVersion = /*@__PURE__*/ API.make(() => ({
|
|
|
3212
3144
|
output: GetBetaWorkerVersionResponse,
|
|
3213
3145
|
errors: [WorkerNotFound, WorkerVersionNotFound],
|
|
3214
3146
|
}));
|
|
3215
|
-
export const ListBetaWorkerVersionsRequest =
|
|
3216
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3147
|
+
export const ListBetaWorkerVersionsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3217
3148
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3218
3149
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3219
3150
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -3222,8 +3153,7 @@ export const ListBetaWorkerVersionsRequest =
|
|
|
3222
3153
|
method: "GET",
|
|
3223
3154
|
path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
|
|
3224
3155
|
})));
|
|
3225
|
-
export const ListBetaWorkerVersionsResponse =
|
|
3226
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3156
|
+
export const ListBetaWorkerVersionsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3227
3157
|
result: Schema.Array(ListBetaWorkerVersionsResponseResult),
|
|
3228
3158
|
resultInfo: Schema.optional(Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null])),
|
|
3229
3159
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
@@ -3239,8 +3169,7 @@ export const listBetaWorkerVersions = /*@__PURE__*/ API.makePaginated(() => ({
|
|
|
3239
3169
|
pageSize: "perPage",
|
|
3240
3170
|
},
|
|
3241
3171
|
}));
|
|
3242
|
-
export const CreateBetaWorkerVersionRequest =
|
|
3243
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3172
|
+
export const CreateBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3244
3173
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3245
3174
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3246
3175
|
deploy: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("deploy")),
|
|
@@ -3323,8 +3252,7 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
3323
3252
|
method: "POST",
|
|
3324
3253
|
path: "/accounts/{account_id}/workers/workers/{workerId}/versions",
|
|
3325
3254
|
})));
|
|
3326
|
-
export const CreateBetaWorkerVersionResponse =
|
|
3327
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3255
|
+
export const CreateBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3328
3256
|
id: Schema.String,
|
|
3329
3257
|
createdOn: Schema.String,
|
|
3330
3258
|
number: Schema.Number,
|
|
@@ -3434,8 +3362,7 @@ export const createBetaWorkerVersion = /*@__PURE__*/ API.make(() => ({
|
|
|
3434
3362
|
output: CreateBetaWorkerVersionResponse,
|
|
3435
3363
|
errors: [WorkerNotFound],
|
|
3436
3364
|
}));
|
|
3437
|
-
export const DeleteBetaWorkerVersionRequest =
|
|
3438
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3365
|
+
export const DeleteBetaWorkerVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3439
3366
|
workerId: Schema.String.pipe(T.HttpPath("workerId")),
|
|
3440
3367
|
versionId: Schema.String.pipe(T.HttpPath("versionId")),
|
|
3441
3368
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -3443,8 +3370,7 @@ export const DeleteBetaWorkerVersionRequest =
|
|
|
3443
3370
|
method: "DELETE",
|
|
3444
3371
|
path: "/accounts/{account_id}/workers/workers/{workerId}/versions/{versionId}",
|
|
3445
3372
|
})));
|
|
3446
|
-
export const DeleteBetaWorkerVersionResponse =
|
|
3447
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3373
|
+
export const DeleteBetaWorkerVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3448
3374
|
errors: Schema.Array(Error2),
|
|
3449
3375
|
messages: Schema.Array(Error2),
|
|
3450
3376
|
success: Schema.Literal(true),
|
|
@@ -3656,8 +3582,7 @@ export const deleteObservabilityDestination = /*@__PURE__*/ API.make(() => ({
|
|
|
3656
3582
|
output: DeleteObservabilityDestinationResponse,
|
|
3657
3583
|
errors: [ObservabilityDestinationNotFound, Forbidden],
|
|
3658
3584
|
}));
|
|
3659
|
-
export const ListObservabilityQueriesRequest =
|
|
3660
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3585
|
+
export const ListObservabilityQueriesRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3661
3586
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3662
3587
|
order: Schema.optional(Schema.Union([Schema.Literals(["asc", "desc"]), Schema.String])).pipe(T.HttpQuery("order")),
|
|
3663
3588
|
orderBy: Schema.optional(Schema.Union([Schema.Literals(["created", "updated"]), Schema.String])).pipe(T.HttpQuery("orderBy")),
|
|
@@ -3667,8 +3592,7 @@ export const ListObservabilityQueriesRequest =
|
|
|
3667
3592
|
method: "GET",
|
|
3668
3593
|
path: "/accounts/{account_id}/workers/observability/queries",
|
|
3669
3594
|
})));
|
|
3670
|
-
export const ListObservabilityQueriesResponse =
|
|
3671
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3595
|
+
export const ListObservabilityQueriesResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3672
3596
|
result: Schema.Array(ListObservabilityQueriesResponseResult),
|
|
3673
3597
|
}));
|
|
3674
3598
|
export const listObservabilityQueries = /*@__PURE__*/ API.makePaginated(() => ({
|
|
@@ -3680,8 +3604,7 @@ export const listObservabilityQueries = /*@__PURE__*/ API.makePaginated(() => ({
|
|
|
3680
3604
|
items: "result",
|
|
3681
3605
|
},
|
|
3682
3606
|
}));
|
|
3683
|
-
export const CreateObservabilityQueryRequest =
|
|
3684
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3607
|
+
export const CreateObservabilityQueryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3685
3608
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3686
3609
|
description: Schema.Union([Schema.String, Schema.Null]),
|
|
3687
3610
|
name: Schema.String,
|
|
@@ -3690,8 +3613,7 @@ export const CreateObservabilityQueryRequest =
|
|
|
3690
3613
|
method: "POST",
|
|
3691
3614
|
path: "/accounts/{account_id}/workers/observability/queries",
|
|
3692
3615
|
})));
|
|
3693
|
-
export const CreateObservabilityQueryResponse =
|
|
3694
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3616
|
+
export const CreateObservabilityQueryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3695
3617
|
id: Schema.String,
|
|
3696
3618
|
adhoc: Schema.Boolean,
|
|
3697
3619
|
created: Schema.String,
|
|
@@ -3707,8 +3629,7 @@ export const createObservabilityQuery = /*@__PURE__*/ API.make(() => ({
|
|
|
3707
3629
|
output: CreateObservabilityQueryResponse,
|
|
3708
3630
|
errors: [],
|
|
3709
3631
|
}));
|
|
3710
|
-
export const GetObservabilitySharedQueryRequest =
|
|
3711
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3632
|
+
export const GetObservabilitySharedQueryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3712
3633
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
3713
3634
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3714
3635
|
view: Schema.optional(Schema.Union([
|
|
@@ -3719,8 +3640,7 @@ export const GetObservabilitySharedQueryRequest =
|
|
|
3719
3640
|
method: "GET",
|
|
3720
3641
|
path: "/accounts/{account_id}/workers/observability/shared/query/{id}",
|
|
3721
3642
|
})));
|
|
3722
|
-
export const GetObservabilitySharedQueryResponse =
|
|
3723
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3643
|
+
export const GetObservabilitySharedQueryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3724
3644
|
run: Run,
|
|
3725
3645
|
statistics: Statistics,
|
|
3726
3646
|
agents: Schema.optional(Schema.Union([Schema.Array(Agent), Schema.Null])),
|
|
@@ -3777,8 +3697,7 @@ export const createObservabilitySharedQuery = /*@__PURE__*/ API.make(() => ({
|
|
|
3777
3697
|
output: CreateObservabilitySharedQueryResponse,
|
|
3778
3698
|
errors: [],
|
|
3779
3699
|
}));
|
|
3780
|
-
export const KeysObservabilityTelemetryRequest =
|
|
3781
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3700
|
+
export const KeysObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3782
3701
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3783
3702
|
datasets: Schema.optional(Schema.Array(Schema.String)),
|
|
3784
3703
|
filters: Schema.optional(Schema.Array(Schema.Union([
|
|
@@ -3794,8 +3713,7 @@ export const KeysObservabilityTelemetryRequest =
|
|
|
3794
3713
|
method: "POST",
|
|
3795
3714
|
path: "/accounts/{account_id}/workers/observability/telemetry/keys",
|
|
3796
3715
|
})));
|
|
3797
|
-
export const KeysObservabilityTelemetryResponse =
|
|
3798
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3716
|
+
export const KeysObservabilityTelemetryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3799
3717
|
result: Schema.Array(KeysObservabilityTelemetryResponseResult),
|
|
3800
3718
|
}));
|
|
3801
3719
|
export const keysObservabilityTelemetry = /*@__PURE__*/ API.makePaginated(() => ({
|
|
@@ -3807,8 +3725,7 @@ export const keysObservabilityTelemetry = /*@__PURE__*/ API.makePaginated(() =>
|
|
|
3807
3725
|
items: "result",
|
|
3808
3726
|
},
|
|
3809
3727
|
}));
|
|
3810
|
-
export const QueryObservabilityTelemetryRequest =
|
|
3811
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3728
|
+
export const QueryObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3812
3729
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3813
3730
|
queryId: Schema.String,
|
|
3814
3731
|
timeframe: Timeframe,
|
|
@@ -3837,8 +3754,7 @@ export const QueryObservabilityTelemetryRequest =
|
|
|
3837
3754
|
method: "POST",
|
|
3838
3755
|
path: "/accounts/{account_id}/workers/observability/telemetry/query",
|
|
3839
3756
|
})));
|
|
3840
|
-
export const QueryObservabilityTelemetryResponse =
|
|
3841
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3757
|
+
export const QueryObservabilityTelemetryResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3842
3758
|
run: Run2,
|
|
3843
3759
|
statistics: Statistics,
|
|
3844
3760
|
agents: Schema.optional(Schema.Union([Schema.Array(Agent), Schema.Null])),
|
|
@@ -3853,8 +3769,7 @@ export const queryObservabilityTelemetry = /*@__PURE__*/ API.make(() => ({
|
|
|
3853
3769
|
output: QueryObservabilityTelemetryResponse,
|
|
3854
3770
|
errors: [InvalidRoute],
|
|
3855
3771
|
}));
|
|
3856
|
-
export const ValuesObservabilityTelemetryRequest =
|
|
3857
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3772
|
+
export const ValuesObservabilityTelemetryRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
3858
3773
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
3859
3774
|
datasets: Schema.Array(Schema.String),
|
|
3860
3775
|
key: Schema.String,
|
|
@@ -4034,6 +3949,7 @@ export const PutScriptResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struc
|
|
|
4034
3949
|
ListScriptsResponseResultPlacement1,
|
|
4035
3950
|
ListScriptsResponseResultPlacement2,
|
|
4036
3951
|
ListScriptsResponseResultPlacement3,
|
|
3952
|
+
PutScriptResponsePlacement8,
|
|
4037
3953
|
]),
|
|
4038
3954
|
Schema.Null,
|
|
4039
3955
|
])),
|
|
@@ -4147,8 +4063,7 @@ export const searchScript = /*@__PURE__*/ API.make(() => ({
|
|
|
4147
4063
|
output: SearchScriptResponse,
|
|
4148
4064
|
errors: [InvalidRoute],
|
|
4149
4065
|
}));
|
|
4150
|
-
export const CreateScriptAssetUploadRequest =
|
|
4151
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4066
|
+
export const CreateScriptAssetUploadRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4152
4067
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4153
4068
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4154
4069
|
manifest: Schema.Record(Schema.String, Schema.Unknown),
|
|
@@ -4156,8 +4071,7 @@ export const CreateScriptAssetUploadRequest =
|
|
|
4156
4071
|
method: "POST",
|
|
4157
4072
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/assets-upload-session",
|
|
4158
4073
|
})));
|
|
4159
|
-
export const CreateScriptAssetUploadResponse =
|
|
4160
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4074
|
+
export const CreateScriptAssetUploadResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4161
4075
|
buckets: Schema.optional(Schema.Union([Schema.Array(Schema.Array(Schema.String)), Schema.Null])),
|
|
4162
4076
|
jwt: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4163
4077
|
}).pipe(T.ResponsePath("result")));
|
|
@@ -4166,23 +4080,20 @@ export const createScriptAssetUpload = /*@__PURE__*/ API.make(() => ({
|
|
|
4166
4080
|
output: CreateScriptAssetUploadResponse,
|
|
4167
4081
|
errors: [],
|
|
4168
4082
|
}));
|
|
4169
|
-
export const GetScriptContentRequest =
|
|
4170
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4083
|
+
export const GetScriptContentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4171
4084
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4172
4085
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4173
4086
|
}).pipe(T.Http({
|
|
4174
4087
|
method: "GET",
|
|
4175
4088
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/content/v2",
|
|
4176
4089
|
})));
|
|
4177
|
-
export const GetScriptContentResponse =
|
|
4178
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
4090
|
+
export const GetScriptContentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
4179
4091
|
export const getScriptContent = /*@__PURE__*/ API.make(() => ({
|
|
4180
4092
|
input: GetScriptContentRequest,
|
|
4181
4093
|
output: GetScriptContentResponse,
|
|
4182
4094
|
errors: [WorkerNotFound],
|
|
4183
4095
|
}));
|
|
4184
|
-
export const PutScriptContentRequest =
|
|
4185
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4096
|
+
export const PutScriptContentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4186
4097
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4187
4098
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4188
4099
|
cfworkerbodypart: Schema.optional(Schema.String).pipe(T.HttpHeader("CF-WORKER-BODY-PART")),
|
|
@@ -4194,8 +4105,7 @@ export const PutScriptContentRequest =
|
|
|
4194
4105
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/content",
|
|
4195
4106
|
contentType: "multipart",
|
|
4196
4107
|
})));
|
|
4197
|
-
export const PutScriptContentResponse =
|
|
4198
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4108
|
+
export const PutScriptContentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4199
4109
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4200
4110
|
compatibilityDate: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4201
4111
|
compatibilityFlags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -4283,8 +4193,7 @@ export const putScriptContent = /*@__PURE__*/ API.make(() => ({
|
|
|
4283
4193
|
ScriptModuleNotFound,
|
|
4284
4194
|
],
|
|
4285
4195
|
}));
|
|
4286
|
-
export const GetScriptDeploymentRequest =
|
|
4287
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4196
|
+
export const GetScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4288
4197
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4289
4198
|
deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
|
|
4290
4199
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4292,8 +4201,7 @@ export const GetScriptDeploymentRequest =
|
|
|
4292
4201
|
method: "GET",
|
|
4293
4202
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
|
|
4294
4203
|
})));
|
|
4295
|
-
export const GetScriptDeploymentResponse =
|
|
4296
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4204
|
+
export const GetScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4297
4205
|
id: Schema.String,
|
|
4298
4206
|
createdOn: Schema.String,
|
|
4299
4207
|
source: Schema.String,
|
|
@@ -4317,16 +4225,14 @@ export const getScriptDeployment = /*@__PURE__*/ API.make(() => ({
|
|
|
4317
4225
|
output: GetScriptDeploymentResponse,
|
|
4318
4226
|
errors: [WorkerNotFound, DeploymentNotFound],
|
|
4319
4227
|
}));
|
|
4320
|
-
export const ListScriptDeploymentsRequest =
|
|
4321
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4228
|
+
export const ListScriptDeploymentsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4322
4229
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4323
4230
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4324
4231
|
}).pipe(T.Http({
|
|
4325
4232
|
method: "GET",
|
|
4326
4233
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
|
|
4327
4234
|
})));
|
|
4328
|
-
export const ListScriptDeploymentsResponse =
|
|
4329
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4235
|
+
export const ListScriptDeploymentsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4330
4236
|
deployments: Schema.Array(Deployment),
|
|
4331
4237
|
}).pipe(T.ResponsePath("result")));
|
|
4332
4238
|
export const listScriptDeployments = /*@__PURE__*/ API.make(() => ({
|
|
@@ -4334,8 +4240,7 @@ export const listScriptDeployments = /*@__PURE__*/ API.make(() => ({
|
|
|
4334
4240
|
output: ListScriptDeploymentsResponse,
|
|
4335
4241
|
errors: [WorkerNotFound],
|
|
4336
4242
|
}));
|
|
4337
|
-
export const CreateScriptDeploymentRequest =
|
|
4338
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4243
|
+
export const CreateScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4339
4244
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4340
4245
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4341
4246
|
force: Schema.optional(Schema.Boolean).pipe(T.HttpQuery("force")),
|
|
@@ -4346,8 +4251,7 @@ export const CreateScriptDeploymentRequest =
|
|
|
4346
4251
|
method: "POST",
|
|
4347
4252
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments",
|
|
4348
4253
|
})));
|
|
4349
|
-
export const CreateScriptDeploymentResponse =
|
|
4350
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4254
|
+
export const CreateScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4351
4255
|
id: Schema.String,
|
|
4352
4256
|
createdOn: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4353
4257
|
source: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
@@ -4371,8 +4275,7 @@ export const createScriptDeployment = /*@__PURE__*/ API.make(() => ({
|
|
|
4371
4275
|
output: CreateScriptDeploymentResponse,
|
|
4372
4276
|
errors: [WorkerNotFound],
|
|
4373
4277
|
}));
|
|
4374
|
-
export const DeleteScriptDeploymentRequest =
|
|
4375
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4278
|
+
export const DeleteScriptDeploymentRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4376
4279
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4377
4280
|
deploymentId: Schema.String.pipe(T.HttpPath("deploymentId")),
|
|
4378
4281
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4380,8 +4283,7 @@ export const DeleteScriptDeploymentRequest =
|
|
|
4380
4283
|
method: "DELETE",
|
|
4381
4284
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/deployments/{deploymentId}",
|
|
4382
4285
|
})));
|
|
4383
|
-
export const DeleteScriptDeploymentResponse =
|
|
4384
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4286
|
+
export const DeleteScriptDeploymentResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4385
4287
|
errors: Schema.Array(Error2),
|
|
4386
4288
|
messages: Schema.Array(Error2),
|
|
4387
4289
|
success: Schema.Literal(true),
|
|
@@ -4391,8 +4293,7 @@ export const deleteScriptDeployment = /*@__PURE__*/ API.make(() => ({
|
|
|
4391
4293
|
output: DeleteScriptDeploymentResponse,
|
|
4392
4294
|
errors: [WorkerNotFound, DeploymentNotFound],
|
|
4393
4295
|
}));
|
|
4394
|
-
export const CreateScriptEdgePreviewRequest =
|
|
4395
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4296
|
+
export const CreateScriptEdgePreviewRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4396
4297
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4397
4298
|
scriptName: Schema.String.pipe(T.HttpPath("script_name")),
|
|
4398
4299
|
cfPreviewUploadConfigToken: Schema.String.pipe(T.HttpHeader("cf-preview-upload-config-token")),
|
|
@@ -4411,8 +4312,7 @@ export const CreateScriptEdgePreviewRequest =
|
|
|
4411
4312
|
path: "/accounts/{account_id}/workers/scripts/{script_name}/edge-preview",
|
|
4412
4313
|
contentType: "multipart",
|
|
4413
4314
|
})));
|
|
4414
|
-
export const CreateScriptEdgePreviewResponse =
|
|
4415
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4315
|
+
export const CreateScriptEdgePreviewResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4416
4316
|
previewToken: Schema.String,
|
|
4417
4317
|
tailUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4418
4318
|
})
|
|
@@ -4426,16 +4326,14 @@ export const createScriptEdgePreview = /*@__PURE__*/ API.make(() => ({
|
|
|
4426
4326
|
output: CreateScriptEdgePreviewResponse,
|
|
4427
4327
|
errors: [InvalidRoute],
|
|
4428
4328
|
}));
|
|
4429
|
-
export const GetScriptScheduleRequest =
|
|
4430
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4329
|
+
export const GetScriptScheduleRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4431
4330
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4432
4331
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4433
4332
|
}).pipe(T.Http({
|
|
4434
4333
|
method: "GET",
|
|
4435
4334
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
|
|
4436
4335
|
})));
|
|
4437
|
-
export const GetScriptScheduleResponse =
|
|
4438
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4336
|
+
export const GetScriptScheduleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4439
4337
|
schedules: Schema.Array(Schedule),
|
|
4440
4338
|
}).pipe(T.ResponsePath("result")));
|
|
4441
4339
|
export const getScriptSchedule = /*@__PURE__*/ API.make(() => ({
|
|
@@ -4443,8 +4341,7 @@ export const getScriptSchedule = /*@__PURE__*/ API.make(() => ({
|
|
|
4443
4341
|
output: GetScriptScheduleResponse,
|
|
4444
4342
|
errors: [WorkerNotFound],
|
|
4445
4343
|
}));
|
|
4446
|
-
export const PutScriptScheduleRequest =
|
|
4447
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4344
|
+
export const PutScriptScheduleRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4448
4345
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4449
4346
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4450
4347
|
body: Schema.Array(Body).pipe(T.HttpBody()),
|
|
@@ -4452,8 +4349,7 @@ export const PutScriptScheduleRequest =
|
|
|
4452
4349
|
method: "PUT",
|
|
4453
4350
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/schedules",
|
|
4454
4351
|
})));
|
|
4455
|
-
export const PutScriptScheduleResponse =
|
|
4456
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4352
|
+
export const PutScriptScheduleResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4457
4353
|
schedules: Schema.Array(Schedule),
|
|
4458
4354
|
}).pipe(T.ResponsePath("result")));
|
|
4459
4355
|
export const putScriptSchedule = /*@__PURE__*/ API.make(() => ({
|
|
@@ -4639,8 +4535,7 @@ export const patchScriptScriptAndVersionSetting = /*@__PURE__*/ API.make(() => (
|
|
|
4639
4535
|
output: PatchScriptScriptAndVersionSettingResponse,
|
|
4640
4536
|
errors: [WorkerNotFound, ContentTypeRequired],
|
|
4641
4537
|
}));
|
|
4642
|
-
export const GetScriptSecretRequest =
|
|
4643
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4538
|
+
export const GetScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4644
4539
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4645
4540
|
secretName: Schema.String.pipe(T.HttpPath("secretName")),
|
|
4646
4541
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4649,8 +4544,7 @@ export const GetScriptSecretRequest =
|
|
|
4649
4544
|
method: "GET",
|
|
4650
4545
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
|
|
4651
4546
|
})));
|
|
4652
|
-
export const GetScriptSecretResponse =
|
|
4653
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Union([
|
|
4547
|
+
export const GetScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Union([
|
|
4654
4548
|
WorkersBindingKindSecretKey,
|
|
4655
4549
|
WorkersBindingKindSecretText,
|
|
4656
4550
|
]).pipe(T.ResponsePath("result")));
|
|
@@ -4659,20 +4553,15 @@ export const getScriptSecret = /*@__PURE__*/ API.make(() => ({
|
|
|
4659
4553
|
output: GetScriptSecretResponse,
|
|
4660
4554
|
errors: [WorkerNotFound, SecretNotFound],
|
|
4661
4555
|
}));
|
|
4662
|
-
export const ListScriptSecretsRequest =
|
|
4663
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4556
|
+
export const ListScriptSecretsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4664
4557
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4665
4558
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4666
4559
|
}).pipe(T.Http({
|
|
4667
4560
|
method: "GET",
|
|
4668
4561
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
|
|
4669
4562
|
})));
|
|
4670
|
-
export const ListScriptSecretsResponse =
|
|
4671
|
-
|
|
4672
|
-
result: Schema.Array(Schema.Union([
|
|
4673
|
-
WorkersBindingKindSecretKey,
|
|
4674
|
-
WorkersBindingKindSecretText,
|
|
4675
|
-
])),
|
|
4563
|
+
export const ListScriptSecretsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4564
|
+
result: Schema.Array(Schema.Union([WorkersBindingKindSecretKey, WorkersBindingKindSecretText])),
|
|
4676
4565
|
}));
|
|
4677
4566
|
export const listScriptSecrets = /*@__PURE__*/ API.makePaginated(() => ({
|
|
4678
4567
|
input: ListScriptSecretsRequest,
|
|
@@ -4683,8 +4572,7 @@ export const listScriptSecrets = /*@__PURE__*/ API.makePaginated(() => ({
|
|
|
4683
4572
|
items: "result",
|
|
4684
4573
|
},
|
|
4685
4574
|
}));
|
|
4686
|
-
export const PutScriptSecretRequest =
|
|
4687
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4575
|
+
export const PutScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4688
4576
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4689
4577
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4690
4578
|
name: Schema.String,
|
|
@@ -4726,8 +4614,7 @@ export const PutScriptSecretRequest =
|
|
|
4726
4614
|
method: "PUT",
|
|
4727
4615
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets",
|
|
4728
4616
|
})));
|
|
4729
|
-
export const PutScriptSecretResponse =
|
|
4730
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Union([
|
|
4617
|
+
export const PutScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Union([
|
|
4731
4618
|
WorkersBindingKindSecretKey,
|
|
4732
4619
|
WorkersBindingKindSecretText,
|
|
4733
4620
|
]).pipe(T.ResponsePath("result")));
|
|
@@ -4736,8 +4623,7 @@ export const putScriptSecret = /*@__PURE__*/ API.make(() => ({
|
|
|
4736
4623
|
output: PutScriptSecretResponse,
|
|
4737
4624
|
errors: [WorkerNotFound],
|
|
4738
4625
|
}));
|
|
4739
|
-
export const DeleteScriptSecretRequest =
|
|
4740
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4626
|
+
export const DeleteScriptSecretRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4741
4627
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4742
4628
|
secretName: Schema.String.pipe(T.HttpPath("secretName")),
|
|
4743
4629
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4746,15 +4632,13 @@ export const DeleteScriptSecretRequest =
|
|
|
4746
4632
|
method: "DELETE",
|
|
4747
4633
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets/{secretName}",
|
|
4748
4634
|
})));
|
|
4749
|
-
export const DeleteScriptSecretResponse =
|
|
4750
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
|
|
4635
|
+
export const DeleteScriptSecretResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown.pipe(T.ResponsePath("result")));
|
|
4751
4636
|
export const deleteScriptSecret = /*@__PURE__*/ API.make(() => ({
|
|
4752
4637
|
input: DeleteScriptSecretRequest,
|
|
4753
4638
|
output: DeleteScriptSecretResponse,
|
|
4754
4639
|
errors: [WorkerNotFound, SecretNotFound],
|
|
4755
4640
|
}));
|
|
4756
|
-
export const BulkUpdateScriptSecretsRequest =
|
|
4757
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4641
|
+
export const BulkUpdateScriptSecretsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4758
4642
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4759
4643
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4760
4644
|
secrets: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
@@ -4763,23 +4647,20 @@ export const BulkUpdateScriptSecretsRequest =
|
|
|
4763
4647
|
method: "PATCH",
|
|
4764
4648
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/secrets-bulk",
|
|
4765
4649
|
})));
|
|
4766
|
-
export const BulkUpdateScriptSecretsResponse =
|
|
4767
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
|
|
4650
|
+
export const BulkUpdateScriptSecretsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Record(Schema.String, Schema.Unknown).pipe(T.ResponsePath("result")));
|
|
4768
4651
|
export const bulkUpdateScriptSecrets = /*@__PURE__*/ API.make(() => ({
|
|
4769
4652
|
input: BulkUpdateScriptSecretsRequest,
|
|
4770
4653
|
output: BulkUpdateScriptSecretsResponse,
|
|
4771
4654
|
errors: [],
|
|
4772
4655
|
}));
|
|
4773
|
-
export const GetScriptSettingRequest =
|
|
4774
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4656
|
+
export const GetScriptSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4775
4657
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4776
4658
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4777
4659
|
}).pipe(T.Http({
|
|
4778
4660
|
method: "GET",
|
|
4779
4661
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
|
|
4780
4662
|
})));
|
|
4781
|
-
export const GetScriptSettingResponse =
|
|
4782
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4663
|
+
export const GetScriptSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4783
4664
|
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4784
4665
|
observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
|
|
4785
4666
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -4797,8 +4678,7 @@ export const getScriptSetting = /*@__PURE__*/ API.make(() => ({
|
|
|
4797
4678
|
output: GetScriptSettingResponse,
|
|
4798
4679
|
errors: [WorkerNotFound, WorkerHasNoVersions],
|
|
4799
4680
|
}));
|
|
4800
|
-
export const PatchScriptSettingRequest =
|
|
4801
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4681
|
+
export const PatchScriptSettingRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4802
4682
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4803
4683
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4804
4684
|
logpush: Schema.optional(Schema.Boolean),
|
|
@@ -4814,8 +4694,7 @@ export const PatchScriptSettingRequest =
|
|
|
4814
4694
|
method: "PATCH",
|
|
4815
4695
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/script-settings",
|
|
4816
4696
|
})));
|
|
4817
|
-
export const PatchScriptSettingResponse =
|
|
4818
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4697
|
+
export const PatchScriptSettingResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4819
4698
|
logpush: Schema.optional(Schema.Union([Schema.Boolean, Schema.Null])),
|
|
4820
4699
|
observability: Schema.optional(Schema.Union([Observability2, Schema.Null])),
|
|
4821
4700
|
tags: Schema.optional(Schema.Union([Schema.Array(Schema.String), Schema.Null])),
|
|
@@ -4833,16 +4712,14 @@ export const patchScriptSetting = /*@__PURE__*/ API.make(() => ({
|
|
|
4833
4712
|
output: PatchScriptSettingResponse,
|
|
4834
4713
|
errors: [WorkerNotFound],
|
|
4835
4714
|
}));
|
|
4836
|
-
export const GetScriptSubdomainRequest =
|
|
4837
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4715
|
+
export const GetScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4838
4716
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4839
4717
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4840
4718
|
}).pipe(T.Http({
|
|
4841
4719
|
method: "GET",
|
|
4842
4720
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
|
|
4843
4721
|
})));
|
|
4844
|
-
export const GetScriptSubdomainResponse =
|
|
4845
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4722
|
+
export const GetScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4846
4723
|
enabled: Schema.Boolean,
|
|
4847
4724
|
previewsEnabled: Schema.Boolean,
|
|
4848
4725
|
})
|
|
@@ -4856,8 +4733,7 @@ export const getScriptSubdomain = /*@__PURE__*/ API.make(() => ({
|
|
|
4856
4733
|
output: GetScriptSubdomainResponse,
|
|
4857
4734
|
errors: [WorkerNotFound],
|
|
4858
4735
|
}));
|
|
4859
|
-
export const CreateScriptSubdomainRequest =
|
|
4860
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4736
|
+
export const CreateScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4861
4737
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4862
4738
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4863
4739
|
enabled: Schema.Boolean,
|
|
@@ -4869,8 +4745,7 @@ export const CreateScriptSubdomainRequest =
|
|
|
4869
4745
|
method: "POST",
|
|
4870
4746
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
|
|
4871
4747
|
})));
|
|
4872
|
-
export const CreateScriptSubdomainResponse =
|
|
4873
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4748
|
+
export const CreateScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4874
4749
|
enabled: Schema.Boolean,
|
|
4875
4750
|
previewsEnabled: Schema.Boolean,
|
|
4876
4751
|
})
|
|
@@ -4884,16 +4759,14 @@ export const createScriptSubdomain = /*@__PURE__*/ API.make(() => ({
|
|
|
4884
4759
|
output: CreateScriptSubdomainResponse,
|
|
4885
4760
|
errors: [WorkerNotFound],
|
|
4886
4761
|
}));
|
|
4887
|
-
export const DeleteScriptSubdomainRequest =
|
|
4888
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4762
|
+
export const DeleteScriptSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4889
4763
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4890
4764
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4891
4765
|
}).pipe(T.Http({
|
|
4892
4766
|
method: "DELETE",
|
|
4893
4767
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/subdomain",
|
|
4894
4768
|
})));
|
|
4895
|
-
export const DeleteScriptSubdomainResponse =
|
|
4896
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4769
|
+
export const DeleteScriptSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4897
4770
|
enabled: Schema.Boolean,
|
|
4898
4771
|
previewsEnabled: Schema.Boolean,
|
|
4899
4772
|
})
|
|
@@ -4926,8 +4799,7 @@ export const getScriptTail = /*@__PURE__*/ API.make(() => ({
|
|
|
4926
4799
|
output: GetScriptTailResponse,
|
|
4927
4800
|
errors: [WorkerNotFound],
|
|
4928
4801
|
}));
|
|
4929
|
-
export const CreateScriptTailRequest =
|
|
4930
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4802
|
+
export const CreateScriptTailRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4931
4803
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4932
4804
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4933
4805
|
body: Schema.Unknown.pipe(T.HttpBody()),
|
|
@@ -4935,8 +4807,7 @@ export const CreateScriptTailRequest =
|
|
|
4935
4807
|
method: "POST",
|
|
4936
4808
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails",
|
|
4937
4809
|
})));
|
|
4938
|
-
export const CreateScriptTailResponse =
|
|
4939
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4810
|
+
export const CreateScriptTailResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4940
4811
|
id: Schema.String,
|
|
4941
4812
|
expiresAt: Schema.String,
|
|
4942
4813
|
url: Schema.String,
|
|
@@ -4948,8 +4819,7 @@ export const createScriptTail = /*@__PURE__*/ API.make(() => ({
|
|
|
4948
4819
|
output: CreateScriptTailResponse,
|
|
4949
4820
|
errors: [WorkerNotFound],
|
|
4950
4821
|
}));
|
|
4951
|
-
export const DeleteScriptTailRequest =
|
|
4952
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4822
|
+
export const DeleteScriptTailRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4953
4823
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4954
4824
|
id: Schema.String.pipe(T.HttpPath("id")),
|
|
4955
4825
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4957,8 +4827,7 @@ export const DeleteScriptTailRequest =
|
|
|
4957
4827
|
method: "DELETE",
|
|
4958
4828
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/tails/{id}",
|
|
4959
4829
|
})));
|
|
4960
|
-
export const DeleteScriptTailResponse =
|
|
4961
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4830
|
+
export const DeleteScriptTailResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4962
4831
|
errors: Schema.Array(Error2),
|
|
4963
4832
|
messages: Schema.Array(Error2),
|
|
4964
4833
|
success: Schema.Literal(true),
|
|
@@ -4968,8 +4837,7 @@ export const deleteScriptTail = /*@__PURE__*/ API.make(() => ({
|
|
|
4968
4837
|
output: DeleteScriptTailResponse,
|
|
4969
4838
|
errors: [WorkerNotFound],
|
|
4970
4839
|
}));
|
|
4971
|
-
export const GetScriptVersionRequest =
|
|
4972
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4840
|
+
export const GetScriptVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4973
4841
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4974
4842
|
versionId: Schema.String.pipe(T.HttpPath("versionId")),
|
|
4975
4843
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
@@ -4977,8 +4845,7 @@ export const GetScriptVersionRequest =
|
|
|
4977
4845
|
method: "GET",
|
|
4978
4846
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions/{versionId}",
|
|
4979
4847
|
})));
|
|
4980
|
-
export const GetScriptVersionResponse =
|
|
4981
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4848
|
+
export const GetScriptVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4982
4849
|
resources: Resources,
|
|
4983
4850
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
4984
4851
|
metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
|
|
@@ -4989,8 +4856,7 @@ export const getScriptVersion = /*@__PURE__*/ API.make(() => ({
|
|
|
4989
4856
|
output: GetScriptVersionResponse,
|
|
4990
4857
|
errors: [WorkerNotFound, VersionNotFound],
|
|
4991
4858
|
}));
|
|
4992
|
-
export const ListScriptVersionsRequest =
|
|
4993
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4859
|
+
export const ListScriptVersionsRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4994
4860
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
4995
4861
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
4996
4862
|
page: Schema.optional(Schema.Number).pipe(T.HttpQuery("page")),
|
|
@@ -5000,8 +4866,7 @@ export const ListScriptVersionsRequest =
|
|
|
5000
4866
|
method: "GET",
|
|
5001
4867
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
|
|
5002
4868
|
})));
|
|
5003
|
-
export const ListScriptVersionsResponse =
|
|
5004
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4869
|
+
export const ListScriptVersionsResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5005
4870
|
result: ListScriptVersionsResponseResult,
|
|
5006
4871
|
resultInfo: Schema.optional(Schema.Union([ListBetaWorkersResponseResultInfo, Schema.Null])),
|
|
5007
4872
|
}).pipe(Schema.encodeKeys({ result: "result", resultInfo: "result_info" })));
|
|
@@ -5017,8 +4882,7 @@ export const listScriptVersions = /*@__PURE__*/ API.makePaginated(() => ({
|
|
|
5017
4882
|
pageSize: "perPage",
|
|
5018
4883
|
},
|
|
5019
4884
|
}));
|
|
5020
|
-
export const CreateScriptVersionRequest =
|
|
5021
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4885
|
+
export const CreateScriptVersionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5022
4886
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
5023
4887
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5024
4888
|
bindingsInherit: Schema.optional(Schema.Literal("strict")).pipe(T.HttpQuery("bindings_inherit")),
|
|
@@ -5029,8 +4893,7 @@ export const CreateScriptVersionRequest =
|
|
|
5029
4893
|
path: "/accounts/{account_id}/workers/scripts/{scriptName}/versions",
|
|
5030
4894
|
contentType: "multipart",
|
|
5031
4895
|
})));
|
|
5032
|
-
export const CreateScriptVersionResponse =
|
|
5033
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4896
|
+
export const CreateScriptVersionResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5034
4897
|
resources: Resources,
|
|
5035
4898
|
id: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5036
4899
|
metadata: Schema.optional(Schema.Union([Metadata4, Schema.Null])),
|
|
@@ -5048,10 +4911,26 @@ export const CreateScriptVersionResponse =
|
|
|
5048
4911
|
export const createScriptVersion = /*@__PURE__*/ API.make(() => ({
|
|
5049
4912
|
input: CreateScriptVersionRequest,
|
|
5050
4913
|
output: CreateScriptVersionResponse,
|
|
5051
|
-
errors: [
|
|
4914
|
+
errors: [
|
|
4915
|
+
WorkerNotFound,
|
|
4916
|
+
InvalidWorkerScript,
|
|
4917
|
+
InternalServerError,
|
|
4918
|
+
ScriptStartupError,
|
|
4919
|
+
ScriptModuleNotFound,
|
|
4920
|
+
SecretsStoreBindingNotFound,
|
|
4921
|
+
KVNamespaceNotFound,
|
|
4922
|
+
R2BucketNotFound,
|
|
4923
|
+
D1DatabaseNotFound,
|
|
4924
|
+
QueueNotFound,
|
|
4925
|
+
ServiceBindingNotFound,
|
|
4926
|
+
DurableObjectClassNotFound,
|
|
4927
|
+
HyperdriveConfigNotFound,
|
|
4928
|
+
VectorizeIndexNotFound,
|
|
4929
|
+
DispatchNamespaceNotFound,
|
|
4930
|
+
MtlsCertificateNotFound,
|
|
4931
|
+
],
|
|
5052
4932
|
}));
|
|
5053
|
-
export const CreateServiceEdgePreviewRequest =
|
|
5054
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4933
|
+
export const CreateServiceEdgePreviewRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5055
4934
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5056
4935
|
serviceName: Schema.String.pipe(T.HttpPath("service_name")),
|
|
5057
4936
|
environmentName: Schema.String.pipe(T.HttpPath("environment_name")),
|
|
@@ -5071,8 +4950,7 @@ export const CreateServiceEdgePreviewRequest =
|
|
|
5071
4950
|
path: "/accounts/{account_id}/workers/services/{service_name}/environments/{environment_name}/edge-preview",
|
|
5072
4951
|
contentType: "multipart",
|
|
5073
4952
|
})));
|
|
5074
|
-
export const CreateServiceEdgePreviewResponse =
|
|
5075
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4953
|
+
export const CreateServiceEdgePreviewResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5076
4954
|
previewToken: Schema.String,
|
|
5077
4955
|
tailUrl: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
5078
4956
|
})
|
|
@@ -5088,10 +4966,7 @@ export const createServiceEdgePreview = /*@__PURE__*/ API.make(() => ({
|
|
|
5088
4966
|
}));
|
|
5089
4967
|
export const GetSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5090
4968
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5091
|
-
}).pipe(T.Http({
|
|
5092
|
-
method: "GET",
|
|
5093
|
-
path: "/accounts/{account_id}/workers/subdomain",
|
|
5094
|
-
})));
|
|
4969
|
+
}).pipe(T.Http({ method: "GET", path: "/accounts/{account_id}/workers/subdomain" })));
|
|
5095
4970
|
export const GetSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5096
4971
|
subdomain: Schema.String,
|
|
5097
4972
|
}).pipe(T.ResponsePath("result")));
|
|
@@ -5103,10 +4978,7 @@ export const getSubdomain = /*@__PURE__*/ API.make(() => ({
|
|
|
5103
4978
|
export const PutSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5104
4979
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5105
4980
|
subdomain: Schema.String,
|
|
5106
|
-
}).pipe(T.Http({
|
|
5107
|
-
method: "PUT",
|
|
5108
|
-
path: "/accounts/{account_id}/workers/subdomain",
|
|
5109
|
-
})));
|
|
4981
|
+
}).pipe(T.Http({ method: "PUT", path: "/accounts/{account_id}/workers/subdomain" })));
|
|
5110
4982
|
export const PutSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5111
4983
|
subdomain: Schema.String,
|
|
5112
4984
|
}).pipe(T.ResponsePath("result")));
|
|
@@ -5115,15 +4987,13 @@ export const putSubdomain = /*@__PURE__*/ API.make(() => ({
|
|
|
5115
4987
|
output: PutSubdomainResponse,
|
|
5116
4988
|
errors: [SubdomainAlreadyExists, InvalidRoute, Forbidden],
|
|
5117
4989
|
}));
|
|
5118
|
-
export const DeleteSubdomainRequest =
|
|
5119
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
4990
|
+
export const DeleteSubdomainRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5120
4991
|
accountId: Schema.String.pipe(T.HttpPath("account_id")),
|
|
5121
4992
|
}).pipe(T.Http({
|
|
5122
4993
|
method: "DELETE",
|
|
5123
4994
|
path: "/accounts/{account_id}/workers/subdomain",
|
|
5124
4995
|
})));
|
|
5125
|
-
export const DeleteSubdomainResponse =
|
|
5126
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
4996
|
+
export const DeleteSubdomainResponse = /*@__PURE__*/ Schema.suspend(() => Schema.Unknown);
|
|
5127
4997
|
export const deleteSubdomain = /*@__PURE__*/ API.make(() => ({
|
|
5128
4998
|
input: DeleteSubdomainRequest,
|
|
5129
4999
|
output: DeleteSubdomainResponse,
|
|
@@ -5188,8 +5058,7 @@ export const liveTailObservabilityTelemetry = /*@__PURE__*/ API.make(() => ({
|
|
|
5188
5058
|
output: LiveTailObservabilityTelemetryResponse,
|
|
5189
5059
|
errors: [],
|
|
5190
5060
|
}));
|
|
5191
|
-
export const CreateZoneEdgePreviewSessionRequest =
|
|
5192
|
-
/*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5061
|
+
export const CreateZoneEdgePreviewSessionRequest = /*@__PURE__*/ Schema.suspend(() => Schema.Struct({
|
|
5193
5062
|
zoneId: Schema.String.pipe(T.HttpPath("zone_id")),
|
|
5194
5063
|
}).pipe(T.Http({ method: "GET", path: "/zones/{zone_id}/workers/edge-preview" })));
|
|
5195
5064
|
export const CreateZoneEdgePreviewSessionResponse =
|