@trigger.dev/core 0.0.0-v3-canary-20240324201508 → 0.0.0-v3-canary-20240325172431
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/v3/index.d.mts +895 -298
- package/dist/v3/index.d.ts +895 -298
- package/dist/v3/index.js +347 -104
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +343 -105
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.js +4 -3
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +4 -3
- package/dist/v3/otel/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/v3/index.d.mts
CHANGED
|
@@ -195,6 +195,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
195
195
|
filePath: z.ZodString;
|
|
196
196
|
exportName: z.ZodString;
|
|
197
197
|
queue: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
name: z.ZodOptional<z.ZodString>;
|
|
199
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
198
200
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
199
201
|
type: z.ZodLiteral<"fixed-window">;
|
|
200
202
|
limit: z.ZodNumber;
|
|
@@ -304,9 +306,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
304
306
|
hours: number;
|
|
305
307
|
} | undefined);
|
|
306
308
|
}>]>>;
|
|
307
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
308
|
-
name: z.ZodOptional<z.ZodString>;
|
|
309
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
name?: string | undefined;
|
|
311
|
+
concurrencyLimit?: number | undefined;
|
|
310
312
|
rateLimit?: {
|
|
311
313
|
type: "fixed-window";
|
|
312
314
|
limit: number;
|
|
@@ -340,9 +342,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
340
342
|
hours: number;
|
|
341
343
|
} | undefined);
|
|
342
344
|
} | undefined;
|
|
343
|
-
concurrencyLimit?: number | undefined;
|
|
344
|
-
name?: string | undefined;
|
|
345
345
|
}, {
|
|
346
|
+
name?: string | undefined;
|
|
347
|
+
concurrencyLimit?: number | undefined;
|
|
346
348
|
rateLimit?: {
|
|
347
349
|
type: "fixed-window";
|
|
348
350
|
limit: number;
|
|
@@ -376,8 +378,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
376
378
|
hours: number;
|
|
377
379
|
} | undefined);
|
|
378
380
|
} | undefined;
|
|
379
|
-
concurrencyLimit?: number | undefined;
|
|
380
|
-
name?: string | undefined;
|
|
381
381
|
}>>;
|
|
382
382
|
retry: z.ZodOptional<z.ZodObject<{
|
|
383
383
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -403,6 +403,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
403
403
|
filePath: string;
|
|
404
404
|
exportName: string;
|
|
405
405
|
queue?: {
|
|
406
|
+
name?: string | undefined;
|
|
407
|
+
concurrencyLimit?: number | undefined;
|
|
406
408
|
rateLimit?: {
|
|
407
409
|
type: "fixed-window";
|
|
408
410
|
limit: number;
|
|
@@ -436,8 +438,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
436
438
|
hours: number;
|
|
437
439
|
} | undefined);
|
|
438
440
|
} | undefined;
|
|
439
|
-
concurrencyLimit?: number | undefined;
|
|
440
|
-
name?: string | undefined;
|
|
441
441
|
} | undefined;
|
|
442
442
|
retry?: {
|
|
443
443
|
maxAttempts?: number | undefined;
|
|
@@ -451,6 +451,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
451
451
|
filePath: string;
|
|
452
452
|
exportName: string;
|
|
453
453
|
queue?: {
|
|
454
|
+
name?: string | undefined;
|
|
455
|
+
concurrencyLimit?: number | undefined;
|
|
454
456
|
rateLimit?: {
|
|
455
457
|
type: "fixed-window";
|
|
456
458
|
limit: number;
|
|
@@ -484,8 +486,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
484
486
|
hours: number;
|
|
485
487
|
} | undefined);
|
|
486
488
|
} | undefined;
|
|
487
|
-
concurrencyLimit?: number | undefined;
|
|
488
|
-
name?: string | undefined;
|
|
489
489
|
} | undefined;
|
|
490
490
|
retry?: {
|
|
491
491
|
maxAttempts?: number | undefined;
|
|
@@ -503,6 +503,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
503
503
|
filePath: string;
|
|
504
504
|
exportName: string;
|
|
505
505
|
queue?: {
|
|
506
|
+
name?: string | undefined;
|
|
507
|
+
concurrencyLimit?: number | undefined;
|
|
506
508
|
rateLimit?: {
|
|
507
509
|
type: "fixed-window";
|
|
508
510
|
limit: number;
|
|
@@ -536,8 +538,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
536
538
|
hours: number;
|
|
537
539
|
} | undefined);
|
|
538
540
|
} | undefined;
|
|
539
|
-
concurrencyLimit?: number | undefined;
|
|
540
|
-
name?: string | undefined;
|
|
541
541
|
} | undefined;
|
|
542
542
|
retry?: {
|
|
543
543
|
maxAttempts?: number | undefined;
|
|
@@ -556,6 +556,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
556
556
|
filePath: string;
|
|
557
557
|
exportName: string;
|
|
558
558
|
queue?: {
|
|
559
|
+
name?: string | undefined;
|
|
560
|
+
concurrencyLimit?: number | undefined;
|
|
559
561
|
rateLimit?: {
|
|
560
562
|
type: "fixed-window";
|
|
561
563
|
limit: number;
|
|
@@ -589,8 +591,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
589
591
|
hours: number;
|
|
590
592
|
} | undefined);
|
|
591
593
|
} | undefined;
|
|
592
|
-
concurrencyLimit?: number | undefined;
|
|
593
|
-
name?: string | undefined;
|
|
594
594
|
} | undefined;
|
|
595
595
|
retry?: {
|
|
596
596
|
maxAttempts?: number | undefined;
|
|
@@ -611,6 +611,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
611
611
|
filePath: string;
|
|
612
612
|
exportName: string;
|
|
613
613
|
queue?: {
|
|
614
|
+
name?: string | undefined;
|
|
615
|
+
concurrencyLimit?: number | undefined;
|
|
614
616
|
rateLimit?: {
|
|
615
617
|
type: "fixed-window";
|
|
616
618
|
limit: number;
|
|
@@ -644,8 +646,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
644
646
|
hours: number;
|
|
645
647
|
} | undefined);
|
|
646
648
|
} | undefined;
|
|
647
|
-
concurrencyLimit?: number | undefined;
|
|
648
|
-
name?: string | undefined;
|
|
649
649
|
} | undefined;
|
|
650
650
|
retry?: {
|
|
651
651
|
maxAttempts?: number | undefined;
|
|
@@ -667,6 +667,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
667
667
|
filePath: string;
|
|
668
668
|
exportName: string;
|
|
669
669
|
queue?: {
|
|
670
|
+
name?: string | undefined;
|
|
671
|
+
concurrencyLimit?: number | undefined;
|
|
670
672
|
rateLimit?: {
|
|
671
673
|
type: "fixed-window";
|
|
672
674
|
limit: number;
|
|
@@ -700,8 +702,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
700
702
|
hours: number;
|
|
701
703
|
} | undefined);
|
|
702
704
|
} | undefined;
|
|
703
|
-
concurrencyLimit?: number | undefined;
|
|
704
|
-
name?: string | undefined;
|
|
705
705
|
} | undefined;
|
|
706
706
|
retry?: {
|
|
707
707
|
maxAttempts?: number | undefined;
|
|
@@ -738,6 +738,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
738
738
|
dependentBatch: z.ZodOptional<z.ZodString>;
|
|
739
739
|
lockToVersion: z.ZodOptional<z.ZodString>;
|
|
740
740
|
queue: z.ZodOptional<z.ZodObject<{
|
|
741
|
+
name: z.ZodOptional<z.ZodString>;
|
|
742
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
741
743
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
742
744
|
type: z.ZodLiteral<"fixed-window">;
|
|
743
745
|
limit: z.ZodNumber;
|
|
@@ -847,9 +849,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
847
849
|
hours: number;
|
|
848
850
|
} | undefined);
|
|
849
851
|
}>]>>;
|
|
850
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
851
|
-
name: z.ZodOptional<z.ZodString>;
|
|
852
852
|
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
name?: string | undefined;
|
|
854
|
+
concurrencyLimit?: number | undefined;
|
|
853
855
|
rateLimit?: {
|
|
854
856
|
type: "fixed-window";
|
|
855
857
|
limit: number;
|
|
@@ -883,9 +885,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
883
885
|
hours: number;
|
|
884
886
|
} | undefined);
|
|
885
887
|
} | undefined;
|
|
886
|
-
concurrencyLimit?: number | undefined;
|
|
887
|
-
name?: string | undefined;
|
|
888
888
|
}, {
|
|
889
|
+
name?: string | undefined;
|
|
890
|
+
concurrencyLimit?: number | undefined;
|
|
889
891
|
rateLimit?: {
|
|
890
892
|
type: "fixed-window";
|
|
891
893
|
limit: number;
|
|
@@ -919,8 +921,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
919
921
|
hours: number;
|
|
920
922
|
} | undefined);
|
|
921
923
|
} | undefined;
|
|
922
|
-
concurrencyLimit?: number | undefined;
|
|
923
|
-
name?: string | undefined;
|
|
924
924
|
}>>;
|
|
925
925
|
concurrencyKey: z.ZodOptional<z.ZodString>;
|
|
926
926
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -929,6 +929,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
929
929
|
dependentBatch?: string | undefined;
|
|
930
930
|
lockToVersion?: string | undefined;
|
|
931
931
|
queue?: {
|
|
932
|
+
name?: string | undefined;
|
|
933
|
+
concurrencyLimit?: number | undefined;
|
|
932
934
|
rateLimit?: {
|
|
933
935
|
type: "fixed-window";
|
|
934
936
|
limit: number;
|
|
@@ -962,8 +964,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
962
964
|
hours: number;
|
|
963
965
|
} | undefined);
|
|
964
966
|
} | undefined;
|
|
965
|
-
concurrencyLimit?: number | undefined;
|
|
966
|
-
name?: string | undefined;
|
|
967
967
|
} | undefined;
|
|
968
968
|
concurrencyKey?: string | undefined;
|
|
969
969
|
test?: boolean | undefined;
|
|
@@ -972,6 +972,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
972
972
|
dependentBatch?: string | undefined;
|
|
973
973
|
lockToVersion?: string | undefined;
|
|
974
974
|
queue?: {
|
|
975
|
+
name?: string | undefined;
|
|
976
|
+
concurrencyLimit?: number | undefined;
|
|
975
977
|
rateLimit?: {
|
|
976
978
|
type: "fixed-window";
|
|
977
979
|
limit: number;
|
|
@@ -1005,8 +1007,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1005
1007
|
hours: number;
|
|
1006
1008
|
} | undefined);
|
|
1007
1009
|
} | undefined;
|
|
1008
|
-
concurrencyLimit?: number | undefined;
|
|
1009
|
-
name?: string | undefined;
|
|
1010
1010
|
} | undefined;
|
|
1011
1011
|
concurrencyKey?: string | undefined;
|
|
1012
1012
|
test?: boolean | undefined;
|
|
@@ -1019,6 +1019,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1019
1019
|
dependentBatch?: string | undefined;
|
|
1020
1020
|
lockToVersion?: string | undefined;
|
|
1021
1021
|
queue?: {
|
|
1022
|
+
name?: string | undefined;
|
|
1023
|
+
concurrencyLimit?: number | undefined;
|
|
1022
1024
|
rateLimit?: {
|
|
1023
1025
|
type: "fixed-window";
|
|
1024
1026
|
limit: number;
|
|
@@ -1052,8 +1054,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1052
1054
|
hours: number;
|
|
1053
1055
|
} | undefined);
|
|
1054
1056
|
} | undefined;
|
|
1055
|
-
concurrencyLimit?: number | undefined;
|
|
1056
|
-
name?: string | undefined;
|
|
1057
1057
|
} | undefined;
|
|
1058
1058
|
concurrencyKey?: string | undefined;
|
|
1059
1059
|
test?: boolean | undefined;
|
|
@@ -1066,6 +1066,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1066
1066
|
dependentBatch?: string | undefined;
|
|
1067
1067
|
lockToVersion?: string | undefined;
|
|
1068
1068
|
queue?: {
|
|
1069
|
+
name?: string | undefined;
|
|
1070
|
+
concurrencyLimit?: number | undefined;
|
|
1069
1071
|
rateLimit?: {
|
|
1070
1072
|
type: "fixed-window";
|
|
1071
1073
|
limit: number;
|
|
@@ -1099,8 +1101,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1099
1101
|
hours: number;
|
|
1100
1102
|
} | undefined);
|
|
1101
1103
|
} | undefined;
|
|
1102
|
-
concurrencyLimit?: number | undefined;
|
|
1103
|
-
name?: string | undefined;
|
|
1104
1104
|
} | undefined;
|
|
1105
1105
|
concurrencyKey?: string | undefined;
|
|
1106
1106
|
test?: boolean | undefined;
|
|
@@ -1124,6 +1124,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1124
1124
|
dependentBatch: z.ZodOptional<z.ZodString>;
|
|
1125
1125
|
lockToVersion: z.ZodOptional<z.ZodString>;
|
|
1126
1126
|
queue: z.ZodOptional<z.ZodObject<{
|
|
1127
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1127
1129
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1128
1130
|
type: z.ZodLiteral<"fixed-window">;
|
|
1129
1131
|
limit: z.ZodNumber;
|
|
@@ -1233,9 +1235,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1233
1235
|
hours: number;
|
|
1234
1236
|
} | undefined);
|
|
1235
1237
|
}>]>>;
|
|
1236
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1237
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1238
1238
|
}, "strip", z.ZodTypeAny, {
|
|
1239
|
+
name?: string | undefined;
|
|
1240
|
+
concurrencyLimit?: number | undefined;
|
|
1239
1241
|
rateLimit?: {
|
|
1240
1242
|
type: "fixed-window";
|
|
1241
1243
|
limit: number;
|
|
@@ -1269,9 +1271,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1269
1271
|
hours: number;
|
|
1270
1272
|
} | undefined);
|
|
1271
1273
|
} | undefined;
|
|
1272
|
-
concurrencyLimit?: number | undefined;
|
|
1273
|
-
name?: string | undefined;
|
|
1274
1274
|
}, {
|
|
1275
|
+
name?: string | undefined;
|
|
1276
|
+
concurrencyLimit?: number | undefined;
|
|
1275
1277
|
rateLimit?: {
|
|
1276
1278
|
type: "fixed-window";
|
|
1277
1279
|
limit: number;
|
|
@@ -1305,8 +1307,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1305
1307
|
hours: number;
|
|
1306
1308
|
} | undefined);
|
|
1307
1309
|
} | undefined;
|
|
1308
|
-
concurrencyLimit?: number | undefined;
|
|
1309
|
-
name?: string | undefined;
|
|
1310
1310
|
}>>;
|
|
1311
1311
|
concurrencyKey: z.ZodOptional<z.ZodString>;
|
|
1312
1312
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1315,6 +1315,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1315
1315
|
dependentBatch?: string | undefined;
|
|
1316
1316
|
lockToVersion?: string | undefined;
|
|
1317
1317
|
queue?: {
|
|
1318
|
+
name?: string | undefined;
|
|
1319
|
+
concurrencyLimit?: number | undefined;
|
|
1318
1320
|
rateLimit?: {
|
|
1319
1321
|
type: "fixed-window";
|
|
1320
1322
|
limit: number;
|
|
@@ -1348,8 +1350,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1348
1350
|
hours: number;
|
|
1349
1351
|
} | undefined);
|
|
1350
1352
|
} | undefined;
|
|
1351
|
-
concurrencyLimit?: number | undefined;
|
|
1352
|
-
name?: string | undefined;
|
|
1353
1353
|
} | undefined;
|
|
1354
1354
|
concurrencyKey?: string | undefined;
|
|
1355
1355
|
test?: boolean | undefined;
|
|
@@ -1358,6 +1358,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1358
1358
|
dependentBatch?: string | undefined;
|
|
1359
1359
|
lockToVersion?: string | undefined;
|
|
1360
1360
|
queue?: {
|
|
1361
|
+
name?: string | undefined;
|
|
1362
|
+
concurrencyLimit?: number | undefined;
|
|
1361
1363
|
rateLimit?: {
|
|
1362
1364
|
type: "fixed-window";
|
|
1363
1365
|
limit: number;
|
|
@@ -1391,8 +1393,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1391
1393
|
hours: number;
|
|
1392
1394
|
} | undefined);
|
|
1393
1395
|
} | undefined;
|
|
1394
|
-
concurrencyLimit?: number | undefined;
|
|
1395
|
-
name?: string | undefined;
|
|
1396
1396
|
} | undefined;
|
|
1397
1397
|
concurrencyKey?: string | undefined;
|
|
1398
1398
|
test?: boolean | undefined;
|
|
@@ -1405,6 +1405,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1405
1405
|
dependentBatch?: string | undefined;
|
|
1406
1406
|
lockToVersion?: string | undefined;
|
|
1407
1407
|
queue?: {
|
|
1408
|
+
name?: string | undefined;
|
|
1409
|
+
concurrencyLimit?: number | undefined;
|
|
1408
1410
|
rateLimit?: {
|
|
1409
1411
|
type: "fixed-window";
|
|
1410
1412
|
limit: number;
|
|
@@ -1438,8 +1440,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1438
1440
|
hours: number;
|
|
1439
1441
|
} | undefined);
|
|
1440
1442
|
} | undefined;
|
|
1441
|
-
concurrencyLimit?: number | undefined;
|
|
1442
|
-
name?: string | undefined;
|
|
1443
1443
|
} | undefined;
|
|
1444
1444
|
concurrencyKey?: string | undefined;
|
|
1445
1445
|
test?: boolean | undefined;
|
|
@@ -1452,6 +1452,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1452
1452
|
dependentBatch?: string | undefined;
|
|
1453
1453
|
lockToVersion?: string | undefined;
|
|
1454
1454
|
queue?: {
|
|
1455
|
+
name?: string | undefined;
|
|
1456
|
+
concurrencyLimit?: number | undefined;
|
|
1455
1457
|
rateLimit?: {
|
|
1456
1458
|
type: "fixed-window";
|
|
1457
1459
|
limit: number;
|
|
@@ -1485,8 +1487,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1485
1487
|
hours: number;
|
|
1486
1488
|
} | undefined);
|
|
1487
1489
|
} | undefined;
|
|
1488
|
-
concurrencyLimit?: number | undefined;
|
|
1489
|
-
name?: string | undefined;
|
|
1490
1490
|
} | undefined;
|
|
1491
1491
|
concurrencyKey?: string | undefined;
|
|
1492
1492
|
test?: boolean | undefined;
|
|
@@ -1502,6 +1502,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1502
1502
|
dependentBatch?: string | undefined;
|
|
1503
1503
|
lockToVersion?: string | undefined;
|
|
1504
1504
|
queue?: {
|
|
1505
|
+
name?: string | undefined;
|
|
1506
|
+
concurrencyLimit?: number | undefined;
|
|
1505
1507
|
rateLimit?: {
|
|
1506
1508
|
type: "fixed-window";
|
|
1507
1509
|
limit: number;
|
|
@@ -1535,8 +1537,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1535
1537
|
hours: number;
|
|
1536
1538
|
} | undefined);
|
|
1537
1539
|
} | undefined;
|
|
1538
|
-
concurrencyLimit?: number | undefined;
|
|
1539
|
-
name?: string | undefined;
|
|
1540
1540
|
} | undefined;
|
|
1541
1541
|
concurrencyKey?: string | undefined;
|
|
1542
1542
|
test?: boolean | undefined;
|
|
@@ -1552,6 +1552,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1552
1552
|
dependentBatch?: string | undefined;
|
|
1553
1553
|
lockToVersion?: string | undefined;
|
|
1554
1554
|
queue?: {
|
|
1555
|
+
name?: string | undefined;
|
|
1556
|
+
concurrencyLimit?: number | undefined;
|
|
1555
1557
|
rateLimit?: {
|
|
1556
1558
|
type: "fixed-window";
|
|
1557
1559
|
limit: number;
|
|
@@ -1585,8 +1587,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1585
1587
|
hours: number;
|
|
1586
1588
|
} | undefined);
|
|
1587
1589
|
} | undefined;
|
|
1588
|
-
concurrencyLimit?: number | undefined;
|
|
1589
|
-
name?: string | undefined;
|
|
1590
1590
|
} | undefined;
|
|
1591
1591
|
concurrencyKey?: string | undefined;
|
|
1592
1592
|
test?: boolean | undefined;
|
|
@@ -1845,6 +1845,8 @@ declare const TaskResource: z.ZodObject<{
|
|
|
1845
1845
|
filePath: z.ZodString;
|
|
1846
1846
|
exportName: z.ZodString;
|
|
1847
1847
|
queue: z.ZodOptional<z.ZodObject<{
|
|
1848
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1849
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1848
1850
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1849
1851
|
type: z.ZodLiteral<"fixed-window">;
|
|
1850
1852
|
limit: z.ZodNumber;
|
|
@@ -1954,9 +1956,9 @@ declare const TaskResource: z.ZodObject<{
|
|
|
1954
1956
|
hours: number;
|
|
1955
1957
|
} | undefined);
|
|
1956
1958
|
}>]>>;
|
|
1957
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1958
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1959
1959
|
}, "strip", z.ZodTypeAny, {
|
|
1960
|
+
name?: string | undefined;
|
|
1961
|
+
concurrencyLimit?: number | undefined;
|
|
1960
1962
|
rateLimit?: {
|
|
1961
1963
|
type: "fixed-window";
|
|
1962
1964
|
limit: number;
|
|
@@ -1990,9 +1992,9 @@ declare const TaskResource: z.ZodObject<{
|
|
|
1990
1992
|
hours: number;
|
|
1991
1993
|
} | undefined);
|
|
1992
1994
|
} | undefined;
|
|
1993
|
-
concurrencyLimit?: number | undefined;
|
|
1994
|
-
name?: string | undefined;
|
|
1995
1995
|
}, {
|
|
1996
|
+
name?: string | undefined;
|
|
1997
|
+
concurrencyLimit?: number | undefined;
|
|
1996
1998
|
rateLimit?: {
|
|
1997
1999
|
type: "fixed-window";
|
|
1998
2000
|
limit: number;
|
|
@@ -2026,8 +2028,6 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2026
2028
|
hours: number;
|
|
2027
2029
|
} | undefined);
|
|
2028
2030
|
} | undefined;
|
|
2029
|
-
concurrencyLimit?: number | undefined;
|
|
2030
|
-
name?: string | undefined;
|
|
2031
2031
|
}>>;
|
|
2032
2032
|
retry: z.ZodOptional<z.ZodObject<{
|
|
2033
2033
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2053,6 +2053,8 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2053
2053
|
filePath: string;
|
|
2054
2054
|
exportName: string;
|
|
2055
2055
|
queue?: {
|
|
2056
|
+
name?: string | undefined;
|
|
2057
|
+
concurrencyLimit?: number | undefined;
|
|
2056
2058
|
rateLimit?: {
|
|
2057
2059
|
type: "fixed-window";
|
|
2058
2060
|
limit: number;
|
|
@@ -2086,8 +2088,6 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2086
2088
|
hours: number;
|
|
2087
2089
|
} | undefined);
|
|
2088
2090
|
} | undefined;
|
|
2089
|
-
concurrencyLimit?: number | undefined;
|
|
2090
|
-
name?: string | undefined;
|
|
2091
2091
|
} | undefined;
|
|
2092
2092
|
retry?: {
|
|
2093
2093
|
maxAttempts?: number | undefined;
|
|
@@ -2101,6 +2101,8 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2101
2101
|
filePath: string;
|
|
2102
2102
|
exportName: string;
|
|
2103
2103
|
queue?: {
|
|
2104
|
+
name?: string | undefined;
|
|
2105
|
+
concurrencyLimit?: number | undefined;
|
|
2104
2106
|
rateLimit?: {
|
|
2105
2107
|
type: "fixed-window";
|
|
2106
2108
|
limit: number;
|
|
@@ -2134,8 +2136,6 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2134
2136
|
hours: number;
|
|
2135
2137
|
} | undefined);
|
|
2136
2138
|
} | undefined;
|
|
2137
|
-
concurrencyLimit?: number | undefined;
|
|
2138
|
-
name?: string | undefined;
|
|
2139
2139
|
} | undefined;
|
|
2140
2140
|
retry?: {
|
|
2141
2141
|
maxAttempts?: number | undefined;
|
|
@@ -2155,6 +2155,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2155
2155
|
filePath: z.ZodString;
|
|
2156
2156
|
exportName: z.ZodString;
|
|
2157
2157
|
queue: z.ZodOptional<z.ZodObject<{
|
|
2158
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
2158
2160
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2159
2161
|
type: z.ZodLiteral<"fixed-window">;
|
|
2160
2162
|
limit: z.ZodNumber;
|
|
@@ -2264,9 +2266,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2264
2266
|
hours: number;
|
|
2265
2267
|
} | undefined);
|
|
2266
2268
|
}>]>>;
|
|
2267
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
2268
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2269
2269
|
}, "strip", z.ZodTypeAny, {
|
|
2270
|
+
name?: string | undefined;
|
|
2271
|
+
concurrencyLimit?: number | undefined;
|
|
2270
2272
|
rateLimit?: {
|
|
2271
2273
|
type: "fixed-window";
|
|
2272
2274
|
limit: number;
|
|
@@ -2300,9 +2302,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2300
2302
|
hours: number;
|
|
2301
2303
|
} | undefined);
|
|
2302
2304
|
} | undefined;
|
|
2303
|
-
concurrencyLimit?: number | undefined;
|
|
2304
|
-
name?: string | undefined;
|
|
2305
2305
|
}, {
|
|
2306
|
+
name?: string | undefined;
|
|
2307
|
+
concurrencyLimit?: number | undefined;
|
|
2306
2308
|
rateLimit?: {
|
|
2307
2309
|
type: "fixed-window";
|
|
2308
2310
|
limit: number;
|
|
@@ -2336,8 +2338,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2336
2338
|
hours: number;
|
|
2337
2339
|
} | undefined);
|
|
2338
2340
|
} | undefined;
|
|
2339
|
-
concurrencyLimit?: number | undefined;
|
|
2340
|
-
name?: string | undefined;
|
|
2341
2341
|
}>>;
|
|
2342
2342
|
retry: z.ZodOptional<z.ZodObject<{
|
|
2343
2343
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2363,6 +2363,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2363
2363
|
filePath: string;
|
|
2364
2364
|
exportName: string;
|
|
2365
2365
|
queue?: {
|
|
2366
|
+
name?: string | undefined;
|
|
2367
|
+
concurrencyLimit?: number | undefined;
|
|
2366
2368
|
rateLimit?: {
|
|
2367
2369
|
type: "fixed-window";
|
|
2368
2370
|
limit: number;
|
|
@@ -2396,8 +2398,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2396
2398
|
hours: number;
|
|
2397
2399
|
} | undefined);
|
|
2398
2400
|
} | undefined;
|
|
2399
|
-
concurrencyLimit?: number | undefined;
|
|
2400
|
-
name?: string | undefined;
|
|
2401
2401
|
} | undefined;
|
|
2402
2402
|
retry?: {
|
|
2403
2403
|
maxAttempts?: number | undefined;
|
|
@@ -2411,6 +2411,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2411
2411
|
filePath: string;
|
|
2412
2412
|
exportName: string;
|
|
2413
2413
|
queue?: {
|
|
2414
|
+
name?: string | undefined;
|
|
2415
|
+
concurrencyLimit?: number | undefined;
|
|
2414
2416
|
rateLimit?: {
|
|
2415
2417
|
type: "fixed-window";
|
|
2416
2418
|
limit: number;
|
|
@@ -2444,8 +2446,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2444
2446
|
hours: number;
|
|
2445
2447
|
} | undefined);
|
|
2446
2448
|
} | undefined;
|
|
2447
|
-
concurrencyLimit?: number | undefined;
|
|
2448
|
-
name?: string | undefined;
|
|
2449
2449
|
} | undefined;
|
|
2450
2450
|
retry?: {
|
|
2451
2451
|
maxAttempts?: number | undefined;
|
|
@@ -2463,6 +2463,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2463
2463
|
filePath: string;
|
|
2464
2464
|
exportName: string;
|
|
2465
2465
|
queue?: {
|
|
2466
|
+
name?: string | undefined;
|
|
2467
|
+
concurrencyLimit?: number | undefined;
|
|
2466
2468
|
rateLimit?: {
|
|
2467
2469
|
type: "fixed-window";
|
|
2468
2470
|
limit: number;
|
|
@@ -2496,8 +2498,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2496
2498
|
hours: number;
|
|
2497
2499
|
} | undefined);
|
|
2498
2500
|
} | undefined;
|
|
2499
|
-
concurrencyLimit?: number | undefined;
|
|
2500
|
-
name?: string | undefined;
|
|
2501
2501
|
} | undefined;
|
|
2502
2502
|
retry?: {
|
|
2503
2503
|
maxAttempts?: number | undefined;
|
|
@@ -2516,6 +2516,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2516
2516
|
filePath: string;
|
|
2517
2517
|
exportName: string;
|
|
2518
2518
|
queue?: {
|
|
2519
|
+
name?: string | undefined;
|
|
2520
|
+
concurrencyLimit?: number | undefined;
|
|
2519
2521
|
rateLimit?: {
|
|
2520
2522
|
type: "fixed-window";
|
|
2521
2523
|
limit: number;
|
|
@@ -2549,8 +2551,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2549
2551
|
hours: number;
|
|
2550
2552
|
} | undefined);
|
|
2551
2553
|
} | undefined;
|
|
2552
|
-
concurrencyLimit?: number | undefined;
|
|
2553
|
-
name?: string | undefined;
|
|
2554
2554
|
} | undefined;
|
|
2555
2555
|
retry?: {
|
|
2556
2556
|
maxAttempts?: number | undefined;
|
|
@@ -5049,15 +5049,18 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5049
5049
|
image: z.ZodString;
|
|
5050
5050
|
envId: z.ZodString;
|
|
5051
5051
|
runId: z.ZodString;
|
|
5052
|
+
version: z.ZodString;
|
|
5052
5053
|
}, "strip", z.ZodTypeAny, {
|
|
5053
5054
|
type: "SCHEDULE_ATTEMPT";
|
|
5054
5055
|
id: string;
|
|
5056
|
+
version: string;
|
|
5055
5057
|
image: string;
|
|
5056
5058
|
envId: string;
|
|
5057
5059
|
runId: string;
|
|
5058
5060
|
}, {
|
|
5059
5061
|
type: "SCHEDULE_ATTEMPT";
|
|
5060
5062
|
id: string;
|
|
5063
|
+
version: string;
|
|
5061
5064
|
image: string;
|
|
5062
5065
|
envId: string;
|
|
5063
5066
|
runId: string;
|
|
@@ -5520,15 +5523,18 @@ declare const serverWebsocketMessages: {
|
|
|
5520
5523
|
image: z.ZodString;
|
|
5521
5524
|
envId: z.ZodString;
|
|
5522
5525
|
runId: z.ZodString;
|
|
5526
|
+
version: z.ZodString;
|
|
5523
5527
|
}, "strip", z.ZodTypeAny, {
|
|
5524
5528
|
type: "SCHEDULE_ATTEMPT";
|
|
5525
5529
|
id: string;
|
|
5530
|
+
version: string;
|
|
5526
5531
|
image: string;
|
|
5527
5532
|
envId: string;
|
|
5528
5533
|
runId: string;
|
|
5529
5534
|
}, {
|
|
5530
5535
|
type: "SCHEDULE_ATTEMPT";
|
|
5531
5536
|
id: string;
|
|
5537
|
+
version: string;
|
|
5532
5538
|
image: string;
|
|
5533
5539
|
envId: string;
|
|
5534
5540
|
runId: string;
|
|
@@ -5594,6 +5600,7 @@ declare const serverWebsocketMessages: {
|
|
|
5594
5600
|
} | {
|
|
5595
5601
|
type: "SCHEDULE_ATTEMPT";
|
|
5596
5602
|
id: string;
|
|
5603
|
+
version: string;
|
|
5597
5604
|
image: string;
|
|
5598
5605
|
envId: string;
|
|
5599
5606
|
runId: string;
|
|
@@ -5661,6 +5668,7 @@ declare const serverWebsocketMessages: {
|
|
|
5661
5668
|
} | {
|
|
5662
5669
|
type: "SCHEDULE_ATTEMPT";
|
|
5663
5670
|
id: string;
|
|
5671
|
+
version: string;
|
|
5664
5672
|
image: string;
|
|
5665
5673
|
envId: string;
|
|
5666
5674
|
runId: string;
|
|
@@ -7899,10 +7907,21 @@ declare const SlidingWindowRateLimit: z.ZodObject<{
|
|
|
7899
7907
|
} | undefined);
|
|
7900
7908
|
}>;
|
|
7901
7909
|
declare const RetryOptions: z.ZodObject<{
|
|
7910
|
+
/** The number of attempts before giving up */
|
|
7902
7911
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
7912
|
+
/** The exponential factor to use when calculating the next retry time.
|
|
7913
|
+
*
|
|
7914
|
+
* Each subsequent retry will be calculated as `previousTimeout * factor`
|
|
7915
|
+
*/
|
|
7903
7916
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
7917
|
+
/** The minimum time to wait before retrying */
|
|
7904
7918
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
7919
|
+
/** The maximum time to wait before retrying */
|
|
7905
7920
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
7921
|
+
/** Randomize the timeout between retries.
|
|
7922
|
+
*
|
|
7923
|
+
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
7924
|
+
*/
|
|
7906
7925
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
7907
7926
|
}, "strip", z.ZodTypeAny, {
|
|
7908
7927
|
maxAttempts?: number | undefined;
|
|
@@ -8029,6 +8048,42 @@ declare const RateLimitOptions: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
8029
8048
|
}>]>;
|
|
8030
8049
|
type RateLimitOptions = z.infer<typeof RateLimitOptions>;
|
|
8031
8050
|
declare const QueueOptions: z.ZodObject<{
|
|
8051
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
8052
|
+
*
|
|
8053
|
+
* @example
|
|
8054
|
+
*
|
|
8055
|
+
* ```ts
|
|
8056
|
+
* const myQueue = queue({
|
|
8057
|
+
name: "my-queue",
|
|
8058
|
+
concurrencyLimit: 1,
|
|
8059
|
+
});
|
|
8060
|
+
|
|
8061
|
+
export const task1 = task({
|
|
8062
|
+
id: "task-1",
|
|
8063
|
+
queue: {
|
|
8064
|
+
name: "my-queue",
|
|
8065
|
+
},
|
|
8066
|
+
run: async (payload: { message: string }) => {
|
|
8067
|
+
// ...
|
|
8068
|
+
},
|
|
8069
|
+
});
|
|
8070
|
+
|
|
8071
|
+
export const task2 = task({
|
|
8072
|
+
id: "task-2",
|
|
8073
|
+
queue: {
|
|
8074
|
+
name: "my-queue",
|
|
8075
|
+
},
|
|
8076
|
+
run: async (payload: { message: string }) => {
|
|
8077
|
+
// ...
|
|
8078
|
+
},
|
|
8079
|
+
});
|
|
8080
|
+
* ```
|
|
8081
|
+
*/
|
|
8082
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8083
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
8084
|
+
*
|
|
8085
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
8086
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8032
8087
|
/** @deprecated This feature is coming soon */
|
|
8033
8088
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8034
8089
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -8139,9 +8194,9 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
8139
8194
|
hours: number;
|
|
8140
8195
|
} | undefined);
|
|
8141
8196
|
}>]>>;
|
|
8142
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8143
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8144
8197
|
}, "strip", z.ZodTypeAny, {
|
|
8198
|
+
name?: string | undefined;
|
|
8199
|
+
concurrencyLimit?: number | undefined;
|
|
8145
8200
|
rateLimit?: {
|
|
8146
8201
|
type: "fixed-window";
|
|
8147
8202
|
limit: number;
|
|
@@ -8175,9 +8230,9 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
8175
8230
|
hours: number;
|
|
8176
8231
|
} | undefined);
|
|
8177
8232
|
} | undefined;
|
|
8178
|
-
concurrencyLimit?: number | undefined;
|
|
8179
|
-
name?: string | undefined;
|
|
8180
8233
|
}, {
|
|
8234
|
+
name?: string | undefined;
|
|
8235
|
+
concurrencyLimit?: number | undefined;
|
|
8181
8236
|
rateLimit?: {
|
|
8182
8237
|
type: "fixed-window";
|
|
8183
8238
|
limit: number;
|
|
@@ -8211,8 +8266,6 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
8211
8266
|
hours: number;
|
|
8212
8267
|
} | undefined);
|
|
8213
8268
|
} | undefined;
|
|
8214
|
-
concurrencyLimit?: number | undefined;
|
|
8215
|
-
name?: string | undefined;
|
|
8216
8269
|
}>;
|
|
8217
8270
|
type QueueOptions = z.infer<typeof QueueOptions>;
|
|
8218
8271
|
declare const TaskMetadata: z.ZodObject<{
|
|
@@ -8220,6 +8273,42 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8220
8273
|
exportName: z.ZodString;
|
|
8221
8274
|
packageVersion: z.ZodString;
|
|
8222
8275
|
queue: z.ZodOptional<z.ZodObject<{
|
|
8276
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
8277
|
+
*
|
|
8278
|
+
* @example
|
|
8279
|
+
*
|
|
8280
|
+
* ```ts
|
|
8281
|
+
* const myQueue = queue({
|
|
8282
|
+
name: "my-queue",
|
|
8283
|
+
concurrencyLimit: 1,
|
|
8284
|
+
});
|
|
8285
|
+
|
|
8286
|
+
export const task1 = task({
|
|
8287
|
+
id: "task-1",
|
|
8288
|
+
queue: {
|
|
8289
|
+
name: "my-queue",
|
|
8290
|
+
},
|
|
8291
|
+
run: async (payload: { message: string }) => {
|
|
8292
|
+
// ...
|
|
8293
|
+
},
|
|
8294
|
+
});
|
|
8295
|
+
|
|
8296
|
+
export const task2 = task({
|
|
8297
|
+
id: "task-2",
|
|
8298
|
+
queue: {
|
|
8299
|
+
name: "my-queue",
|
|
8300
|
+
},
|
|
8301
|
+
run: async (payload: { message: string }) => {
|
|
8302
|
+
// ...
|
|
8303
|
+
},
|
|
8304
|
+
});
|
|
8305
|
+
* ```
|
|
8306
|
+
*/
|
|
8307
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8308
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
8309
|
+
*
|
|
8310
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
8311
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8223
8312
|
/** @deprecated This feature is coming soon */
|
|
8224
8313
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8225
8314
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -8330,9 +8419,9 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8330
8419
|
hours: number;
|
|
8331
8420
|
} | undefined);
|
|
8332
8421
|
}>]>>;
|
|
8333
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8334
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8335
8422
|
}, "strip", z.ZodTypeAny, {
|
|
8423
|
+
name?: string | undefined;
|
|
8424
|
+
concurrencyLimit?: number | undefined;
|
|
8336
8425
|
rateLimit?: {
|
|
8337
8426
|
type: "fixed-window";
|
|
8338
8427
|
limit: number;
|
|
@@ -8366,9 +8455,9 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8366
8455
|
hours: number;
|
|
8367
8456
|
} | undefined);
|
|
8368
8457
|
} | undefined;
|
|
8369
|
-
concurrencyLimit?: number | undefined;
|
|
8370
|
-
name?: string | undefined;
|
|
8371
8458
|
}, {
|
|
8459
|
+
name?: string | undefined;
|
|
8460
|
+
concurrencyLimit?: number | undefined;
|
|
8372
8461
|
rateLimit?: {
|
|
8373
8462
|
type: "fixed-window";
|
|
8374
8463
|
limit: number;
|
|
@@ -8402,14 +8491,23 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8402
8491
|
hours: number;
|
|
8403
8492
|
} | undefined);
|
|
8404
8493
|
} | undefined;
|
|
8405
|
-
concurrencyLimit?: number | undefined;
|
|
8406
|
-
name?: string | undefined;
|
|
8407
8494
|
}>>;
|
|
8408
8495
|
retry: z.ZodOptional<z.ZodObject<{
|
|
8496
|
+
/** The number of attempts before giving up */
|
|
8409
8497
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
8498
|
+
/** The exponential factor to use when calculating the next retry time.
|
|
8499
|
+
*
|
|
8500
|
+
* Each subsequent retry will be calculated as `previousTimeout * factor`
|
|
8501
|
+
*/
|
|
8410
8502
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
8503
|
+
/** The minimum time to wait before retrying */
|
|
8411
8504
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
8505
|
+
/** The maximum time to wait before retrying */
|
|
8412
8506
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
8507
|
+
/** Randomize the timeout between retries.
|
|
8508
|
+
*
|
|
8509
|
+
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
8510
|
+
*/
|
|
8413
8511
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
8414
8512
|
}, "strip", z.ZodTypeAny, {
|
|
8415
8513
|
maxAttempts?: number | undefined;
|
|
@@ -8429,6 +8527,8 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8429
8527
|
exportName: string;
|
|
8430
8528
|
packageVersion: string;
|
|
8431
8529
|
queue?: {
|
|
8530
|
+
name?: string | undefined;
|
|
8531
|
+
concurrencyLimit?: number | undefined;
|
|
8432
8532
|
rateLimit?: {
|
|
8433
8533
|
type: "fixed-window";
|
|
8434
8534
|
limit: number;
|
|
@@ -8462,8 +8562,6 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8462
8562
|
hours: number;
|
|
8463
8563
|
} | undefined);
|
|
8464
8564
|
} | undefined;
|
|
8465
|
-
concurrencyLimit?: number | undefined;
|
|
8466
|
-
name?: string | undefined;
|
|
8467
8565
|
} | undefined;
|
|
8468
8566
|
retry?: {
|
|
8469
8567
|
maxAttempts?: number | undefined;
|
|
@@ -8477,6 +8575,8 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8477
8575
|
exportName: string;
|
|
8478
8576
|
packageVersion: string;
|
|
8479
8577
|
queue?: {
|
|
8578
|
+
name?: string | undefined;
|
|
8579
|
+
concurrencyLimit?: number | undefined;
|
|
8480
8580
|
rateLimit?: {
|
|
8481
8581
|
type: "fixed-window";
|
|
8482
8582
|
limit: number;
|
|
@@ -8510,8 +8610,6 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8510
8610
|
hours: number;
|
|
8511
8611
|
} | undefined);
|
|
8512
8612
|
} | undefined;
|
|
8513
|
-
concurrencyLimit?: number | undefined;
|
|
8514
|
-
name?: string | undefined;
|
|
8515
8613
|
} | undefined;
|
|
8516
8614
|
retry?: {
|
|
8517
8615
|
maxAttempts?: number | undefined;
|
|
@@ -8526,6 +8624,42 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8526
8624
|
id: z.ZodString;
|
|
8527
8625
|
exportName: z.ZodString;
|
|
8528
8626
|
queue: z.ZodOptional<z.ZodObject<{
|
|
8627
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
8628
|
+
*
|
|
8629
|
+
* @example
|
|
8630
|
+
*
|
|
8631
|
+
* ```ts
|
|
8632
|
+
* const myQueue = queue({
|
|
8633
|
+
name: "my-queue",
|
|
8634
|
+
concurrencyLimit: 1,
|
|
8635
|
+
});
|
|
8636
|
+
|
|
8637
|
+
export const task1 = task({
|
|
8638
|
+
id: "task-1",
|
|
8639
|
+
queue: {
|
|
8640
|
+
name: "my-queue",
|
|
8641
|
+
},
|
|
8642
|
+
run: async (payload: { message: string }) => {
|
|
8643
|
+
// ...
|
|
8644
|
+
},
|
|
8645
|
+
});
|
|
8646
|
+
|
|
8647
|
+
export const task2 = task({
|
|
8648
|
+
id: "task-2",
|
|
8649
|
+
queue: {
|
|
8650
|
+
name: "my-queue",
|
|
8651
|
+
},
|
|
8652
|
+
run: async (payload: { message: string }) => {
|
|
8653
|
+
// ...
|
|
8654
|
+
},
|
|
8655
|
+
});
|
|
8656
|
+
* ```
|
|
8657
|
+
*/
|
|
8658
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8659
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
8660
|
+
*
|
|
8661
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
8662
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8529
8663
|
/** @deprecated This feature is coming soon */
|
|
8530
8664
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8531
8665
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -8636,9 +8770,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8636
8770
|
hours: number;
|
|
8637
8771
|
} | undefined);
|
|
8638
8772
|
}>]>>;
|
|
8639
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8640
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8641
8773
|
}, "strip", z.ZodTypeAny, {
|
|
8774
|
+
name?: string | undefined;
|
|
8775
|
+
concurrencyLimit?: number | undefined;
|
|
8642
8776
|
rateLimit?: {
|
|
8643
8777
|
type: "fixed-window";
|
|
8644
8778
|
limit: number;
|
|
@@ -8672,9 +8806,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8672
8806
|
hours: number;
|
|
8673
8807
|
} | undefined);
|
|
8674
8808
|
} | undefined;
|
|
8675
|
-
concurrencyLimit?: number | undefined;
|
|
8676
|
-
name?: string | undefined;
|
|
8677
8809
|
}, {
|
|
8810
|
+
name?: string | undefined;
|
|
8811
|
+
concurrencyLimit?: number | undefined;
|
|
8678
8812
|
rateLimit?: {
|
|
8679
8813
|
type: "fixed-window";
|
|
8680
8814
|
limit: number;
|
|
@@ -8708,14 +8842,23 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8708
8842
|
hours: number;
|
|
8709
8843
|
} | undefined);
|
|
8710
8844
|
} | undefined;
|
|
8711
|
-
concurrencyLimit?: number | undefined;
|
|
8712
|
-
name?: string | undefined;
|
|
8713
8845
|
}>>;
|
|
8714
8846
|
retry: z.ZodOptional<z.ZodObject<{
|
|
8847
|
+
/** The number of attempts before giving up */
|
|
8715
8848
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
8849
|
+
/** The exponential factor to use when calculating the next retry time.
|
|
8850
|
+
*
|
|
8851
|
+
* Each subsequent retry will be calculated as `previousTimeout * factor`
|
|
8852
|
+
*/
|
|
8716
8853
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
8854
|
+
/** The minimum time to wait before retrying */
|
|
8717
8855
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
8856
|
+
/** The maximum time to wait before retrying */
|
|
8718
8857
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
8858
|
+
/** Randomize the timeout between retries.
|
|
8859
|
+
*
|
|
8860
|
+
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
8861
|
+
*/
|
|
8719
8862
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
8720
8863
|
}, "strip", z.ZodTypeAny, {
|
|
8721
8864
|
maxAttempts?: number | undefined;
|
|
@@ -8738,6 +8881,8 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8738
8881
|
exportName: string;
|
|
8739
8882
|
packageVersion: string;
|
|
8740
8883
|
queue?: {
|
|
8884
|
+
name?: string | undefined;
|
|
8885
|
+
concurrencyLimit?: number | undefined;
|
|
8741
8886
|
rateLimit?: {
|
|
8742
8887
|
type: "fixed-window";
|
|
8743
8888
|
limit: number;
|
|
@@ -8771,8 +8916,6 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8771
8916
|
hours: number;
|
|
8772
8917
|
} | undefined);
|
|
8773
8918
|
} | undefined;
|
|
8774
|
-
concurrencyLimit?: number | undefined;
|
|
8775
|
-
name?: string | undefined;
|
|
8776
8919
|
} | undefined;
|
|
8777
8920
|
retry?: {
|
|
8778
8921
|
maxAttempts?: number | undefined;
|
|
@@ -8787,6 +8930,8 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8787
8930
|
exportName: string;
|
|
8788
8931
|
packageVersion: string;
|
|
8789
8932
|
queue?: {
|
|
8933
|
+
name?: string | undefined;
|
|
8934
|
+
concurrencyLimit?: number | undefined;
|
|
8790
8935
|
rateLimit?: {
|
|
8791
8936
|
type: "fixed-window";
|
|
8792
8937
|
limit: number;
|
|
@@ -8820,8 +8965,6 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8820
8965
|
hours: number;
|
|
8821
8966
|
} | undefined);
|
|
8822
8967
|
} | undefined;
|
|
8823
|
-
concurrencyLimit?: number | undefined;
|
|
8824
|
-
name?: string | undefined;
|
|
8825
8968
|
} | undefined;
|
|
8826
8969
|
retry?: {
|
|
8827
8970
|
maxAttempts?: number | undefined;
|
|
@@ -9377,6 +9520,42 @@ declare const childToWorkerMessages: {
|
|
|
9377
9520
|
id: z.ZodString;
|
|
9378
9521
|
exportName: z.ZodString;
|
|
9379
9522
|
queue: z.ZodOptional<z.ZodObject<{
|
|
9523
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
9524
|
+
*
|
|
9525
|
+
* @example
|
|
9526
|
+
*
|
|
9527
|
+
* ```ts
|
|
9528
|
+
* const myQueue = queue({
|
|
9529
|
+
name: "my-queue",
|
|
9530
|
+
concurrencyLimit: 1,
|
|
9531
|
+
});
|
|
9532
|
+
|
|
9533
|
+
export const task1 = task({
|
|
9534
|
+
id: "task-1",
|
|
9535
|
+
queue: {
|
|
9536
|
+
name: "my-queue",
|
|
9537
|
+
},
|
|
9538
|
+
run: async (payload: { message: string }) => {
|
|
9539
|
+
// ...
|
|
9540
|
+
},
|
|
9541
|
+
});
|
|
9542
|
+
|
|
9543
|
+
export const task2 = task({
|
|
9544
|
+
id: "task-2",
|
|
9545
|
+
queue: {
|
|
9546
|
+
name: "my-queue",
|
|
9547
|
+
},
|
|
9548
|
+
run: async (payload: { message: string }) => {
|
|
9549
|
+
// ...
|
|
9550
|
+
},
|
|
9551
|
+
});
|
|
9552
|
+
* ```
|
|
9553
|
+
*/
|
|
9554
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9555
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
9556
|
+
*
|
|
9557
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
9558
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
9380
9559
|
/** @deprecated This feature is coming soon */
|
|
9381
9560
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
9382
9561
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -9487,9 +9666,9 @@ declare const childToWorkerMessages: {
|
|
|
9487
9666
|
hours: number;
|
|
9488
9667
|
} | undefined);
|
|
9489
9668
|
}>]>>;
|
|
9490
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
9491
|
-
name: z.ZodOptional<z.ZodString>;
|
|
9492
9669
|
}, "strip", z.ZodTypeAny, {
|
|
9670
|
+
name?: string | undefined;
|
|
9671
|
+
concurrencyLimit?: number | undefined;
|
|
9493
9672
|
rateLimit?: {
|
|
9494
9673
|
type: "fixed-window";
|
|
9495
9674
|
limit: number;
|
|
@@ -9523,9 +9702,9 @@ declare const childToWorkerMessages: {
|
|
|
9523
9702
|
hours: number;
|
|
9524
9703
|
} | undefined);
|
|
9525
9704
|
} | undefined;
|
|
9526
|
-
concurrencyLimit?: number | undefined;
|
|
9527
|
-
name?: string | undefined;
|
|
9528
9705
|
}, {
|
|
9706
|
+
name?: string | undefined;
|
|
9707
|
+
concurrencyLimit?: number | undefined;
|
|
9529
9708
|
rateLimit?: {
|
|
9530
9709
|
type: "fixed-window";
|
|
9531
9710
|
limit: number;
|
|
@@ -9559,14 +9738,23 @@ declare const childToWorkerMessages: {
|
|
|
9559
9738
|
hours: number;
|
|
9560
9739
|
} | undefined);
|
|
9561
9740
|
} | undefined;
|
|
9562
|
-
concurrencyLimit?: number | undefined;
|
|
9563
|
-
name?: string | undefined;
|
|
9564
9741
|
}>>;
|
|
9565
9742
|
retry: z.ZodOptional<z.ZodObject<{
|
|
9743
|
+
/** The number of attempts before giving up */
|
|
9566
9744
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
9745
|
+
/** The exponential factor to use when calculating the next retry time.
|
|
9746
|
+
*
|
|
9747
|
+
* Each subsequent retry will be calculated as `previousTimeout * factor`
|
|
9748
|
+
*/
|
|
9567
9749
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
9750
|
+
/** The minimum time to wait before retrying */
|
|
9568
9751
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
9752
|
+
/** The maximum time to wait before retrying */
|
|
9569
9753
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
9754
|
+
/** Randomize the timeout between retries.
|
|
9755
|
+
*
|
|
9756
|
+
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
9757
|
+
*/
|
|
9570
9758
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
9571
9759
|
}, "strip", z.ZodTypeAny, {
|
|
9572
9760
|
maxAttempts?: number | undefined;
|
|
@@ -9589,6 +9777,8 @@ declare const childToWorkerMessages: {
|
|
|
9589
9777
|
exportName: string;
|
|
9590
9778
|
packageVersion: string;
|
|
9591
9779
|
queue?: {
|
|
9780
|
+
name?: string | undefined;
|
|
9781
|
+
concurrencyLimit?: number | undefined;
|
|
9592
9782
|
rateLimit?: {
|
|
9593
9783
|
type: "fixed-window";
|
|
9594
9784
|
limit: number;
|
|
@@ -9622,8 +9812,6 @@ declare const childToWorkerMessages: {
|
|
|
9622
9812
|
hours: number;
|
|
9623
9813
|
} | undefined);
|
|
9624
9814
|
} | undefined;
|
|
9625
|
-
concurrencyLimit?: number | undefined;
|
|
9626
|
-
name?: string | undefined;
|
|
9627
9815
|
} | undefined;
|
|
9628
9816
|
retry?: {
|
|
9629
9817
|
maxAttempts?: number | undefined;
|
|
@@ -9638,6 +9826,8 @@ declare const childToWorkerMessages: {
|
|
|
9638
9826
|
exportName: string;
|
|
9639
9827
|
packageVersion: string;
|
|
9640
9828
|
queue?: {
|
|
9829
|
+
name?: string | undefined;
|
|
9830
|
+
concurrencyLimit?: number | undefined;
|
|
9641
9831
|
rateLimit?: {
|
|
9642
9832
|
type: "fixed-window";
|
|
9643
9833
|
limit: number;
|
|
@@ -9671,8 +9861,6 @@ declare const childToWorkerMessages: {
|
|
|
9671
9861
|
hours: number;
|
|
9672
9862
|
} | undefined);
|
|
9673
9863
|
} | undefined;
|
|
9674
|
-
concurrencyLimit?: number | undefined;
|
|
9675
|
-
name?: string | undefined;
|
|
9676
9864
|
} | undefined;
|
|
9677
9865
|
retry?: {
|
|
9678
9866
|
maxAttempts?: number | undefined;
|
|
@@ -9690,6 +9878,8 @@ declare const childToWorkerMessages: {
|
|
|
9690
9878
|
exportName: string;
|
|
9691
9879
|
packageVersion: string;
|
|
9692
9880
|
queue?: {
|
|
9881
|
+
name?: string | undefined;
|
|
9882
|
+
concurrencyLimit?: number | undefined;
|
|
9693
9883
|
rateLimit?: {
|
|
9694
9884
|
type: "fixed-window";
|
|
9695
9885
|
limit: number;
|
|
@@ -9723,8 +9913,6 @@ declare const childToWorkerMessages: {
|
|
|
9723
9913
|
hours: number;
|
|
9724
9914
|
} | undefined);
|
|
9725
9915
|
} | undefined;
|
|
9726
|
-
concurrencyLimit?: number | undefined;
|
|
9727
|
-
name?: string | undefined;
|
|
9728
9916
|
} | undefined;
|
|
9729
9917
|
retry?: {
|
|
9730
9918
|
maxAttempts?: number | undefined;
|
|
@@ -9741,6 +9929,8 @@ declare const childToWorkerMessages: {
|
|
|
9741
9929
|
exportName: string;
|
|
9742
9930
|
packageVersion: string;
|
|
9743
9931
|
queue?: {
|
|
9932
|
+
name?: string | undefined;
|
|
9933
|
+
concurrencyLimit?: number | undefined;
|
|
9744
9934
|
rateLimit?: {
|
|
9745
9935
|
type: "fixed-window";
|
|
9746
9936
|
limit: number;
|
|
@@ -9774,8 +9964,6 @@ declare const childToWorkerMessages: {
|
|
|
9774
9964
|
hours: number;
|
|
9775
9965
|
} | undefined);
|
|
9776
9966
|
} | undefined;
|
|
9777
|
-
concurrencyLimit?: number | undefined;
|
|
9778
|
-
name?: string | undefined;
|
|
9779
9967
|
} | undefined;
|
|
9780
9968
|
retry?: {
|
|
9781
9969
|
maxAttempts?: number | undefined;
|
|
@@ -10380,6 +10568,42 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10380
10568
|
id: z.ZodString;
|
|
10381
10569
|
exportName: z.ZodString;
|
|
10382
10570
|
queue: z.ZodOptional<z.ZodObject<{
|
|
10571
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
10572
|
+
*
|
|
10573
|
+
* @example
|
|
10574
|
+
*
|
|
10575
|
+
* ```ts
|
|
10576
|
+
* const myQueue = queue({
|
|
10577
|
+
name: "my-queue",
|
|
10578
|
+
concurrencyLimit: 1,
|
|
10579
|
+
});
|
|
10580
|
+
|
|
10581
|
+
export const task1 = task({
|
|
10582
|
+
id: "task-1",
|
|
10583
|
+
queue: {
|
|
10584
|
+
name: "my-queue",
|
|
10585
|
+
},
|
|
10586
|
+
run: async (payload: { message: string }) => {
|
|
10587
|
+
// ...
|
|
10588
|
+
},
|
|
10589
|
+
});
|
|
10590
|
+
|
|
10591
|
+
export const task2 = task({
|
|
10592
|
+
id: "task-2",
|
|
10593
|
+
queue: {
|
|
10594
|
+
name: "my-queue",
|
|
10595
|
+
},
|
|
10596
|
+
run: async (payload: { message: string }) => {
|
|
10597
|
+
// ...
|
|
10598
|
+
},
|
|
10599
|
+
});
|
|
10600
|
+
* ```
|
|
10601
|
+
*/
|
|
10602
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10603
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
10604
|
+
*
|
|
10605
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
10606
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
10383
10607
|
/** @deprecated This feature is coming soon */
|
|
10384
10608
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10385
10609
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -10490,9 +10714,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10490
10714
|
hours: number;
|
|
10491
10715
|
} | undefined);
|
|
10492
10716
|
}>]>>;
|
|
10493
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
10494
|
-
name: z.ZodOptional<z.ZodString>;
|
|
10495
10717
|
}, "strip", z.ZodTypeAny, {
|
|
10718
|
+
name?: string | undefined;
|
|
10719
|
+
concurrencyLimit?: number | undefined;
|
|
10496
10720
|
rateLimit?: {
|
|
10497
10721
|
type: "fixed-window";
|
|
10498
10722
|
limit: number;
|
|
@@ -10526,9 +10750,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10526
10750
|
hours: number;
|
|
10527
10751
|
} | undefined);
|
|
10528
10752
|
} | undefined;
|
|
10529
|
-
concurrencyLimit?: number | undefined;
|
|
10530
|
-
name?: string | undefined;
|
|
10531
10753
|
}, {
|
|
10754
|
+
name?: string | undefined;
|
|
10755
|
+
concurrencyLimit?: number | undefined;
|
|
10532
10756
|
rateLimit?: {
|
|
10533
10757
|
type: "fixed-window";
|
|
10534
10758
|
limit: number;
|
|
@@ -10562,14 +10786,23 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10562
10786
|
hours: number;
|
|
10563
10787
|
} | undefined);
|
|
10564
10788
|
} | undefined;
|
|
10565
|
-
concurrencyLimit?: number | undefined;
|
|
10566
|
-
name?: string | undefined;
|
|
10567
10789
|
}>>;
|
|
10568
10790
|
retry: z.ZodOptional<z.ZodObject<{
|
|
10791
|
+
/** The number of attempts before giving up */
|
|
10569
10792
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
10793
|
+
/** The exponential factor to use when calculating the next retry time.
|
|
10794
|
+
*
|
|
10795
|
+
* Each subsequent retry will be calculated as `previousTimeout * factor`
|
|
10796
|
+
*/
|
|
10570
10797
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
10798
|
+
/** The minimum time to wait before retrying */
|
|
10571
10799
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
10800
|
+
/** The maximum time to wait before retrying */
|
|
10572
10801
|
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
10802
|
+
/** Randomize the timeout between retries.
|
|
10803
|
+
*
|
|
10804
|
+
* This can be useful to prevent the thundering herd problem where all retries happen at the same time.
|
|
10805
|
+
*/
|
|
10573
10806
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
10574
10807
|
}, "strip", z.ZodTypeAny, {
|
|
10575
10808
|
maxAttempts?: number | undefined;
|
|
@@ -10592,6 +10825,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10592
10825
|
exportName: string;
|
|
10593
10826
|
packageVersion: string;
|
|
10594
10827
|
queue?: {
|
|
10828
|
+
name?: string | undefined;
|
|
10829
|
+
concurrencyLimit?: number | undefined;
|
|
10595
10830
|
rateLimit?: {
|
|
10596
10831
|
type: "fixed-window";
|
|
10597
10832
|
limit: number;
|
|
@@ -10625,8 +10860,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10625
10860
|
hours: number;
|
|
10626
10861
|
} | undefined);
|
|
10627
10862
|
} | undefined;
|
|
10628
|
-
concurrencyLimit?: number | undefined;
|
|
10629
|
-
name?: string | undefined;
|
|
10630
10863
|
} | undefined;
|
|
10631
10864
|
retry?: {
|
|
10632
10865
|
maxAttempts?: number | undefined;
|
|
@@ -10641,6 +10874,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10641
10874
|
exportName: string;
|
|
10642
10875
|
packageVersion: string;
|
|
10643
10876
|
queue?: {
|
|
10877
|
+
name?: string | undefined;
|
|
10878
|
+
concurrencyLimit?: number | undefined;
|
|
10644
10879
|
rateLimit?: {
|
|
10645
10880
|
type: "fixed-window";
|
|
10646
10881
|
limit: number;
|
|
@@ -10674,8 +10909,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10674
10909
|
hours: number;
|
|
10675
10910
|
} | undefined);
|
|
10676
10911
|
} | undefined;
|
|
10677
|
-
concurrencyLimit?: number | undefined;
|
|
10678
|
-
name?: string | undefined;
|
|
10679
10912
|
} | undefined;
|
|
10680
10913
|
retry?: {
|
|
10681
10914
|
maxAttempts?: number | undefined;
|
|
@@ -10693,6 +10926,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10693
10926
|
exportName: string;
|
|
10694
10927
|
packageVersion: string;
|
|
10695
10928
|
queue?: {
|
|
10929
|
+
name?: string | undefined;
|
|
10930
|
+
concurrencyLimit?: number | undefined;
|
|
10696
10931
|
rateLimit?: {
|
|
10697
10932
|
type: "fixed-window";
|
|
10698
10933
|
limit: number;
|
|
@@ -10726,8 +10961,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10726
10961
|
hours: number;
|
|
10727
10962
|
} | undefined);
|
|
10728
10963
|
} | undefined;
|
|
10729
|
-
concurrencyLimit?: number | undefined;
|
|
10730
|
-
name?: string | undefined;
|
|
10731
10964
|
} | undefined;
|
|
10732
10965
|
retry?: {
|
|
10733
10966
|
maxAttempts?: number | undefined;
|
|
@@ -10744,6 +10977,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10744
10977
|
exportName: string;
|
|
10745
10978
|
packageVersion: string;
|
|
10746
10979
|
queue?: {
|
|
10980
|
+
name?: string | undefined;
|
|
10981
|
+
concurrencyLimit?: number | undefined;
|
|
10747
10982
|
rateLimit?: {
|
|
10748
10983
|
type: "fixed-window";
|
|
10749
10984
|
limit: number;
|
|
@@ -10777,8 +11012,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10777
11012
|
hours: number;
|
|
10778
11013
|
} | undefined);
|
|
10779
11014
|
} | undefined;
|
|
10780
|
-
concurrencyLimit?: number | undefined;
|
|
10781
|
-
name?: string | undefined;
|
|
10782
11015
|
} | undefined;
|
|
10783
11016
|
retry?: {
|
|
10784
11017
|
maxAttempts?: number | undefined;
|
|
@@ -10806,15 +11039,36 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10806
11039
|
READY_TO_DISPOSE: {
|
|
10807
11040
|
message: z.ZodUndefined;
|
|
10808
11041
|
};
|
|
11042
|
+
READY_FOR_CHECKPOINT: {
|
|
11043
|
+
message: z.ZodObject<{
|
|
11044
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
11045
|
+
}, "strip", z.ZodTypeAny, {
|
|
11046
|
+
version: "v1";
|
|
11047
|
+
}, {
|
|
11048
|
+
version?: "v1" | undefined;
|
|
11049
|
+
}>;
|
|
11050
|
+
};
|
|
11051
|
+
CANCEL_CHECKPOINT: {
|
|
11052
|
+
message: z.ZodObject<{
|
|
11053
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
11054
|
+
}, "strip", z.ZodTypeAny, {
|
|
11055
|
+
version: "v1";
|
|
11056
|
+
}, {
|
|
11057
|
+
version?: "v1" | undefined;
|
|
11058
|
+
}>;
|
|
11059
|
+
};
|
|
10809
11060
|
WAIT_FOR_DURATION: {
|
|
10810
11061
|
message: z.ZodObject<{
|
|
10811
11062
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10812
11063
|
ms: z.ZodNumber;
|
|
11064
|
+
now: z.ZodNumber;
|
|
10813
11065
|
}, "strip", z.ZodTypeAny, {
|
|
10814
11066
|
version: "v1";
|
|
10815
11067
|
ms: number;
|
|
11068
|
+
now: number;
|
|
10816
11069
|
}, {
|
|
10817
11070
|
ms: number;
|
|
11071
|
+
now: number;
|
|
10818
11072
|
version?: "v1" | undefined;
|
|
10819
11073
|
}>;
|
|
10820
11074
|
callback: z.ZodObject<{
|
|
@@ -10828,27 +11082,27 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10828
11082
|
WAIT_FOR_TASK: {
|
|
10829
11083
|
message: z.ZodObject<{
|
|
10830
11084
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10831
|
-
|
|
11085
|
+
friendlyId: z.ZodString;
|
|
10832
11086
|
}, "strip", z.ZodTypeAny, {
|
|
10833
|
-
id: string;
|
|
10834
11087
|
version: "v1";
|
|
11088
|
+
friendlyId: string;
|
|
10835
11089
|
}, {
|
|
10836
|
-
|
|
11090
|
+
friendlyId: string;
|
|
10837
11091
|
version?: "v1" | undefined;
|
|
10838
11092
|
}>;
|
|
10839
11093
|
};
|
|
10840
11094
|
WAIT_FOR_BATCH: {
|
|
10841
11095
|
message: z.ZodObject<{
|
|
10842
11096
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10843
|
-
|
|
10844
|
-
|
|
11097
|
+
batchFriendlyId: z.ZodString;
|
|
11098
|
+
runFriendlyIds: z.ZodArray<z.ZodString, "many">;
|
|
10845
11099
|
}, "strip", z.ZodTypeAny, {
|
|
10846
|
-
id: string;
|
|
10847
11100
|
version: "v1";
|
|
10848
|
-
|
|
11101
|
+
batchFriendlyId: string;
|
|
11102
|
+
runFriendlyIds: string[];
|
|
10849
11103
|
}, {
|
|
10850
|
-
|
|
10851
|
-
|
|
11104
|
+
batchFriendlyId: string;
|
|
11105
|
+
runFriendlyIds: string[];
|
|
10852
11106
|
version?: "v1" | undefined;
|
|
10853
11107
|
}>;
|
|
10854
11108
|
};
|
|
@@ -11803,7 +12057,9 @@ interface ProjectConfig {
|
|
|
11803
12057
|
|
|
11804
12058
|
type InitOutput = Record<string, any> | void | undefined;
|
|
11805
12059
|
type RunFnParams<TInitOutput extends InitOutput> = Prettify<{
|
|
12060
|
+
/** Metadata about the task, run, attempt, queue, environment, organization, project and batch. */
|
|
11806
12061
|
ctx: Context;
|
|
12062
|
+
/** If you use the `init` function, this will be whatever you returned. */
|
|
11807
12063
|
init?: TInitOutput;
|
|
11808
12064
|
}>;
|
|
11809
12065
|
type MiddlewareFnParams = Prettify<{
|
|
@@ -11948,6 +12204,8 @@ declare const Machine: z.ZodObject<{
|
|
|
11948
12204
|
memory?: string | undefined;
|
|
11949
12205
|
}>;
|
|
11950
12206
|
type Machine = z.infer<typeof Machine>;
|
|
12207
|
+
declare const WaitReason: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
12208
|
+
type WaitReason = z.infer<typeof WaitReason>;
|
|
11951
12209
|
declare const ProviderToPlatformMessages: {
|
|
11952
12210
|
LOG: {
|
|
11953
12211
|
message: z.ZodObject<{
|
|
@@ -12002,23 +12260,23 @@ declare const PlatformToProviderMessages: {
|
|
|
12002
12260
|
message: z.ZodObject<{
|
|
12003
12261
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12004
12262
|
imageTag: z.ZodString;
|
|
12005
|
-
|
|
12263
|
+
shortCode: z.ZodString;
|
|
12006
12264
|
envId: z.ZodString;
|
|
12007
12265
|
apiKey: z.ZodString;
|
|
12008
12266
|
apiUrl: z.ZodString;
|
|
12009
12267
|
}, "strip", z.ZodTypeAny, {
|
|
12010
|
-
contentHash: string;
|
|
12011
12268
|
version: "v1";
|
|
12012
12269
|
envId: string;
|
|
12013
12270
|
imageTag: string;
|
|
12014
12271
|
apiKey: string;
|
|
12015
12272
|
apiUrl: string;
|
|
12273
|
+
shortCode: string;
|
|
12016
12274
|
}, {
|
|
12017
|
-
contentHash: string;
|
|
12018
12275
|
envId: string;
|
|
12019
12276
|
imageTag: string;
|
|
12020
12277
|
apiKey: string;
|
|
12021
12278
|
apiUrl: string;
|
|
12279
|
+
shortCode: string;
|
|
12022
12280
|
version?: "v1" | undefined;
|
|
12023
12281
|
}>;
|
|
12024
12282
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -12093,24 +12351,24 @@ declare const PlatformToProviderMessages: {
|
|
|
12093
12351
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12094
12352
|
checkpointId: z.ZodString;
|
|
12095
12353
|
runId: z.ZodString;
|
|
12096
|
-
attemptId: z.ZodString;
|
|
12097
12354
|
type: z.ZodEnum<["DOCKER", "KUBERNETES"]>;
|
|
12098
12355
|
location: z.ZodString;
|
|
12099
12356
|
reason: z.ZodOptional<z.ZodString>;
|
|
12357
|
+
imageRef: z.ZodString;
|
|
12100
12358
|
}, "strip", z.ZodTypeAny, {
|
|
12101
12359
|
type: "DOCKER" | "KUBERNETES";
|
|
12102
12360
|
version: "v1";
|
|
12103
12361
|
runId: string;
|
|
12104
12362
|
checkpointId: string;
|
|
12105
|
-
attemptId: string;
|
|
12106
12363
|
location: string;
|
|
12364
|
+
imageRef: string;
|
|
12107
12365
|
reason?: string | undefined;
|
|
12108
12366
|
}, {
|
|
12109
12367
|
type: "DOCKER" | "KUBERNETES";
|
|
12110
12368
|
runId: string;
|
|
12111
12369
|
checkpointId: string;
|
|
12112
|
-
attemptId: string;
|
|
12113
12370
|
location: string;
|
|
12371
|
+
imageRef: string;
|
|
12114
12372
|
version?: "v1" | undefined;
|
|
12115
12373
|
reason?: string | undefined;
|
|
12116
12374
|
}>;
|
|
@@ -12178,6 +12436,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12178
12436
|
filePath: z.ZodString;
|
|
12179
12437
|
exportName: z.ZodString;
|
|
12180
12438
|
queue: z.ZodOptional<z.ZodObject<{
|
|
12439
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12440
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
12181
12441
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12182
12442
|
type: z.ZodLiteral<"fixed-window">;
|
|
12183
12443
|
limit: z.ZodNumber;
|
|
@@ -12287,9 +12547,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12287
12547
|
hours: number;
|
|
12288
12548
|
} | undefined);
|
|
12289
12549
|
}>]>>;
|
|
12290
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
12291
|
-
name: z.ZodOptional<z.ZodString>;
|
|
12292
12550
|
}, "strip", z.ZodTypeAny, {
|
|
12551
|
+
name?: string | undefined;
|
|
12552
|
+
concurrencyLimit?: number | undefined;
|
|
12293
12553
|
rateLimit?: {
|
|
12294
12554
|
type: "fixed-window";
|
|
12295
12555
|
limit: number;
|
|
@@ -12323,9 +12583,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12323
12583
|
hours: number;
|
|
12324
12584
|
} | undefined);
|
|
12325
12585
|
} | undefined;
|
|
12326
|
-
concurrencyLimit?: number | undefined;
|
|
12327
|
-
name?: string | undefined;
|
|
12328
12586
|
}, {
|
|
12587
|
+
name?: string | undefined;
|
|
12588
|
+
concurrencyLimit?: number | undefined;
|
|
12329
12589
|
rateLimit?: {
|
|
12330
12590
|
type: "fixed-window";
|
|
12331
12591
|
limit: number;
|
|
@@ -12359,8 +12619,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12359
12619
|
hours: number;
|
|
12360
12620
|
} | undefined);
|
|
12361
12621
|
} | undefined;
|
|
12362
|
-
concurrencyLimit?: number | undefined;
|
|
12363
|
-
name?: string | undefined;
|
|
12364
12622
|
}>>;
|
|
12365
12623
|
retry: z.ZodOptional<z.ZodObject<{
|
|
12366
12624
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12386,6 +12644,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12386
12644
|
filePath: string;
|
|
12387
12645
|
exportName: string;
|
|
12388
12646
|
queue?: {
|
|
12647
|
+
name?: string | undefined;
|
|
12648
|
+
concurrencyLimit?: number | undefined;
|
|
12389
12649
|
rateLimit?: {
|
|
12390
12650
|
type: "fixed-window";
|
|
12391
12651
|
limit: number;
|
|
@@ -12419,8 +12679,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12419
12679
|
hours: number;
|
|
12420
12680
|
} | undefined);
|
|
12421
12681
|
} | undefined;
|
|
12422
|
-
concurrencyLimit?: number | undefined;
|
|
12423
|
-
name?: string | undefined;
|
|
12424
12682
|
} | undefined;
|
|
12425
12683
|
retry?: {
|
|
12426
12684
|
maxAttempts?: number | undefined;
|
|
@@ -12434,6 +12692,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12434
12692
|
filePath: string;
|
|
12435
12693
|
exportName: string;
|
|
12436
12694
|
queue?: {
|
|
12695
|
+
name?: string | undefined;
|
|
12696
|
+
concurrencyLimit?: number | undefined;
|
|
12437
12697
|
rateLimit?: {
|
|
12438
12698
|
type: "fixed-window";
|
|
12439
12699
|
limit: number;
|
|
@@ -12467,8 +12727,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12467
12727
|
hours: number;
|
|
12468
12728
|
} | undefined);
|
|
12469
12729
|
} | undefined;
|
|
12470
|
-
concurrencyLimit?: number | undefined;
|
|
12471
|
-
name?: string | undefined;
|
|
12472
12730
|
} | undefined;
|
|
12473
12731
|
retry?: {
|
|
12474
12732
|
maxAttempts?: number | undefined;
|
|
@@ -12486,6 +12744,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12486
12744
|
filePath: string;
|
|
12487
12745
|
exportName: string;
|
|
12488
12746
|
queue?: {
|
|
12747
|
+
name?: string | undefined;
|
|
12748
|
+
concurrencyLimit?: number | undefined;
|
|
12489
12749
|
rateLimit?: {
|
|
12490
12750
|
type: "fixed-window";
|
|
12491
12751
|
limit: number;
|
|
@@ -12519,8 +12779,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12519
12779
|
hours: number;
|
|
12520
12780
|
} | undefined);
|
|
12521
12781
|
} | undefined;
|
|
12522
|
-
concurrencyLimit?: number | undefined;
|
|
12523
|
-
name?: string | undefined;
|
|
12524
12782
|
} | undefined;
|
|
12525
12783
|
retry?: {
|
|
12526
12784
|
maxAttempts?: number | undefined;
|
|
@@ -12539,6 +12797,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12539
12797
|
filePath: string;
|
|
12540
12798
|
exportName: string;
|
|
12541
12799
|
queue?: {
|
|
12800
|
+
name?: string | undefined;
|
|
12801
|
+
concurrencyLimit?: number | undefined;
|
|
12542
12802
|
rateLimit?: {
|
|
12543
12803
|
type: "fixed-window";
|
|
12544
12804
|
limit: number;
|
|
@@ -12572,8 +12832,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12572
12832
|
hours: number;
|
|
12573
12833
|
} | undefined);
|
|
12574
12834
|
} | undefined;
|
|
12575
|
-
concurrencyLimit?: number | undefined;
|
|
12576
|
-
name?: string | undefined;
|
|
12577
12835
|
} | undefined;
|
|
12578
12836
|
retry?: {
|
|
12579
12837
|
maxAttempts?: number | undefined;
|
|
@@ -12596,6 +12854,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12596
12854
|
filePath: string;
|
|
12597
12855
|
exportName: string;
|
|
12598
12856
|
queue?: {
|
|
12857
|
+
name?: string | undefined;
|
|
12858
|
+
concurrencyLimit?: number | undefined;
|
|
12599
12859
|
rateLimit?: {
|
|
12600
12860
|
type: "fixed-window";
|
|
12601
12861
|
limit: number;
|
|
@@ -12629,8 +12889,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12629
12889
|
hours: number;
|
|
12630
12890
|
} | undefined);
|
|
12631
12891
|
} | undefined;
|
|
12632
|
-
concurrencyLimit?: number | undefined;
|
|
12633
|
-
name?: string | undefined;
|
|
12634
12892
|
} | undefined;
|
|
12635
12893
|
retry?: {
|
|
12636
12894
|
maxAttempts?: number | undefined;
|
|
@@ -12654,6 +12912,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12654
12912
|
filePath: string;
|
|
12655
12913
|
exportName: string;
|
|
12656
12914
|
queue?: {
|
|
12915
|
+
name?: string | undefined;
|
|
12916
|
+
concurrencyLimit?: number | undefined;
|
|
12657
12917
|
rateLimit?: {
|
|
12658
12918
|
type: "fixed-window";
|
|
12659
12919
|
limit: number;
|
|
@@ -12687,8 +12947,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12687
12947
|
hours: number;
|
|
12688
12948
|
} | undefined);
|
|
12689
12949
|
} | undefined;
|
|
12690
|
-
concurrencyLimit?: number | undefined;
|
|
12691
|
-
name?: string | undefined;
|
|
12692
12950
|
} | undefined;
|
|
12693
12951
|
retry?: {
|
|
12694
12952
|
maxAttempts?: number | undefined;
|
|
@@ -12721,15 +12979,15 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12721
12979
|
READY_FOR_EXECUTION: {
|
|
12722
12980
|
message: z.ZodObject<{
|
|
12723
12981
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12724
|
-
attemptId: z.ZodString;
|
|
12725
12982
|
runId: z.ZodString;
|
|
12983
|
+
totalCompletions: z.ZodNumber;
|
|
12726
12984
|
}, "strip", z.ZodTypeAny, {
|
|
12727
12985
|
version: "v1";
|
|
12728
12986
|
runId: string;
|
|
12729
|
-
|
|
12987
|
+
totalCompletions: number;
|
|
12730
12988
|
}, {
|
|
12731
12989
|
runId: string;
|
|
12732
|
-
|
|
12990
|
+
totalCompletions: number;
|
|
12733
12991
|
version?: "v1" | undefined;
|
|
12734
12992
|
}>;
|
|
12735
12993
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -13211,15 +13469,15 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13211
13469
|
READY_FOR_RESUME: {
|
|
13212
13470
|
message: z.ZodObject<{
|
|
13213
13471
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
13214
|
-
|
|
13472
|
+
attemptFriendlyId: z.ZodString;
|
|
13215
13473
|
type: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
13216
13474
|
}, "strip", z.ZodTypeAny, {
|
|
13217
13475
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
13218
13476
|
version: "v1";
|
|
13219
|
-
|
|
13477
|
+
attemptFriendlyId: string;
|
|
13220
13478
|
}, {
|
|
13221
13479
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
13222
|
-
|
|
13480
|
+
attemptFriendlyId: string;
|
|
13223
13481
|
version?: "v1" | undefined;
|
|
13224
13482
|
}>;
|
|
13225
13483
|
};
|
|
@@ -13591,6 +13849,16 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13591
13849
|
} | undefined;
|
|
13592
13850
|
skippedRetrying?: boolean | undefined;
|
|
13593
13851
|
}>]>;
|
|
13852
|
+
checkpoint: z.ZodOptional<z.ZodObject<{
|
|
13853
|
+
docker: z.ZodBoolean;
|
|
13854
|
+
location: z.ZodString;
|
|
13855
|
+
}, "strip", z.ZodTypeAny, {
|
|
13856
|
+
location: string;
|
|
13857
|
+
docker: boolean;
|
|
13858
|
+
}, {
|
|
13859
|
+
location: string;
|
|
13860
|
+
docker: boolean;
|
|
13861
|
+
}>>;
|
|
13594
13862
|
}, "strip", z.ZodTypeAny, {
|
|
13595
13863
|
execution: {
|
|
13596
13864
|
task: {
|
|
@@ -13676,6 +13944,10 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13676
13944
|
outputType: string;
|
|
13677
13945
|
output?: string | undefined;
|
|
13678
13946
|
};
|
|
13947
|
+
checkpoint?: {
|
|
13948
|
+
location: string;
|
|
13949
|
+
docker: boolean;
|
|
13950
|
+
} | undefined;
|
|
13679
13951
|
}, {
|
|
13680
13952
|
execution: {
|
|
13681
13953
|
task: {
|
|
@@ -13761,6 +14033,10 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13761
14033
|
output?: string | undefined;
|
|
13762
14034
|
};
|
|
13763
14035
|
version?: "v1" | undefined;
|
|
14036
|
+
checkpoint?: {
|
|
14037
|
+
location: string;
|
|
14038
|
+
docker: boolean;
|
|
14039
|
+
} | undefined;
|
|
13764
14040
|
}>;
|
|
13765
14041
|
};
|
|
13766
14042
|
TASK_HEARTBEAT: {
|
|
@@ -13778,36 +14054,42 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13778
14054
|
CHECKPOINT_CREATED: {
|
|
13779
14055
|
message: z.ZodObject<{
|
|
13780
14056
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
13781
|
-
|
|
14057
|
+
attemptFriendlyId: z.ZodString;
|
|
13782
14058
|
docker: z.ZodBoolean;
|
|
13783
14059
|
location: z.ZodString;
|
|
13784
14060
|
reason: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
13785
14061
|
type: z.ZodLiteral<"WAIT_FOR_DURATION">;
|
|
13786
14062
|
ms: z.ZodNumber;
|
|
14063
|
+
now: z.ZodNumber;
|
|
13787
14064
|
}, "strip", z.ZodTypeAny, {
|
|
13788
14065
|
type: "WAIT_FOR_DURATION";
|
|
13789
14066
|
ms: number;
|
|
14067
|
+
now: number;
|
|
13790
14068
|
}, {
|
|
13791
14069
|
type: "WAIT_FOR_DURATION";
|
|
13792
14070
|
ms: number;
|
|
14071
|
+
now: number;
|
|
13793
14072
|
}>, z.ZodObject<{
|
|
13794
14073
|
type: z.ZodLiteral<"WAIT_FOR_BATCH">;
|
|
13795
|
-
|
|
14074
|
+
batchFriendlyId: z.ZodString;
|
|
14075
|
+
runFriendlyIds: z.ZodArray<z.ZodString, "many">;
|
|
13796
14076
|
}, "strip", z.ZodTypeAny, {
|
|
13797
14077
|
type: "WAIT_FOR_BATCH";
|
|
13798
|
-
|
|
14078
|
+
batchFriendlyId: string;
|
|
14079
|
+
runFriendlyIds: string[];
|
|
13799
14080
|
}, {
|
|
13800
14081
|
type: "WAIT_FOR_BATCH";
|
|
13801
|
-
|
|
14082
|
+
batchFriendlyId: string;
|
|
14083
|
+
runFriendlyIds: string[];
|
|
13802
14084
|
}>, z.ZodObject<{
|
|
13803
14085
|
type: z.ZodLiteral<"WAIT_FOR_TASK">;
|
|
13804
|
-
|
|
14086
|
+
friendlyId: z.ZodString;
|
|
13805
14087
|
}, "strip", z.ZodTypeAny, {
|
|
13806
14088
|
type: "WAIT_FOR_TASK";
|
|
13807
|
-
|
|
14089
|
+
friendlyId: string;
|
|
13808
14090
|
}, {
|
|
13809
14091
|
type: "WAIT_FOR_TASK";
|
|
13810
|
-
|
|
14092
|
+
friendlyId: string;
|
|
13811
14093
|
}>, z.ZodObject<{
|
|
13812
14094
|
type: z.ZodLiteral<"RETRYING_AFTER_FAILURE">;
|
|
13813
14095
|
attemptNumber: z.ZodNumber;
|
|
@@ -13820,38 +14102,42 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13820
14102
|
}>]>;
|
|
13821
14103
|
}, "strip", z.ZodTypeAny, {
|
|
13822
14104
|
version: "v1";
|
|
13823
|
-
attemptId: string;
|
|
13824
14105
|
location: string;
|
|
13825
14106
|
reason: {
|
|
13826
14107
|
type: "WAIT_FOR_DURATION";
|
|
13827
14108
|
ms: number;
|
|
14109
|
+
now: number;
|
|
13828
14110
|
} | {
|
|
13829
14111
|
type: "WAIT_FOR_BATCH";
|
|
13830
|
-
|
|
14112
|
+
batchFriendlyId: string;
|
|
14113
|
+
runFriendlyIds: string[];
|
|
13831
14114
|
} | {
|
|
13832
14115
|
type: "WAIT_FOR_TASK";
|
|
13833
|
-
|
|
14116
|
+
friendlyId: string;
|
|
13834
14117
|
} | {
|
|
13835
14118
|
type: "RETRYING_AFTER_FAILURE";
|
|
13836
14119
|
attemptNumber: number;
|
|
13837
14120
|
};
|
|
14121
|
+
attemptFriendlyId: string;
|
|
13838
14122
|
docker: boolean;
|
|
13839
14123
|
}, {
|
|
13840
|
-
attemptId: string;
|
|
13841
14124
|
location: string;
|
|
13842
14125
|
reason: {
|
|
13843
14126
|
type: "WAIT_FOR_DURATION";
|
|
13844
14127
|
ms: number;
|
|
14128
|
+
now: number;
|
|
13845
14129
|
} | {
|
|
13846
14130
|
type: "WAIT_FOR_BATCH";
|
|
13847
|
-
|
|
14131
|
+
batchFriendlyId: string;
|
|
14132
|
+
runFriendlyIds: string[];
|
|
13848
14133
|
} | {
|
|
13849
14134
|
type: "WAIT_FOR_TASK";
|
|
13850
|
-
|
|
14135
|
+
friendlyId: string;
|
|
13851
14136
|
} | {
|
|
13852
14137
|
type: "RETRYING_AFTER_FAILURE";
|
|
13853
14138
|
attemptNumber: number;
|
|
13854
14139
|
};
|
|
14140
|
+
attemptFriendlyId: string;
|
|
13855
14141
|
docker: boolean;
|
|
13856
14142
|
version?: "v1" | undefined;
|
|
13857
14143
|
}>;
|
|
@@ -13893,10 +14179,12 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13893
14179
|
};
|
|
13894
14180
|
};
|
|
13895
14181
|
declare const PlatformToCoordinatorMessages: {
|
|
13896
|
-
|
|
14182
|
+
RESUME_AFTER_DEPENDENCY: {
|
|
13897
14183
|
message: z.ZodObject<{
|
|
13898
14184
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14185
|
+
runId: z.ZodString;
|
|
13899
14186
|
attemptId: z.ZodString;
|
|
14187
|
+
attemptFriendlyId: z.ZodString;
|
|
13900
14188
|
completions: z.ZodArray<z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
13901
14189
|
ok: z.ZodLiteral<true>;
|
|
13902
14190
|
id: z.ZodString;
|
|
@@ -14241,6 +14529,8 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14241
14529
|
}>, "many">;
|
|
14242
14530
|
}, "strip", z.ZodTypeAny, {
|
|
14243
14531
|
version: "v1";
|
|
14532
|
+
runId: string;
|
|
14533
|
+
attemptFriendlyId: string;
|
|
14244
14534
|
attemptId: string;
|
|
14245
14535
|
completions: ({
|
|
14246
14536
|
error: {
|
|
@@ -14321,6 +14611,8 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14321
14611
|
} | undefined;
|
|
14322
14612
|
}[];
|
|
14323
14613
|
}, {
|
|
14614
|
+
runId: string;
|
|
14615
|
+
attemptFriendlyId: string;
|
|
14324
14616
|
attemptId: string;
|
|
14325
14617
|
completions: ({
|
|
14326
14618
|
error: {
|
|
@@ -14407,10 +14699,13 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14407
14699
|
message: z.ZodObject<{
|
|
14408
14700
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14409
14701
|
attemptId: z.ZodString;
|
|
14702
|
+
attemptFriendlyId: z.ZodString;
|
|
14410
14703
|
}, "strip", z.ZodTypeAny, {
|
|
14411
14704
|
version: "v1";
|
|
14705
|
+
attemptFriendlyId: string;
|
|
14412
14706
|
attemptId: string;
|
|
14413
14707
|
}, {
|
|
14708
|
+
attemptFriendlyId: string;
|
|
14414
14709
|
attemptId: string;
|
|
14415
14710
|
version?: "v1" | undefined;
|
|
14416
14711
|
}>;
|
|
@@ -14419,14 +14714,29 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14419
14714
|
message: z.ZodObject<{
|
|
14420
14715
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14421
14716
|
attemptId: z.ZodString;
|
|
14717
|
+
attemptFriendlyId: z.ZodString;
|
|
14422
14718
|
}, "strip", z.ZodTypeAny, {
|
|
14423
14719
|
version: "v1";
|
|
14720
|
+
attemptFriendlyId: string;
|
|
14424
14721
|
attemptId: string;
|
|
14425
14722
|
}, {
|
|
14723
|
+
attemptFriendlyId: string;
|
|
14426
14724
|
attemptId: string;
|
|
14427
14725
|
version?: "v1" | undefined;
|
|
14428
14726
|
}>;
|
|
14429
14727
|
};
|
|
14728
|
+
READY_FOR_RETRY: {
|
|
14729
|
+
message: z.ZodObject<{
|
|
14730
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14731
|
+
runId: z.ZodString;
|
|
14732
|
+
}, "strip", z.ZodTypeAny, {
|
|
14733
|
+
version: "v1";
|
|
14734
|
+
runId: string;
|
|
14735
|
+
}, {
|
|
14736
|
+
runId: string;
|
|
14737
|
+
version?: "v1" | undefined;
|
|
14738
|
+
}>;
|
|
14739
|
+
};
|
|
14430
14740
|
};
|
|
14431
14741
|
declare const ClientToSharedQueueMessages: {
|
|
14432
14742
|
READY_FOR_TASKS: {
|
|
@@ -15618,15 +15928,18 @@ declare const SharedQueueToClientMessages: {
|
|
|
15618
15928
|
image: z.ZodString;
|
|
15619
15929
|
envId: z.ZodString;
|
|
15620
15930
|
runId: z.ZodString;
|
|
15931
|
+
version: z.ZodString;
|
|
15621
15932
|
}, "strip", z.ZodTypeAny, {
|
|
15622
15933
|
type: "SCHEDULE_ATTEMPT";
|
|
15623
15934
|
id: string;
|
|
15935
|
+
version: string;
|
|
15624
15936
|
image: string;
|
|
15625
15937
|
envId: string;
|
|
15626
15938
|
runId: string;
|
|
15627
15939
|
}, {
|
|
15628
15940
|
type: "SCHEDULE_ATTEMPT";
|
|
15629
15941
|
id: string;
|
|
15942
|
+
version: string;
|
|
15630
15943
|
image: string;
|
|
15631
15944
|
envId: string;
|
|
15632
15945
|
runId: string;
|
|
@@ -15692,6 +16005,7 @@ declare const SharedQueueToClientMessages: {
|
|
|
15692
16005
|
} | {
|
|
15693
16006
|
type: "SCHEDULE_ATTEMPT";
|
|
15694
16007
|
id: string;
|
|
16008
|
+
version: string;
|
|
15695
16009
|
image: string;
|
|
15696
16010
|
envId: string;
|
|
15697
16011
|
runId: string;
|
|
@@ -15759,6 +16073,7 @@ declare const SharedQueueToClientMessages: {
|
|
|
15759
16073
|
} | {
|
|
15760
16074
|
type: "SCHEDULE_ATTEMPT";
|
|
15761
16075
|
id: string;
|
|
16076
|
+
version: string;
|
|
15762
16077
|
image: string;
|
|
15763
16078
|
envId: string;
|
|
15764
16079
|
runId: string;
|
|
@@ -15791,6 +16106,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15791
16106
|
filePath: z.ZodString;
|
|
15792
16107
|
exportName: z.ZodString;
|
|
15793
16108
|
queue: z.ZodOptional<z.ZodObject<{
|
|
16109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16110
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
15794
16111
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
15795
16112
|
type: z.ZodLiteral<"fixed-window">;
|
|
15796
16113
|
limit: z.ZodNumber;
|
|
@@ -15900,9 +16217,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15900
16217
|
hours: number;
|
|
15901
16218
|
} | undefined);
|
|
15902
16219
|
}>]>>;
|
|
15903
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
15904
|
-
name: z.ZodOptional<z.ZodString>;
|
|
15905
16220
|
}, "strip", z.ZodTypeAny, {
|
|
16221
|
+
name?: string | undefined;
|
|
16222
|
+
concurrencyLimit?: number | undefined;
|
|
15906
16223
|
rateLimit?: {
|
|
15907
16224
|
type: "fixed-window";
|
|
15908
16225
|
limit: number;
|
|
@@ -15936,9 +16253,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15936
16253
|
hours: number;
|
|
15937
16254
|
} | undefined);
|
|
15938
16255
|
} | undefined;
|
|
15939
|
-
concurrencyLimit?: number | undefined;
|
|
15940
|
-
name?: string | undefined;
|
|
15941
16256
|
}, {
|
|
16257
|
+
name?: string | undefined;
|
|
16258
|
+
concurrencyLimit?: number | undefined;
|
|
15942
16259
|
rateLimit?: {
|
|
15943
16260
|
type: "fixed-window";
|
|
15944
16261
|
limit: number;
|
|
@@ -15972,8 +16289,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15972
16289
|
hours: number;
|
|
15973
16290
|
} | undefined);
|
|
15974
16291
|
} | undefined;
|
|
15975
|
-
concurrencyLimit?: number | undefined;
|
|
15976
|
-
name?: string | undefined;
|
|
15977
16292
|
}>>;
|
|
15978
16293
|
retry: z.ZodOptional<z.ZodObject<{
|
|
15979
16294
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -15999,6 +16314,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15999
16314
|
filePath: string;
|
|
16000
16315
|
exportName: string;
|
|
16001
16316
|
queue?: {
|
|
16317
|
+
name?: string | undefined;
|
|
16318
|
+
concurrencyLimit?: number | undefined;
|
|
16002
16319
|
rateLimit?: {
|
|
16003
16320
|
type: "fixed-window";
|
|
16004
16321
|
limit: number;
|
|
@@ -16032,8 +16349,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16032
16349
|
hours: number;
|
|
16033
16350
|
} | undefined);
|
|
16034
16351
|
} | undefined;
|
|
16035
|
-
concurrencyLimit?: number | undefined;
|
|
16036
|
-
name?: string | undefined;
|
|
16037
16352
|
} | undefined;
|
|
16038
16353
|
retry?: {
|
|
16039
16354
|
maxAttempts?: number | undefined;
|
|
@@ -16047,6 +16362,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16047
16362
|
filePath: string;
|
|
16048
16363
|
exportName: string;
|
|
16049
16364
|
queue?: {
|
|
16365
|
+
name?: string | undefined;
|
|
16366
|
+
concurrencyLimit?: number | undefined;
|
|
16050
16367
|
rateLimit?: {
|
|
16051
16368
|
type: "fixed-window";
|
|
16052
16369
|
limit: number;
|
|
@@ -16080,8 +16397,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16080
16397
|
hours: number;
|
|
16081
16398
|
} | undefined);
|
|
16082
16399
|
} | undefined;
|
|
16083
|
-
concurrencyLimit?: number | undefined;
|
|
16084
|
-
name?: string | undefined;
|
|
16085
16400
|
} | undefined;
|
|
16086
16401
|
retry?: {
|
|
16087
16402
|
maxAttempts?: number | undefined;
|
|
@@ -16100,6 +16415,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16100
16415
|
filePath: string;
|
|
16101
16416
|
exportName: string;
|
|
16102
16417
|
queue?: {
|
|
16418
|
+
name?: string | undefined;
|
|
16419
|
+
concurrencyLimit?: number | undefined;
|
|
16103
16420
|
rateLimit?: {
|
|
16104
16421
|
type: "fixed-window";
|
|
16105
16422
|
limit: number;
|
|
@@ -16133,8 +16450,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16133
16450
|
hours: number;
|
|
16134
16451
|
} | undefined);
|
|
16135
16452
|
} | undefined;
|
|
16136
|
-
concurrencyLimit?: number | undefined;
|
|
16137
|
-
name?: string | undefined;
|
|
16138
16453
|
} | undefined;
|
|
16139
16454
|
retry?: {
|
|
16140
16455
|
maxAttempts?: number | undefined;
|
|
@@ -16152,6 +16467,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16152
16467
|
filePath: string;
|
|
16153
16468
|
exportName: string;
|
|
16154
16469
|
queue?: {
|
|
16470
|
+
name?: string | undefined;
|
|
16471
|
+
concurrencyLimit?: number | undefined;
|
|
16155
16472
|
rateLimit?: {
|
|
16156
16473
|
type: "fixed-window";
|
|
16157
16474
|
limit: number;
|
|
@@ -16185,8 +16502,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16185
16502
|
hours: number;
|
|
16186
16503
|
} | undefined);
|
|
16187
16504
|
} | undefined;
|
|
16188
|
-
concurrencyLimit?: number | undefined;
|
|
16189
|
-
name?: string | undefined;
|
|
16190
16505
|
} | undefined;
|
|
16191
16506
|
retry?: {
|
|
16192
16507
|
maxAttempts?: number | undefined;
|
|
@@ -16216,30 +16531,48 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16216
16531
|
READY_FOR_EXECUTION: {
|
|
16217
16532
|
message: z.ZodObject<{
|
|
16218
16533
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16219
|
-
attemptId: z.ZodString;
|
|
16220
16534
|
runId: z.ZodString;
|
|
16535
|
+
totalCompletions: z.ZodNumber;
|
|
16221
16536
|
}, "strip", z.ZodTypeAny, {
|
|
16222
16537
|
version: "v1";
|
|
16223
16538
|
runId: string;
|
|
16224
|
-
|
|
16539
|
+
totalCompletions: number;
|
|
16225
16540
|
}, {
|
|
16226
16541
|
runId: string;
|
|
16227
|
-
|
|
16542
|
+
totalCompletions: number;
|
|
16228
16543
|
version?: "v1" | undefined;
|
|
16229
16544
|
}>;
|
|
16230
16545
|
};
|
|
16231
16546
|
READY_FOR_RESUME: {
|
|
16232
16547
|
message: z.ZodObject<{
|
|
16233
16548
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16234
|
-
|
|
16549
|
+
attemptFriendlyId: z.ZodString;
|
|
16235
16550
|
type: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
16236
16551
|
}, "strip", z.ZodTypeAny, {
|
|
16237
16552
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
16238
16553
|
version: "v1";
|
|
16239
|
-
|
|
16554
|
+
attemptFriendlyId: string;
|
|
16240
16555
|
}, {
|
|
16241
16556
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
16242
|
-
|
|
16557
|
+
attemptFriendlyId: string;
|
|
16558
|
+
version?: "v1" | undefined;
|
|
16559
|
+
}>;
|
|
16560
|
+
};
|
|
16561
|
+
READY_FOR_CHECKPOINT: {
|
|
16562
|
+
message: z.ZodObject<{
|
|
16563
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16564
|
+
}, "strip", z.ZodTypeAny, {
|
|
16565
|
+
version: "v1";
|
|
16566
|
+
}, {
|
|
16567
|
+
version?: "v1" | undefined;
|
|
16568
|
+
}>;
|
|
16569
|
+
};
|
|
16570
|
+
CANCEL_CHECKPOINT: {
|
|
16571
|
+
message: z.ZodObject<{
|
|
16572
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16573
|
+
}, "strip", z.ZodTypeAny, {
|
|
16574
|
+
version: "v1";
|
|
16575
|
+
}, {
|
|
16243
16576
|
version?: "v1" | undefined;
|
|
16244
16577
|
}>;
|
|
16245
16578
|
};
|
|
@@ -16795,13 +17128,13 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16795
17128
|
version?: "v1" | undefined;
|
|
16796
17129
|
}>;
|
|
16797
17130
|
callback: z.ZodObject<{
|
|
16798
|
-
|
|
17131
|
+
willCheckpointAndRestore: z.ZodBoolean;
|
|
16799
17132
|
shouldExit: z.ZodBoolean;
|
|
16800
17133
|
}, "strip", z.ZodTypeAny, {
|
|
16801
|
-
|
|
17134
|
+
willCheckpointAndRestore: boolean;
|
|
16802
17135
|
shouldExit: boolean;
|
|
16803
17136
|
}, {
|
|
16804
|
-
|
|
17137
|
+
willCheckpointAndRestore: boolean;
|
|
16805
17138
|
shouldExit: boolean;
|
|
16806
17139
|
}>;
|
|
16807
17140
|
};
|
|
@@ -16809,11 +17142,17 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16809
17142
|
message: z.ZodObject<{
|
|
16810
17143
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16811
17144
|
ms: z.ZodNumber;
|
|
17145
|
+
now: z.ZodNumber;
|
|
17146
|
+
attemptFriendlyId: z.ZodString;
|
|
16812
17147
|
}, "strip", z.ZodTypeAny, {
|
|
16813
17148
|
version: "v1";
|
|
16814
17149
|
ms: number;
|
|
17150
|
+
now: number;
|
|
17151
|
+
attemptFriendlyId: string;
|
|
16815
17152
|
}, {
|
|
16816
17153
|
ms: number;
|
|
17154
|
+
now: number;
|
|
17155
|
+
attemptFriendlyId: string;
|
|
16817
17156
|
version?: "v1" | undefined;
|
|
16818
17157
|
}>;
|
|
16819
17158
|
callback: z.ZodObject<{
|
|
@@ -16827,12 +17166,15 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16827
17166
|
WAIT_FOR_TASK: {
|
|
16828
17167
|
message: z.ZodObject<{
|
|
16829
17168
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16830
|
-
|
|
17169
|
+
friendlyId: z.ZodString;
|
|
17170
|
+
attemptFriendlyId: z.ZodString;
|
|
16831
17171
|
}, "strip", z.ZodTypeAny, {
|
|
16832
|
-
id: string;
|
|
16833
17172
|
version: "v1";
|
|
17173
|
+
friendlyId: string;
|
|
17174
|
+
attemptFriendlyId: string;
|
|
16834
17175
|
}, {
|
|
16835
|
-
|
|
17176
|
+
friendlyId: string;
|
|
17177
|
+
attemptFriendlyId: string;
|
|
16836
17178
|
version?: "v1" | undefined;
|
|
16837
17179
|
}>;
|
|
16838
17180
|
callback: z.ZodObject<{
|
|
@@ -16846,15 +17188,18 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16846
17188
|
WAIT_FOR_BATCH: {
|
|
16847
17189
|
message: z.ZodObject<{
|
|
16848
17190
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16849
|
-
|
|
16850
|
-
|
|
17191
|
+
batchFriendlyId: z.ZodString;
|
|
17192
|
+
runFriendlyIds: z.ZodArray<z.ZodString, "many">;
|
|
17193
|
+
attemptFriendlyId: z.ZodString;
|
|
16851
17194
|
}, "strip", z.ZodTypeAny, {
|
|
16852
|
-
id: string;
|
|
16853
17195
|
version: "v1";
|
|
16854
|
-
|
|
17196
|
+
batchFriendlyId: string;
|
|
17197
|
+
runFriendlyIds: string[];
|
|
17198
|
+
attemptFriendlyId: string;
|
|
16855
17199
|
}, {
|
|
16856
|
-
|
|
16857
|
-
|
|
17200
|
+
batchFriendlyId: string;
|
|
17201
|
+
runFriendlyIds: string[];
|
|
17202
|
+
attemptFriendlyId: string;
|
|
16858
17203
|
version?: "v1" | undefined;
|
|
16859
17204
|
}>;
|
|
16860
17205
|
callback: z.ZodObject<{
|
|
@@ -16902,7 +17247,7 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16902
17247
|
};
|
|
16903
17248
|
};
|
|
16904
17249
|
declare const CoordinatorToProdWorkerMessages: {
|
|
16905
|
-
|
|
17250
|
+
RESUME_AFTER_DEPENDENCY: {
|
|
16906
17251
|
message: z.ZodObject<{
|
|
16907
17252
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16908
17253
|
attemptId: z.ZodString;
|
|
@@ -17916,31 +18261,46 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17916
18261
|
version?: "v1" | undefined;
|
|
17917
18262
|
}>;
|
|
17918
18263
|
};
|
|
18264
|
+
READY_FOR_RETRY: {
|
|
18265
|
+
message: z.ZodObject<{
|
|
18266
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
18267
|
+
runId: z.ZodString;
|
|
18268
|
+
}, "strip", z.ZodTypeAny, {
|
|
18269
|
+
version: "v1";
|
|
18270
|
+
runId: string;
|
|
18271
|
+
}, {
|
|
18272
|
+
runId: string;
|
|
18273
|
+
version?: "v1" | undefined;
|
|
18274
|
+
}>;
|
|
18275
|
+
};
|
|
17919
18276
|
};
|
|
17920
18277
|
declare const ProdWorkerSocketData: z.ZodObject<{
|
|
17921
18278
|
contentHash: z.ZodString;
|
|
17922
18279
|
projectRef: z.ZodString;
|
|
17923
18280
|
envId: z.ZodString;
|
|
17924
18281
|
runId: z.ZodString;
|
|
17925
|
-
|
|
18282
|
+
attemptFriendlyId: z.ZodOptional<z.ZodString>;
|
|
17926
18283
|
podName: z.ZodString;
|
|
17927
18284
|
deploymentId: z.ZodString;
|
|
18285
|
+
deploymentVersion: z.ZodString;
|
|
17928
18286
|
}, "strip", z.ZodTypeAny, {
|
|
17929
18287
|
contentHash: string;
|
|
17930
18288
|
envId: string;
|
|
17931
18289
|
runId: string;
|
|
17932
|
-
attemptId: string;
|
|
17933
18290
|
projectRef: string;
|
|
17934
18291
|
deploymentId: string;
|
|
17935
18292
|
podName: string;
|
|
18293
|
+
deploymentVersion: string;
|
|
18294
|
+
attemptFriendlyId?: string | undefined;
|
|
17936
18295
|
}, {
|
|
17937
18296
|
contentHash: string;
|
|
17938
18297
|
envId: string;
|
|
17939
18298
|
runId: string;
|
|
17940
|
-
attemptId: string;
|
|
17941
18299
|
projectRef: string;
|
|
17942
18300
|
deploymentId: string;
|
|
17943
18301
|
podName: string;
|
|
18302
|
+
deploymentVersion: string;
|
|
18303
|
+
attemptFriendlyId?: string | undefined;
|
|
17944
18304
|
}>;
|
|
17945
18305
|
|
|
17946
18306
|
declare const PRIMARY_VARIANT = "primary";
|
|
@@ -18255,7 +18615,7 @@ declare const FetchRetryStrategy: z.ZodDiscriminatedUnion<"strategy", [z.ZodObje
|
|
|
18255
18615
|
bodyFilter?: EventFilter | undefined;
|
|
18256
18616
|
}>]>;
|
|
18257
18617
|
type FetchRetryStrategy = z.infer<typeof FetchRetryStrategy>;
|
|
18258
|
-
declare const
|
|
18618
|
+
declare const FetchRetryByStatusOptions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"strategy", [z.ZodObject<{
|
|
18259
18619
|
/** The `headers` strategy retries the request using info from the response headers. */
|
|
18260
18620
|
strategy: z.ZodLiteral<"headers">;
|
|
18261
18621
|
/** The header to use to determine the maximum number of times to retry the request. */
|
|
@@ -18312,7 +18672,7 @@ declare const FetchRetryOptions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnio
|
|
|
18312
18672
|
- Ranges: 500-599
|
|
18313
18673
|
- Wildcards: 2xx, 3xx, 4xx, 5xx
|
|
18314
18674
|
*/
|
|
18315
|
-
type
|
|
18675
|
+
type FetchRetryByStatusOptions = Prettify<z.infer<typeof FetchRetryByStatusOptions>>;
|
|
18316
18676
|
declare const FetchTimeoutOptions: z.ZodObject<{
|
|
18317
18677
|
/** The maximum time to wait for the request to complete. */
|
|
18318
18678
|
durationInMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18355,6 +18715,166 @@ declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
18355
18715
|
} | undefined;
|
|
18356
18716
|
}>;
|
|
18357
18717
|
type FetchTimeoutOptions = z.infer<typeof FetchTimeoutOptions>;
|
|
18718
|
+
declare const FetchRetryOptions: z.ZodObject<{
|
|
18719
|
+
/** The retrying strategy for specific status codes. */
|
|
18720
|
+
byStatus: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"strategy", [z.ZodObject<{
|
|
18721
|
+
/** The `headers` strategy retries the request using info from the response headers. */
|
|
18722
|
+
strategy: z.ZodLiteral<"headers">;
|
|
18723
|
+
/** The header to use to determine the maximum number of times to retry the request. */
|
|
18724
|
+
limitHeader: z.ZodString;
|
|
18725
|
+
/** The header to use to determine the number of remaining retries. */
|
|
18726
|
+
remainingHeader: z.ZodString;
|
|
18727
|
+
/** The header to use to determine the time when the number of remaining retries will be reset. */
|
|
18728
|
+
resetHeader: z.ZodString;
|
|
18729
|
+
/** The event filter to use to determine if the request should be retried. */
|
|
18730
|
+
bodyFilter: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
18731
|
+
/** The format of the `resetHeader` value. */
|
|
18732
|
+
resetFormat: z.ZodOptional<z.ZodDefault<z.ZodEnum<["unix_timestamp", "unix_timestamp_in_ms", "iso_8601", "iso_8601_duration_openai_variant"]>>>;
|
|
18733
|
+
}, "strip", z.ZodTypeAny, {
|
|
18734
|
+
strategy: "headers";
|
|
18735
|
+
limitHeader: string;
|
|
18736
|
+
remainingHeader: string;
|
|
18737
|
+
resetHeader: string;
|
|
18738
|
+
bodyFilter?: EventFilter | undefined;
|
|
18739
|
+
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
18740
|
+
}, {
|
|
18741
|
+
strategy: "headers";
|
|
18742
|
+
limitHeader: string;
|
|
18743
|
+
remainingHeader: string;
|
|
18744
|
+
resetHeader: string;
|
|
18745
|
+
bodyFilter?: EventFilter | undefined;
|
|
18746
|
+
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
18747
|
+
}>, z.ZodObject<{
|
|
18748
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
18749
|
+
factor: z.ZodOptional<z.ZodNumber>;
|
|
18750
|
+
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
18751
|
+
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
18752
|
+
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
18753
|
+
strategy: z.ZodLiteral<"backoff">;
|
|
18754
|
+
bodyFilter: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
|
|
18755
|
+
}, "strip", z.ZodTypeAny, {
|
|
18756
|
+
strategy: "backoff";
|
|
18757
|
+
maxAttempts?: number | undefined;
|
|
18758
|
+
factor?: number | undefined;
|
|
18759
|
+
minTimeoutInMs?: number | undefined;
|
|
18760
|
+
maxTimeoutInMs?: number | undefined;
|
|
18761
|
+
randomize?: boolean | undefined;
|
|
18762
|
+
bodyFilter?: EventFilter | undefined;
|
|
18763
|
+
}, {
|
|
18764
|
+
strategy: "backoff";
|
|
18765
|
+
maxAttempts?: number | undefined;
|
|
18766
|
+
factor?: number | undefined;
|
|
18767
|
+
minTimeoutInMs?: number | undefined;
|
|
18768
|
+
maxTimeoutInMs?: number | undefined;
|
|
18769
|
+
randomize?: boolean | undefined;
|
|
18770
|
+
bodyFilter?: EventFilter | undefined;
|
|
18771
|
+
}>]>>>;
|
|
18772
|
+
/** The timeout options for the request. */
|
|
18773
|
+
timeout: z.ZodOptional<z.ZodObject<{
|
|
18774
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
18775
|
+
factor: z.ZodOptional<z.ZodNumber>;
|
|
18776
|
+
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
18777
|
+
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
18778
|
+
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
18779
|
+
}, "strip", z.ZodTypeAny, {
|
|
18780
|
+
maxAttempts?: number | undefined;
|
|
18781
|
+
factor?: number | undefined;
|
|
18782
|
+
minTimeoutInMs?: number | undefined;
|
|
18783
|
+
maxTimeoutInMs?: number | undefined;
|
|
18784
|
+
randomize?: boolean | undefined;
|
|
18785
|
+
}, {
|
|
18786
|
+
maxAttempts?: number | undefined;
|
|
18787
|
+
factor?: number | undefined;
|
|
18788
|
+
minTimeoutInMs?: number | undefined;
|
|
18789
|
+
maxTimeoutInMs?: number | undefined;
|
|
18790
|
+
randomize?: boolean | undefined;
|
|
18791
|
+
}>>;
|
|
18792
|
+
/**
|
|
18793
|
+
* The retrying strategy for connection errors.
|
|
18794
|
+
*/
|
|
18795
|
+
connectionError: z.ZodOptional<z.ZodObject<{
|
|
18796
|
+
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
18797
|
+
factor: z.ZodOptional<z.ZodNumber>;
|
|
18798
|
+
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
18799
|
+
maxTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
18800
|
+
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
18801
|
+
}, "strip", z.ZodTypeAny, {
|
|
18802
|
+
maxAttempts?: number | undefined;
|
|
18803
|
+
factor?: number | undefined;
|
|
18804
|
+
minTimeoutInMs?: number | undefined;
|
|
18805
|
+
maxTimeoutInMs?: number | undefined;
|
|
18806
|
+
randomize?: boolean | undefined;
|
|
18807
|
+
}, {
|
|
18808
|
+
maxAttempts?: number | undefined;
|
|
18809
|
+
factor?: number | undefined;
|
|
18810
|
+
minTimeoutInMs?: number | undefined;
|
|
18811
|
+
maxTimeoutInMs?: number | undefined;
|
|
18812
|
+
randomize?: boolean | undefined;
|
|
18813
|
+
}>>;
|
|
18814
|
+
}, "strip", z.ZodTypeAny, {
|
|
18815
|
+
byStatus?: Record<string, {
|
|
18816
|
+
strategy: "headers";
|
|
18817
|
+
limitHeader: string;
|
|
18818
|
+
remainingHeader: string;
|
|
18819
|
+
resetHeader: string;
|
|
18820
|
+
bodyFilter?: EventFilter | undefined;
|
|
18821
|
+
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
18822
|
+
} | {
|
|
18823
|
+
strategy: "backoff";
|
|
18824
|
+
maxAttempts?: number | undefined;
|
|
18825
|
+
factor?: number | undefined;
|
|
18826
|
+
minTimeoutInMs?: number | undefined;
|
|
18827
|
+
maxTimeoutInMs?: number | undefined;
|
|
18828
|
+
randomize?: boolean | undefined;
|
|
18829
|
+
bodyFilter?: EventFilter | undefined;
|
|
18830
|
+
}> | undefined;
|
|
18831
|
+
timeout?: {
|
|
18832
|
+
maxAttempts?: number | undefined;
|
|
18833
|
+
factor?: number | undefined;
|
|
18834
|
+
minTimeoutInMs?: number | undefined;
|
|
18835
|
+
maxTimeoutInMs?: number | undefined;
|
|
18836
|
+
randomize?: boolean | undefined;
|
|
18837
|
+
} | undefined;
|
|
18838
|
+
connectionError?: {
|
|
18839
|
+
maxAttempts?: number | undefined;
|
|
18840
|
+
factor?: number | undefined;
|
|
18841
|
+
minTimeoutInMs?: number | undefined;
|
|
18842
|
+
maxTimeoutInMs?: number | undefined;
|
|
18843
|
+
randomize?: boolean | undefined;
|
|
18844
|
+
} | undefined;
|
|
18845
|
+
}, {
|
|
18846
|
+
byStatus?: Record<string, {
|
|
18847
|
+
strategy: "headers";
|
|
18848
|
+
limitHeader: string;
|
|
18849
|
+
remainingHeader: string;
|
|
18850
|
+
resetHeader: string;
|
|
18851
|
+
bodyFilter?: EventFilter | undefined;
|
|
18852
|
+
resetFormat?: "unix_timestamp" | "unix_timestamp_in_ms" | "iso_8601" | "iso_8601_duration_openai_variant" | undefined;
|
|
18853
|
+
} | {
|
|
18854
|
+
strategy: "backoff";
|
|
18855
|
+
maxAttempts?: number | undefined;
|
|
18856
|
+
factor?: number | undefined;
|
|
18857
|
+
minTimeoutInMs?: number | undefined;
|
|
18858
|
+
maxTimeoutInMs?: number | undefined;
|
|
18859
|
+
randomize?: boolean | undefined;
|
|
18860
|
+
bodyFilter?: EventFilter | undefined;
|
|
18861
|
+
}> | undefined;
|
|
18862
|
+
timeout?: {
|
|
18863
|
+
maxAttempts?: number | undefined;
|
|
18864
|
+
factor?: number | undefined;
|
|
18865
|
+
minTimeoutInMs?: number | undefined;
|
|
18866
|
+
maxTimeoutInMs?: number | undefined;
|
|
18867
|
+
randomize?: boolean | undefined;
|
|
18868
|
+
} | undefined;
|
|
18869
|
+
connectionError?: {
|
|
18870
|
+
maxAttempts?: number | undefined;
|
|
18871
|
+
factor?: number | undefined;
|
|
18872
|
+
minTimeoutInMs?: number | undefined;
|
|
18873
|
+
maxTimeoutInMs?: number | undefined;
|
|
18874
|
+
randomize?: boolean | undefined;
|
|
18875
|
+
} | undefined;
|
|
18876
|
+
}>;
|
|
18877
|
+
type FetchRetryOptions = Prettify<z.infer<typeof FetchRetryOptions>>;
|
|
18358
18878
|
|
|
18359
18879
|
declare const ExceptionEventProperties: z.ZodObject<{
|
|
18360
18880
|
type: z.ZodOptional<z.ZodString>;
|
|
@@ -18634,6 +19154,26 @@ declare const SpanEvents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
|
18634
19154
|
type SpanEvents = z.infer<typeof SpanEvents>;
|
|
18635
19155
|
declare function isExceptionSpanEvent(event: SpanEvent): event is ExceptionSpanEvent;
|
|
18636
19156
|
declare function isCancellationSpanEvent(event: SpanEvent): event is CancellationSpanEvent;
|
|
19157
|
+
declare const SpanMessagingEvent: z.ZodObject<{
|
|
19158
|
+
system: z.ZodOptional<z.ZodString>;
|
|
19159
|
+
client_id: z.ZodOptional<z.ZodString>;
|
|
19160
|
+
operation: z.ZodEnum<["publish", "create", "receive", "deliver"]>;
|
|
19161
|
+
message: z.ZodAny;
|
|
19162
|
+
destination: z.ZodOptional<z.ZodString>;
|
|
19163
|
+
}, "strip", z.ZodTypeAny, {
|
|
19164
|
+
operation: "publish" | "create" | "receive" | "deliver";
|
|
19165
|
+
system?: string | undefined;
|
|
19166
|
+
client_id?: string | undefined;
|
|
19167
|
+
message?: any;
|
|
19168
|
+
destination?: string | undefined;
|
|
19169
|
+
}, {
|
|
19170
|
+
operation: "publish" | "create" | "receive" | "deliver";
|
|
19171
|
+
system?: string | undefined;
|
|
19172
|
+
client_id?: string | undefined;
|
|
19173
|
+
message?: any;
|
|
19174
|
+
destination?: string | undefined;
|
|
19175
|
+
}>;
|
|
19176
|
+
type SpanMessagingEvent = z.infer<typeof SpanMessagingEvent>;
|
|
18637
19177
|
|
|
18638
19178
|
type TriggerOptions = {
|
|
18639
19179
|
spanParentAsLink?: boolean;
|
|
@@ -18680,66 +19220,6 @@ declare class ApiClientManager {
|
|
|
18680
19220
|
}
|
|
18681
19221
|
declare const apiClientManager: ApiClientManager;
|
|
18682
19222
|
|
|
18683
|
-
type ZodMessageValueSchema<TDiscriminatedUnion extends z.ZodDiscriminatedUnion<any, any>> = z.ZodFirstPartySchemaTypes | TDiscriminatedUnion;
|
|
18684
|
-
interface ZodMessageCatalogSchema {
|
|
18685
|
-
[key: string]: ZodMessageValueSchema<any>;
|
|
18686
|
-
}
|
|
18687
|
-
type ZodMessageHandlers<TCatalogSchema extends ZodMessageCatalogSchema> = Partial<{
|
|
18688
|
-
[K in keyof TCatalogSchema]: (payload: z.infer<TCatalogSchema[K]>) => Promise<any>;
|
|
18689
|
-
}>;
|
|
18690
|
-
type ZodMessageHandlerOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18691
|
-
schema: TMessageCatalog;
|
|
18692
|
-
messages?: ZodMessageHandlers<TMessageCatalog>;
|
|
18693
|
-
};
|
|
18694
|
-
type MessageFromSchema<K extends keyof TMessageCatalog, TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18695
|
-
type: K;
|
|
18696
|
-
payload: z.input<TMessageCatalog[K]>;
|
|
18697
|
-
};
|
|
18698
|
-
type MessageFromCatalog<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18699
|
-
[K in keyof TMessageCatalog]: MessageFromSchema<K, TMessageCatalog>;
|
|
18700
|
-
}[keyof TMessageCatalog];
|
|
18701
|
-
declare const ZodMessageSchema: z.ZodObject<{
|
|
18702
|
-
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
18703
|
-
type: z.ZodString;
|
|
18704
|
-
payload: z.ZodUnknown;
|
|
18705
|
-
}, "strip", z.ZodTypeAny, {
|
|
18706
|
-
type: string;
|
|
18707
|
-
version: "v1";
|
|
18708
|
-
payload?: unknown;
|
|
18709
|
-
}, {
|
|
18710
|
-
type: string;
|
|
18711
|
-
version?: "v1" | undefined;
|
|
18712
|
-
payload?: unknown;
|
|
18713
|
-
}>;
|
|
18714
|
-
interface EventEmitterLike {
|
|
18715
|
-
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
18716
|
-
}
|
|
18717
|
-
declare class ZodMessageHandler<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
18718
|
-
#private;
|
|
18719
|
-
constructor(options: ZodMessageHandlerOptions<TMessageCatalog>);
|
|
18720
|
-
handleMessage(message: unknown): Promise<any>;
|
|
18721
|
-
parseMessage(message: unknown): MessageFromCatalog<TMessageCatalog>;
|
|
18722
|
-
registerHandlers(emitter: EventEmitterLike, logger?: (...args: any[]) => void): void;
|
|
18723
|
-
}
|
|
18724
|
-
type ZodMessageSenderCallback<TMessageCatalog extends ZodMessageCatalogSchema> = (message: {
|
|
18725
|
-
type: keyof TMessageCatalog;
|
|
18726
|
-
payload: z.infer<TMessageCatalog[keyof TMessageCatalog]>;
|
|
18727
|
-
version: "v1";
|
|
18728
|
-
}) => Promise<void>;
|
|
18729
|
-
type ZodMessageSenderOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18730
|
-
schema: TMessageCatalog;
|
|
18731
|
-
sender: ZodMessageSenderCallback<TMessageCatalog>;
|
|
18732
|
-
};
|
|
18733
|
-
declare class ZodMessageSender<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
18734
|
-
#private;
|
|
18735
|
-
constructor(options: ZodMessageSenderOptions<TMessageCatalog>);
|
|
18736
|
-
send<K extends keyof TMessageCatalog>(type: K, payload: z.input<TMessageCatalog[K]>): Promise<void>;
|
|
18737
|
-
forwardMessage(message: unknown): Promise<void>;
|
|
18738
|
-
}
|
|
18739
|
-
type MessageCatalogToSocketIoEvents<TCatalog extends ZodMessageCatalogSchema> = {
|
|
18740
|
-
[K in keyof TCatalog]: (message: z.infer<TCatalog[K]>) => void;
|
|
18741
|
-
};
|
|
18742
|
-
|
|
18743
19223
|
interface ZodSocketMessageCatalogSchema {
|
|
18744
19224
|
[key: string]: {
|
|
18745
19225
|
message: ZodMessageValueSchema<any>;
|
|
@@ -18777,7 +19257,7 @@ declare class ZodSocketMessageHandler<TRPCCatalog extends ZodSocketMessageCatalo
|
|
|
18777
19257
|
constructor(options: ZodSocketMessageHandlerOptions<TRPCCatalog>);
|
|
18778
19258
|
handleMessage(message: unknown): Promise<(SocketMessageHasCallback<TRPCCatalog, keyof TRPCCatalog> extends true ? z.input<GetSocketCallbackSchema<TRPCCatalog, keyof TRPCCatalog>> : void) | undefined>;
|
|
18779
19259
|
parseMessage(message: unknown): MessagesFromSocketCatalog<TRPCCatalog>;
|
|
18780
|
-
registerHandlers(emitter: EventEmitterLike, logger?:
|
|
19260
|
+
registerHandlers(emitter: EventEmitterLike, logger?: StructuredLogger): void;
|
|
18781
19261
|
}
|
|
18782
19262
|
type ZodSocketMessageSenderOptions<TMessageCatalog extends ZodSocketMessageCatalogSchema> = {
|
|
18783
19263
|
schema: TMessageCatalog;
|
|
@@ -18807,9 +19287,9 @@ interface ZodSocketConnectionOptions<TClientMessages extends ZodSocketMessageCat
|
|
|
18807
19287
|
};
|
|
18808
19288
|
handlers?: ZodSocketMessageHandlers<TServerMessages>;
|
|
18809
19289
|
authToken?: string;
|
|
18810
|
-
onConnection?: (socket: ZodSocket<TServerMessages, TClientMessages>, handler: ZodSocketMessageHandler<TServerMessages>, sender: ZodSocketMessageSender<TClientMessages>, logger:
|
|
18811
|
-
onDisconnect?: (socket: ZodSocket<TServerMessages, TClientMessages>, reason: Socket.DisconnectReason, description: any, logger:
|
|
18812
|
-
onError?: (socket: ZodSocket<TServerMessages, TClientMessages>, err: Error, logger:
|
|
19290
|
+
onConnection?: (socket: ZodSocket<TServerMessages, TClientMessages>, handler: ZodSocketMessageHandler<TServerMessages>, sender: ZodSocketMessageSender<TClientMessages>, logger: StructuredLogger) => Promise<void>;
|
|
19291
|
+
onDisconnect?: (socket: ZodSocket<TServerMessages, TClientMessages>, reason: Socket.DisconnectReason, description: any, logger: StructuredLogger) => Promise<void>;
|
|
19292
|
+
onError?: (socket: ZodSocket<TServerMessages, TClientMessages>, err: Error, logger: StructuredLogger) => Promise<void>;
|
|
18813
19293
|
}
|
|
18814
19294
|
declare class ZodSocketConnection<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema> {
|
|
18815
19295
|
#private;
|
|
@@ -18825,6 +19305,35 @@ interface ExtendedError extends Error {
|
|
|
18825
19305
|
data?: any;
|
|
18826
19306
|
}
|
|
18827
19307
|
type ZodNamespaceSocket<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema, TServerSideEvents extends EventsMap = DefaultEventsMap, TSocketData extends z.ZodObject<any, any, any> = any> = Socket$1<ZodMessageCatalogToSocketIoEvents<TClientMessages>, ZodMessageCatalogToSocketIoEvents<TServerMessages>, TServerSideEvents, z.infer<TSocketData>>;
|
|
19308
|
+
type StructuredArgs = (Record<string, unknown> | undefined)[];
|
|
19309
|
+
interface StructuredLogger {
|
|
19310
|
+
log: (message: string, ...args: StructuredArgs) => any;
|
|
19311
|
+
error: (message: string, ...args: StructuredArgs) => any;
|
|
19312
|
+
warn: (message: string, ...args: StructuredArgs) => any;
|
|
19313
|
+
info: (message: string, ...args: StructuredArgs) => any;
|
|
19314
|
+
debug: (message: string, ...args: StructuredArgs) => any;
|
|
19315
|
+
child: (fields: Record<string, unknown>) => StructuredLogger;
|
|
19316
|
+
}
|
|
19317
|
+
declare enum LogLevel$1 {
|
|
19318
|
+
"log" = 0,
|
|
19319
|
+
"error" = 1,
|
|
19320
|
+
"warn" = 2,
|
|
19321
|
+
"info" = 3,
|
|
19322
|
+
"debug" = 4
|
|
19323
|
+
}
|
|
19324
|
+
declare class SimpleStructuredLogger implements StructuredLogger {
|
|
19325
|
+
#private;
|
|
19326
|
+
private name;
|
|
19327
|
+
private level;
|
|
19328
|
+
private fields?;
|
|
19329
|
+
constructor(name: string, level?: LogLevel$1, fields?: Record<string, unknown> | undefined);
|
|
19330
|
+
child(fields: Record<string, unknown>, level?: LogLevel$1): SimpleStructuredLogger;
|
|
19331
|
+
log(message: string, ...args: StructuredArgs): void;
|
|
19332
|
+
error(message: string, ...args: StructuredArgs): void;
|
|
19333
|
+
warn(message: string, ...args: StructuredArgs): void;
|
|
19334
|
+
info(message: string, ...args: StructuredArgs): void;
|
|
19335
|
+
debug(message: string, ...args: StructuredArgs): void;
|
|
19336
|
+
}
|
|
18828
19337
|
interface ZodNamespaceOptions<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema, TServerSideEvents extends EventsMap = DefaultEventsMap, TSocketData extends z.ZodObject<any, any, any> = any> {
|
|
18829
19338
|
io: Server;
|
|
18830
19339
|
name: string;
|
|
@@ -18833,11 +19342,12 @@ interface ZodNamespaceOptions<TClientMessages extends ZodSocketMessageCatalogSch
|
|
|
18833
19342
|
socketData?: TSocketData;
|
|
18834
19343
|
handlers?: ZodSocketMessageHandlers<TClientMessages>;
|
|
18835
19344
|
authToken?: string;
|
|
18836
|
-
|
|
18837
|
-
|
|
18838
|
-
|
|
18839
|
-
|
|
18840
|
-
|
|
19345
|
+
logger?: StructuredLogger;
|
|
19346
|
+
preAuth?: (socket: ZodNamespaceSocket<TClientMessages, TServerMessages, TServerSideEvents, TSocketData>, next: (err?: ExtendedError) => void, logger: StructuredLogger) => Promise<void>;
|
|
19347
|
+
postAuth?: (socket: ZodNamespaceSocket<TClientMessages, TServerMessages, TServerSideEvents, TSocketData>, next: (err?: ExtendedError) => void, logger: StructuredLogger) => Promise<void>;
|
|
19348
|
+
onConnection?: (socket: ZodNamespaceSocket<TClientMessages, TServerMessages, TServerSideEvents, TSocketData>, handler: ZodSocketMessageHandler<TClientMessages>, sender: ZodMessageSender<TServerMessages>, logger: StructuredLogger) => Promise<void>;
|
|
19349
|
+
onDisconnect?: (socket: ZodNamespaceSocket<TClientMessages, TServerMessages, TServerSideEvents, TSocketData>, reason: DisconnectReason, description: any, logger: StructuredLogger) => Promise<void>;
|
|
19350
|
+
onError?: (socket: ZodNamespaceSocket<TClientMessages, TServerMessages, TServerSideEvents, TSocketData>, err: Error, logger: StructuredLogger) => Promise<void>;
|
|
18841
19351
|
}
|
|
18842
19352
|
declare class ZodNamespace<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema, TSocketData extends z.ZodObject<any, any, any> = any, TServerSideEvents extends EventsMap = DefaultEventsMap> {
|
|
18843
19353
|
#private;
|
|
@@ -18848,6 +19358,66 @@ declare class ZodNamespace<TClientMessages extends ZodSocketMessageCatalogSchema
|
|
|
18848
19358
|
fetchSockets(): Promise<socket_io.RemoteSocket<ZodMessageCatalogToSocketIoEvents<TServerMessages>, z.TypeOf<TSocketData>>[]>;
|
|
18849
19359
|
}
|
|
18850
19360
|
|
|
19361
|
+
type ZodMessageValueSchema<TDiscriminatedUnion extends z.ZodDiscriminatedUnion<any, any>> = z.ZodFirstPartySchemaTypes | TDiscriminatedUnion;
|
|
19362
|
+
interface ZodMessageCatalogSchema {
|
|
19363
|
+
[key: string]: ZodMessageValueSchema<any>;
|
|
19364
|
+
}
|
|
19365
|
+
type ZodMessageHandlers<TCatalogSchema extends ZodMessageCatalogSchema> = Partial<{
|
|
19366
|
+
[K in keyof TCatalogSchema]: (payload: z.infer<TCatalogSchema[K]>) => Promise<any>;
|
|
19367
|
+
}>;
|
|
19368
|
+
type ZodMessageHandlerOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
19369
|
+
schema: TMessageCatalog;
|
|
19370
|
+
messages?: ZodMessageHandlers<TMessageCatalog>;
|
|
19371
|
+
};
|
|
19372
|
+
type MessageFromSchema<K extends keyof TMessageCatalog, TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
19373
|
+
type: K;
|
|
19374
|
+
payload: z.input<TMessageCatalog[K]>;
|
|
19375
|
+
};
|
|
19376
|
+
type MessageFromCatalog<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
19377
|
+
[K in keyof TMessageCatalog]: MessageFromSchema<K, TMessageCatalog>;
|
|
19378
|
+
}[keyof TMessageCatalog];
|
|
19379
|
+
declare const ZodMessageSchema: z.ZodObject<{
|
|
19380
|
+
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
19381
|
+
type: z.ZodString;
|
|
19382
|
+
payload: z.ZodUnknown;
|
|
19383
|
+
}, "strip", z.ZodTypeAny, {
|
|
19384
|
+
type: string;
|
|
19385
|
+
version: "v1";
|
|
19386
|
+
payload?: unknown;
|
|
19387
|
+
}, {
|
|
19388
|
+
type: string;
|
|
19389
|
+
version?: "v1" | undefined;
|
|
19390
|
+
payload?: unknown;
|
|
19391
|
+
}>;
|
|
19392
|
+
interface EventEmitterLike {
|
|
19393
|
+
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
19394
|
+
}
|
|
19395
|
+
declare class ZodMessageHandler<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
19396
|
+
#private;
|
|
19397
|
+
constructor(options: ZodMessageHandlerOptions<TMessageCatalog>);
|
|
19398
|
+
handleMessage(message: unknown): Promise<any>;
|
|
19399
|
+
parseMessage(message: unknown): MessageFromCatalog<TMessageCatalog>;
|
|
19400
|
+
registerHandlers(emitter: EventEmitterLike, logger?: StructuredLogger): void;
|
|
19401
|
+
}
|
|
19402
|
+
type ZodMessageSenderCallback<TMessageCatalog extends ZodMessageCatalogSchema> = (message: {
|
|
19403
|
+
type: keyof TMessageCatalog;
|
|
19404
|
+
payload: z.infer<TMessageCatalog[keyof TMessageCatalog]>;
|
|
19405
|
+
version: "v1";
|
|
19406
|
+
}) => Promise<void>;
|
|
19407
|
+
type ZodMessageSenderOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
19408
|
+
schema: TMessageCatalog;
|
|
19409
|
+
sender: ZodMessageSenderCallback<TMessageCatalog>;
|
|
19410
|
+
};
|
|
19411
|
+
declare class ZodMessageSender<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
19412
|
+
#private;
|
|
19413
|
+
constructor(options: ZodMessageSenderOptions<TMessageCatalog>);
|
|
19414
|
+
send<K extends keyof TMessageCatalog>(type: K, payload: z.input<TMessageCatalog[K]>): Promise<void>;
|
|
19415
|
+
forwardMessage(message: unknown): Promise<void>;
|
|
19416
|
+
}
|
|
19417
|
+
type MessageCatalogToSocketIoEvents<TCatalog extends ZodMessageCatalogSchema> = {
|
|
19418
|
+
[K in keyof TCatalog]: (message: z.infer<TCatalog[K]>) => void;
|
|
19419
|
+
};
|
|
19420
|
+
|
|
18851
19421
|
interface ZodIpcMessageSender<TEmitCatalog extends ZodSocketMessageCatalogSchema> {
|
|
18852
19422
|
send<K extends GetSocketMessagesWithoutCallback<TEmitCatalog>>(type: K, payload: z.input<GetSocketMessageSchema<TEmitCatalog, K>>): Promise<void>;
|
|
18853
19423
|
sendWithAck<K extends GetSocketMessagesWithCallback<TEmitCatalog>>(type: K, payload: z.input<GetSocketMessageSchema<TEmitCatalog, K>>): Promise<z.infer<GetSocketCallbackSchema<TEmitCatalog, K>>>;
|
|
@@ -19023,6 +19593,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19023
19593
|
METADATA: string;
|
|
19024
19594
|
TRIGGER: string;
|
|
19025
19595
|
PAYLOAD: string;
|
|
19596
|
+
SHOW: string;
|
|
19026
19597
|
SHOW_ACTIONS: string;
|
|
19027
19598
|
WORKER_ID: string;
|
|
19028
19599
|
WORKER_VERSION: string;
|
|
@@ -19034,7 +19605,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19034
19605
|
RETRY_COUNT: string;
|
|
19035
19606
|
};
|
|
19036
19607
|
|
|
19037
|
-
declare function iconStringForSeverity(severityNumber: SeverityNumber): "error" | "
|
|
19608
|
+
declare function iconStringForSeverity(severityNumber: SeverityNumber): "error" | "warn" | "info" | "debug" | "trace" | "fatal" | undefined;
|
|
19038
19609
|
|
|
19039
19610
|
type DurationOptions = {
|
|
19040
19611
|
style?: "long" | "short";
|
|
@@ -19164,6 +19735,32 @@ declare const defaultRetryOptions: {
|
|
|
19164
19735
|
maxTimeoutInMs: number;
|
|
19165
19736
|
randomize: true;
|
|
19166
19737
|
};
|
|
19738
|
+
declare const defaultFetchRetryOptions: {
|
|
19739
|
+
byStatus: {
|
|
19740
|
+
"429,408,409,5xx": {
|
|
19741
|
+
maxAttempts: number;
|
|
19742
|
+
factor: number;
|
|
19743
|
+
minTimeoutInMs: number;
|
|
19744
|
+
maxTimeoutInMs: number;
|
|
19745
|
+
randomize: true;
|
|
19746
|
+
strategy: "backoff";
|
|
19747
|
+
};
|
|
19748
|
+
};
|
|
19749
|
+
connectionError: {
|
|
19750
|
+
maxAttempts: number;
|
|
19751
|
+
factor: number;
|
|
19752
|
+
minTimeoutInMs: number;
|
|
19753
|
+
maxTimeoutInMs: number;
|
|
19754
|
+
randomize: true;
|
|
19755
|
+
};
|
|
19756
|
+
timeout: {
|
|
19757
|
+
maxAttempts: number;
|
|
19758
|
+
factor: number;
|
|
19759
|
+
minTimeoutInMs: number;
|
|
19760
|
+
maxTimeoutInMs: number;
|
|
19761
|
+
randomize: true;
|
|
19762
|
+
};
|
|
19763
|
+
};
|
|
19167
19764
|
/**
|
|
19168
19765
|
*
|
|
19169
19766
|
* @param options
|
|
@@ -19208,6 +19805,8 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19208
19805
|
dependentBatch?: string | undefined;
|
|
19209
19806
|
lockToVersion?: string | undefined;
|
|
19210
19807
|
queue?: {
|
|
19808
|
+
name?: string | undefined;
|
|
19809
|
+
concurrencyLimit?: number | undefined;
|
|
19211
19810
|
rateLimit?: {
|
|
19212
19811
|
type: "fixed-window";
|
|
19213
19812
|
limit: number;
|
|
@@ -19241,8 +19840,6 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19241
19840
|
hours: number;
|
|
19242
19841
|
} | undefined);
|
|
19243
19842
|
} | undefined;
|
|
19244
|
-
concurrencyLimit?: number | undefined;
|
|
19245
|
-
name?: string | undefined;
|
|
19246
19843
|
} | undefined;
|
|
19247
19844
|
concurrencyKey?: string | undefined;
|
|
19248
19845
|
test?: boolean | undefined;
|
|
@@ -19255,6 +19852,8 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19255
19852
|
dependentBatch?: string | undefined;
|
|
19256
19853
|
lockToVersion?: string | undefined;
|
|
19257
19854
|
queue?: {
|
|
19855
|
+
name?: string | undefined;
|
|
19856
|
+
concurrencyLimit?: number | undefined;
|
|
19258
19857
|
rateLimit?: {
|
|
19259
19858
|
type: "fixed-window";
|
|
19260
19859
|
limit: number;
|
|
@@ -19288,8 +19887,6 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19288
19887
|
hours: number;
|
|
19289
19888
|
} | undefined);
|
|
19290
19889
|
} | undefined;
|
|
19291
|
-
concurrencyLimit?: number | undefined;
|
|
19292
|
-
name?: string | undefined;
|
|
19293
19890
|
} | undefined;
|
|
19294
19891
|
concurrencyKey?: string | undefined;
|
|
19295
19892
|
test?: boolean | undefined;
|
|
@@ -19304,6 +19901,8 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19304
19901
|
dependentBatch?: string | undefined;
|
|
19305
19902
|
lockToVersion?: string | undefined;
|
|
19306
19903
|
queue?: {
|
|
19904
|
+
name?: string | undefined;
|
|
19905
|
+
concurrencyLimit?: number | undefined;
|
|
19307
19906
|
rateLimit?: {
|
|
19308
19907
|
type: "fixed-window";
|
|
19309
19908
|
limit: number;
|
|
@@ -19337,8 +19936,6 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19337
19936
|
hours: number;
|
|
19338
19937
|
} | undefined);
|
|
19339
19938
|
} | undefined;
|
|
19340
|
-
concurrencyLimit?: number | undefined;
|
|
19341
|
-
name?: string | undefined;
|
|
19342
19939
|
} | undefined;
|
|
19343
19940
|
concurrencyKey?: string | undefined;
|
|
19344
19941
|
test?: boolean | undefined;
|
|
@@ -19354,6 +19951,8 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19354
19951
|
dependentBatch?: string | undefined;
|
|
19355
19952
|
lockToVersion?: string | undefined;
|
|
19356
19953
|
queue?: {
|
|
19954
|
+
name?: string | undefined;
|
|
19955
|
+
concurrencyLimit?: number | undefined;
|
|
19357
19956
|
rateLimit?: {
|
|
19358
19957
|
type: "fixed-window";
|
|
19359
19958
|
limit: number;
|
|
@@ -19387,8 +19986,6 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19387
19986
|
hours: number;
|
|
19388
19987
|
} | undefined);
|
|
19389
19988
|
} | undefined;
|
|
19390
|
-
concurrencyLimit?: number | undefined;
|
|
19391
|
-
name?: string | undefined;
|
|
19392
19989
|
} | undefined;
|
|
19393
19990
|
concurrencyKey?: string | undefined;
|
|
19394
19991
|
test?: boolean | undefined;
|
|
@@ -19397,4 +19994,4 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19397
19994
|
dependentAttempt?: string | undefined;
|
|
19398
19995
|
}>;
|
|
19399
19996
|
|
|
19400
|
-
export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, DevRuntimeManager, type EventEmitterLike, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, type GetSocketCallbackSchema, type GetSocketMessageSchema, type GetSocketMessagesWithCallback, type GetSocketMessagesWithoutCallback, type HandleErrorArgs, type HandleErrorFnParams, type HandleErrorFunction, type HandleErrorModificationOptions, type HandleErrorResult, ImageDetailsMetadata, type InferSocketCallbackSchema, type InferSocketMessageSchema, type InitFnParams, type InitOutput, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, Machine, type MessageCatalogToSocketIoEvents, type MessageFromCatalog, type MessageFromSchema, type MessagesFromSocketCatalog, type MiddlewareFnParams, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, type PreciseDateOrigin, type Prettify, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, type ProjectConfig, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, type RequireKeys, type ResolvedConfig, RetryOptions, type RunFnParams, type RuntimeManager, SemanticInternalAttributes, SharedQueueToClientMessages, SlidingWindowRateLimit, type SocketMessageHasCallback, SpanEvent, SpanEvents, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, type SuccessFnParams, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, type TaskExecutorOptions, type TaskLogger, TaskMetadata, TaskMetadataWithFilePath, type TaskMetadataWithFunctions, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, Variant, type WhoAmIResponse, WhoAmIResponseSchema, ZodIpcConnection, type ZodMessageCatalogSchema, type ZodMessageCatalogToSocketIoEvents, ZodMessageHandler, type ZodMessageHandlerOptions, type ZodMessageHandlers, ZodMessageSchema, ZodMessageSender, type ZodMessageSenderOptions, type ZodMessageValueSchema, ZodNamespace, type ZodNamespaceSocket, type ZodSocket, ZodSocketConnection, type ZodSocketMessageCatalogSchema, ZodSocketMessageHandler, type ZodSocketMessageHandlerOptions, type ZodSocketMessageHandlers, ZodSocketMessageSender, type ZodSocketMessageSenderOptions, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculatePreciseDateHrTime, calculateResetAt, childToWorkerMessages, clientWebsocketMessages, correctErrorStackTrace, createErrorTaskError, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, iconStringForSeverity, isCancellationSpanEvent, isExceptionSpanEvent, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, parseBatchTriggerTaskRequestBody, parseError, parseTriggerTaskRequestBody, preciseDateOriginNow, primitiveValueOrflattenedAttributes, runtime, serverWebsocketMessages, stringPatternMatchers, taskContextManager, unflattenAttributes, workerToChildMessages };
|
|
19997
|
+
export { Accessory, ApiClient, ApiClientManager, BackgroundWorkerClientMessages, BackgroundWorkerMetadata, BackgroundWorkerProperties, BackgroundWorkerServerMessages, BatchTaskRunExecutionResult, BatchTriggerTaskRequestBody, BatchTriggerTaskResponse, CancellationSpanEvent, ClientToSharedQueueMessages, Config, ConsoleInterceptor, type Context, CoordinatorToPlatformMessages, CoordinatorToProdWorkerMessages, type CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, CreateBackgroundWorkerRequestBody, CreateBackgroundWorkerResponse, DevRuntimeManager, type EventEmitterLike, EventFilter, ExceptionEventProperties, ExceptionSpanEvent, ExternalBuildData, FetchRetryBackoffStrategy, FetchRetryByStatusOptions, FetchRetryHeadersStrategy, FetchRetryOptions, FetchRetryStrategy, FetchTimeoutOptions, FixedWindowRateLimit, GetBatchResponseBody, GetDeploymentResponseBody, GetEnvironmentVariablesResponseBody, type GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, GetProjectEnvResponse, GetProjectResponseBody, GetProjectsResponseBody, type GetSocketCallbackSchema, type GetSocketMessageSchema, type GetSocketMessagesWithCallback, type GetSocketMessagesWithoutCallback, type HandleErrorArgs, type HandleErrorFnParams, type HandleErrorFunction, type HandleErrorModificationOptions, type HandleErrorResult, ImageDetailsMetadata, type InferSocketCallbackSchema, type InferSocketMessageSchema, type InitFnParams, type InitOutput, InitializeDeploymentRequestBody, InitializeDeploymentResponseBody, LogLevel$1 as LogLevel, Machine, type MessageCatalogToSocketIoEvents, type MessageFromCatalog, type MessageFromSchema, type MessagesFromSocketCatalog, type MiddlewareFnParams, OtelTaskLogger, OtherSpanEvent, PRIMARY_VARIANT, PlatformToCoordinatorMessages, PlatformToProviderMessages, type PreciseDateOrigin, type Prettify, ProdChildToWorkerMessages, ProdRuntimeManager, ProdTaskRunExecution, ProdTaskRunExecutionPayload, ProdWorkerSocketData, ProdWorkerToChildMessages, ProdWorkerToCoordinatorMessages, type ProjectConfig, ProviderToPlatformMessages, QueueOptions, RateLimitOptions, type RequireKeys, type ResolvedConfig, RetryOptions, type RunFnParams, type RuntimeManager, SemanticInternalAttributes, SharedQueueToClientMessages, SimpleStructuredLogger, SlidingWindowRateLimit, type SocketMessageHasCallback, SpanEvent, SpanEvents, SpanMessagingEvent, StartDeploymentIndexingRequestBody, StartDeploymentIndexingResponseBody, type StructuredLogger, type SuccessFnParams, TaskContextSpanProcessor, TaskEventStyle, TaskExecutor, type TaskExecutorOptions, type TaskLogger, TaskMetadata, TaskMetadataWithFilePath, type TaskMetadataWithFunctions, TaskResource, TaskRun, TaskRunBuiltInError, TaskRunContext, TaskRunCustomErrorObject, TaskRunError, TaskRunErrorCodes, TaskRunExecution, TaskRunExecutionAttempt, TaskRunExecutionBatch, TaskRunExecutionEnvironment, TaskRunExecutionOrganization, TaskRunExecutionPayload, TaskRunExecutionProject, TaskRunExecutionQueue, TaskRunExecutionResult, TaskRunExecutionRetry, TaskRunExecutionTask, TaskRunFailedExecutionResult, TaskRunInternalError, TaskRunStringError, TaskRunSuccessfulExecutionResult, TracingSDK, type TriggerOptions, TriggerTaskRequestBody, TriggerTaskResponse, TriggerTracer, UncaughtExceptionMessage, Variant, WaitReason, type WhoAmIResponse, WhoAmIResponseSchema, ZodIpcConnection, type ZodMessageCatalogSchema, type ZodMessageCatalogToSocketIoEvents, ZodMessageHandler, type ZodMessageHandlerOptions, type ZodMessageHandlers, ZodMessageSchema, ZodMessageSender, type ZodMessageSenderOptions, type ZodMessageValueSchema, ZodNamespace, type ZodNamespaceSocket, type ZodSocket, ZodSocketConnection, type ZodSocketMessageCatalogSchema, ZodSocketMessageHandler, type ZodSocketMessageHandlerOptions, type ZodSocketMessageHandlers, ZodSocketMessageSender, type ZodSocketMessageSenderOptions, accessoryAttributes, apiClientManager, calculateNextRetryDelay, calculatePreciseDateHrTime, calculateResetAt, childToWorkerMessages, clientWebsocketMessages, correctErrorStackTrace, createErrorTaskError, defaultFetchRetryOptions, defaultRetryOptions, detectDependencyVersion, flattenAttributes, formatDuration, formatDurationInDays, formatDurationMilliseconds, formatDurationNanoseconds, getEnvVar, iconStringForSeverity, isCancellationSpanEvent, isExceptionSpanEvent, logger, millisecondsToNanoseconds, nanosecondsToMilliseconds, omit, parseBatchTriggerTaskRequestBody, parseError, parseTriggerTaskRequestBody, preciseDateOriginNow, primitiveValueOrflattenedAttributes, runtime, serverWebsocketMessages, stringPatternMatchers, taskContextManager, unflattenAttributes, workerToChildMessages };
|