@develit-io/backend-sdk 5.29.1 → 5.30.1
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/dist/deployment/index.cjs +48 -64
- package/dist/deployment/index.d.cts +50 -69
- package/dist/deployment/index.d.mts +50 -69
- package/dist/deployment/index.d.ts +50 -69
- package/dist/deployment/index.mjs +47 -61
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/node/index.cjs +3 -2
- package/dist/node/index.d.cts +1 -1
- package/dist/node/index.d.mts +1 -1
- package/dist/node/index.d.ts +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/shared/{backend-sdk.ClVQ4AzB.cjs → backend-sdk.BdcrYpFD.cjs} +0 -2
- package/dist/shared/{backend-sdk.OvCBQJUw.d.mts → backend-sdk.C-0xIdM4.d.mts} +13 -1
- package/dist/shared/{backend-sdk.D8N5si7y.d.cts → backend-sdk.CdngrAa0.d.cts} +13 -1
- package/dist/shared/backend-sdk.DXRpnctc.mjs +3 -0
- package/dist/shared/{backend-sdk.Cyo7INro.mjs → backend-sdk.Fdiq3Ek5.mjs} +12 -2
- package/dist/shared/{backend-sdk.n8SfX_xu.cjs → backend-sdk.Vru_rcK6.cjs} +12 -1
- package/dist/shared/{backend-sdk.DSK5flKM.d.ts → backend-sdk.qPzlx18G.d.ts} +13 -1
- package/package.json +6 -6
- package/dist/shared/backend-sdk.BIVnu5aA.mjs +0 -4
|
@@ -2,27 +2,24 @@ import * as alchemy_cloudflare from 'alchemy/cloudflare';
|
|
|
2
2
|
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
|
|
3
3
|
import { P as Project } from '../shared/backend-sdk.CP78x0gl.mjs';
|
|
4
4
|
import { E as Environment } from '../shared/backend-sdk.CYcpgphg.mjs';
|
|
5
|
-
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.
|
|
6
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
7
|
-
import alchemy from 'alchemy';
|
|
5
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.C-0xIdM4.mjs';
|
|
6
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.C-0xIdM4.mjs';
|
|
8
7
|
|
|
9
8
|
declare class Deployment {
|
|
10
9
|
project: Project;
|
|
11
10
|
environment: Environment;
|
|
12
|
-
alchemy: Promise<Awaited<ReturnType<typeof alchemy>>>;
|
|
13
11
|
constructor({ project }: {
|
|
14
12
|
project: Project;
|
|
15
13
|
});
|
|
16
14
|
/**
|
|
17
15
|
* Finalizes the deployment and correctly quits the Alchemy process.
|
|
18
16
|
*/
|
|
19
|
-
finalize(): Promise<void>;
|
|
20
17
|
/**
|
|
21
18
|
* Creates an instance of Cloudflare KV.
|
|
22
19
|
*/
|
|
23
20
|
kv(options: {
|
|
24
21
|
/**
|
|
25
|
-
* Name of the
|
|
22
|
+
* Name of the instance. Do not include a 'kv' prefix.
|
|
26
23
|
*/
|
|
27
24
|
resourceName: string;
|
|
28
25
|
}): Promise<KVNamespace>;
|
|
@@ -31,24 +28,24 @@ declare class Deployment {
|
|
|
31
28
|
*/
|
|
32
29
|
d1(options: {
|
|
33
30
|
/**
|
|
34
|
-
* Name of the
|
|
31
|
+
* Name of the instance. Do not include a 'd1' prefix.
|
|
35
32
|
*/
|
|
36
33
|
resourceName: string;
|
|
37
34
|
}): Promise<D1Database>;
|
|
38
35
|
/**
|
|
39
|
-
* Creates an instance of Cloudflare Queue.
|
|
36
|
+
* Creates an instance of Cloudflare Queue. A DLQ is created automatically.
|
|
40
37
|
*/
|
|
41
38
|
queue(options: {
|
|
42
39
|
/**
|
|
43
|
-
* Name of the
|
|
40
|
+
* Name of the instance. Do not include a 'queue' prefix.
|
|
44
41
|
*/
|
|
45
42
|
resourceName: string;
|
|
46
43
|
/**
|
|
47
|
-
* The number of seconds to delay delivery of messages to the
|
|
44
|
+
* The number of seconds to delay delivery of messages to the instance.
|
|
48
45
|
*/
|
|
49
46
|
deliveryDelay?: number;
|
|
50
47
|
/**
|
|
51
|
-
* The number of seconds a message will remain in the
|
|
48
|
+
* The number of seconds a message will remain in the instance before being deleted.
|
|
52
49
|
*/
|
|
53
50
|
messageRetentionPeriod?: number;
|
|
54
51
|
}): Promise<Queue<unknown>>;
|
|
@@ -57,15 +54,15 @@ declare class Deployment {
|
|
|
57
54
|
*/
|
|
58
55
|
dlq(options: {
|
|
59
56
|
/**
|
|
60
|
-
* Name of the
|
|
57
|
+
* Name of the instance. Do not include a 'dlq' or 'queue' prefix.
|
|
61
58
|
*/
|
|
62
59
|
resourceName: string;
|
|
63
60
|
/**
|
|
64
|
-
* The number of seconds to delay delivery of messages to the
|
|
61
|
+
* The number of seconds to delay delivery of messages to the instance.
|
|
65
62
|
*/
|
|
66
63
|
deliveryDelay?: number;
|
|
67
64
|
/**
|
|
68
|
-
* The number of seconds a message will remain in the
|
|
65
|
+
* The number of seconds a message will remain in the instance before being deleted.
|
|
69
66
|
*/
|
|
70
67
|
messageRetentionPeriod?: number;
|
|
71
68
|
}): Promise<Queue<unknown>>;
|
|
@@ -74,11 +71,11 @@ declare class Deployment {
|
|
|
74
71
|
*/
|
|
75
72
|
r2(options: {
|
|
76
73
|
/**
|
|
77
|
-
* Name of the
|
|
74
|
+
* Name of the instance. Do not include an 'r2' prefix.
|
|
78
75
|
*/
|
|
79
76
|
resourceName: string;
|
|
80
77
|
/**
|
|
81
|
-
* The storage class
|
|
78
|
+
* The storage class that the instance should take on.
|
|
82
79
|
*/
|
|
83
80
|
storageClass?: 'Standard' | 'InfrequentAccess';
|
|
84
81
|
}): Promise<R2Bucket>;
|
|
@@ -87,7 +84,7 @@ declare class Deployment {
|
|
|
87
84
|
*/
|
|
88
85
|
durableObject(options: {
|
|
89
86
|
/**
|
|
90
|
-
* Name of the
|
|
87
|
+
* Name of the instance class. Do not include a 'durable-object' or 'do' prefix.
|
|
91
88
|
*/
|
|
92
89
|
className: string;
|
|
93
90
|
}): Promise<DurableObjectNamespace<any>>;
|
|
@@ -96,43 +93,35 @@ declare class Deployment {
|
|
|
96
93
|
*/
|
|
97
94
|
worker(options: {
|
|
98
95
|
/**
|
|
99
|
-
* Name of the
|
|
96
|
+
* Name of the instance. Do not include the 'worker' prefix.
|
|
100
97
|
*/
|
|
101
98
|
resourceName: string;
|
|
102
99
|
/**
|
|
103
|
-
* Type of the
|
|
100
|
+
* Type of the instance.
|
|
104
101
|
*/
|
|
105
102
|
resource?: WorkerType$1;
|
|
106
103
|
/**
|
|
107
|
-
* Path to the root of the
|
|
104
|
+
* Path to the root of the instance.
|
|
108
105
|
*/
|
|
109
106
|
path: string;
|
|
110
107
|
/**
|
|
111
|
-
* Custom domains to bind to the
|
|
108
|
+
* Custom domains to bind to the instance.
|
|
112
109
|
*/
|
|
113
110
|
domains?: string[];
|
|
114
111
|
/**
|
|
115
|
-
* Static assets
|
|
112
|
+
* Static assets for the instance.
|
|
116
113
|
*/
|
|
117
114
|
assets?: Bindings;
|
|
118
115
|
/**
|
|
119
|
-
* Cron expressions for the
|
|
116
|
+
* Cron expressions for the triggers of the instange.
|
|
120
117
|
*/
|
|
121
118
|
crons?: string[];
|
|
122
119
|
/**
|
|
123
|
-
* Bindings of the
|
|
120
|
+
* Bindings of the instance.
|
|
124
121
|
*/
|
|
125
122
|
bindings?: Bindings;
|
|
126
123
|
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
variables?: Bindings;
|
|
130
|
-
/**
|
|
131
|
-
* Secrets of the Worker.
|
|
132
|
-
*/
|
|
133
|
-
secrets?: Bindings;
|
|
134
|
-
/**
|
|
135
|
-
* Event sources for the service to consume.
|
|
124
|
+
* Event sources for the instance to consume.
|
|
136
125
|
*/
|
|
137
126
|
eventSources?: Queue[];
|
|
138
127
|
}): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
|
|
@@ -141,23 +130,15 @@ declare class Deployment {
|
|
|
141
130
|
*/
|
|
142
131
|
service(options: {
|
|
143
132
|
/**
|
|
144
|
-
* Name of the
|
|
133
|
+
* Name of the instance. Do not include a 'service' prefix.
|
|
145
134
|
*/
|
|
146
135
|
resourceName: string;
|
|
147
136
|
/**
|
|
148
|
-
* Bindings of the
|
|
137
|
+
* Bindings of the instance.
|
|
149
138
|
*/
|
|
150
139
|
bindings?: Bindings;
|
|
151
140
|
/**
|
|
152
|
-
*
|
|
153
|
-
*/
|
|
154
|
-
variables?: Bindings;
|
|
155
|
-
/**
|
|
156
|
-
* Secrets of the Worker.
|
|
157
|
-
*/
|
|
158
|
-
secrets?: Bindings;
|
|
159
|
-
/**
|
|
160
|
-
* Event sources for the service to consume.
|
|
141
|
+
* Event sources for the instance to consume.
|
|
161
142
|
*/
|
|
162
143
|
eventSources?: Queue[];
|
|
163
144
|
}): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
|
|
@@ -166,27 +147,19 @@ declare class Deployment {
|
|
|
166
147
|
*/
|
|
167
148
|
orchestrator(options: {
|
|
168
149
|
/**
|
|
169
|
-
* Name of the
|
|
150
|
+
* Name of the instance. Do not include an 'orchestrator' prefix.
|
|
170
151
|
*/
|
|
171
152
|
resourceName: string;
|
|
172
153
|
/**
|
|
173
|
-
* Custom domains to bind to the
|
|
154
|
+
* Custom domains to bind to the instance.
|
|
174
155
|
*/
|
|
175
156
|
domains?: string[];
|
|
176
157
|
/**
|
|
177
|
-
* Bindings of the
|
|
158
|
+
* Bindings of the instance.
|
|
178
159
|
*/
|
|
179
160
|
bindings?: Bindings;
|
|
180
161
|
/**
|
|
181
|
-
*
|
|
182
|
-
*/
|
|
183
|
-
variables?: Bindings;
|
|
184
|
-
/**
|
|
185
|
-
* Secrets of the Worker.
|
|
186
|
-
*/
|
|
187
|
-
secrets?: Bindings;
|
|
188
|
-
/**
|
|
189
|
-
* Event sources for the orchestrator to consume.
|
|
162
|
+
* Event sources for the instance to consume.
|
|
190
163
|
*/
|
|
191
164
|
eventSources?: Queue[];
|
|
192
165
|
}): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
|
|
@@ -195,25 +168,21 @@ declare class Deployment {
|
|
|
195
168
|
*/
|
|
196
169
|
client(options: {
|
|
197
170
|
/**
|
|
198
|
-
* Name of the
|
|
171
|
+
* Name of the instance. Do not include a 'client' prefix.
|
|
199
172
|
*/
|
|
200
173
|
resourceName: string;
|
|
201
174
|
/**
|
|
202
|
-
* Custom domains to bind to the
|
|
175
|
+
* Custom domains to bind to the instance.
|
|
203
176
|
*/
|
|
204
177
|
domains?: string[];
|
|
205
178
|
/**
|
|
206
|
-
* Bindings of the
|
|
179
|
+
* Bindings of the instance.
|
|
207
180
|
*/
|
|
208
181
|
bindings?: Bindings;
|
|
209
182
|
/**
|
|
210
|
-
* Environment variables of the
|
|
183
|
+
* Environment variables of the instance.
|
|
211
184
|
*/
|
|
212
185
|
variables?: Bindings;
|
|
213
|
-
/**
|
|
214
|
-
* Secrets of the Worker.
|
|
215
|
-
*/
|
|
216
|
-
secrets?: Bindings;
|
|
217
186
|
}): Promise<Worker<{
|
|
218
187
|
[x: string]: alchemy_cloudflare.Binding;
|
|
219
188
|
} & {
|
|
@@ -228,24 +197,36 @@ declare const composeD1Arguments: ({ resourceName, }: {
|
|
|
228
197
|
primaryLocationHint: "weur";
|
|
229
198
|
};
|
|
230
199
|
|
|
200
|
+
declare const composeDlqArguments: ({ resourceName, deliveryDelay, messageRetentionPeriod, }: {
|
|
201
|
+
resourceName: string;
|
|
202
|
+
deliveryDelay?: number;
|
|
203
|
+
messageRetentionPeriod?: number;
|
|
204
|
+
}) => {
|
|
205
|
+
name: string;
|
|
206
|
+
settings: {
|
|
207
|
+
deliveryDelay: number;
|
|
208
|
+
messageRetentionPeriod: number;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
231
212
|
declare const composeKvArguments: ({ resourceName, }: {
|
|
232
213
|
resourceName: string;
|
|
233
214
|
}) => {
|
|
234
215
|
title: string;
|
|
235
216
|
};
|
|
236
217
|
|
|
237
|
-
declare const composeQueueArguments: ({ resourceName, deliveryDelay, messageRetentionPeriod,
|
|
218
|
+
declare const composeQueueArguments: ({ resourceName, dlq, deliveryDelay, messageRetentionPeriod, }: {
|
|
238
219
|
resourceName: string;
|
|
220
|
+
dlq: Queue;
|
|
239
221
|
deliveryDelay?: number;
|
|
240
222
|
messageRetentionPeriod?: number;
|
|
241
|
-
dlq: Queue;
|
|
242
223
|
}) => {
|
|
243
224
|
name: string;
|
|
225
|
+
dlq: Queue;
|
|
244
226
|
settings: {
|
|
245
227
|
deliveryDelay: number;
|
|
246
228
|
messageRetentionPeriod: number;
|
|
247
229
|
};
|
|
248
|
-
dlq: Queue;
|
|
249
230
|
};
|
|
250
231
|
|
|
251
232
|
declare const composeR2Arguments: ({ resourceName, storageClass, }: {
|
|
@@ -253,9 +234,9 @@ declare const composeR2Arguments: ({ resourceName, storageClass, }: {
|
|
|
253
234
|
storageClass?: "Standard" | "InfrequentAccess";
|
|
254
235
|
}) => {
|
|
255
236
|
name: string;
|
|
237
|
+
storageClass: "Standard" | "InfrequentAccess";
|
|
256
238
|
jurisdiction: "eu";
|
|
257
239
|
locationHint: string;
|
|
258
|
-
storageClass: "Standard" | "InfrequentAccess";
|
|
259
240
|
};
|
|
260
241
|
|
|
261
242
|
declare const composeIdentifierName: ({ resource, resourceName, }: {
|
|
@@ -268,4 +249,4 @@ declare const composeResourceName: ({ project, environment, resourceName, }: {
|
|
|
268
249
|
resourceName: string;
|
|
269
250
|
}) => string;
|
|
270
251
|
|
|
271
|
-
export { Deployment, composeD1Arguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName };
|
|
252
|
+
export { Deployment, composeD1Arguments, composeDlqArguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName };
|
|
@@ -2,27 +2,24 @@ import * as alchemy_cloudflare from 'alchemy/cloudflare';
|
|
|
2
2
|
import { KVNamespace, D1Database, Queue, R2Bucket, DurableObjectNamespace, Bindings, Worker } from 'alchemy/cloudflare';
|
|
3
3
|
import { P as Project } from '../shared/backend-sdk.CP78x0gl.js';
|
|
4
4
|
import { E as Environment } from '../shared/backend-sdk.CYcpgphg.js';
|
|
5
|
-
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.
|
|
6
|
-
export { c as composeWorkerArguments, e as extractWorkerCrons, l as loadWorkerConfig } from '../shared/backend-sdk.
|
|
7
|
-
import alchemy from 'alchemy';
|
|
5
|
+
import { W as WorkerType$1, R as Resource } from '../shared/backend-sdk.qPzlx18G.js';
|
|
6
|
+
export { c as composeWorkerArguments, e as extractWorkerCrons, a as extractWorkerVars, l as loadWorkerConfig } from '../shared/backend-sdk.qPzlx18G.js';
|
|
8
7
|
|
|
9
8
|
declare class Deployment {
|
|
10
9
|
project: Project;
|
|
11
10
|
environment: Environment;
|
|
12
|
-
alchemy: Promise<Awaited<ReturnType<typeof alchemy>>>;
|
|
13
11
|
constructor({ project }: {
|
|
14
12
|
project: Project;
|
|
15
13
|
});
|
|
16
14
|
/**
|
|
17
15
|
* Finalizes the deployment and correctly quits the Alchemy process.
|
|
18
16
|
*/
|
|
19
|
-
finalize(): Promise<void>;
|
|
20
17
|
/**
|
|
21
18
|
* Creates an instance of Cloudflare KV.
|
|
22
19
|
*/
|
|
23
20
|
kv(options: {
|
|
24
21
|
/**
|
|
25
|
-
* Name of the
|
|
22
|
+
* Name of the instance. Do not include a 'kv' prefix.
|
|
26
23
|
*/
|
|
27
24
|
resourceName: string;
|
|
28
25
|
}): Promise<KVNamespace>;
|
|
@@ -31,24 +28,24 @@ declare class Deployment {
|
|
|
31
28
|
*/
|
|
32
29
|
d1(options: {
|
|
33
30
|
/**
|
|
34
|
-
* Name of the
|
|
31
|
+
* Name of the instance. Do not include a 'd1' prefix.
|
|
35
32
|
*/
|
|
36
33
|
resourceName: string;
|
|
37
34
|
}): Promise<D1Database>;
|
|
38
35
|
/**
|
|
39
|
-
* Creates an instance of Cloudflare Queue.
|
|
36
|
+
* Creates an instance of Cloudflare Queue. A DLQ is created automatically.
|
|
40
37
|
*/
|
|
41
38
|
queue(options: {
|
|
42
39
|
/**
|
|
43
|
-
* Name of the
|
|
40
|
+
* Name of the instance. Do not include a 'queue' prefix.
|
|
44
41
|
*/
|
|
45
42
|
resourceName: string;
|
|
46
43
|
/**
|
|
47
|
-
* The number of seconds to delay delivery of messages to the
|
|
44
|
+
* The number of seconds to delay delivery of messages to the instance.
|
|
48
45
|
*/
|
|
49
46
|
deliveryDelay?: number;
|
|
50
47
|
/**
|
|
51
|
-
* The number of seconds a message will remain in the
|
|
48
|
+
* The number of seconds a message will remain in the instance before being deleted.
|
|
52
49
|
*/
|
|
53
50
|
messageRetentionPeriod?: number;
|
|
54
51
|
}): Promise<Queue<unknown>>;
|
|
@@ -57,15 +54,15 @@ declare class Deployment {
|
|
|
57
54
|
*/
|
|
58
55
|
dlq(options: {
|
|
59
56
|
/**
|
|
60
|
-
* Name of the
|
|
57
|
+
* Name of the instance. Do not include a 'dlq' or 'queue' prefix.
|
|
61
58
|
*/
|
|
62
59
|
resourceName: string;
|
|
63
60
|
/**
|
|
64
|
-
* The number of seconds to delay delivery of messages to the
|
|
61
|
+
* The number of seconds to delay delivery of messages to the instance.
|
|
65
62
|
*/
|
|
66
63
|
deliveryDelay?: number;
|
|
67
64
|
/**
|
|
68
|
-
* The number of seconds a message will remain in the
|
|
65
|
+
* The number of seconds a message will remain in the instance before being deleted.
|
|
69
66
|
*/
|
|
70
67
|
messageRetentionPeriod?: number;
|
|
71
68
|
}): Promise<Queue<unknown>>;
|
|
@@ -74,11 +71,11 @@ declare class Deployment {
|
|
|
74
71
|
*/
|
|
75
72
|
r2(options: {
|
|
76
73
|
/**
|
|
77
|
-
* Name of the
|
|
74
|
+
* Name of the instance. Do not include an 'r2' prefix.
|
|
78
75
|
*/
|
|
79
76
|
resourceName: string;
|
|
80
77
|
/**
|
|
81
|
-
* The storage class
|
|
78
|
+
* The storage class that the instance should take on.
|
|
82
79
|
*/
|
|
83
80
|
storageClass?: 'Standard' | 'InfrequentAccess';
|
|
84
81
|
}): Promise<R2Bucket>;
|
|
@@ -87,7 +84,7 @@ declare class Deployment {
|
|
|
87
84
|
*/
|
|
88
85
|
durableObject(options: {
|
|
89
86
|
/**
|
|
90
|
-
* Name of the
|
|
87
|
+
* Name of the instance class. Do not include a 'durable-object' or 'do' prefix.
|
|
91
88
|
*/
|
|
92
89
|
className: string;
|
|
93
90
|
}): Promise<DurableObjectNamespace<any>>;
|
|
@@ -96,43 +93,35 @@ declare class Deployment {
|
|
|
96
93
|
*/
|
|
97
94
|
worker(options: {
|
|
98
95
|
/**
|
|
99
|
-
* Name of the
|
|
96
|
+
* Name of the instance. Do not include the 'worker' prefix.
|
|
100
97
|
*/
|
|
101
98
|
resourceName: string;
|
|
102
99
|
/**
|
|
103
|
-
* Type of the
|
|
100
|
+
* Type of the instance.
|
|
104
101
|
*/
|
|
105
102
|
resource?: WorkerType$1;
|
|
106
103
|
/**
|
|
107
|
-
* Path to the root of the
|
|
104
|
+
* Path to the root of the instance.
|
|
108
105
|
*/
|
|
109
106
|
path: string;
|
|
110
107
|
/**
|
|
111
|
-
* Custom domains to bind to the
|
|
108
|
+
* Custom domains to bind to the instance.
|
|
112
109
|
*/
|
|
113
110
|
domains?: string[];
|
|
114
111
|
/**
|
|
115
|
-
* Static assets
|
|
112
|
+
* Static assets for the instance.
|
|
116
113
|
*/
|
|
117
114
|
assets?: Bindings;
|
|
118
115
|
/**
|
|
119
|
-
* Cron expressions for the
|
|
116
|
+
* Cron expressions for the triggers of the instange.
|
|
120
117
|
*/
|
|
121
118
|
crons?: string[];
|
|
122
119
|
/**
|
|
123
|
-
* Bindings of the
|
|
120
|
+
* Bindings of the instance.
|
|
124
121
|
*/
|
|
125
122
|
bindings?: Bindings;
|
|
126
123
|
/**
|
|
127
|
-
*
|
|
128
|
-
*/
|
|
129
|
-
variables?: Bindings;
|
|
130
|
-
/**
|
|
131
|
-
* Secrets of the Worker.
|
|
132
|
-
*/
|
|
133
|
-
secrets?: Bindings;
|
|
134
|
-
/**
|
|
135
|
-
* Event sources for the service to consume.
|
|
124
|
+
* Event sources for the instance to consume.
|
|
136
125
|
*/
|
|
137
126
|
eventSources?: Queue[];
|
|
138
127
|
}): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
|
|
@@ -141,23 +130,15 @@ declare class Deployment {
|
|
|
141
130
|
*/
|
|
142
131
|
service(options: {
|
|
143
132
|
/**
|
|
144
|
-
* Name of the
|
|
133
|
+
* Name of the instance. Do not include a 'service' prefix.
|
|
145
134
|
*/
|
|
146
135
|
resourceName: string;
|
|
147
136
|
/**
|
|
148
|
-
* Bindings of the
|
|
137
|
+
* Bindings of the instance.
|
|
149
138
|
*/
|
|
150
139
|
bindings?: Bindings;
|
|
151
140
|
/**
|
|
152
|
-
*
|
|
153
|
-
*/
|
|
154
|
-
variables?: Bindings;
|
|
155
|
-
/**
|
|
156
|
-
* Secrets of the Worker.
|
|
157
|
-
*/
|
|
158
|
-
secrets?: Bindings;
|
|
159
|
-
/**
|
|
160
|
-
* Event sources for the service to consume.
|
|
141
|
+
* Event sources for the instance to consume.
|
|
161
142
|
*/
|
|
162
143
|
eventSources?: Queue[];
|
|
163
144
|
}): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
|
|
@@ -166,27 +147,19 @@ declare class Deployment {
|
|
|
166
147
|
*/
|
|
167
148
|
orchestrator(options: {
|
|
168
149
|
/**
|
|
169
|
-
* Name of the
|
|
150
|
+
* Name of the instance. Do not include an 'orchestrator' prefix.
|
|
170
151
|
*/
|
|
171
152
|
resourceName: string;
|
|
172
153
|
/**
|
|
173
|
-
* Custom domains to bind to the
|
|
154
|
+
* Custom domains to bind to the instance.
|
|
174
155
|
*/
|
|
175
156
|
domains?: string[];
|
|
176
157
|
/**
|
|
177
|
-
* Bindings of the
|
|
158
|
+
* Bindings of the instance.
|
|
178
159
|
*/
|
|
179
160
|
bindings?: Bindings;
|
|
180
161
|
/**
|
|
181
|
-
*
|
|
182
|
-
*/
|
|
183
|
-
variables?: Bindings;
|
|
184
|
-
/**
|
|
185
|
-
* Secrets of the Worker.
|
|
186
|
-
*/
|
|
187
|
-
secrets?: Bindings;
|
|
188
|
-
/**
|
|
189
|
-
* Event sources for the orchestrator to consume.
|
|
162
|
+
* Event sources for the instance to consume.
|
|
190
163
|
*/
|
|
191
164
|
eventSources?: Queue[];
|
|
192
165
|
}): Promise<Worker<Bindings, Rpc.WorkerEntrypointBranded>>;
|
|
@@ -195,25 +168,21 @@ declare class Deployment {
|
|
|
195
168
|
*/
|
|
196
169
|
client(options: {
|
|
197
170
|
/**
|
|
198
|
-
* Name of the
|
|
171
|
+
* Name of the instance. Do not include a 'client' prefix.
|
|
199
172
|
*/
|
|
200
173
|
resourceName: string;
|
|
201
174
|
/**
|
|
202
|
-
* Custom domains to bind to the
|
|
175
|
+
* Custom domains to bind to the instance.
|
|
203
176
|
*/
|
|
204
177
|
domains?: string[];
|
|
205
178
|
/**
|
|
206
|
-
* Bindings of the
|
|
179
|
+
* Bindings of the instance.
|
|
207
180
|
*/
|
|
208
181
|
bindings?: Bindings;
|
|
209
182
|
/**
|
|
210
|
-
* Environment variables of the
|
|
183
|
+
* Environment variables of the instance.
|
|
211
184
|
*/
|
|
212
185
|
variables?: Bindings;
|
|
213
|
-
/**
|
|
214
|
-
* Secrets of the Worker.
|
|
215
|
-
*/
|
|
216
|
-
secrets?: Bindings;
|
|
217
186
|
}): Promise<Worker<{
|
|
218
187
|
[x: string]: alchemy_cloudflare.Binding;
|
|
219
188
|
} & {
|
|
@@ -228,24 +197,36 @@ declare const composeD1Arguments: ({ resourceName, }: {
|
|
|
228
197
|
primaryLocationHint: "weur";
|
|
229
198
|
};
|
|
230
199
|
|
|
200
|
+
declare const composeDlqArguments: ({ resourceName, deliveryDelay, messageRetentionPeriod, }: {
|
|
201
|
+
resourceName: string;
|
|
202
|
+
deliveryDelay?: number;
|
|
203
|
+
messageRetentionPeriod?: number;
|
|
204
|
+
}) => {
|
|
205
|
+
name: string;
|
|
206
|
+
settings: {
|
|
207
|
+
deliveryDelay: number;
|
|
208
|
+
messageRetentionPeriod: number;
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
|
|
231
212
|
declare const composeKvArguments: ({ resourceName, }: {
|
|
232
213
|
resourceName: string;
|
|
233
214
|
}) => {
|
|
234
215
|
title: string;
|
|
235
216
|
};
|
|
236
217
|
|
|
237
|
-
declare const composeQueueArguments: ({ resourceName, deliveryDelay, messageRetentionPeriod,
|
|
218
|
+
declare const composeQueueArguments: ({ resourceName, dlq, deliveryDelay, messageRetentionPeriod, }: {
|
|
238
219
|
resourceName: string;
|
|
220
|
+
dlq: Queue;
|
|
239
221
|
deliveryDelay?: number;
|
|
240
222
|
messageRetentionPeriod?: number;
|
|
241
|
-
dlq: Queue;
|
|
242
223
|
}) => {
|
|
243
224
|
name: string;
|
|
225
|
+
dlq: Queue;
|
|
244
226
|
settings: {
|
|
245
227
|
deliveryDelay: number;
|
|
246
228
|
messageRetentionPeriod: number;
|
|
247
229
|
};
|
|
248
|
-
dlq: Queue;
|
|
249
230
|
};
|
|
250
231
|
|
|
251
232
|
declare const composeR2Arguments: ({ resourceName, storageClass, }: {
|
|
@@ -253,9 +234,9 @@ declare const composeR2Arguments: ({ resourceName, storageClass, }: {
|
|
|
253
234
|
storageClass?: "Standard" | "InfrequentAccess";
|
|
254
235
|
}) => {
|
|
255
236
|
name: string;
|
|
237
|
+
storageClass: "Standard" | "InfrequentAccess";
|
|
256
238
|
jurisdiction: "eu";
|
|
257
239
|
locationHint: string;
|
|
258
|
-
storageClass: "Standard" | "InfrequentAccess";
|
|
259
240
|
};
|
|
260
241
|
|
|
261
242
|
declare const composeIdentifierName: ({ resource, resourceName, }: {
|
|
@@ -268,4 +249,4 @@ declare const composeResourceName: ({ project, environment, resourceName, }: {
|
|
|
268
249
|
resourceName: string;
|
|
269
250
|
}) => string;
|
|
270
251
|
|
|
271
|
-
export { Deployment, composeD1Arguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName };
|
|
252
|
+
export { Deployment, composeD1Arguments, composeDlqArguments, composeIdentifierName, composeKvArguments, composeQueueArguments, composeR2Arguments, composeResourceName };
|