miniflare 0.0.0-a67cdbfc4 → 0.0.0-a8ca7005d

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 CHANGED
@@ -574,6 +574,17 @@ parameter in module format Workers.
574
574
  have at most one consumer. If a `string[]` of queue names is specified,
575
575
  default consumer options will be used.
576
576
 
577
+ #### Assets
578
+
579
+ - `directory?: string`
580
+ Path to serve Workers static asset files from.
581
+
582
+ - `binding?: string`
583
+ Binding name to inject as a `Fetcher` binding to allow access to static assets from within the Worker.
584
+
585
+ - `assetOptions?: { html_handling?: HTMLHandlingOptions, not_found_handling?: NotFoundHandlingOptions}`
586
+ Configuration for file-based asset routing - see [docs](https://developers.cloudflare.com/workers/static-assets/routing/#routing-configuration) for options
587
+
577
588
  #### Analytics Engine, Sending Email, Vectorize and Workers for Platforms
578
589
 
579
590
  _Not yet supported_
@@ -70,16 +70,16 @@ export declare const ASSETS_PLUGIN: Plugin<typeof AssetsOptionsSchema>;
70
70
  export declare const AssetsOptionsSchema: z.ZodObject<{
71
71
  assets: z.ZodOptional<z.ZodObject<{
72
72
  workerName: z.ZodOptional<z.ZodString>;
73
- path: z.ZodEffects<z.ZodString, string, string>;
74
- bindingName: z.ZodOptional<z.ZodString>;
75
- routingConfig: z.ZodObject<{
73
+ directory: z.ZodEffects<z.ZodString, string, string>;
74
+ binding: z.ZodOptional<z.ZodString>;
75
+ routingConfig: z.ZodOptional<z.ZodObject<{
76
76
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
77
77
  }, "strip", z.ZodTypeAny, {
78
78
  has_user_worker?: boolean;
79
79
  }, {
80
80
  has_user_worker?: boolean;
81
- }>;
82
- assetConfig: z.ZodObject<{
81
+ }>>;
82
+ assetConfig: z.ZodOptional<z.ZodObject<{
83
83
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
84
84
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
85
85
  }, "strip", z.ZodTypeAny, {
@@ -88,55 +88,55 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
88
88
  }, {
89
89
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
90
90
  not_found_handling?: "none" | "single-page-application" | "404-page";
91
- }>;
91
+ }>>;
92
92
  }, "strip", z.ZodTypeAny, {
93
- path: string;
94
- routingConfig: {
93
+ directory: string;
94
+ workerName?: string | undefined;
95
+ binding?: string | undefined;
96
+ routingConfig?: {
95
97
  has_user_worker?: boolean;
96
- };
97
- assetConfig: {
98
+ } | undefined;
99
+ assetConfig?: {
98
100
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
99
101
  not_found_handling?: "none" | "single-page-application" | "404-page";
100
- };
101
- workerName?: string | undefined;
102
- bindingName?: string | undefined;
102
+ } | undefined;
103
103
  }, {
104
- path: string;
105
- routingConfig: {
104
+ directory: string;
105
+ workerName?: string | undefined;
106
+ binding?: string | undefined;
107
+ routingConfig?: {
106
108
  has_user_worker?: boolean;
107
- };
108
- assetConfig: {
109
+ } | undefined;
110
+ assetConfig?: {
109
111
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
110
112
  not_found_handling?: "none" | "single-page-application" | "404-page";
111
- };
112
- workerName?: string | undefined;
113
- bindingName?: string | undefined;
113
+ } | undefined;
114
114
  }>>;
115
115
  }, "strip", z.ZodTypeAny, {
116
116
  assets?: {
117
- path: string;
118
- routingConfig: {
117
+ directory: string;
118
+ workerName?: string | undefined;
119
+ binding?: string | undefined;
120
+ routingConfig?: {
119
121
  has_user_worker?: boolean;
120
- };
121
- assetConfig: {
122
+ } | undefined;
123
+ assetConfig?: {
122
124
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
123
125
  not_found_handling?: "none" | "single-page-application" | "404-page";
124
- };
125
- workerName?: string | undefined;
126
- bindingName?: string | undefined;
126
+ } | undefined;
127
127
  } | undefined;
128
128
  }, {
129
129
  assets?: {
130
- path: string;
131
- routingConfig: {
130
+ directory: string;
131
+ workerName?: string | undefined;
132
+ binding?: string | undefined;
133
+ routingConfig?: {
132
134
  has_user_worker?: boolean;
133
- };
134
- assetConfig: {
135
+ } | undefined;
136
+ assetConfig?: {
135
137
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
136
138
  not_found_handling?: "none" | "single-page-application" | "404-page";
137
- };
138
- workerName?: string | undefined;
139
- bindingName?: string | undefined;
139
+ } | undefined;
140
140
  } | undefined;
141
141
  }>;
142
142
 
@@ -685,6 +685,10 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
685
685
  }>, "many">>;
686
686
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
687
687
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
688
+ /** Used to set the vitest pool worker SELF binding to point to the router worker if there are assets.
689
+ (If there are assets but we're not using vitest, the miniflare entry worker can point directly to RW.)
690
+ */
691
+ hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
688
692
  }, "strip", z.ZodTypeAny, {
689
693
  name?: string | undefined;
690
694
  rootPath?: undefined;
@@ -764,6 +768,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
764
768
  }[] | undefined;
765
769
  unsafeEvalBinding?: string | undefined;
766
770
  unsafeUseModuleFallbackService?: boolean | undefined;
771
+ hasAssetsAndIsVitest?: boolean | undefined;
767
772
  }, {
768
773
  name?: string | undefined;
769
774
  rootPath?: string | undefined;
@@ -843,6 +848,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
843
848
  }[] | undefined;
844
849
  unsafeEvalBinding?: string | undefined;
845
850
  unsafeUseModuleFallbackService?: boolean | undefined;
851
+ hasAssetsAndIsVitest?: boolean | undefined;
846
852
  }>>, ({
847
853
  modules: {
848
854
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
@@ -929,6 +935,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
929
935
  }[] | undefined;
930
936
  unsafeEvalBinding?: string | undefined;
931
937
  unsafeUseModuleFallbackService?: boolean | undefined;
938
+ hasAssetsAndIsVitest?: boolean | undefined;
932
939
  }) | ({
933
940
  script: string;
934
941
  scriptPath?: string | undefined;
@@ -1018,6 +1025,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1018
1025
  }[] | undefined;
1019
1026
  unsafeEvalBinding?: string | undefined;
1020
1027
  unsafeUseModuleFallbackService?: boolean | undefined;
1028
+ hasAssetsAndIsVitest?: boolean | undefined;
1021
1029
  }) | ({
1022
1030
  scriptPath: string;
1023
1031
  modules?: boolean | undefined;
@@ -1106,6 +1114,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1106
1114
  }[] | undefined;
1107
1115
  unsafeEvalBinding?: string | undefined;
1108
1116
  unsafeUseModuleFallbackService?: boolean | undefined;
1117
+ hasAssetsAndIsVitest?: boolean | undefined;
1109
1118
  }), ({
1110
1119
  modules: {
1111
1120
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
@@ -1211,6 +1220,7 @@ export declare const CoreOptionsSchema: z.ZodEffects<z.ZodIntersection<z.ZodUnio
1211
1220
  }[] | undefined;
1212
1221
  unsafeEvalBinding?: string | undefined;
1213
1222
  unsafeUseModuleFallbackService?: boolean | undefined;
1223
+ hasAssetsAndIsVitest?: boolean | undefined;
1214
1224
  }>;
1215
1225
 
1216
1226
  export declare const CoreSharedOptionsSchema: z.ZodObject<{
@@ -2423,6 +2433,7 @@ export declare const PLUGINS: {
2423
2433
  }>, "many">>;
2424
2434
  unsafeEvalBinding: z.ZodOptional<z.ZodString>;
2425
2435
  unsafeUseModuleFallbackService: z.ZodOptional<z.ZodBoolean>;
2436
+ hasAssetsAndIsVitest: z.ZodOptional<z.ZodBoolean>;
2426
2437
  }, "strip", z.ZodTypeAny, {
2427
2438
  name?: string | undefined;
2428
2439
  rootPath?: undefined;
@@ -2502,6 +2513,7 @@ export declare const PLUGINS: {
2502
2513
  }[] | undefined;
2503
2514
  unsafeEvalBinding?: string | undefined;
2504
2515
  unsafeUseModuleFallbackService?: boolean | undefined;
2516
+ hasAssetsAndIsVitest?: boolean | undefined;
2505
2517
  }, {
2506
2518
  name?: string | undefined;
2507
2519
  rootPath?: string | undefined;
@@ -2581,6 +2593,7 @@ export declare const PLUGINS: {
2581
2593
  }[] | undefined;
2582
2594
  unsafeEvalBinding?: string | undefined;
2583
2595
  unsafeUseModuleFallbackService?: boolean | undefined;
2596
+ hasAssetsAndIsVitest?: boolean | undefined;
2584
2597
  }>>, ({
2585
2598
  modules: {
2586
2599
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
@@ -2667,6 +2680,7 @@ export declare const PLUGINS: {
2667
2680
  }[] | undefined;
2668
2681
  unsafeEvalBinding?: string | undefined;
2669
2682
  unsafeUseModuleFallbackService?: boolean | undefined;
2683
+ hasAssetsAndIsVitest?: boolean | undefined;
2670
2684
  }) | ({
2671
2685
  script: string;
2672
2686
  scriptPath?: string | undefined;
@@ -2756,6 +2770,7 @@ export declare const PLUGINS: {
2756
2770
  }[] | undefined;
2757
2771
  unsafeEvalBinding?: string | undefined;
2758
2772
  unsafeUseModuleFallbackService?: boolean | undefined;
2773
+ hasAssetsAndIsVitest?: boolean | undefined;
2759
2774
  }) | ({
2760
2775
  scriptPath: string;
2761
2776
  modules?: boolean | undefined;
@@ -2844,6 +2859,7 @@ export declare const PLUGINS: {
2844
2859
  }[] | undefined;
2845
2860
  unsafeEvalBinding?: string | undefined;
2846
2861
  unsafeUseModuleFallbackService?: boolean | undefined;
2862
+ hasAssetsAndIsVitest?: boolean | undefined;
2847
2863
  }), ({
2848
2864
  modules: {
2849
2865
  type: "ESModule" | "CommonJS" | "NodeJsCompatModule" | "Text" | "Data" | "CompiledWasm" | "PythonModule" | "PythonRequirement";
@@ -2949,6 +2965,7 @@ export declare const PLUGINS: {
2949
2965
  }[] | undefined;
2950
2966
  unsafeEvalBinding?: string | undefined;
2951
2967
  unsafeUseModuleFallbackService?: boolean | undefined;
2968
+ hasAssetsAndIsVitest?: boolean | undefined;
2952
2969
  }>, z.ZodObject<{
2953
2970
  rootPath: z.ZodOptional<z.ZodEffects<z.ZodString, undefined, string>>;
2954
2971
  host: z.ZodOptional<z.ZodString>;
@@ -3112,22 +3129,39 @@ export declare const PLUGINS: {
3112
3129
  queueName: string;
3113
3130
  deliveryDelay?: number | undefined;
3114
3131
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3115
- queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3132
+ queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3116
3133
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3117
3134
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3118
3135
  maxRetires: z.ZodOptional<z.ZodNumber>;
3136
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3119
3137
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3120
3138
  retryDelay: z.ZodOptional<z.ZodNumber>;
3121
3139
  }, "strip", z.ZodTypeAny, {
3122
3140
  maxBatchSize?: number | undefined;
3123
3141
  maxBatchTimeout?: number | undefined;
3124
3142
  maxRetires?: number | undefined;
3143
+ maxRetries?: number | undefined;
3125
3144
  deadLetterQueue?: string | undefined;
3126
3145
  retryDelay?: number | undefined;
3127
3146
  }, {
3128
3147
  maxBatchSize?: number | undefined;
3129
3148
  maxBatchTimeout?: number | undefined;
3130
3149
  maxRetires?: number | undefined;
3150
+ maxRetries?: number | undefined;
3151
+ deadLetterQueue?: string | undefined;
3152
+ retryDelay?: number | undefined;
3153
+ }>, Omit<{
3154
+ maxBatchSize?: number | undefined;
3155
+ maxBatchTimeout?: number | undefined;
3156
+ maxRetires?: number | undefined;
3157
+ maxRetries?: number | undefined;
3158
+ deadLetterQueue?: string | undefined;
3159
+ retryDelay?: number | undefined;
3160
+ }, "maxRetires">, {
3161
+ maxBatchSize?: number | undefined;
3162
+ maxBatchTimeout?: number | undefined;
3163
+ maxRetires?: number | undefined;
3164
+ maxRetries?: number | undefined;
3131
3165
  deadLetterQueue?: string | undefined;
3132
3166
  retryDelay?: number | undefined;
3133
3167
  }>>, z.ZodArray<z.ZodString, "many">]>>;
@@ -3136,13 +3170,14 @@ export declare const PLUGINS: {
3136
3170
  queueName: string;
3137
3171
  deliveryDelay?: number | undefined;
3138
3172
  }> | undefined;
3139
- queueConsumers?: string[] | Record<string, {
3173
+ queueConsumers?: string[] | Record<string, Omit<{
3140
3174
  maxBatchSize?: number | undefined;
3141
3175
  maxBatchTimeout?: number | undefined;
3142
3176
  maxRetires?: number | undefined;
3177
+ maxRetries?: number | undefined;
3143
3178
  deadLetterQueue?: string | undefined;
3144
3179
  retryDelay?: number | undefined;
3145
- }> | undefined;
3180
+ }, "maxRetires">> | undefined;
3146
3181
  }, {
3147
3182
  queueProducers?: string[] | Record<string, string> | Record<string, {
3148
3183
  queueName: string;
@@ -3152,6 +3187,7 @@ export declare const PLUGINS: {
3152
3187
  maxBatchSize?: number | undefined;
3153
3188
  maxBatchTimeout?: number | undefined;
3154
3189
  maxRetires?: number | undefined;
3190
+ maxRetries?: number | undefined;
3155
3191
  deadLetterQueue?: string | undefined;
3156
3192
  retryDelay?: number | undefined;
3157
3193
  }> | undefined;
@@ -3217,16 +3253,16 @@ export declare const PLUGINS: {
3217
3253
  assets: Plugin<z.ZodObject<{
3218
3254
  assets: z.ZodOptional<z.ZodObject<{
3219
3255
  workerName: z.ZodOptional<z.ZodString>;
3220
- path: z.ZodEffects<z.ZodString, string, string>;
3221
- bindingName: z.ZodOptional<z.ZodString>;
3222
- routingConfig: z.ZodObject<{
3256
+ directory: z.ZodEffects<z.ZodString, string, string>;
3257
+ binding: z.ZodOptional<z.ZodString>;
3258
+ routingConfig: z.ZodOptional<z.ZodObject<{
3223
3259
  has_user_worker: z.ZodOptional<z.ZodBoolean>;
3224
3260
  }, "strip", z.ZodTypeAny, {
3225
3261
  has_user_worker?: boolean;
3226
3262
  }, {
3227
3263
  has_user_worker?: boolean;
3228
- }>;
3229
- assetConfig: z.ZodObject<{
3264
+ }>>;
3265
+ assetConfig: z.ZodOptional<z.ZodObject<{
3230
3266
  html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
3231
3267
  not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
3232
3268
  }, "strip", z.ZodTypeAny, {
@@ -3235,55 +3271,55 @@ export declare const PLUGINS: {
3235
3271
  }, {
3236
3272
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3237
3273
  not_found_handling?: "none" | "single-page-application" | "404-page";
3238
- }>;
3274
+ }>>;
3239
3275
  }, "strip", z.ZodTypeAny, {
3240
- path: string;
3241
- routingConfig: {
3276
+ directory: string;
3277
+ workerName?: string | undefined;
3278
+ binding?: string | undefined;
3279
+ routingConfig?: {
3242
3280
  has_user_worker?: boolean;
3243
- };
3244
- assetConfig: {
3281
+ } | undefined;
3282
+ assetConfig?: {
3245
3283
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3246
3284
  not_found_handling?: "none" | "single-page-application" | "404-page";
3247
- };
3248
- workerName?: string | undefined;
3249
- bindingName?: string | undefined;
3285
+ } | undefined;
3250
3286
  }, {
3251
- path: string;
3252
- routingConfig: {
3287
+ directory: string;
3288
+ workerName?: string | undefined;
3289
+ binding?: string | undefined;
3290
+ routingConfig?: {
3253
3291
  has_user_worker?: boolean;
3254
- };
3255
- assetConfig: {
3292
+ } | undefined;
3293
+ assetConfig?: {
3256
3294
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3257
3295
  not_found_handling?: "none" | "single-page-application" | "404-page";
3258
- };
3259
- workerName?: string | undefined;
3260
- bindingName?: string | undefined;
3296
+ } | undefined;
3261
3297
  }>>;
3262
3298
  }, "strip", z.ZodTypeAny, {
3263
3299
  assets?: {
3264
- path: string;
3265
- routingConfig: {
3300
+ directory: string;
3301
+ workerName?: string | undefined;
3302
+ binding?: string | undefined;
3303
+ routingConfig?: {
3266
3304
  has_user_worker?: boolean;
3267
- };
3268
- assetConfig: {
3305
+ } | undefined;
3306
+ assetConfig?: {
3269
3307
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3270
3308
  not_found_handling?: "none" | "single-page-application" | "404-page";
3271
- };
3272
- workerName?: string | undefined;
3273
- bindingName?: string | undefined;
3309
+ } | undefined;
3274
3310
  } | undefined;
3275
3311
  }, {
3276
3312
  assets?: {
3277
- path: string;
3278
- routingConfig: {
3313
+ directory: string;
3314
+ workerName?: string | undefined;
3315
+ binding?: string | undefined;
3316
+ routingConfig?: {
3279
3317
  has_user_worker?: boolean;
3280
- };
3281
- assetConfig: {
3318
+ } | undefined;
3319
+ assetConfig?: {
3282
3320
  html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
3283
3321
  not_found_handling?: "none" | "single-page-application" | "404-page";
3284
- };
3285
- workerName?: string | undefined;
3286
- bindingName?: string | undefined;
3322
+ } | undefined;
3287
3323
  } | undefined;
3288
3324
  }>>;
3289
3325
  };
@@ -3349,44 +3385,78 @@ export declare const QueueBindings: {
3349
3385
 
3350
3386
  export declare type QueueConsumer = z.infer<typeof QueueConsumerSchema>;
3351
3387
 
3352
- export declare const QueueConsumerOptionsSchema: z.ZodObject<{
3388
+ export declare const QueueConsumerOptionsSchema: z.ZodEffects<z.ZodObject<{
3353
3389
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3354
3390
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3355
3391
  maxRetires: z.ZodOptional<z.ZodNumber>;
3392
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3356
3393
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3357
3394
  retryDelay: z.ZodOptional<z.ZodNumber>;
3358
3395
  }, "strip", z.ZodTypeAny, {
3359
3396
  maxBatchSize?: number | undefined;
3360
3397
  maxBatchTimeout?: number | undefined;
3361
3398
  maxRetires?: number | undefined;
3399
+ maxRetries?: number | undefined;
3362
3400
  deadLetterQueue?: string | undefined;
3363
3401
  retryDelay?: number | undefined;
3364
3402
  }, {
3365
3403
  maxBatchSize?: number | undefined;
3366
3404
  maxBatchTimeout?: number | undefined;
3367
3405
  maxRetires?: number | undefined;
3406
+ maxRetries?: number | undefined;
3407
+ deadLetterQueue?: string | undefined;
3408
+ retryDelay?: number | undefined;
3409
+ }>, Omit<{
3410
+ maxBatchSize?: number | undefined;
3411
+ maxBatchTimeout?: number | undefined;
3412
+ maxRetires?: number | undefined;
3413
+ maxRetries?: number | undefined;
3414
+ deadLetterQueue?: string | undefined;
3415
+ retryDelay?: number | undefined;
3416
+ }, "maxRetires">, {
3417
+ maxBatchSize?: number | undefined;
3418
+ maxBatchTimeout?: number | undefined;
3419
+ maxRetires?: number | undefined;
3420
+ maxRetries?: number | undefined;
3368
3421
  deadLetterQueue?: string | undefined;
3369
3422
  retryDelay?: number | undefined;
3370
3423
  }>;
3371
3424
 
3372
3425
  export declare type QueueConsumers = Map<string, z.infer<typeof QueueConsumerSchema>>;
3373
3426
 
3374
- export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
3427
+ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodEffects<z.ZodObject<{
3375
3428
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3376
3429
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3377
3430
  maxRetires: z.ZodOptional<z.ZodNumber>;
3431
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3378
3432
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3379
3433
  retryDelay: z.ZodOptional<z.ZodNumber>;
3380
3434
  }, "strip", z.ZodTypeAny, {
3381
3435
  maxBatchSize?: number | undefined;
3382
3436
  maxBatchTimeout?: number | undefined;
3383
3437
  maxRetires?: number | undefined;
3438
+ maxRetries?: number | undefined;
3384
3439
  deadLetterQueue?: string | undefined;
3385
3440
  retryDelay?: number | undefined;
3386
3441
  }, {
3387
3442
  maxBatchSize?: number | undefined;
3388
3443
  maxBatchTimeout?: number | undefined;
3389
3444
  maxRetires?: number | undefined;
3445
+ maxRetries?: number | undefined;
3446
+ deadLetterQueue?: string | undefined;
3447
+ retryDelay?: number | undefined;
3448
+ }>, Omit<{
3449
+ maxBatchSize?: number | undefined;
3450
+ maxBatchTimeout?: number | undefined;
3451
+ maxRetires?: number | undefined;
3452
+ maxRetries?: number | undefined;
3453
+ deadLetterQueue?: string | undefined;
3454
+ retryDelay?: number | undefined;
3455
+ }, "maxRetires">, {
3456
+ maxBatchSize?: number | undefined;
3457
+ maxBatchTimeout?: number | undefined;
3458
+ maxRetires?: number | undefined;
3459
+ maxRetries?: number | undefined;
3390
3460
  deadLetterQueue?: string | undefined;
3391
3461
  retryDelay?: number | undefined;
3392
3462
  }>, z.ZodObject<{
@@ -3397,22 +3467,39 @@ export declare const QueueConsumerSchema: z.ZodIntersection<z.ZodObject<{
3397
3467
  workerName: string;
3398
3468
  }>>;
3399
3469
 
3400
- export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodObject<{
3470
+ export declare const QueueConsumersSchema: z.ZodRecord<z.ZodString, z.ZodIntersection<z.ZodEffects<z.ZodObject<{
3401
3471
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3402
3472
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3403
3473
  maxRetires: z.ZodOptional<z.ZodNumber>;
3474
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3404
3475
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3405
3476
  retryDelay: z.ZodOptional<z.ZodNumber>;
3406
3477
  }, "strip", z.ZodTypeAny, {
3407
3478
  maxBatchSize?: number | undefined;
3408
3479
  maxBatchTimeout?: number | undefined;
3409
3480
  maxRetires?: number | undefined;
3481
+ maxRetries?: number | undefined;
3410
3482
  deadLetterQueue?: string | undefined;
3411
3483
  retryDelay?: number | undefined;
3412
3484
  }, {
3413
3485
  maxBatchSize?: number | undefined;
3414
3486
  maxBatchTimeout?: number | undefined;
3415
3487
  maxRetires?: number | undefined;
3488
+ maxRetries?: number | undefined;
3489
+ deadLetterQueue?: string | undefined;
3490
+ retryDelay?: number | undefined;
3491
+ }>, Omit<{
3492
+ maxBatchSize?: number | undefined;
3493
+ maxBatchTimeout?: number | undefined;
3494
+ maxRetires?: number | undefined;
3495
+ maxRetries?: number | undefined;
3496
+ deadLetterQueue?: string | undefined;
3497
+ retryDelay?: number | undefined;
3498
+ }, "maxRetires">, {
3499
+ maxBatchSize?: number | undefined;
3500
+ maxBatchTimeout?: number | undefined;
3501
+ maxRetires?: number | undefined;
3502
+ maxRetries?: number | undefined;
3416
3503
  deadLetterQueue?: string | undefined;
3417
3504
  retryDelay?: number | undefined;
3418
3505
  }>, z.ZodObject<{
@@ -3562,22 +3649,39 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3562
3649
  queueName: string;
3563
3650
  deliveryDelay?: number | undefined;
3564
3651
  }>>, z.ZodArray<z.ZodString, "many">, z.ZodRecord<z.ZodString, z.ZodString>]>>;
3565
- queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodObject<{
3652
+ queueConsumers: z.ZodOptional<z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodEffects<z.ZodObject<{
3566
3653
  maxBatchSize: z.ZodOptional<z.ZodNumber>;
3567
3654
  maxBatchTimeout: z.ZodOptional<z.ZodNumber>;
3568
3655
  maxRetires: z.ZodOptional<z.ZodNumber>;
3656
+ maxRetries: z.ZodOptional<z.ZodNumber>;
3569
3657
  deadLetterQueue: z.ZodOptional<z.ZodString>;
3570
3658
  retryDelay: z.ZodOptional<z.ZodNumber>;
3571
3659
  }, "strip", z.ZodTypeAny, {
3572
3660
  maxBatchSize?: number | undefined;
3573
3661
  maxBatchTimeout?: number | undefined;
3574
3662
  maxRetires?: number | undefined;
3663
+ maxRetries?: number | undefined;
3575
3664
  deadLetterQueue?: string | undefined;
3576
3665
  retryDelay?: number | undefined;
3577
3666
  }, {
3578
3667
  maxBatchSize?: number | undefined;
3579
3668
  maxBatchTimeout?: number | undefined;
3580
3669
  maxRetires?: number | undefined;
3670
+ maxRetries?: number | undefined;
3671
+ deadLetterQueue?: string | undefined;
3672
+ retryDelay?: number | undefined;
3673
+ }>, Omit<{
3674
+ maxBatchSize?: number | undefined;
3675
+ maxBatchTimeout?: number | undefined;
3676
+ maxRetires?: number | undefined;
3677
+ maxRetries?: number | undefined;
3678
+ deadLetterQueue?: string | undefined;
3679
+ retryDelay?: number | undefined;
3680
+ }, "maxRetires">, {
3681
+ maxBatchSize?: number | undefined;
3682
+ maxBatchTimeout?: number | undefined;
3683
+ maxRetires?: number | undefined;
3684
+ maxRetries?: number | undefined;
3581
3685
  deadLetterQueue?: string | undefined;
3582
3686
  retryDelay?: number | undefined;
3583
3687
  }>>, z.ZodArray<z.ZodString, "many">]>>;
@@ -3586,13 +3690,14 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3586
3690
  queueName: string;
3587
3691
  deliveryDelay?: number | undefined;
3588
3692
  }> | undefined;
3589
- queueConsumers?: string[] | Record<string, {
3693
+ queueConsumers?: string[] | Record<string, Omit<{
3590
3694
  maxBatchSize?: number | undefined;
3591
3695
  maxBatchTimeout?: number | undefined;
3592
3696
  maxRetires?: number | undefined;
3697
+ maxRetries?: number | undefined;
3593
3698
  deadLetterQueue?: string | undefined;
3594
3699
  retryDelay?: number | undefined;
3595
- }> | undefined;
3700
+ }, "maxRetires">> | undefined;
3596
3701
  }, {
3597
3702
  queueProducers?: string[] | Record<string, string> | Record<string, {
3598
3703
  queueName: string;
@@ -3602,6 +3707,7 @@ export declare const QueuesOptionsSchema: z.ZodObject<{
3602
3707
  maxBatchSize?: number | undefined;
3603
3708
  maxBatchTimeout?: number | undefined;
3604
3709
  maxRetires?: number | undefined;
3710
+ maxRetries?: number | undefined;
3605
3711
  deadLetterQueue?: string | undefined;
3606
3712
  retryDelay?: number | undefined;
3607
3713
  }> | undefined;