@trigger.dev/core 3.3.12 → 3.3.14
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/commonjs/logger.js +34 -0
- package/dist/commonjs/logger.js.map +1 -1
- package/dist/commonjs/v3/apiClient/core.d.ts +26 -2
- package/dist/commonjs/v3/apiClient/core.js +51 -1
- package/dist/commonjs/v3/apiClient/core.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +2 -2
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/runStream.js +2 -2
- package/dist/commonjs/v3/schemas/api.d.ts +172 -141
- package/dist/commonjs/v3/schemas/api.js +21 -21
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/build.d.ts +80 -18
- package/dist/commonjs/v3/schemas/fetch.d.ts +115 -0
- package/dist/commonjs/v3/schemas/messages.d.ts +184 -41
- package/dist/commonjs/v3/schemas/resources.d.ts +56 -12
- package/dist/commonjs/v3/schemas/schemas.d.ts +108 -16
- package/dist/commonjs/v3/schemas/schemas.js +11 -2
- package/dist/commonjs/v3/schemas/schemas.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +2 -5
- package/dist/commonjs/v3/zodMessageHandler.d.ts +2 -0
- package/dist/commonjs/v3/zodMessageHandler.js +8 -0
- package/dist/commonjs/v3/zodMessageHandler.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/logger.js +34 -0
- package/dist/esm/logger.js.map +1 -1
- package/dist/esm/v3/apiClient/core.d.ts +26 -2
- package/dist/esm/v3/apiClient/core.js +48 -0
- package/dist/esm/v3/apiClient/core.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +2 -2
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/runStream.js +2 -2
- package/dist/esm/v3/schemas/api.d.ts +172 -141
- package/dist/esm/v3/schemas/api.js +21 -21
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/build.d.ts +80 -18
- package/dist/esm/v3/schemas/fetch.d.ts +115 -0
- package/dist/esm/v3/schemas/messages.d.ts +184 -41
- package/dist/esm/v3/schemas/resources.d.ts +56 -12
- package/dist/esm/v3/schemas/schemas.d.ts +108 -16
- package/dist/esm/v3/schemas/schemas.js +12 -3
- package/dist/esm/v3/schemas/schemas.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +2 -5
- package/dist/esm/v3/zodMessageHandler.d.ts +2 -0
- package/dist/esm/v3/zodMessageHandler.js +8 -0
- package/dist/esm/v3/zodMessageHandler.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +2 -1
|
@@ -36,6 +36,13 @@ export declare const FetchRetryBackoffStrategy: z.ZodObject<z.objectUtil.extendS
|
|
|
36
36
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
37
37
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
38
38
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
39
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
45
|
+
}>>;
|
|
39
46
|
}, {
|
|
40
47
|
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
41
48
|
strategy: z.ZodLiteral<"backoff">;
|
|
@@ -49,6 +56,9 @@ export declare const FetchRetryBackoffStrategy: z.ZodObject<z.objectUtil.extendS
|
|
|
49
56
|
randomize?: boolean | undefined;
|
|
50
57
|
bodyFilter?: EventFilter | undefined;
|
|
51
58
|
maxAttempts?: number | undefined;
|
|
59
|
+
outOfMemory?: {
|
|
60
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
61
|
+
} | undefined;
|
|
52
62
|
}, {
|
|
53
63
|
strategy: "backoff";
|
|
54
64
|
factor?: number | undefined;
|
|
@@ -57,6 +67,9 @@ export declare const FetchRetryBackoffStrategy: z.ZodObject<z.objectUtil.extendS
|
|
|
57
67
|
randomize?: boolean | undefined;
|
|
58
68
|
bodyFilter?: EventFilter | undefined;
|
|
59
69
|
maxAttempts?: number | undefined;
|
|
70
|
+
outOfMemory?: {
|
|
71
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
72
|
+
} | undefined;
|
|
60
73
|
}>;
|
|
61
74
|
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
62
75
|
export type FetchRetryBackoffStrategy = z.infer<typeof FetchRetryBackoffStrategy>;
|
|
@@ -93,6 +106,13 @@ export declare const FetchRetryStrategy: z.ZodDiscriminatedUnion<"strategy", [z.
|
|
|
93
106
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
94
107
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
95
108
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
111
|
+
}, "strip", z.ZodTypeAny, {
|
|
112
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
113
|
+
}, {
|
|
114
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
115
|
+
}>>;
|
|
96
116
|
}, {
|
|
97
117
|
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
98
118
|
strategy: z.ZodLiteral<"backoff">;
|
|
@@ -106,6 +126,9 @@ export declare const FetchRetryStrategy: z.ZodDiscriminatedUnion<"strategy", [z.
|
|
|
106
126
|
randomize?: boolean | undefined;
|
|
107
127
|
bodyFilter?: EventFilter | undefined;
|
|
108
128
|
maxAttempts?: number | undefined;
|
|
129
|
+
outOfMemory?: {
|
|
130
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
131
|
+
} | undefined;
|
|
109
132
|
}, {
|
|
110
133
|
strategy: "backoff";
|
|
111
134
|
factor?: number | undefined;
|
|
@@ -114,6 +137,9 @@ export declare const FetchRetryStrategy: z.ZodDiscriminatedUnion<"strategy", [z.
|
|
|
114
137
|
randomize?: boolean | undefined;
|
|
115
138
|
bodyFilter?: EventFilter | undefined;
|
|
116
139
|
maxAttempts?: number | undefined;
|
|
140
|
+
outOfMemory?: {
|
|
141
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
142
|
+
} | undefined;
|
|
117
143
|
}>]>;
|
|
118
144
|
export type FetchRetryStrategy = z.infer<typeof FetchRetryStrategy>;
|
|
119
145
|
export declare const FetchRetryByStatusOptions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"strategy", [z.ZodObject<{
|
|
@@ -149,6 +175,13 @@ export declare const FetchRetryByStatusOptions: z.ZodRecord<z.ZodString, z.ZodDi
|
|
|
149
175
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
150
176
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
151
177
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
178
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
180
|
+
}, "strip", z.ZodTypeAny, {
|
|
181
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
182
|
+
}, {
|
|
183
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
184
|
+
}>>;
|
|
152
185
|
}, {
|
|
153
186
|
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
154
187
|
strategy: z.ZodLiteral<"backoff">;
|
|
@@ -162,6 +195,9 @@ export declare const FetchRetryByStatusOptions: z.ZodRecord<z.ZodString, z.ZodDi
|
|
|
162
195
|
randomize?: boolean | undefined;
|
|
163
196
|
bodyFilter?: EventFilter | undefined;
|
|
164
197
|
maxAttempts?: number | undefined;
|
|
198
|
+
outOfMemory?: {
|
|
199
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
200
|
+
} | undefined;
|
|
165
201
|
}, {
|
|
166
202
|
strategy: "backoff";
|
|
167
203
|
factor?: number | undefined;
|
|
@@ -170,6 +206,9 @@ export declare const FetchRetryByStatusOptions: z.ZodRecord<z.ZodString, z.ZodDi
|
|
|
170
206
|
randomize?: boolean | undefined;
|
|
171
207
|
bodyFilter?: EventFilter | undefined;
|
|
172
208
|
maxAttempts?: number | undefined;
|
|
209
|
+
outOfMemory?: {
|
|
210
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
211
|
+
} | undefined;
|
|
173
212
|
}>]>>;
|
|
174
213
|
/** An object where the key is a status code pattern and the value is a retrying strategy. Supported patterns are:
|
|
175
214
|
- Specific status codes: 429
|
|
@@ -186,18 +225,31 @@ export declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
186
225
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
187
226
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
188
227
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
230
|
+
}, "strip", z.ZodTypeAny, {
|
|
231
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
232
|
+
}, {
|
|
233
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
234
|
+
}>>;
|
|
189
235
|
}, "strip", z.ZodTypeAny, {
|
|
190
236
|
factor?: number | undefined;
|
|
191
237
|
minTimeoutInMs?: number | undefined;
|
|
192
238
|
maxTimeoutInMs?: number | undefined;
|
|
193
239
|
randomize?: boolean | undefined;
|
|
194
240
|
maxAttempts?: number | undefined;
|
|
241
|
+
outOfMemory?: {
|
|
242
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
243
|
+
} | undefined;
|
|
195
244
|
}, {
|
|
196
245
|
factor?: number | undefined;
|
|
197
246
|
minTimeoutInMs?: number | undefined;
|
|
198
247
|
maxTimeoutInMs?: number | undefined;
|
|
199
248
|
randomize?: boolean | undefined;
|
|
200
249
|
maxAttempts?: number | undefined;
|
|
250
|
+
outOfMemory?: {
|
|
251
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
252
|
+
} | undefined;
|
|
201
253
|
}>>;
|
|
202
254
|
}, "strip", z.ZodTypeAny, {
|
|
203
255
|
retry?: {
|
|
@@ -206,6 +258,9 @@ export declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
206
258
|
maxTimeoutInMs?: number | undefined;
|
|
207
259
|
randomize?: boolean | undefined;
|
|
208
260
|
maxAttempts?: number | undefined;
|
|
261
|
+
outOfMemory?: {
|
|
262
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
263
|
+
} | undefined;
|
|
209
264
|
} | undefined;
|
|
210
265
|
durationInMs?: number | undefined;
|
|
211
266
|
}, {
|
|
@@ -215,6 +270,9 @@ export declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
215
270
|
maxTimeoutInMs?: number | undefined;
|
|
216
271
|
randomize?: boolean | undefined;
|
|
217
272
|
maxAttempts?: number | undefined;
|
|
273
|
+
outOfMemory?: {
|
|
274
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
275
|
+
} | undefined;
|
|
218
276
|
} | undefined;
|
|
219
277
|
durationInMs?: number | undefined;
|
|
220
278
|
}>;
|
|
@@ -254,6 +312,13 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
254
312
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
255
313
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
256
314
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
315
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
316
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
317
|
+
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
319
|
+
}, {
|
|
320
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
321
|
+
}>>;
|
|
257
322
|
}, {
|
|
258
323
|
/** The `backoff` strategy retries the request with an exponential backoff. */
|
|
259
324
|
strategy: z.ZodLiteral<"backoff">;
|
|
@@ -267,6 +332,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
267
332
|
randomize?: boolean | undefined;
|
|
268
333
|
bodyFilter?: EventFilter | undefined;
|
|
269
334
|
maxAttempts?: number | undefined;
|
|
335
|
+
outOfMemory?: {
|
|
336
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
337
|
+
} | undefined;
|
|
270
338
|
}, {
|
|
271
339
|
strategy: "backoff";
|
|
272
340
|
factor?: number | undefined;
|
|
@@ -275,6 +343,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
275
343
|
randomize?: boolean | undefined;
|
|
276
344
|
bodyFilter?: EventFilter | undefined;
|
|
277
345
|
maxAttempts?: number | undefined;
|
|
346
|
+
outOfMemory?: {
|
|
347
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
348
|
+
} | undefined;
|
|
278
349
|
}>]>>>;
|
|
279
350
|
/** The timeout options for the request. */
|
|
280
351
|
timeout: z.ZodOptional<z.ZodObject<{
|
|
@@ -283,18 +354,31 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
283
354
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
284
355
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
285
356
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
357
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
358
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
359
|
+
}, "strip", z.ZodTypeAny, {
|
|
360
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
361
|
+
}, {
|
|
362
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
363
|
+
}>>;
|
|
286
364
|
}, "strip", z.ZodTypeAny, {
|
|
287
365
|
factor?: number | undefined;
|
|
288
366
|
minTimeoutInMs?: number | undefined;
|
|
289
367
|
maxTimeoutInMs?: number | undefined;
|
|
290
368
|
randomize?: boolean | undefined;
|
|
291
369
|
maxAttempts?: number | undefined;
|
|
370
|
+
outOfMemory?: {
|
|
371
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
372
|
+
} | undefined;
|
|
292
373
|
}, {
|
|
293
374
|
factor?: number | undefined;
|
|
294
375
|
minTimeoutInMs?: number | undefined;
|
|
295
376
|
maxTimeoutInMs?: number | undefined;
|
|
296
377
|
randomize?: boolean | undefined;
|
|
297
378
|
maxAttempts?: number | undefined;
|
|
379
|
+
outOfMemory?: {
|
|
380
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
381
|
+
} | undefined;
|
|
298
382
|
}>>;
|
|
299
383
|
/**
|
|
300
384
|
* The retrying strategy for connection errors.
|
|
@@ -305,18 +389,31 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
305
389
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
306
390
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
307
391
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
392
|
+
outOfMemory: z.ZodOptional<z.ZodObject<{
|
|
393
|
+
machine: z.ZodOptional<z.ZodEnum<["micro", "small-1x", "small-2x", "medium-1x", "medium-2x", "large-1x", "large-2x"]>>;
|
|
394
|
+
}, "strip", z.ZodTypeAny, {
|
|
395
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
396
|
+
}, {
|
|
397
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
398
|
+
}>>;
|
|
308
399
|
}, "strip", z.ZodTypeAny, {
|
|
309
400
|
factor?: number | undefined;
|
|
310
401
|
minTimeoutInMs?: number | undefined;
|
|
311
402
|
maxTimeoutInMs?: number | undefined;
|
|
312
403
|
randomize?: boolean | undefined;
|
|
313
404
|
maxAttempts?: number | undefined;
|
|
405
|
+
outOfMemory?: {
|
|
406
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
407
|
+
} | undefined;
|
|
314
408
|
}, {
|
|
315
409
|
factor?: number | undefined;
|
|
316
410
|
minTimeoutInMs?: number | undefined;
|
|
317
411
|
maxTimeoutInMs?: number | undefined;
|
|
318
412
|
randomize?: boolean | undefined;
|
|
319
413
|
maxAttempts?: number | undefined;
|
|
414
|
+
outOfMemory?: {
|
|
415
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
416
|
+
} | undefined;
|
|
320
417
|
}>>;
|
|
321
418
|
}, "strip", z.ZodTypeAny, {
|
|
322
419
|
timeout?: {
|
|
@@ -325,6 +422,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
325
422
|
maxTimeoutInMs?: number | undefined;
|
|
326
423
|
randomize?: boolean | undefined;
|
|
327
424
|
maxAttempts?: number | undefined;
|
|
425
|
+
outOfMemory?: {
|
|
426
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
427
|
+
} | undefined;
|
|
328
428
|
} | undefined;
|
|
329
429
|
byStatus?: Record<string, {
|
|
330
430
|
strategy: "headers";
|
|
@@ -341,6 +441,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
341
441
|
randomize?: boolean | undefined;
|
|
342
442
|
bodyFilter?: EventFilter | undefined;
|
|
343
443
|
maxAttempts?: number | undefined;
|
|
444
|
+
outOfMemory?: {
|
|
445
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
446
|
+
} | undefined;
|
|
344
447
|
}> | undefined;
|
|
345
448
|
connectionError?: {
|
|
346
449
|
factor?: number | undefined;
|
|
@@ -348,6 +451,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
348
451
|
maxTimeoutInMs?: number | undefined;
|
|
349
452
|
randomize?: boolean | undefined;
|
|
350
453
|
maxAttempts?: number | undefined;
|
|
454
|
+
outOfMemory?: {
|
|
455
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
456
|
+
} | undefined;
|
|
351
457
|
} | undefined;
|
|
352
458
|
}, {
|
|
353
459
|
timeout?: {
|
|
@@ -356,6 +462,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
356
462
|
maxTimeoutInMs?: number | undefined;
|
|
357
463
|
randomize?: boolean | undefined;
|
|
358
464
|
maxAttempts?: number | undefined;
|
|
465
|
+
outOfMemory?: {
|
|
466
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
467
|
+
} | undefined;
|
|
359
468
|
} | undefined;
|
|
360
469
|
byStatus?: Record<string, {
|
|
361
470
|
strategy: "headers";
|
|
@@ -372,6 +481,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
372
481
|
randomize?: boolean | undefined;
|
|
373
482
|
bodyFilter?: EventFilter | undefined;
|
|
374
483
|
maxAttempts?: number | undefined;
|
|
484
|
+
outOfMemory?: {
|
|
485
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
486
|
+
} | undefined;
|
|
375
487
|
}> | undefined;
|
|
376
488
|
connectionError?: {
|
|
377
489
|
factor?: number | undefined;
|
|
@@ -379,6 +491,9 @@ export declare const FetchRetryOptions: z.ZodObject<{
|
|
|
379
491
|
maxTimeoutInMs?: number | undefined;
|
|
380
492
|
randomize?: boolean | undefined;
|
|
381
493
|
maxAttempts?: number | undefined;
|
|
494
|
+
outOfMemory?: {
|
|
495
|
+
machine?: "micro" | "small-1x" | "small-2x" | "medium-1x" | "medium-2x" | "large-1x" | "large-2x" | undefined;
|
|
496
|
+
} | undefined;
|
|
382
497
|
} | undefined;
|
|
383
498
|
}>;
|
|
384
499
|
export type FetchRetryOptions = Prettify<z.infer<typeof FetchRetryOptions>>;
|