@distilled.cloud/cloudflare 0.21.3 → 0.21.5
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.d.ts +56 -8
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +222 -114
- package/lib/services/workers.js.map +1 -1
- package/lib/services/zaraz.d.ts.map +1 -1
- package/lib/services/zaraz.js +6 -2
- package/lib/services/zaraz.js.map +1 -1
- package/package.json +2 -2
- package/src/services/workers.ts +316 -142
- package/src/services/zaraz.ts +6 -2
package/src/services/workers.ts
CHANGED
|
@@ -2469,7 +2469,7 @@ export interface CreateBetaWorkerVersionRequest {
|
|
|
2469
2469
|
| {
|
|
2470
2470
|
name: string;
|
|
2471
2471
|
type: "durable_object_namespace";
|
|
2472
|
-
className
|
|
2472
|
+
className: string;
|
|
2473
2473
|
environment?: string;
|
|
2474
2474
|
namespaceId?: string;
|
|
2475
2475
|
scriptName?: string;
|
|
@@ -2529,7 +2529,7 @@ export interface CreateBetaWorkerVersionRequest {
|
|
|
2529
2529
|
name: string;
|
|
2530
2530
|
type: "workflow";
|
|
2531
2531
|
workflowName: string;
|
|
2532
|
-
className
|
|
2532
|
+
className: string;
|
|
2533
2533
|
scriptName?: string;
|
|
2534
2534
|
}
|
|
2535
2535
|
| { name: string; part: string; type: "wasm_module" }
|
|
@@ -2673,6 +2673,21 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
2673
2673
|
type: "type",
|
|
2674
2674
|
}),
|
|
2675
2675
|
),
|
|
2676
|
+
Schema.Struct({
|
|
2677
|
+
name: Schema.String,
|
|
2678
|
+
type: Schema.Literal("workflow"),
|
|
2679
|
+
workflowName: Schema.String,
|
|
2680
|
+
className: Schema.String,
|
|
2681
|
+
scriptName: Schema.optional(Schema.String),
|
|
2682
|
+
}).pipe(
|
|
2683
|
+
Schema.encodeKeys({
|
|
2684
|
+
name: "name",
|
|
2685
|
+
type: "type",
|
|
2686
|
+
workflowName: "workflow_name",
|
|
2687
|
+
className: "class_name",
|
|
2688
|
+
scriptName: "script_name",
|
|
2689
|
+
}),
|
|
2690
|
+
),
|
|
2676
2691
|
Schema.Struct({
|
|
2677
2692
|
dataset: Schema.String,
|
|
2678
2693
|
name: Schema.String,
|
|
@@ -2704,6 +2719,23 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
2704
2719
|
}),
|
|
2705
2720
|
),
|
|
2706
2721
|
}),
|
|
2722
|
+
Schema.Struct({
|
|
2723
|
+
name: Schema.String,
|
|
2724
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
2725
|
+
className: Schema.String,
|
|
2726
|
+
environment: Schema.optional(Schema.String),
|
|
2727
|
+
namespaceId: Schema.optional(Schema.String),
|
|
2728
|
+
scriptName: Schema.optional(Schema.String),
|
|
2729
|
+
}).pipe(
|
|
2730
|
+
Schema.encodeKeys({
|
|
2731
|
+
name: "name",
|
|
2732
|
+
type: "type",
|
|
2733
|
+
className: "class_name",
|
|
2734
|
+
environment: "environment",
|
|
2735
|
+
namespaceId: "namespace_id",
|
|
2736
|
+
scriptName: "script_name",
|
|
2737
|
+
}),
|
|
2738
|
+
),
|
|
2707
2739
|
Schema.Struct({
|
|
2708
2740
|
id: Schema.String,
|
|
2709
2741
|
name: Schema.String,
|
|
@@ -2797,21 +2829,6 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
2797
2829
|
type: "type",
|
|
2798
2830
|
}),
|
|
2799
2831
|
),
|
|
2800
|
-
Schema.Struct({
|
|
2801
|
-
name: Schema.String,
|
|
2802
|
-
type: Schema.Literal("workflow"),
|
|
2803
|
-
workflowName: Schema.String,
|
|
2804
|
-
className: Schema.optional(Schema.String),
|
|
2805
|
-
scriptName: Schema.optional(Schema.String),
|
|
2806
|
-
}).pipe(
|
|
2807
|
-
Schema.encodeKeys({
|
|
2808
|
-
name: "name",
|
|
2809
|
-
type: "type",
|
|
2810
|
-
workflowName: "workflow_name",
|
|
2811
|
-
className: "class_name",
|
|
2812
|
-
scriptName: "script_name",
|
|
2813
|
-
}),
|
|
2814
|
-
),
|
|
2815
2832
|
Schema.Struct({
|
|
2816
2833
|
name: Schema.String,
|
|
2817
2834
|
part: Schema.String,
|
|
@@ -2834,23 +2851,6 @@ export const CreateBetaWorkerVersionRequest =
|
|
|
2834
2851
|
name: Schema.String,
|
|
2835
2852
|
type: Schema.Literal("browser"),
|
|
2836
2853
|
}),
|
|
2837
|
-
Schema.Struct({
|
|
2838
|
-
name: Schema.String,
|
|
2839
|
-
type: Schema.Literal("durable_object_namespace"),
|
|
2840
|
-
className: Schema.optional(Schema.String),
|
|
2841
|
-
environment: Schema.optional(Schema.String),
|
|
2842
|
-
namespaceId: Schema.optional(Schema.String),
|
|
2843
|
-
scriptName: Schema.optional(Schema.String),
|
|
2844
|
-
}).pipe(
|
|
2845
|
-
Schema.encodeKeys({
|
|
2846
|
-
name: "name",
|
|
2847
|
-
type: "type",
|
|
2848
|
-
className: "class_name",
|
|
2849
|
-
environment: "environment",
|
|
2850
|
-
namespaceId: "namespace_id",
|
|
2851
|
-
scriptName: "script_name",
|
|
2852
|
-
}),
|
|
2853
|
-
),
|
|
2854
2854
|
Schema.Struct({
|
|
2855
2855
|
name: Schema.String,
|
|
2856
2856
|
type: Schema.Literal("inherit"),
|
|
@@ -6563,7 +6563,7 @@ export interface PutScriptRequest {
|
|
|
6563
6563
|
| {
|
|
6564
6564
|
name: string;
|
|
6565
6565
|
type: "durable_object_namespace";
|
|
6566
|
-
className
|
|
6566
|
+
className: string;
|
|
6567
6567
|
environment?: string;
|
|
6568
6568
|
namespaceId?: string;
|
|
6569
6569
|
scriptName?: string;
|
|
@@ -6623,7 +6623,7 @@ export interface PutScriptRequest {
|
|
|
6623
6623
|
name: string;
|
|
6624
6624
|
type: "workflow";
|
|
6625
6625
|
workflowName: string;
|
|
6626
|
-
className
|
|
6626
|
+
className: string;
|
|
6627
6627
|
scriptName?: string;
|
|
6628
6628
|
}
|
|
6629
6629
|
| { name: string; part: string; type: "wasm_module" }
|
|
@@ -6791,6 +6791,21 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6791
6791
|
type: "type",
|
|
6792
6792
|
}),
|
|
6793
6793
|
),
|
|
6794
|
+
Schema.Struct({
|
|
6795
|
+
name: Schema.String,
|
|
6796
|
+
type: Schema.Literal("workflow"),
|
|
6797
|
+
workflowName: Schema.String,
|
|
6798
|
+
className: Schema.String,
|
|
6799
|
+
scriptName: Schema.optional(Schema.String),
|
|
6800
|
+
}).pipe(
|
|
6801
|
+
Schema.encodeKeys({
|
|
6802
|
+
name: "name",
|
|
6803
|
+
type: "type",
|
|
6804
|
+
workflowName: "workflow_name",
|
|
6805
|
+
className: "class_name",
|
|
6806
|
+
scriptName: "script_name",
|
|
6807
|
+
}),
|
|
6808
|
+
),
|
|
6794
6809
|
Schema.Struct({
|
|
6795
6810
|
name: Schema.String,
|
|
6796
6811
|
type: Schema.Literal("ratelimit"),
|
|
@@ -6838,6 +6853,23 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6838
6853
|
}),
|
|
6839
6854
|
),
|
|
6840
6855
|
}),
|
|
6856
|
+
Schema.Struct({
|
|
6857
|
+
name: Schema.String,
|
|
6858
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
6859
|
+
className: Schema.String,
|
|
6860
|
+
environment: Schema.optional(Schema.String),
|
|
6861
|
+
namespaceId: Schema.optional(Schema.String),
|
|
6862
|
+
scriptName: Schema.optional(Schema.String),
|
|
6863
|
+
}).pipe(
|
|
6864
|
+
Schema.encodeKeys({
|
|
6865
|
+
name: "name",
|
|
6866
|
+
type: "type",
|
|
6867
|
+
className: "class_name",
|
|
6868
|
+
environment: "environment",
|
|
6869
|
+
namespaceId: "namespace_id",
|
|
6870
|
+
scriptName: "script_name",
|
|
6871
|
+
}),
|
|
6872
|
+
),
|
|
6841
6873
|
Schema.Struct({
|
|
6842
6874
|
id: Schema.String,
|
|
6843
6875
|
name: Schema.String,
|
|
@@ -6931,21 +6963,6 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6931
6963
|
type: "type",
|
|
6932
6964
|
}),
|
|
6933
6965
|
),
|
|
6934
|
-
Schema.Struct({
|
|
6935
|
-
name: Schema.String,
|
|
6936
|
-
type: Schema.Literal("workflow"),
|
|
6937
|
-
workflowName: Schema.String,
|
|
6938
|
-
className: Schema.optional(Schema.String),
|
|
6939
|
-
scriptName: Schema.optional(Schema.String),
|
|
6940
|
-
}).pipe(
|
|
6941
|
-
Schema.encodeKeys({
|
|
6942
|
-
name: "name",
|
|
6943
|
-
type: "type",
|
|
6944
|
-
workflowName: "workflow_name",
|
|
6945
|
-
className: "class_name",
|
|
6946
|
-
scriptName: "script_name",
|
|
6947
|
-
}),
|
|
6948
|
-
),
|
|
6949
6966
|
Schema.Struct({
|
|
6950
6967
|
name: Schema.String,
|
|
6951
6968
|
part: Schema.String,
|
|
@@ -6968,23 +6985,6 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
6968
6985
|
name: Schema.String,
|
|
6969
6986
|
type: Schema.Literal("browser"),
|
|
6970
6987
|
}),
|
|
6971
|
-
Schema.Struct({
|
|
6972
|
-
name: Schema.String,
|
|
6973
|
-
type: Schema.Literal("durable_object_namespace"),
|
|
6974
|
-
className: Schema.optional(Schema.String),
|
|
6975
|
-
environment: Schema.optional(Schema.String),
|
|
6976
|
-
namespaceId: Schema.optional(Schema.String),
|
|
6977
|
-
scriptName: Schema.optional(Schema.String),
|
|
6978
|
-
}).pipe(
|
|
6979
|
-
Schema.encodeKeys({
|
|
6980
|
-
name: "name",
|
|
6981
|
-
type: "type",
|
|
6982
|
-
className: "class_name",
|
|
6983
|
-
environment: "environment",
|
|
6984
|
-
namespaceId: "namespace_id",
|
|
6985
|
-
scriptName: "script_name",
|
|
6986
|
-
}),
|
|
6987
|
-
),
|
|
6988
6988
|
Schema.Struct({
|
|
6989
6989
|
name: Schema.String,
|
|
6990
6990
|
type: Schema.Literal("inherit"),
|
|
@@ -8777,7 +8777,13 @@ export interface CreateScriptEdgePreviewRequest {
|
|
|
8777
8777
|
jurisdiction?: string;
|
|
8778
8778
|
raw?: boolean;
|
|
8779
8779
|
}
|
|
8780
|
-
| {
|
|
8780
|
+
| {
|
|
8781
|
+
type: "d1";
|
|
8782
|
+
name: string;
|
|
8783
|
+
id: string;
|
|
8784
|
+
internalEnv?: string;
|
|
8785
|
+
raw?: boolean;
|
|
8786
|
+
}
|
|
8781
8787
|
| {
|
|
8782
8788
|
type: "queue";
|
|
8783
8789
|
name: string;
|
|
@@ -8791,11 +8797,18 @@ export interface CreateScriptEdgePreviewRequest {
|
|
|
8791
8797
|
service: string;
|
|
8792
8798
|
environment?: string;
|
|
8793
8799
|
entrypoint?: string;
|
|
8800
|
+
crossAccountGrant?: string;
|
|
8794
8801
|
}
|
|
8795
8802
|
| { type: "ai"; name: string; staging?: boolean; raw?: boolean }
|
|
8796
8803
|
| { type: "browser"; name: string; raw?: boolean }
|
|
8797
8804
|
| { type: "images"; name: string; raw?: boolean }
|
|
8798
|
-
| {
|
|
8805
|
+
| {
|
|
8806
|
+
type: "vectorize";
|
|
8807
|
+
name: string;
|
|
8808
|
+
indexName: string;
|
|
8809
|
+
internalEnv?: string;
|
|
8810
|
+
raw?: boolean;
|
|
8811
|
+
}
|
|
8799
8812
|
| {
|
|
8800
8813
|
type: "workflow";
|
|
8801
8814
|
name: string;
|
|
@@ -8847,6 +8860,16 @@ export interface CreateScriptEdgePreviewRequest {
|
|
|
8847
8860
|
namespaceId: string;
|
|
8848
8861
|
simple: { limit: number; period: "10" | "60" };
|
|
8849
8862
|
}
|
|
8863
|
+
| { type: "artifacts"; name: string; namespace: string }
|
|
8864
|
+
| { type: "unsafe_hello_world"; name: string; enableTimer?: boolean }
|
|
8865
|
+
| { type: "flagship"; name: string; appId: string }
|
|
8866
|
+
| { type: "vpc_service"; name: string; serviceId: string }
|
|
8867
|
+
| {
|
|
8868
|
+
type: "vpc_network";
|
|
8869
|
+
name: string;
|
|
8870
|
+
tunnelId?: string;
|
|
8871
|
+
networkId?: string;
|
|
8872
|
+
}
|
|
8850
8873
|
| { type: "inherit"; name: string }
|
|
8851
8874
|
)[];
|
|
8852
8875
|
keepBindings?: string[];
|
|
@@ -9042,6 +9065,7 @@ export const CreateScriptEdgePreviewRequest =
|
|
|
9042
9065
|
type: Schema.Literal("d1"),
|
|
9043
9066
|
name: Schema.String,
|
|
9044
9067
|
id: Schema.String,
|
|
9068
|
+
internalEnv: Schema.optional(Schema.String),
|
|
9045
9069
|
raw: Schema.optional(Schema.Boolean),
|
|
9046
9070
|
}),
|
|
9047
9071
|
Schema.Struct({
|
|
@@ -9065,17 +9089,29 @@ export const CreateScriptEdgePreviewRequest =
|
|
|
9065
9089
|
service: Schema.String,
|
|
9066
9090
|
environment: Schema.optional(Schema.String),
|
|
9067
9091
|
entrypoint: Schema.optional(Schema.String),
|
|
9068
|
-
|
|
9092
|
+
crossAccountGrant: Schema.optional(Schema.String),
|
|
9093
|
+
}).pipe(
|
|
9094
|
+
Schema.encodeKeys({
|
|
9095
|
+
type: "type",
|
|
9096
|
+
name: "name",
|
|
9097
|
+
service: "service",
|
|
9098
|
+
environment: "environment",
|
|
9099
|
+
entrypoint: "entrypoint",
|
|
9100
|
+
crossAccountGrant: "cross_account_grant",
|
|
9101
|
+
}),
|
|
9102
|
+
),
|
|
9069
9103
|
Schema.Struct({
|
|
9070
9104
|
type: Schema.Literal("vectorize"),
|
|
9071
9105
|
name: Schema.String,
|
|
9072
9106
|
indexName: Schema.String,
|
|
9107
|
+
internalEnv: Schema.optional(Schema.String),
|
|
9073
9108
|
raw: Schema.optional(Schema.Boolean),
|
|
9074
9109
|
}).pipe(
|
|
9075
9110
|
Schema.encodeKeys({
|
|
9076
9111
|
type: "type",
|
|
9077
9112
|
name: "name",
|
|
9078
9113
|
indexName: "index_name",
|
|
9114
|
+
internalEnv: "internalEnv",
|
|
9079
9115
|
raw: "raw",
|
|
9080
9116
|
}),
|
|
9081
9117
|
),
|
|
@@ -9158,6 +9194,33 @@ export const CreateScriptEdgePreviewRequest =
|
|
|
9158
9194
|
instanceName: "instance_name",
|
|
9159
9195
|
}),
|
|
9160
9196
|
),
|
|
9197
|
+
Schema.Struct({
|
|
9198
|
+
type: Schema.Literal("artifacts"),
|
|
9199
|
+
name: Schema.String,
|
|
9200
|
+
namespace: Schema.String,
|
|
9201
|
+
}),
|
|
9202
|
+
Schema.Struct({
|
|
9203
|
+
type: Schema.Literal("flagship"),
|
|
9204
|
+
name: Schema.String,
|
|
9205
|
+
appId: Schema.String,
|
|
9206
|
+
}).pipe(
|
|
9207
|
+
Schema.encodeKeys({
|
|
9208
|
+
type: "type",
|
|
9209
|
+
name: "name",
|
|
9210
|
+
appId: "app_id",
|
|
9211
|
+
}),
|
|
9212
|
+
),
|
|
9213
|
+
Schema.Struct({
|
|
9214
|
+
type: Schema.Literal("vpc_service"),
|
|
9215
|
+
name: Schema.String,
|
|
9216
|
+
serviceId: Schema.String,
|
|
9217
|
+
}).pipe(
|
|
9218
|
+
Schema.encodeKeys({
|
|
9219
|
+
type: "type",
|
|
9220
|
+
name: "name",
|
|
9221
|
+
serviceId: "service_id",
|
|
9222
|
+
}),
|
|
9223
|
+
),
|
|
9161
9224
|
Schema.Struct({
|
|
9162
9225
|
type: Schema.Literal("ai"),
|
|
9163
9226
|
name: Schema.String,
|
|
@@ -9218,6 +9281,30 @@ export const CreateScriptEdgePreviewRequest =
|
|
|
9218
9281
|
type: Schema.Literal("worker_loader"),
|
|
9219
9282
|
name: Schema.String,
|
|
9220
9283
|
}),
|
|
9284
|
+
Schema.Struct({
|
|
9285
|
+
type: Schema.Literal("unsafe_hello_world"),
|
|
9286
|
+
name: Schema.String,
|
|
9287
|
+
enableTimer: Schema.optional(Schema.Boolean),
|
|
9288
|
+
}).pipe(
|
|
9289
|
+
Schema.encodeKeys({
|
|
9290
|
+
type: "type",
|
|
9291
|
+
name: "name",
|
|
9292
|
+
enableTimer: "enable_timer",
|
|
9293
|
+
}),
|
|
9294
|
+
),
|
|
9295
|
+
Schema.Struct({
|
|
9296
|
+
type: Schema.Literal("vpc_network"),
|
|
9297
|
+
name: Schema.String,
|
|
9298
|
+
tunnelId: Schema.optional(Schema.String),
|
|
9299
|
+
networkId: Schema.optional(Schema.String),
|
|
9300
|
+
}).pipe(
|
|
9301
|
+
Schema.encodeKeys({
|
|
9302
|
+
type: "type",
|
|
9303
|
+
name: "name",
|
|
9304
|
+
tunnelId: "tunnel_id",
|
|
9305
|
+
networkId: "network_id",
|
|
9306
|
+
}),
|
|
9307
|
+
),
|
|
9221
9308
|
Schema.Struct({
|
|
9222
9309
|
type: Schema.Literal("inherit"),
|
|
9223
9310
|
name: Schema.String,
|
|
@@ -10245,7 +10332,7 @@ export interface PatchScriptScriptAndVersionSettingRequest {
|
|
|
10245
10332
|
| {
|
|
10246
10333
|
name: string;
|
|
10247
10334
|
type: "durable_object_namespace";
|
|
10248
|
-
className
|
|
10335
|
+
className: string;
|
|
10249
10336
|
environment?: string;
|
|
10250
10337
|
namespaceId?: string;
|
|
10251
10338
|
scriptName?: string;
|
|
@@ -10305,7 +10392,7 @@ export interface PatchScriptScriptAndVersionSettingRequest {
|
|
|
10305
10392
|
name: string;
|
|
10306
10393
|
type: "workflow";
|
|
10307
10394
|
workflowName: string;
|
|
10308
|
-
className
|
|
10395
|
+
className: string;
|
|
10309
10396
|
scriptName?: string;
|
|
10310
10397
|
}
|
|
10311
10398
|
| { name: string; part: string; type: "wasm_module" }
|
|
@@ -10421,6 +10508,21 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
10421
10508
|
type: "type",
|
|
10422
10509
|
}),
|
|
10423
10510
|
),
|
|
10511
|
+
Schema.Struct({
|
|
10512
|
+
name: Schema.String,
|
|
10513
|
+
type: Schema.Literal("workflow"),
|
|
10514
|
+
workflowName: Schema.String,
|
|
10515
|
+
className: Schema.String,
|
|
10516
|
+
scriptName: Schema.optional(Schema.String),
|
|
10517
|
+
}).pipe(
|
|
10518
|
+
Schema.encodeKeys({
|
|
10519
|
+
name: "name",
|
|
10520
|
+
type: "type",
|
|
10521
|
+
workflowName: "workflow_name",
|
|
10522
|
+
className: "class_name",
|
|
10523
|
+
scriptName: "script_name",
|
|
10524
|
+
}),
|
|
10525
|
+
),
|
|
10424
10526
|
Schema.Struct({
|
|
10425
10527
|
dataset: Schema.String,
|
|
10426
10528
|
name: Schema.String,
|
|
@@ -10452,6 +10554,23 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
10452
10554
|
}),
|
|
10453
10555
|
),
|
|
10454
10556
|
}),
|
|
10557
|
+
Schema.Struct({
|
|
10558
|
+
name: Schema.String,
|
|
10559
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
10560
|
+
className: Schema.String,
|
|
10561
|
+
environment: Schema.optional(Schema.String),
|
|
10562
|
+
namespaceId: Schema.optional(Schema.String),
|
|
10563
|
+
scriptName: Schema.optional(Schema.String),
|
|
10564
|
+
}).pipe(
|
|
10565
|
+
Schema.encodeKeys({
|
|
10566
|
+
name: "name",
|
|
10567
|
+
type: "type",
|
|
10568
|
+
className: "class_name",
|
|
10569
|
+
environment: "environment",
|
|
10570
|
+
namespaceId: "namespace_id",
|
|
10571
|
+
scriptName: "script_name",
|
|
10572
|
+
}),
|
|
10573
|
+
),
|
|
10455
10574
|
Schema.Struct({
|
|
10456
10575
|
id: Schema.String,
|
|
10457
10576
|
name: Schema.String,
|
|
@@ -10547,21 +10666,6 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
10547
10666
|
type: "type",
|
|
10548
10667
|
}),
|
|
10549
10668
|
),
|
|
10550
|
-
Schema.Struct({
|
|
10551
|
-
name: Schema.String,
|
|
10552
|
-
type: Schema.Literal("workflow"),
|
|
10553
|
-
workflowName: Schema.String,
|
|
10554
|
-
className: Schema.optional(Schema.String),
|
|
10555
|
-
scriptName: Schema.optional(Schema.String),
|
|
10556
|
-
}).pipe(
|
|
10557
|
-
Schema.encodeKeys({
|
|
10558
|
-
name: "name",
|
|
10559
|
-
type: "type",
|
|
10560
|
-
workflowName: "workflow_name",
|
|
10561
|
-
className: "class_name",
|
|
10562
|
-
scriptName: "script_name",
|
|
10563
|
-
}),
|
|
10564
|
-
),
|
|
10565
10669
|
Schema.Struct({
|
|
10566
10670
|
name: Schema.String,
|
|
10567
10671
|
part: Schema.String,
|
|
@@ -10584,23 +10688,6 @@ export const PatchScriptScriptAndVersionSettingRequest =
|
|
|
10584
10688
|
name: Schema.String,
|
|
10585
10689
|
type: Schema.Literal("browser"),
|
|
10586
10690
|
}),
|
|
10587
|
-
Schema.Struct({
|
|
10588
|
-
name: Schema.String,
|
|
10589
|
-
type: Schema.Literal("durable_object_namespace"),
|
|
10590
|
-
className: Schema.optional(Schema.String),
|
|
10591
|
-
environment: Schema.optional(Schema.String),
|
|
10592
|
-
namespaceId: Schema.optional(Schema.String),
|
|
10593
|
-
scriptName: Schema.optional(Schema.String),
|
|
10594
|
-
}).pipe(
|
|
10595
|
-
Schema.encodeKeys({
|
|
10596
|
-
name: "name",
|
|
10597
|
-
type: "type",
|
|
10598
|
-
className: "class_name",
|
|
10599
|
-
environment: "environment",
|
|
10600
|
-
namespaceId: "namespace_id",
|
|
10601
|
-
scriptName: "script_name",
|
|
10602
|
-
}),
|
|
10603
|
-
),
|
|
10604
10691
|
Schema.Struct({
|
|
10605
10692
|
name: Schema.String,
|
|
10606
10693
|
type: Schema.Literal("inherit"),
|
|
@@ -13351,7 +13438,7 @@ export interface CreateScriptVersionRequest {
|
|
|
13351
13438
|
| {
|
|
13352
13439
|
name: string;
|
|
13353
13440
|
type: "durable_object_namespace";
|
|
13354
|
-
className
|
|
13441
|
+
className: string;
|
|
13355
13442
|
environment?: string;
|
|
13356
13443
|
namespaceId?: string;
|
|
13357
13444
|
scriptName?: string;
|
|
@@ -13411,7 +13498,7 @@ export interface CreateScriptVersionRequest {
|
|
|
13411
13498
|
name: string;
|
|
13412
13499
|
type: "workflow";
|
|
13413
13500
|
workflowName: string;
|
|
13414
|
-
className
|
|
13501
|
+
className: string;
|
|
13415
13502
|
scriptName?: string;
|
|
13416
13503
|
}
|
|
13417
13504
|
| { name: string; part: string; type: "wasm_module" }
|
|
@@ -13492,6 +13579,21 @@ export const CreateScriptVersionRequest =
|
|
|
13492
13579
|
type: "type",
|
|
13493
13580
|
}),
|
|
13494
13581
|
),
|
|
13582
|
+
Schema.Struct({
|
|
13583
|
+
name: Schema.String,
|
|
13584
|
+
type: Schema.Literal("workflow"),
|
|
13585
|
+
workflowName: Schema.String,
|
|
13586
|
+
className: Schema.String,
|
|
13587
|
+
scriptName: Schema.optional(Schema.String),
|
|
13588
|
+
}).pipe(
|
|
13589
|
+
Schema.encodeKeys({
|
|
13590
|
+
name: "name",
|
|
13591
|
+
type: "type",
|
|
13592
|
+
workflowName: "workflow_name",
|
|
13593
|
+
className: "class_name",
|
|
13594
|
+
scriptName: "script_name",
|
|
13595
|
+
}),
|
|
13596
|
+
),
|
|
13495
13597
|
Schema.Struct({
|
|
13496
13598
|
dataset: Schema.String,
|
|
13497
13599
|
name: Schema.String,
|
|
@@ -13523,6 +13625,23 @@ export const CreateScriptVersionRequest =
|
|
|
13523
13625
|
}),
|
|
13524
13626
|
),
|
|
13525
13627
|
}),
|
|
13628
|
+
Schema.Struct({
|
|
13629
|
+
name: Schema.String,
|
|
13630
|
+
type: Schema.Literal("durable_object_namespace"),
|
|
13631
|
+
className: Schema.String,
|
|
13632
|
+
environment: Schema.optional(Schema.String),
|
|
13633
|
+
namespaceId: Schema.optional(Schema.String),
|
|
13634
|
+
scriptName: Schema.optional(Schema.String),
|
|
13635
|
+
}).pipe(
|
|
13636
|
+
Schema.encodeKeys({
|
|
13637
|
+
name: "name",
|
|
13638
|
+
type: "type",
|
|
13639
|
+
className: "class_name",
|
|
13640
|
+
environment: "environment",
|
|
13641
|
+
namespaceId: "namespace_id",
|
|
13642
|
+
scriptName: "script_name",
|
|
13643
|
+
}),
|
|
13644
|
+
),
|
|
13526
13645
|
Schema.Struct({
|
|
13527
13646
|
id: Schema.String,
|
|
13528
13647
|
name: Schema.String,
|
|
@@ -13616,21 +13735,6 @@ export const CreateScriptVersionRequest =
|
|
|
13616
13735
|
type: "type",
|
|
13617
13736
|
}),
|
|
13618
13737
|
),
|
|
13619
|
-
Schema.Struct({
|
|
13620
|
-
name: Schema.String,
|
|
13621
|
-
type: Schema.Literal("workflow"),
|
|
13622
|
-
workflowName: Schema.String,
|
|
13623
|
-
className: Schema.optional(Schema.String),
|
|
13624
|
-
scriptName: Schema.optional(Schema.String),
|
|
13625
|
-
}).pipe(
|
|
13626
|
-
Schema.encodeKeys({
|
|
13627
|
-
name: "name",
|
|
13628
|
-
type: "type",
|
|
13629
|
-
workflowName: "workflow_name",
|
|
13630
|
-
className: "class_name",
|
|
13631
|
-
scriptName: "script_name",
|
|
13632
|
-
}),
|
|
13633
|
-
),
|
|
13634
13738
|
Schema.Struct({
|
|
13635
13739
|
name: Schema.String,
|
|
13636
13740
|
part: Schema.String,
|
|
@@ -13653,23 +13757,6 @@ export const CreateScriptVersionRequest =
|
|
|
13653
13757
|
name: Schema.String,
|
|
13654
13758
|
type: Schema.Literal("browser"),
|
|
13655
13759
|
}),
|
|
13656
|
-
Schema.Struct({
|
|
13657
|
-
name: Schema.String,
|
|
13658
|
-
type: Schema.Literal("durable_object_namespace"),
|
|
13659
|
-
className: Schema.optional(Schema.String),
|
|
13660
|
-
environment: Schema.optional(Schema.String),
|
|
13661
|
-
namespaceId: Schema.optional(Schema.String),
|
|
13662
|
-
scriptName: Schema.optional(Schema.String),
|
|
13663
|
-
}).pipe(
|
|
13664
|
-
Schema.encodeKeys({
|
|
13665
|
-
name: "name",
|
|
13666
|
-
type: "type",
|
|
13667
|
-
className: "class_name",
|
|
13668
|
-
environment: "environment",
|
|
13669
|
-
namespaceId: "namespace_id",
|
|
13670
|
-
scriptName: "script_name",
|
|
13671
|
-
}),
|
|
13672
|
-
),
|
|
13673
13760
|
Schema.Struct({
|
|
13674
13761
|
name: Schema.String,
|
|
13675
13762
|
type: Schema.Literal("inherit"),
|
|
@@ -14393,7 +14480,13 @@ export interface CreateServiceEdgePreviewRequest {
|
|
|
14393
14480
|
jurisdiction?: string;
|
|
14394
14481
|
raw?: boolean;
|
|
14395
14482
|
}
|
|
14396
|
-
| {
|
|
14483
|
+
| {
|
|
14484
|
+
type: "d1";
|
|
14485
|
+
name: string;
|
|
14486
|
+
id: string;
|
|
14487
|
+
internalEnv?: string;
|
|
14488
|
+
raw?: boolean;
|
|
14489
|
+
}
|
|
14397
14490
|
| {
|
|
14398
14491
|
type: "queue";
|
|
14399
14492
|
name: string;
|
|
@@ -14407,11 +14500,18 @@ export interface CreateServiceEdgePreviewRequest {
|
|
|
14407
14500
|
service: string;
|
|
14408
14501
|
environment?: string;
|
|
14409
14502
|
entrypoint?: string;
|
|
14503
|
+
crossAccountGrant?: string;
|
|
14410
14504
|
}
|
|
14411
14505
|
| { type: "ai"; name: string; staging?: boolean; raw?: boolean }
|
|
14412
14506
|
| { type: "browser"; name: string; raw?: boolean }
|
|
14413
14507
|
| { type: "images"; name: string; raw?: boolean }
|
|
14414
|
-
| {
|
|
14508
|
+
| {
|
|
14509
|
+
type: "vectorize";
|
|
14510
|
+
name: string;
|
|
14511
|
+
indexName: string;
|
|
14512
|
+
internalEnv?: string;
|
|
14513
|
+
raw?: boolean;
|
|
14514
|
+
}
|
|
14415
14515
|
| {
|
|
14416
14516
|
type: "workflow";
|
|
14417
14517
|
name: string;
|
|
@@ -14463,6 +14563,16 @@ export interface CreateServiceEdgePreviewRequest {
|
|
|
14463
14563
|
namespaceId: string;
|
|
14464
14564
|
simple: { limit: number; period: "10" | "60" };
|
|
14465
14565
|
}
|
|
14566
|
+
| { type: "artifacts"; name: string; namespace: string }
|
|
14567
|
+
| { type: "unsafe_hello_world"; name: string; enableTimer?: boolean }
|
|
14568
|
+
| { type: "flagship"; name: string; appId: string }
|
|
14569
|
+
| { type: "vpc_service"; name: string; serviceId: string }
|
|
14570
|
+
| {
|
|
14571
|
+
type: "vpc_network";
|
|
14572
|
+
name: string;
|
|
14573
|
+
tunnelId?: string;
|
|
14574
|
+
networkId?: string;
|
|
14575
|
+
}
|
|
14466
14576
|
| { type: "inherit"; name: string }
|
|
14467
14577
|
)[];
|
|
14468
14578
|
keepBindings?: string[];
|
|
@@ -14659,6 +14769,7 @@ export const CreateServiceEdgePreviewRequest =
|
|
|
14659
14769
|
type: Schema.Literal("d1"),
|
|
14660
14770
|
name: Schema.String,
|
|
14661
14771
|
id: Schema.String,
|
|
14772
|
+
internalEnv: Schema.optional(Schema.String),
|
|
14662
14773
|
raw: Schema.optional(Schema.Boolean),
|
|
14663
14774
|
}),
|
|
14664
14775
|
Schema.Struct({
|
|
@@ -14682,17 +14793,29 @@ export const CreateServiceEdgePreviewRequest =
|
|
|
14682
14793
|
service: Schema.String,
|
|
14683
14794
|
environment: Schema.optional(Schema.String),
|
|
14684
14795
|
entrypoint: Schema.optional(Schema.String),
|
|
14685
|
-
|
|
14796
|
+
crossAccountGrant: Schema.optional(Schema.String),
|
|
14797
|
+
}).pipe(
|
|
14798
|
+
Schema.encodeKeys({
|
|
14799
|
+
type: "type",
|
|
14800
|
+
name: "name",
|
|
14801
|
+
service: "service",
|
|
14802
|
+
environment: "environment",
|
|
14803
|
+
entrypoint: "entrypoint",
|
|
14804
|
+
crossAccountGrant: "cross_account_grant",
|
|
14805
|
+
}),
|
|
14806
|
+
),
|
|
14686
14807
|
Schema.Struct({
|
|
14687
14808
|
type: Schema.Literal("vectorize"),
|
|
14688
14809
|
name: Schema.String,
|
|
14689
14810
|
indexName: Schema.String,
|
|
14811
|
+
internalEnv: Schema.optional(Schema.String),
|
|
14690
14812
|
raw: Schema.optional(Schema.Boolean),
|
|
14691
14813
|
}).pipe(
|
|
14692
14814
|
Schema.encodeKeys({
|
|
14693
14815
|
type: "type",
|
|
14694
14816
|
name: "name",
|
|
14695
14817
|
indexName: "index_name",
|
|
14818
|
+
internalEnv: "internalEnv",
|
|
14696
14819
|
raw: "raw",
|
|
14697
14820
|
}),
|
|
14698
14821
|
),
|
|
@@ -14775,6 +14898,33 @@ export const CreateServiceEdgePreviewRequest =
|
|
|
14775
14898
|
instanceName: "instance_name",
|
|
14776
14899
|
}),
|
|
14777
14900
|
),
|
|
14901
|
+
Schema.Struct({
|
|
14902
|
+
type: Schema.Literal("artifacts"),
|
|
14903
|
+
name: Schema.String,
|
|
14904
|
+
namespace: Schema.String,
|
|
14905
|
+
}),
|
|
14906
|
+
Schema.Struct({
|
|
14907
|
+
type: Schema.Literal("flagship"),
|
|
14908
|
+
name: Schema.String,
|
|
14909
|
+
appId: Schema.String,
|
|
14910
|
+
}).pipe(
|
|
14911
|
+
Schema.encodeKeys({
|
|
14912
|
+
type: "type",
|
|
14913
|
+
name: "name",
|
|
14914
|
+
appId: "app_id",
|
|
14915
|
+
}),
|
|
14916
|
+
),
|
|
14917
|
+
Schema.Struct({
|
|
14918
|
+
type: Schema.Literal("vpc_service"),
|
|
14919
|
+
name: Schema.String,
|
|
14920
|
+
serviceId: Schema.String,
|
|
14921
|
+
}).pipe(
|
|
14922
|
+
Schema.encodeKeys({
|
|
14923
|
+
type: "type",
|
|
14924
|
+
name: "name",
|
|
14925
|
+
serviceId: "service_id",
|
|
14926
|
+
}),
|
|
14927
|
+
),
|
|
14778
14928
|
Schema.Struct({
|
|
14779
14929
|
type: Schema.Literal("ai"),
|
|
14780
14930
|
name: Schema.String,
|
|
@@ -14835,6 +14985,30 @@ export const CreateServiceEdgePreviewRequest =
|
|
|
14835
14985
|
type: Schema.Literal("worker_loader"),
|
|
14836
14986
|
name: Schema.String,
|
|
14837
14987
|
}),
|
|
14988
|
+
Schema.Struct({
|
|
14989
|
+
type: Schema.Literal("unsafe_hello_world"),
|
|
14990
|
+
name: Schema.String,
|
|
14991
|
+
enableTimer: Schema.optional(Schema.Boolean),
|
|
14992
|
+
}).pipe(
|
|
14993
|
+
Schema.encodeKeys({
|
|
14994
|
+
type: "type",
|
|
14995
|
+
name: "name",
|
|
14996
|
+
enableTimer: "enable_timer",
|
|
14997
|
+
}),
|
|
14998
|
+
),
|
|
14999
|
+
Schema.Struct({
|
|
15000
|
+
type: Schema.Literal("vpc_network"),
|
|
15001
|
+
name: Schema.String,
|
|
15002
|
+
tunnelId: Schema.optional(Schema.String),
|
|
15003
|
+
networkId: Schema.optional(Schema.String),
|
|
15004
|
+
}).pipe(
|
|
15005
|
+
Schema.encodeKeys({
|
|
15006
|
+
type: "type",
|
|
15007
|
+
name: "name",
|
|
15008
|
+
tunnelId: "tunnel_id",
|
|
15009
|
+
networkId: "network_id",
|
|
15010
|
+
}),
|
|
15011
|
+
),
|
|
14838
15012
|
Schema.Struct({
|
|
14839
15013
|
type: Schema.Literal("inherit"),
|
|
14840
15014
|
name: Schema.String,
|