@distilled.cloud/cloudflare 0.7.6 → 0.7.8
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/workers.js
CHANGED
|
@@ -662,6 +662,10 @@ export const GetBetaWorkerVersionResponse =
|
|
|
662
662
|
part: Schema.String,
|
|
663
663
|
type: Schema.Literal("wasm_module"),
|
|
664
664
|
}),
|
|
665
|
+
Schema.Struct({
|
|
666
|
+
name: Schema.String,
|
|
667
|
+
type: Schema.Literal("worker_loader"),
|
|
668
|
+
}),
|
|
665
669
|
])),
|
|
666
670
|
Schema.Null,
|
|
667
671
|
])),
|
|
@@ -1062,6 +1066,10 @@ export const ListBetaWorkerVersionsResponse =
|
|
|
1062
1066
|
part: Schema.String,
|
|
1063
1067
|
type: Schema.Literal("wasm_module"),
|
|
1064
1068
|
}),
|
|
1069
|
+
Schema.Struct({
|
|
1070
|
+
name: Schema.String,
|
|
1071
|
+
type: Schema.Literal("worker_loader"),
|
|
1072
|
+
}),
|
|
1065
1073
|
])),
|
|
1066
1074
|
Schema.Null,
|
|
1067
1075
|
])),
|
|
@@ -1450,6 +1458,10 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
1450
1458
|
part: Schema.String,
|
|
1451
1459
|
type: Schema.Literal("wasm_module"),
|
|
1452
1460
|
}),
|
|
1461
|
+
Schema.Struct({
|
|
1462
|
+
name: Schema.String,
|
|
1463
|
+
type: Schema.Literal("worker_loader"),
|
|
1464
|
+
}),
|
|
1453
1465
|
]))),
|
|
1454
1466
|
compatibilityDate: Schema.optional(Schema.String),
|
|
1455
1467
|
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -1822,6 +1834,10 @@ export const CreateBetaWorkerVersionResponse =
|
|
|
1822
1834
|
part: Schema.String,
|
|
1823
1835
|
type: Schema.Literal("wasm_module"),
|
|
1824
1836
|
}),
|
|
1837
|
+
Schema.Struct({
|
|
1838
|
+
name: Schema.String,
|
|
1839
|
+
type: Schema.Literal("worker_loader"),
|
|
1840
|
+
}),
|
|
1825
1841
|
])),
|
|
1826
1842
|
Schema.Null,
|
|
1827
1843
|
])),
|
|
@@ -2310,7 +2326,7 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2310
2326
|
id: Schema.String,
|
|
2311
2327
|
accountId: Schema.String,
|
|
2312
2328
|
dry: Schema.Boolean,
|
|
2313
|
-
environmentId: Schema.String,
|
|
2329
|
+
environmentId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2314
2330
|
granularity: Schema.Number,
|
|
2315
2331
|
query: Schema.Struct({
|
|
2316
2332
|
id: Schema.String,
|
|
@@ -2474,7 +2490,7 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2474
2490
|
to: Schema.Number,
|
|
2475
2491
|
}),
|
|
2476
2492
|
userId: Schema.String,
|
|
2477
|
-
workspaceId: Schema.String,
|
|
2493
|
+
workspaceId: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2478
2494
|
created: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2479
2495
|
statistics: Schema.optional(Schema.Union([
|
|
2480
2496
|
Schema.Struct({
|
|
@@ -2744,12 +2760,14 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2744
2760
|
interval: Schema.Number,
|
|
2745
2761
|
lastSeen: Schema.optional(Schema.Union([Schema.String, Schema.Null])),
|
|
2746
2762
|
bin: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2763
|
+
countErrors: Schema.optional(Schema.Union([Schema.Number, Schema.Null])),
|
|
2747
2764
|
}).pipe(Schema.encodeKeys({
|
|
2748
2765
|
count: "_count",
|
|
2749
2766
|
firstSeen: "_firstSeen",
|
|
2750
2767
|
interval: "_interval",
|
|
2751
2768
|
lastSeen: "_lastSeen",
|
|
2752
2769
|
bin: "bin",
|
|
2770
|
+
countErrors: "_countErrors",
|
|
2753
2771
|
})),
|
|
2754
2772
|
count: Schema.Number,
|
|
2755
2773
|
interval: Schema.Number,
|
|
@@ -2764,10 +2782,11 @@ export const QueryObservabilityTelemetryResponse =
|
|
|
2764
2782
|
})),
|
|
2765
2783
|
Schema.Null,
|
|
2766
2784
|
])),
|
|
2785
|
+
statistics: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2767
2786
|
}),
|
|
2768
2787
|
Schema.Null,
|
|
2769
2788
|
])),
|
|
2770
|
-
invocations: Schema.optional(Schema.Union([Schema.
|
|
2789
|
+
invocations: Schema.optional(Schema.Union([Schema.Unknown, Schema.Null])),
|
|
2771
2790
|
patterns: Schema.optional(Schema.Union([
|
|
2772
2791
|
Schema.Array(Schema.Struct({
|
|
2773
2792
|
count: Schema.Number,
|
|
@@ -3420,6 +3439,10 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3420
3439
|
part: Schema.String,
|
|
3421
3440
|
type: Schema.Literal("wasm_module"),
|
|
3422
3441
|
}),
|
|
3442
|
+
Schema.Struct({
|
|
3443
|
+
name: Schema.String,
|
|
3444
|
+
type: Schema.Literal("worker_loader"),
|
|
3445
|
+
}),
|
|
3423
3446
|
]))),
|
|
3424
3447
|
bodyPart: Schema.optional(Schema.String),
|
|
3425
3448
|
compatibilityDate: Schema.optional(Schema.String),
|
|
@@ -3740,7 +3763,7 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3740
3763
|
export const putScript = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3741
3764
|
input: PutScriptRequest,
|
|
3742
3765
|
output: PutScriptResponse,
|
|
3743
|
-
errors: [InvalidRoute, DurableObjectMustBeSqlite],
|
|
3766
|
+
errors: [InvalidRoute, InvalidWorkerScript, DurableObjectMustBeSqlite],
|
|
3744
3767
|
}));
|
|
3745
3768
|
export const DeleteScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3746
3769
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|
|
@@ -4504,6 +4527,10 @@ export const GetScriptScriptAndVersionSettingResponse =
|
|
|
4504
4527
|
part: Schema.String,
|
|
4505
4528
|
type: Schema.Literal("wasm_module"),
|
|
4506
4529
|
}),
|
|
4530
|
+
Schema.Struct({
|
|
4531
|
+
name: Schema.String,
|
|
4532
|
+
type: Schema.Literal("worker_loader"),
|
|
4533
|
+
}),
|
|
4507
4534
|
])),
|
|
4508
4535
|
Schema.Null,
|
|
4509
4536
|
])),
|
|
@@ -4806,6 +4833,10 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
4806
4833
|
part: Schema.String,
|
|
4807
4834
|
type: Schema.Literal("wasm_module"),
|
|
4808
4835
|
}),
|
|
4836
|
+
Schema.Struct({
|
|
4837
|
+
name: Schema.String,
|
|
4838
|
+
type: Schema.Literal("worker_loader"),
|
|
4839
|
+
}),
|
|
4809
4840
|
]))),
|
|
4810
4841
|
compatibilityDate: Schema.optional(Schema.String),
|
|
4811
4842
|
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -5164,6 +5195,10 @@ export const PatchScriptScriptAndVersionSettingResponse =
|
|
|
5164
5195
|
part: Schema.String,
|
|
5165
5196
|
type: Schema.Literal("wasm_module"),
|
|
5166
5197
|
}),
|
|
5198
|
+
Schema.Struct({
|
|
5199
|
+
name: Schema.String,
|
|
5200
|
+
type: Schema.Literal("worker_loader"),
|
|
5201
|
+
}),
|
|
5167
5202
|
])),
|
|
5168
5203
|
Schema.Null,
|
|
5169
5204
|
])),
|
|
@@ -5934,6 +5969,10 @@ export const GetScriptVersionResponse =
|
|
|
5934
5969
|
part: Schema.String,
|
|
5935
5970
|
type: Schema.Literal("wasm_module"),
|
|
5936
5971
|
}),
|
|
5972
|
+
Schema.Struct({
|
|
5973
|
+
name: Schema.String,
|
|
5974
|
+
type: Schema.Literal("worker_loader"),
|
|
5975
|
+
}),
|
|
5937
5976
|
])),
|
|
5938
5977
|
Schema.Null,
|
|
5939
5978
|
])),
|
|
@@ -6342,6 +6381,10 @@ export const CreateScriptVersionRequest =
|
|
|
6342
6381
|
part: Schema.String,
|
|
6343
6382
|
type: Schema.Literal("wasm_module"),
|
|
6344
6383
|
}),
|
|
6384
|
+
Schema.Struct({
|
|
6385
|
+
name: Schema.String,
|
|
6386
|
+
type: Schema.Literal("worker_loader"),
|
|
6387
|
+
}),
|
|
6345
6388
|
]))),
|
|
6346
6389
|
compatibilityDate: Schema.optional(Schema.String),
|
|
6347
6390
|
compatibilityFlags: Schema.optional(Schema.Array(Schema.String)),
|
|
@@ -6592,6 +6635,10 @@ export const CreateScriptVersionResponse =
|
|
|
6592
6635
|
part: Schema.String,
|
|
6593
6636
|
type: Schema.Literal("wasm_module"),
|
|
6594
6637
|
}),
|
|
6638
|
+
Schema.Struct({
|
|
6639
|
+
name: Schema.String,
|
|
6640
|
+
type: Schema.Literal("worker_loader"),
|
|
6641
|
+
}),
|
|
6595
6642
|
])),
|
|
6596
6643
|
Schema.Null,
|
|
6597
6644
|
])),
|