@cloudflare/workers-utils 0.12.0 → 0.19.0
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/README.md +3 -1
- package/dist/browser.d.mts +1 -1
- package/dist/browser.mjs +3 -2
- package/dist/{chunk-4233U5MA.mjs → chunk-BLWXWFJK.mjs} +72 -36
- package/dist/{chunk-LDFBMPMW.mjs → chunk-DCOBXSFB.mjs} +1 -8
- package/dist/chunk-O4YGOZSW.mjs +52 -0
- package/dist/chunk-OZQVB3L3.mjs +8 -0
- package/dist/{chunk-NNMRVG4F.mjs → chunk-XXCQEG76.mjs} +32 -26
- package/dist/{config-BQZJPwXe.d.mts → config-CnJQHRQs.d.mts} +250 -12
- package/dist/index.d.mts +112 -40
- package/dist/index.mjs +5855 -393
- package/dist/metafile-esm.json +1 -1
- package/dist/prometheus-metrics.d.mts +50 -0
- package/dist/prometheus-metrics.mjs +2 -0
- package/dist/test-helpers/index.d.mts +1 -1
- package/dist/test-helpers/index.mjs +3 -2
- package/package.json +23 -18
|
@@ -136,6 +136,13 @@ interface CfMediaBinding {
|
|
|
136
136
|
binding: string;
|
|
137
137
|
remote?: boolean;
|
|
138
138
|
}
|
|
139
|
+
/**
|
|
140
|
+
* A binding to Cloudflare Stream
|
|
141
|
+
*/
|
|
142
|
+
interface CfStreamBinding {
|
|
143
|
+
binding: string;
|
|
144
|
+
remote?: boolean;
|
|
145
|
+
}
|
|
139
146
|
/**
|
|
140
147
|
* A binding to the Worker Version's metadata
|
|
141
148
|
*/
|
|
@@ -164,6 +171,9 @@ interface CfWorkflow {
|
|
|
164
171
|
script_name?: string;
|
|
165
172
|
remote?: boolean;
|
|
166
173
|
raw?: boolean;
|
|
174
|
+
limits?: {
|
|
175
|
+
steps?: number;
|
|
176
|
+
};
|
|
167
177
|
}
|
|
168
178
|
interface CfQueue {
|
|
169
179
|
binding: string;
|
|
@@ -196,15 +206,35 @@ interface CfVectorize {
|
|
|
196
206
|
raw?: boolean;
|
|
197
207
|
remote?: boolean;
|
|
198
208
|
}
|
|
209
|
+
interface CfAISearchNamespace {
|
|
210
|
+
binding: string;
|
|
211
|
+
namespace: string | typeof INHERIT_SYMBOL;
|
|
212
|
+
remote?: boolean;
|
|
213
|
+
}
|
|
214
|
+
interface CfAISearch {
|
|
215
|
+
binding: string;
|
|
216
|
+
instance_name: string;
|
|
217
|
+
remote?: boolean;
|
|
218
|
+
}
|
|
199
219
|
interface CfSecretsStoreSecrets {
|
|
200
220
|
binding: string;
|
|
201
221
|
store_id: string;
|
|
202
222
|
secret_name: string;
|
|
203
223
|
}
|
|
224
|
+
interface CfArtifacts {
|
|
225
|
+
binding: string;
|
|
226
|
+
namespace: string;
|
|
227
|
+
remote?: boolean;
|
|
228
|
+
}
|
|
204
229
|
interface CfHelloWorld {
|
|
205
230
|
binding: string;
|
|
206
231
|
enable_timer?: boolean;
|
|
207
232
|
}
|
|
233
|
+
interface CfFlagship {
|
|
234
|
+
binding: string;
|
|
235
|
+
app_id: string;
|
|
236
|
+
remote?: boolean;
|
|
237
|
+
}
|
|
208
238
|
interface CfWorkerLoader {
|
|
209
239
|
binding: string;
|
|
210
240
|
}
|
|
@@ -235,6 +265,12 @@ interface CfVpcService {
|
|
|
235
265
|
service_id: string;
|
|
236
266
|
remote?: boolean;
|
|
237
267
|
}
|
|
268
|
+
interface CfVpcNetwork {
|
|
269
|
+
binding: string;
|
|
270
|
+
tunnel_id?: string;
|
|
271
|
+
network_id?: string;
|
|
272
|
+
remote?: boolean;
|
|
273
|
+
}
|
|
238
274
|
interface CfAnalyticsEngineDataset {
|
|
239
275
|
binding: string;
|
|
240
276
|
dataset?: string;
|
|
@@ -460,6 +496,9 @@ type WorkerMetadataBinding = {
|
|
|
460
496
|
type: "images";
|
|
461
497
|
name: string;
|
|
462
498
|
raw?: boolean;
|
|
499
|
+
} | {
|
|
500
|
+
type: "stream";
|
|
501
|
+
name: string;
|
|
463
502
|
} | {
|
|
464
503
|
type: "version_metadata";
|
|
465
504
|
name: string;
|
|
@@ -467,6 +506,14 @@ type WorkerMetadataBinding = {
|
|
|
467
506
|
type: "data_blob";
|
|
468
507
|
name: string;
|
|
469
508
|
part: string;
|
|
509
|
+
} | {
|
|
510
|
+
type: "ai_search_namespace";
|
|
511
|
+
name: string;
|
|
512
|
+
namespace: string;
|
|
513
|
+
} | {
|
|
514
|
+
type: "ai_search";
|
|
515
|
+
name: string;
|
|
516
|
+
instance_name: string;
|
|
470
517
|
} | {
|
|
471
518
|
type: "kv_namespace";
|
|
472
519
|
name: string;
|
|
@@ -560,10 +607,18 @@ type WorkerMetadataBinding = {
|
|
|
560
607
|
name: string;
|
|
561
608
|
store_id: string;
|
|
562
609
|
secret_name: string;
|
|
610
|
+
} | {
|
|
611
|
+
type: "artifacts";
|
|
612
|
+
name: string;
|
|
613
|
+
namespace: string;
|
|
563
614
|
} | {
|
|
564
615
|
type: "unsafe_hello_world";
|
|
565
616
|
name: string;
|
|
566
617
|
enable_timer?: boolean;
|
|
618
|
+
} | {
|
|
619
|
+
type: "flagship";
|
|
620
|
+
name: string;
|
|
621
|
+
app_id: string;
|
|
567
622
|
} | {
|
|
568
623
|
type: "ratelimit";
|
|
569
624
|
name: string;
|
|
@@ -576,6 +631,11 @@ type WorkerMetadataBinding = {
|
|
|
576
631
|
type: "vpc_service";
|
|
577
632
|
name: string;
|
|
578
633
|
service_id: string;
|
|
634
|
+
} | {
|
|
635
|
+
type: "vpc_network";
|
|
636
|
+
name: string;
|
|
637
|
+
tunnel_id?: string;
|
|
638
|
+
network_id?: string;
|
|
579
639
|
} | {
|
|
580
640
|
type: "worker_loader";
|
|
581
641
|
name: string;
|
|
@@ -689,7 +749,7 @@ type Trigger = {
|
|
|
689
749
|
cron: string;
|
|
690
750
|
} | ({
|
|
691
751
|
type: "queue-consumer";
|
|
692
|
-
} & QueueConsumer);
|
|
752
|
+
} & Omit<QueueConsumer, "type">);
|
|
693
753
|
type BindingOmit<T> = Omit<T, "binding">;
|
|
694
754
|
type NameOmit<T> = Omit<T, "name">;
|
|
695
755
|
type Binding = {
|
|
@@ -723,7 +783,9 @@ type Binding = {
|
|
|
723
783
|
type: "ai";
|
|
724
784
|
} & BindingOmit<CfAIBinding>) | ({
|
|
725
785
|
type: "images";
|
|
726
|
-
} & BindingOmit<CfImagesBinding>) | {
|
|
786
|
+
} & BindingOmit<CfImagesBinding>) | ({
|
|
787
|
+
type: "stream";
|
|
788
|
+
} & BindingOmit<CfStreamBinding>) | {
|
|
727
789
|
type: "version_metadata";
|
|
728
790
|
} | {
|
|
729
791
|
type: "data_blob";
|
|
@@ -741,6 +803,10 @@ type Binding = {
|
|
|
741
803
|
} & BindingOmit<CfD1Database>) | ({
|
|
742
804
|
type: "vectorize";
|
|
743
805
|
} & BindingOmit<CfVectorize>) | ({
|
|
806
|
+
type: "ai_search_namespace";
|
|
807
|
+
} & BindingOmit<CfAISearchNamespace>) | ({
|
|
808
|
+
type: "ai_search";
|
|
809
|
+
} & BindingOmit<CfAISearch>) | ({
|
|
744
810
|
type: "hyperdrive";
|
|
745
811
|
} & BindingOmit<CfHyperdrive>) | ({
|
|
746
812
|
type: "service";
|
|
@@ -758,16 +824,22 @@ type Binding = {
|
|
|
758
824
|
} & BindingOmit<CfPipeline>) | ({
|
|
759
825
|
type: "secrets_store_secret";
|
|
760
826
|
} & BindingOmit<CfSecretsStoreSecrets>) | ({
|
|
827
|
+
type: "artifacts";
|
|
828
|
+
} & BindingOmit<CfArtifacts>) | ({
|
|
761
829
|
type: "logfwdr";
|
|
762
830
|
} & NameOmit<CfLogfwdrBinding>) | ({
|
|
763
831
|
type: "unsafe_hello_world";
|
|
764
832
|
} & BindingOmit<CfHelloWorld>) | ({
|
|
833
|
+
type: "flagship";
|
|
834
|
+
} & BindingOmit<CfFlagship>) | ({
|
|
765
835
|
type: "ratelimit";
|
|
766
836
|
} & NameOmit<CfRateLimit>) | ({
|
|
767
837
|
type: "worker_loader";
|
|
768
838
|
} & BindingOmit<CfWorkerLoader>) | ({
|
|
769
839
|
type: "vpc_service";
|
|
770
840
|
} & BindingOmit<CfVpcService>) | ({
|
|
841
|
+
type: "vpc_network";
|
|
842
|
+
} & BindingOmit<CfVpcNetwork>) | ({
|
|
771
843
|
type: "media";
|
|
772
844
|
} & BindingOmit<CfMediaBinding>) | ({
|
|
773
845
|
type: `unsafe_${string}`;
|
|
@@ -799,6 +871,8 @@ type ZoneNameRoute = {
|
|
|
799
871
|
type CustomDomainRoute = {
|
|
800
872
|
pattern: string;
|
|
801
873
|
custom_domain: boolean;
|
|
874
|
+
enabled?: boolean;
|
|
875
|
+
previews_enabled?: boolean;
|
|
802
876
|
};
|
|
803
877
|
type Route = SimpleRoute | ZoneIdRoute | ZoneNameRoute | CustomDomainRoute;
|
|
804
878
|
/**
|
|
@@ -911,7 +985,7 @@ type ContainerApp = {
|
|
|
911
985
|
/** @defaults to 2 GB */
|
|
912
986
|
disk_mb?: number;
|
|
913
987
|
};
|
|
914
|
-
|
|
988
|
+
ssh?: {
|
|
915
989
|
/**
|
|
916
990
|
* If enabled, those with write access to a container will be able to SSH into it through Wrangler.
|
|
917
991
|
* @default false
|
|
@@ -923,6 +997,14 @@ type ContainerApp = {
|
|
|
923
997
|
*/
|
|
924
998
|
port?: number;
|
|
925
999
|
};
|
|
1000
|
+
/**
|
|
1001
|
+
* @deprecated Use `ssh` instead.
|
|
1002
|
+
* @hidden
|
|
1003
|
+
*/
|
|
1004
|
+
wrangler_ssh?: {
|
|
1005
|
+
enabled: boolean;
|
|
1006
|
+
port?: number;
|
|
1007
|
+
};
|
|
926
1008
|
/**
|
|
927
1009
|
* SSH public keys to put in the container's authorized_keys file.
|
|
928
1010
|
*/
|
|
@@ -961,16 +1043,29 @@ type ContainerApp = {
|
|
|
961
1043
|
memory_mib?: number;
|
|
962
1044
|
};
|
|
963
1045
|
/**
|
|
964
|
-
* Scheduling constraints
|
|
965
|
-
* @hidden
|
|
1046
|
+
* Scheduling constraints for container placement.
|
|
966
1047
|
*/
|
|
967
1048
|
constraints?: {
|
|
968
|
-
|
|
1049
|
+
/**
|
|
1050
|
+
* Limit container placement to specific geographic regions.
|
|
1051
|
+
*/
|
|
1052
|
+
regions?: ("ENAM" | "WNAM" | "EEUR" | "WEUR" | "APAC" | "SAM" | "ME" | "OC" | "AFR")[];
|
|
1053
|
+
/**
|
|
1054
|
+
* Restrict containers to compliance boundaries.
|
|
1055
|
+
*/
|
|
1056
|
+
jurisdiction?: "eu" | "fedramp";
|
|
1057
|
+
/**
|
|
1058
|
+
* @hidden
|
|
1059
|
+
*/
|
|
969
1060
|
cities?: string[];
|
|
970
1061
|
/**
|
|
971
1062
|
* @deprecated Use `tiers` instead
|
|
1063
|
+
* @hidden
|
|
972
1064
|
*/
|
|
973
1065
|
tier?: number;
|
|
1066
|
+
/**
|
|
1067
|
+
* @hidden
|
|
1068
|
+
*/
|
|
974
1069
|
tiers?: number[];
|
|
975
1070
|
};
|
|
976
1071
|
/**
|
|
@@ -1364,6 +1459,18 @@ interface EnvironmentInheritable {
|
|
|
1364
1459
|
*/
|
|
1365
1460
|
exclude: string[];
|
|
1366
1461
|
};
|
|
1462
|
+
/**
|
|
1463
|
+
* Configuration for Worker Previews.
|
|
1464
|
+
*
|
|
1465
|
+
* Previews are branches of your Worker's main instance used to test features
|
|
1466
|
+
* in development outside of production. This block defines the settings
|
|
1467
|
+
* used when creating Preview deployments via `wrangler preview`.
|
|
1468
|
+
*
|
|
1469
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#previews
|
|
1470
|
+
*
|
|
1471
|
+
* @inheritable
|
|
1472
|
+
*/
|
|
1473
|
+
previews: PreviewsConfig | undefined;
|
|
1367
1474
|
}
|
|
1368
1475
|
type DurableObjectBindings = {
|
|
1369
1476
|
/** The name of the binding used to refer to the Durable Object */
|
|
@@ -1386,6 +1493,11 @@ type WorkflowBinding = {
|
|
|
1386
1493
|
script_name?: string;
|
|
1387
1494
|
/** Whether the Workflow should be remote or not in local development */
|
|
1388
1495
|
remote?: boolean;
|
|
1496
|
+
/** Optional limits for the Workflow */
|
|
1497
|
+
limits?: {
|
|
1498
|
+
/** Maximum number of steps a Workflow instance can execute */
|
|
1499
|
+
steps?: number;
|
|
1500
|
+
};
|
|
1389
1501
|
};
|
|
1390
1502
|
/**
|
|
1391
1503
|
* The `EnvironmentNonInheritable` interface declares all the configuration fields for an environment
|
|
@@ -1423,15 +1535,15 @@ interface EnvironmentNonInheritable {
|
|
|
1423
1535
|
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1424
1536
|
* and so must be specified in every named environment.
|
|
1425
1537
|
*
|
|
1426
|
-
*
|
|
1538
|
+
* For reference, see https://developers.cloudflare.com/workers/wrangler/configuration/#secrets-configuration-property
|
|
1539
|
+
*
|
|
1427
1540
|
* @nonInheritable
|
|
1428
1541
|
*/
|
|
1429
1542
|
secrets?: {
|
|
1430
1543
|
/**
|
|
1431
1544
|
* List of secret names that are required by your Worker.
|
|
1432
1545
|
* When defined, this property:
|
|
1433
|
-
* - Replaces .dev.vars/.env inference for type generation
|
|
1434
|
-
* - Enables deploy-time validation to ensure secrets are configured
|
|
1546
|
+
* - Replaces .dev.vars/.env/process.env inference for type generation
|
|
1435
1547
|
* - Enables local dev validation with warnings for missing secrets
|
|
1436
1548
|
*/
|
|
1437
1549
|
required?: string[];
|
|
@@ -1558,8 +1670,8 @@ interface EnvironmentNonInheritable {
|
|
|
1558
1670
|
consumers?: {
|
|
1559
1671
|
/** The name of the queue from which this consumer should consume. */
|
|
1560
1672
|
queue: string;
|
|
1561
|
-
/** The consumer type
|
|
1562
|
-
type?:
|
|
1673
|
+
/** The consumer type. Only "worker" is supported in wrangler config. Default is "worker". */
|
|
1674
|
+
type?: "worker";
|
|
1563
1675
|
/** The maximum number of messages per batch */
|
|
1564
1676
|
max_batch_size?: number;
|
|
1565
1677
|
/** The maximum number of seconds to wait to fill a batch with messages. */
|
|
@@ -1647,6 +1759,42 @@ interface EnvironmentNonInheritable {
|
|
|
1647
1759
|
/** Whether the Vectorize index should be remote or not in local development */
|
|
1648
1760
|
remote?: boolean;
|
|
1649
1761
|
}[];
|
|
1762
|
+
/**
|
|
1763
|
+
* Specifies AI Search namespace bindings that are bound to this Worker environment.
|
|
1764
|
+
* Each binding is scoped to a namespace and allows dynamic instance CRUD within it.
|
|
1765
|
+
*
|
|
1766
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1767
|
+
* and so must be specified in every named environment.
|
|
1768
|
+
*
|
|
1769
|
+
* @default []
|
|
1770
|
+
* @nonInheritable
|
|
1771
|
+
*/
|
|
1772
|
+
ai_search_namespaces: {
|
|
1773
|
+
/** The binding name used to refer to the AI Search namespace in the Worker. */
|
|
1774
|
+
binding: string;
|
|
1775
|
+
/** The user-chosen namespace name. Must exist in Cloudflare at deploy time. */
|
|
1776
|
+
namespace: string;
|
|
1777
|
+
/** Whether the AI Search namespace binding should be remote in local development */
|
|
1778
|
+
remote?: boolean;
|
|
1779
|
+
}[];
|
|
1780
|
+
/**
|
|
1781
|
+
* Specifies AI Search instance bindings that are bound to this Worker environment.
|
|
1782
|
+
* Each binding is bound directly to a single pre-existing instance within the "default" namespace.
|
|
1783
|
+
*
|
|
1784
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1785
|
+
* and so must be specified in every named environment.
|
|
1786
|
+
*
|
|
1787
|
+
* @default []
|
|
1788
|
+
* @nonInheritable
|
|
1789
|
+
*/
|
|
1790
|
+
ai_search: {
|
|
1791
|
+
/** The binding name used to refer to the AI Search instance in the Worker. */
|
|
1792
|
+
binding: string;
|
|
1793
|
+
/** The user-chosen instance name. Must exist in Cloudflare at deploy time. */
|
|
1794
|
+
instance_name: string;
|
|
1795
|
+
/** Whether the AI Search instance binding should be remote in local development */
|
|
1796
|
+
remote?: boolean;
|
|
1797
|
+
}[];
|
|
1650
1798
|
/**
|
|
1651
1799
|
* Specifies Hyperdrive configs that are bound to this Worker environment.
|
|
1652
1800
|
*
|
|
@@ -1780,6 +1928,20 @@ interface EnvironmentNonInheritable {
|
|
|
1780
1928
|
/** Whether the Media binding should be remote or not */
|
|
1781
1929
|
remote?: boolean;
|
|
1782
1930
|
} | undefined;
|
|
1931
|
+
/**
|
|
1932
|
+
* Binding to Cloudflare Stream
|
|
1933
|
+
*
|
|
1934
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
1935
|
+
* and so must be specified in every named environment.
|
|
1936
|
+
*
|
|
1937
|
+
* @default {}
|
|
1938
|
+
* @nonInheritable
|
|
1939
|
+
*/
|
|
1940
|
+
stream: {
|
|
1941
|
+
binding: string;
|
|
1942
|
+
/** Whether the Stream binding should be remote or not in local development */
|
|
1943
|
+
remote?: boolean;
|
|
1944
|
+
} | undefined;
|
|
1783
1945
|
/**
|
|
1784
1946
|
* Binding to the Worker Version's metadata
|
|
1785
1947
|
*/
|
|
@@ -1916,6 +2078,24 @@ interface EnvironmentNonInheritable {
|
|
|
1916
2078
|
/** Name of the secret */
|
|
1917
2079
|
secret_name: string;
|
|
1918
2080
|
}[];
|
|
2081
|
+
/**
|
|
2082
|
+
* Specifies Artifacts bindings that are bound to this Worker environment.
|
|
2083
|
+
* Artifacts provides git-compatible file storage on Cloudflare Workers.
|
|
2084
|
+
*
|
|
2085
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
2086
|
+
* and so must be specified in every named environment.
|
|
2087
|
+
*
|
|
2088
|
+
* @default []
|
|
2089
|
+
* @nonInheritable
|
|
2090
|
+
*/
|
|
2091
|
+
artifacts: {
|
|
2092
|
+
/** The binding name used to refer to the Artifacts instance. */
|
|
2093
|
+
binding: string;
|
|
2094
|
+
/** The namespace to use. */
|
|
2095
|
+
namespace: string;
|
|
2096
|
+
/** Whether to use the remote Artifacts service in local dev. */
|
|
2097
|
+
remote?: boolean;
|
|
2098
|
+
}[];
|
|
1919
2099
|
/**
|
|
1920
2100
|
* **DO NOT USE**. Hello World Binding Config to serve as an explanatory example.
|
|
1921
2101
|
*
|
|
@@ -1931,6 +2111,23 @@ interface EnvironmentNonInheritable {
|
|
|
1931
2111
|
/** Whether the timer is enabled */
|
|
1932
2112
|
enable_timer?: boolean;
|
|
1933
2113
|
}[];
|
|
2114
|
+
/**
|
|
2115
|
+
* Specifies Flagship feature flag bindings that are bound to this Worker environment.
|
|
2116
|
+
*
|
|
2117
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
2118
|
+
* and so must be specified in every named environment.
|
|
2119
|
+
*
|
|
2120
|
+
* @default []
|
|
2121
|
+
* @nonInheritable
|
|
2122
|
+
*/
|
|
2123
|
+
flagship: {
|
|
2124
|
+
/** The binding name used to refer to the bound Flagship service. */
|
|
2125
|
+
binding: string;
|
|
2126
|
+
/** The Flagship app ID to bind to. */
|
|
2127
|
+
app_id: string;
|
|
2128
|
+
/** Set to `true` to suppress the remote binding warning in local dev. Flagship bindings are always remote. */
|
|
2129
|
+
remote?: boolean;
|
|
2130
|
+
}[];
|
|
1934
2131
|
/**
|
|
1935
2132
|
* Specifies rate limit bindings that are bound to this Worker environment.
|
|
1936
2133
|
*
|
|
@@ -1983,6 +2180,30 @@ interface EnvironmentNonInheritable {
|
|
|
1983
2180
|
/** Whether the VPC service is remote or not */
|
|
1984
2181
|
remote?: boolean;
|
|
1985
2182
|
}[];
|
|
2183
|
+
/**
|
|
2184
|
+
* Specifies VPC networks that are bound to this Worker environment.
|
|
2185
|
+
*
|
|
2186
|
+
* NOTE: This field is not automatically inherited from the top level environment,
|
|
2187
|
+
* and so must be specified in every named environment.
|
|
2188
|
+
*
|
|
2189
|
+
* @default []
|
|
2190
|
+
* @nonInheritable
|
|
2191
|
+
*/
|
|
2192
|
+
vpc_networks: ({
|
|
2193
|
+
/** The binding name used to refer to the VPC network in the Worker. */
|
|
2194
|
+
binding: string;
|
|
2195
|
+
/** The tunnel ID of the Cloudflare Tunnel to route traffic through. Mutually exclusive with network_id. */
|
|
2196
|
+
tunnel_id: string;
|
|
2197
|
+
/** Whether the VPC network is remote or not */
|
|
2198
|
+
remote?: boolean;
|
|
2199
|
+
} | {
|
|
2200
|
+
/** The binding name used to refer to the VPC network in the Worker. */
|
|
2201
|
+
binding: string;
|
|
2202
|
+
/** The network ID to route traffic through. Mutually exclusive with tunnel_id. */
|
|
2203
|
+
network_id: string;
|
|
2204
|
+
/** Whether the VPC network is remote or not */
|
|
2205
|
+
remote?: boolean;
|
|
2206
|
+
})[];
|
|
1986
2207
|
}
|
|
1987
2208
|
/**
|
|
1988
2209
|
* The raw environment configuration that we read from the config file.
|
|
@@ -2092,10 +2313,27 @@ interface CacheOptions {
|
|
|
2092
2313
|
type DockerConfiguration = {
|
|
2093
2314
|
/** Socket used by miniflare to communicate with Docker */
|
|
2094
2315
|
socketPath: string;
|
|
2316
|
+
/** Docker image name for the container egress interceptor sidecar */
|
|
2317
|
+
containerEgressInterceptorImage?: string;
|
|
2095
2318
|
};
|
|
2096
2319
|
type ContainerEngine = {
|
|
2097
2320
|
localDocker: DockerConfiguration;
|
|
2098
2321
|
} | string;
|
|
2322
|
+
/**
|
|
2323
|
+
* Configuration for Worker Previews.
|
|
2324
|
+
*
|
|
2325
|
+
* This defines the settings used when creating Preview deployments.
|
|
2326
|
+
* Previews are branches of your Worker's main instance used to test features
|
|
2327
|
+
* during feature development outside of production.
|
|
2328
|
+
*
|
|
2329
|
+
* The `previews` block contains any intentionally divergent configuration intended solely for Previews, including:
|
|
2330
|
+
* - All non-inheritable properties (environment variables and bindings like KV, D1, R2, etc.)
|
|
2331
|
+
* - Select inheritable properties: `logpush`, `observability`, `limits`
|
|
2332
|
+
*
|
|
2333
|
+
* @inheritable
|
|
2334
|
+
*/
|
|
2335
|
+
interface PreviewsConfig extends Partial<EnvironmentNonInheritable>, Partial<Pick<EnvironmentInheritable, "logpush" | "observability" | "limits">> {
|
|
2336
|
+
}
|
|
2099
2337
|
|
|
2100
2338
|
/**
|
|
2101
2339
|
* This is the static type definition for the configuration object.
|
|
@@ -2343,4 +2581,4 @@ interface EnvironmentMap {
|
|
|
2343
2581
|
}
|
|
2344
2582
|
declare const defaultWranglerConfig: Config;
|
|
2345
2583
|
|
|
2346
|
-
export { type
|
|
2584
|
+
export { type CfAISearchNamespace as $, type Assets as A, type Binding as B, type Config as C, type DurableObjectMigration as D, type Environment as E, type CfTextBlobBindings as F, type CfBrowserBinding as G, type CfAIBinding as H, type CfImagesBinding as I, type CfMediaBinding as J, type CfStreamBinding as K, type CfVersionMetadataBinding as L, type CfDataBlobBindings as M, type CfDurableObject as N, type Observability as O, type PreviewsConfig as P, type CfWorkflow as Q, type RawConfig as R, type StreamingTailConsumer as S, type TailConsumer as T, type UserLimits as U, type CfQueue as V, type WorkerMetadataBinding as W, type CfR2Bucket as X, type CfD1Database as Y, type ZoneIdRoute as Z, type CfVectorize as _, type RedirectedRawConfig as a, type CfAISearch as a0, type CfSecretsStoreSecrets as a1, type CfArtifacts as a2, type CfHelloWorld as a3, type CfFlagship as a4, type CfWorkerLoader as a5, type CfRateLimit as a6, type CfHyperdrive as a7, type CfService as a8, type CfVpcService as a9, INHERIT_SYMBOL as aA, SERVICE_TAG_PREFIX as aB, ENVIRONMENT_TAG_PREFIX as aC, PATH_TO_DEPLOY_CONFIG as aD, JSON_CONFIG_FORMATS as aE, type CfVpcNetwork as aa, type CfAnalyticsEngineDataset as ab, type CfDispatchNamespace as ac, type CfMTlsCertificate as ad, type CfLogfwdr as ae, type CfLogfwdrBinding as af, type CfAssetsBinding as ag, type CfPipeline as ah, type CfUnsafeBinding as ai, type CfCapnp as aj, type CfUnsafe as ak, type CfDurableObjectMigrations as al, type CfPlacement as am, type CfTailConsumer as an, type CfUserLimits as ao, type CfWorkerInit as ap, type CfWorkerContext as aq, type CfWorkerSourceMap as ar, type Json as as, type AssetConfigMetadata as at, type WorkerMetadata as au, type ServiceMetadataRes as av, type ServiceFetch as aw, type File as ax, type BinaryFile as ay, type Trigger as az, type RawDevConfig as b, type ConfigFields as c, type RawEnvironment as d, defaultWranglerConfig as e, type ZoneNameRoute as f, type CustomDomainRoute as g, type Route as h, type CloudchamberConfig as i, type ContainerApp as j, type DurableObjectBindings as k, type WorkflowBinding as l, type EnvironmentNonInheritable as m, type Rule as n, type ConfigModuleRuleType as o, type DispatchNamespaceOutbound as p, type CacheOptions as q, type DockerConfiguration as r, type ContainerEngine as s, type CfScriptFormat as t, type CfModuleType as u, type CfModule as v, type CfVars as w, type CfKvNamespace as x, type CfSendEmailBindings as y, type CfWasmModuleBindings as z };
|