@trigger.dev/core 4.3.0 → 4.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/v3/apiClient/errors.d.ts +25 -0
- package/dist/commonjs/v3/apiClient/errors.js +29 -1
- package/dist/commonjs/v3/apiClient/errors.js.map +1 -1
- package/dist/commonjs/v3/apiClient/index.d.ts +54 -2
- package/dist/commonjs/v3/apiClient/index.js +280 -0
- package/dist/commonjs/v3/apiClient/index.js.map +1 -1
- package/dist/commonjs/v3/apiClient/streamBatchItems.test.d.ts +1 -0
- package/dist/commonjs/v3/apiClient/streamBatchItems.test.js +369 -0
- package/dist/commonjs/v3/apiClient/streamBatchItems.test.js.map +1 -0
- package/dist/commonjs/v3/idempotencyKeys.d.ts +5 -0
- package/dist/commonjs/v3/idempotencyKeys.js +10 -1
- package/dist/commonjs/v3/idempotencyKeys.js.map +1 -1
- package/dist/commonjs/v3/schemas/api.d.ts +372 -7
- package/dist/commonjs/v3/schemas/api.js +100 -4
- package/dist/commonjs/v3/schemas/api.js.map +1 -1
- package/dist/commonjs/v3/schemas/messages.d.ts +2 -2
- package/dist/commonjs/v3/schemas/runEngine.d.ts +1 -0
- package/dist/commonjs/v3/schemas/runEngine.js +1 -0
- package/dist/commonjs/v3/schemas/runEngine.js.map +1 -1
- package/dist/commonjs/v3/types/tasks.d.ts +53 -4
- package/dist/commonjs/v3/zodSocket.js +1 -1
- package/dist/commonjs/v3/zodSocket.js.map +1 -1
- package/dist/commonjs/version.js +1 -1
- package/dist/esm/v3/apiClient/errors.d.ts +25 -0
- package/dist/esm/v3/apiClient/errors.js +27 -0
- package/dist/esm/v3/apiClient/errors.js.map +1 -1
- package/dist/esm/v3/apiClient/index.d.ts +54 -2
- package/dist/esm/v3/apiClient/index.js +282 -2
- package/dist/esm/v3/apiClient/index.js.map +1 -1
- package/dist/esm/v3/apiClient/streamBatchItems.test.d.ts +1 -0
- package/dist/esm/v3/apiClient/streamBatchItems.test.js +367 -0
- package/dist/esm/v3/apiClient/streamBatchItems.test.js.map +1 -0
- package/dist/esm/v3/idempotencyKeys.d.ts +5 -0
- package/dist/esm/v3/idempotencyKeys.js +9 -1
- package/dist/esm/v3/idempotencyKeys.js.map +1 -1
- package/dist/esm/v3/schemas/api.d.ts +372 -7
- package/dist/esm/v3/schemas/api.js +97 -1
- package/dist/esm/v3/schemas/api.js.map +1 -1
- package/dist/esm/v3/schemas/messages.d.ts +2 -2
- package/dist/esm/v3/schemas/runEngine.d.ts +1 -0
- package/dist/esm/v3/schemas/runEngine.js +1 -0
- package/dist/esm/v3/schemas/runEngine.js.map +1 -1
- package/dist/esm/v3/types/tasks.d.ts +53 -4
- package/dist/esm/v3/zodSocket.js +1 -1
- package/dist/esm/v3/zodSocket.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/package.json +1 -1
|
@@ -795,6 +795,19 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
795
795
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
796
796
|
bulkActionId: z.ZodOptional<z.ZodString>;
|
|
797
797
|
region: z.ZodOptional<z.ZodString>;
|
|
798
|
+
debounce: z.ZodOptional<z.ZodObject<{
|
|
799
|
+
key: z.ZodString;
|
|
800
|
+
delay: z.ZodString;
|
|
801
|
+
mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
|
|
802
|
+
}, "strip", z.ZodTypeAny, {
|
|
803
|
+
key: string;
|
|
804
|
+
delay: string;
|
|
805
|
+
mode?: "leading" | "trailing" | undefined;
|
|
806
|
+
}, {
|
|
807
|
+
key: string;
|
|
808
|
+
delay: string;
|
|
809
|
+
mode?: "leading" | "trailing" | undefined;
|
|
810
|
+
}>>;
|
|
798
811
|
}, "strip", z.ZodTypeAny, {
|
|
799
812
|
metadata?: any;
|
|
800
813
|
payloadType?: string | undefined;
|
|
@@ -813,6 +826,11 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
813
826
|
idempotencyKeyTTL?: string | undefined;
|
|
814
827
|
concurrencyKey?: string | undefined;
|
|
815
828
|
ttl?: string | number | undefined;
|
|
829
|
+
debounce?: {
|
|
830
|
+
key: string;
|
|
831
|
+
delay: string;
|
|
832
|
+
mode?: "leading" | "trailing" | undefined;
|
|
833
|
+
} | undefined;
|
|
816
834
|
dependentAttempt?: string | undefined;
|
|
817
835
|
parentAttempt?: string | undefined;
|
|
818
836
|
dependentBatch?: string | undefined;
|
|
@@ -841,6 +859,11 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
841
859
|
idempotencyKeyTTL?: string | undefined;
|
|
842
860
|
concurrencyKey?: string | undefined;
|
|
843
861
|
ttl?: string | number | undefined;
|
|
862
|
+
debounce?: {
|
|
863
|
+
key: string;
|
|
864
|
+
delay: string;
|
|
865
|
+
mode?: "leading" | "trailing" | undefined;
|
|
866
|
+
} | undefined;
|
|
844
867
|
dependentAttempt?: string | undefined;
|
|
845
868
|
parentAttempt?: string | undefined;
|
|
846
869
|
dependentBatch?: string | undefined;
|
|
@@ -871,6 +894,11 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
871
894
|
idempotencyKeyTTL?: string | undefined;
|
|
872
895
|
concurrencyKey?: string | undefined;
|
|
873
896
|
ttl?: string | number | undefined;
|
|
897
|
+
debounce?: {
|
|
898
|
+
key: string;
|
|
899
|
+
delay: string;
|
|
900
|
+
mode?: "leading" | "trailing" | undefined;
|
|
901
|
+
} | undefined;
|
|
874
902
|
dependentAttempt?: string | undefined;
|
|
875
903
|
parentAttempt?: string | undefined;
|
|
876
904
|
dependentBatch?: string | undefined;
|
|
@@ -903,6 +931,11 @@ export declare const TriggerTaskRequestBody: z.ZodObject<{
|
|
|
903
931
|
idempotencyKeyTTL?: string | undefined;
|
|
904
932
|
concurrencyKey?: string | undefined;
|
|
905
933
|
ttl?: string | number | undefined;
|
|
934
|
+
debounce?: {
|
|
935
|
+
key: string;
|
|
936
|
+
delay: string;
|
|
937
|
+
mode?: "leading" | "trailing" | undefined;
|
|
938
|
+
} | undefined;
|
|
906
939
|
dependentAttempt?: string | undefined;
|
|
907
940
|
parentAttempt?: string | undefined;
|
|
908
941
|
dependentBatch?: string | undefined;
|
|
@@ -985,6 +1018,19 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
985
1018
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
986
1019
|
bulkActionId: z.ZodOptional<z.ZodString>;
|
|
987
1020
|
region: z.ZodOptional<z.ZodString>;
|
|
1021
|
+
debounce: z.ZodOptional<z.ZodObject<{
|
|
1022
|
+
key: z.ZodString;
|
|
1023
|
+
delay: z.ZodString;
|
|
1024
|
+
mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
|
|
1025
|
+
}, "strip", z.ZodTypeAny, {
|
|
1026
|
+
key: string;
|
|
1027
|
+
delay: string;
|
|
1028
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1029
|
+
}, {
|
|
1030
|
+
key: string;
|
|
1031
|
+
delay: string;
|
|
1032
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1033
|
+
}>>;
|
|
988
1034
|
}, "strip", z.ZodTypeAny, {
|
|
989
1035
|
metadata?: any;
|
|
990
1036
|
payloadType?: string | undefined;
|
|
@@ -1003,6 +1049,11 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1003
1049
|
idempotencyKeyTTL?: string | undefined;
|
|
1004
1050
|
concurrencyKey?: string | undefined;
|
|
1005
1051
|
ttl?: string | number | undefined;
|
|
1052
|
+
debounce?: {
|
|
1053
|
+
key: string;
|
|
1054
|
+
delay: string;
|
|
1055
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1056
|
+
} | undefined;
|
|
1006
1057
|
dependentAttempt?: string | undefined;
|
|
1007
1058
|
parentAttempt?: string | undefined;
|
|
1008
1059
|
dependentBatch?: string | undefined;
|
|
@@ -1031,6 +1082,11 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1031
1082
|
idempotencyKeyTTL?: string | undefined;
|
|
1032
1083
|
concurrencyKey?: string | undefined;
|
|
1033
1084
|
ttl?: string | number | undefined;
|
|
1085
|
+
debounce?: {
|
|
1086
|
+
key: string;
|
|
1087
|
+
delay: string;
|
|
1088
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1089
|
+
} | undefined;
|
|
1034
1090
|
dependentAttempt?: string | undefined;
|
|
1035
1091
|
parentAttempt?: string | undefined;
|
|
1036
1092
|
dependentBatch?: string | undefined;
|
|
@@ -1061,6 +1117,11 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1061
1117
|
idempotencyKeyTTL?: string | undefined;
|
|
1062
1118
|
concurrencyKey?: string | undefined;
|
|
1063
1119
|
ttl?: string | number | undefined;
|
|
1120
|
+
debounce?: {
|
|
1121
|
+
key: string;
|
|
1122
|
+
delay: string;
|
|
1123
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1124
|
+
} | undefined;
|
|
1064
1125
|
dependentAttempt?: string | undefined;
|
|
1065
1126
|
parentAttempt?: string | undefined;
|
|
1066
1127
|
dependentBatch?: string | undefined;
|
|
@@ -1093,6 +1154,11 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1093
1154
|
idempotencyKeyTTL?: string | undefined;
|
|
1094
1155
|
concurrencyKey?: string | undefined;
|
|
1095
1156
|
ttl?: string | number | undefined;
|
|
1157
|
+
debounce?: {
|
|
1158
|
+
key: string;
|
|
1159
|
+
delay: string;
|
|
1160
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1161
|
+
} | undefined;
|
|
1096
1162
|
dependentAttempt?: string | undefined;
|
|
1097
1163
|
parentAttempt?: string | undefined;
|
|
1098
1164
|
dependentBatch?: string | undefined;
|
|
@@ -1128,6 +1194,11 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1128
1194
|
idempotencyKeyTTL?: string | undefined;
|
|
1129
1195
|
concurrencyKey?: string | undefined;
|
|
1130
1196
|
ttl?: string | number | undefined;
|
|
1197
|
+
debounce?: {
|
|
1198
|
+
key: string;
|
|
1199
|
+
delay: string;
|
|
1200
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1201
|
+
} | undefined;
|
|
1131
1202
|
dependentAttempt?: string | undefined;
|
|
1132
1203
|
parentAttempt?: string | undefined;
|
|
1133
1204
|
dependentBatch?: string | undefined;
|
|
@@ -1163,6 +1234,11 @@ export declare const BatchTriggerTaskRequestBody: z.ZodObject<{
|
|
|
1163
1234
|
idempotencyKeyTTL?: string | undefined;
|
|
1164
1235
|
concurrencyKey?: string | undefined;
|
|
1165
1236
|
ttl?: string | number | undefined;
|
|
1237
|
+
debounce?: {
|
|
1238
|
+
key: string;
|
|
1239
|
+
delay: string;
|
|
1240
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1241
|
+
} | undefined;
|
|
1166
1242
|
dependentAttempt?: string | undefined;
|
|
1167
1243
|
parentAttempt?: string | undefined;
|
|
1168
1244
|
dependentBatch?: string | undefined;
|
|
@@ -1209,6 +1285,19 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1209
1285
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1210
1286
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1211
1287
|
region: z.ZodOptional<z.ZodString>;
|
|
1288
|
+
debounce: z.ZodOptional<z.ZodObject<{
|
|
1289
|
+
key: z.ZodString;
|
|
1290
|
+
delay: z.ZodString;
|
|
1291
|
+
mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
|
|
1292
|
+
}, "strip", z.ZodTypeAny, {
|
|
1293
|
+
key: string;
|
|
1294
|
+
delay: string;
|
|
1295
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1296
|
+
}, {
|
|
1297
|
+
key: string;
|
|
1298
|
+
delay: string;
|
|
1299
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1300
|
+
}>>;
|
|
1212
1301
|
}, "strip", z.ZodTypeAny, {
|
|
1213
1302
|
metadata?: any;
|
|
1214
1303
|
payloadType?: string | undefined;
|
|
@@ -1226,6 +1315,11 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1226
1315
|
idempotencyKeyTTL?: string | undefined;
|
|
1227
1316
|
concurrencyKey?: string | undefined;
|
|
1228
1317
|
ttl?: string | number | undefined;
|
|
1318
|
+
debounce?: {
|
|
1319
|
+
key: string;
|
|
1320
|
+
delay: string;
|
|
1321
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1322
|
+
} | undefined;
|
|
1229
1323
|
parentAttempt?: string | undefined;
|
|
1230
1324
|
lockToVersion?: string | undefined;
|
|
1231
1325
|
metadataType?: string | undefined;
|
|
@@ -1247,6 +1341,11 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1247
1341
|
idempotencyKeyTTL?: string | undefined;
|
|
1248
1342
|
concurrencyKey?: string | undefined;
|
|
1249
1343
|
ttl?: string | number | undefined;
|
|
1344
|
+
debounce?: {
|
|
1345
|
+
key: string;
|
|
1346
|
+
delay: string;
|
|
1347
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1348
|
+
} | undefined;
|
|
1250
1349
|
parentAttempt?: string | undefined;
|
|
1251
1350
|
lockToVersion?: string | undefined;
|
|
1252
1351
|
metadataType?: string | undefined;
|
|
@@ -1271,6 +1370,11 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1271
1370
|
idempotencyKeyTTL?: string | undefined;
|
|
1272
1371
|
concurrencyKey?: string | undefined;
|
|
1273
1372
|
ttl?: string | number | undefined;
|
|
1373
|
+
debounce?: {
|
|
1374
|
+
key: string;
|
|
1375
|
+
delay: string;
|
|
1376
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1377
|
+
} | undefined;
|
|
1274
1378
|
parentAttempt?: string | undefined;
|
|
1275
1379
|
lockToVersion?: string | undefined;
|
|
1276
1380
|
metadataType?: string | undefined;
|
|
@@ -1297,6 +1401,11 @@ export declare const BatchTriggerTaskItem: z.ZodObject<{
|
|
|
1297
1401
|
idempotencyKeyTTL?: string | undefined;
|
|
1298
1402
|
concurrencyKey?: string | undefined;
|
|
1299
1403
|
ttl?: string | number | undefined;
|
|
1404
|
+
debounce?: {
|
|
1405
|
+
key: string;
|
|
1406
|
+
delay: string;
|
|
1407
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1408
|
+
} | undefined;
|
|
1300
1409
|
parentAttempt?: string | undefined;
|
|
1301
1410
|
lockToVersion?: string | undefined;
|
|
1302
1411
|
metadataType?: string | undefined;
|
|
@@ -1336,6 +1445,19 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1336
1445
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1337
1446
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1338
1447
|
region: z.ZodOptional<z.ZodString>;
|
|
1448
|
+
debounce: z.ZodOptional<z.ZodObject<{
|
|
1449
|
+
key: z.ZodString;
|
|
1450
|
+
delay: z.ZodString;
|
|
1451
|
+
mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
|
|
1452
|
+
}, "strip", z.ZodTypeAny, {
|
|
1453
|
+
key: string;
|
|
1454
|
+
delay: string;
|
|
1455
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1456
|
+
}, {
|
|
1457
|
+
key: string;
|
|
1458
|
+
delay: string;
|
|
1459
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1460
|
+
}>>;
|
|
1339
1461
|
}, "strip", z.ZodTypeAny, {
|
|
1340
1462
|
metadata?: any;
|
|
1341
1463
|
payloadType?: string | undefined;
|
|
@@ -1353,6 +1475,11 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1353
1475
|
idempotencyKeyTTL?: string | undefined;
|
|
1354
1476
|
concurrencyKey?: string | undefined;
|
|
1355
1477
|
ttl?: string | number | undefined;
|
|
1478
|
+
debounce?: {
|
|
1479
|
+
key: string;
|
|
1480
|
+
delay: string;
|
|
1481
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1482
|
+
} | undefined;
|
|
1356
1483
|
parentAttempt?: string | undefined;
|
|
1357
1484
|
lockToVersion?: string | undefined;
|
|
1358
1485
|
metadataType?: string | undefined;
|
|
@@ -1374,6 +1501,11 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1374
1501
|
idempotencyKeyTTL?: string | undefined;
|
|
1375
1502
|
concurrencyKey?: string | undefined;
|
|
1376
1503
|
ttl?: string | number | undefined;
|
|
1504
|
+
debounce?: {
|
|
1505
|
+
key: string;
|
|
1506
|
+
delay: string;
|
|
1507
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1508
|
+
} | undefined;
|
|
1377
1509
|
parentAttempt?: string | undefined;
|
|
1378
1510
|
lockToVersion?: string | undefined;
|
|
1379
1511
|
metadataType?: string | undefined;
|
|
@@ -1398,6 +1530,11 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1398
1530
|
idempotencyKeyTTL?: string | undefined;
|
|
1399
1531
|
concurrencyKey?: string | undefined;
|
|
1400
1532
|
ttl?: string | number | undefined;
|
|
1533
|
+
debounce?: {
|
|
1534
|
+
key: string;
|
|
1535
|
+
delay: string;
|
|
1536
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1537
|
+
} | undefined;
|
|
1401
1538
|
parentAttempt?: string | undefined;
|
|
1402
1539
|
lockToVersion?: string | undefined;
|
|
1403
1540
|
metadataType?: string | undefined;
|
|
@@ -1424,6 +1561,11 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1424
1561
|
idempotencyKeyTTL?: string | undefined;
|
|
1425
1562
|
concurrencyKey?: string | undefined;
|
|
1426
1563
|
ttl?: string | number | undefined;
|
|
1564
|
+
debounce?: {
|
|
1565
|
+
key: string;
|
|
1566
|
+
delay: string;
|
|
1567
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1568
|
+
} | undefined;
|
|
1427
1569
|
parentAttempt?: string | undefined;
|
|
1428
1570
|
lockToVersion?: string | undefined;
|
|
1429
1571
|
metadataType?: string | undefined;
|
|
@@ -1464,6 +1606,11 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1464
1606
|
idempotencyKeyTTL?: string | undefined;
|
|
1465
1607
|
concurrencyKey?: string | undefined;
|
|
1466
1608
|
ttl?: string | number | undefined;
|
|
1609
|
+
debounce?: {
|
|
1610
|
+
key: string;
|
|
1611
|
+
delay: string;
|
|
1612
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1613
|
+
} | undefined;
|
|
1467
1614
|
parentAttempt?: string | undefined;
|
|
1468
1615
|
lockToVersion?: string | undefined;
|
|
1469
1616
|
metadataType?: string | undefined;
|
|
@@ -1495,6 +1642,11 @@ export declare const BatchTriggerTaskV2RequestBody: z.ZodObject<{
|
|
|
1495
1642
|
idempotencyKeyTTL?: string | undefined;
|
|
1496
1643
|
concurrencyKey?: string | undefined;
|
|
1497
1644
|
ttl?: string | number | undefined;
|
|
1645
|
+
debounce?: {
|
|
1646
|
+
key: string;
|
|
1647
|
+
delay: string;
|
|
1648
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1649
|
+
} | undefined;
|
|
1498
1650
|
parentAttempt?: string | undefined;
|
|
1499
1651
|
lockToVersion?: string | undefined;
|
|
1500
1652
|
metadataType?: string | undefined;
|
|
@@ -1580,6 +1732,19 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1580
1732
|
ttl: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
|
|
1581
1733
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
1582
1734
|
region: z.ZodOptional<z.ZodString>;
|
|
1735
|
+
debounce: z.ZodOptional<z.ZodObject<{
|
|
1736
|
+
key: z.ZodString;
|
|
1737
|
+
delay: z.ZodString;
|
|
1738
|
+
mode: z.ZodOptional<z.ZodEnum<["leading", "trailing"]>>;
|
|
1739
|
+
}, "strip", z.ZodTypeAny, {
|
|
1740
|
+
key: string;
|
|
1741
|
+
delay: string;
|
|
1742
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1743
|
+
}, {
|
|
1744
|
+
key: string;
|
|
1745
|
+
delay: string;
|
|
1746
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1747
|
+
}>>;
|
|
1583
1748
|
}, "strip", z.ZodTypeAny, {
|
|
1584
1749
|
metadata?: any;
|
|
1585
1750
|
payloadType?: string | undefined;
|
|
@@ -1597,6 +1762,11 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1597
1762
|
idempotencyKeyTTL?: string | undefined;
|
|
1598
1763
|
concurrencyKey?: string | undefined;
|
|
1599
1764
|
ttl?: string | number | undefined;
|
|
1765
|
+
debounce?: {
|
|
1766
|
+
key: string;
|
|
1767
|
+
delay: string;
|
|
1768
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1769
|
+
} | undefined;
|
|
1600
1770
|
parentAttempt?: string | undefined;
|
|
1601
1771
|
lockToVersion?: string | undefined;
|
|
1602
1772
|
metadataType?: string | undefined;
|
|
@@ -1618,6 +1788,11 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1618
1788
|
idempotencyKeyTTL?: string | undefined;
|
|
1619
1789
|
concurrencyKey?: string | undefined;
|
|
1620
1790
|
ttl?: string | number | undefined;
|
|
1791
|
+
debounce?: {
|
|
1792
|
+
key: string;
|
|
1793
|
+
delay: string;
|
|
1794
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1795
|
+
} | undefined;
|
|
1621
1796
|
parentAttempt?: string | undefined;
|
|
1622
1797
|
lockToVersion?: string | undefined;
|
|
1623
1798
|
metadataType?: string | undefined;
|
|
@@ -1642,6 +1817,11 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1642
1817
|
idempotencyKeyTTL?: string | undefined;
|
|
1643
1818
|
concurrencyKey?: string | undefined;
|
|
1644
1819
|
ttl?: string | number | undefined;
|
|
1820
|
+
debounce?: {
|
|
1821
|
+
key: string;
|
|
1822
|
+
delay: string;
|
|
1823
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1824
|
+
} | undefined;
|
|
1645
1825
|
parentAttempt?: string | undefined;
|
|
1646
1826
|
lockToVersion?: string | undefined;
|
|
1647
1827
|
metadataType?: string | undefined;
|
|
@@ -1668,6 +1848,11 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1668
1848
|
idempotencyKeyTTL?: string | undefined;
|
|
1669
1849
|
concurrencyKey?: string | undefined;
|
|
1670
1850
|
ttl?: string | number | undefined;
|
|
1851
|
+
debounce?: {
|
|
1852
|
+
key: string;
|
|
1853
|
+
delay: string;
|
|
1854
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1855
|
+
} | undefined;
|
|
1671
1856
|
parentAttempt?: string | undefined;
|
|
1672
1857
|
lockToVersion?: string | undefined;
|
|
1673
1858
|
metadataType?: string | undefined;
|
|
@@ -1706,6 +1891,11 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1706
1891
|
idempotencyKeyTTL?: string | undefined;
|
|
1707
1892
|
concurrencyKey?: string | undefined;
|
|
1708
1893
|
ttl?: string | number | undefined;
|
|
1894
|
+
debounce?: {
|
|
1895
|
+
key: string;
|
|
1896
|
+
delay: string;
|
|
1897
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1898
|
+
} | undefined;
|
|
1709
1899
|
parentAttempt?: string | undefined;
|
|
1710
1900
|
lockToVersion?: string | undefined;
|
|
1711
1901
|
metadataType?: string | undefined;
|
|
@@ -1736,6 +1926,11 @@ export declare const BatchTriggerTaskV3RequestBody: z.ZodObject<{
|
|
|
1736
1926
|
idempotencyKeyTTL?: string | undefined;
|
|
1737
1927
|
concurrencyKey?: string | undefined;
|
|
1738
1928
|
ttl?: string | number | undefined;
|
|
1929
|
+
debounce?: {
|
|
1930
|
+
key: string;
|
|
1931
|
+
delay: string;
|
|
1932
|
+
mode?: "leading" | "trailing" | undefined;
|
|
1933
|
+
} | undefined;
|
|
1739
1934
|
parentAttempt?: string | undefined;
|
|
1740
1935
|
lockToVersion?: string | undefined;
|
|
1741
1936
|
metadataType?: string | undefined;
|
|
@@ -1759,6 +1954,115 @@ export declare const BatchTriggerTaskV3Response: z.ZodObject<{
|
|
|
1759
1954
|
runCount: number;
|
|
1760
1955
|
}>;
|
|
1761
1956
|
export type BatchTriggerTaskV3Response = z.infer<typeof BatchTriggerTaskV3Response>;
|
|
1957
|
+
/**
|
|
1958
|
+
* Phase 1: Create batch request body
|
|
1959
|
+
* Creates the batch record and optionally blocks parent run for batchTriggerAndWait
|
|
1960
|
+
*/
|
|
1961
|
+
export declare const CreateBatchRequestBody: z.ZodObject<{
|
|
1962
|
+
/** Expected number of items in the batch */
|
|
1963
|
+
runCount: z.ZodNumber;
|
|
1964
|
+
/** Parent run ID for batchTriggerAndWait (friendly ID) */
|
|
1965
|
+
parentRunId: z.ZodOptional<z.ZodString>;
|
|
1966
|
+
/** Whether to resume parent on completion (true for batchTriggerAndWait) */
|
|
1967
|
+
resumeParentOnCompletion: z.ZodOptional<z.ZodBoolean>;
|
|
1968
|
+
/** Idempotency key for the batch */
|
|
1969
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1970
|
+
}, "strip", z.ZodTypeAny, {
|
|
1971
|
+
runCount: number;
|
|
1972
|
+
idempotencyKey?: string | undefined;
|
|
1973
|
+
parentRunId?: string | undefined;
|
|
1974
|
+
resumeParentOnCompletion?: boolean | undefined;
|
|
1975
|
+
}, {
|
|
1976
|
+
runCount: number;
|
|
1977
|
+
idempotencyKey?: string | undefined;
|
|
1978
|
+
parentRunId?: string | undefined;
|
|
1979
|
+
resumeParentOnCompletion?: boolean | undefined;
|
|
1980
|
+
}>;
|
|
1981
|
+
export type CreateBatchRequestBody = z.infer<typeof CreateBatchRequestBody>;
|
|
1982
|
+
/**
|
|
1983
|
+
* Phase 1: Create batch response
|
|
1984
|
+
*/
|
|
1985
|
+
export declare const CreateBatchResponse: z.ZodObject<{
|
|
1986
|
+
/** The batch ID (friendly ID) */
|
|
1987
|
+
id: z.ZodString;
|
|
1988
|
+
/** The expected run count */
|
|
1989
|
+
runCount: z.ZodNumber;
|
|
1990
|
+
/** Whether this response came from a cached/idempotent batch */
|
|
1991
|
+
isCached: z.ZodBoolean;
|
|
1992
|
+
/** The idempotency key if provided */
|
|
1993
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
1994
|
+
}, "strip", z.ZodTypeAny, {
|
|
1995
|
+
id: string;
|
|
1996
|
+
isCached: boolean;
|
|
1997
|
+
runCount: number;
|
|
1998
|
+
idempotencyKey?: string | undefined;
|
|
1999
|
+
}, {
|
|
2000
|
+
id: string;
|
|
2001
|
+
isCached: boolean;
|
|
2002
|
+
runCount: number;
|
|
2003
|
+
idempotencyKey?: string | undefined;
|
|
2004
|
+
}>;
|
|
2005
|
+
export type CreateBatchResponse = z.infer<typeof CreateBatchResponse>;
|
|
2006
|
+
/**
|
|
2007
|
+
* Phase 2: Individual item in the NDJSON stream
|
|
2008
|
+
* Each line in the NDJSON body should match this schema
|
|
2009
|
+
*/
|
|
2010
|
+
export declare const BatchItemNDJSON: z.ZodObject<{
|
|
2011
|
+
/** Zero-based index of this item (used for idempotency and ordering) */
|
|
2012
|
+
index: z.ZodNumber;
|
|
2013
|
+
/** The task identifier to trigger */
|
|
2014
|
+
task: z.ZodString;
|
|
2015
|
+
/** The payload for this task run */
|
|
2016
|
+
payload: z.ZodOptional<z.ZodUnknown>;
|
|
2017
|
+
/** Options for this specific item */
|
|
2018
|
+
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2019
|
+
}, "strip", z.ZodTypeAny, {
|
|
2020
|
+
task: string;
|
|
2021
|
+
index: number;
|
|
2022
|
+
options?: Record<string, unknown> | undefined;
|
|
2023
|
+
payload?: unknown;
|
|
2024
|
+
}, {
|
|
2025
|
+
task: string;
|
|
2026
|
+
index: number;
|
|
2027
|
+
options?: Record<string, unknown> | undefined;
|
|
2028
|
+
payload?: unknown;
|
|
2029
|
+
}>;
|
|
2030
|
+
export type BatchItemNDJSON = z.infer<typeof BatchItemNDJSON>;
|
|
2031
|
+
/**
|
|
2032
|
+
* Phase 2: Stream items response
|
|
2033
|
+
* Returned after the NDJSON stream completes
|
|
2034
|
+
*/
|
|
2035
|
+
export declare const StreamBatchItemsResponse: z.ZodObject<{
|
|
2036
|
+
/** The batch ID */
|
|
2037
|
+
id: z.ZodString;
|
|
2038
|
+
/** Number of items successfully accepted */
|
|
2039
|
+
itemsAccepted: z.ZodNumber;
|
|
2040
|
+
/** Number of items that were deduplicated (already enqueued) */
|
|
2041
|
+
itemsDeduplicated: z.ZodNumber;
|
|
2042
|
+
/** Whether the batch was sealed and is ready for processing.
|
|
2043
|
+
* If false, the batch needs more items before processing can start.
|
|
2044
|
+
* Clients should check this field and retry with missing items if needed. */
|
|
2045
|
+
sealed: z.ZodBoolean;
|
|
2046
|
+
/** Total items currently enqueued (only present when sealed=false to help with retries) */
|
|
2047
|
+
enqueuedCount: z.ZodOptional<z.ZodNumber>;
|
|
2048
|
+
/** Expected total item count (only present when sealed=false to help with retries) */
|
|
2049
|
+
expectedCount: z.ZodOptional<z.ZodNumber>;
|
|
2050
|
+
}, "strip", z.ZodTypeAny, {
|
|
2051
|
+
id: string;
|
|
2052
|
+
itemsAccepted: number;
|
|
2053
|
+
itemsDeduplicated: number;
|
|
2054
|
+
sealed: boolean;
|
|
2055
|
+
enqueuedCount?: number | undefined;
|
|
2056
|
+
expectedCount?: number | undefined;
|
|
2057
|
+
}, {
|
|
2058
|
+
id: string;
|
|
2059
|
+
itemsAccepted: number;
|
|
2060
|
+
itemsDeduplicated: number;
|
|
2061
|
+
sealed: boolean;
|
|
2062
|
+
enqueuedCount?: number | undefined;
|
|
2063
|
+
expectedCount?: number | undefined;
|
|
2064
|
+
}>;
|
|
2065
|
+
export type StreamBatchItemsResponse = z.infer<typeof StreamBatchItemsResponse>;
|
|
1762
2066
|
export declare const BatchTriggerTaskResponse: z.ZodObject<{
|
|
1763
2067
|
batchId: z.ZodString;
|
|
1764
2068
|
runs: z.ZodArray<z.ZodString, "many">;
|
|
@@ -3558,6 +3862,14 @@ export declare const CanceledRunResponse: z.ZodObject<{
|
|
|
3558
3862
|
id: string;
|
|
3559
3863
|
}>;
|
|
3560
3864
|
export type CanceledRunResponse = z.infer<typeof CanceledRunResponse>;
|
|
3865
|
+
export declare const ResetIdempotencyKeyResponse: z.ZodObject<{
|
|
3866
|
+
id: z.ZodString;
|
|
3867
|
+
}, "strip", z.ZodTypeAny, {
|
|
3868
|
+
id: string;
|
|
3869
|
+
}, {
|
|
3870
|
+
id: string;
|
|
3871
|
+
}>;
|
|
3872
|
+
export type ResetIdempotencyKeyResponse = z.infer<typeof ResetIdempotencyKeyResponse>;
|
|
3561
3873
|
export declare const ScheduleType: z.ZodUnion<[z.ZodLiteral<"DECLARATIVE">, z.ZodLiteral<"IMPERATIVE">]>;
|
|
3562
3874
|
export declare const ScheduledTaskPayload: z.ZodObject<{
|
|
3563
3875
|
/** The schedule id associated with this run (you can have many schedules for the same task).
|
|
@@ -5841,18 +6153,18 @@ export declare const SubscribeRunRawShape: z.ZodObject<{
|
|
|
5841
6153
|
realtimeStreams?: string[] | null | undefined;
|
|
5842
6154
|
}>;
|
|
5843
6155
|
export type SubscribeRunRawShape = z.infer<typeof SubscribeRunRawShape>;
|
|
5844
|
-
export declare const BatchStatus: z.ZodEnum<["PENDING", "COMPLETED"]>;
|
|
6156
|
+
export declare const BatchStatus: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "PARTIAL_FAILED", "ABORTED"]>;
|
|
5845
6157
|
export type BatchStatus = z.infer<typeof BatchStatus>;
|
|
5846
6158
|
export declare const RetrieveBatchResponse: z.ZodObject<{
|
|
5847
6159
|
id: z.ZodString;
|
|
5848
|
-
status: z.ZodEnum<["PENDING", "COMPLETED"]>;
|
|
6160
|
+
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "PARTIAL_FAILED", "ABORTED"]>;
|
|
5849
6161
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
5850
6162
|
createdAt: z.ZodDate;
|
|
5851
6163
|
updatedAt: z.ZodDate;
|
|
5852
6164
|
runCount: z.ZodNumber;
|
|
5853
6165
|
runs: z.ZodArray<z.ZodString, "many">;
|
|
5854
6166
|
}, "strip", z.ZodTypeAny, {
|
|
5855
|
-
status: "COMPLETED" | "PENDING";
|
|
6167
|
+
status: "COMPLETED" | "PENDING" | "PROCESSING" | "PARTIAL_FAILED" | "ABORTED";
|
|
5856
6168
|
id: string;
|
|
5857
6169
|
createdAt: Date;
|
|
5858
6170
|
updatedAt: Date;
|
|
@@ -5860,7 +6172,7 @@ export declare const RetrieveBatchResponse: z.ZodObject<{
|
|
|
5860
6172
|
runCount: number;
|
|
5861
6173
|
idempotencyKey?: string | undefined;
|
|
5862
6174
|
}, {
|
|
5863
|
-
status: "COMPLETED" | "PENDING";
|
|
6175
|
+
status: "COMPLETED" | "PENDING" | "PROCESSING" | "PARTIAL_FAILED" | "ABORTED";
|
|
5864
6176
|
id: string;
|
|
5865
6177
|
createdAt: Date;
|
|
5866
6178
|
updatedAt: Date;
|
|
@@ -5871,27 +6183,80 @@ export declare const RetrieveBatchResponse: z.ZodObject<{
|
|
|
5871
6183
|
export type RetrieveBatchResponse = z.infer<typeof RetrieveBatchResponse>;
|
|
5872
6184
|
export declare const RetrieveBatchV2Response: z.ZodObject<{
|
|
5873
6185
|
id: z.ZodString;
|
|
5874
|
-
status: z.ZodEnum<["PENDING", "COMPLETED"]>;
|
|
6186
|
+
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "PARTIAL_FAILED", "ABORTED"]>;
|
|
5875
6187
|
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
5876
6188
|
createdAt: z.ZodDate;
|
|
5877
6189
|
updatedAt: z.ZodDate;
|
|
5878
6190
|
runCount: z.ZodNumber;
|
|
5879
6191
|
runs: z.ZodArray<z.ZodString, "many">;
|
|
6192
|
+
processing: z.ZodObject<{
|
|
6193
|
+
completedAt: z.ZodOptional<z.ZodDate>;
|
|
6194
|
+
errors: z.ZodArray<z.ZodObject<{
|
|
6195
|
+
index: z.ZodNumber;
|
|
6196
|
+
taskIdentifier: z.ZodString;
|
|
6197
|
+
error: z.ZodString;
|
|
6198
|
+
errorCode: z.ZodOptional<z.ZodString>;
|
|
6199
|
+
}, "strip", z.ZodTypeAny, {
|
|
6200
|
+
error: string;
|
|
6201
|
+
taskIdentifier: string;
|
|
6202
|
+
index: number;
|
|
6203
|
+
errorCode?: string | undefined;
|
|
6204
|
+
}, {
|
|
6205
|
+
error: string;
|
|
6206
|
+
taskIdentifier: string;
|
|
6207
|
+
index: number;
|
|
6208
|
+
errorCode?: string | undefined;
|
|
6209
|
+
}>, "many">;
|
|
6210
|
+
}, "strip", z.ZodTypeAny, {
|
|
6211
|
+
errors: {
|
|
6212
|
+
error: string;
|
|
6213
|
+
taskIdentifier: string;
|
|
6214
|
+
index: number;
|
|
6215
|
+
errorCode?: string | undefined;
|
|
6216
|
+
}[];
|
|
6217
|
+
completedAt?: Date | undefined;
|
|
6218
|
+
}, {
|
|
6219
|
+
errors: {
|
|
6220
|
+
error: string;
|
|
6221
|
+
taskIdentifier: string;
|
|
6222
|
+
index: number;
|
|
6223
|
+
errorCode?: string | undefined;
|
|
6224
|
+
}[];
|
|
6225
|
+
completedAt?: Date | undefined;
|
|
6226
|
+
}>;
|
|
5880
6227
|
}, "strip", z.ZodTypeAny, {
|
|
5881
|
-
status: "COMPLETED" | "PENDING";
|
|
6228
|
+
status: "COMPLETED" | "PENDING" | "PROCESSING" | "PARTIAL_FAILED" | "ABORTED";
|
|
5882
6229
|
id: string;
|
|
5883
6230
|
createdAt: Date;
|
|
5884
6231
|
updatedAt: Date;
|
|
5885
6232
|
runs: string[];
|
|
5886
6233
|
runCount: number;
|
|
6234
|
+
processing: {
|
|
6235
|
+
errors: {
|
|
6236
|
+
error: string;
|
|
6237
|
+
taskIdentifier: string;
|
|
6238
|
+
index: number;
|
|
6239
|
+
errorCode?: string | undefined;
|
|
6240
|
+
}[];
|
|
6241
|
+
completedAt?: Date | undefined;
|
|
6242
|
+
};
|
|
5887
6243
|
idempotencyKey?: string | undefined;
|
|
5888
6244
|
}, {
|
|
5889
|
-
status: "COMPLETED" | "PENDING";
|
|
6245
|
+
status: "COMPLETED" | "PENDING" | "PROCESSING" | "PARTIAL_FAILED" | "ABORTED";
|
|
5890
6246
|
id: string;
|
|
5891
6247
|
createdAt: Date;
|
|
5892
6248
|
updatedAt: Date;
|
|
5893
6249
|
runs: string[];
|
|
5894
6250
|
runCount: number;
|
|
6251
|
+
processing: {
|
|
6252
|
+
errors: {
|
|
6253
|
+
error: string;
|
|
6254
|
+
taskIdentifier: string;
|
|
6255
|
+
index: number;
|
|
6256
|
+
errorCode?: string | undefined;
|
|
6257
|
+
}[];
|
|
6258
|
+
completedAt?: Date | undefined;
|
|
6259
|
+
};
|
|
5895
6260
|
idempotencyKey?: string | undefined;
|
|
5896
6261
|
}>;
|
|
5897
6262
|
export type RetrieveBatchV2Response = z.infer<typeof RetrieveBatchV2Response>;
|