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