@trigger.dev/core 0.0.0-background-tasks-20230906212613 → 0.0.0-buffer-import-20231031121649

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { z, ZodObject } from 'zod';
1
+ import { z } from 'zod';
2
2
 
3
3
  /**
4
4
  * Represents different log levels.
@@ -194,6 +194,7 @@ declare const TaskSchema: z.ZodObject<{
194
194
  variant?: string | undefined;
195
195
  }>>>;
196
196
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
197
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
197
198
  }, "strip", z.ZodTypeAny, {
198
199
  name: string;
199
200
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -223,6 +224,7 @@ declare const TaskSchema: z.ZodObject<{
223
224
  variant?: string | undefined;
224
225
  } | null | undefined;
225
226
  operation?: string | null | undefined;
227
+ callbackUrl?: string | null | undefined;
226
228
  }, {
227
229
  name: string;
228
230
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -252,6 +254,7 @@ declare const TaskSchema: z.ZodObject<{
252
254
  variant?: string | undefined;
253
255
  } | null | undefined;
254
256
  operation?: string | null | undefined;
257
+ callbackUrl?: string | null | undefined;
255
258
  }>;
256
259
  declare const ServerTaskSchema: z.ZodObject<{
257
260
  error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -304,8 +307,10 @@ declare const ServerTaskSchema: z.ZodObject<{
304
307
  output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
305
308
  parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
306
309
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
310
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
307
311
  idempotencyKey: z.ZodString;
308
312
  attempts: z.ZodNumber;
313
+ forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
309
314
  }, "strip", z.ZodTypeAny, {
310
315
  name: string;
311
316
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -337,6 +342,8 @@ declare const ServerTaskSchema: z.ZodObject<{
337
342
  output?: DeserializedJson | undefined;
338
343
  parentId?: string | null | undefined;
339
344
  operation?: string | null | undefined;
345
+ callbackUrl?: string | null | undefined;
346
+ forceYield?: boolean | null | undefined;
340
347
  }, {
341
348
  name: string;
342
349
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -368,6 +375,8 @@ declare const ServerTaskSchema: z.ZodObject<{
368
375
  output?: DeserializedJson | undefined;
369
376
  parentId?: string | null | undefined;
370
377
  operation?: string | null | undefined;
378
+ callbackUrl?: string | null | undefined;
379
+ forceYield?: boolean | null | undefined;
371
380
  }>;
372
381
  type ServerTask = z.infer<typeof ServerTaskSchema>;
373
382
  declare const CachedTaskSchema: z.ZodObject<{
@@ -901,17 +910,17 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
901
910
  data: z.ZodAny;
902
911
  params: z.ZodAny;
903
912
  auth: z.ZodOptional<z.ZodObject<{
904
- type: z.ZodEnum<["oauth2"]>;
913
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
905
914
  accessToken: z.ZodString;
906
915
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
907
916
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
908
917
  }, "strip", z.ZodTypeAny, {
909
- type: "oauth2";
918
+ type: "oauth2" | "apiKey";
910
919
  accessToken: string;
911
920
  scopes?: string[] | undefined;
912
921
  additionalFields?: Record<string, string> | undefined;
913
922
  }, {
914
- type: "oauth2";
923
+ type: "oauth2" | "apiKey";
915
924
  accessToken: string;
916
925
  scopes?: string[] | undefined;
917
926
  additionalFields?: Record<string, string> | undefined;
@@ -923,7 +932,7 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
923
932
  data?: any;
924
933
  params?: any;
925
934
  auth?: {
926
- type: "oauth2";
935
+ type: "oauth2" | "apiKey";
927
936
  accessToken: string;
928
937
  scopes?: string[] | undefined;
929
938
  additionalFields?: Record<string, string> | undefined;
@@ -935,7 +944,7 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
935
944
  data?: any;
936
945
  params?: any;
937
946
  auth?: {
938
- type: "oauth2";
947
+ type: "oauth2" | "apiKey";
939
948
  accessToken: string;
940
949
  scopes?: string[] | undefined;
941
950
  additionalFields?: Record<string, string> | undefined;
@@ -971,7 +980,7 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
971
980
  "x-ts-http-method": z.ZodString;
972
981
  "x-ts-http-headers": z.ZodEffects<z.ZodString, Record<string, string>, string>;
973
982
  "x-ts-auth": z.ZodEffects<z.ZodOptional<z.ZodString>, {
974
- type: "oauth2";
983
+ type: "oauth2" | "apiKey";
975
984
  accessToken: string;
976
985
  scopes?: string[] | undefined;
977
986
  additionalFields?: Record<string, string> | undefined;
@@ -989,7 +998,7 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
989
998
  "x-ts-data"?: any;
990
999
  "x-ts-params"?: any;
991
1000
  "x-ts-auth"?: {
992
- type: "oauth2";
1001
+ type: "oauth2" | "apiKey";
993
1002
  accessToken: string;
994
1003
  scopes?: string[] | undefined;
995
1004
  additionalFields?: Record<string, string> | undefined;
@@ -1012,76 +1021,112 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
1012
1021
  type HttpSourceRequestHeaders = z.output<typeof HttpSourceRequestHeadersSchema>;
1013
1022
  declare const PongSuccessResponseSchema: z.ZodObject<{
1014
1023
  ok: z.ZodLiteral<true>;
1024
+ triggerVersion: z.ZodOptional<z.ZodString>;
1025
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1015
1026
  }, "strip", z.ZodTypeAny, {
1016
1027
  ok: true;
1028
+ triggerVersion?: string | undefined;
1029
+ triggerSdkVersion?: string | undefined;
1017
1030
  }, {
1018
1031
  ok: true;
1032
+ triggerVersion?: string | undefined;
1033
+ triggerSdkVersion?: string | undefined;
1019
1034
  }>;
1020
1035
  declare const PongErrorResponseSchema: z.ZodObject<{
1021
1036
  ok: z.ZodLiteral<false>;
1022
1037
  error: z.ZodString;
1038
+ triggerVersion: z.ZodOptional<z.ZodString>;
1039
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1023
1040
  }, "strip", z.ZodTypeAny, {
1024
1041
  error: string;
1025
1042
  ok: false;
1043
+ triggerVersion?: string | undefined;
1044
+ triggerSdkVersion?: string | undefined;
1026
1045
  }, {
1027
1046
  error: string;
1028
1047
  ok: false;
1048
+ triggerVersion?: string | undefined;
1049
+ triggerSdkVersion?: string | undefined;
1029
1050
  }>;
1030
1051
  declare const PongResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1031
1052
  ok: z.ZodLiteral<true>;
1053
+ triggerVersion: z.ZodOptional<z.ZodString>;
1054
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1032
1055
  }, "strip", z.ZodTypeAny, {
1033
1056
  ok: true;
1057
+ triggerVersion?: string | undefined;
1058
+ triggerSdkVersion?: string | undefined;
1034
1059
  }, {
1035
1060
  ok: true;
1061
+ triggerVersion?: string | undefined;
1062
+ triggerSdkVersion?: string | undefined;
1036
1063
  }>, z.ZodObject<{
1037
1064
  ok: z.ZodLiteral<false>;
1038
1065
  error: z.ZodString;
1066
+ triggerVersion: z.ZodOptional<z.ZodString>;
1067
+ triggerSdkVersion: z.ZodOptional<z.ZodString>;
1039
1068
  }, "strip", z.ZodTypeAny, {
1040
1069
  error: string;
1041
1070
  ok: false;
1071
+ triggerVersion?: string | undefined;
1072
+ triggerSdkVersion?: string | undefined;
1042
1073
  }, {
1043
1074
  error: string;
1044
1075
  ok: false;
1076
+ triggerVersion?: string | undefined;
1077
+ triggerSdkVersion?: string | undefined;
1045
1078
  }>]>;
1046
1079
  type PongResponse = z.infer<typeof PongResponseSchema>;
1047
1080
  declare const ValidateSuccessResponseSchema: z.ZodObject<{
1048
1081
  ok: z.ZodLiteral<true>;
1049
1082
  endpointId: z.ZodString;
1083
+ triggerVersion: z.ZodOptional<z.ZodString>;
1050
1084
  }, "strip", z.ZodTypeAny, {
1051
1085
  ok: true;
1052
1086
  endpointId: string;
1087
+ triggerVersion?: string | undefined;
1053
1088
  }, {
1054
1089
  ok: true;
1055
1090
  endpointId: string;
1091
+ triggerVersion?: string | undefined;
1056
1092
  }>;
1057
1093
  declare const ValidateErrorResponseSchema: z.ZodObject<{
1058
1094
  ok: z.ZodLiteral<false>;
1059
1095
  error: z.ZodString;
1096
+ triggerVersion: z.ZodOptional<z.ZodString>;
1060
1097
  }, "strip", z.ZodTypeAny, {
1061
1098
  error: string;
1062
1099
  ok: false;
1100
+ triggerVersion?: string | undefined;
1063
1101
  }, {
1064
1102
  error: string;
1065
1103
  ok: false;
1104
+ triggerVersion?: string | undefined;
1066
1105
  }>;
1067
1106
  declare const ValidateResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1068
1107
  ok: z.ZodLiteral<true>;
1069
1108
  endpointId: z.ZodString;
1109
+ triggerVersion: z.ZodOptional<z.ZodString>;
1070
1110
  }, "strip", z.ZodTypeAny, {
1071
1111
  ok: true;
1072
1112
  endpointId: string;
1113
+ triggerVersion?: string | undefined;
1073
1114
  }, {
1074
1115
  ok: true;
1075
1116
  endpointId: string;
1117
+ triggerVersion?: string | undefined;
1076
1118
  }>, z.ZodObject<{
1077
1119
  ok: z.ZodLiteral<false>;
1078
1120
  error: z.ZodString;
1121
+ triggerVersion: z.ZodOptional<z.ZodString>;
1079
1122
  }, "strip", z.ZodTypeAny, {
1080
1123
  error: string;
1081
1124
  ok: false;
1125
+ triggerVersion?: string | undefined;
1082
1126
  }, {
1083
1127
  error: string;
1084
1128
  ok: false;
1129
+ triggerVersion?: string | undefined;
1085
1130
  }>]>;
1086
1131
  type ValidateResponse = z.infer<typeof ValidateResponseSchema>;
1087
1132
  declare const QueueOptionsSchema: z.ZodObject<{
@@ -1252,18 +1297,21 @@ declare const JobMetadataSchema: z.ZodObject<{
1252
1297
  }, {
1253
1298
  seconds: number;
1254
1299
  }>;
1300
+ accountId: z.ZodOptional<z.ZodString>;
1255
1301
  metadata: z.ZodAny;
1256
1302
  }, "strip", z.ZodTypeAny, {
1257
1303
  options: {
1258
1304
  seconds: number;
1259
1305
  };
1260
1306
  type: "interval";
1307
+ accountId?: string | undefined;
1261
1308
  metadata?: any;
1262
1309
  }, {
1263
1310
  options: {
1264
1311
  seconds: number;
1265
1312
  };
1266
1313
  type: "interval";
1314
+ accountId?: string | undefined;
1267
1315
  metadata?: any;
1268
1316
  }>, z.ZodObject<{
1269
1317
  type: z.ZodLiteral<"cron">;
@@ -1274,18 +1322,21 @@ declare const JobMetadataSchema: z.ZodObject<{
1274
1322
  }, {
1275
1323
  cron: string;
1276
1324
  }>;
1325
+ accountId: z.ZodOptional<z.ZodString>;
1277
1326
  metadata: z.ZodAny;
1278
1327
  }, "strip", z.ZodTypeAny, {
1279
1328
  options: {
1280
1329
  cron: string;
1281
1330
  };
1282
1331
  type: "cron";
1332
+ accountId?: string | undefined;
1283
1333
  metadata?: any;
1284
1334
  }, {
1285
1335
  options: {
1286
1336
  cron: string;
1287
1337
  };
1288
1338
  type: "cron";
1339
+ accountId?: string | undefined;
1289
1340
  metadata?: any;
1290
1341
  }>]>;
1291
1342
  }, "strip", z.ZodTypeAny, {
@@ -1295,12 +1346,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1295
1346
  cron: string;
1296
1347
  };
1297
1348
  type: "cron";
1349
+ accountId?: string | undefined;
1298
1350
  metadata?: any;
1299
1351
  } | {
1300
1352
  options: {
1301
1353
  seconds: number;
1302
1354
  };
1303
1355
  type: "interval";
1356
+ accountId?: string | undefined;
1304
1357
  metadata?: any;
1305
1358
  };
1306
1359
  }, {
@@ -1310,12 +1363,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1310
1363
  cron: string;
1311
1364
  };
1312
1365
  type: "cron";
1366
+ accountId?: string | undefined;
1313
1367
  metadata?: any;
1314
1368
  } | {
1315
1369
  options: {
1316
1370
  seconds: number;
1317
1371
  };
1318
1372
  type: "interval";
1373
+ accountId?: string | undefined;
1319
1374
  metadata?: any;
1320
1375
  };
1321
1376
  }>]>;
@@ -1334,7 +1389,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1334
1389
  id: string;
1335
1390
  instructions?: string | undefined;
1336
1391
  }>;
1337
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1392
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1338
1393
  }, "strip", z.ZodTypeAny, {
1339
1394
  id: string;
1340
1395
  metadata: {
@@ -1342,7 +1397,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1342
1397
  id: string;
1343
1398
  instructions?: string | undefined;
1344
1399
  };
1345
- authSource: "HOSTED" | "LOCAL";
1400
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1346
1401
  }, {
1347
1402
  id: string;
1348
1403
  metadata: {
@@ -1350,7 +1405,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1350
1405
  id: string;
1351
1406
  instructions?: string | undefined;
1352
1407
  };
1353
- authSource: "HOSTED" | "LOCAL";
1408
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1354
1409
  }>>;
1355
1410
  internal: z.ZodDefault<z.ZodBoolean>;
1356
1411
  enabled: z.ZodBoolean;
@@ -1403,12 +1458,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1403
1458
  cron: string;
1404
1459
  };
1405
1460
  type: "cron";
1461
+ accountId?: string | undefined;
1406
1462
  metadata?: any;
1407
1463
  } | {
1408
1464
  options: {
1409
1465
  seconds: number;
1410
1466
  };
1411
1467
  type: "interval";
1468
+ accountId?: string | undefined;
1412
1469
  metadata?: any;
1413
1470
  };
1414
1471
  };
@@ -1419,7 +1476,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1419
1476
  id: string;
1420
1477
  instructions?: string | undefined;
1421
1478
  };
1422
- authSource: "HOSTED" | "LOCAL";
1479
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1423
1480
  }>;
1424
1481
  internal: boolean;
1425
1482
  enabled: boolean;
@@ -1472,12 +1529,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1472
1529
  cron: string;
1473
1530
  };
1474
1531
  type: "cron";
1532
+ accountId?: string | undefined;
1475
1533
  metadata?: any;
1476
1534
  } | {
1477
1535
  options: {
1478
1536
  seconds: number;
1479
1537
  };
1480
1538
  type: "interval";
1539
+ accountId?: string | undefined;
1481
1540
  metadata?: any;
1482
1541
  };
1483
1542
  };
@@ -1488,7 +1547,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1488
1547
  id: string;
1489
1548
  instructions?: string | undefined;
1490
1549
  };
1491
- authSource: "HOSTED" | "LOCAL";
1550
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1492
1551
  }>;
1493
1552
  enabled: boolean;
1494
1553
  startPosition: "initial" | "latest";
@@ -1514,7 +1573,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1514
1573
  id: string;
1515
1574
  instructions?: string | undefined;
1516
1575
  }>;
1517
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1576
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1518
1577
  }, "strip", z.ZodTypeAny, {
1519
1578
  id: string;
1520
1579
  metadata: {
@@ -1522,7 +1581,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1522
1581
  id: string;
1523
1582
  instructions?: string | undefined;
1524
1583
  };
1525
- authSource: "HOSTED" | "LOCAL";
1584
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1526
1585
  }, {
1527
1586
  id: string;
1528
1587
  metadata: {
@@ -1530,7 +1589,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1530
1589
  id: string;
1531
1590
  instructions?: string | undefined;
1532
1591
  };
1533
- authSource: "HOSTED" | "LOCAL";
1592
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1534
1593
  }>;
1535
1594
  key: z.ZodString;
1536
1595
  params: z.ZodAny;
@@ -1557,7 +1616,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1557
1616
  id: string;
1558
1617
  instructions?: string | undefined;
1559
1618
  };
1560
- authSource: "HOSTED" | "LOCAL";
1619
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1561
1620
  };
1562
1621
  params?: any;
1563
1622
  registerSourceJob?: {
@@ -1576,7 +1635,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1576
1635
  id: string;
1577
1636
  instructions?: string | undefined;
1578
1637
  };
1579
- authSource: "HOSTED" | "LOCAL";
1638
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1580
1639
  };
1581
1640
  params?: any;
1582
1641
  registerSourceJob?: {
@@ -1603,7 +1662,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1603
1662
  id: string;
1604
1663
  instructions?: string | undefined;
1605
1664
  }>;
1606
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1665
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1607
1666
  }, "strip", z.ZodTypeAny, {
1608
1667
  id: string;
1609
1668
  metadata: {
@@ -1611,7 +1670,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1611
1670
  id: string;
1612
1671
  instructions?: string | undefined;
1613
1672
  };
1614
- authSource: "HOSTED" | "LOCAL";
1673
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1615
1674
  }, {
1616
1675
  id: string;
1617
1676
  metadata: {
@@ -1619,7 +1678,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1619
1678
  id: string;
1620
1679
  instructions?: string | undefined;
1621
1680
  };
1622
- authSource: "HOSTED" | "LOCAL";
1681
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1623
1682
  }>;
1624
1683
  key: z.ZodString;
1625
1684
  params: z.ZodAny;
@@ -1646,7 +1705,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1646
1705
  id: string;
1647
1706
  instructions?: string | undefined;
1648
1707
  };
1649
- authSource: "HOSTED" | "LOCAL";
1708
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1650
1709
  };
1651
1710
  params?: any;
1652
1711
  registerSourceJob?: {
@@ -1665,7 +1724,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1665
1724
  id: string;
1666
1725
  instructions?: string | undefined;
1667
1726
  };
1668
- authSource: "HOSTED" | "LOCAL";
1727
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1669
1728
  };
1670
1729
  params?: any;
1671
1730
  registerSourceJob?: {
@@ -1833,18 +1892,21 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1833
1892
  }, {
1834
1893
  seconds: number;
1835
1894
  }>;
1895
+ accountId: z.ZodOptional<z.ZodString>;
1836
1896
  metadata: z.ZodAny;
1837
1897
  }, "strip", z.ZodTypeAny, {
1838
1898
  options: {
1839
1899
  seconds: number;
1840
1900
  };
1841
1901
  type: "interval";
1902
+ accountId?: string | undefined;
1842
1903
  metadata?: any;
1843
1904
  }, {
1844
1905
  options: {
1845
1906
  seconds: number;
1846
1907
  };
1847
1908
  type: "interval";
1909
+ accountId?: string | undefined;
1848
1910
  metadata?: any;
1849
1911
  }>, z.ZodObject<{
1850
1912
  type: z.ZodLiteral<"cron">;
@@ -1855,18 +1917,21 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1855
1917
  }, {
1856
1918
  cron: string;
1857
1919
  }>;
1920
+ accountId: z.ZodOptional<z.ZodString>;
1858
1921
  metadata: z.ZodAny;
1859
1922
  }, "strip", z.ZodTypeAny, {
1860
1923
  options: {
1861
1924
  cron: string;
1862
1925
  };
1863
1926
  type: "cron";
1927
+ accountId?: string | undefined;
1864
1928
  metadata?: any;
1865
1929
  }, {
1866
1930
  options: {
1867
1931
  cron: string;
1868
1932
  };
1869
1933
  type: "cron";
1934
+ accountId?: string | undefined;
1870
1935
  metadata?: any;
1871
1936
  }>]>;
1872
1937
  }, "strip", z.ZodTypeAny, {
@@ -1876,12 +1941,14 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1876
1941
  cron: string;
1877
1942
  };
1878
1943
  type: "cron";
1944
+ accountId?: string | undefined;
1879
1945
  metadata?: any;
1880
1946
  } | {
1881
1947
  options: {
1882
1948
  seconds: number;
1883
1949
  };
1884
1950
  type: "interval";
1951
+ accountId?: string | undefined;
1885
1952
  metadata?: any;
1886
1953
  };
1887
1954
  }, {
@@ -1891,12 +1958,14 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1891
1958
  cron: string;
1892
1959
  };
1893
1960
  type: "cron";
1961
+ accountId?: string | undefined;
1894
1962
  metadata?: any;
1895
1963
  } | {
1896
1964
  options: {
1897
1965
  seconds: number;
1898
1966
  };
1899
1967
  type: "interval";
1968
+ accountId?: string | undefined;
1900
1969
  metadata?: any;
1901
1970
  };
1902
1971
  }>]>;
@@ -1915,7 +1984,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1915
1984
  id: string;
1916
1985
  instructions?: string | undefined;
1917
1986
  }>;
1918
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1987
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1919
1988
  }, "strip", z.ZodTypeAny, {
1920
1989
  id: string;
1921
1990
  metadata: {
@@ -1923,7 +1992,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1923
1992
  id: string;
1924
1993
  instructions?: string | undefined;
1925
1994
  };
1926
- authSource: "HOSTED" | "LOCAL";
1995
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1927
1996
  }, {
1928
1997
  id: string;
1929
1998
  metadata: {
@@ -1931,7 +2000,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1931
2000
  id: string;
1932
2001
  instructions?: string | undefined;
1933
2002
  };
1934
- authSource: "HOSTED" | "LOCAL";
2003
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1935
2004
  }>>;
1936
2005
  internal: z.ZodDefault<z.ZodBoolean>;
1937
2006
  enabled: z.ZodBoolean;
@@ -1976,35 +2045,6 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1976
2045
  } | undefined;
1977
2046
  }>;
1978
2047
  type DynamicTriggerEndpointMetadata = z.infer<typeof DynamicTriggerEndpointMetadataSchema>;
1979
- declare const BackgroundTaskMetadataSchema: z.ZodObject<{
1980
- id: z.ZodString;
1981
- name: z.ZodString;
1982
- version: z.ZodString;
1983
- enabled: z.ZodBoolean;
1984
- cpu: z.ZodNumber;
1985
- memory: z.ZodNumber;
1986
- concurrency: z.ZodNumber;
1987
- secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1988
- }, "strip", z.ZodTypeAny, {
1989
- version: string;
1990
- name: string;
1991
- id: string;
1992
- enabled: boolean;
1993
- cpu: number;
1994
- memory: number;
1995
- concurrency: number;
1996
- secrets?: Record<string, string> | undefined;
1997
- }, {
1998
- version: string;
1999
- name: string;
2000
- id: string;
2001
- enabled: boolean;
2002
- cpu: number;
2003
- memory: number;
2004
- concurrency: number;
2005
- secrets?: Record<string, string> | undefined;
2006
- }>;
2007
- type BackgroundTaskMetadata = z.infer<typeof BackgroundTaskMetadataSchema>;
2008
2048
  declare const IndexEndpointResponseSchema: z.ZodObject<{
2009
2049
  jobs: z.ZodArray<z.ZodObject<{
2010
2050
  id: z.ZodString;
@@ -2163,18 +2203,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2163
2203
  }, {
2164
2204
  seconds: number;
2165
2205
  }>;
2206
+ accountId: z.ZodOptional<z.ZodString>;
2166
2207
  metadata: z.ZodAny;
2167
2208
  }, "strip", z.ZodTypeAny, {
2168
2209
  options: {
2169
2210
  seconds: number;
2170
2211
  };
2171
2212
  type: "interval";
2213
+ accountId?: string | undefined;
2172
2214
  metadata?: any;
2173
2215
  }, {
2174
2216
  options: {
2175
2217
  seconds: number;
2176
2218
  };
2177
2219
  type: "interval";
2220
+ accountId?: string | undefined;
2178
2221
  metadata?: any;
2179
2222
  }>, z.ZodObject<{
2180
2223
  type: z.ZodLiteral<"cron">;
@@ -2185,18 +2228,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2185
2228
  }, {
2186
2229
  cron: string;
2187
2230
  }>;
2231
+ accountId: z.ZodOptional<z.ZodString>;
2188
2232
  metadata: z.ZodAny;
2189
2233
  }, "strip", z.ZodTypeAny, {
2190
2234
  options: {
2191
2235
  cron: string;
2192
2236
  };
2193
2237
  type: "cron";
2238
+ accountId?: string | undefined;
2194
2239
  metadata?: any;
2195
2240
  }, {
2196
2241
  options: {
2197
2242
  cron: string;
2198
2243
  };
2199
2244
  type: "cron";
2245
+ accountId?: string | undefined;
2200
2246
  metadata?: any;
2201
2247
  }>]>;
2202
2248
  }, "strip", z.ZodTypeAny, {
@@ -2206,12 +2252,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2206
2252
  cron: string;
2207
2253
  };
2208
2254
  type: "cron";
2255
+ accountId?: string | undefined;
2209
2256
  metadata?: any;
2210
2257
  } | {
2211
2258
  options: {
2212
2259
  seconds: number;
2213
2260
  };
2214
2261
  type: "interval";
2262
+ accountId?: string | undefined;
2215
2263
  metadata?: any;
2216
2264
  };
2217
2265
  }, {
@@ -2221,12 +2269,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2221
2269
  cron: string;
2222
2270
  };
2223
2271
  type: "cron";
2272
+ accountId?: string | undefined;
2224
2273
  metadata?: any;
2225
2274
  } | {
2226
2275
  options: {
2227
2276
  seconds: number;
2228
2277
  };
2229
2278
  type: "interval";
2279
+ accountId?: string | undefined;
2230
2280
  metadata?: any;
2231
2281
  };
2232
2282
  }>]>;
@@ -2245,7 +2295,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2245
2295
  id: string;
2246
2296
  instructions?: string | undefined;
2247
2297
  }>;
2248
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2298
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2249
2299
  }, "strip", z.ZodTypeAny, {
2250
2300
  id: string;
2251
2301
  metadata: {
@@ -2253,7 +2303,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2253
2303
  id: string;
2254
2304
  instructions?: string | undefined;
2255
2305
  };
2256
- authSource: "HOSTED" | "LOCAL";
2306
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2257
2307
  }, {
2258
2308
  id: string;
2259
2309
  metadata: {
@@ -2261,7 +2311,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2261
2311
  id: string;
2262
2312
  instructions?: string | undefined;
2263
2313
  };
2264
- authSource: "HOSTED" | "LOCAL";
2314
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2265
2315
  }>>;
2266
2316
  internal: z.ZodDefault<z.ZodBoolean>;
2267
2317
  enabled: z.ZodBoolean;
@@ -2314,12 +2364,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2314
2364
  cron: string;
2315
2365
  };
2316
2366
  type: "cron";
2367
+ accountId?: string | undefined;
2317
2368
  metadata?: any;
2318
2369
  } | {
2319
2370
  options: {
2320
2371
  seconds: number;
2321
2372
  };
2322
2373
  type: "interval";
2374
+ accountId?: string | undefined;
2323
2375
  metadata?: any;
2324
2376
  };
2325
2377
  };
@@ -2330,7 +2382,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2330
2382
  id: string;
2331
2383
  instructions?: string | undefined;
2332
2384
  };
2333
- authSource: "HOSTED" | "LOCAL";
2385
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2334
2386
  }>;
2335
2387
  internal: boolean;
2336
2388
  enabled: boolean;
@@ -2383,12 +2435,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2383
2435
  cron: string;
2384
2436
  };
2385
2437
  type: "cron";
2438
+ accountId?: string | undefined;
2386
2439
  metadata?: any;
2387
2440
  } | {
2388
2441
  options: {
2389
2442
  seconds: number;
2390
2443
  };
2391
2444
  type: "interval";
2445
+ accountId?: string | undefined;
2392
2446
  metadata?: any;
2393
2447
  };
2394
2448
  };
@@ -2399,7 +2453,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2399
2453
  id: string;
2400
2454
  instructions?: string | undefined;
2401
2455
  };
2402
- authSource: "HOSTED" | "LOCAL";
2456
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2403
2457
  }>;
2404
2458
  enabled: boolean;
2405
2459
  startPosition: "initial" | "latest";
@@ -2424,7 +2478,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2424
2478
  id: string;
2425
2479
  instructions?: string | undefined;
2426
2480
  }>;
2427
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2481
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2428
2482
  }, "strip", z.ZodTypeAny, {
2429
2483
  id: string;
2430
2484
  metadata: {
@@ -2432,7 +2486,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2432
2486
  id: string;
2433
2487
  instructions?: string | undefined;
2434
2488
  };
2435
- authSource: "HOSTED" | "LOCAL";
2489
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2436
2490
  }, {
2437
2491
  id: string;
2438
2492
  metadata: {
@@ -2440,7 +2494,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2440
2494
  id: string;
2441
2495
  instructions?: string | undefined;
2442
2496
  };
2443
- authSource: "HOSTED" | "LOCAL";
2497
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2444
2498
  }>;
2445
2499
  key: z.ZodString;
2446
2500
  params: z.ZodAny;
@@ -2467,7 +2521,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2467
2521
  id: string;
2468
2522
  instructions?: string | undefined;
2469
2523
  };
2470
- authSource: "HOSTED" | "LOCAL";
2524
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2471
2525
  };
2472
2526
  params?: any;
2473
2527
  registerSourceJob?: {
@@ -2486,7 +2540,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2486
2540
  id: string;
2487
2541
  instructions?: string | undefined;
2488
2542
  };
2489
- authSource: "HOSTED" | "LOCAL";
2543
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2490
2544
  };
2491
2545
  params?: any;
2492
2546
  registerSourceJob?: {
@@ -2511,7 +2565,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2511
2565
  id: string;
2512
2566
  instructions?: string | undefined;
2513
2567
  }>;
2514
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2568
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2515
2569
  }, "strip", z.ZodTypeAny, {
2516
2570
  id: string;
2517
2571
  metadata: {
@@ -2519,7 +2573,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2519
2573
  id: string;
2520
2574
  instructions?: string | undefined;
2521
2575
  };
2522
- authSource: "HOSTED" | "LOCAL";
2576
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2523
2577
  }, {
2524
2578
  id: string;
2525
2579
  metadata: {
@@ -2527,7 +2581,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2527
2581
  id: string;
2528
2582
  instructions?: string | undefined;
2529
2583
  };
2530
- authSource: "HOSTED" | "LOCAL";
2584
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2531
2585
  }>;
2532
2586
  key: z.ZodString;
2533
2587
  params: z.ZodAny;
@@ -2554,7 +2608,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2554
2608
  id: string;
2555
2609
  instructions?: string | undefined;
2556
2610
  };
2557
- authSource: "HOSTED" | "LOCAL";
2611
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2558
2612
  };
2559
2613
  params?: any;
2560
2614
  registerSourceJob?: {
@@ -2573,7 +2627,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2573
2627
  id: string;
2574
2628
  instructions?: string | undefined;
2575
2629
  };
2576
- authSource: "HOSTED" | "LOCAL";
2630
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2577
2631
  };
2578
2632
  params?: any;
2579
2633
  registerSourceJob?: {
@@ -2592,7 +2646,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2592
2646
  id: string;
2593
2647
  instructions?: string | undefined;
2594
2648
  };
2595
- authSource: "HOSTED" | "LOCAL";
2649
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2596
2650
  };
2597
2651
  params?: any;
2598
2652
  registerSourceJob?: {
@@ -2611,7 +2665,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2611
2665
  id: string;
2612
2666
  instructions?: string | undefined;
2613
2667
  };
2614
- authSource: "HOSTED" | "LOCAL";
2668
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2615
2669
  };
2616
2670
  params?: any;
2617
2671
  registerSourceJob?: {
@@ -2778,18 +2832,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2778
2832
  }, {
2779
2833
  seconds: number;
2780
2834
  }>;
2835
+ accountId: z.ZodOptional<z.ZodString>;
2781
2836
  metadata: z.ZodAny;
2782
2837
  }, "strip", z.ZodTypeAny, {
2783
2838
  options: {
2784
2839
  seconds: number;
2785
2840
  };
2786
2841
  type: "interval";
2842
+ accountId?: string | undefined;
2787
2843
  metadata?: any;
2788
2844
  }, {
2789
2845
  options: {
2790
2846
  seconds: number;
2791
2847
  };
2792
2848
  type: "interval";
2849
+ accountId?: string | undefined;
2793
2850
  metadata?: any;
2794
2851
  }>, z.ZodObject<{
2795
2852
  type: z.ZodLiteral<"cron">;
@@ -2800,18 +2857,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2800
2857
  }, {
2801
2858
  cron: string;
2802
2859
  }>;
2860
+ accountId: z.ZodOptional<z.ZodString>;
2803
2861
  metadata: z.ZodAny;
2804
2862
  }, "strip", z.ZodTypeAny, {
2805
2863
  options: {
2806
2864
  cron: string;
2807
2865
  };
2808
2866
  type: "cron";
2867
+ accountId?: string | undefined;
2809
2868
  metadata?: any;
2810
2869
  }, {
2811
2870
  options: {
2812
2871
  cron: string;
2813
2872
  };
2814
2873
  type: "cron";
2874
+ accountId?: string | undefined;
2815
2875
  metadata?: any;
2816
2876
  }>]>;
2817
2877
  }, "strip", z.ZodTypeAny, {
@@ -2821,12 +2881,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2821
2881
  cron: string;
2822
2882
  };
2823
2883
  type: "cron";
2884
+ accountId?: string | undefined;
2824
2885
  metadata?: any;
2825
2886
  } | {
2826
2887
  options: {
2827
2888
  seconds: number;
2828
2889
  };
2829
2890
  type: "interval";
2891
+ accountId?: string | undefined;
2830
2892
  metadata?: any;
2831
2893
  };
2832
2894
  }, {
@@ -2836,12 +2898,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2836
2898
  cron: string;
2837
2899
  };
2838
2900
  type: "cron";
2901
+ accountId?: string | undefined;
2839
2902
  metadata?: any;
2840
2903
  } | {
2841
2904
  options: {
2842
2905
  seconds: number;
2843
2906
  };
2844
2907
  type: "interval";
2908
+ accountId?: string | undefined;
2845
2909
  metadata?: any;
2846
2910
  };
2847
2911
  }>]>;
@@ -2860,7 +2924,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2860
2924
  id: string;
2861
2925
  instructions?: string | undefined;
2862
2926
  }>;
2863
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2927
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2864
2928
  }, "strip", z.ZodTypeAny, {
2865
2929
  id: string;
2866
2930
  metadata: {
@@ -2868,7 +2932,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2868
2932
  id: string;
2869
2933
  instructions?: string | undefined;
2870
2934
  };
2871
- authSource: "HOSTED" | "LOCAL";
2935
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2872
2936
  }, {
2873
2937
  id: string;
2874
2938
  metadata: {
@@ -2876,7 +2940,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2876
2940
  id: string;
2877
2941
  instructions?: string | undefined;
2878
2942
  };
2879
- authSource: "HOSTED" | "LOCAL";
2943
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2880
2944
  }>>;
2881
2945
  internal: z.ZodDefault<z.ZodBoolean>;
2882
2946
  enabled: z.ZodBoolean;
@@ -2945,34 +3009,6 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2945
3009
  id: string;
2946
3010
  }[];
2947
3011
  }>, "many">;
2948
- backgroundTasks: z.ZodOptional<z.ZodArray<z.ZodObject<{
2949
- id: z.ZodString;
2950
- name: z.ZodString;
2951
- version: z.ZodString;
2952
- enabled: z.ZodBoolean;
2953
- cpu: z.ZodNumber;
2954
- memory: z.ZodNumber;
2955
- concurrency: z.ZodNumber;
2956
- secrets: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2957
- }, "strip", z.ZodTypeAny, {
2958
- version: string;
2959
- name: string;
2960
- id: string;
2961
- enabled: boolean;
2962
- cpu: number;
2963
- memory: number;
2964
- concurrency: number;
2965
- secrets?: Record<string, string> | undefined;
2966
- }, {
2967
- version: string;
2968
- name: string;
2969
- id: string;
2970
- enabled: boolean;
2971
- cpu: number;
2972
- memory: number;
2973
- concurrency: number;
2974
- secrets?: Record<string, string> | undefined;
2975
- }>, "many">>;
2976
3012
  }, "strip", z.ZodTypeAny, {
2977
3013
  jobs: {
2978
3014
  version: string;
@@ -3021,12 +3057,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3021
3057
  cron: string;
3022
3058
  };
3023
3059
  type: "cron";
3060
+ accountId?: string | undefined;
3024
3061
  metadata?: any;
3025
3062
  } | {
3026
3063
  options: {
3027
3064
  seconds: number;
3028
3065
  };
3029
3066
  type: "interval";
3067
+ accountId?: string | undefined;
3030
3068
  metadata?: any;
3031
3069
  };
3032
3070
  };
@@ -3037,7 +3075,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3037
3075
  id: string;
3038
3076
  instructions?: string | undefined;
3039
3077
  };
3040
- authSource: "HOSTED" | "LOCAL";
3078
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3041
3079
  }>;
3042
3080
  internal: boolean;
3043
3081
  enabled: boolean;
@@ -3056,7 +3094,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3056
3094
  id: string;
3057
3095
  instructions?: string | undefined;
3058
3096
  };
3059
- authSource: "HOSTED" | "LOCAL";
3097
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3060
3098
  };
3061
3099
  params?: any;
3062
3100
  registerSourceJob?: {
@@ -3075,7 +3113,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3075
3113
  id: string;
3076
3114
  instructions?: string | undefined;
3077
3115
  };
3078
- authSource: "HOSTED" | "LOCAL";
3116
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3079
3117
  };
3080
3118
  params?: any;
3081
3119
  registerSourceJob?: {
@@ -3101,16 +3139,6 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3101
3139
  id: string;
3102
3140
  }[];
3103
3141
  }[];
3104
- backgroundTasks?: {
3105
- version: string;
3106
- name: string;
3107
- id: string;
3108
- enabled: boolean;
3109
- cpu: number;
3110
- memory: number;
3111
- concurrency: number;
3112
- secrets?: Record<string, string> | undefined;
3113
- }[] | undefined;
3114
3142
  }, {
3115
3143
  jobs: {
3116
3144
  version: string;
@@ -3159,12 +3187,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3159
3187
  cron: string;
3160
3188
  };
3161
3189
  type: "cron";
3190
+ accountId?: string | undefined;
3162
3191
  metadata?: any;
3163
3192
  } | {
3164
3193
  options: {
3165
3194
  seconds: number;
3166
3195
  };
3167
3196
  type: "interval";
3197
+ accountId?: string | undefined;
3168
3198
  metadata?: any;
3169
3199
  };
3170
3200
  };
@@ -3175,7 +3205,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3175
3205
  id: string;
3176
3206
  instructions?: string | undefined;
3177
3207
  };
3178
- authSource: "HOSTED" | "LOCAL";
3208
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3179
3209
  }>;
3180
3210
  enabled: boolean;
3181
3211
  startPosition: "initial" | "latest";
@@ -3201,18 +3231,139 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3201
3231
  id: string;
3202
3232
  }[];
3203
3233
  }[];
3204
- backgroundTasks?: {
3205
- version: string;
3206
- name: string;
3207
- id: string;
3208
- enabled: boolean;
3209
- cpu: number;
3210
- memory: number;
3211
- concurrency: number;
3212
- secrets?: Record<string, string> | undefined;
3213
- }[] | undefined;
3214
3234
  }>;
3215
3235
  type IndexEndpointResponse = z.infer<typeof IndexEndpointResponseSchema>;
3236
+ declare const EndpointIndexErrorSchema: z.ZodObject<{
3237
+ message: z.ZodString;
3238
+ raw: z.ZodOptional<z.ZodAny>;
3239
+ }, "strip", z.ZodTypeAny, {
3240
+ message: string;
3241
+ raw?: any;
3242
+ }, {
3243
+ message: string;
3244
+ raw?: any;
3245
+ }>;
3246
+ type EndpointIndexError = z.infer<typeof EndpointIndexErrorSchema>;
3247
+ declare const IndexEndpointStatsSchema: z.ZodObject<{
3248
+ jobs: z.ZodNumber;
3249
+ sources: z.ZodNumber;
3250
+ dynamicTriggers: z.ZodNumber;
3251
+ dynamicSchedules: z.ZodNumber;
3252
+ disabledJobs: z.ZodDefault<z.ZodNumber>;
3253
+ }, "strip", z.ZodTypeAny, {
3254
+ jobs: number;
3255
+ sources: number;
3256
+ dynamicTriggers: number;
3257
+ dynamicSchedules: number;
3258
+ disabledJobs: number;
3259
+ }, {
3260
+ jobs: number;
3261
+ sources: number;
3262
+ dynamicTriggers: number;
3263
+ dynamicSchedules: number;
3264
+ disabledJobs?: number | undefined;
3265
+ }>;
3266
+ type IndexEndpointStats = z.infer<typeof IndexEndpointStatsSchema>;
3267
+ declare function parseEndpointIndexStats(stats: unknown): IndexEndpointStats | undefined;
3268
+ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
3269
+ status: z.ZodLiteral<"PENDING">;
3270
+ updatedAt: z.ZodDate;
3271
+ }, "strip", z.ZodTypeAny, {
3272
+ status: "PENDING";
3273
+ updatedAt: Date;
3274
+ }, {
3275
+ status: "PENDING";
3276
+ updatedAt: Date;
3277
+ }>, z.ZodObject<{
3278
+ status: z.ZodLiteral<"STARTED">;
3279
+ updatedAt: z.ZodDate;
3280
+ }, "strip", z.ZodTypeAny, {
3281
+ status: "STARTED";
3282
+ updatedAt: Date;
3283
+ }, {
3284
+ status: "STARTED";
3285
+ updatedAt: Date;
3286
+ }>, z.ZodObject<{
3287
+ status: z.ZodLiteral<"SUCCESS">;
3288
+ stats: z.ZodObject<{
3289
+ jobs: z.ZodNumber;
3290
+ sources: z.ZodNumber;
3291
+ dynamicTriggers: z.ZodNumber;
3292
+ dynamicSchedules: z.ZodNumber;
3293
+ disabledJobs: z.ZodDefault<z.ZodNumber>;
3294
+ }, "strip", z.ZodTypeAny, {
3295
+ jobs: number;
3296
+ sources: number;
3297
+ dynamicTriggers: number;
3298
+ dynamicSchedules: number;
3299
+ disabledJobs: number;
3300
+ }, {
3301
+ jobs: number;
3302
+ sources: number;
3303
+ dynamicTriggers: number;
3304
+ dynamicSchedules: number;
3305
+ disabledJobs?: number | undefined;
3306
+ }>;
3307
+ updatedAt: z.ZodDate;
3308
+ }, "strip", z.ZodTypeAny, {
3309
+ status: "SUCCESS";
3310
+ updatedAt: Date;
3311
+ stats: {
3312
+ jobs: number;
3313
+ sources: number;
3314
+ dynamicTriggers: number;
3315
+ dynamicSchedules: number;
3316
+ disabledJobs: number;
3317
+ };
3318
+ }, {
3319
+ status: "SUCCESS";
3320
+ updatedAt: Date;
3321
+ stats: {
3322
+ jobs: number;
3323
+ sources: number;
3324
+ dynamicTriggers: number;
3325
+ dynamicSchedules: number;
3326
+ disabledJobs?: number | undefined;
3327
+ };
3328
+ }>, z.ZodObject<{
3329
+ status: z.ZodLiteral<"FAILURE">;
3330
+ error: z.ZodObject<{
3331
+ message: z.ZodString;
3332
+ raw: z.ZodOptional<z.ZodAny>;
3333
+ }, "strip", z.ZodTypeAny, {
3334
+ message: string;
3335
+ raw?: any;
3336
+ }, {
3337
+ message: string;
3338
+ raw?: any;
3339
+ }>;
3340
+ updatedAt: z.ZodDate;
3341
+ }, "strip", z.ZodTypeAny, {
3342
+ error: {
3343
+ message: string;
3344
+ raw?: any;
3345
+ };
3346
+ status: "FAILURE";
3347
+ updatedAt: Date;
3348
+ }, {
3349
+ error: {
3350
+ message: string;
3351
+ raw?: any;
3352
+ };
3353
+ status: "FAILURE";
3354
+ updatedAt: Date;
3355
+ }>]>;
3356
+ type GetEndpointIndexResponse = z.infer<typeof GetEndpointIndexResponseSchema>;
3357
+ declare const EndpointHeadersSchema: z.ZodObject<{
3358
+ "trigger-version": z.ZodOptional<z.ZodString>;
3359
+ "trigger-sdk-version": z.ZodOptional<z.ZodString>;
3360
+ }, "strip", z.ZodTypeAny, {
3361
+ "trigger-version"?: string | undefined;
3362
+ "trigger-sdk-version"?: string | undefined;
3363
+ }, {
3364
+ "trigger-version"?: string | undefined;
3365
+ "trigger-sdk-version"?: string | undefined;
3366
+ }>;
3216
3367
  declare const RawEventSchema: z.ZodObject<{
3217
3368
  /** The `name` property must exactly match any subscriptions you want to
3218
3369
  trigger. */
@@ -3441,6 +3592,24 @@ declare const RunSourceContextSchema: z.ZodObject<{
3441
3592
  id: string;
3442
3593
  metadata?: any;
3443
3594
  }>;
3595
+ type RunSourceContext = z.infer<typeof RunSourceContextSchema>;
3596
+ declare const AutoYieldConfigSchema: z.ZodObject<{
3597
+ startTaskThreshold: z.ZodNumber;
3598
+ beforeExecuteTaskThreshold: z.ZodNumber;
3599
+ beforeCompleteTaskThreshold: z.ZodNumber;
3600
+ afterCompleteTaskThreshold: z.ZodNumber;
3601
+ }, "strip", z.ZodTypeAny, {
3602
+ startTaskThreshold: number;
3603
+ beforeExecuteTaskThreshold: number;
3604
+ beforeCompleteTaskThreshold: number;
3605
+ afterCompleteTaskThreshold: number;
3606
+ }, {
3607
+ startTaskThreshold: number;
3608
+ beforeExecuteTaskThreshold: number;
3609
+ beforeCompleteTaskThreshold: number;
3610
+ afterCompleteTaskThreshold: number;
3611
+ }>;
3612
+ type AutoYieldConfig = z.infer<typeof AutoYieldConfigSchema>;
3444
3613
  declare const RunJobBodySchema: z.ZodObject<{
3445
3614
  event: z.ZodObject<{
3446
3615
  /** The `id` of the event that was sent.
@@ -3586,22 +3755,42 @@ declare const RunJobBodySchema: z.ZodObject<{
3586
3755
  output?: DeserializedJson | undefined;
3587
3756
  parentId?: string | null | undefined;
3588
3757
  }>, "many">>;
3758
+ cachedTaskCursor: z.ZodOptional<z.ZodString>;
3759
+ noopTasksSet: z.ZodOptional<z.ZodString>;
3589
3760
  connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3590
- type: z.ZodEnum<["oauth2"]>;
3761
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
3591
3762
  accessToken: z.ZodString;
3592
3763
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3593
3764
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3594
3765
  }, "strip", z.ZodTypeAny, {
3595
- type: "oauth2";
3766
+ type: "oauth2" | "apiKey";
3596
3767
  accessToken: string;
3597
3768
  scopes?: string[] | undefined;
3598
3769
  additionalFields?: Record<string, string> | undefined;
3599
3770
  }, {
3600
- type: "oauth2";
3771
+ type: "oauth2" | "apiKey";
3601
3772
  accessToken: string;
3602
3773
  scopes?: string[] | undefined;
3603
3774
  additionalFields?: Record<string, string> | undefined;
3604
3775
  }>>>;
3776
+ yieldedExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3777
+ runChunkExecutionLimit: z.ZodOptional<z.ZodNumber>;
3778
+ autoYieldConfig: z.ZodOptional<z.ZodObject<{
3779
+ startTaskThreshold: z.ZodNumber;
3780
+ beforeExecuteTaskThreshold: z.ZodNumber;
3781
+ beforeCompleteTaskThreshold: z.ZodNumber;
3782
+ afterCompleteTaskThreshold: z.ZodNumber;
3783
+ }, "strip", z.ZodTypeAny, {
3784
+ startTaskThreshold: number;
3785
+ beforeExecuteTaskThreshold: number;
3786
+ beforeCompleteTaskThreshold: number;
3787
+ afterCompleteTaskThreshold: number;
3788
+ }, {
3789
+ startTaskThreshold: number;
3790
+ beforeExecuteTaskThreshold: number;
3791
+ beforeCompleteTaskThreshold: number;
3792
+ afterCompleteTaskThreshold: number;
3793
+ }>>;
3605
3794
  }, "strip", z.ZodTypeAny, {
3606
3795
  event: {
3607
3796
  name: string;
@@ -3653,12 +3842,22 @@ declare const RunJobBodySchema: z.ZodObject<{
3653
3842
  output?: DeserializedJson | undefined;
3654
3843
  parentId?: string | null | undefined;
3655
3844
  }[] | undefined;
3845
+ cachedTaskCursor?: string | undefined;
3846
+ noopTasksSet?: string | undefined;
3656
3847
  connections?: Record<string, {
3657
- type: "oauth2";
3848
+ type: "oauth2" | "apiKey";
3658
3849
  accessToken: string;
3659
3850
  scopes?: string[] | undefined;
3660
3851
  additionalFields?: Record<string, string> | undefined;
3661
3852
  }> | undefined;
3853
+ yieldedExecutions?: string[] | undefined;
3854
+ runChunkExecutionLimit?: number | undefined;
3855
+ autoYieldConfig?: {
3856
+ startTaskThreshold: number;
3857
+ beforeExecuteTaskThreshold: number;
3858
+ beforeCompleteTaskThreshold: number;
3859
+ afterCompleteTaskThreshold: number;
3860
+ } | undefined;
3662
3861
  }, {
3663
3862
  event: {
3664
3863
  name: string;
@@ -3710,12 +3909,22 @@ declare const RunJobBodySchema: z.ZodObject<{
3710
3909
  output?: DeserializedJson | undefined;
3711
3910
  parentId?: string | null | undefined;
3712
3911
  }[] | undefined;
3912
+ cachedTaskCursor?: string | undefined;
3913
+ noopTasksSet?: string | undefined;
3713
3914
  connections?: Record<string, {
3714
- type: "oauth2";
3915
+ type: "oauth2" | "apiKey";
3715
3916
  accessToken: string;
3716
3917
  scopes?: string[] | undefined;
3717
3918
  additionalFields?: Record<string, string> | undefined;
3718
3919
  }> | undefined;
3920
+ yieldedExecutions?: string[] | undefined;
3921
+ runChunkExecutionLimit?: number | undefined;
3922
+ autoYieldConfig?: {
3923
+ startTaskThreshold: number;
3924
+ beforeExecuteTaskThreshold: number;
3925
+ beforeCompleteTaskThreshold: number;
3926
+ afterCompleteTaskThreshold: number;
3927
+ } | undefined;
3719
3928
  }>;
3720
3929
  type RunJobBody = z.infer<typeof RunJobBodySchema>;
3721
3930
  declare const RunJobErrorSchema: z.ZodObject<{
@@ -3784,6 +3993,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3784
3993
  variant?: string | undefined;
3785
3994
  }>>>;
3786
3995
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3996
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3787
3997
  }, "strip", z.ZodTypeAny, {
3788
3998
  name: string;
3789
3999
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -3813,6 +4023,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3813
4023
  variant?: string | undefined;
3814
4024
  } | null | undefined;
3815
4025
  operation?: string | null | undefined;
4026
+ callbackUrl?: string | null | undefined;
3816
4027
  }, {
3817
4028
  name: string;
3818
4029
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -3842,6 +4053,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3842
4053
  variant?: string | undefined;
3843
4054
  } | null | undefined;
3844
4055
  operation?: string | null | undefined;
4056
+ callbackUrl?: string | null | undefined;
3845
4057
  }>>;
3846
4058
  }, "strip", z.ZodTypeAny, {
3847
4059
  error: {
@@ -3879,6 +4091,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3879
4091
  variant?: string | undefined;
3880
4092
  } | null | undefined;
3881
4093
  operation?: string | null | undefined;
4094
+ callbackUrl?: string | null | undefined;
3882
4095
  } | undefined;
3883
4096
  }, {
3884
4097
  error: {
@@ -3916,9 +4129,158 @@ declare const RunJobErrorSchema: z.ZodObject<{
3916
4129
  variant?: string | undefined;
3917
4130
  } | null | undefined;
3918
4131
  operation?: string | null | undefined;
4132
+ callbackUrl?: string | null | undefined;
3919
4133
  } | undefined;
3920
4134
  }>;
3921
4135
  type RunJobError = z.infer<typeof RunJobErrorSchema>;
4136
+ declare const RunJobYieldExecutionErrorSchema: z.ZodObject<{
4137
+ status: z.ZodLiteral<"YIELD_EXECUTION">;
4138
+ key: z.ZodString;
4139
+ }, "strip", z.ZodTypeAny, {
4140
+ key: string;
4141
+ status: "YIELD_EXECUTION";
4142
+ }, {
4143
+ key: string;
4144
+ status: "YIELD_EXECUTION";
4145
+ }>;
4146
+ type RunJobYieldExecutionError = z.infer<typeof RunJobYieldExecutionErrorSchema>;
4147
+ declare const RunJobAutoYieldExecutionErrorSchema: z.ZodObject<{
4148
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION">;
4149
+ location: z.ZodString;
4150
+ timeRemaining: z.ZodNumber;
4151
+ timeElapsed: z.ZodNumber;
4152
+ limit: z.ZodOptional<z.ZodNumber>;
4153
+ }, "strip", z.ZodTypeAny, {
4154
+ status: "AUTO_YIELD_EXECUTION";
4155
+ location: string;
4156
+ timeRemaining: number;
4157
+ timeElapsed: number;
4158
+ limit?: number | undefined;
4159
+ }, {
4160
+ status: "AUTO_YIELD_EXECUTION";
4161
+ location: string;
4162
+ timeRemaining: number;
4163
+ timeElapsed: number;
4164
+ limit?: number | undefined;
4165
+ }>;
4166
+ type RunJobAutoYieldExecutionError = z.infer<typeof RunJobAutoYieldExecutionErrorSchema>;
4167
+ declare const RunJobAutoYieldWithCompletedTaskExecutionErrorSchema: z.ZodObject<{
4168
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK">;
4169
+ id: z.ZodString;
4170
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4171
+ label: z.ZodString;
4172
+ text: z.ZodString;
4173
+ url: z.ZodOptional<z.ZodString>;
4174
+ }, "strip", z.ZodTypeAny, {
4175
+ label: string;
4176
+ text: string;
4177
+ url?: string | undefined;
4178
+ }, {
4179
+ label: string;
4180
+ text: string;
4181
+ url?: string | undefined;
4182
+ }>, "many">>;
4183
+ output: z.ZodAny;
4184
+ data: z.ZodObject<{
4185
+ location: z.ZodString;
4186
+ timeRemaining: z.ZodNumber;
4187
+ timeElapsed: z.ZodNumber;
4188
+ limit: z.ZodOptional<z.ZodNumber>;
4189
+ }, "strip", z.ZodTypeAny, {
4190
+ location: string;
4191
+ timeRemaining: number;
4192
+ timeElapsed: number;
4193
+ limit?: number | undefined;
4194
+ }, {
4195
+ location: string;
4196
+ timeRemaining: number;
4197
+ timeElapsed: number;
4198
+ limit?: number | undefined;
4199
+ }>;
4200
+ }, "strip", z.ZodTypeAny, {
4201
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4202
+ data: {
4203
+ location: string;
4204
+ timeRemaining: number;
4205
+ timeElapsed: number;
4206
+ limit?: number | undefined;
4207
+ };
4208
+ id: string;
4209
+ properties?: {
4210
+ label: string;
4211
+ text: string;
4212
+ url?: string | undefined;
4213
+ }[] | undefined;
4214
+ output?: any;
4215
+ }, {
4216
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4217
+ data: {
4218
+ location: string;
4219
+ timeRemaining: number;
4220
+ timeElapsed: number;
4221
+ limit?: number | undefined;
4222
+ };
4223
+ id: string;
4224
+ properties?: {
4225
+ label: string;
4226
+ text: string;
4227
+ url?: string | undefined;
4228
+ }[] | undefined;
4229
+ output?: any;
4230
+ }>;
4231
+ type RunJobAutoYieldWithCompletedTaskExecutionError = z.infer<typeof RunJobAutoYieldWithCompletedTaskExecutionErrorSchema>;
4232
+ declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
4233
+ status: z.ZodLiteral<"INVALID_PAYLOAD">;
4234
+ errors: z.ZodArray<z.ZodObject<{
4235
+ path: z.ZodArray<z.ZodString, "many">;
4236
+ message: z.ZodString;
4237
+ }, "strip", z.ZodTypeAny, {
4238
+ message: string;
4239
+ path: string[];
4240
+ }, {
4241
+ message: string;
4242
+ path: string[];
4243
+ }>, "many">;
4244
+ }, "strip", z.ZodTypeAny, {
4245
+ status: "INVALID_PAYLOAD";
4246
+ errors: {
4247
+ message: string;
4248
+ path: string[];
4249
+ }[];
4250
+ }, {
4251
+ status: "INVALID_PAYLOAD";
4252
+ errors: {
4253
+ message: string;
4254
+ path: string[];
4255
+ }[];
4256
+ }>;
4257
+ type RunJobInvalidPayloadError = z.infer<typeof RunJobInvalidPayloadErrorSchema>;
4258
+ declare const RunJobUnresolvedAuthErrorSchema: z.ZodObject<{
4259
+ status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
4260
+ issues: z.ZodRecord<z.ZodString, z.ZodObject<{
4261
+ id: z.ZodString;
4262
+ error: z.ZodString;
4263
+ }, "strip", z.ZodTypeAny, {
4264
+ error: string;
4265
+ id: string;
4266
+ }, {
4267
+ error: string;
4268
+ id: string;
4269
+ }>>;
4270
+ }, "strip", z.ZodTypeAny, {
4271
+ status: "UNRESOLVED_AUTH_ERROR";
4272
+ issues: Record<string, {
4273
+ error: string;
4274
+ id: string;
4275
+ }>;
4276
+ }, {
4277
+ status: "UNRESOLVED_AUTH_ERROR";
4278
+ issues: Record<string, {
4279
+ error: string;
4280
+ id: string;
4281
+ }>;
4282
+ }>;
4283
+ type RunJobUnresolvedAuthError = z.infer<typeof RunJobUnresolvedAuthErrorSchema>;
3922
4284
  declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3923
4285
  status: z.ZodLiteral<"RESUME_WITH_TASK">;
3924
4286
  task: z.ZodObject<{
@@ -3972,6 +4334,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3972
4334
  variant?: string | undefined;
3973
4335
  }>>>;
3974
4336
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4337
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3975
4338
  }, "strip", z.ZodTypeAny, {
3976
4339
  name: string;
3977
4340
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4001,6 +4364,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
4001
4364
  variant?: string | undefined;
4002
4365
  } | null | undefined;
4003
4366
  operation?: string | null | undefined;
4367
+ callbackUrl?: string | null | undefined;
4004
4368
  }, {
4005
4369
  name: string;
4006
4370
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4030,6 +4394,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
4030
4394
  variant?: string | undefined;
4031
4395
  } | null | undefined;
4032
4396
  operation?: string | null | undefined;
4397
+ callbackUrl?: string | null | undefined;
4033
4398
  }>;
4034
4399
  }, "strip", z.ZodTypeAny, {
4035
4400
  status: "RESUME_WITH_TASK";
@@ -4062,6 +4427,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
4062
4427
  variant?: string | undefined;
4063
4428
  } | null | undefined;
4064
4429
  operation?: string | null | undefined;
4430
+ callbackUrl?: string | null | undefined;
4065
4431
  };
4066
4432
  }, {
4067
4433
  status: "RESUME_WITH_TASK";
@@ -4094,6 +4460,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
4094
4460
  variant?: string | undefined;
4095
4461
  } | null | undefined;
4096
4462
  operation?: string | null | undefined;
4463
+ callbackUrl?: string | null | undefined;
4097
4464
  };
4098
4465
  }>;
4099
4466
  type RunJobResumeWithTask = z.infer<typeof RunJobResumeWithTaskSchema>;
@@ -4150,6 +4517,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4150
4517
  variant?: string | undefined;
4151
4518
  }>>>;
4152
4519
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4520
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4153
4521
  }, "strip", z.ZodTypeAny, {
4154
4522
  name: string;
4155
4523
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4179,6 +4547,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4179
4547
  variant?: string | undefined;
4180
4548
  } | null | undefined;
4181
4549
  operation?: string | null | undefined;
4550
+ callbackUrl?: string | null | undefined;
4182
4551
  }, {
4183
4552
  name: string;
4184
4553
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4208,6 +4577,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4208
4577
  variant?: string | undefined;
4209
4578
  } | null | undefined;
4210
4579
  operation?: string | null | undefined;
4580
+ callbackUrl?: string | null | undefined;
4211
4581
  }>;
4212
4582
  error: z.ZodObject<{
4213
4583
  message: z.ZodString;
@@ -4259,6 +4629,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4259
4629
  variant?: string | undefined;
4260
4630
  } | null | undefined;
4261
4631
  operation?: string | null | undefined;
4632
+ callbackUrl?: string | null | undefined;
4262
4633
  };
4263
4634
  retryAt: Date;
4264
4635
  }, {
@@ -4297,6 +4668,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4297
4668
  variant?: string | undefined;
4298
4669
  } | null | undefined;
4299
4670
  operation?: string | null | undefined;
4671
+ callbackUrl?: string | null | undefined;
4300
4672
  };
4301
4673
  retryAt: Date;
4302
4674
  }>;
@@ -4354,6 +4726,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4354
4726
  variant?: string | undefined;
4355
4727
  }>>>;
4356
4728
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4729
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4357
4730
  }, "strip", z.ZodTypeAny, {
4358
4731
  name: string;
4359
4732
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4383,6 +4756,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4383
4756
  variant?: string | undefined;
4384
4757
  } | null | undefined;
4385
4758
  operation?: string | null | undefined;
4759
+ callbackUrl?: string | null | undefined;
4386
4760
  }, {
4387
4761
  name: string;
4388
4762
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4412,6 +4786,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4412
4786
  variant?: string | undefined;
4413
4787
  } | null | undefined;
4414
4788
  operation?: string | null | undefined;
4789
+ callbackUrl?: string | null | undefined;
4415
4790
  }>;
4416
4791
  }, "strip", z.ZodTypeAny, {
4417
4792
  status: "CANCELED";
@@ -4444,6 +4819,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4444
4819
  variant?: string | undefined;
4445
4820
  } | null | undefined;
4446
4821
  operation?: string | null | undefined;
4822
+ callbackUrl?: string | null | undefined;
4447
4823
  };
4448
4824
  }, {
4449
4825
  status: "CANCELED";
@@ -4476,6 +4852,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4476
4852
  variant?: string | undefined;
4477
4853
  } | null | undefined;
4478
4854
  operation?: string | null | undefined;
4855
+ callbackUrl?: string | null | undefined;
4479
4856
  };
4480
4857
  }>;
4481
4858
  type RunJobCanceledWithTask = z.infer<typeof RunJobCanceledWithTaskSchema>;
@@ -4491,6 +4868,96 @@ declare const RunJobSuccessSchema: z.ZodObject<{
4491
4868
  }>;
4492
4869
  type RunJobSuccess = z.infer<typeof RunJobSuccessSchema>;
4493
4870
  declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
4871
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION">;
4872
+ location: z.ZodString;
4873
+ timeRemaining: z.ZodNumber;
4874
+ timeElapsed: z.ZodNumber;
4875
+ limit: z.ZodOptional<z.ZodNumber>;
4876
+ }, "strip", z.ZodTypeAny, {
4877
+ status: "AUTO_YIELD_EXECUTION";
4878
+ location: string;
4879
+ timeRemaining: number;
4880
+ timeElapsed: number;
4881
+ limit?: number | undefined;
4882
+ }, {
4883
+ status: "AUTO_YIELD_EXECUTION";
4884
+ location: string;
4885
+ timeRemaining: number;
4886
+ timeElapsed: number;
4887
+ limit?: number | undefined;
4888
+ }>, z.ZodObject<{
4889
+ status: z.ZodLiteral<"AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK">;
4890
+ id: z.ZodString;
4891
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
4892
+ label: z.ZodString;
4893
+ text: z.ZodString;
4894
+ url: z.ZodOptional<z.ZodString>;
4895
+ }, "strip", z.ZodTypeAny, {
4896
+ label: string;
4897
+ text: string;
4898
+ url?: string | undefined;
4899
+ }, {
4900
+ label: string;
4901
+ text: string;
4902
+ url?: string | undefined;
4903
+ }>, "many">>;
4904
+ output: z.ZodAny;
4905
+ data: z.ZodObject<{
4906
+ location: z.ZodString;
4907
+ timeRemaining: z.ZodNumber;
4908
+ timeElapsed: z.ZodNumber;
4909
+ limit: z.ZodOptional<z.ZodNumber>;
4910
+ }, "strip", z.ZodTypeAny, {
4911
+ location: string;
4912
+ timeRemaining: number;
4913
+ timeElapsed: number;
4914
+ limit?: number | undefined;
4915
+ }, {
4916
+ location: string;
4917
+ timeRemaining: number;
4918
+ timeElapsed: number;
4919
+ limit?: number | undefined;
4920
+ }>;
4921
+ }, "strip", z.ZodTypeAny, {
4922
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4923
+ data: {
4924
+ location: string;
4925
+ timeRemaining: number;
4926
+ timeElapsed: number;
4927
+ limit?: number | undefined;
4928
+ };
4929
+ id: string;
4930
+ properties?: {
4931
+ label: string;
4932
+ text: string;
4933
+ url?: string | undefined;
4934
+ }[] | undefined;
4935
+ output?: any;
4936
+ }, {
4937
+ status: "AUTO_YIELD_EXECUTION_WITH_COMPLETED_TASK";
4938
+ data: {
4939
+ location: string;
4940
+ timeRemaining: number;
4941
+ timeElapsed: number;
4942
+ limit?: number | undefined;
4943
+ };
4944
+ id: string;
4945
+ properties?: {
4946
+ label: string;
4947
+ text: string;
4948
+ url?: string | undefined;
4949
+ }[] | undefined;
4950
+ output?: any;
4951
+ }>, z.ZodObject<{
4952
+ status: z.ZodLiteral<"YIELD_EXECUTION">;
4953
+ key: z.ZodString;
4954
+ }, "strip", z.ZodTypeAny, {
4955
+ key: string;
4956
+ status: "YIELD_EXECUTION";
4957
+ }, {
4958
+ key: string;
4959
+ status: "YIELD_EXECUTION";
4960
+ }>, z.ZodObject<{
4494
4961
  status: z.ZodLiteral<"ERROR">;
4495
4962
  error: z.ZodObject<{
4496
4963
  message: z.ZodString;
@@ -4556,6 +5023,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4556
5023
  variant?: string | undefined;
4557
5024
  }>>>;
4558
5025
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5026
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4559
5027
  }, "strip", z.ZodTypeAny, {
4560
5028
  name: string;
4561
5029
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4585,6 +5053,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4585
5053
  variant?: string | undefined;
4586
5054
  } | null | undefined;
4587
5055
  operation?: string | null | undefined;
5056
+ callbackUrl?: string | null | undefined;
4588
5057
  }, {
4589
5058
  name: string;
4590
5059
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4614,6 +5083,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4614
5083
  variant?: string | undefined;
4615
5084
  } | null | undefined;
4616
5085
  operation?: string | null | undefined;
5086
+ callbackUrl?: string | null | undefined;
4617
5087
  }>>;
4618
5088
  }, "strip", z.ZodTypeAny, {
4619
5089
  error: {
@@ -4651,6 +5121,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4651
5121
  variant?: string | undefined;
4652
5122
  } | null | undefined;
4653
5123
  operation?: string | null | undefined;
5124
+ callbackUrl?: string | null | undefined;
4654
5125
  } | undefined;
4655
5126
  }, {
4656
5127
  error: {
@@ -4688,30 +5159,79 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4688
5159
  variant?: string | undefined;
4689
5160
  } | null | undefined;
4690
5161
  operation?: string | null | undefined;
5162
+ callbackUrl?: string | null | undefined;
4691
5163
  } | undefined;
4692
5164
  }>, z.ZodObject<{
4693
- status: z.ZodLiteral<"RESUME_WITH_TASK">;
4694
- task: z.ZodObject<{
5165
+ status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
5166
+ issues: z.ZodRecord<z.ZodString, z.ZodObject<{
4695
5167
  id: z.ZodString;
4696
- name: z.ZodString;
4697
- icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4698
- noop: z.ZodBoolean;
4699
- startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
4700
- completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
4701
- delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
4702
- status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
4703
- description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4704
- properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
4705
- label: z.ZodString;
4706
- text: z.ZodString;
4707
- url: z.ZodOptional<z.ZodString>;
4708
- }, "strip", z.ZodTypeAny, {
4709
- label: string;
4710
- text: string;
4711
- url?: string | undefined;
4712
- }, {
4713
- label: string;
4714
- text: string;
5168
+ error: z.ZodString;
5169
+ }, "strip", z.ZodTypeAny, {
5170
+ error: string;
5171
+ id: string;
5172
+ }, {
5173
+ error: string;
5174
+ id: string;
5175
+ }>>;
5176
+ }, "strip", z.ZodTypeAny, {
5177
+ status: "UNRESOLVED_AUTH_ERROR";
5178
+ issues: Record<string, {
5179
+ error: string;
5180
+ id: string;
5181
+ }>;
5182
+ }, {
5183
+ status: "UNRESOLVED_AUTH_ERROR";
5184
+ issues: Record<string, {
5185
+ error: string;
5186
+ id: string;
5187
+ }>;
5188
+ }>, z.ZodObject<{
5189
+ status: z.ZodLiteral<"INVALID_PAYLOAD">;
5190
+ errors: z.ZodArray<z.ZodObject<{
5191
+ path: z.ZodArray<z.ZodString, "many">;
5192
+ message: z.ZodString;
5193
+ }, "strip", z.ZodTypeAny, {
5194
+ message: string;
5195
+ path: string[];
5196
+ }, {
5197
+ message: string;
5198
+ path: string[];
5199
+ }>, "many">;
5200
+ }, "strip", z.ZodTypeAny, {
5201
+ status: "INVALID_PAYLOAD";
5202
+ errors: {
5203
+ message: string;
5204
+ path: string[];
5205
+ }[];
5206
+ }, {
5207
+ status: "INVALID_PAYLOAD";
5208
+ errors: {
5209
+ message: string;
5210
+ path: string[];
5211
+ }[];
5212
+ }>, z.ZodObject<{
5213
+ status: z.ZodLiteral<"RESUME_WITH_TASK">;
5214
+ task: z.ZodObject<{
5215
+ id: z.ZodString;
5216
+ name: z.ZodString;
5217
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5218
+ noop: z.ZodBoolean;
5219
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
5220
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
5221
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
5222
+ status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
5223
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5224
+ properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
5225
+ label: z.ZodString;
5226
+ text: z.ZodString;
5227
+ url: z.ZodOptional<z.ZodString>;
5228
+ }, "strip", z.ZodTypeAny, {
5229
+ label: string;
5230
+ text: string;
5231
+ url?: string | undefined;
5232
+ }, {
5233
+ label: string;
5234
+ text: string;
4715
5235
  url?: string | undefined;
4716
5236
  }>, "many">>>;
4717
5237
  outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -4742,6 +5262,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4742
5262
  variant?: string | undefined;
4743
5263
  }>>>;
4744
5264
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5265
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4745
5266
  }, "strip", z.ZodTypeAny, {
4746
5267
  name: string;
4747
5268
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4771,6 +5292,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4771
5292
  variant?: string | undefined;
4772
5293
  } | null | undefined;
4773
5294
  operation?: string | null | undefined;
5295
+ callbackUrl?: string | null | undefined;
4774
5296
  }, {
4775
5297
  name: string;
4776
5298
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4800,6 +5322,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4800
5322
  variant?: string | undefined;
4801
5323
  } | null | undefined;
4802
5324
  operation?: string | null | undefined;
5325
+ callbackUrl?: string | null | undefined;
4803
5326
  }>;
4804
5327
  }, "strip", z.ZodTypeAny, {
4805
5328
  status: "RESUME_WITH_TASK";
@@ -4832,6 +5355,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4832
5355
  variant?: string | undefined;
4833
5356
  } | null | undefined;
4834
5357
  operation?: string | null | undefined;
5358
+ callbackUrl?: string | null | undefined;
4835
5359
  };
4836
5360
  }, {
4837
5361
  status: "RESUME_WITH_TASK";
@@ -4864,6 +5388,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4864
5388
  variant?: string | undefined;
4865
5389
  } | null | undefined;
4866
5390
  operation?: string | null | undefined;
5391
+ callbackUrl?: string | null | undefined;
4867
5392
  };
4868
5393
  }>, z.ZodObject<{
4869
5394
  status: z.ZodLiteral<"RETRY_WITH_TASK">;
@@ -4918,6 +5443,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4918
5443
  variant?: string | undefined;
4919
5444
  }>>>;
4920
5445
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5446
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4921
5447
  }, "strip", z.ZodTypeAny, {
4922
5448
  name: string;
4923
5449
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4947,6 +5473,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4947
5473
  variant?: string | undefined;
4948
5474
  } | null | undefined;
4949
5475
  operation?: string | null | undefined;
5476
+ callbackUrl?: string | null | undefined;
4950
5477
  }, {
4951
5478
  name: string;
4952
5479
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4976,6 +5503,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4976
5503
  variant?: string | undefined;
4977
5504
  } | null | undefined;
4978
5505
  operation?: string | null | undefined;
5506
+ callbackUrl?: string | null | undefined;
4979
5507
  }>;
4980
5508
  error: z.ZodObject<{
4981
5509
  message: z.ZodString;
@@ -5027,6 +5555,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5027
5555
  variant?: string | undefined;
5028
5556
  } | null | undefined;
5029
5557
  operation?: string | null | undefined;
5558
+ callbackUrl?: string | null | undefined;
5030
5559
  };
5031
5560
  retryAt: Date;
5032
5561
  }, {
@@ -5065,6 +5594,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5065
5594
  variant?: string | undefined;
5066
5595
  } | null | undefined;
5067
5596
  operation?: string | null | undefined;
5597
+ callbackUrl?: string | null | undefined;
5068
5598
  };
5069
5599
  retryAt: Date;
5070
5600
  }>, z.ZodObject<{
@@ -5120,6 +5650,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5120
5650
  variant?: string | undefined;
5121
5651
  }>>>;
5122
5652
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5653
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5123
5654
  }, "strip", z.ZodTypeAny, {
5124
5655
  name: string;
5125
5656
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5149,6 +5680,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5149
5680
  variant?: string | undefined;
5150
5681
  } | null | undefined;
5151
5682
  operation?: string | null | undefined;
5683
+ callbackUrl?: string | null | undefined;
5152
5684
  }, {
5153
5685
  name: string;
5154
5686
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5178,6 +5710,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5178
5710
  variant?: string | undefined;
5179
5711
  } | null | undefined;
5180
5712
  operation?: string | null | undefined;
5713
+ callbackUrl?: string | null | undefined;
5181
5714
  }>;
5182
5715
  }, "strip", z.ZodTypeAny, {
5183
5716
  status: "CANCELED";
@@ -5210,6 +5743,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5210
5743
  variant?: string | undefined;
5211
5744
  } | null | undefined;
5212
5745
  operation?: string | null | undefined;
5746
+ callbackUrl?: string | null | undefined;
5213
5747
  };
5214
5748
  }, {
5215
5749
  status: "CANCELED";
@@ -5242,6 +5776,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5242
5776
  variant?: string | undefined;
5243
5777
  } | null | undefined;
5244
5778
  operation?: string | null | undefined;
5779
+ callbackUrl?: string | null | undefined;
5245
5780
  };
5246
5781
  }>, z.ZodObject<{
5247
5782
  status: z.ZodLiteral<"SUCCESS">;
@@ -5592,7 +6127,7 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5592
6127
  }>>;
5593
6128
  /** The icon for the Task, it will appear in the logs.
5594
6129
  * You can use the name of a company in lowercase, e.g. "github".
5595
- * Or any icon name that [Font Awesome](https://fontawesome.com/icons) supports. */
6130
+ * Or any icon name that [Tabler Icons](https://tabler-icons.io/) supports. */
5596
6131
  icon: z.ZodOptional<z.ZodString>;
5597
6132
  /** The key for the Task that you want to appear in the logs */
5598
6133
  displayKey: z.ZodOptional<z.ZodString>;
@@ -5625,6 +6160,17 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5625
6160
  style: "normal" | "minimal";
5626
6161
  variant?: string | undefined;
5627
6162
  }>>;
6163
+ /** Allows you to expose a `task.callbackUrl` to use in your tasks. Enabling this feature will cause the task to return the data sent to the callbackUrl instead of the usual async callback result. */
6164
+ callback: z.ZodOptional<z.ZodObject<{
6165
+ enabled: z.ZodOptional<z.ZodBoolean>;
6166
+ timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
6167
+ }, "strip", z.ZodTypeAny, {
6168
+ enabled?: boolean | undefined;
6169
+ timeoutInSeconds?: number | undefined;
6170
+ }, {
6171
+ enabled?: boolean | undefined;
6172
+ timeoutInSeconds?: number | undefined;
6173
+ }>>;
5628
6174
  /** Allows you to link the Integration connection in the logs. This is handled automatically in integrations. */
5629
6175
  connectionKey: z.ZodOptional<z.ZodString>;
5630
6176
  /** An operation you want to perform on the Trigger.dev platform, current only "fetch" is supported. If you wish to `fetch` use [`io.backgroundFetch()`](https://trigger.dev/docs/sdk/io/backgroundfetch) instead. */
@@ -5718,18 +6264,21 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5718
6264
  }, {
5719
6265
  seconds: number;
5720
6266
  }>;
6267
+ accountId: z.ZodOptional<z.ZodString>;
5721
6268
  metadata: z.ZodAny;
5722
6269
  }, "strip", z.ZodTypeAny, {
5723
6270
  options: {
5724
6271
  seconds: number;
5725
6272
  };
5726
6273
  type: "interval";
6274
+ accountId?: string | undefined;
5727
6275
  metadata?: any;
5728
6276
  }, {
5729
6277
  options: {
5730
6278
  seconds: number;
5731
6279
  };
5732
6280
  type: "interval";
6281
+ accountId?: string | undefined;
5733
6282
  metadata?: any;
5734
6283
  }>, z.ZodObject<{
5735
6284
  type: z.ZodLiteral<"cron">;
@@ -5740,18 +6289,21 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5740
6289
  }, {
5741
6290
  cron: string;
5742
6291
  }>;
6292
+ accountId: z.ZodOptional<z.ZodString>;
5743
6293
  metadata: z.ZodAny;
5744
6294
  }, "strip", z.ZodTypeAny, {
5745
6295
  options: {
5746
6296
  cron: string;
5747
6297
  };
5748
6298
  type: "cron";
6299
+ accountId?: string | undefined;
5749
6300
  metadata?: any;
5750
6301
  }, {
5751
6302
  options: {
5752
6303
  cron: string;
5753
6304
  };
5754
6305
  type: "cron";
6306
+ accountId?: string | undefined;
5755
6307
  metadata?: any;
5756
6308
  }>]>;
5757
6309
  }, "strip", z.ZodTypeAny, {
@@ -5761,12 +6313,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5761
6313
  cron: string;
5762
6314
  };
5763
6315
  type: "cron";
6316
+ accountId?: string | undefined;
5764
6317
  metadata?: any;
5765
6318
  } | {
5766
6319
  options: {
5767
6320
  seconds: number;
5768
6321
  };
5769
6322
  type: "interval";
6323
+ accountId?: string | undefined;
5770
6324
  metadata?: any;
5771
6325
  };
5772
6326
  }, {
@@ -5776,12 +6330,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5776
6330
  cron: string;
5777
6331
  };
5778
6332
  type: "cron";
6333
+ accountId?: string | undefined;
5779
6334
  metadata?: any;
5780
6335
  } | {
5781
6336
  options: {
5782
6337
  seconds: number;
5783
6338
  };
5784
6339
  type: "interval";
6340
+ accountId?: string | undefined;
5785
6341
  metadata?: any;
5786
6342
  };
5787
6343
  }>]>>;
@@ -5809,6 +6365,10 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5809
6365
  style: "normal" | "minimal";
5810
6366
  variant?: string | undefined;
5811
6367
  } | undefined;
6368
+ callback?: {
6369
+ enabled?: boolean | undefined;
6370
+ timeoutInSeconds?: number | undefined;
6371
+ } | undefined;
5812
6372
  connectionKey?: string | undefined;
5813
6373
  operation?: "fetch" | undefined;
5814
6374
  redact?: {
@@ -5838,12 +6398,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5838
6398
  cron: string;
5839
6399
  };
5840
6400
  type: "cron";
6401
+ accountId?: string | undefined;
5841
6402
  metadata?: any;
5842
6403
  } | {
5843
6404
  options: {
5844
6405
  seconds: number;
5845
6406
  };
5846
6407
  type: "interval";
6408
+ accountId?: string | undefined;
5847
6409
  metadata?: any;
5848
6410
  };
5849
6411
  } | undefined;
@@ -5870,6 +6432,10 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5870
6432
  style: "normal" | "minimal";
5871
6433
  variant?: string | undefined;
5872
6434
  } | undefined;
6435
+ callback?: {
6436
+ enabled?: boolean | undefined;
6437
+ timeoutInSeconds?: number | undefined;
6438
+ } | undefined;
5873
6439
  connectionKey?: string | undefined;
5874
6440
  operation?: "fetch" | undefined;
5875
6441
  noop?: boolean | undefined;
@@ -5900,12 +6466,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5900
6466
  cron: string;
5901
6467
  };
5902
6468
  type: "cron";
6469
+ accountId?: string | undefined;
5903
6470
  metadata?: any;
5904
6471
  } | {
5905
6472
  options: {
5906
6473
  seconds: number;
5907
6474
  };
5908
6475
  type: "interval";
6476
+ accountId?: string | undefined;
5909
6477
  metadata?: any;
5910
6478
  };
5911
6479
  } | undefined;
@@ -5943,6 +6511,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5943
6511
  url?: string | undefined;
5944
6512
  }>, "many">>;
5945
6513
  operation: z.ZodOptional<z.ZodEnum<["fetch"]>>;
6514
+ displayKey: z.ZodOptional<z.ZodString>;
5946
6515
  trigger: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5947
6516
  type: z.ZodLiteral<"dynamic">;
5948
6517
  id: z.ZodString;
@@ -6023,18 +6592,21 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6023
6592
  }, {
6024
6593
  seconds: number;
6025
6594
  }>;
6595
+ accountId: z.ZodOptional<z.ZodString>;
6026
6596
  metadata: z.ZodAny;
6027
6597
  }, "strip", z.ZodTypeAny, {
6028
6598
  options: {
6029
6599
  seconds: number;
6030
6600
  };
6031
6601
  type: "interval";
6602
+ accountId?: string | undefined;
6032
6603
  metadata?: any;
6033
6604
  }, {
6034
6605
  options: {
6035
6606
  seconds: number;
6036
6607
  };
6037
6608
  type: "interval";
6609
+ accountId?: string | undefined;
6038
6610
  metadata?: any;
6039
6611
  }>, z.ZodObject<{
6040
6612
  type: z.ZodLiteral<"cron">;
@@ -6045,18 +6617,21 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6045
6617
  }, {
6046
6618
  cron: string;
6047
6619
  }>;
6620
+ accountId: z.ZodOptional<z.ZodString>;
6048
6621
  metadata: z.ZodAny;
6049
6622
  }, "strip", z.ZodTypeAny, {
6050
6623
  options: {
6051
6624
  cron: string;
6052
6625
  };
6053
6626
  type: "cron";
6627
+ accountId?: string | undefined;
6054
6628
  metadata?: any;
6055
6629
  }, {
6056
6630
  options: {
6057
6631
  cron: string;
6058
6632
  };
6059
6633
  type: "cron";
6634
+ accountId?: string | undefined;
6060
6635
  metadata?: any;
6061
6636
  }>]>;
6062
6637
  }, "strip", z.ZodTypeAny, {
@@ -6066,12 +6641,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6066
6641
  cron: string;
6067
6642
  };
6068
6643
  type: "cron";
6644
+ accountId?: string | undefined;
6069
6645
  metadata?: any;
6070
6646
  } | {
6071
6647
  options: {
6072
6648
  seconds: number;
6073
6649
  };
6074
6650
  type: "interval";
6651
+ accountId?: string | undefined;
6075
6652
  metadata?: any;
6076
6653
  };
6077
6654
  }, {
@@ -6081,12 +6658,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6081
6658
  cron: string;
6082
6659
  };
6083
6660
  type: "cron";
6661
+ accountId?: string | undefined;
6084
6662
  metadata?: any;
6085
6663
  } | {
6086
6664
  options: {
6087
6665
  seconds: number;
6088
6666
  };
6089
6667
  type: "interval";
6668
+ accountId?: string | undefined;
6090
6669
  metadata?: any;
6091
6670
  };
6092
6671
  }>]>>;
@@ -6114,7 +6693,16 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6114
6693
  maxTimeoutInMs?: number | undefined;
6115
6694
  randomize?: boolean | undefined;
6116
6695
  }>>;
6117
- displayKey: z.ZodOptional<z.ZodString>;
6696
+ callback: z.ZodOptional<z.ZodObject<{
6697
+ enabled: z.ZodOptional<z.ZodBoolean>;
6698
+ timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
6699
+ }, "strip", z.ZodTypeAny, {
6700
+ enabled?: boolean | undefined;
6701
+ timeoutInSeconds?: number | undefined;
6702
+ }, {
6703
+ enabled?: boolean | undefined;
6704
+ timeoutInSeconds?: number | undefined;
6705
+ }>>;
6118
6706
  connectionKey: z.ZodOptional<z.ZodString>;
6119
6707
  redact: z.ZodOptional<z.ZodObject<{
6120
6708
  paths: z.ZodArray<z.ZodString, "many">;
@@ -6143,6 +6731,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6143
6731
  url?: string | undefined;
6144
6732
  }[] | undefined;
6145
6733
  operation?: "fetch" | undefined;
6734
+ displayKey?: string | undefined;
6146
6735
  trigger?: {
6147
6736
  type: "dynamic";
6148
6737
  id: string;
@@ -6167,12 +6756,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6167
6756
  cron: string;
6168
6757
  };
6169
6758
  type: "cron";
6759
+ accountId?: string | undefined;
6170
6760
  metadata?: any;
6171
6761
  } | {
6172
6762
  options: {
6173
6763
  seconds: number;
6174
6764
  };
6175
6765
  type: "interval";
6766
+ accountId?: string | undefined;
6176
6767
  metadata?: any;
6177
6768
  };
6178
6769
  } | undefined;
@@ -6183,7 +6774,10 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6183
6774
  maxTimeoutInMs?: number | undefined;
6184
6775
  randomize?: boolean | undefined;
6185
6776
  } | undefined;
6186
- displayKey?: string | undefined;
6777
+ callback?: {
6778
+ enabled?: boolean | undefined;
6779
+ timeoutInSeconds?: number | undefined;
6780
+ } | undefined;
6187
6781
  connectionKey?: string | undefined;
6188
6782
  redact?: {
6189
6783
  paths: string[];
@@ -6207,6 +6801,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6207
6801
  url?: string | undefined;
6208
6802
  }[] | undefined;
6209
6803
  operation?: "fetch" | undefined;
6804
+ displayKey?: string | undefined;
6210
6805
  trigger?: {
6211
6806
  type: "dynamic";
6212
6807
  id: string;
@@ -6231,12 +6826,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6231
6826
  cron: string;
6232
6827
  };
6233
6828
  type: "cron";
6829
+ accountId?: string | undefined;
6234
6830
  metadata?: any;
6235
6831
  } | {
6236
6832
  options: {
6237
6833
  seconds: number;
6238
6834
  };
6239
6835
  type: "interval";
6836
+ accountId?: string | undefined;
6240
6837
  metadata?: any;
6241
6838
  };
6242
6839
  } | undefined;
@@ -6247,7 +6844,10 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6247
6844
  maxTimeoutInMs?: number | undefined;
6248
6845
  randomize?: boolean | undefined;
6249
6846
  } | undefined;
6250
- displayKey?: string | undefined;
6847
+ callback?: {
6848
+ enabled?: boolean | undefined;
6849
+ timeoutInSeconds?: number | undefined;
6850
+ } | undefined;
6251
6851
  connectionKey?: string | undefined;
6252
6852
  redact?: {
6253
6853
  paths: string[];
@@ -6271,22 +6871,10 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6271
6871
  noop: z.ZodDefault<z.ZodBoolean>;
6272
6872
  delayUntil: z.ZodOptional<z.ZodDate>;
6273
6873
  description: z.ZodOptional<z.ZodString>;
6274
- properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
6275
- label: z.ZodString;
6276
- text: z.ZodString;
6277
- url: z.ZodOptional<z.ZodString>;
6278
- }, "strip", z.ZodTypeAny, {
6279
- label: string;
6280
- text: string;
6281
- url?: string | undefined;
6282
- }, {
6283
- label: string;
6284
- text: string;
6285
- url?: string | undefined;
6286
- }>, "many">>;
6287
6874
  parentId: z.ZodOptional<z.ZodString>;
6288
6875
  operation: z.ZodOptional<z.ZodEnum<["fetch"]>>;
6289
6876
  idempotencyKey: z.ZodString;
6877
+ displayKey: z.ZodOptional<z.ZodString>;
6290
6878
  trigger: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6291
6879
  type: z.ZodLiteral<"dynamic">;
6292
6880
  id: z.ZodString;
@@ -6367,18 +6955,21 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6367
6955
  }, {
6368
6956
  seconds: number;
6369
6957
  }>;
6958
+ accountId: z.ZodOptional<z.ZodString>;
6370
6959
  metadata: z.ZodAny;
6371
6960
  }, "strip", z.ZodTypeAny, {
6372
6961
  options: {
6373
6962
  seconds: number;
6374
6963
  };
6375
6964
  type: "interval";
6965
+ accountId?: string | undefined;
6376
6966
  metadata?: any;
6377
6967
  }, {
6378
6968
  options: {
6379
6969
  seconds: number;
6380
6970
  };
6381
6971
  type: "interval";
6972
+ accountId?: string | undefined;
6382
6973
  metadata?: any;
6383
6974
  }>, z.ZodObject<{
6384
6975
  type: z.ZodLiteral<"cron">;
@@ -6389,18 +6980,21 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6389
6980
  }, {
6390
6981
  cron: string;
6391
6982
  }>;
6983
+ accountId: z.ZodOptional<z.ZodString>;
6392
6984
  metadata: z.ZodAny;
6393
6985
  }, "strip", z.ZodTypeAny, {
6394
6986
  options: {
6395
6987
  cron: string;
6396
6988
  };
6397
6989
  type: "cron";
6990
+ accountId?: string | undefined;
6398
6991
  metadata?: any;
6399
6992
  }, {
6400
6993
  options: {
6401
6994
  cron: string;
6402
6995
  };
6403
6996
  type: "cron";
6997
+ accountId?: string | undefined;
6404
6998
  metadata?: any;
6405
6999
  }>]>;
6406
7000
  }, "strip", z.ZodTypeAny, {
@@ -6410,12 +7004,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6410
7004
  cron: string;
6411
7005
  };
6412
7006
  type: "cron";
7007
+ accountId?: string | undefined;
6413
7008
  metadata?: any;
6414
7009
  } | {
6415
7010
  options: {
6416
7011
  seconds: number;
6417
7012
  };
6418
7013
  type: "interval";
7014
+ accountId?: string | undefined;
6419
7015
  metadata?: any;
6420
7016
  };
6421
7017
  }, {
@@ -6425,12 +7021,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6425
7021
  cron: string;
6426
7022
  };
6427
7023
  type: "cron";
7024
+ accountId?: string | undefined;
6428
7025
  metadata?: any;
6429
7026
  } | {
6430
7027
  options: {
6431
7028
  seconds: number;
6432
7029
  };
6433
7030
  type: "interval";
7031
+ accountId?: string | undefined;
6434
7032
  metadata?: any;
6435
7033
  };
6436
7034
  }>]>>;
@@ -6458,7 +7056,6 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6458
7056
  maxTimeoutInMs?: number | undefined;
6459
7057
  randomize?: boolean | undefined;
6460
7058
  }>>;
6461
- displayKey: z.ZodOptional<z.ZodString>;
6462
7059
  connectionKey: z.ZodOptional<z.ZodString>;
6463
7060
  redact: z.ZodOptional<z.ZodObject<{
6464
7061
  paths: z.ZodArray<z.ZodString, "many">;
@@ -6467,7 +7064,30 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6467
7064
  }, {
6468
7065
  paths: string[];
6469
7066
  }>>;
7067
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
7068
+ label: z.ZodOptional<z.ZodString>;
7069
+ text: z.ZodOptional<z.ZodString>;
7070
+ url: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7071
+ }, "strip", z.ZodTypeAny, {
7072
+ label?: string | undefined;
7073
+ text?: string | undefined;
7074
+ url?: string | undefined;
7075
+ }, {
7076
+ label?: string | undefined;
7077
+ text?: string | undefined;
7078
+ url?: string | undefined;
7079
+ }>, "many">>;
6470
7080
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
7081
+ callback: z.ZodOptional<z.ZodObject<{
7082
+ enabled: z.ZodBoolean;
7083
+ timeoutInSeconds: z.ZodDefault<z.ZodNumber>;
7084
+ }, "strip", z.ZodTypeAny, {
7085
+ enabled: boolean;
7086
+ timeoutInSeconds: number;
7087
+ }, {
7088
+ enabled: boolean;
7089
+ timeoutInSeconds?: number | undefined;
7090
+ }>>;
6471
7091
  }, "strip", z.ZodTypeAny, {
6472
7092
  noop: boolean;
6473
7093
  idempotencyKey: string;
@@ -6479,13 +7099,9 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6479
7099
  icon?: string | undefined;
6480
7100
  delayUntil?: Date | undefined;
6481
7101
  description?: string | undefined;
6482
- properties?: {
6483
- label: string;
6484
- text: string;
6485
- url?: string | undefined;
6486
- }[] | undefined;
6487
7102
  parentId?: string | undefined;
6488
7103
  operation?: "fetch" | undefined;
7104
+ displayKey?: string | undefined;
6489
7105
  trigger?: {
6490
7106
  type: "dynamic";
6491
7107
  id: string;
@@ -6510,12 +7126,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6510
7126
  cron: string;
6511
7127
  };
6512
7128
  type: "cron";
7129
+ accountId?: string | undefined;
6513
7130
  metadata?: any;
6514
7131
  } | {
6515
7132
  options: {
6516
7133
  seconds: number;
6517
7134
  };
6518
7135
  type: "interval";
7136
+ accountId?: string | undefined;
6519
7137
  metadata?: any;
6520
7138
  };
6521
7139
  } | undefined;
@@ -6526,12 +7144,20 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6526
7144
  maxTimeoutInMs?: number | undefined;
6527
7145
  randomize?: boolean | undefined;
6528
7146
  } | undefined;
6529
- displayKey?: string | undefined;
6530
7147
  connectionKey?: string | undefined;
6531
7148
  redact?: {
6532
7149
  paths: string[];
6533
7150
  } | undefined;
7151
+ properties?: {
7152
+ label?: string | undefined;
7153
+ text?: string | undefined;
7154
+ url?: string | undefined;
7155
+ }[] | undefined;
6534
7156
  params?: DeserializedJson | undefined;
7157
+ callback?: {
7158
+ enabled: boolean;
7159
+ timeoutInSeconds: number;
7160
+ } | undefined;
6535
7161
  }, {
6536
7162
  idempotencyKey: string;
6537
7163
  name?: string | undefined;
@@ -6543,13 +7169,9 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6543
7169
  noop?: boolean | undefined;
6544
7170
  delayUntil?: Date | undefined;
6545
7171
  description?: string | undefined;
6546
- properties?: {
6547
- label: string;
6548
- text: string;
6549
- url?: string | undefined;
6550
- }[] | undefined;
6551
7172
  parentId?: string | undefined;
6552
7173
  operation?: "fetch" | undefined;
7174
+ displayKey?: string | undefined;
6553
7175
  trigger?: {
6554
7176
  type: "dynamic";
6555
7177
  id: string;
@@ -6574,12 +7196,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6574
7196
  cron: string;
6575
7197
  };
6576
7198
  type: "cron";
7199
+ accountId?: string | undefined;
6577
7200
  metadata?: any;
6578
7201
  } | {
6579
7202
  options: {
6580
7203
  seconds: number;
6581
7204
  };
6582
7205
  type: "interval";
7206
+ accountId?: string | undefined;
6583
7207
  metadata?: any;
6584
7208
  };
6585
7209
  } | undefined;
@@ -6590,14 +7214,284 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6590
7214
  maxTimeoutInMs?: number | undefined;
6591
7215
  randomize?: boolean | undefined;
6592
7216
  } | undefined;
6593
- displayKey?: string | undefined;
6594
7217
  connectionKey?: string | undefined;
6595
7218
  redact?: {
6596
7219
  paths: string[];
6597
7220
  } | undefined;
6598
- params?: DeserializedJson | undefined;
7221
+ properties?: {
7222
+ label?: string | undefined;
7223
+ text?: string | undefined;
7224
+ url?: string | undefined;
7225
+ }[] | undefined;
7226
+ params?: DeserializedJson | undefined;
7227
+ callback?: {
7228
+ enabled: boolean;
7229
+ timeoutInSeconds?: number | undefined;
7230
+ } | undefined;
7231
+ }>;
7232
+ type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
7233
+ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
7234
+ task: z.ZodObject<{
7235
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7236
+ name: z.ZodString;
7237
+ params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
7238
+ status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
7239
+ id: z.ZodString;
7240
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
7241
+ style: z.ZodEnum<["normal", "minimal"]>;
7242
+ variant: z.ZodOptional<z.ZodString>;
7243
+ }, "strip", z.ZodTypeAny, {
7244
+ style: "normal" | "minimal";
7245
+ variant?: string | undefined;
7246
+ }, {
7247
+ style: "normal" | "minimal";
7248
+ variant?: string | undefined;
7249
+ }>>>;
7250
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7251
+ noop: z.ZodBoolean;
7252
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
7253
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
7254
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
7255
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7256
+ properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
7257
+ label: z.ZodString;
7258
+ text: z.ZodString;
7259
+ url: z.ZodOptional<z.ZodString>;
7260
+ }, "strip", z.ZodTypeAny, {
7261
+ label: string;
7262
+ text: string;
7263
+ url?: string | undefined;
7264
+ }, {
7265
+ label: string;
7266
+ text: string;
7267
+ url?: string | undefined;
7268
+ }>, "many">>>;
7269
+ outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
7270
+ label: z.ZodString;
7271
+ text: z.ZodString;
7272
+ url: z.ZodOptional<z.ZodString>;
7273
+ }, "strip", z.ZodTypeAny, {
7274
+ label: string;
7275
+ text: string;
7276
+ url?: string | undefined;
7277
+ }, {
7278
+ label: string;
7279
+ text: string;
7280
+ url?: string | undefined;
7281
+ }>, "many">>>;
7282
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
7283
+ parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7284
+ operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7285
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7286
+ idempotencyKey: z.ZodString;
7287
+ attempts: z.ZodNumber;
7288
+ forceYield: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
7289
+ }, "strip", z.ZodTypeAny, {
7290
+ name: string;
7291
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7292
+ id: string;
7293
+ noop: boolean;
7294
+ idempotencyKey: string;
7295
+ attempts: number;
7296
+ error?: string | null | undefined;
7297
+ params?: DeserializedJson | undefined;
7298
+ style?: {
7299
+ style: "normal" | "minimal";
7300
+ variant?: string | undefined;
7301
+ } | null | undefined;
7302
+ icon?: string | null | undefined;
7303
+ startedAt?: Date | null | undefined;
7304
+ completedAt?: Date | null | undefined;
7305
+ delayUntil?: Date | null | undefined;
7306
+ description?: string | null | undefined;
7307
+ properties?: {
7308
+ label: string;
7309
+ text: string;
7310
+ url?: string | undefined;
7311
+ }[] | null | undefined;
7312
+ outputProperties?: {
7313
+ label: string;
7314
+ text: string;
7315
+ url?: string | undefined;
7316
+ }[] | null | undefined;
7317
+ output?: DeserializedJson | undefined;
7318
+ parentId?: string | null | undefined;
7319
+ operation?: string | null | undefined;
7320
+ callbackUrl?: string | null | undefined;
7321
+ forceYield?: boolean | null | undefined;
7322
+ }, {
7323
+ name: string;
7324
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7325
+ id: string;
7326
+ noop: boolean;
7327
+ idempotencyKey: string;
7328
+ attempts: number;
7329
+ error?: string | null | undefined;
7330
+ params?: DeserializedJson | undefined;
7331
+ style?: {
7332
+ style: "normal" | "minimal";
7333
+ variant?: string | undefined;
7334
+ } | null | undefined;
7335
+ icon?: string | null | undefined;
7336
+ startedAt?: Date | null | undefined;
7337
+ completedAt?: Date | null | undefined;
7338
+ delayUntil?: Date | null | undefined;
7339
+ description?: string | null | undefined;
7340
+ properties?: {
7341
+ label: string;
7342
+ text: string;
7343
+ url?: string | undefined;
7344
+ }[] | null | undefined;
7345
+ outputProperties?: {
7346
+ label: string;
7347
+ text: string;
7348
+ url?: string | undefined;
7349
+ }[] | null | undefined;
7350
+ output?: DeserializedJson | undefined;
7351
+ parentId?: string | null | undefined;
7352
+ operation?: string | null | undefined;
7353
+ callbackUrl?: string | null | undefined;
7354
+ forceYield?: boolean | null | undefined;
7355
+ }>;
7356
+ cachedTasks: z.ZodOptional<z.ZodObject<{
7357
+ tasks: z.ZodArray<z.ZodObject<{
7358
+ id: z.ZodString;
7359
+ idempotencyKey: z.ZodString;
7360
+ status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
7361
+ noop: z.ZodDefault<z.ZodBoolean>;
7362
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
7363
+ parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7364
+ }, "strip", z.ZodTypeAny, {
7365
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7366
+ id: string;
7367
+ noop: boolean;
7368
+ idempotencyKey: string;
7369
+ output?: DeserializedJson | undefined;
7370
+ parentId?: string | null | undefined;
7371
+ }, {
7372
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7373
+ id: string;
7374
+ idempotencyKey: string;
7375
+ noop?: boolean | undefined;
7376
+ output?: DeserializedJson | undefined;
7377
+ parentId?: string | null | undefined;
7378
+ }>, "many">;
7379
+ cursor: z.ZodOptional<z.ZodString>;
7380
+ }, "strip", z.ZodTypeAny, {
7381
+ tasks: {
7382
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7383
+ id: string;
7384
+ noop: boolean;
7385
+ idempotencyKey: string;
7386
+ output?: DeserializedJson | undefined;
7387
+ parentId?: string | null | undefined;
7388
+ }[];
7389
+ cursor?: string | undefined;
7390
+ }, {
7391
+ tasks: {
7392
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7393
+ id: string;
7394
+ idempotencyKey: string;
7395
+ noop?: boolean | undefined;
7396
+ output?: DeserializedJson | undefined;
7397
+ parentId?: string | null | undefined;
7398
+ }[];
7399
+ cursor?: string | undefined;
7400
+ }>>;
7401
+ }, "strip", z.ZodTypeAny, {
7402
+ task: {
7403
+ name: string;
7404
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7405
+ id: string;
7406
+ noop: boolean;
7407
+ idempotencyKey: string;
7408
+ attempts: number;
7409
+ error?: string | null | undefined;
7410
+ params?: DeserializedJson | undefined;
7411
+ style?: {
7412
+ style: "normal" | "minimal";
7413
+ variant?: string | undefined;
7414
+ } | null | undefined;
7415
+ icon?: string | null | undefined;
7416
+ startedAt?: Date | null | undefined;
7417
+ completedAt?: Date | null | undefined;
7418
+ delayUntil?: Date | null | undefined;
7419
+ description?: string | null | undefined;
7420
+ properties?: {
7421
+ label: string;
7422
+ text: string;
7423
+ url?: string | undefined;
7424
+ }[] | null | undefined;
7425
+ outputProperties?: {
7426
+ label: string;
7427
+ text: string;
7428
+ url?: string | undefined;
7429
+ }[] | null | undefined;
7430
+ output?: DeserializedJson | undefined;
7431
+ parentId?: string | null | undefined;
7432
+ operation?: string | null | undefined;
7433
+ callbackUrl?: string | null | undefined;
7434
+ forceYield?: boolean | null | undefined;
7435
+ };
7436
+ cachedTasks?: {
7437
+ tasks: {
7438
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7439
+ id: string;
7440
+ noop: boolean;
7441
+ idempotencyKey: string;
7442
+ output?: DeserializedJson | undefined;
7443
+ parentId?: string | null | undefined;
7444
+ }[];
7445
+ cursor?: string | undefined;
7446
+ } | undefined;
7447
+ }, {
7448
+ task: {
7449
+ name: string;
7450
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7451
+ id: string;
7452
+ noop: boolean;
7453
+ idempotencyKey: string;
7454
+ attempts: number;
7455
+ error?: string | null | undefined;
7456
+ params?: DeserializedJson | undefined;
7457
+ style?: {
7458
+ style: "normal" | "minimal";
7459
+ variant?: string | undefined;
7460
+ } | null | undefined;
7461
+ icon?: string | null | undefined;
7462
+ startedAt?: Date | null | undefined;
7463
+ completedAt?: Date | null | undefined;
7464
+ delayUntil?: Date | null | undefined;
7465
+ description?: string | null | undefined;
7466
+ properties?: {
7467
+ label: string;
7468
+ text: string;
7469
+ url?: string | undefined;
7470
+ }[] | null | undefined;
7471
+ outputProperties?: {
7472
+ label: string;
7473
+ text: string;
7474
+ url?: string | undefined;
7475
+ }[] | null | undefined;
7476
+ output?: DeserializedJson | undefined;
7477
+ parentId?: string | null | undefined;
7478
+ operation?: string | null | undefined;
7479
+ callbackUrl?: string | null | undefined;
7480
+ forceYield?: boolean | null | undefined;
7481
+ };
7482
+ cachedTasks?: {
7483
+ tasks: {
7484
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7485
+ id: string;
7486
+ idempotencyKey: string;
7487
+ noop?: boolean | undefined;
7488
+ output?: DeserializedJson | undefined;
7489
+ parentId?: string | null | undefined;
7490
+ }[];
7491
+ cursor?: string | undefined;
7492
+ } | undefined;
6599
7493
  }>;
6600
- type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
7494
+ type RunTaskResponseWithCachedTasksBody = z.infer<typeof RunTaskResponseWithCachedTasksBodySchema>;
6601
7495
  declare const CompleteTaskBodyInputSchema: z.ZodObject<{
6602
7496
  params: z.ZodAny;
6603
7497
  description: z.ZodOptional<z.ZodString>;
@@ -6824,7 +7718,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6824
7718
  id: string;
6825
7719
  instructions?: string | undefined;
6826
7720
  }>;
6827
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
7721
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
6828
7722
  }, "strip", z.ZodTypeAny, {
6829
7723
  id: string;
6830
7724
  metadata: {
@@ -6832,7 +7726,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6832
7726
  id: string;
6833
7727
  instructions?: string | undefined;
6834
7728
  };
6835
- authSource: "HOSTED" | "LOCAL";
7729
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6836
7730
  }, {
6837
7731
  id: string;
6838
7732
  metadata: {
@@ -6840,7 +7734,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6840
7734
  id: string;
6841
7735
  instructions?: string | undefined;
6842
7736
  };
6843
- authSource: "HOSTED" | "LOCAL";
7737
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6844
7738
  }>;
6845
7739
  key: z.ZodString;
6846
7740
  params: z.ZodAny;
@@ -6867,7 +7761,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6867
7761
  id: string;
6868
7762
  instructions?: string | undefined;
6869
7763
  };
6870
- authSource: "HOSTED" | "LOCAL";
7764
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6871
7765
  };
6872
7766
  params?: any;
6873
7767
  registerSourceJob?: {
@@ -6886,7 +7780,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6886
7780
  id: string;
6887
7781
  instructions?: string | undefined;
6888
7782
  };
6889
- authSource: "HOSTED" | "LOCAL";
7783
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6890
7784
  };
6891
7785
  params?: any;
6892
7786
  registerSourceJob?: {
@@ -6907,7 +7801,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6907
7801
  id: string;
6908
7802
  instructions?: string | undefined;
6909
7803
  };
6910
- authSource: "HOSTED" | "LOCAL";
7804
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6911
7805
  };
6912
7806
  params?: any;
6913
7807
  registerSourceJob?: {
@@ -6934,7 +7828,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6934
7828
  id: string;
6935
7829
  instructions?: string | undefined;
6936
7830
  };
6937
- authSource: "HOSTED" | "LOCAL";
7831
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6938
7832
  };
6939
7833
  params?: any;
6940
7834
  registerSourceJob?: {
@@ -6985,7 +7879,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6985
7879
  id: string;
6986
7880
  instructions?: string | undefined;
6987
7881
  }>;
6988
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
7882
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
6989
7883
  }, "strip", z.ZodTypeAny, {
6990
7884
  id: string;
6991
7885
  metadata: {
@@ -6993,7 +7887,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6993
7887
  id: string;
6994
7888
  instructions?: string | undefined;
6995
7889
  };
6996
- authSource: "HOSTED" | "LOCAL";
7890
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6997
7891
  }, {
6998
7892
  id: string;
6999
7893
  metadata: {
@@ -7001,7 +7895,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7001
7895
  id: string;
7002
7896
  instructions?: string | undefined;
7003
7897
  };
7004
- authSource: "HOSTED" | "LOCAL";
7898
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7005
7899
  }>;
7006
7900
  key: z.ZodString;
7007
7901
  params: z.ZodAny;
@@ -7028,7 +7922,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7028
7922
  id: string;
7029
7923
  instructions?: string | undefined;
7030
7924
  };
7031
- authSource: "HOSTED" | "LOCAL";
7925
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7032
7926
  };
7033
7927
  params?: any;
7034
7928
  registerSourceJob?: {
@@ -7047,7 +7941,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7047
7941
  id: string;
7048
7942
  instructions?: string | undefined;
7049
7943
  };
7050
- authSource: "HOSTED" | "LOCAL";
7944
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7051
7945
  };
7052
7946
  params?: any;
7053
7947
  registerSourceJob?: {
@@ -7055,6 +7949,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7055
7949
  id: string;
7056
7950
  } | undefined;
7057
7951
  }>;
7952
+ accountId: z.ZodOptional<z.ZodString>;
7058
7953
  }, "strip", z.ZodTypeAny, {
7059
7954
  source: {
7060
7955
  key: string;
@@ -7068,7 +7963,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7068
7963
  id: string;
7069
7964
  instructions?: string | undefined;
7070
7965
  };
7071
- authSource: "HOSTED" | "LOCAL";
7966
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7072
7967
  };
7073
7968
  params?: any;
7074
7969
  registerSourceJob?: {
@@ -7082,6 +7977,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7082
7977
  payload?: EventFilter | undefined;
7083
7978
  context?: EventFilter | undefined;
7084
7979
  };
7980
+ accountId?: string | undefined;
7085
7981
  }, {
7086
7982
  source: {
7087
7983
  key: string;
@@ -7095,7 +7991,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7095
7991
  id: string;
7096
7992
  instructions?: string | undefined;
7097
7993
  };
7098
- authSource: "HOSTED" | "LOCAL";
7994
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7099
7995
  };
7100
7996
  params?: any;
7101
7997
  registerSourceJob?: {
@@ -7109,6 +8005,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7109
8005
  payload?: EventFilter | undefined;
7110
8006
  context?: EventFilter | undefined;
7111
8007
  };
8008
+ accountId?: string | undefined;
7112
8009
  }>;
7113
8010
  type RegisterTriggerBodyV2 = z.infer<typeof RegisterTriggerBodySchemaV2>;
7114
8011
  declare const InitializeTriggerBodySchema: z.ZodObject<{
@@ -7130,7 +8027,6 @@ declare const InitializeTriggerBodySchema: z.ZodObject<{
7130
8027
  type InitializeTriggerBody = z.infer<typeof InitializeTriggerBodySchema>;
7131
8028
  declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7132
8029
  id: z.ZodString;
7133
- accountId: z.ZodOptional<z.ZodString>;
7134
8030
  type: z.ZodLiteral<"interval">;
7135
8031
  options: z.ZodObject<{
7136
8032
  seconds: z.ZodNumber;
@@ -7139,6 +8035,7 @@ declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7139
8035
  }, {
7140
8036
  seconds: number;
7141
8037
  }>;
8038
+ accountId: z.ZodOptional<z.ZodString>;
7142
8039
  metadata: z.ZodAny;
7143
8040
  }, "strip", z.ZodTypeAny, {
7144
8041
  options: {
@@ -7160,7 +8057,6 @@ declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7160
8057
  type RegisterIntervalScheduleBody = z.infer<typeof RegisterIntervalScheduleBodySchema>;
7161
8058
  declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7162
8059
  id: z.ZodString;
7163
- accountId: z.ZodOptional<z.ZodString>;
7164
8060
  type: z.ZodLiteral<"cron">;
7165
8061
  options: z.ZodObject<{
7166
8062
  cron: z.ZodString;
@@ -7169,6 +8065,7 @@ declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7169
8065
  }, {
7170
8066
  cron: string;
7171
8067
  }>;
8068
+ accountId: z.ZodOptional<z.ZodString>;
7172
8069
  metadata: z.ZodAny;
7173
8070
  }, "strip", z.ZodTypeAny, {
7174
8071
  options: {
@@ -7190,7 +8087,6 @@ declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7190
8087
  type RegisterCronScheduleBody = z.infer<typeof InitializeCronScheduleBodySchema>;
7191
8088
  declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7192
8089
  id: z.ZodString;
7193
- accountId: z.ZodOptional<z.ZodString>;
7194
8090
  type: z.ZodLiteral<"interval">;
7195
8091
  options: z.ZodObject<{
7196
8092
  seconds: z.ZodNumber;
@@ -7199,6 +8095,7 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7199
8095
  }, {
7200
8096
  seconds: number;
7201
8097
  }>;
8098
+ accountId: z.ZodOptional<z.ZodString>;
7202
8099
  metadata: z.ZodAny;
7203
8100
  }, "strip", z.ZodTypeAny, {
7204
8101
  options: {
@@ -7218,7 +8115,6 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7218
8115
  metadata?: any;
7219
8116
  }>, z.ZodObject<{
7220
8117
  id: z.ZodString;
7221
- accountId: z.ZodOptional<z.ZodString>;
7222
8118
  type: z.ZodLiteral<"cron">;
7223
8119
  options: z.ZodObject<{
7224
8120
  cron: z.ZodString;
@@ -7227,6 +8123,7 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7227
8123
  }, {
7228
8124
  cron: string;
7229
8125
  }>;
8126
+ accountId: z.ZodOptional<z.ZodString>;
7230
8127
  metadata: z.ZodAny;
7231
8128
  }, "strip", z.ZodTypeAny, {
7232
8129
  options: {
@@ -7257,18 +8154,21 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7257
8154
  }, {
7258
8155
  seconds: number;
7259
8156
  }>;
8157
+ accountId: z.ZodOptional<z.ZodString>;
7260
8158
  metadata: z.ZodAny;
7261
8159
  }, "strip", z.ZodTypeAny, {
7262
8160
  options: {
7263
8161
  seconds: number;
7264
8162
  };
7265
8163
  type: "interval";
8164
+ accountId?: string | undefined;
7266
8165
  metadata?: any;
7267
8166
  }, {
7268
8167
  options: {
7269
8168
  seconds: number;
7270
8169
  };
7271
8170
  type: "interval";
8171
+ accountId?: string | undefined;
7272
8172
  metadata?: any;
7273
8173
  }>, z.ZodObject<{
7274
8174
  type: z.ZodLiteral<"cron">;
@@ -7279,18 +8179,21 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7279
8179
  }, {
7280
8180
  cron: string;
7281
8181
  }>;
8182
+ accountId: z.ZodOptional<z.ZodString>;
7282
8183
  metadata: z.ZodAny;
7283
8184
  }, "strip", z.ZodTypeAny, {
7284
8185
  options: {
7285
8186
  cron: string;
7286
8187
  };
7287
8188
  type: "cron";
8189
+ accountId?: string | undefined;
7288
8190
  metadata?: any;
7289
8191
  }, {
7290
8192
  options: {
7291
8193
  cron: string;
7292
8194
  };
7293
8195
  type: "cron";
8196
+ accountId?: string | undefined;
7294
8197
  metadata?: any;
7295
8198
  }>]>;
7296
8199
  metadata: z.ZodAny;
@@ -7302,12 +8205,14 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7302
8205
  cron: string;
7303
8206
  };
7304
8207
  type: "cron";
8208
+ accountId?: string | undefined;
7305
8209
  metadata?: any;
7306
8210
  } | {
7307
8211
  options: {
7308
8212
  seconds: number;
7309
8213
  };
7310
8214
  type: "interval";
8215
+ accountId?: string | undefined;
7311
8216
  metadata?: any;
7312
8217
  };
7313
8218
  active: boolean;
@@ -7319,12 +8224,14 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7319
8224
  cron: string;
7320
8225
  };
7321
8226
  type: "cron";
8227
+ accountId?: string | undefined;
7322
8228
  metadata?: any;
7323
8229
  } | {
7324
8230
  options: {
7325
8231
  seconds: number;
7326
8232
  };
7327
8233
  type: "interval";
8234
+ accountId?: string | undefined;
7328
8235
  metadata?: any;
7329
8236
  };
7330
8237
  active: boolean;
@@ -7348,62 +8255,95 @@ declare const CreateExternalConnectionBodySchema: z.ZodObject<{
7348
8255
  metadata?: any;
7349
8256
  }>;
7350
8257
  type CreateExternalConnectionBody = z.infer<typeof CreateExternalConnectionBodySchema>;
7351
- declare const DeployBackgroundTaskRequestBodySchema: z.ZodObject<{
7352
- id: z.ZodString;
7353
- version: z.ZodString;
7354
- fileName: z.ZodString;
7355
- bundle: z.ZodString;
7356
- sourcemap: z.ZodObject<{
7357
- version: z.ZodNumber;
7358
- sources: z.ZodArray<z.ZodString, "many">;
7359
- mappings: z.ZodString;
7360
- sourcesContent: z.ZodArray<z.ZodString, "many">;
7361
- names: z.ZodArray<z.ZodString, "many">;
7362
- }, "strip", z.ZodTypeAny, {
7363
- version: number;
7364
- sources: string[];
7365
- mappings: string;
7366
- sourcesContent: string[];
7367
- names: string[];
7368
- }, {
7369
- version: number;
7370
- sources: string[];
7371
- mappings: string;
7372
- sourcesContent: string[];
7373
- names: string[];
8258
+ declare const GetRunStatusesSchema: z.ZodObject<{
8259
+ run: z.ZodObject<{
8260
+ id: z.ZodString;
8261
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">, z.ZodLiteral<"UNRESOLVED_AUTH">, z.ZodLiteral<"INVALID_PAYLOAD">]>;
8262
+ output: z.ZodOptional<z.ZodAny>;
8263
+ }, "strip", z.ZodTypeAny, {
8264
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8265
+ id: string;
8266
+ output?: any;
8267
+ }, {
8268
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8269
+ id: string;
8270
+ output?: any;
7374
8271
  }>;
7375
- dependencies: z.ZodRecord<z.ZodString, z.ZodString>;
7376
- nodeVersion: z.ZodString;
8272
+ statuses: z.ZodArray<z.ZodObject<{
8273
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
8274
+ label: z.ZodString;
8275
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
8276
+ key: z.ZodString;
8277
+ history: z.ZodArray<z.ZodObject<{
8278
+ label: z.ZodOptional<z.ZodString>;
8279
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
8280
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
8281
+ }, "strip", z.ZodTypeAny, {
8282
+ label?: string | undefined;
8283
+ state?: "loading" | "success" | "failure" | undefined;
8284
+ data?: Record<string, SerializableJson> | undefined;
8285
+ }, {
8286
+ label?: string | undefined;
8287
+ state?: "loading" | "success" | "failure" | undefined;
8288
+ data?: Record<string, SerializableJson> | undefined;
8289
+ }>, "many">;
8290
+ }, "strip", z.ZodTypeAny, {
8291
+ key: string;
8292
+ label: string;
8293
+ history: {
8294
+ label?: string | undefined;
8295
+ state?: "loading" | "success" | "failure" | undefined;
8296
+ data?: Record<string, SerializableJson> | undefined;
8297
+ }[];
8298
+ data?: Record<string, SerializableJson> | undefined;
8299
+ state?: "loading" | "success" | "failure" | undefined;
8300
+ }, {
8301
+ key: string;
8302
+ label: string;
8303
+ history: {
8304
+ label?: string | undefined;
8305
+ state?: "loading" | "success" | "failure" | undefined;
8306
+ data?: Record<string, SerializableJson> | undefined;
8307
+ }[];
8308
+ data?: Record<string, SerializableJson> | undefined;
8309
+ state?: "loading" | "success" | "failure" | undefined;
8310
+ }>, "many">;
7377
8311
  }, "strip", z.ZodTypeAny, {
7378
- version: string;
7379
- id: string;
7380
- fileName: string;
7381
- bundle: string;
7382
- sourcemap: {
7383
- version: number;
7384
- sources: string[];
7385
- mappings: string;
7386
- sourcesContent: string[];
7387
- names: string[];
7388
- };
7389
- dependencies: Record<string, string>;
7390
- nodeVersion: string;
8312
+ statuses: {
8313
+ key: string;
8314
+ label: string;
8315
+ history: {
8316
+ label?: string | undefined;
8317
+ state?: "loading" | "success" | "failure" | undefined;
8318
+ data?: Record<string, SerializableJson> | undefined;
8319
+ }[];
8320
+ data?: Record<string, SerializableJson> | undefined;
8321
+ state?: "loading" | "success" | "failure" | undefined;
8322
+ }[];
8323
+ run: {
8324
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8325
+ id: string;
8326
+ output?: any;
8327
+ };
7391
8328
  }, {
7392
- version: string;
7393
- id: string;
7394
- fileName: string;
7395
- bundle: string;
7396
- sourcemap: {
7397
- version: number;
7398
- sources: string[];
7399
- mappings: string;
7400
- sourcesContent: string[];
7401
- names: string[];
7402
- };
7403
- dependencies: Record<string, string>;
7404
- nodeVersion: string;
8329
+ statuses: {
8330
+ key: string;
8331
+ label: string;
8332
+ history: {
8333
+ label?: string | undefined;
8334
+ state?: "loading" | "success" | "failure" | undefined;
8335
+ data?: Record<string, SerializableJson> | undefined;
8336
+ }[];
8337
+ data?: Record<string, SerializableJson> | undefined;
8338
+ state?: "loading" | "success" | "failure" | undefined;
8339
+ }[];
8340
+ run: {
8341
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8342
+ id: string;
8343
+ output?: any;
8344
+ };
7405
8345
  }>;
7406
- type DeployBackgroundTaskRequestBody = z.infer<typeof DeployBackgroundTaskRequestBodySchema>;
8346
+ type GetRunStatuses = z.infer<typeof GetRunStatusesSchema>;
7407
8347
 
7408
8348
  declare const EventExampleSchema: z.ZodObject<{
7409
8349
  id: z.ZodString;
@@ -7577,18 +8517,21 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7577
8517
  }, {
7578
8518
  seconds: number;
7579
8519
  }>;
8520
+ accountId: z.ZodOptional<z.ZodString>;
7580
8521
  metadata: z.ZodAny;
7581
8522
  }, "strip", z.ZodTypeAny, {
7582
8523
  options: {
7583
8524
  seconds: number;
7584
8525
  };
7585
8526
  type: "interval";
8527
+ accountId?: string | undefined;
7586
8528
  metadata?: any;
7587
8529
  }, {
7588
8530
  options: {
7589
8531
  seconds: number;
7590
8532
  };
7591
8533
  type: "interval";
8534
+ accountId?: string | undefined;
7592
8535
  metadata?: any;
7593
8536
  }>, z.ZodObject<{
7594
8537
  type: z.ZodLiteral<"cron">;
@@ -7599,18 +8542,21 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7599
8542
  }, {
7600
8543
  cron: string;
7601
8544
  }>;
8545
+ accountId: z.ZodOptional<z.ZodString>;
7602
8546
  metadata: z.ZodAny;
7603
8547
  }, "strip", z.ZodTypeAny, {
7604
8548
  options: {
7605
8549
  cron: string;
7606
8550
  };
7607
8551
  type: "cron";
8552
+ accountId?: string | undefined;
7608
8553
  metadata?: any;
7609
8554
  }, {
7610
8555
  options: {
7611
8556
  cron: string;
7612
8557
  };
7613
8558
  type: "cron";
8559
+ accountId?: string | undefined;
7614
8560
  metadata?: any;
7615
8561
  }>]>;
7616
8562
  }, "strip", z.ZodTypeAny, {
@@ -7620,12 +8566,14 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7620
8566
  cron: string;
7621
8567
  };
7622
8568
  type: "cron";
8569
+ accountId?: string | undefined;
7623
8570
  metadata?: any;
7624
8571
  } | {
7625
8572
  options: {
7626
8573
  seconds: number;
7627
8574
  };
7628
8575
  type: "interval";
8576
+ accountId?: string | undefined;
7629
8577
  metadata?: any;
7630
8578
  };
7631
8579
  }, {
@@ -7635,12 +8583,14 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7635
8583
  cron: string;
7636
8584
  };
7637
8585
  type: "cron";
8586
+ accountId?: string | undefined;
7638
8587
  metadata?: any;
7639
8588
  } | {
7640
8589
  options: {
7641
8590
  seconds: number;
7642
8591
  };
7643
8592
  type: "interval";
8593
+ accountId?: string | undefined;
7644
8594
  metadata?: any;
7645
8595
  };
7646
8596
  }>;
@@ -7724,18 +8674,21 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7724
8674
  }, {
7725
8675
  seconds: number;
7726
8676
  }>;
8677
+ accountId: z.ZodOptional<z.ZodString>;
7727
8678
  metadata: z.ZodAny;
7728
8679
  }, "strip", z.ZodTypeAny, {
7729
8680
  options: {
7730
8681
  seconds: number;
7731
8682
  };
7732
8683
  type: "interval";
8684
+ accountId?: string | undefined;
7733
8685
  metadata?: any;
7734
8686
  }, {
7735
8687
  options: {
7736
8688
  seconds: number;
7737
8689
  };
7738
8690
  type: "interval";
8691
+ accountId?: string | undefined;
7739
8692
  metadata?: any;
7740
8693
  }>, z.ZodObject<{
7741
8694
  type: z.ZodLiteral<"cron">;
@@ -7746,18 +8699,21 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7746
8699
  }, {
7747
8700
  cron: string;
7748
8701
  }>;
8702
+ accountId: z.ZodOptional<z.ZodString>;
7749
8703
  metadata: z.ZodAny;
7750
8704
  }, "strip", z.ZodTypeAny, {
7751
8705
  options: {
7752
8706
  cron: string;
7753
8707
  };
7754
8708
  type: "cron";
8709
+ accountId?: string | undefined;
7755
8710
  metadata?: any;
7756
8711
  }, {
7757
8712
  options: {
7758
8713
  cron: string;
7759
8714
  };
7760
8715
  type: "cron";
8716
+ accountId?: string | undefined;
7761
8717
  metadata?: any;
7762
8718
  }>]>;
7763
8719
  }, "strip", z.ZodTypeAny, {
@@ -7767,12 +8723,14 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7767
8723
  cron: string;
7768
8724
  };
7769
8725
  type: "cron";
8726
+ accountId?: string | undefined;
7770
8727
  metadata?: any;
7771
8728
  } | {
7772
8729
  options: {
7773
8730
  seconds: number;
7774
8731
  };
7775
8732
  type: "interval";
8733
+ accountId?: string | undefined;
7776
8734
  metadata?: any;
7777
8735
  };
7778
8736
  }, {
@@ -7782,12 +8740,14 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7782
8740
  cron: string;
7783
8741
  };
7784
8742
  type: "cron";
8743
+ accountId?: string | undefined;
7785
8744
  metadata?: any;
7786
8745
  } | {
7787
8746
  options: {
7788
8747
  seconds: number;
7789
8748
  };
7790
8749
  type: "interval";
8750
+ accountId?: string | undefined;
7791
8751
  metadata?: any;
7792
8752
  };
7793
8753
  }>]>;
@@ -7807,6 +8767,17 @@ declare const ErrorWithStackSchema: z.ZodObject<{
7807
8767
  stack?: string | undefined;
7808
8768
  }>;
7809
8769
  type ErrorWithStack = z.infer<typeof ErrorWithStackSchema>;
8770
+ declare const SchemaErrorSchema: z.ZodObject<{
8771
+ path: z.ZodArray<z.ZodString, "many">;
8772
+ message: z.ZodString;
8773
+ }, "strip", z.ZodTypeAny, {
8774
+ message: string;
8775
+ path: string[];
8776
+ }, {
8777
+ message: string;
8778
+ path: string[];
8779
+ }>;
8780
+ type SchemaError = z.infer<typeof SchemaErrorSchema>;
7810
8781
 
7811
8782
  /** A property that is displayed in the logs */
7812
8783
  declare const DisplayPropertySchema: z.ZodObject<{
@@ -7858,17 +8829,17 @@ type Style = z.infer<typeof StyleSchema>;
7858
8829
  type StyleName = Style["style"];
7859
8830
 
7860
8831
  declare const ConnectionAuthSchema: z.ZodObject<{
7861
- type: z.ZodEnum<["oauth2"]>;
8832
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
7862
8833
  accessToken: z.ZodString;
7863
8834
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7864
8835
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7865
8836
  }, "strip", z.ZodTypeAny, {
7866
- type: "oauth2";
8837
+ type: "oauth2" | "apiKey";
7867
8838
  accessToken: string;
7868
8839
  scopes?: string[] | undefined;
7869
8840
  additionalFields?: Record<string, string> | undefined;
7870
8841
  }, {
7871
- type: "oauth2";
8842
+ type: "oauth2" | "apiKey";
7872
8843
  accessToken: string;
7873
8844
  scopes?: string[] | undefined;
7874
8845
  additionalFields?: Record<string, string> | undefined;
@@ -7903,7 +8874,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7903
8874
  id: string;
7904
8875
  instructions?: string | undefined;
7905
8876
  }>;
7906
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
8877
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
7907
8878
  }, "strip", z.ZodTypeAny, {
7908
8879
  id: string;
7909
8880
  metadata: {
@@ -7911,7 +8882,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7911
8882
  id: string;
7912
8883
  instructions?: string | undefined;
7913
8884
  };
7914
- authSource: "HOSTED" | "LOCAL";
8885
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7915
8886
  }, {
7916
8887
  id: string;
7917
8888
  metadata: {
@@ -7919,7 +8890,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7919
8890
  id: string;
7920
8891
  instructions?: string | undefined;
7921
8892
  };
7922
- authSource: "HOSTED" | "LOCAL";
8893
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7923
8894
  }>;
7924
8895
  type IntegrationConfig = z.infer<typeof IntegrationConfigSchema>;
7925
8896
 
@@ -7936,7 +8907,7 @@ declare const ScheduledPayloadSchema: z.ZodObject<{
7936
8907
  }>;
7937
8908
  type ScheduledPayload = z.infer<typeof ScheduledPayloadSchema>;
7938
8909
  declare const IntervalOptionsSchema: z.ZodObject<{
7939
- /** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
8910
+ /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
7940
8911
  seconds: z.ZodNumber;
7941
8912
  }, "strip", z.ZodTypeAny, {
7942
8913
  seconds: number;
@@ -7969,18 +8940,22 @@ declare const CronMetadataSchema: z.ZodObject<{
7969
8940
  }, {
7970
8941
  cron: string;
7971
8942
  }>;
8943
+ /** An optional Account ID to associate with runs triggered by this interval */
8944
+ accountId: z.ZodOptional<z.ZodString>;
7972
8945
  metadata: z.ZodAny;
7973
8946
  }, "strip", z.ZodTypeAny, {
7974
8947
  options: {
7975
8948
  cron: string;
7976
8949
  };
7977
8950
  type: "cron";
8951
+ accountId?: string | undefined;
7978
8952
  metadata?: any;
7979
8953
  }, {
7980
8954
  options: {
7981
8955
  cron: string;
7982
8956
  };
7983
8957
  type: "cron";
8958
+ accountId?: string | undefined;
7984
8959
  metadata?: any;
7985
8960
  }>;
7986
8961
  type CronMetadata = z.infer<typeof CronMetadataSchema>;
@@ -7989,13 +8964,15 @@ declare const IntervalMetadataSchema: z.ZodObject<{
7989
8964
  type: z.ZodLiteral<"interval">;
7990
8965
  /** An object containing options about the interval. */
7991
8966
  options: z.ZodObject<{
7992
- /** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
8967
+ /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
7993
8968
  seconds: z.ZodNumber;
7994
8969
  }, "strip", z.ZodTypeAny, {
7995
8970
  seconds: number;
7996
8971
  }, {
7997
8972
  seconds: number;
7998
8973
  }>;
8974
+ /** An optional Account ID to associate with runs triggered by this interval */
8975
+ accountId: z.ZodOptional<z.ZodString>;
7999
8976
  /** Any additional metadata about the schedule. */
8000
8977
  metadata: z.ZodAny;
8001
8978
  }, "strip", z.ZodTypeAny, {
@@ -8003,12 +8980,14 @@ declare const IntervalMetadataSchema: z.ZodObject<{
8003
8980
  seconds: number;
8004
8981
  };
8005
8982
  type: "interval";
8983
+ accountId?: string | undefined;
8006
8984
  metadata?: any;
8007
8985
  }, {
8008
8986
  options: {
8009
8987
  seconds: number;
8010
8988
  };
8011
8989
  type: "interval";
8990
+ accountId?: string | undefined;
8012
8991
  metadata?: any;
8013
8992
  }>;
8014
8993
  type IntervalMetadata = z.infer<typeof IntervalMetadataSchema>;
@@ -8017,13 +8996,15 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
8017
8996
  type: z.ZodLiteral<"interval">;
8018
8997
  /** An object containing options about the interval. */
8019
8998
  options: z.ZodObject<{
8020
- /** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
8999
+ /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
8021
9000
  seconds: z.ZodNumber;
8022
9001
  }, "strip", z.ZodTypeAny, {
8023
9002
  seconds: number;
8024
9003
  }, {
8025
9004
  seconds: number;
8026
9005
  }>;
9006
+ /** An optional Account ID to associate with runs triggered by this interval */
9007
+ accountId: z.ZodOptional<z.ZodString>;
8027
9008
  /** Any additional metadata about the schedule. */
8028
9009
  metadata: z.ZodAny;
8029
9010
  }, "strip", z.ZodTypeAny, {
@@ -8031,12 +9012,14 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
8031
9012
  seconds: number;
8032
9013
  };
8033
9014
  type: "interval";
9015
+ accountId?: string | undefined;
8034
9016
  metadata?: any;
8035
9017
  }, {
8036
9018
  options: {
8037
9019
  seconds: number;
8038
9020
  };
8039
9021
  type: "interval";
9022
+ accountId?: string | undefined;
8040
9023
  metadata?: any;
8041
9024
  }>, z.ZodObject<{
8042
9025
  type: z.ZodLiteral<"cron">;
@@ -8050,18 +9033,22 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
8050
9033
  }, {
8051
9034
  cron: string;
8052
9035
  }>;
9036
+ /** An optional Account ID to associate with runs triggered by this interval */
9037
+ accountId: z.ZodOptional<z.ZodString>;
8053
9038
  metadata: z.ZodAny;
8054
9039
  }, "strip", z.ZodTypeAny, {
8055
9040
  options: {
8056
9041
  cron: string;
8057
9042
  };
8058
9043
  type: "cron";
9044
+ accountId?: string | undefined;
8059
9045
  metadata?: any;
8060
9046
  }, {
8061
9047
  options: {
8062
9048
  cron: string;
8063
9049
  };
8064
9050
  type: "cron";
9051
+ accountId?: string | undefined;
8065
9052
  metadata?: any;
8066
9053
  }>]>;
8067
9054
  type ScheduleMetadata = z.infer<typeof ScheduleMetadataSchema>;
@@ -8106,14 +9093,14 @@ declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObject<{
8106
9093
  scopes: string[];
8107
9094
  id: string;
8108
9095
  title: string;
8109
- createdAt: Date;
8110
9096
  updatedAt: Date;
9097
+ createdAt: Date;
8111
9098
  }, {
8112
9099
  scopes: string[];
8113
9100
  id: string;
8114
9101
  title: string;
8115
- createdAt: Date;
8116
9102
  updatedAt: Date;
9103
+ createdAt: Date;
8117
9104
  }>;
8118
9105
  authorizationUrl: z.ZodString;
8119
9106
  }, "strip", z.ZodTypeAny, {
@@ -8122,8 +9109,8 @@ declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObject<{
8122
9109
  scopes: string[];
8123
9110
  id: string;
8124
9111
  title: string;
8125
- createdAt: Date;
8126
9112
  updatedAt: Date;
9113
+ createdAt: Date;
8127
9114
  };
8128
9115
  authorizationUrl: string;
8129
9116
  }, {
@@ -8132,8 +9119,8 @@ declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObject<{
8132
9119
  scopes: string[];
8133
9120
  id: string;
8134
9121
  title: string;
8135
- createdAt: Date;
8136
9122
  updatedAt: Date;
9123
+ createdAt: Date;
8137
9124
  };
8138
9125
  authorizationUrl: string;
8139
9126
  }>;
@@ -8149,14 +9136,14 @@ declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
8149
9136
  scopes: string[];
8150
9137
  id: string;
8151
9138
  title: string;
8152
- createdAt: Date;
8153
9139
  updatedAt: Date;
9140
+ createdAt: Date;
8154
9141
  }, {
8155
9142
  scopes: string[];
8156
9143
  id: string;
8157
9144
  title: string;
8158
- createdAt: Date;
8159
9145
  updatedAt: Date;
9146
+ createdAt: Date;
8160
9147
  }>;
8161
9148
  authorizationUrl: z.ZodString;
8162
9149
  type: z.ZodLiteral<"DEVELOPER">;
@@ -8167,8 +9154,8 @@ declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
8167
9154
  scopes: string[];
8168
9155
  id: string;
8169
9156
  title: string;
8170
- createdAt: Date;
8171
9157
  updatedAt: Date;
9158
+ createdAt: Date;
8172
9159
  };
8173
9160
  authorizationUrl: string;
8174
9161
  }, {
@@ -8178,8 +9165,8 @@ declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
8178
9165
  scopes: string[];
8179
9166
  id: string;
8180
9167
  title: string;
8181
- createdAt: Date;
8182
9168
  updatedAt: Date;
9169
+ createdAt: Date;
8183
9170
  };
8184
9171
  authorizationUrl: string;
8185
9172
  }>;
@@ -8195,14 +9182,14 @@ declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
8195
9182
  scopes: string[];
8196
9183
  id: string;
8197
9184
  title: string;
8198
- createdAt: Date;
8199
9185
  updatedAt: Date;
9186
+ createdAt: Date;
8200
9187
  }, {
8201
9188
  scopes: string[];
8202
9189
  id: string;
8203
9190
  title: string;
8204
- createdAt: Date;
8205
9191
  updatedAt: Date;
9192
+ createdAt: Date;
8206
9193
  }>;
8207
9194
  authorizationUrl: z.ZodString;
8208
9195
  type: z.ZodLiteral<"EXTERNAL">;
@@ -8227,8 +9214,8 @@ declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
8227
9214
  scopes: string[];
8228
9215
  id: string;
8229
9216
  title: string;
8230
- createdAt: Date;
8231
9217
  updatedAt: Date;
9218
+ createdAt: Date;
8232
9219
  };
8233
9220
  authorizationUrl: string;
8234
9221
  }, {
@@ -8242,8 +9229,8 @@ declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
8242
9229
  scopes: string[];
8243
9230
  id: string;
8244
9231
  title: string;
8245
- createdAt: Date;
8246
9232
  updatedAt: Date;
9233
+ createdAt: Date;
8247
9234
  };
8248
9235
  authorizationUrl: string;
8249
9236
  }>;
@@ -8259,14 +9246,14 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8259
9246
  scopes: string[];
8260
9247
  id: string;
8261
9248
  title: string;
8262
- createdAt: Date;
8263
9249
  updatedAt: Date;
9250
+ createdAt: Date;
8264
9251
  }, {
8265
9252
  scopes: string[];
8266
9253
  id: string;
8267
9254
  title: string;
8268
- createdAt: Date;
8269
9255
  updatedAt: Date;
9256
+ createdAt: Date;
8270
9257
  }>;
8271
9258
  authorizationUrl: z.ZodString;
8272
9259
  type: z.ZodLiteral<"DEVELOPER">;
@@ -8277,8 +9264,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8277
9264
  scopes: string[];
8278
9265
  id: string;
8279
9266
  title: string;
8280
- createdAt: Date;
8281
9267
  updatedAt: Date;
9268
+ createdAt: Date;
8282
9269
  };
8283
9270
  authorizationUrl: string;
8284
9271
  }, {
@@ -8288,8 +9275,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8288
9275
  scopes: string[];
8289
9276
  id: string;
8290
9277
  title: string;
8291
- createdAt: Date;
8292
9278
  updatedAt: Date;
9279
+ createdAt: Date;
8293
9280
  };
8294
9281
  authorizationUrl: string;
8295
9282
  }>, z.ZodObject<{
@@ -8304,14 +9291,14 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8304
9291
  scopes: string[];
8305
9292
  id: string;
8306
9293
  title: string;
8307
- createdAt: Date;
8308
9294
  updatedAt: Date;
9295
+ createdAt: Date;
8309
9296
  }, {
8310
9297
  scopes: string[];
8311
9298
  id: string;
8312
9299
  title: string;
8313
- createdAt: Date;
8314
9300
  updatedAt: Date;
9301
+ createdAt: Date;
8315
9302
  }>;
8316
9303
  authorizationUrl: z.ZodString;
8317
9304
  type: z.ZodLiteral<"EXTERNAL">;
@@ -8336,8 +9323,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8336
9323
  scopes: string[];
8337
9324
  id: string;
8338
9325
  title: string;
8339
- createdAt: Date;
8340
9326
  updatedAt: Date;
9327
+ createdAt: Date;
8341
9328
  };
8342
9329
  authorizationUrl: string;
8343
9330
  }, {
@@ -8351,8 +9338,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8351
9338
  scopes: string[];
8352
9339
  id: string;
8353
9340
  title: string;
8354
- createdAt: Date;
8355
9341
  updatedAt: Date;
9342
+ createdAt: Date;
8356
9343
  };
8357
9344
  authorizationUrl: string;
8358
9345
  }>]>;
@@ -8371,16 +9358,16 @@ declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z.ZodObj
8371
9358
  scopes: string[];
8372
9359
  id: string;
8373
9360
  title: string;
8374
- createdAt: Date;
8375
9361
  updatedAt: Date;
9362
+ createdAt: Date;
8376
9363
  integrationIdentifier: string;
8377
9364
  integrationAuthMethod: string;
8378
9365
  }, {
8379
9366
  scopes: string[];
8380
9367
  id: string;
8381
9368
  title: string;
8382
- createdAt: Date;
8383
9369
  updatedAt: Date;
9370
+ createdAt: Date;
8384
9371
  integrationIdentifier: string;
8385
9372
  integrationAuthMethod: string;
8386
9373
  }>;
@@ -8391,8 +9378,8 @@ declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z.ZodObj
8391
9378
  scopes: string[];
8392
9379
  id: string;
8393
9380
  title: string;
8394
- createdAt: Date;
8395
9381
  updatedAt: Date;
9382
+ createdAt: Date;
8396
9383
  integrationIdentifier: string;
8397
9384
  integrationAuthMethod: string;
8398
9385
  };
@@ -8403,8 +9390,8 @@ declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z.ZodObj
8403
9390
  scopes: string[];
8404
9391
  id: string;
8405
9392
  title: string;
8406
- createdAt: Date;
8407
9393
  updatedAt: Date;
9394
+ createdAt: Date;
8408
9395
  integrationIdentifier: string;
8409
9396
  integrationAuthMethod: string;
8410
9397
  };
@@ -8424,16 +9411,16 @@ declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.Zod
8424
9411
  scopes: string[];
8425
9412
  id: string;
8426
9413
  title: string;
8427
- createdAt: Date;
8428
9414
  updatedAt: Date;
9415
+ createdAt: Date;
8429
9416
  integrationIdentifier: string;
8430
9417
  integrationAuthMethod: string;
8431
9418
  }, {
8432
9419
  scopes: string[];
8433
9420
  id: string;
8434
9421
  title: string;
8435
- createdAt: Date;
8436
9422
  updatedAt: Date;
9423
+ createdAt: Date;
8437
9424
  integrationIdentifier: string;
8438
9425
  integrationAuthMethod: string;
8439
9426
  }>;
@@ -8446,8 +9433,8 @@ declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.Zod
8446
9433
  scopes: string[];
8447
9434
  id: string;
8448
9435
  title: string;
8449
- createdAt: Date;
8450
9436
  updatedAt: Date;
9437
+ createdAt: Date;
8451
9438
  integrationIdentifier: string;
8452
9439
  integrationAuthMethod: string;
8453
9440
  };
@@ -8459,8 +9446,8 @@ declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.Zod
8459
9446
  scopes: string[];
8460
9447
  id: string;
8461
9448
  title: string;
8462
- createdAt: Date;
8463
9449
  updatedAt: Date;
9450
+ createdAt: Date;
8464
9451
  integrationIdentifier: string;
8465
9452
  integrationAuthMethod: string;
8466
9453
  };
@@ -8480,16 +9467,16 @@ declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodO
8480
9467
  scopes: string[];
8481
9468
  id: string;
8482
9469
  title: string;
8483
- createdAt: Date;
8484
9470
  updatedAt: Date;
9471
+ createdAt: Date;
8485
9472
  integrationIdentifier: string;
8486
9473
  integrationAuthMethod: string;
8487
9474
  }, {
8488
9475
  scopes: string[];
8489
9476
  id: string;
8490
9477
  title: string;
8491
- createdAt: Date;
8492
9478
  updatedAt: Date;
9479
+ createdAt: Date;
8493
9480
  integrationIdentifier: string;
8494
9481
  integrationAuthMethod: string;
8495
9482
  }>;
@@ -8516,8 +9503,8 @@ declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodO
8516
9503
  scopes: string[];
8517
9504
  id: string;
8518
9505
  title: string;
8519
- createdAt: Date;
8520
9506
  updatedAt: Date;
9507
+ createdAt: Date;
8521
9508
  integrationIdentifier: string;
8522
9509
  integrationAuthMethod: string;
8523
9510
  };
@@ -8533,8 +9520,8 @@ declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodO
8533
9520
  scopes: string[];
8534
9521
  id: string;
8535
9522
  title: string;
8536
- createdAt: Date;
8537
9523
  updatedAt: Date;
9524
+ createdAt: Date;
8538
9525
  integrationIdentifier: string;
8539
9526
  integrationAuthMethod: string;
8540
9527
  };
@@ -8554,16 +9541,16 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8554
9541
  scopes: string[];
8555
9542
  id: string;
8556
9543
  title: string;
8557
- createdAt: Date;
8558
9544
  updatedAt: Date;
9545
+ createdAt: Date;
8559
9546
  integrationIdentifier: string;
8560
9547
  integrationAuthMethod: string;
8561
9548
  }, {
8562
9549
  scopes: string[];
8563
9550
  id: string;
8564
9551
  title: string;
8565
- createdAt: Date;
8566
9552
  updatedAt: Date;
9553
+ createdAt: Date;
8567
9554
  integrationIdentifier: string;
8568
9555
  integrationAuthMethod: string;
8569
9556
  }>;
@@ -8576,8 +9563,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8576
9563
  scopes: string[];
8577
9564
  id: string;
8578
9565
  title: string;
8579
- createdAt: Date;
8580
9566
  updatedAt: Date;
9567
+ createdAt: Date;
8581
9568
  integrationIdentifier: string;
8582
9569
  integrationAuthMethod: string;
8583
9570
  };
@@ -8589,8 +9576,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8589
9576
  scopes: string[];
8590
9577
  id: string;
8591
9578
  title: string;
8592
- createdAt: Date;
8593
9579
  updatedAt: Date;
9580
+ createdAt: Date;
8594
9581
  integrationIdentifier: string;
8595
9582
  integrationAuthMethod: string;
8596
9583
  };
@@ -8609,16 +9596,16 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8609
9596
  scopes: string[];
8610
9597
  id: string;
8611
9598
  title: string;
8612
- createdAt: Date;
8613
9599
  updatedAt: Date;
9600
+ createdAt: Date;
8614
9601
  integrationIdentifier: string;
8615
9602
  integrationAuthMethod: string;
8616
9603
  }, {
8617
9604
  scopes: string[];
8618
9605
  id: string;
8619
9606
  title: string;
8620
- createdAt: Date;
8621
9607
  updatedAt: Date;
9608
+ createdAt: Date;
8622
9609
  integrationIdentifier: string;
8623
9610
  integrationAuthMethod: string;
8624
9611
  }>;
@@ -8645,8 +9632,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8645
9632
  scopes: string[];
8646
9633
  id: string;
8647
9634
  title: string;
8648
- createdAt: Date;
8649
9635
  updatedAt: Date;
9636
+ createdAt: Date;
8650
9637
  integrationIdentifier: string;
8651
9638
  integrationAuthMethod: string;
8652
9639
  };
@@ -8662,8 +9649,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8662
9649
  scopes: string[];
8663
9650
  id: string;
8664
9651
  title: string;
8665
- createdAt: Date;
8666
9652
  updatedAt: Date;
9653
+ createdAt: Date;
8667
9654
  integrationIdentifier: string;
8668
9655
  integrationAuthMethod: string;
8669
9656
  };
@@ -8989,18 +9976,18 @@ declare const GetEventSchema: z.ZodObject<{
8989
9976
  /** The Run id */
8990
9977
  id: z.ZodString;
8991
9978
  /** The Run status */
8992
- status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">]>;
9979
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">, z.ZodLiteral<"UNRESOLVED_AUTH">, z.ZodLiteral<"INVALID_PAYLOAD">]>;
8993
9980
  /** When the run started */
8994
9981
  startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8995
9982
  /** When the run completed */
8996
9983
  completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8997
9984
  }, "strip", z.ZodTypeAny, {
8998
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9985
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8999
9986
  id: string;
9000
9987
  startedAt?: Date | null | undefined;
9001
9988
  completedAt?: Date | null | undefined;
9002
9989
  }, {
9003
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9990
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9004
9991
  id: string;
9005
9992
  startedAt?: Date | null | undefined;
9006
9993
  completedAt?: Date | null | undefined;
@@ -9008,30 +9995,41 @@ declare const GetEventSchema: z.ZodObject<{
9008
9995
  }, "strip", z.ZodTypeAny, {
9009
9996
  name: string;
9010
9997
  id: string;
9011
- createdAt: Date;
9012
9998
  updatedAt: Date;
9013
9999
  runs: {
9014
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10000
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9015
10001
  id: string;
9016
10002
  startedAt?: Date | null | undefined;
9017
10003
  completedAt?: Date | null | undefined;
9018
10004
  }[];
10005
+ createdAt: Date;
9019
10006
  }, {
9020
10007
  name: string;
9021
10008
  id: string;
9022
- createdAt: Date;
9023
10009
  updatedAt: Date;
9024
10010
  runs: {
9025
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10011
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9026
10012
  id: string;
9027
10013
  startedAt?: Date | null | undefined;
9028
10014
  completedAt?: Date | null | undefined;
9029
10015
  }[];
10016
+ createdAt: Date;
9030
10017
  }>;
9031
10018
  type GetEvent = z.infer<typeof GetEventSchema>;
10019
+ declare const CancelRunsForEventSchema: z.ZodObject<{
10020
+ cancelledRunIds: z.ZodArray<z.ZodString, "many">;
10021
+ failedToCancelRunIds: z.ZodArray<z.ZodString, "many">;
10022
+ }, "strip", z.ZodTypeAny, {
10023
+ cancelledRunIds: string[];
10024
+ failedToCancelRunIds: string[];
10025
+ }, {
10026
+ cancelledRunIds: string[];
10027
+ failedToCancelRunIds: string[];
10028
+ }>;
10029
+ type CancelRunsForEvent = z.infer<typeof CancelRunsForEventSchema>;
9032
10030
 
9033
- declare const RunStatusSchema: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">]>;
9034
- declare const RunTaskSchema: ZodObject<{
10031
+ declare const RunStatusSchema: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">, z.ZodLiteral<"UNRESOLVED_AUTH">, z.ZodLiteral<"INVALID_PAYLOAD">]>;
10032
+ declare const RunTaskSchema: z.ZodObject<{
9035
10033
  /** The Task id */
9036
10034
  id: z.ZodString;
9037
10035
  /** The key that you defined when creating the Task, the first param in any task. */
@@ -9069,7 +10067,7 @@ type RunTaskWithSubtasks = z.infer<typeof RunTaskSchema> & {
9069
10067
  /** The subtasks of the task */
9070
10068
  subtasks?: RunTaskWithSubtasks[];
9071
10069
  };
9072
- declare const GetRunOptionsSchema: ZodObject<{
10070
+ declare const GetRunOptionsSchema: z.ZodObject<{
9073
10071
  /** Return subtasks, which appear in a `subtasks` array on a task. @default false */
9074
10072
  subtasks: z.ZodOptional<z.ZodBoolean>;
9075
10073
  /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
@@ -9086,7 +10084,7 @@ declare const GetRunOptionsSchema: ZodObject<{
9086
10084
  take?: number | undefined;
9087
10085
  }>;
9088
10086
  type GetRunOptions = z.infer<typeof GetRunOptionsSchema>;
9089
- declare const GetRunOptionsWithTaskDetailsSchema: ZodObject<{
10087
+ declare const GetRunOptionsWithTaskDetailsSchema: z.ZodObject<{
9090
10088
  subtasks: z.ZodOptional<z.ZodBoolean>;
9091
10089
  cursor: z.ZodOptional<z.ZodString>;
9092
10090
  take: z.ZodOptional<z.ZodNumber>;
@@ -9103,36 +10101,97 @@ declare const GetRunOptionsWithTaskDetailsSchema: ZodObject<{
9103
10101
  taskdetails?: boolean | undefined;
9104
10102
  }>;
9105
10103
  type GetRunOptionsWithTaskDetails = z.infer<typeof GetRunOptionsWithTaskDetailsSchema>;
9106
- declare const GetRunSchema: ZodObject<{
9107
- status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">]>;
10104
+ declare const GetRunSchema: z.ZodObject<{
10105
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">, z.ZodLiteral<"UNRESOLVED_AUTH">, z.ZodLiteral<"INVALID_PAYLOAD">]>;
9108
10106
  id: z.ZodString;
9109
10107
  startedAt: z.ZodNullable<z.ZodDate>;
9110
10108
  completedAt: z.ZodNullable<z.ZodDate>;
9111
10109
  updatedAt: z.ZodNullable<z.ZodDate>;
9112
10110
  output: z.ZodOptional<z.ZodAny>;
9113
10111
  tasks: z.ZodArray<z.ZodType<RunTaskWithSubtasks, z.ZodTypeDef, RunTaskWithSubtasks>, "many">;
10112
+ statuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
10113
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10114
+ label: z.ZodString;
10115
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10116
+ key: z.ZodString;
10117
+ history: z.ZodArray<z.ZodObject<{
10118
+ label: z.ZodOptional<z.ZodString>;
10119
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10120
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10121
+ }, "strip", z.ZodTypeAny, {
10122
+ label?: string | undefined;
10123
+ state?: "loading" | "success" | "failure" | undefined;
10124
+ data?: Record<string, SerializableJson> | undefined;
10125
+ }, {
10126
+ label?: string | undefined;
10127
+ state?: "loading" | "success" | "failure" | undefined;
10128
+ data?: Record<string, SerializableJson> | undefined;
10129
+ }>, "many">;
10130
+ }, "strip", z.ZodTypeAny, {
10131
+ key: string;
10132
+ label: string;
10133
+ history: {
10134
+ label?: string | undefined;
10135
+ state?: "loading" | "success" | "failure" | undefined;
10136
+ data?: Record<string, SerializableJson> | undefined;
10137
+ }[];
10138
+ data?: Record<string, SerializableJson> | undefined;
10139
+ state?: "loading" | "success" | "failure" | undefined;
10140
+ }, {
10141
+ key: string;
10142
+ label: string;
10143
+ history: {
10144
+ label?: string | undefined;
10145
+ state?: "loading" | "success" | "failure" | undefined;
10146
+ data?: Record<string, SerializableJson> | undefined;
10147
+ }[];
10148
+ data?: Record<string, SerializableJson> | undefined;
10149
+ state?: "loading" | "success" | "failure" | undefined;
10150
+ }>, "many">>;
9114
10151
  nextCursor: z.ZodOptional<z.ZodString>;
9115
10152
  }, "strip", z.ZodTypeAny, {
9116
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10153
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9117
10154
  id: string;
9118
10155
  startedAt: Date | null;
9119
10156
  completedAt: Date | null;
9120
- tasks: RunTaskWithSubtasks[];
9121
10157
  updatedAt: Date | null;
10158
+ tasks: RunTaskWithSubtasks[];
10159
+ statuses: {
10160
+ key: string;
10161
+ label: string;
10162
+ history: {
10163
+ label?: string | undefined;
10164
+ state?: "loading" | "success" | "failure" | undefined;
10165
+ data?: Record<string, SerializableJson> | undefined;
10166
+ }[];
10167
+ data?: Record<string, SerializableJson> | undefined;
10168
+ state?: "loading" | "success" | "failure" | undefined;
10169
+ }[];
9122
10170
  output?: any;
9123
10171
  nextCursor?: string | undefined;
9124
10172
  }, {
9125
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10173
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9126
10174
  id: string;
9127
10175
  startedAt: Date | null;
9128
10176
  completedAt: Date | null;
9129
- tasks: RunTaskWithSubtasks[];
9130
10177
  updatedAt: Date | null;
10178
+ tasks: RunTaskWithSubtasks[];
9131
10179
  output?: any;
10180
+ statuses?: {
10181
+ key: string;
10182
+ label: string;
10183
+ history: {
10184
+ label?: string | undefined;
10185
+ state?: "loading" | "success" | "failure" | undefined;
10186
+ data?: Record<string, SerializableJson> | undefined;
10187
+ }[];
10188
+ data?: Record<string, SerializableJson> | undefined;
10189
+ state?: "loading" | "success" | "failure" | undefined;
10190
+ }[] | undefined;
9132
10191
  nextCursor?: string | undefined;
9133
10192
  }>;
9134
10193
  type GetRun = z.infer<typeof GetRunSchema>;
9135
- declare const GetRunsOptionsSchema: ZodObject<{
10194
+ declare const GetRunsOptionsSchema: z.ZodObject<{
9136
10195
  /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
9137
10196
  cursor: z.ZodOptional<z.ZodString>;
9138
10197
  /** How many runs you want to return in one go, max 50. @default 20 */
@@ -9145,13 +10204,13 @@ declare const GetRunsOptionsSchema: ZodObject<{
9145
10204
  take?: number | undefined;
9146
10205
  }>;
9147
10206
  type GetRunsOptions = z.infer<typeof GetRunsOptionsSchema>;
9148
- declare const GetRunsSchema: ZodObject<{
10207
+ declare const GetRunsSchema: z.ZodObject<{
9149
10208
  /** The runs from the query */
9150
- runs: z.ZodArray<ZodObject<{
10209
+ runs: z.ZodArray<z.ZodObject<{
9151
10210
  /** The Run id */
9152
10211
  id: z.ZodString;
9153
10212
  /** The Run status */
9154
- status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">]>;
10213
+ status: z.ZodUnion<[z.ZodLiteral<"PENDING">, z.ZodLiteral<"QUEUED">, z.ZodLiteral<"WAITING_ON_CONNECTIONS">, z.ZodLiteral<"PREPROCESSING">, z.ZodLiteral<"STARTED">, z.ZodLiteral<"SUCCESS">, z.ZodLiteral<"FAILURE">, z.ZodLiteral<"TIMED_OUT">, z.ZodLiteral<"ABORTED">, z.ZodLiteral<"CANCELED">, z.ZodLiteral<"UNRESOLVED_AUTH">, z.ZodLiteral<"INVALID_PAYLOAD">]>;
9155
10214
  /** When the run started */
9156
10215
  startedAt: z.ZodNullable<z.ZodDate>;
9157
10216
  /** When the run was last updated */
@@ -9159,13 +10218,13 @@ declare const GetRunsSchema: ZodObject<{
9159
10218
  /** When the run was completed */
9160
10219
  completedAt: z.ZodNullable<z.ZodDate>;
9161
10220
  }, "strip", z.ZodTypeAny, {
9162
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10221
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9163
10222
  id: string;
9164
10223
  startedAt: Date | null;
9165
10224
  completedAt: Date | null;
9166
10225
  updatedAt: Date | null;
9167
10226
  }, {
9168
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10227
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9169
10228
  id: string;
9170
10229
  startedAt: Date | null;
9171
10230
  completedAt: Date | null;
@@ -9175,7 +10234,7 @@ declare const GetRunsSchema: ZodObject<{
9175
10234
  nextCursor: z.ZodOptional<z.ZodString>;
9176
10235
  }, "strip", z.ZodTypeAny, {
9177
10236
  runs: {
9178
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10237
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9179
10238
  id: string;
9180
10239
  startedAt: Date | null;
9181
10240
  completedAt: Date | null;
@@ -9184,7 +10243,7 @@ declare const GetRunsSchema: ZodObject<{
9184
10243
  nextCursor?: string | undefined;
9185
10244
  }, {
9186
10245
  runs: {
9187
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
10246
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9188
10247
  id: string;
9189
10248
  startedAt: Date | null;
9190
10249
  completedAt: Date | null;
@@ -9195,6 +10254,92 @@ declare const GetRunsSchema: ZodObject<{
9195
10254
 
9196
10255
  declare function addMissingVersionField(val: unknown): unknown;
9197
10256
 
10257
+ declare const StatusUpdateStateSchema: z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>;
10258
+ type StatusUpdateState = z.infer<typeof StatusUpdateStateSchema>;
10259
+ declare const StatusUpdateDataSchema: z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>;
10260
+ type StatusUpdateData = z.infer<typeof StatusUpdateDataSchema>;
10261
+ declare const StatusUpdateSchema: z.ZodObject<{
10262
+ label: z.ZodOptional<z.ZodString>;
10263
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10264
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10265
+ }, "strip", z.ZodTypeAny, {
10266
+ label?: string | undefined;
10267
+ state?: "loading" | "success" | "failure" | undefined;
10268
+ data?: Record<string, SerializableJson> | undefined;
10269
+ }, {
10270
+ label?: string | undefined;
10271
+ state?: "loading" | "success" | "failure" | undefined;
10272
+ data?: Record<string, SerializableJson> | undefined;
10273
+ }>;
10274
+ type StatusUpdate = z.infer<typeof StatusUpdateSchema>;
10275
+ declare const InitalStatusUpdateSchema: z.ZodObject<{
10276
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10277
+ label: z.ZodString;
10278
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10279
+ }, "strip", z.ZodTypeAny, {
10280
+ label: string;
10281
+ data?: Record<string, SerializableJson> | undefined;
10282
+ state?: "loading" | "success" | "failure" | undefined;
10283
+ }, {
10284
+ label: string;
10285
+ data?: Record<string, SerializableJson> | undefined;
10286
+ state?: "loading" | "success" | "failure" | undefined;
10287
+ }>;
10288
+ type InitialStatusUpdate = z.infer<typeof InitalStatusUpdateSchema>;
10289
+ declare const StatusHistorySchema: z.ZodArray<z.ZodObject<{
10290
+ label: z.ZodOptional<z.ZodString>;
10291
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10292
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10293
+ }, "strip", z.ZodTypeAny, {
10294
+ label?: string | undefined;
10295
+ state?: "loading" | "success" | "failure" | undefined;
10296
+ data?: Record<string, SerializableJson> | undefined;
10297
+ }, {
10298
+ label?: string | undefined;
10299
+ state?: "loading" | "success" | "failure" | undefined;
10300
+ data?: Record<string, SerializableJson> | undefined;
10301
+ }>, "many">;
10302
+ type StatusHistory = z.infer<typeof StatusHistorySchema>;
10303
+ declare const JobRunStatusRecordSchema: z.ZodObject<{
10304
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10305
+ label: z.ZodString;
10306
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10307
+ key: z.ZodString;
10308
+ history: z.ZodArray<z.ZodObject<{
10309
+ label: z.ZodOptional<z.ZodString>;
10310
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
10311
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
10312
+ }, "strip", z.ZodTypeAny, {
10313
+ label?: string | undefined;
10314
+ state?: "loading" | "success" | "failure" | undefined;
10315
+ data?: Record<string, SerializableJson> | undefined;
10316
+ }, {
10317
+ label?: string | undefined;
10318
+ state?: "loading" | "success" | "failure" | undefined;
10319
+ data?: Record<string, SerializableJson> | undefined;
10320
+ }>, "many">;
10321
+ }, "strip", z.ZodTypeAny, {
10322
+ key: string;
10323
+ label: string;
10324
+ history: {
10325
+ label?: string | undefined;
10326
+ state?: "loading" | "success" | "failure" | undefined;
10327
+ data?: Record<string, SerializableJson> | undefined;
10328
+ }[];
10329
+ data?: Record<string, SerializableJson> | undefined;
10330
+ state?: "loading" | "success" | "failure" | undefined;
10331
+ }, {
10332
+ key: string;
10333
+ label: string;
10334
+ history: {
10335
+ label?: string | undefined;
10336
+ state?: "loading" | "success" | "failure" | undefined;
10337
+ data?: Record<string, SerializableJson> | undefined;
10338
+ }[];
10339
+ data?: Record<string, SerializableJson> | undefined;
10340
+ state?: "loading" | "success" | "failure" | undefined;
10341
+ }>;
10342
+
9198
10343
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
9199
10344
 
9200
10345
  declare function calculateRetryAt(retryOptions: RetryOptions, attempts: number): Date | undefined;
@@ -9221,4 +10366,24 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
9221
10366
 
9222
10367
  declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
9223
10368
 
9224
- export { ApiEventLog, ApiEventLogSchema, BackgroundTaskMetadata, BackgroundTaskMetadataSchema, CachedTask, CachedTaskSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DeliverEventResponse, DeliverEventResponseSchema, DeployBackgroundTaskRequestBody, DeployBackgroundTaskRequestBodySchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FetchOperation, FetchOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, JobMetadata, JobMetadataSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, OverridableRunTaskOptions, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterSourceEventV1, RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerBodyV1, RegisterTriggerBodyV2, RegisterTriggerSource, RegisterTriggerSourceSchema, RegisteredOptionsDiff, RetryOptions, RetryOptionsSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, Style, StyleName, StyleSchema, TaskSchema, TaskStatus, TaskStatusSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, addMissingVersionField, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, replacements, urlWithSearchParams };
10369
+ declare class BloomFilter {
10370
+ private size;
10371
+ private bitArray;
10372
+ constructor(size: number);
10373
+ add(item: string): void;
10374
+ test(item: string): boolean;
10375
+ serialize(): Promise<string>;
10376
+ static deserialize(str: string, size: number): Promise<BloomFilter>;
10377
+ static NOOP_TASK_SET_SIZE: number;
10378
+ }
10379
+
10380
+ declare const API_VERSIONS: {
10381
+ readonly LAZY_LOADED_CACHED_TASKS: "2023-09-29";
10382
+ };
10383
+ declare const PLATFORM_FEATURES: {
10384
+ yieldExecution: "2023-09-29";
10385
+ lazyLoadedCachedTasks: "2023-09-29";
10386
+ };
10387
+ declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
10388
+
10389
+ export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, AutoYieldConfig, AutoYieldConfigSchema, BloomFilter, CachedTask, CachedTaskSchema, CancelRunsForEvent, CancelRunsForEventSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, EndpointIndexError, EndpointIndexErrorSchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FetchOperation, FetchOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, GetEndpointIndexResponse, GetEndpointIndexResponseSchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, IndexEndpointStats, InitialStatusUpdate, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, JobMetadata, JobMetadataSchema, JobRunStatusRecordSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterSourceEventV1, RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerBodyV1, RegisterTriggerBodyV2, RegisterTriggerSource, RegisterTriggerSourceSchema, RegisteredOptionsDiff, RetryOptions, RetryOptionsSchema, RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorSchema, RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, RunSourceContext, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaError, SchemaErrorSchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistory, StatusHistorySchema, StatusUpdate, StatusUpdateData, StatusUpdateSchema, StatusUpdateState, StatusUpdateStateSchema, Style, StyleName, StyleSchema, TaskSchema, TaskStatus, TaskStatusSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, addMissingVersionField, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, supportsFeature, urlWithSearchParams };