@trigger.dev/core 0.0.0-v3-canary-20240322220011 → 0.0.0-v3-canary-20240325170325
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 +985 -416
- package/dist/v3/index.d.ts +985 -416
- package/dist/v3/index.js +356 -118
- package/dist/v3/index.js.map +1 -1
- package/dist/v3/index.mjs +353 -119
- package/dist/v3/index.mjs.map +1 -1
- package/dist/v3/otel/index.d.mts +0 -2
- package/dist/v3/otel/index.d.ts +0 -2
- package/dist/v3/otel/index.js +4 -13
- package/dist/v3/otel/index.js.map +1 -1
- package/dist/v3/otel/index.mjs +4 -5
- package/dist/v3/otel/index.mjs.map +1 -1
- package/package.json +11 -15
package/dist/v3/index.d.mts
CHANGED
|
@@ -16,8 +16,6 @@ export { TracingDiagnosticLogLevel, recordSpanException } from './otel/index.mjs
|
|
|
16
16
|
import { InstrumentationOption } from '@opentelemetry/instrumentation';
|
|
17
17
|
import '@opentelemetry/resources';
|
|
18
18
|
import '@opentelemetry/sdk-logs';
|
|
19
|
-
import '@opentelemetry/instrumentation-http';
|
|
20
|
-
import '@opentelemetry/instrumentation-fetch';
|
|
21
19
|
|
|
22
20
|
declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
|
|
23
21
|
url: z.ZodString;
|
|
@@ -197,6 +195,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
197
195
|
filePath: z.ZodString;
|
|
198
196
|
exportName: z.ZodString;
|
|
199
197
|
queue: z.ZodOptional<z.ZodObject<{
|
|
198
|
+
name: z.ZodOptional<z.ZodString>;
|
|
199
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
200
200
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
201
201
|
type: z.ZodLiteral<"fixed-window">;
|
|
202
202
|
limit: z.ZodNumber;
|
|
@@ -306,9 +306,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
306
306
|
hours: number;
|
|
307
307
|
} | undefined);
|
|
308
308
|
}>]>>;
|
|
309
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
310
|
-
name: z.ZodOptional<z.ZodString>;
|
|
311
309
|
}, "strip", z.ZodTypeAny, {
|
|
310
|
+
name?: string | undefined;
|
|
311
|
+
concurrencyLimit?: number | undefined;
|
|
312
312
|
rateLimit?: {
|
|
313
313
|
type: "fixed-window";
|
|
314
314
|
limit: number;
|
|
@@ -342,9 +342,9 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
342
342
|
hours: number;
|
|
343
343
|
} | undefined);
|
|
344
344
|
} | undefined;
|
|
345
|
-
concurrencyLimit?: number | undefined;
|
|
346
|
-
name?: string | undefined;
|
|
347
345
|
}, {
|
|
346
|
+
name?: string | undefined;
|
|
347
|
+
concurrencyLimit?: number | undefined;
|
|
348
348
|
rateLimit?: {
|
|
349
349
|
type: "fixed-window";
|
|
350
350
|
limit: number;
|
|
@@ -378,8 +378,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
378
378
|
hours: number;
|
|
379
379
|
} | undefined);
|
|
380
380
|
} | undefined;
|
|
381
|
-
concurrencyLimit?: number | undefined;
|
|
382
|
-
name?: string | undefined;
|
|
383
381
|
}>>;
|
|
384
382
|
retry: z.ZodOptional<z.ZodObject<{
|
|
385
383
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -405,6 +403,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
405
403
|
filePath: string;
|
|
406
404
|
exportName: string;
|
|
407
405
|
queue?: {
|
|
406
|
+
name?: string | undefined;
|
|
407
|
+
concurrencyLimit?: number | undefined;
|
|
408
408
|
rateLimit?: {
|
|
409
409
|
type: "fixed-window";
|
|
410
410
|
limit: number;
|
|
@@ -438,8 +438,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
438
438
|
hours: number;
|
|
439
439
|
} | undefined);
|
|
440
440
|
} | undefined;
|
|
441
|
-
concurrencyLimit?: number | undefined;
|
|
442
|
-
name?: string | undefined;
|
|
443
441
|
} | undefined;
|
|
444
442
|
retry?: {
|
|
445
443
|
maxAttempts?: number | undefined;
|
|
@@ -453,6 +451,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
453
451
|
filePath: string;
|
|
454
452
|
exportName: string;
|
|
455
453
|
queue?: {
|
|
454
|
+
name?: string | undefined;
|
|
455
|
+
concurrencyLimit?: number | undefined;
|
|
456
456
|
rateLimit?: {
|
|
457
457
|
type: "fixed-window";
|
|
458
458
|
limit: number;
|
|
@@ -486,8 +486,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
486
486
|
hours: number;
|
|
487
487
|
} | undefined);
|
|
488
488
|
} | undefined;
|
|
489
|
-
concurrencyLimit?: number | undefined;
|
|
490
|
-
name?: string | undefined;
|
|
491
489
|
} | undefined;
|
|
492
490
|
retry?: {
|
|
493
491
|
maxAttempts?: number | undefined;
|
|
@@ -505,6 +503,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
505
503
|
filePath: string;
|
|
506
504
|
exportName: string;
|
|
507
505
|
queue?: {
|
|
506
|
+
name?: string | undefined;
|
|
507
|
+
concurrencyLimit?: number | undefined;
|
|
508
508
|
rateLimit?: {
|
|
509
509
|
type: "fixed-window";
|
|
510
510
|
limit: number;
|
|
@@ -538,8 +538,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
538
538
|
hours: number;
|
|
539
539
|
} | undefined);
|
|
540
540
|
} | undefined;
|
|
541
|
-
concurrencyLimit?: number | undefined;
|
|
542
|
-
name?: string | undefined;
|
|
543
541
|
} | undefined;
|
|
544
542
|
retry?: {
|
|
545
543
|
maxAttempts?: number | undefined;
|
|
@@ -558,6 +556,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
558
556
|
filePath: string;
|
|
559
557
|
exportName: string;
|
|
560
558
|
queue?: {
|
|
559
|
+
name?: string | undefined;
|
|
560
|
+
concurrencyLimit?: number | undefined;
|
|
561
561
|
rateLimit?: {
|
|
562
562
|
type: "fixed-window";
|
|
563
563
|
limit: number;
|
|
@@ -591,8 +591,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
591
591
|
hours: number;
|
|
592
592
|
} | undefined);
|
|
593
593
|
} | undefined;
|
|
594
|
-
concurrencyLimit?: number | undefined;
|
|
595
|
-
name?: string | undefined;
|
|
596
594
|
} | undefined;
|
|
597
595
|
retry?: {
|
|
598
596
|
maxAttempts?: number | undefined;
|
|
@@ -613,6 +611,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
613
611
|
filePath: string;
|
|
614
612
|
exportName: string;
|
|
615
613
|
queue?: {
|
|
614
|
+
name?: string | undefined;
|
|
615
|
+
concurrencyLimit?: number | undefined;
|
|
616
616
|
rateLimit?: {
|
|
617
617
|
type: "fixed-window";
|
|
618
618
|
limit: number;
|
|
@@ -646,8 +646,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
646
646
|
hours: number;
|
|
647
647
|
} | undefined);
|
|
648
648
|
} | undefined;
|
|
649
|
-
concurrencyLimit?: number | undefined;
|
|
650
|
-
name?: string | undefined;
|
|
651
649
|
} | undefined;
|
|
652
650
|
retry?: {
|
|
653
651
|
maxAttempts?: number | undefined;
|
|
@@ -669,6 +667,8 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
669
667
|
filePath: string;
|
|
670
668
|
exportName: string;
|
|
671
669
|
queue?: {
|
|
670
|
+
name?: string | undefined;
|
|
671
|
+
concurrencyLimit?: number | undefined;
|
|
672
672
|
rateLimit?: {
|
|
673
673
|
type: "fixed-window";
|
|
674
674
|
limit: number;
|
|
@@ -702,8 +702,6 @@ declare const CreateBackgroundWorkerRequestBody: z.ZodObject<{
|
|
|
702
702
|
hours: number;
|
|
703
703
|
} | undefined);
|
|
704
704
|
} | undefined;
|
|
705
|
-
concurrencyLimit?: number | undefined;
|
|
706
|
-
name?: string | undefined;
|
|
707
705
|
} | undefined;
|
|
708
706
|
retry?: {
|
|
709
707
|
maxAttempts?: number | undefined;
|
|
@@ -740,6 +738,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
740
738
|
dependentBatch: z.ZodOptional<z.ZodString>;
|
|
741
739
|
lockToVersion: z.ZodOptional<z.ZodString>;
|
|
742
740
|
queue: z.ZodOptional<z.ZodObject<{
|
|
741
|
+
name: z.ZodOptional<z.ZodString>;
|
|
742
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
743
743
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
744
744
|
type: z.ZodLiteral<"fixed-window">;
|
|
745
745
|
limit: z.ZodNumber;
|
|
@@ -849,9 +849,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
849
849
|
hours: number;
|
|
850
850
|
} | undefined);
|
|
851
851
|
}>]>>;
|
|
852
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
853
|
-
name: z.ZodOptional<z.ZodString>;
|
|
854
852
|
}, "strip", z.ZodTypeAny, {
|
|
853
|
+
name?: string | undefined;
|
|
854
|
+
concurrencyLimit?: number | undefined;
|
|
855
855
|
rateLimit?: {
|
|
856
856
|
type: "fixed-window";
|
|
857
857
|
limit: number;
|
|
@@ -885,9 +885,9 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
885
885
|
hours: number;
|
|
886
886
|
} | undefined);
|
|
887
887
|
} | undefined;
|
|
888
|
-
concurrencyLimit?: number | undefined;
|
|
889
|
-
name?: string | undefined;
|
|
890
888
|
}, {
|
|
889
|
+
name?: string | undefined;
|
|
890
|
+
concurrencyLimit?: number | undefined;
|
|
891
891
|
rateLimit?: {
|
|
892
892
|
type: "fixed-window";
|
|
893
893
|
limit: number;
|
|
@@ -921,8 +921,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
921
921
|
hours: number;
|
|
922
922
|
} | undefined);
|
|
923
923
|
} | undefined;
|
|
924
|
-
concurrencyLimit?: number | undefined;
|
|
925
|
-
name?: string | undefined;
|
|
926
924
|
}>>;
|
|
927
925
|
concurrencyKey: z.ZodOptional<z.ZodString>;
|
|
928
926
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -931,6 +929,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
931
929
|
dependentBatch?: string | undefined;
|
|
932
930
|
lockToVersion?: string | undefined;
|
|
933
931
|
queue?: {
|
|
932
|
+
name?: string | undefined;
|
|
933
|
+
concurrencyLimit?: number | undefined;
|
|
934
934
|
rateLimit?: {
|
|
935
935
|
type: "fixed-window";
|
|
936
936
|
limit: number;
|
|
@@ -964,8 +964,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
964
964
|
hours: number;
|
|
965
965
|
} | undefined);
|
|
966
966
|
} | undefined;
|
|
967
|
-
concurrencyLimit?: number | undefined;
|
|
968
|
-
name?: string | undefined;
|
|
969
967
|
} | undefined;
|
|
970
968
|
concurrencyKey?: string | undefined;
|
|
971
969
|
test?: boolean | undefined;
|
|
@@ -974,6 +972,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
974
972
|
dependentBatch?: string | undefined;
|
|
975
973
|
lockToVersion?: string | undefined;
|
|
976
974
|
queue?: {
|
|
975
|
+
name?: string | undefined;
|
|
976
|
+
concurrencyLimit?: number | undefined;
|
|
977
977
|
rateLimit?: {
|
|
978
978
|
type: "fixed-window";
|
|
979
979
|
limit: number;
|
|
@@ -1007,8 +1007,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1007
1007
|
hours: number;
|
|
1008
1008
|
} | undefined);
|
|
1009
1009
|
} | undefined;
|
|
1010
|
-
concurrencyLimit?: number | undefined;
|
|
1011
|
-
name?: string | undefined;
|
|
1012
1010
|
} | undefined;
|
|
1013
1011
|
concurrencyKey?: string | undefined;
|
|
1014
1012
|
test?: boolean | undefined;
|
|
@@ -1021,6 +1019,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1021
1019
|
dependentBatch?: string | undefined;
|
|
1022
1020
|
lockToVersion?: string | undefined;
|
|
1023
1021
|
queue?: {
|
|
1022
|
+
name?: string | undefined;
|
|
1023
|
+
concurrencyLimit?: number | undefined;
|
|
1024
1024
|
rateLimit?: {
|
|
1025
1025
|
type: "fixed-window";
|
|
1026
1026
|
limit: number;
|
|
@@ -1054,8 +1054,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1054
1054
|
hours: number;
|
|
1055
1055
|
} | undefined);
|
|
1056
1056
|
} | undefined;
|
|
1057
|
-
concurrencyLimit?: number | undefined;
|
|
1058
|
-
name?: string | undefined;
|
|
1059
1057
|
} | undefined;
|
|
1060
1058
|
concurrencyKey?: string | undefined;
|
|
1061
1059
|
test?: boolean | undefined;
|
|
@@ -1068,6 +1066,8 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1068
1066
|
dependentBatch?: string | undefined;
|
|
1069
1067
|
lockToVersion?: string | undefined;
|
|
1070
1068
|
queue?: {
|
|
1069
|
+
name?: string | undefined;
|
|
1070
|
+
concurrencyLimit?: number | undefined;
|
|
1071
1071
|
rateLimit?: {
|
|
1072
1072
|
type: "fixed-window";
|
|
1073
1073
|
limit: number;
|
|
@@ -1101,8 +1101,6 @@ declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
1101
1101
|
hours: number;
|
|
1102
1102
|
} | undefined);
|
|
1103
1103
|
} | undefined;
|
|
1104
|
-
concurrencyLimit?: number | undefined;
|
|
1105
|
-
name?: string | undefined;
|
|
1106
1104
|
} | undefined;
|
|
1107
1105
|
concurrencyKey?: string | undefined;
|
|
1108
1106
|
test?: boolean | undefined;
|
|
@@ -1126,6 +1124,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1126
1124
|
dependentBatch: z.ZodOptional<z.ZodString>;
|
|
1127
1125
|
lockToVersion: z.ZodOptional<z.ZodString>;
|
|
1128
1126
|
queue: z.ZodOptional<z.ZodObject<{
|
|
1127
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1128
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1129
1129
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1130
1130
|
type: z.ZodLiteral<"fixed-window">;
|
|
1131
1131
|
limit: z.ZodNumber;
|
|
@@ -1235,9 +1235,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1235
1235
|
hours: number;
|
|
1236
1236
|
} | undefined);
|
|
1237
1237
|
}>]>>;
|
|
1238
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1239
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1240
1238
|
}, "strip", z.ZodTypeAny, {
|
|
1239
|
+
name?: string | undefined;
|
|
1240
|
+
concurrencyLimit?: number | undefined;
|
|
1241
1241
|
rateLimit?: {
|
|
1242
1242
|
type: "fixed-window";
|
|
1243
1243
|
limit: number;
|
|
@@ -1271,9 +1271,9 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1271
1271
|
hours: number;
|
|
1272
1272
|
} | undefined);
|
|
1273
1273
|
} | undefined;
|
|
1274
|
-
concurrencyLimit?: number | undefined;
|
|
1275
|
-
name?: string | undefined;
|
|
1276
1274
|
}, {
|
|
1275
|
+
name?: string | undefined;
|
|
1276
|
+
concurrencyLimit?: number | undefined;
|
|
1277
1277
|
rateLimit?: {
|
|
1278
1278
|
type: "fixed-window";
|
|
1279
1279
|
limit: number;
|
|
@@ -1307,8 +1307,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1307
1307
|
hours: number;
|
|
1308
1308
|
} | undefined);
|
|
1309
1309
|
} | undefined;
|
|
1310
|
-
concurrencyLimit?: number | undefined;
|
|
1311
|
-
name?: string | undefined;
|
|
1312
1310
|
}>>;
|
|
1313
1311
|
concurrencyKey: z.ZodOptional<z.ZodString>;
|
|
1314
1312
|
test: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1317,6 +1315,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1317
1315
|
dependentBatch?: string | undefined;
|
|
1318
1316
|
lockToVersion?: string | undefined;
|
|
1319
1317
|
queue?: {
|
|
1318
|
+
name?: string | undefined;
|
|
1319
|
+
concurrencyLimit?: number | undefined;
|
|
1320
1320
|
rateLimit?: {
|
|
1321
1321
|
type: "fixed-window";
|
|
1322
1322
|
limit: number;
|
|
@@ -1350,8 +1350,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1350
1350
|
hours: number;
|
|
1351
1351
|
} | undefined);
|
|
1352
1352
|
} | undefined;
|
|
1353
|
-
concurrencyLimit?: number | undefined;
|
|
1354
|
-
name?: string | undefined;
|
|
1355
1353
|
} | undefined;
|
|
1356
1354
|
concurrencyKey?: string | undefined;
|
|
1357
1355
|
test?: boolean | undefined;
|
|
@@ -1360,6 +1358,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1360
1358
|
dependentBatch?: string | undefined;
|
|
1361
1359
|
lockToVersion?: string | undefined;
|
|
1362
1360
|
queue?: {
|
|
1361
|
+
name?: string | undefined;
|
|
1362
|
+
concurrencyLimit?: number | undefined;
|
|
1363
1363
|
rateLimit?: {
|
|
1364
1364
|
type: "fixed-window";
|
|
1365
1365
|
limit: number;
|
|
@@ -1393,8 +1393,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1393
1393
|
hours: number;
|
|
1394
1394
|
} | undefined);
|
|
1395
1395
|
} | undefined;
|
|
1396
|
-
concurrencyLimit?: number | undefined;
|
|
1397
|
-
name?: string | undefined;
|
|
1398
1396
|
} | undefined;
|
|
1399
1397
|
concurrencyKey?: string | undefined;
|
|
1400
1398
|
test?: boolean | undefined;
|
|
@@ -1407,6 +1405,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1407
1405
|
dependentBatch?: string | undefined;
|
|
1408
1406
|
lockToVersion?: string | undefined;
|
|
1409
1407
|
queue?: {
|
|
1408
|
+
name?: string | undefined;
|
|
1409
|
+
concurrencyLimit?: number | undefined;
|
|
1410
1410
|
rateLimit?: {
|
|
1411
1411
|
type: "fixed-window";
|
|
1412
1412
|
limit: number;
|
|
@@ -1440,8 +1440,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1440
1440
|
hours: number;
|
|
1441
1441
|
} | undefined);
|
|
1442
1442
|
} | undefined;
|
|
1443
|
-
concurrencyLimit?: number | undefined;
|
|
1444
|
-
name?: string | undefined;
|
|
1445
1443
|
} | undefined;
|
|
1446
1444
|
concurrencyKey?: string | undefined;
|
|
1447
1445
|
test?: boolean | undefined;
|
|
@@ -1454,6 +1452,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1454
1452
|
dependentBatch?: string | undefined;
|
|
1455
1453
|
lockToVersion?: string | undefined;
|
|
1456
1454
|
queue?: {
|
|
1455
|
+
name?: string | undefined;
|
|
1456
|
+
concurrencyLimit?: number | undefined;
|
|
1457
1457
|
rateLimit?: {
|
|
1458
1458
|
type: "fixed-window";
|
|
1459
1459
|
limit: number;
|
|
@@ -1487,8 +1487,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1487
1487
|
hours: number;
|
|
1488
1488
|
} | undefined);
|
|
1489
1489
|
} | undefined;
|
|
1490
|
-
concurrencyLimit?: number | undefined;
|
|
1491
|
-
name?: string | undefined;
|
|
1492
1490
|
} | undefined;
|
|
1493
1491
|
concurrencyKey?: string | undefined;
|
|
1494
1492
|
test?: boolean | undefined;
|
|
@@ -1504,6 +1502,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1504
1502
|
dependentBatch?: string | undefined;
|
|
1505
1503
|
lockToVersion?: string | undefined;
|
|
1506
1504
|
queue?: {
|
|
1505
|
+
name?: string | undefined;
|
|
1506
|
+
concurrencyLimit?: number | undefined;
|
|
1507
1507
|
rateLimit?: {
|
|
1508
1508
|
type: "fixed-window";
|
|
1509
1509
|
limit: number;
|
|
@@ -1537,8 +1537,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1537
1537
|
hours: number;
|
|
1538
1538
|
} | undefined);
|
|
1539
1539
|
} | undefined;
|
|
1540
|
-
concurrencyLimit?: number | undefined;
|
|
1541
|
-
name?: string | undefined;
|
|
1542
1540
|
} | undefined;
|
|
1543
1541
|
concurrencyKey?: string | undefined;
|
|
1544
1542
|
test?: boolean | undefined;
|
|
@@ -1554,6 +1552,8 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1554
1552
|
dependentBatch?: string | undefined;
|
|
1555
1553
|
lockToVersion?: string | undefined;
|
|
1556
1554
|
queue?: {
|
|
1555
|
+
name?: string | undefined;
|
|
1556
|
+
concurrencyLimit?: number | undefined;
|
|
1557
1557
|
rateLimit?: {
|
|
1558
1558
|
type: "fixed-window";
|
|
1559
1559
|
limit: number;
|
|
@@ -1587,8 +1587,6 @@ declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1587
1587
|
hours: number;
|
|
1588
1588
|
} | undefined);
|
|
1589
1589
|
} | undefined;
|
|
1590
|
-
concurrencyLimit?: number | undefined;
|
|
1591
|
-
name?: string | undefined;
|
|
1592
1590
|
} | undefined;
|
|
1593
1591
|
concurrencyKey?: string | undefined;
|
|
1594
1592
|
test?: boolean | undefined;
|
|
@@ -1749,12 +1747,12 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1749
1747
|
message: z.ZodString;
|
|
1750
1748
|
stack: z.ZodOptional<z.ZodString>;
|
|
1751
1749
|
}, "strip", z.ZodTypeAny, {
|
|
1752
|
-
message: string;
|
|
1753
1750
|
name: string;
|
|
1751
|
+
message: string;
|
|
1754
1752
|
stack?: string | undefined;
|
|
1755
1753
|
}, {
|
|
1756
|
-
message: string;
|
|
1757
1754
|
name: string;
|
|
1755
|
+
message: string;
|
|
1758
1756
|
stack?: string | undefined;
|
|
1759
1757
|
}>>>;
|
|
1760
1758
|
worker: z.ZodOptional<z.ZodObject<{
|
|
@@ -1803,8 +1801,8 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1803
1801
|
shortCode: string;
|
|
1804
1802
|
imageReference?: string | undefined;
|
|
1805
1803
|
errorData?: {
|
|
1806
|
-
message: string;
|
|
1807
1804
|
name: string;
|
|
1805
|
+
message: string;
|
|
1808
1806
|
stack?: string | undefined;
|
|
1809
1807
|
} | null | undefined;
|
|
1810
1808
|
worker?: {
|
|
@@ -1825,8 +1823,8 @@ declare const GetDeploymentResponseBody: z.ZodObject<{
|
|
|
1825
1823
|
shortCode: string;
|
|
1826
1824
|
imageReference?: string | undefined;
|
|
1827
1825
|
errorData?: {
|
|
1828
|
-
message: string;
|
|
1829
1826
|
name: string;
|
|
1827
|
+
message: string;
|
|
1830
1828
|
stack?: string | undefined;
|
|
1831
1829
|
} | null | undefined;
|
|
1832
1830
|
worker?: {
|
|
@@ -1847,6 +1845,8 @@ declare const TaskResource: z.ZodObject<{
|
|
|
1847
1845
|
filePath: z.ZodString;
|
|
1848
1846
|
exportName: z.ZodString;
|
|
1849
1847
|
queue: z.ZodOptional<z.ZodObject<{
|
|
1848
|
+
name: z.ZodOptional<z.ZodString>;
|
|
1849
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1850
1850
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
1851
1851
|
type: z.ZodLiteral<"fixed-window">;
|
|
1852
1852
|
limit: z.ZodNumber;
|
|
@@ -1956,9 +1956,9 @@ declare const TaskResource: z.ZodObject<{
|
|
|
1956
1956
|
hours: number;
|
|
1957
1957
|
} | undefined);
|
|
1958
1958
|
}>]>>;
|
|
1959
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
1960
|
-
name: z.ZodOptional<z.ZodString>;
|
|
1961
1959
|
}, "strip", z.ZodTypeAny, {
|
|
1960
|
+
name?: string | undefined;
|
|
1961
|
+
concurrencyLimit?: number | undefined;
|
|
1962
1962
|
rateLimit?: {
|
|
1963
1963
|
type: "fixed-window";
|
|
1964
1964
|
limit: number;
|
|
@@ -1992,9 +1992,9 @@ declare const TaskResource: z.ZodObject<{
|
|
|
1992
1992
|
hours: number;
|
|
1993
1993
|
} | undefined);
|
|
1994
1994
|
} | undefined;
|
|
1995
|
-
concurrencyLimit?: number | undefined;
|
|
1996
|
-
name?: string | undefined;
|
|
1997
1995
|
}, {
|
|
1996
|
+
name?: string | undefined;
|
|
1997
|
+
concurrencyLimit?: number | undefined;
|
|
1998
1998
|
rateLimit?: {
|
|
1999
1999
|
type: "fixed-window";
|
|
2000
2000
|
limit: number;
|
|
@@ -2028,8 +2028,6 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2028
2028
|
hours: number;
|
|
2029
2029
|
} | undefined);
|
|
2030
2030
|
} | undefined;
|
|
2031
|
-
concurrencyLimit?: number | undefined;
|
|
2032
|
-
name?: string | undefined;
|
|
2033
2031
|
}>>;
|
|
2034
2032
|
retry: z.ZodOptional<z.ZodObject<{
|
|
2035
2033
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2055,6 +2053,8 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2055
2053
|
filePath: string;
|
|
2056
2054
|
exportName: string;
|
|
2057
2055
|
queue?: {
|
|
2056
|
+
name?: string | undefined;
|
|
2057
|
+
concurrencyLimit?: number | undefined;
|
|
2058
2058
|
rateLimit?: {
|
|
2059
2059
|
type: "fixed-window";
|
|
2060
2060
|
limit: number;
|
|
@@ -2088,8 +2088,6 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2088
2088
|
hours: number;
|
|
2089
2089
|
} | undefined);
|
|
2090
2090
|
} | undefined;
|
|
2091
|
-
concurrencyLimit?: number | undefined;
|
|
2092
|
-
name?: string | undefined;
|
|
2093
2091
|
} | undefined;
|
|
2094
2092
|
retry?: {
|
|
2095
2093
|
maxAttempts?: number | undefined;
|
|
@@ -2103,6 +2101,8 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2103
2101
|
filePath: string;
|
|
2104
2102
|
exportName: string;
|
|
2105
2103
|
queue?: {
|
|
2104
|
+
name?: string | undefined;
|
|
2105
|
+
concurrencyLimit?: number | undefined;
|
|
2106
2106
|
rateLimit?: {
|
|
2107
2107
|
type: "fixed-window";
|
|
2108
2108
|
limit: number;
|
|
@@ -2136,8 +2136,6 @@ declare const TaskResource: z.ZodObject<{
|
|
|
2136
2136
|
hours: number;
|
|
2137
2137
|
} | undefined);
|
|
2138
2138
|
} | undefined;
|
|
2139
|
-
concurrencyLimit?: number | undefined;
|
|
2140
|
-
name?: string | undefined;
|
|
2141
2139
|
} | undefined;
|
|
2142
2140
|
retry?: {
|
|
2143
2141
|
maxAttempts?: number | undefined;
|
|
@@ -2157,6 +2155,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2157
2155
|
filePath: z.ZodString;
|
|
2158
2156
|
exportName: z.ZodString;
|
|
2159
2157
|
queue: z.ZodOptional<z.ZodObject<{
|
|
2158
|
+
name: z.ZodOptional<z.ZodString>;
|
|
2159
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
2160
2160
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
2161
2161
|
type: z.ZodLiteral<"fixed-window">;
|
|
2162
2162
|
limit: z.ZodNumber;
|
|
@@ -2266,9 +2266,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2266
2266
|
hours: number;
|
|
2267
2267
|
} | undefined);
|
|
2268
2268
|
}>]>>;
|
|
2269
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
2270
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2271
2269
|
}, "strip", z.ZodTypeAny, {
|
|
2270
|
+
name?: string | undefined;
|
|
2271
|
+
concurrencyLimit?: number | undefined;
|
|
2272
2272
|
rateLimit?: {
|
|
2273
2273
|
type: "fixed-window";
|
|
2274
2274
|
limit: number;
|
|
@@ -2302,9 +2302,9 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2302
2302
|
hours: number;
|
|
2303
2303
|
} | undefined);
|
|
2304
2304
|
} | undefined;
|
|
2305
|
-
concurrencyLimit?: number | undefined;
|
|
2306
|
-
name?: string | undefined;
|
|
2307
2305
|
}, {
|
|
2306
|
+
name?: string | undefined;
|
|
2307
|
+
concurrencyLimit?: number | undefined;
|
|
2308
2308
|
rateLimit?: {
|
|
2309
2309
|
type: "fixed-window";
|
|
2310
2310
|
limit: number;
|
|
@@ -2338,8 +2338,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2338
2338
|
hours: number;
|
|
2339
2339
|
} | undefined);
|
|
2340
2340
|
} | undefined;
|
|
2341
|
-
concurrencyLimit?: number | undefined;
|
|
2342
|
-
name?: string | undefined;
|
|
2343
2341
|
}>>;
|
|
2344
2342
|
retry: z.ZodOptional<z.ZodObject<{
|
|
2345
2343
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2365,6 +2363,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2365
2363
|
filePath: string;
|
|
2366
2364
|
exportName: string;
|
|
2367
2365
|
queue?: {
|
|
2366
|
+
name?: string | undefined;
|
|
2367
|
+
concurrencyLimit?: number | undefined;
|
|
2368
2368
|
rateLimit?: {
|
|
2369
2369
|
type: "fixed-window";
|
|
2370
2370
|
limit: number;
|
|
@@ -2398,8 +2398,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2398
2398
|
hours: number;
|
|
2399
2399
|
} | undefined);
|
|
2400
2400
|
} | undefined;
|
|
2401
|
-
concurrencyLimit?: number | undefined;
|
|
2402
|
-
name?: string | undefined;
|
|
2403
2401
|
} | undefined;
|
|
2404
2402
|
retry?: {
|
|
2405
2403
|
maxAttempts?: number | undefined;
|
|
@@ -2413,6 +2411,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2413
2411
|
filePath: string;
|
|
2414
2412
|
exportName: string;
|
|
2415
2413
|
queue?: {
|
|
2414
|
+
name?: string | undefined;
|
|
2415
|
+
concurrencyLimit?: number | undefined;
|
|
2416
2416
|
rateLimit?: {
|
|
2417
2417
|
type: "fixed-window";
|
|
2418
2418
|
limit: number;
|
|
@@ -2446,8 +2446,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2446
2446
|
hours: number;
|
|
2447
2447
|
} | undefined);
|
|
2448
2448
|
} | undefined;
|
|
2449
|
-
concurrencyLimit?: number | undefined;
|
|
2450
|
-
name?: string | undefined;
|
|
2451
2449
|
} | undefined;
|
|
2452
2450
|
retry?: {
|
|
2453
2451
|
maxAttempts?: number | undefined;
|
|
@@ -2465,6 +2463,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2465
2463
|
filePath: string;
|
|
2466
2464
|
exportName: string;
|
|
2467
2465
|
queue?: {
|
|
2466
|
+
name?: string | undefined;
|
|
2467
|
+
concurrencyLimit?: number | undefined;
|
|
2468
2468
|
rateLimit?: {
|
|
2469
2469
|
type: "fixed-window";
|
|
2470
2470
|
limit: number;
|
|
@@ -2498,8 +2498,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2498
2498
|
hours: number;
|
|
2499
2499
|
} | undefined);
|
|
2500
2500
|
} | undefined;
|
|
2501
|
-
concurrencyLimit?: number | undefined;
|
|
2502
|
-
name?: string | undefined;
|
|
2503
2501
|
} | undefined;
|
|
2504
2502
|
retry?: {
|
|
2505
2503
|
maxAttempts?: number | undefined;
|
|
@@ -2518,6 +2516,8 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2518
2516
|
filePath: string;
|
|
2519
2517
|
exportName: string;
|
|
2520
2518
|
queue?: {
|
|
2519
|
+
name?: string | undefined;
|
|
2520
|
+
concurrencyLimit?: number | undefined;
|
|
2521
2521
|
rateLimit?: {
|
|
2522
2522
|
type: "fixed-window";
|
|
2523
2523
|
limit: number;
|
|
@@ -2551,8 +2551,6 @@ declare const BackgroundWorkerMetadata: z.ZodObject<{
|
|
|
2551
2551
|
hours: number;
|
|
2552
2552
|
} | undefined);
|
|
2553
2553
|
} | undefined;
|
|
2554
|
-
concurrencyLimit?: number | undefined;
|
|
2555
|
-
name?: string | undefined;
|
|
2556
2554
|
} | undefined;
|
|
2557
2555
|
retry?: {
|
|
2558
2556
|
maxAttempts?: number | undefined;
|
|
@@ -2583,14 +2581,14 @@ declare const TaskRunBuiltInError: z.ZodObject<{
|
|
|
2583
2581
|
message: z.ZodString;
|
|
2584
2582
|
stackTrace: z.ZodString;
|
|
2585
2583
|
}, "strip", z.ZodTypeAny, {
|
|
2584
|
+
name: string;
|
|
2586
2585
|
type: "BUILT_IN_ERROR";
|
|
2587
2586
|
message: string;
|
|
2588
|
-
name: string;
|
|
2589
2587
|
stackTrace: string;
|
|
2590
2588
|
}, {
|
|
2589
|
+
name: string;
|
|
2591
2590
|
type: "BUILT_IN_ERROR";
|
|
2592
2591
|
message: string;
|
|
2593
|
-
name: string;
|
|
2594
2592
|
stackTrace: string;
|
|
2595
2593
|
}>;
|
|
2596
2594
|
type TaskRunBuiltInError = z.infer<typeof TaskRunBuiltInError>;
|
|
@@ -2647,14 +2645,14 @@ declare const TaskRunError: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
2647
2645
|
message: z.ZodString;
|
|
2648
2646
|
stackTrace: z.ZodString;
|
|
2649
2647
|
}, "strip", z.ZodTypeAny, {
|
|
2648
|
+
name: string;
|
|
2650
2649
|
type: "BUILT_IN_ERROR";
|
|
2651
2650
|
message: string;
|
|
2652
|
-
name: string;
|
|
2653
2651
|
stackTrace: string;
|
|
2654
2652
|
}, {
|
|
2653
|
+
name: string;
|
|
2655
2654
|
type: "BUILT_IN_ERROR";
|
|
2656
2655
|
message: string;
|
|
2657
|
-
name: string;
|
|
2658
2656
|
stackTrace: string;
|
|
2659
2657
|
}>, z.ZodObject<{
|
|
2660
2658
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -3249,14 +3247,14 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
3249
3247
|
message: z.ZodString;
|
|
3250
3248
|
stackTrace: z.ZodString;
|
|
3251
3249
|
}, "strip", z.ZodTypeAny, {
|
|
3250
|
+
name: string;
|
|
3252
3251
|
type: "BUILT_IN_ERROR";
|
|
3253
3252
|
message: string;
|
|
3254
|
-
name: string;
|
|
3255
3253
|
stackTrace: string;
|
|
3256
3254
|
}, {
|
|
3255
|
+
name: string;
|
|
3257
3256
|
type: "BUILT_IN_ERROR";
|
|
3258
3257
|
message: string;
|
|
3259
|
-
name: string;
|
|
3260
3258
|
stackTrace: string;
|
|
3261
3259
|
}>, z.ZodObject<{
|
|
3262
3260
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -3305,9 +3303,9 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
3305
3303
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
3306
3304
|
}, "strip", z.ZodTypeAny, {
|
|
3307
3305
|
error: {
|
|
3306
|
+
name: string;
|
|
3308
3307
|
type: "BUILT_IN_ERROR";
|
|
3309
3308
|
message: string;
|
|
3310
|
-
name: string;
|
|
3311
3309
|
stackTrace: string;
|
|
3312
3310
|
} | {
|
|
3313
3311
|
type: "CUSTOM_ERROR";
|
|
@@ -3330,9 +3328,9 @@ declare const TaskRunFailedExecutionResult: z.ZodObject<{
|
|
|
3330
3328
|
skippedRetrying?: boolean | undefined;
|
|
3331
3329
|
}, {
|
|
3332
3330
|
error: {
|
|
3331
|
+
name: string;
|
|
3333
3332
|
type: "BUILT_IN_ERROR";
|
|
3334
3333
|
message: string;
|
|
3335
|
-
name: string;
|
|
3336
3334
|
stackTrace: string;
|
|
3337
3335
|
} | {
|
|
3338
3336
|
type: "CUSTOM_ERROR";
|
|
@@ -3396,14 +3394,14 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
|
|
|
3396
3394
|
message: z.ZodString;
|
|
3397
3395
|
stackTrace: z.ZodString;
|
|
3398
3396
|
}, "strip", z.ZodTypeAny, {
|
|
3397
|
+
name: string;
|
|
3399
3398
|
type: "BUILT_IN_ERROR";
|
|
3400
3399
|
message: string;
|
|
3401
|
-
name: string;
|
|
3402
3400
|
stackTrace: string;
|
|
3403
3401
|
}, {
|
|
3402
|
+
name: string;
|
|
3404
3403
|
type: "BUILT_IN_ERROR";
|
|
3405
3404
|
message: string;
|
|
3406
|
-
name: string;
|
|
3407
3405
|
stackTrace: string;
|
|
3408
3406
|
}>, z.ZodObject<{
|
|
3409
3407
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -3452,9 +3450,9 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
|
|
|
3452
3450
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
3453
3451
|
}, "strip", z.ZodTypeAny, {
|
|
3454
3452
|
error: {
|
|
3453
|
+
name: string;
|
|
3455
3454
|
type: "BUILT_IN_ERROR";
|
|
3456
3455
|
message: string;
|
|
3457
|
-
name: string;
|
|
3458
3456
|
stackTrace: string;
|
|
3459
3457
|
} | {
|
|
3460
3458
|
type: "CUSTOM_ERROR";
|
|
@@ -3477,9 +3475,9 @@ declare const TaskRunExecutionResult: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
|
|
|
3477
3475
|
skippedRetrying?: boolean | undefined;
|
|
3478
3476
|
}, {
|
|
3479
3477
|
error: {
|
|
3478
|
+
name: string;
|
|
3480
3479
|
type: "BUILT_IN_ERROR";
|
|
3481
3480
|
message: string;
|
|
3482
|
-
name: string;
|
|
3483
3481
|
stackTrace: string;
|
|
3484
3482
|
} | {
|
|
3485
3483
|
type: "CUSTOM_ERROR";
|
|
@@ -3528,14 +3526,14 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3528
3526
|
message: z.ZodString;
|
|
3529
3527
|
stackTrace: z.ZodString;
|
|
3530
3528
|
}, "strip", z.ZodTypeAny, {
|
|
3529
|
+
name: string;
|
|
3531
3530
|
type: "BUILT_IN_ERROR";
|
|
3532
3531
|
message: string;
|
|
3533
|
-
name: string;
|
|
3534
3532
|
stackTrace: string;
|
|
3535
3533
|
}, {
|
|
3534
|
+
name: string;
|
|
3536
3535
|
type: "BUILT_IN_ERROR";
|
|
3537
3536
|
message: string;
|
|
3538
|
-
name: string;
|
|
3539
3537
|
stackTrace: string;
|
|
3540
3538
|
}>, z.ZodObject<{
|
|
3541
3539
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -3584,9 +3582,9 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3584
3582
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
3585
3583
|
}, "strip", z.ZodTypeAny, {
|
|
3586
3584
|
error: {
|
|
3585
|
+
name: string;
|
|
3587
3586
|
type: "BUILT_IN_ERROR";
|
|
3588
3587
|
message: string;
|
|
3589
|
-
name: string;
|
|
3590
3588
|
stackTrace: string;
|
|
3591
3589
|
} | {
|
|
3592
3590
|
type: "CUSTOM_ERROR";
|
|
@@ -3609,9 +3607,9 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3609
3607
|
skippedRetrying?: boolean | undefined;
|
|
3610
3608
|
}, {
|
|
3611
3609
|
error: {
|
|
3610
|
+
name: string;
|
|
3612
3611
|
type: "BUILT_IN_ERROR";
|
|
3613
3612
|
message: string;
|
|
3614
|
-
name: string;
|
|
3615
3613
|
stackTrace: string;
|
|
3616
3614
|
} | {
|
|
3617
3615
|
type: "CUSTOM_ERROR";
|
|
@@ -3636,9 +3634,9 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3636
3634
|
}, "strip", z.ZodTypeAny, {
|
|
3637
3635
|
items: ({
|
|
3638
3636
|
error: {
|
|
3637
|
+
name: string;
|
|
3639
3638
|
type: "BUILT_IN_ERROR";
|
|
3640
3639
|
message: string;
|
|
3641
|
-
name: string;
|
|
3642
3640
|
stackTrace: string;
|
|
3643
3641
|
} | {
|
|
3644
3642
|
type: "CUSTOM_ERROR";
|
|
@@ -3669,9 +3667,9 @@ declare const BatchTaskRunExecutionResult: z.ZodObject<{
|
|
|
3669
3667
|
}, {
|
|
3670
3668
|
items: ({
|
|
3671
3669
|
error: {
|
|
3670
|
+
name: string;
|
|
3672
3671
|
type: "BUILT_IN_ERROR";
|
|
3673
3672
|
message: string;
|
|
3674
|
-
name: string;
|
|
3675
3673
|
stackTrace: string;
|
|
3676
3674
|
} | {
|
|
3677
3675
|
type: "CUSTOM_ERROR";
|
|
@@ -5051,15 +5049,18 @@ declare const BackgroundWorkerServerMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5051
5049
|
image: z.ZodString;
|
|
5052
5050
|
envId: z.ZodString;
|
|
5053
5051
|
runId: z.ZodString;
|
|
5052
|
+
version: z.ZodString;
|
|
5054
5053
|
}, "strip", z.ZodTypeAny, {
|
|
5055
5054
|
type: "SCHEDULE_ATTEMPT";
|
|
5056
5055
|
id: string;
|
|
5056
|
+
version: string;
|
|
5057
5057
|
image: string;
|
|
5058
5058
|
envId: string;
|
|
5059
5059
|
runId: string;
|
|
5060
5060
|
}, {
|
|
5061
5061
|
type: "SCHEDULE_ATTEMPT";
|
|
5062
5062
|
id: string;
|
|
5063
|
+
version: string;
|
|
5063
5064
|
image: string;
|
|
5064
5065
|
envId: string;
|
|
5065
5066
|
runId: string;
|
|
@@ -5522,15 +5523,18 @@ declare const serverWebsocketMessages: {
|
|
|
5522
5523
|
image: z.ZodString;
|
|
5523
5524
|
envId: z.ZodString;
|
|
5524
5525
|
runId: z.ZodString;
|
|
5526
|
+
version: z.ZodString;
|
|
5525
5527
|
}, "strip", z.ZodTypeAny, {
|
|
5526
5528
|
type: "SCHEDULE_ATTEMPT";
|
|
5527
5529
|
id: string;
|
|
5530
|
+
version: string;
|
|
5528
5531
|
image: string;
|
|
5529
5532
|
envId: string;
|
|
5530
5533
|
runId: string;
|
|
5531
5534
|
}, {
|
|
5532
5535
|
type: "SCHEDULE_ATTEMPT";
|
|
5533
5536
|
id: string;
|
|
5537
|
+
version: string;
|
|
5534
5538
|
image: string;
|
|
5535
5539
|
envId: string;
|
|
5536
5540
|
runId: string;
|
|
@@ -5596,6 +5600,7 @@ declare const serverWebsocketMessages: {
|
|
|
5596
5600
|
} | {
|
|
5597
5601
|
type: "SCHEDULE_ATTEMPT";
|
|
5598
5602
|
id: string;
|
|
5603
|
+
version: string;
|
|
5599
5604
|
image: string;
|
|
5600
5605
|
envId: string;
|
|
5601
5606
|
runId: string;
|
|
@@ -5663,6 +5668,7 @@ declare const serverWebsocketMessages: {
|
|
|
5663
5668
|
} | {
|
|
5664
5669
|
type: "SCHEDULE_ATTEMPT";
|
|
5665
5670
|
id: string;
|
|
5671
|
+
version: string;
|
|
5666
5672
|
image: string;
|
|
5667
5673
|
envId: string;
|
|
5668
5674
|
runId: string;
|
|
@@ -5698,14 +5704,14 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5698
5704
|
message: z.ZodString;
|
|
5699
5705
|
stackTrace: z.ZodString;
|
|
5700
5706
|
}, "strip", z.ZodTypeAny, {
|
|
5707
|
+
name: string;
|
|
5701
5708
|
type: "BUILT_IN_ERROR";
|
|
5702
5709
|
message: string;
|
|
5703
|
-
name: string;
|
|
5704
5710
|
stackTrace: string;
|
|
5705
5711
|
}, {
|
|
5712
|
+
name: string;
|
|
5706
5713
|
type: "BUILT_IN_ERROR";
|
|
5707
5714
|
message: string;
|
|
5708
|
-
name: string;
|
|
5709
5715
|
stackTrace: string;
|
|
5710
5716
|
}>, z.ZodObject<{
|
|
5711
5717
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -5754,9 +5760,9 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5754
5760
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
5755
5761
|
}, "strip", z.ZodTypeAny, {
|
|
5756
5762
|
error: {
|
|
5763
|
+
name: string;
|
|
5757
5764
|
type: "BUILT_IN_ERROR";
|
|
5758
5765
|
message: string;
|
|
5759
|
-
name: string;
|
|
5760
5766
|
stackTrace: string;
|
|
5761
5767
|
} | {
|
|
5762
5768
|
type: "CUSTOM_ERROR";
|
|
@@ -5779,9 +5785,9 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
5779
5785
|
skippedRetrying?: boolean | undefined;
|
|
5780
5786
|
}, {
|
|
5781
5787
|
error: {
|
|
5788
|
+
name: string;
|
|
5782
5789
|
type: "BUILT_IN_ERROR";
|
|
5783
5790
|
message: string;
|
|
5784
|
-
name: string;
|
|
5785
5791
|
stackTrace: string;
|
|
5786
5792
|
} | {
|
|
5787
5793
|
type: "CUSTOM_ERROR";
|
|
@@ -6068,9 +6074,9 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
6068
6074
|
version: "v1";
|
|
6069
6075
|
completion: {
|
|
6070
6076
|
error: {
|
|
6077
|
+
name: string;
|
|
6071
6078
|
type: "BUILT_IN_ERROR";
|
|
6072
6079
|
message: string;
|
|
6073
|
-
name: string;
|
|
6074
6080
|
stackTrace: string;
|
|
6075
6081
|
} | {
|
|
6076
6082
|
type: "CUSTOM_ERROR";
|
|
@@ -6148,9 +6154,9 @@ declare const BackgroundWorkerClientMessages: z.ZodDiscriminatedUnion<"type", [z
|
|
|
6148
6154
|
};
|
|
6149
6155
|
completion: {
|
|
6150
6156
|
error: {
|
|
6157
|
+
name: string;
|
|
6151
6158
|
type: "BUILT_IN_ERROR";
|
|
6152
6159
|
message: string;
|
|
6153
|
-
name: string;
|
|
6154
6160
|
stackTrace: string;
|
|
6155
6161
|
} | {
|
|
6156
6162
|
type: "CUSTOM_ERROR";
|
|
@@ -6257,14 +6263,14 @@ declare const clientWebsocketMessages: {
|
|
|
6257
6263
|
message: z.ZodString;
|
|
6258
6264
|
stackTrace: z.ZodString;
|
|
6259
6265
|
}, "strip", z.ZodTypeAny, {
|
|
6266
|
+
name: string;
|
|
6260
6267
|
type: "BUILT_IN_ERROR";
|
|
6261
6268
|
message: string;
|
|
6262
|
-
name: string;
|
|
6263
6269
|
stackTrace: string;
|
|
6264
6270
|
}, {
|
|
6271
|
+
name: string;
|
|
6265
6272
|
type: "BUILT_IN_ERROR";
|
|
6266
6273
|
message: string;
|
|
6267
|
-
name: string;
|
|
6268
6274
|
stackTrace: string;
|
|
6269
6275
|
}>, z.ZodObject<{
|
|
6270
6276
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -6313,9 +6319,9 @@ declare const clientWebsocketMessages: {
|
|
|
6313
6319
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
6314
6320
|
}, "strip", z.ZodTypeAny, {
|
|
6315
6321
|
error: {
|
|
6322
|
+
name: string;
|
|
6316
6323
|
type: "BUILT_IN_ERROR";
|
|
6317
6324
|
message: string;
|
|
6318
|
-
name: string;
|
|
6319
6325
|
stackTrace: string;
|
|
6320
6326
|
} | {
|
|
6321
6327
|
type: "CUSTOM_ERROR";
|
|
@@ -6338,9 +6344,9 @@ declare const clientWebsocketMessages: {
|
|
|
6338
6344
|
skippedRetrying?: boolean | undefined;
|
|
6339
6345
|
}, {
|
|
6340
6346
|
error: {
|
|
6347
|
+
name: string;
|
|
6341
6348
|
type: "BUILT_IN_ERROR";
|
|
6342
6349
|
message: string;
|
|
6343
|
-
name: string;
|
|
6344
6350
|
stackTrace: string;
|
|
6345
6351
|
} | {
|
|
6346
6352
|
type: "CUSTOM_ERROR";
|
|
@@ -6627,9 +6633,9 @@ declare const clientWebsocketMessages: {
|
|
|
6627
6633
|
version: "v1";
|
|
6628
6634
|
completion: {
|
|
6629
6635
|
error: {
|
|
6636
|
+
name: string;
|
|
6630
6637
|
type: "BUILT_IN_ERROR";
|
|
6631
6638
|
message: string;
|
|
6632
|
-
name: string;
|
|
6633
6639
|
stackTrace: string;
|
|
6634
6640
|
} | {
|
|
6635
6641
|
type: "CUSTOM_ERROR";
|
|
@@ -6707,9 +6713,9 @@ declare const clientWebsocketMessages: {
|
|
|
6707
6713
|
};
|
|
6708
6714
|
completion: {
|
|
6709
6715
|
error: {
|
|
6716
|
+
name: string;
|
|
6710
6717
|
type: "BUILT_IN_ERROR";
|
|
6711
6718
|
message: string;
|
|
6712
|
-
name: string;
|
|
6713
6719
|
stackTrace: string;
|
|
6714
6720
|
} | {
|
|
6715
6721
|
type: "CUSTOM_ERROR";
|
|
@@ -6803,9 +6809,9 @@ declare const clientWebsocketMessages: {
|
|
|
6803
6809
|
version: "v1";
|
|
6804
6810
|
completion: {
|
|
6805
6811
|
error: {
|
|
6812
|
+
name: string;
|
|
6806
6813
|
type: "BUILT_IN_ERROR";
|
|
6807
6814
|
message: string;
|
|
6808
|
-
name: string;
|
|
6809
6815
|
stackTrace: string;
|
|
6810
6816
|
} | {
|
|
6811
6817
|
type: "CUSTOM_ERROR";
|
|
@@ -6891,9 +6897,9 @@ declare const clientWebsocketMessages: {
|
|
|
6891
6897
|
};
|
|
6892
6898
|
completion: {
|
|
6893
6899
|
error: {
|
|
6900
|
+
name: string;
|
|
6894
6901
|
type: "BUILT_IN_ERROR";
|
|
6895
6902
|
message: string;
|
|
6896
|
-
name: string;
|
|
6897
6903
|
stackTrace: string;
|
|
6898
6904
|
} | {
|
|
6899
6905
|
type: "CUSTOM_ERROR";
|
|
@@ -7297,14 +7303,14 @@ declare const workerToChildMessages: {
|
|
|
7297
7303
|
message: z.ZodString;
|
|
7298
7304
|
stackTrace: z.ZodString;
|
|
7299
7305
|
}, "strip", z.ZodTypeAny, {
|
|
7306
|
+
name: string;
|
|
7300
7307
|
type: "BUILT_IN_ERROR";
|
|
7301
7308
|
message: string;
|
|
7302
|
-
name: string;
|
|
7303
7309
|
stackTrace: string;
|
|
7304
7310
|
}, {
|
|
7311
|
+
name: string;
|
|
7305
7312
|
type: "BUILT_IN_ERROR";
|
|
7306
7313
|
message: string;
|
|
7307
|
-
name: string;
|
|
7308
7314
|
stackTrace: string;
|
|
7309
7315
|
}>, z.ZodObject<{
|
|
7310
7316
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -7353,9 +7359,9 @@ declare const workerToChildMessages: {
|
|
|
7353
7359
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
7354
7360
|
}, "strip", z.ZodTypeAny, {
|
|
7355
7361
|
error: {
|
|
7362
|
+
name: string;
|
|
7356
7363
|
type: "BUILT_IN_ERROR";
|
|
7357
7364
|
message: string;
|
|
7358
|
-
name: string;
|
|
7359
7365
|
stackTrace: string;
|
|
7360
7366
|
} | {
|
|
7361
7367
|
type: "CUSTOM_ERROR";
|
|
@@ -7378,9 +7384,9 @@ declare const workerToChildMessages: {
|
|
|
7378
7384
|
skippedRetrying?: boolean | undefined;
|
|
7379
7385
|
}, {
|
|
7380
7386
|
error: {
|
|
7387
|
+
name: string;
|
|
7381
7388
|
type: "BUILT_IN_ERROR";
|
|
7382
7389
|
message: string;
|
|
7383
|
-
name: string;
|
|
7384
7390
|
stackTrace: string;
|
|
7385
7391
|
} | {
|
|
7386
7392
|
type: "CUSTOM_ERROR";
|
|
@@ -7666,9 +7672,9 @@ declare const workerToChildMessages: {
|
|
|
7666
7672
|
version: "v1";
|
|
7667
7673
|
completion: {
|
|
7668
7674
|
error: {
|
|
7675
|
+
name: string;
|
|
7669
7676
|
type: "BUILT_IN_ERROR";
|
|
7670
7677
|
message: string;
|
|
7671
|
-
name: string;
|
|
7672
7678
|
stackTrace: string;
|
|
7673
7679
|
} | {
|
|
7674
7680
|
type: "CUSTOM_ERROR";
|
|
@@ -7745,9 +7751,9 @@ declare const workerToChildMessages: {
|
|
|
7745
7751
|
};
|
|
7746
7752
|
completion: {
|
|
7747
7753
|
error: {
|
|
7754
|
+
name: string;
|
|
7748
7755
|
type: "BUILT_IN_ERROR";
|
|
7749
7756
|
message: string;
|
|
7750
|
-
name: string;
|
|
7751
7757
|
stackTrace: string;
|
|
7752
7758
|
} | {
|
|
7753
7759
|
type: "CUSTOM_ERROR";
|
|
@@ -7901,10 +7907,21 @@ declare const SlidingWindowRateLimit: z.ZodObject<{
|
|
|
7901
7907
|
} | undefined);
|
|
7902
7908
|
}>;
|
|
7903
7909
|
declare const RetryOptions: z.ZodObject<{
|
|
7910
|
+
/** The number of attempts before giving up */
|
|
7904
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
|
+
*/
|
|
7905
7916
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
7917
|
+
/** The minimum time to wait before retrying */
|
|
7906
7918
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
7919
|
+
/** The maximum time to wait before retrying */
|
|
7907
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
|
+
*/
|
|
7908
7925
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
7909
7926
|
}, "strip", z.ZodTypeAny, {
|
|
7910
7927
|
maxAttempts?: number | undefined;
|
|
@@ -8031,6 +8048,42 @@ declare const RateLimitOptions: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
8031
8048
|
}>]>;
|
|
8032
8049
|
type RateLimitOptions = z.infer<typeof RateLimitOptions>;
|
|
8033
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>;
|
|
8034
8087
|
/** @deprecated This feature is coming soon */
|
|
8035
8088
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8036
8089
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -8141,9 +8194,9 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
8141
8194
|
hours: number;
|
|
8142
8195
|
} | undefined);
|
|
8143
8196
|
}>]>>;
|
|
8144
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8145
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8146
8197
|
}, "strip", z.ZodTypeAny, {
|
|
8198
|
+
name?: string | undefined;
|
|
8199
|
+
concurrencyLimit?: number | undefined;
|
|
8147
8200
|
rateLimit?: {
|
|
8148
8201
|
type: "fixed-window";
|
|
8149
8202
|
limit: number;
|
|
@@ -8177,9 +8230,9 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
8177
8230
|
hours: number;
|
|
8178
8231
|
} | undefined);
|
|
8179
8232
|
} | undefined;
|
|
8180
|
-
concurrencyLimit?: number | undefined;
|
|
8181
|
-
name?: string | undefined;
|
|
8182
8233
|
}, {
|
|
8234
|
+
name?: string | undefined;
|
|
8235
|
+
concurrencyLimit?: number | undefined;
|
|
8183
8236
|
rateLimit?: {
|
|
8184
8237
|
type: "fixed-window";
|
|
8185
8238
|
limit: number;
|
|
@@ -8213,8 +8266,6 @@ declare const QueueOptions: z.ZodObject<{
|
|
|
8213
8266
|
hours: number;
|
|
8214
8267
|
} | undefined);
|
|
8215
8268
|
} | undefined;
|
|
8216
|
-
concurrencyLimit?: number | undefined;
|
|
8217
|
-
name?: string | undefined;
|
|
8218
8269
|
}>;
|
|
8219
8270
|
type QueueOptions = z.infer<typeof QueueOptions>;
|
|
8220
8271
|
declare const TaskMetadata: z.ZodObject<{
|
|
@@ -8222,6 +8273,42 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8222
8273
|
exportName: z.ZodString;
|
|
8223
8274
|
packageVersion: z.ZodString;
|
|
8224
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>;
|
|
8225
8312
|
/** @deprecated This feature is coming soon */
|
|
8226
8313
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8227
8314
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -8332,9 +8419,9 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8332
8419
|
hours: number;
|
|
8333
8420
|
} | undefined);
|
|
8334
8421
|
}>]>>;
|
|
8335
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8336
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8337
8422
|
}, "strip", z.ZodTypeAny, {
|
|
8423
|
+
name?: string | undefined;
|
|
8424
|
+
concurrencyLimit?: number | undefined;
|
|
8338
8425
|
rateLimit?: {
|
|
8339
8426
|
type: "fixed-window";
|
|
8340
8427
|
limit: number;
|
|
@@ -8368,9 +8455,9 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8368
8455
|
hours: number;
|
|
8369
8456
|
} | undefined);
|
|
8370
8457
|
} | undefined;
|
|
8371
|
-
concurrencyLimit?: number | undefined;
|
|
8372
|
-
name?: string | undefined;
|
|
8373
8458
|
}, {
|
|
8459
|
+
name?: string | undefined;
|
|
8460
|
+
concurrencyLimit?: number | undefined;
|
|
8374
8461
|
rateLimit?: {
|
|
8375
8462
|
type: "fixed-window";
|
|
8376
8463
|
limit: number;
|
|
@@ -8404,14 +8491,23 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8404
8491
|
hours: number;
|
|
8405
8492
|
} | undefined);
|
|
8406
8493
|
} | undefined;
|
|
8407
|
-
concurrencyLimit?: number | undefined;
|
|
8408
|
-
name?: string | undefined;
|
|
8409
8494
|
}>>;
|
|
8410
8495
|
retry: z.ZodOptional<z.ZodObject<{
|
|
8496
|
+
/** The number of attempts before giving up */
|
|
8411
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
|
+
*/
|
|
8412
8502
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
8503
|
+
/** The minimum time to wait before retrying */
|
|
8413
8504
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
8505
|
+
/** The maximum time to wait before retrying */
|
|
8414
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
|
+
*/
|
|
8415
8511
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
8416
8512
|
}, "strip", z.ZodTypeAny, {
|
|
8417
8513
|
maxAttempts?: number | undefined;
|
|
@@ -8431,6 +8527,8 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8431
8527
|
exportName: string;
|
|
8432
8528
|
packageVersion: string;
|
|
8433
8529
|
queue?: {
|
|
8530
|
+
name?: string | undefined;
|
|
8531
|
+
concurrencyLimit?: number | undefined;
|
|
8434
8532
|
rateLimit?: {
|
|
8435
8533
|
type: "fixed-window";
|
|
8436
8534
|
limit: number;
|
|
@@ -8464,8 +8562,6 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8464
8562
|
hours: number;
|
|
8465
8563
|
} | undefined);
|
|
8466
8564
|
} | undefined;
|
|
8467
|
-
concurrencyLimit?: number | undefined;
|
|
8468
|
-
name?: string | undefined;
|
|
8469
8565
|
} | undefined;
|
|
8470
8566
|
retry?: {
|
|
8471
8567
|
maxAttempts?: number | undefined;
|
|
@@ -8479,6 +8575,8 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8479
8575
|
exportName: string;
|
|
8480
8576
|
packageVersion: string;
|
|
8481
8577
|
queue?: {
|
|
8578
|
+
name?: string | undefined;
|
|
8579
|
+
concurrencyLimit?: number | undefined;
|
|
8482
8580
|
rateLimit?: {
|
|
8483
8581
|
type: "fixed-window";
|
|
8484
8582
|
limit: number;
|
|
@@ -8512,8 +8610,6 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8512
8610
|
hours: number;
|
|
8513
8611
|
} | undefined);
|
|
8514
8612
|
} | undefined;
|
|
8515
|
-
concurrencyLimit?: number | undefined;
|
|
8516
|
-
name?: string | undefined;
|
|
8517
8613
|
} | undefined;
|
|
8518
8614
|
retry?: {
|
|
8519
8615
|
maxAttempts?: number | undefined;
|
|
@@ -8526,6 +8622,42 @@ declare const TaskMetadata: z.ZodObject<{
|
|
|
8526
8622
|
type TaskMetadata = z.infer<typeof TaskMetadata>;
|
|
8527
8623
|
declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
8528
8624
|
queue: z.ZodOptional<z.ZodObject<{
|
|
8625
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
8626
|
+
*
|
|
8627
|
+
* @example
|
|
8628
|
+
*
|
|
8629
|
+
* ```ts
|
|
8630
|
+
* const myQueue = queue({
|
|
8631
|
+
name: "my-queue",
|
|
8632
|
+
concurrencyLimit: 1,
|
|
8633
|
+
});
|
|
8634
|
+
|
|
8635
|
+
export const task1 = task({
|
|
8636
|
+
id: "task-1",
|
|
8637
|
+
queue: {
|
|
8638
|
+
name: "my-queue",
|
|
8639
|
+
},
|
|
8640
|
+
run: async (payload: { message: string }) => {
|
|
8641
|
+
// ...
|
|
8642
|
+
},
|
|
8643
|
+
});
|
|
8644
|
+
|
|
8645
|
+
export const task2 = task({
|
|
8646
|
+
id: "task-2",
|
|
8647
|
+
queue: {
|
|
8648
|
+
name: "my-queue",
|
|
8649
|
+
},
|
|
8650
|
+
run: async (payload: { message: string }) => {
|
|
8651
|
+
// ...
|
|
8652
|
+
},
|
|
8653
|
+
});
|
|
8654
|
+
* ```
|
|
8655
|
+
*/
|
|
8656
|
+
name: z.ZodOptional<z.ZodString>;
|
|
8657
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
8658
|
+
*
|
|
8659
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
8660
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8529
8661
|
/** @deprecated This feature is coming soon */
|
|
8530
8662
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
8531
8663
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -8636,9 +8768,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8636
8768
|
hours: number;
|
|
8637
8769
|
} | undefined);
|
|
8638
8770
|
}>]>>;
|
|
8639
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
8640
|
-
name: z.ZodOptional<z.ZodString>;
|
|
8641
8771
|
}, "strip", z.ZodTypeAny, {
|
|
8772
|
+
name?: string | undefined;
|
|
8773
|
+
concurrencyLimit?: number | undefined;
|
|
8642
8774
|
rateLimit?: {
|
|
8643
8775
|
type: "fixed-window";
|
|
8644
8776
|
limit: number;
|
|
@@ -8672,9 +8804,9 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8672
8804
|
hours: number;
|
|
8673
8805
|
} | undefined);
|
|
8674
8806
|
} | undefined;
|
|
8675
|
-
concurrencyLimit?: number | undefined;
|
|
8676
|
-
name?: string | undefined;
|
|
8677
8807
|
}, {
|
|
8808
|
+
name?: string | undefined;
|
|
8809
|
+
concurrencyLimit?: number | undefined;
|
|
8678
8810
|
rateLimit?: {
|
|
8679
8811
|
type: "fixed-window";
|
|
8680
8812
|
limit: number;
|
|
@@ -8708,16 +8840,25 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8708
8840
|
hours: number;
|
|
8709
8841
|
} | undefined);
|
|
8710
8842
|
} | undefined;
|
|
8711
|
-
concurrencyLimit?: number | undefined;
|
|
8712
|
-
name?: string | undefined;
|
|
8713
8843
|
}>>;
|
|
8714
8844
|
id: z.ZodString;
|
|
8715
8845
|
exportName: z.ZodString;
|
|
8716
8846
|
retry: z.ZodOptional<z.ZodObject<{
|
|
8847
|
+
/** The number of attempts before giving up */
|
|
8717
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
|
+
*/
|
|
8718
8853
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
8854
|
+
/** The minimum time to wait before retrying */
|
|
8719
8855
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
8856
|
+
/** The maximum time to wait before retrying */
|
|
8720
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
|
+
*/
|
|
8721
8862
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
8722
8863
|
}, "strip", z.ZodTypeAny, {
|
|
8723
8864
|
maxAttempts?: number | undefined;
|
|
@@ -8740,6 +8881,8 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8740
8881
|
exportName: string;
|
|
8741
8882
|
packageVersion: string;
|
|
8742
8883
|
queue?: {
|
|
8884
|
+
name?: string | undefined;
|
|
8885
|
+
concurrencyLimit?: number | undefined;
|
|
8743
8886
|
rateLimit?: {
|
|
8744
8887
|
type: "fixed-window";
|
|
8745
8888
|
limit: number;
|
|
@@ -8773,8 +8916,6 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8773
8916
|
hours: number;
|
|
8774
8917
|
} | undefined);
|
|
8775
8918
|
} | undefined;
|
|
8776
|
-
concurrencyLimit?: number | undefined;
|
|
8777
|
-
name?: string | undefined;
|
|
8778
8919
|
} | undefined;
|
|
8779
8920
|
retry?: {
|
|
8780
8921
|
maxAttempts?: number | undefined;
|
|
@@ -8789,6 +8930,8 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8789
8930
|
exportName: string;
|
|
8790
8931
|
packageVersion: string;
|
|
8791
8932
|
queue?: {
|
|
8933
|
+
name?: string | undefined;
|
|
8934
|
+
concurrencyLimit?: number | undefined;
|
|
8792
8935
|
rateLimit?: {
|
|
8793
8936
|
type: "fixed-window";
|
|
8794
8937
|
limit: number;
|
|
@@ -8822,8 +8965,6 @@ declare const TaskMetadataWithFilePath: z.ZodObject<{
|
|
|
8822
8965
|
hours: number;
|
|
8823
8966
|
} | undefined);
|
|
8824
8967
|
} | undefined;
|
|
8825
|
-
concurrencyLimit?: number | undefined;
|
|
8826
|
-
name?: string | undefined;
|
|
8827
8968
|
} | undefined;
|
|
8828
8969
|
retry?: {
|
|
8829
8970
|
maxAttempts?: number | undefined;
|
|
@@ -8841,27 +8982,27 @@ declare const UncaughtExceptionMessage: z.ZodObject<{
|
|
|
8841
8982
|
message: z.ZodString;
|
|
8842
8983
|
stack: z.ZodOptional<z.ZodString>;
|
|
8843
8984
|
}, "strip", z.ZodTypeAny, {
|
|
8844
|
-
message: string;
|
|
8845
8985
|
name: string;
|
|
8986
|
+
message: string;
|
|
8846
8987
|
stack?: string | undefined;
|
|
8847
8988
|
}, {
|
|
8848
|
-
message: string;
|
|
8849
8989
|
name: string;
|
|
8990
|
+
message: string;
|
|
8850
8991
|
stack?: string | undefined;
|
|
8851
8992
|
}>;
|
|
8852
8993
|
origin: z.ZodEnum<["uncaughtException", "unhandledRejection"]>;
|
|
8853
8994
|
}, "strip", z.ZodTypeAny, {
|
|
8854
8995
|
error: {
|
|
8855
|
-
message: string;
|
|
8856
8996
|
name: string;
|
|
8997
|
+
message: string;
|
|
8857
8998
|
stack?: string | undefined;
|
|
8858
8999
|
};
|
|
8859
9000
|
version: "v1";
|
|
8860
9001
|
origin: "uncaughtException" | "unhandledRejection";
|
|
8861
9002
|
}, {
|
|
8862
9003
|
error: {
|
|
8863
|
-
message: string;
|
|
8864
9004
|
name: string;
|
|
9005
|
+
message: string;
|
|
8865
9006
|
stack?: string | undefined;
|
|
8866
9007
|
};
|
|
8867
9008
|
origin: "uncaughtException" | "unhandledRejection";
|
|
@@ -9107,14 +9248,14 @@ declare const childToWorkerMessages: {
|
|
|
9107
9248
|
message: z.ZodString;
|
|
9108
9249
|
stackTrace: z.ZodString;
|
|
9109
9250
|
}, "strip", z.ZodTypeAny, {
|
|
9251
|
+
name: string;
|
|
9110
9252
|
type: "BUILT_IN_ERROR";
|
|
9111
9253
|
message: string;
|
|
9112
|
-
name: string;
|
|
9113
9254
|
stackTrace: string;
|
|
9114
9255
|
}, {
|
|
9256
|
+
name: string;
|
|
9115
9257
|
type: "BUILT_IN_ERROR";
|
|
9116
9258
|
message: string;
|
|
9117
|
-
name: string;
|
|
9118
9259
|
stackTrace: string;
|
|
9119
9260
|
}>, z.ZodObject<{
|
|
9120
9261
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -9163,9 +9304,9 @@ declare const childToWorkerMessages: {
|
|
|
9163
9304
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
9164
9305
|
}, "strip", z.ZodTypeAny, {
|
|
9165
9306
|
error: {
|
|
9307
|
+
name: string;
|
|
9166
9308
|
type: "BUILT_IN_ERROR";
|
|
9167
9309
|
message: string;
|
|
9168
|
-
name: string;
|
|
9169
9310
|
stackTrace: string;
|
|
9170
9311
|
} | {
|
|
9171
9312
|
type: "CUSTOM_ERROR";
|
|
@@ -9188,9 +9329,9 @@ declare const childToWorkerMessages: {
|
|
|
9188
9329
|
skippedRetrying?: boolean | undefined;
|
|
9189
9330
|
}, {
|
|
9190
9331
|
error: {
|
|
9332
|
+
name: string;
|
|
9191
9333
|
type: "BUILT_IN_ERROR";
|
|
9192
9334
|
message: string;
|
|
9193
|
-
name: string;
|
|
9194
9335
|
stackTrace: string;
|
|
9195
9336
|
} | {
|
|
9196
9337
|
type: "CUSTOM_ERROR";
|
|
@@ -9263,9 +9404,9 @@ declare const childToWorkerMessages: {
|
|
|
9263
9404
|
version: "v1";
|
|
9264
9405
|
result: {
|
|
9265
9406
|
error: {
|
|
9407
|
+
name: string;
|
|
9266
9408
|
type: "BUILT_IN_ERROR";
|
|
9267
9409
|
message: string;
|
|
9268
|
-
name: string;
|
|
9269
9410
|
stackTrace: string;
|
|
9270
9411
|
} | {
|
|
9271
9412
|
type: "CUSTOM_ERROR";
|
|
@@ -9342,9 +9483,9 @@ declare const childToWorkerMessages: {
|
|
|
9342
9483
|
};
|
|
9343
9484
|
result: {
|
|
9344
9485
|
error: {
|
|
9486
|
+
name: string;
|
|
9345
9487
|
type: "BUILT_IN_ERROR";
|
|
9346
9488
|
message: string;
|
|
9347
|
-
name: string;
|
|
9348
9489
|
stackTrace: string;
|
|
9349
9490
|
} | {
|
|
9350
9491
|
type: "CUSTOM_ERROR";
|
|
@@ -9377,6 +9518,42 @@ declare const childToWorkerMessages: {
|
|
|
9377
9518
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
9378
9519
|
tasks: z.ZodArray<z.ZodObject<{
|
|
9379
9520
|
queue: z.ZodOptional<z.ZodObject<{
|
|
9521
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
9522
|
+
*
|
|
9523
|
+
* @example
|
|
9524
|
+
*
|
|
9525
|
+
* ```ts
|
|
9526
|
+
* const myQueue = queue({
|
|
9527
|
+
name: "my-queue",
|
|
9528
|
+
concurrencyLimit: 1,
|
|
9529
|
+
});
|
|
9530
|
+
|
|
9531
|
+
export const task1 = task({
|
|
9532
|
+
id: "task-1",
|
|
9533
|
+
queue: {
|
|
9534
|
+
name: "my-queue",
|
|
9535
|
+
},
|
|
9536
|
+
run: async (payload: { message: string }) => {
|
|
9537
|
+
// ...
|
|
9538
|
+
},
|
|
9539
|
+
});
|
|
9540
|
+
|
|
9541
|
+
export const task2 = task({
|
|
9542
|
+
id: "task-2",
|
|
9543
|
+
queue: {
|
|
9544
|
+
name: "my-queue",
|
|
9545
|
+
},
|
|
9546
|
+
run: async (payload: { message: string }) => {
|
|
9547
|
+
// ...
|
|
9548
|
+
},
|
|
9549
|
+
});
|
|
9550
|
+
* ```
|
|
9551
|
+
*/
|
|
9552
|
+
name: z.ZodOptional<z.ZodString>;
|
|
9553
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
9554
|
+
*
|
|
9555
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
9556
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
9380
9557
|
/** @deprecated This feature is coming soon */
|
|
9381
9558
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
9382
9559
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -9487,9 +9664,9 @@ declare const childToWorkerMessages: {
|
|
|
9487
9664
|
hours: number;
|
|
9488
9665
|
} | undefined);
|
|
9489
9666
|
}>]>>;
|
|
9490
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
9491
|
-
name: z.ZodOptional<z.ZodString>;
|
|
9492
9667
|
}, "strip", z.ZodTypeAny, {
|
|
9668
|
+
name?: string | undefined;
|
|
9669
|
+
concurrencyLimit?: number | undefined;
|
|
9493
9670
|
rateLimit?: {
|
|
9494
9671
|
type: "fixed-window";
|
|
9495
9672
|
limit: number;
|
|
@@ -9523,9 +9700,9 @@ declare const childToWorkerMessages: {
|
|
|
9523
9700
|
hours: number;
|
|
9524
9701
|
} | undefined);
|
|
9525
9702
|
} | undefined;
|
|
9526
|
-
concurrencyLimit?: number | undefined;
|
|
9527
|
-
name?: string | undefined;
|
|
9528
9703
|
}, {
|
|
9704
|
+
name?: string | undefined;
|
|
9705
|
+
concurrencyLimit?: number | undefined;
|
|
9529
9706
|
rateLimit?: {
|
|
9530
9707
|
type: "fixed-window";
|
|
9531
9708
|
limit: number;
|
|
@@ -9559,16 +9736,25 @@ declare const childToWorkerMessages: {
|
|
|
9559
9736
|
hours: number;
|
|
9560
9737
|
} | undefined);
|
|
9561
9738
|
} | undefined;
|
|
9562
|
-
concurrencyLimit?: number | undefined;
|
|
9563
|
-
name?: string | undefined;
|
|
9564
9739
|
}>>;
|
|
9565
9740
|
id: z.ZodString;
|
|
9566
9741
|
exportName: z.ZodString;
|
|
9567
9742
|
retry: z.ZodOptional<z.ZodObject<{
|
|
9743
|
+
/** The number of attempts before giving up */
|
|
9568
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
|
+
*/
|
|
9569
9749
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
9750
|
+
/** The minimum time to wait before retrying */
|
|
9570
9751
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
9752
|
+
/** The maximum time to wait before retrying */
|
|
9571
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
|
+
*/
|
|
9572
9758
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
9573
9759
|
}, "strip", z.ZodTypeAny, {
|
|
9574
9760
|
maxAttempts?: number | undefined;
|
|
@@ -9591,6 +9777,8 @@ declare const childToWorkerMessages: {
|
|
|
9591
9777
|
exportName: string;
|
|
9592
9778
|
packageVersion: string;
|
|
9593
9779
|
queue?: {
|
|
9780
|
+
name?: string | undefined;
|
|
9781
|
+
concurrencyLimit?: number | undefined;
|
|
9594
9782
|
rateLimit?: {
|
|
9595
9783
|
type: "fixed-window";
|
|
9596
9784
|
limit: number;
|
|
@@ -9624,8 +9812,6 @@ declare const childToWorkerMessages: {
|
|
|
9624
9812
|
hours: number;
|
|
9625
9813
|
} | undefined);
|
|
9626
9814
|
} | undefined;
|
|
9627
|
-
concurrencyLimit?: number | undefined;
|
|
9628
|
-
name?: string | undefined;
|
|
9629
9815
|
} | undefined;
|
|
9630
9816
|
retry?: {
|
|
9631
9817
|
maxAttempts?: number | undefined;
|
|
@@ -9640,6 +9826,8 @@ declare const childToWorkerMessages: {
|
|
|
9640
9826
|
exportName: string;
|
|
9641
9827
|
packageVersion: string;
|
|
9642
9828
|
queue?: {
|
|
9829
|
+
name?: string | undefined;
|
|
9830
|
+
concurrencyLimit?: number | undefined;
|
|
9643
9831
|
rateLimit?: {
|
|
9644
9832
|
type: "fixed-window";
|
|
9645
9833
|
limit: number;
|
|
@@ -9673,8 +9861,6 @@ declare const childToWorkerMessages: {
|
|
|
9673
9861
|
hours: number;
|
|
9674
9862
|
} | undefined);
|
|
9675
9863
|
} | undefined;
|
|
9676
|
-
concurrencyLimit?: number | undefined;
|
|
9677
|
-
name?: string | undefined;
|
|
9678
9864
|
} | undefined;
|
|
9679
9865
|
retry?: {
|
|
9680
9866
|
maxAttempts?: number | undefined;
|
|
@@ -9692,6 +9878,8 @@ declare const childToWorkerMessages: {
|
|
|
9692
9878
|
exportName: string;
|
|
9693
9879
|
packageVersion: string;
|
|
9694
9880
|
queue?: {
|
|
9881
|
+
name?: string | undefined;
|
|
9882
|
+
concurrencyLimit?: number | undefined;
|
|
9695
9883
|
rateLimit?: {
|
|
9696
9884
|
type: "fixed-window";
|
|
9697
9885
|
limit: number;
|
|
@@ -9725,8 +9913,6 @@ declare const childToWorkerMessages: {
|
|
|
9725
9913
|
hours: number;
|
|
9726
9914
|
} | undefined);
|
|
9727
9915
|
} | undefined;
|
|
9728
|
-
concurrencyLimit?: number | undefined;
|
|
9729
|
-
name?: string | undefined;
|
|
9730
9916
|
} | undefined;
|
|
9731
9917
|
retry?: {
|
|
9732
9918
|
maxAttempts?: number | undefined;
|
|
@@ -9743,6 +9929,8 @@ declare const childToWorkerMessages: {
|
|
|
9743
9929
|
exportName: string;
|
|
9744
9930
|
packageVersion: string;
|
|
9745
9931
|
queue?: {
|
|
9932
|
+
name?: string | undefined;
|
|
9933
|
+
concurrencyLimit?: number | undefined;
|
|
9746
9934
|
rateLimit?: {
|
|
9747
9935
|
type: "fixed-window";
|
|
9748
9936
|
limit: number;
|
|
@@ -9776,8 +9964,6 @@ declare const childToWorkerMessages: {
|
|
|
9776
9964
|
hours: number;
|
|
9777
9965
|
} | undefined);
|
|
9778
9966
|
} | undefined;
|
|
9779
|
-
concurrencyLimit?: number | undefined;
|
|
9780
|
-
name?: string | undefined;
|
|
9781
9967
|
} | undefined;
|
|
9782
9968
|
retry?: {
|
|
9783
9969
|
maxAttempts?: number | undefined;
|
|
@@ -9840,27 +10026,27 @@ declare const childToWorkerMessages: {
|
|
|
9840
10026
|
message: z.ZodString;
|
|
9841
10027
|
stack: z.ZodOptional<z.ZodString>;
|
|
9842
10028
|
}, "strip", z.ZodTypeAny, {
|
|
9843
|
-
message: string;
|
|
9844
10029
|
name: string;
|
|
10030
|
+
message: string;
|
|
9845
10031
|
stack?: string | undefined;
|
|
9846
10032
|
}, {
|
|
9847
|
-
message: string;
|
|
9848
10033
|
name: string;
|
|
10034
|
+
message: string;
|
|
9849
10035
|
stack?: string | undefined;
|
|
9850
10036
|
}>;
|
|
9851
10037
|
origin: z.ZodEnum<["uncaughtException", "unhandledRejection"]>;
|
|
9852
10038
|
}, "strip", z.ZodTypeAny, {
|
|
9853
10039
|
error: {
|
|
9854
|
-
message: string;
|
|
9855
10040
|
name: string;
|
|
10041
|
+
message: string;
|
|
9856
10042
|
stack?: string | undefined;
|
|
9857
10043
|
};
|
|
9858
10044
|
version: "v1";
|
|
9859
10045
|
origin: "uncaughtException" | "unhandledRejection";
|
|
9860
10046
|
}, {
|
|
9861
10047
|
error: {
|
|
9862
|
-
message: string;
|
|
9863
10048
|
name: string;
|
|
10049
|
+
message: string;
|
|
9864
10050
|
stack?: string | undefined;
|
|
9865
10051
|
};
|
|
9866
10052
|
origin: "uncaughtException" | "unhandledRejection";
|
|
@@ -10108,14 +10294,14 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10108
10294
|
message: z.ZodString;
|
|
10109
10295
|
stackTrace: z.ZodString;
|
|
10110
10296
|
}, "strip", z.ZodTypeAny, {
|
|
10297
|
+
name: string;
|
|
10111
10298
|
type: "BUILT_IN_ERROR";
|
|
10112
10299
|
message: string;
|
|
10113
|
-
name: string;
|
|
10114
10300
|
stackTrace: string;
|
|
10115
10301
|
}, {
|
|
10302
|
+
name: string;
|
|
10116
10303
|
type: "BUILT_IN_ERROR";
|
|
10117
10304
|
message: string;
|
|
10118
|
-
name: string;
|
|
10119
10305
|
stackTrace: string;
|
|
10120
10306
|
}>, z.ZodObject<{
|
|
10121
10307
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -10164,9 +10350,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10164
10350
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
10165
10351
|
}, "strip", z.ZodTypeAny, {
|
|
10166
10352
|
error: {
|
|
10353
|
+
name: string;
|
|
10167
10354
|
type: "BUILT_IN_ERROR";
|
|
10168
10355
|
message: string;
|
|
10169
|
-
name: string;
|
|
10170
10356
|
stackTrace: string;
|
|
10171
10357
|
} | {
|
|
10172
10358
|
type: "CUSTOM_ERROR";
|
|
@@ -10189,9 +10375,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10189
10375
|
skippedRetrying?: boolean | undefined;
|
|
10190
10376
|
}, {
|
|
10191
10377
|
error: {
|
|
10378
|
+
name: string;
|
|
10192
10379
|
type: "BUILT_IN_ERROR";
|
|
10193
10380
|
message: string;
|
|
10194
|
-
name: string;
|
|
10195
10381
|
stackTrace: string;
|
|
10196
10382
|
} | {
|
|
10197
10383
|
type: "CUSTOM_ERROR";
|
|
@@ -10264,9 +10450,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10264
10450
|
version: "v1";
|
|
10265
10451
|
result: {
|
|
10266
10452
|
error: {
|
|
10453
|
+
name: string;
|
|
10267
10454
|
type: "BUILT_IN_ERROR";
|
|
10268
10455
|
message: string;
|
|
10269
|
-
name: string;
|
|
10270
10456
|
stackTrace: string;
|
|
10271
10457
|
} | {
|
|
10272
10458
|
type: "CUSTOM_ERROR";
|
|
@@ -10343,9 +10529,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10343
10529
|
};
|
|
10344
10530
|
result: {
|
|
10345
10531
|
error: {
|
|
10532
|
+
name: string;
|
|
10346
10533
|
type: "BUILT_IN_ERROR";
|
|
10347
10534
|
message: string;
|
|
10348
|
-
name: string;
|
|
10349
10535
|
stackTrace: string;
|
|
10350
10536
|
} | {
|
|
10351
10537
|
type: "CUSTOM_ERROR";
|
|
@@ -10380,6 +10566,42 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10380
10566
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10381
10567
|
tasks: z.ZodArray<z.ZodObject<{
|
|
10382
10568
|
queue: z.ZodOptional<z.ZodObject<{
|
|
10569
|
+
/** You can define a shared queue and then pass the name in to your task.
|
|
10570
|
+
*
|
|
10571
|
+
* @example
|
|
10572
|
+
*
|
|
10573
|
+
* ```ts
|
|
10574
|
+
* const myQueue = queue({
|
|
10575
|
+
name: "my-queue",
|
|
10576
|
+
concurrencyLimit: 1,
|
|
10577
|
+
});
|
|
10578
|
+
|
|
10579
|
+
export const task1 = task({
|
|
10580
|
+
id: "task-1",
|
|
10581
|
+
queue: {
|
|
10582
|
+
name: "my-queue",
|
|
10583
|
+
},
|
|
10584
|
+
run: async (payload: { message: string }) => {
|
|
10585
|
+
// ...
|
|
10586
|
+
},
|
|
10587
|
+
});
|
|
10588
|
+
|
|
10589
|
+
export const task2 = task({
|
|
10590
|
+
id: "task-2",
|
|
10591
|
+
queue: {
|
|
10592
|
+
name: "my-queue",
|
|
10593
|
+
},
|
|
10594
|
+
run: async (payload: { message: string }) => {
|
|
10595
|
+
// ...
|
|
10596
|
+
},
|
|
10597
|
+
});
|
|
10598
|
+
* ```
|
|
10599
|
+
*/
|
|
10600
|
+
name: z.ZodOptional<z.ZodString>;
|
|
10601
|
+
/** An optional property that specifies the maximum number of concurrent run executions.
|
|
10602
|
+
*
|
|
10603
|
+
* If this property is omitted, the task can potentially use up the full concurrency of an environment. */
|
|
10604
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
10383
10605
|
/** @deprecated This feature is coming soon */
|
|
10384
10606
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
10385
10607
|
type: z.ZodLiteral<"fixed-window">;
|
|
@@ -10490,9 +10712,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10490
10712
|
hours: number;
|
|
10491
10713
|
} | undefined);
|
|
10492
10714
|
}>]>>;
|
|
10493
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
10494
|
-
name: z.ZodOptional<z.ZodString>;
|
|
10495
10715
|
}, "strip", z.ZodTypeAny, {
|
|
10716
|
+
name?: string | undefined;
|
|
10717
|
+
concurrencyLimit?: number | undefined;
|
|
10496
10718
|
rateLimit?: {
|
|
10497
10719
|
type: "fixed-window";
|
|
10498
10720
|
limit: number;
|
|
@@ -10526,9 +10748,9 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10526
10748
|
hours: number;
|
|
10527
10749
|
} | undefined);
|
|
10528
10750
|
} | undefined;
|
|
10529
|
-
concurrencyLimit?: number | undefined;
|
|
10530
|
-
name?: string | undefined;
|
|
10531
10751
|
}, {
|
|
10752
|
+
name?: string | undefined;
|
|
10753
|
+
concurrencyLimit?: number | undefined;
|
|
10532
10754
|
rateLimit?: {
|
|
10533
10755
|
type: "fixed-window";
|
|
10534
10756
|
limit: number;
|
|
@@ -10562,16 +10784,25 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10562
10784
|
hours: number;
|
|
10563
10785
|
} | undefined);
|
|
10564
10786
|
} | undefined;
|
|
10565
|
-
concurrencyLimit?: number | undefined;
|
|
10566
|
-
name?: string | undefined;
|
|
10567
10787
|
}>>;
|
|
10568
10788
|
id: z.ZodString;
|
|
10569
10789
|
exportName: z.ZodString;
|
|
10570
10790
|
retry: z.ZodOptional<z.ZodObject<{
|
|
10791
|
+
/** The number of attempts before giving up */
|
|
10571
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
|
+
*/
|
|
10572
10797
|
factor: z.ZodOptional<z.ZodNumber>;
|
|
10798
|
+
/** The minimum time to wait before retrying */
|
|
10573
10799
|
minTimeoutInMs: z.ZodOptional<z.ZodNumber>;
|
|
10800
|
+
/** The maximum time to wait before retrying */
|
|
10574
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
|
+
*/
|
|
10575
10806
|
randomize: z.ZodOptional<z.ZodBoolean>;
|
|
10576
10807
|
}, "strip", z.ZodTypeAny, {
|
|
10577
10808
|
maxAttempts?: number | undefined;
|
|
@@ -10594,6 +10825,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10594
10825
|
exportName: string;
|
|
10595
10826
|
packageVersion: string;
|
|
10596
10827
|
queue?: {
|
|
10828
|
+
name?: string | undefined;
|
|
10829
|
+
concurrencyLimit?: number | undefined;
|
|
10597
10830
|
rateLimit?: {
|
|
10598
10831
|
type: "fixed-window";
|
|
10599
10832
|
limit: number;
|
|
@@ -10627,8 +10860,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10627
10860
|
hours: number;
|
|
10628
10861
|
} | undefined);
|
|
10629
10862
|
} | undefined;
|
|
10630
|
-
concurrencyLimit?: number | undefined;
|
|
10631
|
-
name?: string | undefined;
|
|
10632
10863
|
} | undefined;
|
|
10633
10864
|
retry?: {
|
|
10634
10865
|
maxAttempts?: number | undefined;
|
|
@@ -10643,6 +10874,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10643
10874
|
exportName: string;
|
|
10644
10875
|
packageVersion: string;
|
|
10645
10876
|
queue?: {
|
|
10877
|
+
name?: string | undefined;
|
|
10878
|
+
concurrencyLimit?: number | undefined;
|
|
10646
10879
|
rateLimit?: {
|
|
10647
10880
|
type: "fixed-window";
|
|
10648
10881
|
limit: number;
|
|
@@ -10676,8 +10909,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10676
10909
|
hours: number;
|
|
10677
10910
|
} | undefined);
|
|
10678
10911
|
} | undefined;
|
|
10679
|
-
concurrencyLimit?: number | undefined;
|
|
10680
|
-
name?: string | undefined;
|
|
10681
10912
|
} | undefined;
|
|
10682
10913
|
retry?: {
|
|
10683
10914
|
maxAttempts?: number | undefined;
|
|
@@ -10695,6 +10926,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10695
10926
|
exportName: string;
|
|
10696
10927
|
packageVersion: string;
|
|
10697
10928
|
queue?: {
|
|
10929
|
+
name?: string | undefined;
|
|
10930
|
+
concurrencyLimit?: number | undefined;
|
|
10698
10931
|
rateLimit?: {
|
|
10699
10932
|
type: "fixed-window";
|
|
10700
10933
|
limit: number;
|
|
@@ -10728,8 +10961,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10728
10961
|
hours: number;
|
|
10729
10962
|
} | undefined);
|
|
10730
10963
|
} | undefined;
|
|
10731
|
-
concurrencyLimit?: number | undefined;
|
|
10732
|
-
name?: string | undefined;
|
|
10733
10964
|
} | undefined;
|
|
10734
10965
|
retry?: {
|
|
10735
10966
|
maxAttempts?: number | undefined;
|
|
@@ -10746,6 +10977,8 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10746
10977
|
exportName: string;
|
|
10747
10978
|
packageVersion: string;
|
|
10748
10979
|
queue?: {
|
|
10980
|
+
name?: string | undefined;
|
|
10981
|
+
concurrencyLimit?: number | undefined;
|
|
10749
10982
|
rateLimit?: {
|
|
10750
10983
|
type: "fixed-window";
|
|
10751
10984
|
limit: number;
|
|
@@ -10779,8 +11012,6 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10779
11012
|
hours: number;
|
|
10780
11013
|
} | undefined);
|
|
10781
11014
|
} | undefined;
|
|
10782
|
-
concurrencyLimit?: number | undefined;
|
|
10783
|
-
name?: string | undefined;
|
|
10784
11015
|
} | undefined;
|
|
10785
11016
|
retry?: {
|
|
10786
11017
|
maxAttempts?: number | undefined;
|
|
@@ -10808,15 +11039,36 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10808
11039
|
READY_TO_DISPOSE: {
|
|
10809
11040
|
message: z.ZodUndefined;
|
|
10810
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
|
+
};
|
|
10811
11060
|
WAIT_FOR_DURATION: {
|
|
10812
11061
|
message: z.ZodObject<{
|
|
10813
11062
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10814
11063
|
ms: z.ZodNumber;
|
|
11064
|
+
now: z.ZodNumber;
|
|
10815
11065
|
}, "strip", z.ZodTypeAny, {
|
|
10816
11066
|
version: "v1";
|
|
10817
11067
|
ms: number;
|
|
11068
|
+
now: number;
|
|
10818
11069
|
}, {
|
|
10819
11070
|
ms: number;
|
|
11071
|
+
now: number;
|
|
10820
11072
|
version?: "v1" | undefined;
|
|
10821
11073
|
}>;
|
|
10822
11074
|
callback: z.ZodObject<{
|
|
@@ -10830,27 +11082,27 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10830
11082
|
WAIT_FOR_TASK: {
|
|
10831
11083
|
message: z.ZodObject<{
|
|
10832
11084
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10833
|
-
|
|
11085
|
+
friendlyId: z.ZodString;
|
|
10834
11086
|
}, "strip", z.ZodTypeAny, {
|
|
10835
|
-
id: string;
|
|
10836
11087
|
version: "v1";
|
|
11088
|
+
friendlyId: string;
|
|
10837
11089
|
}, {
|
|
10838
|
-
|
|
11090
|
+
friendlyId: string;
|
|
10839
11091
|
version?: "v1" | undefined;
|
|
10840
11092
|
}>;
|
|
10841
11093
|
};
|
|
10842
11094
|
WAIT_FOR_BATCH: {
|
|
10843
11095
|
message: z.ZodObject<{
|
|
10844
11096
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
10845
|
-
|
|
10846
|
-
|
|
11097
|
+
batchFriendlyId: z.ZodString;
|
|
11098
|
+
runFriendlyIds: z.ZodArray<z.ZodString, "many">;
|
|
10847
11099
|
}, "strip", z.ZodTypeAny, {
|
|
10848
|
-
id: string;
|
|
10849
11100
|
version: "v1";
|
|
10850
|
-
|
|
11101
|
+
batchFriendlyId: string;
|
|
11102
|
+
runFriendlyIds: string[];
|
|
10851
11103
|
}, {
|
|
10852
|
-
|
|
10853
|
-
|
|
11104
|
+
batchFriendlyId: string;
|
|
11105
|
+
runFriendlyIds: string[];
|
|
10854
11106
|
version?: "v1" | undefined;
|
|
10855
11107
|
}>;
|
|
10856
11108
|
};
|
|
@@ -10862,27 +11114,27 @@ declare const ProdChildToWorkerMessages: {
|
|
|
10862
11114
|
message: z.ZodString;
|
|
10863
11115
|
stack: z.ZodOptional<z.ZodString>;
|
|
10864
11116
|
}, "strip", z.ZodTypeAny, {
|
|
10865
|
-
message: string;
|
|
10866
11117
|
name: string;
|
|
11118
|
+
message: string;
|
|
10867
11119
|
stack?: string | undefined;
|
|
10868
11120
|
}, {
|
|
10869
|
-
message: string;
|
|
10870
11121
|
name: string;
|
|
11122
|
+
message: string;
|
|
10871
11123
|
stack?: string | undefined;
|
|
10872
11124
|
}>;
|
|
10873
11125
|
origin: z.ZodEnum<["uncaughtException", "unhandledRejection"]>;
|
|
10874
11126
|
}, "strip", z.ZodTypeAny, {
|
|
10875
11127
|
error: {
|
|
10876
|
-
message: string;
|
|
10877
11128
|
name: string;
|
|
11129
|
+
message: string;
|
|
10878
11130
|
stack?: string | undefined;
|
|
10879
11131
|
};
|
|
10880
11132
|
version: "v1";
|
|
10881
11133
|
origin: "uncaughtException" | "unhandledRejection";
|
|
10882
11134
|
}, {
|
|
10883
11135
|
error: {
|
|
10884
|
-
message: string;
|
|
10885
11136
|
name: string;
|
|
11137
|
+
message: string;
|
|
10886
11138
|
stack?: string | undefined;
|
|
10887
11139
|
};
|
|
10888
11140
|
origin: "uncaughtException" | "unhandledRejection";
|
|
@@ -11260,14 +11512,14 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11260
11512
|
message: z.ZodString;
|
|
11261
11513
|
stackTrace: z.ZodString;
|
|
11262
11514
|
}, "strip", z.ZodTypeAny, {
|
|
11515
|
+
name: string;
|
|
11263
11516
|
type: "BUILT_IN_ERROR";
|
|
11264
11517
|
message: string;
|
|
11265
|
-
name: string;
|
|
11266
11518
|
stackTrace: string;
|
|
11267
11519
|
}, {
|
|
11520
|
+
name: string;
|
|
11268
11521
|
type: "BUILT_IN_ERROR";
|
|
11269
11522
|
message: string;
|
|
11270
|
-
name: string;
|
|
11271
11523
|
stackTrace: string;
|
|
11272
11524
|
}>, z.ZodObject<{
|
|
11273
11525
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -11316,9 +11568,9 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11316
11568
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
11317
11569
|
}, "strip", z.ZodTypeAny, {
|
|
11318
11570
|
error: {
|
|
11571
|
+
name: string;
|
|
11319
11572
|
type: "BUILT_IN_ERROR";
|
|
11320
11573
|
message: string;
|
|
11321
|
-
name: string;
|
|
11322
11574
|
stackTrace: string;
|
|
11323
11575
|
} | {
|
|
11324
11576
|
type: "CUSTOM_ERROR";
|
|
@@ -11341,9 +11593,9 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11341
11593
|
skippedRetrying?: boolean | undefined;
|
|
11342
11594
|
}, {
|
|
11343
11595
|
error: {
|
|
11596
|
+
name: string;
|
|
11344
11597
|
type: "BUILT_IN_ERROR";
|
|
11345
11598
|
message: string;
|
|
11346
|
-
name: string;
|
|
11347
11599
|
stackTrace: string;
|
|
11348
11600
|
} | {
|
|
11349
11601
|
type: "CUSTOM_ERROR";
|
|
@@ -11629,9 +11881,9 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11629
11881
|
version: "v1";
|
|
11630
11882
|
completion: {
|
|
11631
11883
|
error: {
|
|
11884
|
+
name: string;
|
|
11632
11885
|
type: "BUILT_IN_ERROR";
|
|
11633
11886
|
message: string;
|
|
11634
|
-
name: string;
|
|
11635
11887
|
stackTrace: string;
|
|
11636
11888
|
} | {
|
|
11637
11889
|
type: "CUSTOM_ERROR";
|
|
@@ -11708,9 +11960,9 @@ declare const ProdWorkerToChildMessages: {
|
|
|
11708
11960
|
};
|
|
11709
11961
|
completion: {
|
|
11710
11962
|
error: {
|
|
11963
|
+
name: string;
|
|
11711
11964
|
type: "BUILT_IN_ERROR";
|
|
11712
11965
|
message: string;
|
|
11713
|
-
name: string;
|
|
11714
11966
|
stackTrace: string;
|
|
11715
11967
|
} | {
|
|
11716
11968
|
type: "CUSTOM_ERROR";
|
|
@@ -11805,7 +12057,9 @@ interface ProjectConfig {
|
|
|
11805
12057
|
|
|
11806
12058
|
type InitOutput = Record<string, any> | void | undefined;
|
|
11807
12059
|
type RunFnParams<TInitOutput extends InitOutput> = Prettify<{
|
|
12060
|
+
/** Metadata about the task, run, attempt, queue, environment, organization, project and batch. */
|
|
11808
12061
|
ctx: Context;
|
|
12062
|
+
/** If you use the `init` function, this will be whatever you returned. */
|
|
11809
12063
|
init?: TInitOutput;
|
|
11810
12064
|
}>;
|
|
11811
12065
|
type MiddlewareFnParams = Prettify<{
|
|
@@ -11950,6 +12204,8 @@ declare const Machine: z.ZodObject<{
|
|
|
11950
12204
|
memory?: string | undefined;
|
|
11951
12205
|
}>;
|
|
11952
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>;
|
|
11953
12209
|
declare const ProviderToPlatformMessages: {
|
|
11954
12210
|
LOG: {
|
|
11955
12211
|
message: z.ZodObject<{
|
|
@@ -12004,23 +12260,23 @@ declare const PlatformToProviderMessages: {
|
|
|
12004
12260
|
message: z.ZodObject<{
|
|
12005
12261
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12006
12262
|
imageTag: z.ZodString;
|
|
12007
|
-
|
|
12263
|
+
shortCode: z.ZodString;
|
|
12008
12264
|
envId: z.ZodString;
|
|
12009
12265
|
apiKey: z.ZodString;
|
|
12010
12266
|
apiUrl: z.ZodString;
|
|
12011
12267
|
}, "strip", z.ZodTypeAny, {
|
|
12012
|
-
contentHash: string;
|
|
12013
12268
|
version: "v1";
|
|
12014
12269
|
envId: string;
|
|
12015
12270
|
imageTag: string;
|
|
12016
12271
|
apiKey: string;
|
|
12017
12272
|
apiUrl: string;
|
|
12273
|
+
shortCode: string;
|
|
12018
12274
|
}, {
|
|
12019
|
-
contentHash: string;
|
|
12020
12275
|
envId: string;
|
|
12021
12276
|
imageTag: string;
|
|
12022
12277
|
apiKey: string;
|
|
12023
12278
|
apiUrl: string;
|
|
12279
|
+
shortCode: string;
|
|
12024
12280
|
version?: "v1" | undefined;
|
|
12025
12281
|
}>;
|
|
12026
12282
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -12030,25 +12286,25 @@ declare const PlatformToProviderMessages: {
|
|
|
12030
12286
|
message: z.ZodString;
|
|
12031
12287
|
stack: z.ZodOptional<z.ZodString>;
|
|
12032
12288
|
}, "strip", z.ZodTypeAny, {
|
|
12033
|
-
message: string;
|
|
12034
12289
|
name: string;
|
|
12290
|
+
message: string;
|
|
12035
12291
|
stack?: string | undefined;
|
|
12036
12292
|
}, {
|
|
12037
|
-
message: string;
|
|
12038
12293
|
name: string;
|
|
12294
|
+
message: string;
|
|
12039
12295
|
stack?: string | undefined;
|
|
12040
12296
|
}>;
|
|
12041
12297
|
}, "strip", z.ZodTypeAny, {
|
|
12042
12298
|
error: {
|
|
12043
|
-
message: string;
|
|
12044
12299
|
name: string;
|
|
12300
|
+
message: string;
|
|
12045
12301
|
stack?: string | undefined;
|
|
12046
12302
|
};
|
|
12047
12303
|
success: false;
|
|
12048
12304
|
}, {
|
|
12049
12305
|
error: {
|
|
12050
|
-
message: string;
|
|
12051
12306
|
name: string;
|
|
12307
|
+
message: string;
|
|
12052
12308
|
stack?: string | undefined;
|
|
12053
12309
|
};
|
|
12054
12310
|
success: false;
|
|
@@ -12095,24 +12351,24 @@ declare const PlatformToProviderMessages: {
|
|
|
12095
12351
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12096
12352
|
checkpointId: z.ZodString;
|
|
12097
12353
|
runId: z.ZodString;
|
|
12098
|
-
attemptId: z.ZodString;
|
|
12099
12354
|
type: z.ZodEnum<["DOCKER", "KUBERNETES"]>;
|
|
12100
12355
|
location: z.ZodString;
|
|
12101
12356
|
reason: z.ZodOptional<z.ZodString>;
|
|
12357
|
+
imageRef: z.ZodString;
|
|
12102
12358
|
}, "strip", z.ZodTypeAny, {
|
|
12103
12359
|
type: "DOCKER" | "KUBERNETES";
|
|
12104
12360
|
version: "v1";
|
|
12105
12361
|
runId: string;
|
|
12106
12362
|
checkpointId: string;
|
|
12107
|
-
attemptId: string;
|
|
12108
12363
|
location: string;
|
|
12364
|
+
imageRef: string;
|
|
12109
12365
|
reason?: string | undefined;
|
|
12110
12366
|
}, {
|
|
12111
12367
|
type: "DOCKER" | "KUBERNETES";
|
|
12112
12368
|
runId: string;
|
|
12113
12369
|
checkpointId: string;
|
|
12114
|
-
attemptId: string;
|
|
12115
12370
|
location: string;
|
|
12371
|
+
imageRef: string;
|
|
12116
12372
|
version?: "v1" | undefined;
|
|
12117
12373
|
reason?: string | undefined;
|
|
12118
12374
|
}>;
|
|
@@ -12180,6 +12436,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12180
12436
|
filePath: z.ZodString;
|
|
12181
12437
|
exportName: z.ZodString;
|
|
12182
12438
|
queue: z.ZodOptional<z.ZodObject<{
|
|
12439
|
+
name: z.ZodOptional<z.ZodString>;
|
|
12440
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
12183
12441
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
12184
12442
|
type: z.ZodLiteral<"fixed-window">;
|
|
12185
12443
|
limit: z.ZodNumber;
|
|
@@ -12289,9 +12547,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12289
12547
|
hours: number;
|
|
12290
12548
|
} | undefined);
|
|
12291
12549
|
}>]>>;
|
|
12292
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
12293
|
-
name: z.ZodOptional<z.ZodString>;
|
|
12294
12550
|
}, "strip", z.ZodTypeAny, {
|
|
12551
|
+
name?: string | undefined;
|
|
12552
|
+
concurrencyLimit?: number | undefined;
|
|
12295
12553
|
rateLimit?: {
|
|
12296
12554
|
type: "fixed-window";
|
|
12297
12555
|
limit: number;
|
|
@@ -12325,9 +12583,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12325
12583
|
hours: number;
|
|
12326
12584
|
} | undefined);
|
|
12327
12585
|
} | undefined;
|
|
12328
|
-
concurrencyLimit?: number | undefined;
|
|
12329
|
-
name?: string | undefined;
|
|
12330
12586
|
}, {
|
|
12587
|
+
name?: string | undefined;
|
|
12588
|
+
concurrencyLimit?: number | undefined;
|
|
12331
12589
|
rateLimit?: {
|
|
12332
12590
|
type: "fixed-window";
|
|
12333
12591
|
limit: number;
|
|
@@ -12361,8 +12619,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12361
12619
|
hours: number;
|
|
12362
12620
|
} | undefined);
|
|
12363
12621
|
} | undefined;
|
|
12364
|
-
concurrencyLimit?: number | undefined;
|
|
12365
|
-
name?: string | undefined;
|
|
12366
12622
|
}>>;
|
|
12367
12623
|
retry: z.ZodOptional<z.ZodObject<{
|
|
12368
12624
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -12388,6 +12644,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12388
12644
|
filePath: string;
|
|
12389
12645
|
exportName: string;
|
|
12390
12646
|
queue?: {
|
|
12647
|
+
name?: string | undefined;
|
|
12648
|
+
concurrencyLimit?: number | undefined;
|
|
12391
12649
|
rateLimit?: {
|
|
12392
12650
|
type: "fixed-window";
|
|
12393
12651
|
limit: number;
|
|
@@ -12421,8 +12679,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12421
12679
|
hours: number;
|
|
12422
12680
|
} | undefined);
|
|
12423
12681
|
} | undefined;
|
|
12424
|
-
concurrencyLimit?: number | undefined;
|
|
12425
|
-
name?: string | undefined;
|
|
12426
12682
|
} | undefined;
|
|
12427
12683
|
retry?: {
|
|
12428
12684
|
maxAttempts?: number | undefined;
|
|
@@ -12436,6 +12692,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12436
12692
|
filePath: string;
|
|
12437
12693
|
exportName: string;
|
|
12438
12694
|
queue?: {
|
|
12695
|
+
name?: string | undefined;
|
|
12696
|
+
concurrencyLimit?: number | undefined;
|
|
12439
12697
|
rateLimit?: {
|
|
12440
12698
|
type: "fixed-window";
|
|
12441
12699
|
limit: number;
|
|
@@ -12469,8 +12727,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12469
12727
|
hours: number;
|
|
12470
12728
|
} | undefined);
|
|
12471
12729
|
} | undefined;
|
|
12472
|
-
concurrencyLimit?: number | undefined;
|
|
12473
|
-
name?: string | undefined;
|
|
12474
12730
|
} | undefined;
|
|
12475
12731
|
retry?: {
|
|
12476
12732
|
maxAttempts?: number | undefined;
|
|
@@ -12488,6 +12744,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12488
12744
|
filePath: string;
|
|
12489
12745
|
exportName: string;
|
|
12490
12746
|
queue?: {
|
|
12747
|
+
name?: string | undefined;
|
|
12748
|
+
concurrencyLimit?: number | undefined;
|
|
12491
12749
|
rateLimit?: {
|
|
12492
12750
|
type: "fixed-window";
|
|
12493
12751
|
limit: number;
|
|
@@ -12521,8 +12779,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12521
12779
|
hours: number;
|
|
12522
12780
|
} | undefined);
|
|
12523
12781
|
} | undefined;
|
|
12524
|
-
concurrencyLimit?: number | undefined;
|
|
12525
|
-
name?: string | undefined;
|
|
12526
12782
|
} | undefined;
|
|
12527
12783
|
retry?: {
|
|
12528
12784
|
maxAttempts?: number | undefined;
|
|
@@ -12541,6 +12797,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12541
12797
|
filePath: string;
|
|
12542
12798
|
exportName: string;
|
|
12543
12799
|
queue?: {
|
|
12800
|
+
name?: string | undefined;
|
|
12801
|
+
concurrencyLimit?: number | undefined;
|
|
12544
12802
|
rateLimit?: {
|
|
12545
12803
|
type: "fixed-window";
|
|
12546
12804
|
limit: number;
|
|
@@ -12574,8 +12832,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12574
12832
|
hours: number;
|
|
12575
12833
|
} | undefined);
|
|
12576
12834
|
} | undefined;
|
|
12577
|
-
concurrencyLimit?: number | undefined;
|
|
12578
|
-
name?: string | undefined;
|
|
12579
12835
|
} | undefined;
|
|
12580
12836
|
retry?: {
|
|
12581
12837
|
maxAttempts?: number | undefined;
|
|
@@ -12598,6 +12854,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12598
12854
|
filePath: string;
|
|
12599
12855
|
exportName: string;
|
|
12600
12856
|
queue?: {
|
|
12857
|
+
name?: string | undefined;
|
|
12858
|
+
concurrencyLimit?: number | undefined;
|
|
12601
12859
|
rateLimit?: {
|
|
12602
12860
|
type: "fixed-window";
|
|
12603
12861
|
limit: number;
|
|
@@ -12631,8 +12889,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12631
12889
|
hours: number;
|
|
12632
12890
|
} | undefined);
|
|
12633
12891
|
} | undefined;
|
|
12634
|
-
concurrencyLimit?: number | undefined;
|
|
12635
|
-
name?: string | undefined;
|
|
12636
12892
|
} | undefined;
|
|
12637
12893
|
retry?: {
|
|
12638
12894
|
maxAttempts?: number | undefined;
|
|
@@ -12656,6 +12912,8 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12656
12912
|
filePath: string;
|
|
12657
12913
|
exportName: string;
|
|
12658
12914
|
queue?: {
|
|
12915
|
+
name?: string | undefined;
|
|
12916
|
+
concurrencyLimit?: number | undefined;
|
|
12659
12917
|
rateLimit?: {
|
|
12660
12918
|
type: "fixed-window";
|
|
12661
12919
|
limit: number;
|
|
@@ -12689,8 +12947,6 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12689
12947
|
hours: number;
|
|
12690
12948
|
} | undefined);
|
|
12691
12949
|
} | undefined;
|
|
12692
|
-
concurrencyLimit?: number | undefined;
|
|
12693
|
-
name?: string | undefined;
|
|
12694
12950
|
} | undefined;
|
|
12695
12951
|
retry?: {
|
|
12696
12952
|
maxAttempts?: number | undefined;
|
|
@@ -12723,15 +12979,15 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
12723
12979
|
READY_FOR_EXECUTION: {
|
|
12724
12980
|
message: z.ZodObject<{
|
|
12725
12981
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
12726
|
-
attemptId: z.ZodString;
|
|
12727
12982
|
runId: z.ZodString;
|
|
12983
|
+
totalCompletions: z.ZodNumber;
|
|
12728
12984
|
}, "strip", z.ZodTypeAny, {
|
|
12729
12985
|
version: "v1";
|
|
12730
12986
|
runId: string;
|
|
12731
|
-
|
|
12987
|
+
totalCompletions: number;
|
|
12732
12988
|
}, {
|
|
12733
12989
|
runId: string;
|
|
12734
|
-
|
|
12990
|
+
totalCompletions: number;
|
|
12735
12991
|
version?: "v1" | undefined;
|
|
12736
12992
|
}>;
|
|
12737
12993
|
callback: z.ZodDiscriminatedUnion<"success", [z.ZodObject<{
|
|
@@ -13213,15 +13469,15 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13213
13469
|
READY_FOR_RESUME: {
|
|
13214
13470
|
message: z.ZodObject<{
|
|
13215
13471
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
13216
|
-
|
|
13472
|
+
attemptFriendlyId: z.ZodString;
|
|
13217
13473
|
type: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
13218
13474
|
}, "strip", z.ZodTypeAny, {
|
|
13219
13475
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
13220
13476
|
version: "v1";
|
|
13221
|
-
|
|
13477
|
+
attemptFriendlyId: string;
|
|
13222
13478
|
}, {
|
|
13223
13479
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
13224
|
-
|
|
13480
|
+
attemptFriendlyId: string;
|
|
13225
13481
|
version?: "v1" | undefined;
|
|
13226
13482
|
}>;
|
|
13227
13483
|
};
|
|
@@ -13488,14 +13744,14 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13488
13744
|
message: z.ZodString;
|
|
13489
13745
|
stackTrace: z.ZodString;
|
|
13490
13746
|
}, "strip", z.ZodTypeAny, {
|
|
13747
|
+
name: string;
|
|
13491
13748
|
type: "BUILT_IN_ERROR";
|
|
13492
13749
|
message: string;
|
|
13493
|
-
name: string;
|
|
13494
13750
|
stackTrace: string;
|
|
13495
13751
|
}, {
|
|
13752
|
+
name: string;
|
|
13496
13753
|
type: "BUILT_IN_ERROR";
|
|
13497
13754
|
message: string;
|
|
13498
|
-
name: string;
|
|
13499
13755
|
stackTrace: string;
|
|
13500
13756
|
}>, z.ZodObject<{
|
|
13501
13757
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -13544,9 +13800,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13544
13800
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
13545
13801
|
}, "strip", z.ZodTypeAny, {
|
|
13546
13802
|
error: {
|
|
13803
|
+
name: string;
|
|
13547
13804
|
type: "BUILT_IN_ERROR";
|
|
13548
13805
|
message: string;
|
|
13549
|
-
name: string;
|
|
13550
13806
|
stackTrace: string;
|
|
13551
13807
|
} | {
|
|
13552
13808
|
type: "CUSTOM_ERROR";
|
|
@@ -13569,9 +13825,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13569
13825
|
skippedRetrying?: boolean | undefined;
|
|
13570
13826
|
}, {
|
|
13571
13827
|
error: {
|
|
13828
|
+
name: string;
|
|
13572
13829
|
type: "BUILT_IN_ERROR";
|
|
13573
13830
|
message: string;
|
|
13574
|
-
name: string;
|
|
13575
13831
|
stackTrace: string;
|
|
13576
13832
|
} | {
|
|
13577
13833
|
type: "CUSTOM_ERROR";
|
|
@@ -13593,6 +13849,16 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13593
13849
|
} | undefined;
|
|
13594
13850
|
skippedRetrying?: boolean | undefined;
|
|
13595
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
|
+
}>>;
|
|
13596
13862
|
}, "strip", z.ZodTypeAny, {
|
|
13597
13863
|
execution: {
|
|
13598
13864
|
queue: {
|
|
@@ -13649,9 +13915,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13649
13915
|
version: "v1";
|
|
13650
13916
|
completion: {
|
|
13651
13917
|
error: {
|
|
13918
|
+
name: string;
|
|
13652
13919
|
type: "BUILT_IN_ERROR";
|
|
13653
13920
|
message: string;
|
|
13654
|
-
name: string;
|
|
13655
13921
|
stackTrace: string;
|
|
13656
13922
|
} | {
|
|
13657
13923
|
type: "CUSTOM_ERROR";
|
|
@@ -13678,6 +13944,10 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13678
13944
|
outputType: string;
|
|
13679
13945
|
output?: string | undefined;
|
|
13680
13946
|
};
|
|
13947
|
+
checkpoint?: {
|
|
13948
|
+
location: string;
|
|
13949
|
+
docker: boolean;
|
|
13950
|
+
} | undefined;
|
|
13681
13951
|
}, {
|
|
13682
13952
|
execution: {
|
|
13683
13953
|
queue: {
|
|
@@ -13733,9 +14003,9 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13733
14003
|
};
|
|
13734
14004
|
completion: {
|
|
13735
14005
|
error: {
|
|
14006
|
+
name: string;
|
|
13736
14007
|
type: "BUILT_IN_ERROR";
|
|
13737
14008
|
message: string;
|
|
13738
|
-
name: string;
|
|
13739
14009
|
stackTrace: string;
|
|
13740
14010
|
} | {
|
|
13741
14011
|
type: "CUSTOM_ERROR";
|
|
@@ -13763,6 +14033,10 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13763
14033
|
output?: string | undefined;
|
|
13764
14034
|
};
|
|
13765
14035
|
version?: "v1" | undefined;
|
|
14036
|
+
checkpoint?: {
|
|
14037
|
+
location: string;
|
|
14038
|
+
docker: boolean;
|
|
14039
|
+
} | undefined;
|
|
13766
14040
|
}>;
|
|
13767
14041
|
};
|
|
13768
14042
|
TASK_HEARTBEAT: {
|
|
@@ -13780,36 +14054,42 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13780
14054
|
CHECKPOINT_CREATED: {
|
|
13781
14055
|
message: z.ZodObject<{
|
|
13782
14056
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
13783
|
-
|
|
14057
|
+
attemptFriendlyId: z.ZodString;
|
|
13784
14058
|
docker: z.ZodBoolean;
|
|
13785
14059
|
location: z.ZodString;
|
|
13786
14060
|
reason: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
13787
14061
|
type: z.ZodLiteral<"WAIT_FOR_DURATION">;
|
|
13788
14062
|
ms: z.ZodNumber;
|
|
14063
|
+
now: z.ZodNumber;
|
|
13789
14064
|
}, "strip", z.ZodTypeAny, {
|
|
13790
14065
|
type: "WAIT_FOR_DURATION";
|
|
13791
14066
|
ms: number;
|
|
14067
|
+
now: number;
|
|
13792
14068
|
}, {
|
|
13793
14069
|
type: "WAIT_FOR_DURATION";
|
|
13794
14070
|
ms: number;
|
|
14071
|
+
now: number;
|
|
13795
14072
|
}>, z.ZodObject<{
|
|
13796
14073
|
type: z.ZodLiteral<"WAIT_FOR_BATCH">;
|
|
13797
|
-
|
|
14074
|
+
batchFriendlyId: z.ZodString;
|
|
14075
|
+
runFriendlyIds: z.ZodArray<z.ZodString, "many">;
|
|
13798
14076
|
}, "strip", z.ZodTypeAny, {
|
|
13799
14077
|
type: "WAIT_FOR_BATCH";
|
|
13800
|
-
|
|
14078
|
+
batchFriendlyId: string;
|
|
14079
|
+
runFriendlyIds: string[];
|
|
13801
14080
|
}, {
|
|
13802
14081
|
type: "WAIT_FOR_BATCH";
|
|
13803
|
-
|
|
14082
|
+
batchFriendlyId: string;
|
|
14083
|
+
runFriendlyIds: string[];
|
|
13804
14084
|
}>, z.ZodObject<{
|
|
13805
14085
|
type: z.ZodLiteral<"WAIT_FOR_TASK">;
|
|
13806
|
-
|
|
14086
|
+
friendlyId: z.ZodString;
|
|
13807
14087
|
}, "strip", z.ZodTypeAny, {
|
|
13808
14088
|
type: "WAIT_FOR_TASK";
|
|
13809
|
-
|
|
14089
|
+
friendlyId: string;
|
|
13810
14090
|
}, {
|
|
13811
14091
|
type: "WAIT_FOR_TASK";
|
|
13812
|
-
|
|
14092
|
+
friendlyId: string;
|
|
13813
14093
|
}>, z.ZodObject<{
|
|
13814
14094
|
type: z.ZodLiteral<"RETRYING_AFTER_FAILURE">;
|
|
13815
14095
|
attemptNumber: z.ZodNumber;
|
|
@@ -13822,38 +14102,42 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13822
14102
|
}>]>;
|
|
13823
14103
|
}, "strip", z.ZodTypeAny, {
|
|
13824
14104
|
version: "v1";
|
|
13825
|
-
attemptId: string;
|
|
13826
14105
|
location: string;
|
|
13827
14106
|
reason: {
|
|
13828
14107
|
type: "WAIT_FOR_DURATION";
|
|
13829
14108
|
ms: number;
|
|
14109
|
+
now: number;
|
|
13830
14110
|
} | {
|
|
13831
14111
|
type: "WAIT_FOR_BATCH";
|
|
13832
|
-
|
|
14112
|
+
batchFriendlyId: string;
|
|
14113
|
+
runFriendlyIds: string[];
|
|
13833
14114
|
} | {
|
|
13834
14115
|
type: "WAIT_FOR_TASK";
|
|
13835
|
-
|
|
14116
|
+
friendlyId: string;
|
|
13836
14117
|
} | {
|
|
13837
14118
|
type: "RETRYING_AFTER_FAILURE";
|
|
13838
14119
|
attemptNumber: number;
|
|
13839
14120
|
};
|
|
14121
|
+
attemptFriendlyId: string;
|
|
13840
14122
|
docker: boolean;
|
|
13841
14123
|
}, {
|
|
13842
|
-
attemptId: string;
|
|
13843
14124
|
location: string;
|
|
13844
14125
|
reason: {
|
|
13845
14126
|
type: "WAIT_FOR_DURATION";
|
|
13846
14127
|
ms: number;
|
|
14128
|
+
now: number;
|
|
13847
14129
|
} | {
|
|
13848
14130
|
type: "WAIT_FOR_BATCH";
|
|
13849
|
-
|
|
14131
|
+
batchFriendlyId: string;
|
|
14132
|
+
runFriendlyIds: string[];
|
|
13850
14133
|
} | {
|
|
13851
14134
|
type: "WAIT_FOR_TASK";
|
|
13852
|
-
|
|
14135
|
+
friendlyId: string;
|
|
13853
14136
|
} | {
|
|
13854
14137
|
type: "RETRYING_AFTER_FAILURE";
|
|
13855
14138
|
attemptNumber: number;
|
|
13856
14139
|
};
|
|
14140
|
+
attemptFriendlyId: string;
|
|
13857
14141
|
docker: boolean;
|
|
13858
14142
|
version?: "v1" | undefined;
|
|
13859
14143
|
}>;
|
|
@@ -13867,26 +14151,26 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13867
14151
|
message: z.ZodString;
|
|
13868
14152
|
stack: z.ZodOptional<z.ZodString>;
|
|
13869
14153
|
}, "strip", z.ZodTypeAny, {
|
|
13870
|
-
message: string;
|
|
13871
14154
|
name: string;
|
|
14155
|
+
message: string;
|
|
13872
14156
|
stack?: string | undefined;
|
|
13873
14157
|
}, {
|
|
13874
|
-
message: string;
|
|
13875
14158
|
name: string;
|
|
14159
|
+
message: string;
|
|
13876
14160
|
stack?: string | undefined;
|
|
13877
14161
|
}>;
|
|
13878
14162
|
}, "strip", z.ZodTypeAny, {
|
|
13879
14163
|
error: {
|
|
13880
|
-
message: string;
|
|
13881
14164
|
name: string;
|
|
14165
|
+
message: string;
|
|
13882
14166
|
stack?: string | undefined;
|
|
13883
14167
|
};
|
|
13884
14168
|
version: "v1";
|
|
13885
14169
|
deploymentId: string;
|
|
13886
14170
|
}, {
|
|
13887
14171
|
error: {
|
|
13888
|
-
message: string;
|
|
13889
14172
|
name: string;
|
|
14173
|
+
message: string;
|
|
13890
14174
|
stack?: string | undefined;
|
|
13891
14175
|
};
|
|
13892
14176
|
deploymentId: string;
|
|
@@ -13895,10 +14179,12 @@ declare const CoordinatorToPlatformMessages: {
|
|
|
13895
14179
|
};
|
|
13896
14180
|
};
|
|
13897
14181
|
declare const PlatformToCoordinatorMessages: {
|
|
13898
|
-
|
|
14182
|
+
RESUME_AFTER_DEPENDENCY: {
|
|
13899
14183
|
message: z.ZodObject<{
|
|
13900
14184
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14185
|
+
runId: z.ZodString;
|
|
13901
14186
|
attemptId: z.ZodString;
|
|
14187
|
+
attemptFriendlyId: z.ZodString;
|
|
13902
14188
|
completions: z.ZodArray<z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
|
|
13903
14189
|
ok: z.ZodLiteral<true>;
|
|
13904
14190
|
id: z.ZodString;
|
|
@@ -13923,14 +14209,14 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
13923
14209
|
message: z.ZodString;
|
|
13924
14210
|
stackTrace: z.ZodString;
|
|
13925
14211
|
}, "strip", z.ZodTypeAny, {
|
|
14212
|
+
name: string;
|
|
13926
14213
|
type: "BUILT_IN_ERROR";
|
|
13927
14214
|
message: string;
|
|
13928
|
-
name: string;
|
|
13929
14215
|
stackTrace: string;
|
|
13930
14216
|
}, {
|
|
14217
|
+
name: string;
|
|
13931
14218
|
type: "BUILT_IN_ERROR";
|
|
13932
14219
|
message: string;
|
|
13933
|
-
name: string;
|
|
13934
14220
|
stackTrace: string;
|
|
13935
14221
|
}>, z.ZodObject<{
|
|
13936
14222
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -13979,9 +14265,9 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
13979
14265
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
13980
14266
|
}, "strip", z.ZodTypeAny, {
|
|
13981
14267
|
error: {
|
|
14268
|
+
name: string;
|
|
13982
14269
|
type: "BUILT_IN_ERROR";
|
|
13983
14270
|
message: string;
|
|
13984
|
-
name: string;
|
|
13985
14271
|
stackTrace: string;
|
|
13986
14272
|
} | {
|
|
13987
14273
|
type: "CUSTOM_ERROR";
|
|
@@ -14004,9 +14290,9 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14004
14290
|
skippedRetrying?: boolean | undefined;
|
|
14005
14291
|
}, {
|
|
14006
14292
|
error: {
|
|
14293
|
+
name: string;
|
|
14007
14294
|
type: "BUILT_IN_ERROR";
|
|
14008
14295
|
message: string;
|
|
14009
|
-
name: string;
|
|
14010
14296
|
stackTrace: string;
|
|
14011
14297
|
} | {
|
|
14012
14298
|
type: "CUSTOM_ERROR";
|
|
@@ -14243,12 +14529,14 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14243
14529
|
}>, "many">;
|
|
14244
14530
|
}, "strip", z.ZodTypeAny, {
|
|
14245
14531
|
version: "v1";
|
|
14532
|
+
runId: string;
|
|
14533
|
+
attemptFriendlyId: string;
|
|
14246
14534
|
attemptId: string;
|
|
14247
14535
|
completions: ({
|
|
14248
14536
|
error: {
|
|
14537
|
+
name: string;
|
|
14249
14538
|
type: "BUILT_IN_ERROR";
|
|
14250
14539
|
message: string;
|
|
14251
|
-
name: string;
|
|
14252
14540
|
stackTrace: string;
|
|
14253
14541
|
} | {
|
|
14254
14542
|
type: "CUSTOM_ERROR";
|
|
@@ -14323,12 +14611,14 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14323
14611
|
} | undefined;
|
|
14324
14612
|
}[];
|
|
14325
14613
|
}, {
|
|
14614
|
+
runId: string;
|
|
14615
|
+
attemptFriendlyId: string;
|
|
14326
14616
|
attemptId: string;
|
|
14327
14617
|
completions: ({
|
|
14328
14618
|
error: {
|
|
14619
|
+
name: string;
|
|
14329
14620
|
type: "BUILT_IN_ERROR";
|
|
14330
14621
|
message: string;
|
|
14331
|
-
name: string;
|
|
14332
14622
|
stackTrace: string;
|
|
14333
14623
|
} | {
|
|
14334
14624
|
type: "CUSTOM_ERROR";
|
|
@@ -14409,10 +14699,13 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14409
14699
|
message: z.ZodObject<{
|
|
14410
14700
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14411
14701
|
attemptId: z.ZodString;
|
|
14702
|
+
attemptFriendlyId: z.ZodString;
|
|
14412
14703
|
}, "strip", z.ZodTypeAny, {
|
|
14413
14704
|
version: "v1";
|
|
14705
|
+
attemptFriendlyId: string;
|
|
14414
14706
|
attemptId: string;
|
|
14415
14707
|
}, {
|
|
14708
|
+
attemptFriendlyId: string;
|
|
14416
14709
|
attemptId: string;
|
|
14417
14710
|
version?: "v1" | undefined;
|
|
14418
14711
|
}>;
|
|
@@ -14421,14 +14714,29 @@ declare const PlatformToCoordinatorMessages: {
|
|
|
14421
14714
|
message: z.ZodObject<{
|
|
14422
14715
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
14423
14716
|
attemptId: z.ZodString;
|
|
14717
|
+
attemptFriendlyId: z.ZodString;
|
|
14424
14718
|
}, "strip", z.ZodTypeAny, {
|
|
14425
14719
|
version: "v1";
|
|
14720
|
+
attemptFriendlyId: string;
|
|
14426
14721
|
attemptId: string;
|
|
14427
14722
|
}, {
|
|
14723
|
+
attemptFriendlyId: string;
|
|
14428
14724
|
attemptId: string;
|
|
14429
14725
|
version?: "v1" | undefined;
|
|
14430
14726
|
}>;
|
|
14431
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
|
+
};
|
|
14432
14740
|
};
|
|
14433
14741
|
declare const ClientToSharedQueueMessages: {
|
|
14434
14742
|
READY_FOR_TASKS: {
|
|
@@ -14486,14 +14794,14 @@ declare const ClientToSharedQueueMessages: {
|
|
|
14486
14794
|
message: z.ZodString;
|
|
14487
14795
|
stackTrace: z.ZodString;
|
|
14488
14796
|
}, "strip", z.ZodTypeAny, {
|
|
14797
|
+
name: string;
|
|
14489
14798
|
type: "BUILT_IN_ERROR";
|
|
14490
14799
|
message: string;
|
|
14491
|
-
name: string;
|
|
14492
14800
|
stackTrace: string;
|
|
14493
14801
|
}, {
|
|
14802
|
+
name: string;
|
|
14494
14803
|
type: "BUILT_IN_ERROR";
|
|
14495
14804
|
message: string;
|
|
14496
|
-
name: string;
|
|
14497
14805
|
stackTrace: string;
|
|
14498
14806
|
}>, z.ZodObject<{
|
|
14499
14807
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -14542,9 +14850,9 @@ declare const ClientToSharedQueueMessages: {
|
|
|
14542
14850
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
14543
14851
|
}, "strip", z.ZodTypeAny, {
|
|
14544
14852
|
error: {
|
|
14853
|
+
name: string;
|
|
14545
14854
|
type: "BUILT_IN_ERROR";
|
|
14546
14855
|
message: string;
|
|
14547
|
-
name: string;
|
|
14548
14856
|
stackTrace: string;
|
|
14549
14857
|
} | {
|
|
14550
14858
|
type: "CUSTOM_ERROR";
|
|
@@ -14567,9 +14875,9 @@ declare const ClientToSharedQueueMessages: {
|
|
|
14567
14875
|
skippedRetrying?: boolean | undefined;
|
|
14568
14876
|
}, {
|
|
14569
14877
|
error: {
|
|
14878
|
+
name: string;
|
|
14570
14879
|
type: "BUILT_IN_ERROR";
|
|
14571
14880
|
message: string;
|
|
14572
|
-
name: string;
|
|
14573
14881
|
stackTrace: string;
|
|
14574
14882
|
} | {
|
|
14575
14883
|
type: "CUSTOM_ERROR";
|
|
@@ -14856,9 +15164,9 @@ declare const ClientToSharedQueueMessages: {
|
|
|
14856
15164
|
version: "v1";
|
|
14857
15165
|
completion: {
|
|
14858
15166
|
error: {
|
|
15167
|
+
name: string;
|
|
14859
15168
|
type: "BUILT_IN_ERROR";
|
|
14860
15169
|
message: string;
|
|
14861
|
-
name: string;
|
|
14862
15170
|
stackTrace: string;
|
|
14863
15171
|
} | {
|
|
14864
15172
|
type: "CUSTOM_ERROR";
|
|
@@ -14936,9 +15244,9 @@ declare const ClientToSharedQueueMessages: {
|
|
|
14936
15244
|
};
|
|
14937
15245
|
completion: {
|
|
14938
15246
|
error: {
|
|
15247
|
+
name: string;
|
|
14939
15248
|
type: "BUILT_IN_ERROR";
|
|
14940
15249
|
message: string;
|
|
14941
|
-
name: string;
|
|
14942
15250
|
stackTrace: string;
|
|
14943
15251
|
} | {
|
|
14944
15252
|
type: "CUSTOM_ERROR";
|
|
@@ -15032,9 +15340,9 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15032
15340
|
version: "v1";
|
|
15033
15341
|
completion: {
|
|
15034
15342
|
error: {
|
|
15343
|
+
name: string;
|
|
15035
15344
|
type: "BUILT_IN_ERROR";
|
|
15036
15345
|
message: string;
|
|
15037
|
-
name: string;
|
|
15038
15346
|
stackTrace: string;
|
|
15039
15347
|
} | {
|
|
15040
15348
|
type: "CUSTOM_ERROR";
|
|
@@ -15120,9 +15428,9 @@ declare const ClientToSharedQueueMessages: {
|
|
|
15120
15428
|
};
|
|
15121
15429
|
completion: {
|
|
15122
15430
|
error: {
|
|
15431
|
+
name: string;
|
|
15123
15432
|
type: "BUILT_IN_ERROR";
|
|
15124
15433
|
message: string;
|
|
15125
|
-
name: string;
|
|
15126
15434
|
stackTrace: string;
|
|
15127
15435
|
} | {
|
|
15128
15436
|
type: "CUSTOM_ERROR";
|
|
@@ -15620,15 +15928,18 @@ declare const SharedQueueToClientMessages: {
|
|
|
15620
15928
|
image: z.ZodString;
|
|
15621
15929
|
envId: z.ZodString;
|
|
15622
15930
|
runId: z.ZodString;
|
|
15931
|
+
version: z.ZodString;
|
|
15623
15932
|
}, "strip", z.ZodTypeAny, {
|
|
15624
15933
|
type: "SCHEDULE_ATTEMPT";
|
|
15625
15934
|
id: string;
|
|
15935
|
+
version: string;
|
|
15626
15936
|
image: string;
|
|
15627
15937
|
envId: string;
|
|
15628
15938
|
runId: string;
|
|
15629
15939
|
}, {
|
|
15630
15940
|
type: "SCHEDULE_ATTEMPT";
|
|
15631
15941
|
id: string;
|
|
15942
|
+
version: string;
|
|
15632
15943
|
image: string;
|
|
15633
15944
|
envId: string;
|
|
15634
15945
|
runId: string;
|
|
@@ -15694,6 +16005,7 @@ declare const SharedQueueToClientMessages: {
|
|
|
15694
16005
|
} | {
|
|
15695
16006
|
type: "SCHEDULE_ATTEMPT";
|
|
15696
16007
|
id: string;
|
|
16008
|
+
version: string;
|
|
15697
16009
|
image: string;
|
|
15698
16010
|
envId: string;
|
|
15699
16011
|
runId: string;
|
|
@@ -15761,6 +16073,7 @@ declare const SharedQueueToClientMessages: {
|
|
|
15761
16073
|
} | {
|
|
15762
16074
|
type: "SCHEDULE_ATTEMPT";
|
|
15763
16075
|
id: string;
|
|
16076
|
+
version: string;
|
|
15764
16077
|
image: string;
|
|
15765
16078
|
envId: string;
|
|
15766
16079
|
runId: string;
|
|
@@ -15793,6 +16106,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15793
16106
|
filePath: z.ZodString;
|
|
15794
16107
|
exportName: z.ZodString;
|
|
15795
16108
|
queue: z.ZodOptional<z.ZodObject<{
|
|
16109
|
+
name: z.ZodOptional<z.ZodString>;
|
|
16110
|
+
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
15796
16111
|
rateLimit: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
15797
16112
|
type: z.ZodLiteral<"fixed-window">;
|
|
15798
16113
|
limit: z.ZodNumber;
|
|
@@ -15902,9 +16217,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15902
16217
|
hours: number;
|
|
15903
16218
|
} | undefined);
|
|
15904
16219
|
}>]>>;
|
|
15905
|
-
concurrencyLimit: z.ZodOptional<z.ZodNumber>;
|
|
15906
|
-
name: z.ZodOptional<z.ZodString>;
|
|
15907
16220
|
}, "strip", z.ZodTypeAny, {
|
|
16221
|
+
name?: string | undefined;
|
|
16222
|
+
concurrencyLimit?: number | undefined;
|
|
15908
16223
|
rateLimit?: {
|
|
15909
16224
|
type: "fixed-window";
|
|
15910
16225
|
limit: number;
|
|
@@ -15938,9 +16253,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15938
16253
|
hours: number;
|
|
15939
16254
|
} | undefined);
|
|
15940
16255
|
} | undefined;
|
|
15941
|
-
concurrencyLimit?: number | undefined;
|
|
15942
|
-
name?: string | undefined;
|
|
15943
16256
|
}, {
|
|
16257
|
+
name?: string | undefined;
|
|
16258
|
+
concurrencyLimit?: number | undefined;
|
|
15944
16259
|
rateLimit?: {
|
|
15945
16260
|
type: "fixed-window";
|
|
15946
16261
|
limit: number;
|
|
@@ -15974,8 +16289,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
15974
16289
|
hours: number;
|
|
15975
16290
|
} | undefined);
|
|
15976
16291
|
} | undefined;
|
|
15977
|
-
concurrencyLimit?: number | undefined;
|
|
15978
|
-
name?: string | undefined;
|
|
15979
16292
|
}>>;
|
|
15980
16293
|
retry: z.ZodOptional<z.ZodObject<{
|
|
15981
16294
|
maxAttempts: z.ZodOptional<z.ZodNumber>;
|
|
@@ -16001,6 +16314,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16001
16314
|
filePath: string;
|
|
16002
16315
|
exportName: string;
|
|
16003
16316
|
queue?: {
|
|
16317
|
+
name?: string | undefined;
|
|
16318
|
+
concurrencyLimit?: number | undefined;
|
|
16004
16319
|
rateLimit?: {
|
|
16005
16320
|
type: "fixed-window";
|
|
16006
16321
|
limit: number;
|
|
@@ -16034,8 +16349,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16034
16349
|
hours: number;
|
|
16035
16350
|
} | undefined);
|
|
16036
16351
|
} | undefined;
|
|
16037
|
-
concurrencyLimit?: number | undefined;
|
|
16038
|
-
name?: string | undefined;
|
|
16039
16352
|
} | undefined;
|
|
16040
16353
|
retry?: {
|
|
16041
16354
|
maxAttempts?: number | undefined;
|
|
@@ -16049,6 +16362,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16049
16362
|
filePath: string;
|
|
16050
16363
|
exportName: string;
|
|
16051
16364
|
queue?: {
|
|
16365
|
+
name?: string | undefined;
|
|
16366
|
+
concurrencyLimit?: number | undefined;
|
|
16052
16367
|
rateLimit?: {
|
|
16053
16368
|
type: "fixed-window";
|
|
16054
16369
|
limit: number;
|
|
@@ -16082,8 +16397,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16082
16397
|
hours: number;
|
|
16083
16398
|
} | undefined);
|
|
16084
16399
|
} | undefined;
|
|
16085
|
-
concurrencyLimit?: number | undefined;
|
|
16086
|
-
name?: string | undefined;
|
|
16087
16400
|
} | undefined;
|
|
16088
16401
|
retry?: {
|
|
16089
16402
|
maxAttempts?: number | undefined;
|
|
@@ -16102,6 +16415,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16102
16415
|
filePath: string;
|
|
16103
16416
|
exportName: string;
|
|
16104
16417
|
queue?: {
|
|
16418
|
+
name?: string | undefined;
|
|
16419
|
+
concurrencyLimit?: number | undefined;
|
|
16105
16420
|
rateLimit?: {
|
|
16106
16421
|
type: "fixed-window";
|
|
16107
16422
|
limit: number;
|
|
@@ -16135,8 +16450,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16135
16450
|
hours: number;
|
|
16136
16451
|
} | undefined);
|
|
16137
16452
|
} | undefined;
|
|
16138
|
-
concurrencyLimit?: number | undefined;
|
|
16139
|
-
name?: string | undefined;
|
|
16140
16453
|
} | undefined;
|
|
16141
16454
|
retry?: {
|
|
16142
16455
|
maxAttempts?: number | undefined;
|
|
@@ -16154,6 +16467,8 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16154
16467
|
filePath: string;
|
|
16155
16468
|
exportName: string;
|
|
16156
16469
|
queue?: {
|
|
16470
|
+
name?: string | undefined;
|
|
16471
|
+
concurrencyLimit?: number | undefined;
|
|
16157
16472
|
rateLimit?: {
|
|
16158
16473
|
type: "fixed-window";
|
|
16159
16474
|
limit: number;
|
|
@@ -16187,8 +16502,6 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16187
16502
|
hours: number;
|
|
16188
16503
|
} | undefined);
|
|
16189
16504
|
} | undefined;
|
|
16190
|
-
concurrencyLimit?: number | undefined;
|
|
16191
|
-
name?: string | undefined;
|
|
16192
16505
|
} | undefined;
|
|
16193
16506
|
retry?: {
|
|
16194
16507
|
maxAttempts?: number | undefined;
|
|
@@ -16218,30 +16531,48 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16218
16531
|
READY_FOR_EXECUTION: {
|
|
16219
16532
|
message: z.ZodObject<{
|
|
16220
16533
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16221
|
-
attemptId: z.ZodString;
|
|
16222
16534
|
runId: z.ZodString;
|
|
16535
|
+
totalCompletions: z.ZodNumber;
|
|
16223
16536
|
}, "strip", z.ZodTypeAny, {
|
|
16224
16537
|
version: "v1";
|
|
16225
16538
|
runId: string;
|
|
16226
|
-
|
|
16539
|
+
totalCompletions: number;
|
|
16227
16540
|
}, {
|
|
16228
16541
|
runId: string;
|
|
16229
|
-
|
|
16542
|
+
totalCompletions: number;
|
|
16230
16543
|
version?: "v1" | undefined;
|
|
16231
16544
|
}>;
|
|
16232
16545
|
};
|
|
16233
16546
|
READY_FOR_RESUME: {
|
|
16234
16547
|
message: z.ZodObject<{
|
|
16235
16548
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16236
|
-
|
|
16549
|
+
attemptFriendlyId: z.ZodString;
|
|
16237
16550
|
type: z.ZodEnum<["WAIT_FOR_DURATION", "WAIT_FOR_TASK", "WAIT_FOR_BATCH"]>;
|
|
16238
16551
|
}, "strip", z.ZodTypeAny, {
|
|
16239
16552
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
16240
16553
|
version: "v1";
|
|
16241
|
-
|
|
16554
|
+
attemptFriendlyId: string;
|
|
16242
16555
|
}, {
|
|
16243
16556
|
type: "WAIT_FOR_DURATION" | "WAIT_FOR_TASK" | "WAIT_FOR_BATCH";
|
|
16244
|
-
|
|
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
|
+
}, {
|
|
16245
16576
|
version?: "v1" | undefined;
|
|
16246
16577
|
}>;
|
|
16247
16578
|
};
|
|
@@ -16520,14 +16851,14 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16520
16851
|
message: z.ZodString;
|
|
16521
16852
|
stackTrace: z.ZodString;
|
|
16522
16853
|
}, "strip", z.ZodTypeAny, {
|
|
16854
|
+
name: string;
|
|
16523
16855
|
type: "BUILT_IN_ERROR";
|
|
16524
16856
|
message: string;
|
|
16525
|
-
name: string;
|
|
16526
16857
|
stackTrace: string;
|
|
16527
16858
|
}, {
|
|
16859
|
+
name: string;
|
|
16528
16860
|
type: "BUILT_IN_ERROR";
|
|
16529
16861
|
message: string;
|
|
16530
|
-
name: string;
|
|
16531
16862
|
stackTrace: string;
|
|
16532
16863
|
}>, z.ZodObject<{
|
|
16533
16864
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -16576,9 +16907,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16576
16907
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
16577
16908
|
}, "strip", z.ZodTypeAny, {
|
|
16578
16909
|
error: {
|
|
16910
|
+
name: string;
|
|
16579
16911
|
type: "BUILT_IN_ERROR";
|
|
16580
16912
|
message: string;
|
|
16581
|
-
name: string;
|
|
16582
16913
|
stackTrace: string;
|
|
16583
16914
|
} | {
|
|
16584
16915
|
type: "CUSTOM_ERROR";
|
|
@@ -16601,9 +16932,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16601
16932
|
skippedRetrying?: boolean | undefined;
|
|
16602
16933
|
}, {
|
|
16603
16934
|
error: {
|
|
16935
|
+
name: string;
|
|
16604
16936
|
type: "BUILT_IN_ERROR";
|
|
16605
16937
|
message: string;
|
|
16606
|
-
name: string;
|
|
16607
16938
|
stackTrace: string;
|
|
16608
16939
|
} | {
|
|
16609
16940
|
type: "CUSTOM_ERROR";
|
|
@@ -16681,9 +17012,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16681
17012
|
version: "v1";
|
|
16682
17013
|
completion: {
|
|
16683
17014
|
error: {
|
|
17015
|
+
name: string;
|
|
16684
17016
|
type: "BUILT_IN_ERROR";
|
|
16685
17017
|
message: string;
|
|
16686
|
-
name: string;
|
|
16687
17018
|
stackTrace: string;
|
|
16688
17019
|
} | {
|
|
16689
17020
|
type: "CUSTOM_ERROR";
|
|
@@ -16765,9 +17096,9 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16765
17096
|
};
|
|
16766
17097
|
completion: {
|
|
16767
17098
|
error: {
|
|
17099
|
+
name: string;
|
|
16768
17100
|
type: "BUILT_IN_ERROR";
|
|
16769
17101
|
message: string;
|
|
16770
|
-
name: string;
|
|
16771
17102
|
stackTrace: string;
|
|
16772
17103
|
} | {
|
|
16773
17104
|
type: "CUSTOM_ERROR";
|
|
@@ -16797,13 +17128,13 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16797
17128
|
version?: "v1" | undefined;
|
|
16798
17129
|
}>;
|
|
16799
17130
|
callback: z.ZodObject<{
|
|
16800
|
-
|
|
17131
|
+
willCheckpointAndRestore: z.ZodBoolean;
|
|
16801
17132
|
shouldExit: z.ZodBoolean;
|
|
16802
17133
|
}, "strip", z.ZodTypeAny, {
|
|
16803
|
-
|
|
17134
|
+
willCheckpointAndRestore: boolean;
|
|
16804
17135
|
shouldExit: boolean;
|
|
16805
17136
|
}, {
|
|
16806
|
-
|
|
17137
|
+
willCheckpointAndRestore: boolean;
|
|
16807
17138
|
shouldExit: boolean;
|
|
16808
17139
|
}>;
|
|
16809
17140
|
};
|
|
@@ -16811,11 +17142,17 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16811
17142
|
message: z.ZodObject<{
|
|
16812
17143
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16813
17144
|
ms: z.ZodNumber;
|
|
17145
|
+
now: z.ZodNumber;
|
|
17146
|
+
attemptFriendlyId: z.ZodString;
|
|
16814
17147
|
}, "strip", z.ZodTypeAny, {
|
|
16815
17148
|
version: "v1";
|
|
16816
17149
|
ms: number;
|
|
17150
|
+
now: number;
|
|
17151
|
+
attemptFriendlyId: string;
|
|
16817
17152
|
}, {
|
|
16818
17153
|
ms: number;
|
|
17154
|
+
now: number;
|
|
17155
|
+
attemptFriendlyId: string;
|
|
16819
17156
|
version?: "v1" | undefined;
|
|
16820
17157
|
}>;
|
|
16821
17158
|
callback: z.ZodObject<{
|
|
@@ -16829,12 +17166,15 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16829
17166
|
WAIT_FOR_TASK: {
|
|
16830
17167
|
message: z.ZodObject<{
|
|
16831
17168
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16832
|
-
|
|
17169
|
+
friendlyId: z.ZodString;
|
|
17170
|
+
attemptFriendlyId: z.ZodString;
|
|
16833
17171
|
}, "strip", z.ZodTypeAny, {
|
|
16834
|
-
id: string;
|
|
16835
17172
|
version: "v1";
|
|
17173
|
+
friendlyId: string;
|
|
17174
|
+
attemptFriendlyId: string;
|
|
16836
17175
|
}, {
|
|
16837
|
-
|
|
17176
|
+
friendlyId: string;
|
|
17177
|
+
attemptFriendlyId: string;
|
|
16838
17178
|
version?: "v1" | undefined;
|
|
16839
17179
|
}>;
|
|
16840
17180
|
callback: z.ZodObject<{
|
|
@@ -16848,15 +17188,18 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16848
17188
|
WAIT_FOR_BATCH: {
|
|
16849
17189
|
message: z.ZodObject<{
|
|
16850
17190
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16851
|
-
|
|
16852
|
-
|
|
17191
|
+
batchFriendlyId: z.ZodString;
|
|
17192
|
+
runFriendlyIds: z.ZodArray<z.ZodString, "many">;
|
|
17193
|
+
attemptFriendlyId: z.ZodString;
|
|
16853
17194
|
}, "strip", z.ZodTypeAny, {
|
|
16854
|
-
id: string;
|
|
16855
17195
|
version: "v1";
|
|
16856
|
-
|
|
17196
|
+
batchFriendlyId: string;
|
|
17197
|
+
runFriendlyIds: string[];
|
|
17198
|
+
attemptFriendlyId: string;
|
|
16857
17199
|
}, {
|
|
16858
|
-
|
|
16859
|
-
|
|
17200
|
+
batchFriendlyId: string;
|
|
17201
|
+
runFriendlyIds: string[];
|
|
17202
|
+
attemptFriendlyId: string;
|
|
16860
17203
|
version?: "v1" | undefined;
|
|
16861
17204
|
}>;
|
|
16862
17205
|
callback: z.ZodObject<{
|
|
@@ -16876,26 +17219,26 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16876
17219
|
message: z.ZodString;
|
|
16877
17220
|
stack: z.ZodOptional<z.ZodString>;
|
|
16878
17221
|
}, "strip", z.ZodTypeAny, {
|
|
16879
|
-
message: string;
|
|
16880
17222
|
name: string;
|
|
17223
|
+
message: string;
|
|
16881
17224
|
stack?: string | undefined;
|
|
16882
17225
|
}, {
|
|
16883
|
-
message: string;
|
|
16884
17226
|
name: string;
|
|
17227
|
+
message: string;
|
|
16885
17228
|
stack?: string | undefined;
|
|
16886
17229
|
}>;
|
|
16887
17230
|
}, "strip", z.ZodTypeAny, {
|
|
16888
17231
|
error: {
|
|
16889
|
-
message: string;
|
|
16890
17232
|
name: string;
|
|
17233
|
+
message: string;
|
|
16891
17234
|
stack?: string | undefined;
|
|
16892
17235
|
};
|
|
16893
17236
|
version: "v1";
|
|
16894
17237
|
deploymentId: string;
|
|
16895
17238
|
}, {
|
|
16896
17239
|
error: {
|
|
16897
|
-
message: string;
|
|
16898
17240
|
name: string;
|
|
17241
|
+
message: string;
|
|
16899
17242
|
stack?: string | undefined;
|
|
16900
17243
|
};
|
|
16901
17244
|
deploymentId: string;
|
|
@@ -16904,7 +17247,7 @@ declare const ProdWorkerToCoordinatorMessages: {
|
|
|
16904
17247
|
};
|
|
16905
17248
|
};
|
|
16906
17249
|
declare const CoordinatorToProdWorkerMessages: {
|
|
16907
|
-
|
|
17250
|
+
RESUME_AFTER_DEPENDENCY: {
|
|
16908
17251
|
message: z.ZodObject<{
|
|
16909
17252
|
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
16910
17253
|
attemptId: z.ZodString;
|
|
@@ -16932,14 +17275,14 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
16932
17275
|
message: z.ZodString;
|
|
16933
17276
|
stackTrace: z.ZodString;
|
|
16934
17277
|
}, "strip", z.ZodTypeAny, {
|
|
17278
|
+
name: string;
|
|
16935
17279
|
type: "BUILT_IN_ERROR";
|
|
16936
17280
|
message: string;
|
|
16937
|
-
name: string;
|
|
16938
17281
|
stackTrace: string;
|
|
16939
17282
|
}, {
|
|
17283
|
+
name: string;
|
|
16940
17284
|
type: "BUILT_IN_ERROR";
|
|
16941
17285
|
message: string;
|
|
16942
|
-
name: string;
|
|
16943
17286
|
stackTrace: string;
|
|
16944
17287
|
}>, z.ZodObject<{
|
|
16945
17288
|
type: z.ZodLiteral<"CUSTOM_ERROR">;
|
|
@@ -16988,9 +17331,9 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
16988
17331
|
skippedRetrying: z.ZodOptional<z.ZodBoolean>;
|
|
16989
17332
|
}, "strip", z.ZodTypeAny, {
|
|
16990
17333
|
error: {
|
|
17334
|
+
name: string;
|
|
16991
17335
|
type: "BUILT_IN_ERROR";
|
|
16992
17336
|
message: string;
|
|
16993
|
-
name: string;
|
|
16994
17337
|
stackTrace: string;
|
|
16995
17338
|
} | {
|
|
16996
17339
|
type: "CUSTOM_ERROR";
|
|
@@ -17013,9 +17356,9 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17013
17356
|
skippedRetrying?: boolean | undefined;
|
|
17014
17357
|
}, {
|
|
17015
17358
|
error: {
|
|
17359
|
+
name: string;
|
|
17016
17360
|
type: "BUILT_IN_ERROR";
|
|
17017
17361
|
message: string;
|
|
17018
|
-
name: string;
|
|
17019
17362
|
stackTrace: string;
|
|
17020
17363
|
} | {
|
|
17021
17364
|
type: "CUSTOM_ERROR";
|
|
@@ -17255,9 +17598,9 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17255
17598
|
attemptId: string;
|
|
17256
17599
|
completions: ({
|
|
17257
17600
|
error: {
|
|
17601
|
+
name: string;
|
|
17258
17602
|
type: "BUILT_IN_ERROR";
|
|
17259
17603
|
message: string;
|
|
17260
|
-
name: string;
|
|
17261
17604
|
stackTrace: string;
|
|
17262
17605
|
} | {
|
|
17263
17606
|
type: "CUSTOM_ERROR";
|
|
@@ -17335,9 +17678,9 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17335
17678
|
attemptId: string;
|
|
17336
17679
|
completions: ({
|
|
17337
17680
|
error: {
|
|
17681
|
+
name: string;
|
|
17338
17682
|
type: "BUILT_IN_ERROR";
|
|
17339
17683
|
message: string;
|
|
17340
|
-
name: string;
|
|
17341
17684
|
stackTrace: string;
|
|
17342
17685
|
} | {
|
|
17343
17686
|
type: "CUSTOM_ERROR";
|
|
@@ -17918,31 +18261,46 @@ declare const CoordinatorToProdWorkerMessages: {
|
|
|
17918
18261
|
version?: "v1" | undefined;
|
|
17919
18262
|
}>;
|
|
17920
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
|
+
};
|
|
17921
18276
|
};
|
|
17922
18277
|
declare const ProdWorkerSocketData: z.ZodObject<{
|
|
17923
18278
|
contentHash: z.ZodString;
|
|
17924
18279
|
projectRef: z.ZodString;
|
|
17925
18280
|
envId: z.ZodString;
|
|
17926
18281
|
runId: z.ZodString;
|
|
17927
|
-
|
|
18282
|
+
attemptFriendlyId: z.ZodOptional<z.ZodString>;
|
|
17928
18283
|
podName: z.ZodString;
|
|
17929
18284
|
deploymentId: z.ZodString;
|
|
18285
|
+
deploymentVersion: z.ZodString;
|
|
17930
18286
|
}, "strip", z.ZodTypeAny, {
|
|
17931
18287
|
contentHash: string;
|
|
17932
18288
|
envId: string;
|
|
17933
18289
|
runId: string;
|
|
17934
|
-
attemptId: string;
|
|
17935
18290
|
projectRef: string;
|
|
17936
18291
|
deploymentId: string;
|
|
17937
18292
|
podName: string;
|
|
18293
|
+
deploymentVersion: string;
|
|
18294
|
+
attemptFriendlyId?: string | undefined;
|
|
17938
18295
|
}, {
|
|
17939
18296
|
contentHash: string;
|
|
17940
18297
|
envId: string;
|
|
17941
18298
|
runId: string;
|
|
17942
|
-
attemptId: string;
|
|
17943
18299
|
projectRef: string;
|
|
17944
18300
|
deploymentId: string;
|
|
17945
18301
|
podName: string;
|
|
18302
|
+
deploymentVersion: string;
|
|
18303
|
+
attemptFriendlyId?: string | undefined;
|
|
17946
18304
|
}>;
|
|
17947
18305
|
|
|
17948
18306
|
declare const PRIMARY_VARIANT = "primary";
|
|
@@ -18257,7 +18615,7 @@ declare const FetchRetryStrategy: z.ZodDiscriminatedUnion<"strategy", [z.ZodObje
|
|
|
18257
18615
|
bodyFilter?: EventFilter | undefined;
|
|
18258
18616
|
}>]>;
|
|
18259
18617
|
type FetchRetryStrategy = z.infer<typeof FetchRetryStrategy>;
|
|
18260
|
-
declare const
|
|
18618
|
+
declare const FetchRetryByStatusOptions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<"strategy", [z.ZodObject<{
|
|
18261
18619
|
/** The `headers` strategy retries the request using info from the response headers. */
|
|
18262
18620
|
strategy: z.ZodLiteral<"headers">;
|
|
18263
18621
|
/** The header to use to determine the maximum number of times to retry the request. */
|
|
@@ -18314,7 +18672,7 @@ declare const FetchRetryOptions: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnio
|
|
|
18314
18672
|
- Ranges: 500-599
|
|
18315
18673
|
- Wildcards: 2xx, 3xx, 4xx, 5xx
|
|
18316
18674
|
*/
|
|
18317
|
-
type
|
|
18675
|
+
type FetchRetryByStatusOptions = Prettify<z.infer<typeof FetchRetryByStatusOptions>>;
|
|
18318
18676
|
declare const FetchTimeoutOptions: z.ZodObject<{
|
|
18319
18677
|
/** The maximum time to wait for the request to complete. */
|
|
18320
18678
|
durationInMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -18357,6 +18715,166 @@ declare const FetchTimeoutOptions: z.ZodObject<{
|
|
|
18357
18715
|
} | undefined;
|
|
18358
18716
|
}>;
|
|
18359
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>>;
|
|
18360
18878
|
|
|
18361
18879
|
declare const ExceptionEventProperties: z.ZodObject<{
|
|
18362
18880
|
type: z.ZodOptional<z.ZodString>;
|
|
@@ -18636,6 +19154,26 @@ declare const SpanEvents: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
|
18636
19154
|
type SpanEvents = z.infer<typeof SpanEvents>;
|
|
18637
19155
|
declare function isExceptionSpanEvent(event: SpanEvent): event is ExceptionSpanEvent;
|
|
18638
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>;
|
|
18639
19177
|
|
|
18640
19178
|
type TriggerOptions = {
|
|
18641
19179
|
spanParentAsLink?: boolean;
|
|
@@ -18682,66 +19220,6 @@ declare class ApiClientManager {
|
|
|
18682
19220
|
}
|
|
18683
19221
|
declare const apiClientManager: ApiClientManager;
|
|
18684
19222
|
|
|
18685
|
-
type ZodMessageValueSchema<TDiscriminatedUnion extends z.ZodDiscriminatedUnion<any, any>> = z.ZodFirstPartySchemaTypes | TDiscriminatedUnion;
|
|
18686
|
-
interface ZodMessageCatalogSchema {
|
|
18687
|
-
[key: string]: ZodMessageValueSchema<any>;
|
|
18688
|
-
}
|
|
18689
|
-
type ZodMessageHandlers<TCatalogSchema extends ZodMessageCatalogSchema> = Partial<{
|
|
18690
|
-
[K in keyof TCatalogSchema]: (payload: z.infer<TCatalogSchema[K]>) => Promise<any>;
|
|
18691
|
-
}>;
|
|
18692
|
-
type ZodMessageHandlerOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18693
|
-
schema: TMessageCatalog;
|
|
18694
|
-
messages?: ZodMessageHandlers<TMessageCatalog>;
|
|
18695
|
-
};
|
|
18696
|
-
type MessageFromSchema<K extends keyof TMessageCatalog, TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18697
|
-
type: K;
|
|
18698
|
-
payload: z.input<TMessageCatalog[K]>;
|
|
18699
|
-
};
|
|
18700
|
-
type MessageFromCatalog<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18701
|
-
[K in keyof TMessageCatalog]: MessageFromSchema<K, TMessageCatalog>;
|
|
18702
|
-
}[keyof TMessageCatalog];
|
|
18703
|
-
declare const ZodMessageSchema: z.ZodObject<{
|
|
18704
|
-
version: z.ZodDefault<z.ZodLiteral<"v1">>;
|
|
18705
|
-
type: z.ZodString;
|
|
18706
|
-
payload: z.ZodUnknown;
|
|
18707
|
-
}, "strip", z.ZodTypeAny, {
|
|
18708
|
-
type: string;
|
|
18709
|
-
version: "v1";
|
|
18710
|
-
payload?: unknown;
|
|
18711
|
-
}, {
|
|
18712
|
-
type: string;
|
|
18713
|
-
version?: "v1" | undefined;
|
|
18714
|
-
payload?: unknown;
|
|
18715
|
-
}>;
|
|
18716
|
-
interface EventEmitterLike {
|
|
18717
|
-
on(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
18718
|
-
}
|
|
18719
|
-
declare class ZodMessageHandler<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
18720
|
-
#private;
|
|
18721
|
-
constructor(options: ZodMessageHandlerOptions<TMessageCatalog>);
|
|
18722
|
-
handleMessage(message: unknown): Promise<any>;
|
|
18723
|
-
parseMessage(message: unknown): MessageFromCatalog<TMessageCatalog>;
|
|
18724
|
-
registerHandlers(emitter: EventEmitterLike, logger?: (...args: any[]) => void): void;
|
|
18725
|
-
}
|
|
18726
|
-
type ZodMessageSenderCallback<TMessageCatalog extends ZodMessageCatalogSchema> = (message: {
|
|
18727
|
-
type: keyof TMessageCatalog;
|
|
18728
|
-
payload: z.infer<TMessageCatalog[keyof TMessageCatalog]>;
|
|
18729
|
-
version: "v1";
|
|
18730
|
-
}) => Promise<void>;
|
|
18731
|
-
type ZodMessageSenderOptions<TMessageCatalog extends ZodMessageCatalogSchema> = {
|
|
18732
|
-
schema: TMessageCatalog;
|
|
18733
|
-
sender: ZodMessageSenderCallback<TMessageCatalog>;
|
|
18734
|
-
};
|
|
18735
|
-
declare class ZodMessageSender<TMessageCatalog extends ZodMessageCatalogSchema> {
|
|
18736
|
-
#private;
|
|
18737
|
-
constructor(options: ZodMessageSenderOptions<TMessageCatalog>);
|
|
18738
|
-
send<K extends keyof TMessageCatalog>(type: K, payload: z.input<TMessageCatalog[K]>): Promise<void>;
|
|
18739
|
-
forwardMessage(message: unknown): Promise<void>;
|
|
18740
|
-
}
|
|
18741
|
-
type MessageCatalogToSocketIoEvents<TCatalog extends ZodMessageCatalogSchema> = {
|
|
18742
|
-
[K in keyof TCatalog]: (message: z.infer<TCatalog[K]>) => void;
|
|
18743
|
-
};
|
|
18744
|
-
|
|
18745
19223
|
interface ZodSocketMessageCatalogSchema {
|
|
18746
19224
|
[key: string]: {
|
|
18747
19225
|
message: ZodMessageValueSchema<any>;
|
|
@@ -18779,7 +19257,7 @@ declare class ZodSocketMessageHandler<TRPCCatalog extends ZodSocketMessageCatalo
|
|
|
18779
19257
|
constructor(options: ZodSocketMessageHandlerOptions<TRPCCatalog>);
|
|
18780
19258
|
handleMessage(message: unknown): Promise<(SocketMessageHasCallback<TRPCCatalog, keyof TRPCCatalog> extends true ? z.input<GetSocketCallbackSchema<TRPCCatalog, keyof TRPCCatalog>> : void) | undefined>;
|
|
18781
19259
|
parseMessage(message: unknown): MessagesFromSocketCatalog<TRPCCatalog>;
|
|
18782
|
-
registerHandlers(emitter: EventEmitterLike, logger?:
|
|
19260
|
+
registerHandlers(emitter: EventEmitterLike, logger?: StructuredLogger): void;
|
|
18783
19261
|
}
|
|
18784
19262
|
type ZodSocketMessageSenderOptions<TMessageCatalog extends ZodSocketMessageCatalogSchema> = {
|
|
18785
19263
|
schema: TMessageCatalog;
|
|
@@ -18809,9 +19287,9 @@ interface ZodSocketConnectionOptions<TClientMessages extends ZodSocketMessageCat
|
|
|
18809
19287
|
};
|
|
18810
19288
|
handlers?: ZodSocketMessageHandlers<TServerMessages>;
|
|
18811
19289
|
authToken?: string;
|
|
18812
|
-
onConnection?: (socket: ZodSocket<TServerMessages, TClientMessages>, handler: ZodSocketMessageHandler<TServerMessages>, sender: ZodSocketMessageSender<TClientMessages>, logger:
|
|
18813
|
-
onDisconnect?: (socket: ZodSocket<TServerMessages, TClientMessages>, reason: Socket.DisconnectReason, description: any, logger:
|
|
18814
|
-
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>;
|
|
18815
19293
|
}
|
|
18816
19294
|
declare class ZodSocketConnection<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema> {
|
|
18817
19295
|
#private;
|
|
@@ -18827,6 +19305,35 @@ interface ExtendedError extends Error {
|
|
|
18827
19305
|
data?: any;
|
|
18828
19306
|
}
|
|
18829
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
|
+
}
|
|
18830
19337
|
interface ZodNamespaceOptions<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema, TServerSideEvents extends EventsMap = DefaultEventsMap, TSocketData extends z.ZodObject<any, any, any> = any> {
|
|
18831
19338
|
io: Server;
|
|
18832
19339
|
name: string;
|
|
@@ -18835,11 +19342,12 @@ interface ZodNamespaceOptions<TClientMessages extends ZodSocketMessageCatalogSch
|
|
|
18835
19342
|
socketData?: TSocketData;
|
|
18836
19343
|
handlers?: ZodSocketMessageHandlers<TClientMessages>;
|
|
18837
19344
|
authToken?: string;
|
|
18838
|
-
|
|
18839
|
-
|
|
18840
|
-
|
|
18841
|
-
|
|
18842
|
-
|
|
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>;
|
|
18843
19351
|
}
|
|
18844
19352
|
declare class ZodNamespace<TClientMessages extends ZodSocketMessageCatalogSchema, TServerMessages extends ZodSocketMessageCatalogSchema, TSocketData extends z.ZodObject<any, any, any> = any, TServerSideEvents extends EventsMap = DefaultEventsMap> {
|
|
18845
19353
|
#private;
|
|
@@ -18850,6 +19358,66 @@ declare class ZodNamespace<TClientMessages extends ZodSocketMessageCatalogSchema
|
|
|
18850
19358
|
fetchSockets(): Promise<socket_io.RemoteSocket<ZodMessageCatalogToSocketIoEvents<TServerMessages>, z.TypeOf<TSocketData>>[]>;
|
|
18851
19359
|
}
|
|
18852
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
|
+
|
|
18853
19421
|
interface ZodIpcMessageSender<TEmitCatalog extends ZodSocketMessageCatalogSchema> {
|
|
18854
19422
|
send<K extends GetSocketMessagesWithoutCallback<TEmitCatalog>>(type: K, payload: z.input<GetSocketMessageSchema<TEmitCatalog, K>>): Promise<void>;
|
|
18855
19423
|
sendWithAck<K extends GetSocketMessagesWithCallback<TEmitCatalog>>(type: K, payload: z.input<GetSocketMessageSchema<TEmitCatalog, K>>): Promise<z.infer<GetSocketCallbackSchema<TEmitCatalog, K>>>;
|
|
@@ -19025,6 +19593,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19025
19593
|
METADATA: string;
|
|
19026
19594
|
TRIGGER: string;
|
|
19027
19595
|
PAYLOAD: string;
|
|
19596
|
+
SHOW: string;
|
|
19028
19597
|
SHOW_ACTIONS: string;
|
|
19029
19598
|
WORKER_ID: string;
|
|
19030
19599
|
WORKER_VERSION: string;
|
|
@@ -19036,7 +19605,7 @@ declare const SemanticInternalAttributes: {
|
|
|
19036
19605
|
RETRY_COUNT: string;
|
|
19037
19606
|
};
|
|
19038
19607
|
|
|
19039
|
-
declare function iconStringForSeverity(severityNumber: SeverityNumber): "error" | "
|
|
19608
|
+
declare function iconStringForSeverity(severityNumber: SeverityNumber): "error" | "warn" | "info" | "debug" | "trace" | "fatal" | undefined;
|
|
19040
19609
|
|
|
19041
19610
|
type DurationOptions = {
|
|
19042
19611
|
style?: "long" | "short";
|
|
@@ -19210,6 +19779,8 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19210
19779
|
dependentBatch?: string | undefined;
|
|
19211
19780
|
lockToVersion?: string | undefined;
|
|
19212
19781
|
queue?: {
|
|
19782
|
+
name?: string | undefined;
|
|
19783
|
+
concurrencyLimit?: number | undefined;
|
|
19213
19784
|
rateLimit?: {
|
|
19214
19785
|
type: "fixed-window";
|
|
19215
19786
|
limit: number;
|
|
@@ -19243,8 +19814,6 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19243
19814
|
hours: number;
|
|
19244
19815
|
} | undefined);
|
|
19245
19816
|
} | undefined;
|
|
19246
|
-
concurrencyLimit?: number | undefined;
|
|
19247
|
-
name?: string | undefined;
|
|
19248
19817
|
} | undefined;
|
|
19249
19818
|
concurrencyKey?: string | undefined;
|
|
19250
19819
|
test?: boolean | undefined;
|
|
@@ -19257,6 +19826,8 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19257
19826
|
dependentBatch?: string | undefined;
|
|
19258
19827
|
lockToVersion?: string | undefined;
|
|
19259
19828
|
queue?: {
|
|
19829
|
+
name?: string | undefined;
|
|
19830
|
+
concurrencyLimit?: number | undefined;
|
|
19260
19831
|
rateLimit?: {
|
|
19261
19832
|
type: "fixed-window";
|
|
19262
19833
|
limit: number;
|
|
@@ -19290,8 +19861,6 @@ declare function parseTriggerTaskRequestBody(body: unknown): zod.SafeParseReturn
|
|
|
19290
19861
|
hours: number;
|
|
19291
19862
|
} | undefined);
|
|
19292
19863
|
} | undefined;
|
|
19293
|
-
concurrencyLimit?: number | undefined;
|
|
19294
|
-
name?: string | undefined;
|
|
19295
19864
|
} | undefined;
|
|
19296
19865
|
concurrencyKey?: string | undefined;
|
|
19297
19866
|
test?: boolean | undefined;
|
|
@@ -19306,6 +19875,8 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19306
19875
|
dependentBatch?: string | undefined;
|
|
19307
19876
|
lockToVersion?: string | undefined;
|
|
19308
19877
|
queue?: {
|
|
19878
|
+
name?: string | undefined;
|
|
19879
|
+
concurrencyLimit?: number | undefined;
|
|
19309
19880
|
rateLimit?: {
|
|
19310
19881
|
type: "fixed-window";
|
|
19311
19882
|
limit: number;
|
|
@@ -19339,8 +19910,6 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19339
19910
|
hours: number;
|
|
19340
19911
|
} | undefined);
|
|
19341
19912
|
} | undefined;
|
|
19342
|
-
concurrencyLimit?: number | undefined;
|
|
19343
|
-
name?: string | undefined;
|
|
19344
19913
|
} | undefined;
|
|
19345
19914
|
concurrencyKey?: string | undefined;
|
|
19346
19915
|
test?: boolean | undefined;
|
|
@@ -19356,6 +19925,8 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19356
19925
|
dependentBatch?: string | undefined;
|
|
19357
19926
|
lockToVersion?: string | undefined;
|
|
19358
19927
|
queue?: {
|
|
19928
|
+
name?: string | undefined;
|
|
19929
|
+
concurrencyLimit?: number | undefined;
|
|
19359
19930
|
rateLimit?: {
|
|
19360
19931
|
type: "fixed-window";
|
|
19361
19932
|
limit: number;
|
|
@@ -19389,8 +19960,6 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19389
19960
|
hours: number;
|
|
19390
19961
|
} | undefined);
|
|
19391
19962
|
} | undefined;
|
|
19392
|
-
concurrencyLimit?: number | undefined;
|
|
19393
|
-
name?: string | undefined;
|
|
19394
19963
|
} | undefined;
|
|
19395
19964
|
concurrencyKey?: string | undefined;
|
|
19396
19965
|
test?: boolean | undefined;
|
|
@@ -19399,4 +19968,4 @@ declare function parseBatchTriggerTaskRequestBody(body: unknown): zod.SafeParseR
|
|
|
19399
19968
|
dependentAttempt?: string | undefined;
|
|
19400
19969
|
}>;
|
|
19401
19970
|
|
|
19402
|
-
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 };
|
|
19971
|
+
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, 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 };
|