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