@trigger.dev/core 0.0.0-isomorphic-sdk-20230918151405 → 0.0.0-node-18-20231010094401

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,6 +307,7 @@ 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;
309
313
  }, "strip", z.ZodTypeAny, {
@@ -337,6 +341,7 @@ declare const ServerTaskSchema: z.ZodObject<{
337
341
  output?: DeserializedJson | undefined;
338
342
  parentId?: string | null | undefined;
339
343
  operation?: string | null | undefined;
344
+ callbackUrl?: string | null | undefined;
340
345
  }, {
341
346
  name: string;
342
347
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -368,6 +373,7 @@ declare const ServerTaskSchema: z.ZodObject<{
368
373
  output?: DeserializedJson | undefined;
369
374
  parentId?: string | null | undefined;
370
375
  operation?: string | null | undefined;
376
+ callbackUrl?: string | null | undefined;
371
377
  }>;
372
378
  type ServerTask = z.infer<typeof ServerTaskSchema>;
373
379
  declare const CachedTaskSchema: z.ZodObject<{
@@ -901,17 +907,17 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
901
907
  data: z.ZodAny;
902
908
  params: z.ZodAny;
903
909
  auth: z.ZodOptional<z.ZodObject<{
904
- type: z.ZodEnum<["oauth2"]>;
910
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
905
911
  accessToken: z.ZodString;
906
912
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
907
913
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
908
914
  }, "strip", z.ZodTypeAny, {
909
- type: "oauth2";
915
+ type: "oauth2" | "apiKey";
910
916
  accessToken: string;
911
917
  scopes?: string[] | undefined;
912
918
  additionalFields?: Record<string, string> | undefined;
913
919
  }, {
914
- type: "oauth2";
920
+ type: "oauth2" | "apiKey";
915
921
  accessToken: string;
916
922
  scopes?: string[] | undefined;
917
923
  additionalFields?: Record<string, string> | undefined;
@@ -923,7 +929,7 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
923
929
  data?: any;
924
930
  params?: any;
925
931
  auth?: {
926
- type: "oauth2";
932
+ type: "oauth2" | "apiKey";
927
933
  accessToken: string;
928
934
  scopes?: string[] | undefined;
929
935
  additionalFields?: Record<string, string> | undefined;
@@ -935,7 +941,7 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
935
941
  data?: any;
936
942
  params?: any;
937
943
  auth?: {
938
- type: "oauth2";
944
+ type: "oauth2" | "apiKey";
939
945
  accessToken: string;
940
946
  scopes?: string[] | undefined;
941
947
  additionalFields?: Record<string, string> | undefined;
@@ -948,17 +954,17 @@ declare const HttpSourceRequestSchema: z.ZodObject<{
948
954
  url: z.ZodString;
949
955
  method: z.ZodString;
950
956
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
951
- rawBody: z.ZodNullable<z.ZodOptional<z.ZodType<Uint8Array, z.ZodTypeDef, Uint8Array>>>;
957
+ rawBody: z.ZodNullable<z.ZodOptional<z.ZodType<Buffer, z.ZodTypeDef, Buffer>>>;
952
958
  }, "strip", z.ZodTypeAny, {
953
959
  url: string;
954
960
  method: string;
955
961
  headers: Record<string, string>;
956
- rawBody?: Uint8Array | null | undefined;
962
+ rawBody?: Buffer | null | undefined;
957
963
  }, {
958
964
  url: string;
959
965
  method: string;
960
966
  headers: Record<string, string>;
961
- rawBody?: Uint8Array | null | undefined;
967
+ rawBody?: Buffer | null | undefined;
962
968
  }>;
963
969
  type HttpSourceRequest = z.infer<typeof HttpSourceRequestSchema>;
964
970
  declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
@@ -971,7 +977,7 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
971
977
  "x-ts-http-method": z.ZodString;
972
978
  "x-ts-http-headers": z.ZodEffects<z.ZodString, Record<string, string>, string>;
973
979
  "x-ts-auth": z.ZodEffects<z.ZodOptional<z.ZodString>, {
974
- type: "oauth2";
980
+ type: "oauth2" | "apiKey";
975
981
  accessToken: string;
976
982
  scopes?: string[] | undefined;
977
983
  additionalFields?: Record<string, string> | undefined;
@@ -989,7 +995,7 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
989
995
  "x-ts-data"?: any;
990
996
  "x-ts-params"?: any;
991
997
  "x-ts-auth"?: {
992
- type: "oauth2";
998
+ type: "oauth2" | "apiKey";
993
999
  accessToken: string;
994
1000
  scopes?: string[] | undefined;
995
1001
  additionalFields?: Record<string, string> | undefined;
@@ -1012,76 +1018,100 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
1012
1018
  type HttpSourceRequestHeaders = z.output<typeof HttpSourceRequestHeadersSchema>;
1013
1019
  declare const PongSuccessResponseSchema: z.ZodObject<{
1014
1020
  ok: z.ZodLiteral<true>;
1021
+ triggerVersion: z.ZodOptional<z.ZodString>;
1015
1022
  }, "strip", z.ZodTypeAny, {
1016
1023
  ok: true;
1024
+ triggerVersion?: string | undefined;
1017
1025
  }, {
1018
1026
  ok: true;
1027
+ triggerVersion?: string | undefined;
1019
1028
  }>;
1020
1029
  declare const PongErrorResponseSchema: z.ZodObject<{
1021
1030
  ok: z.ZodLiteral<false>;
1022
1031
  error: z.ZodString;
1032
+ triggerVersion: z.ZodOptional<z.ZodString>;
1023
1033
  }, "strip", z.ZodTypeAny, {
1024
1034
  error: string;
1025
1035
  ok: false;
1036
+ triggerVersion?: string | undefined;
1026
1037
  }, {
1027
1038
  error: string;
1028
1039
  ok: false;
1040
+ triggerVersion?: string | undefined;
1029
1041
  }>;
1030
1042
  declare const PongResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1031
1043
  ok: z.ZodLiteral<true>;
1044
+ triggerVersion: z.ZodOptional<z.ZodString>;
1032
1045
  }, "strip", z.ZodTypeAny, {
1033
1046
  ok: true;
1047
+ triggerVersion?: string | undefined;
1034
1048
  }, {
1035
1049
  ok: true;
1050
+ triggerVersion?: string | undefined;
1036
1051
  }>, z.ZodObject<{
1037
1052
  ok: z.ZodLiteral<false>;
1038
1053
  error: z.ZodString;
1054
+ triggerVersion: z.ZodOptional<z.ZodString>;
1039
1055
  }, "strip", z.ZodTypeAny, {
1040
1056
  error: string;
1041
1057
  ok: false;
1058
+ triggerVersion?: string | undefined;
1042
1059
  }, {
1043
1060
  error: string;
1044
1061
  ok: false;
1062
+ triggerVersion?: string | undefined;
1045
1063
  }>]>;
1046
1064
  type PongResponse = z.infer<typeof PongResponseSchema>;
1047
1065
  declare const ValidateSuccessResponseSchema: z.ZodObject<{
1048
1066
  ok: z.ZodLiteral<true>;
1049
1067
  endpointId: z.ZodString;
1068
+ triggerVersion: z.ZodOptional<z.ZodString>;
1050
1069
  }, "strip", z.ZodTypeAny, {
1051
1070
  ok: true;
1052
1071
  endpointId: string;
1072
+ triggerVersion?: string | undefined;
1053
1073
  }, {
1054
1074
  ok: true;
1055
1075
  endpointId: string;
1076
+ triggerVersion?: string | undefined;
1056
1077
  }>;
1057
1078
  declare const ValidateErrorResponseSchema: z.ZodObject<{
1058
1079
  ok: z.ZodLiteral<false>;
1059
1080
  error: z.ZodString;
1081
+ triggerVersion: z.ZodOptional<z.ZodString>;
1060
1082
  }, "strip", z.ZodTypeAny, {
1061
1083
  error: string;
1062
1084
  ok: false;
1085
+ triggerVersion?: string | undefined;
1063
1086
  }, {
1064
1087
  error: string;
1065
1088
  ok: false;
1089
+ triggerVersion?: string | undefined;
1066
1090
  }>;
1067
1091
  declare const ValidateResponseSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject<{
1068
1092
  ok: z.ZodLiteral<true>;
1069
1093
  endpointId: z.ZodString;
1094
+ triggerVersion: z.ZodOptional<z.ZodString>;
1070
1095
  }, "strip", z.ZodTypeAny, {
1071
1096
  ok: true;
1072
1097
  endpointId: string;
1098
+ triggerVersion?: string | undefined;
1073
1099
  }, {
1074
1100
  ok: true;
1075
1101
  endpointId: string;
1102
+ triggerVersion?: string | undefined;
1076
1103
  }>, z.ZodObject<{
1077
1104
  ok: z.ZodLiteral<false>;
1078
1105
  error: z.ZodString;
1106
+ triggerVersion: z.ZodOptional<z.ZodString>;
1079
1107
  }, "strip", z.ZodTypeAny, {
1080
1108
  error: string;
1081
1109
  ok: false;
1110
+ triggerVersion?: string | undefined;
1082
1111
  }, {
1083
1112
  error: string;
1084
1113
  ok: false;
1114
+ triggerVersion?: string | undefined;
1085
1115
  }>]>;
1086
1116
  type ValidateResponse = z.infer<typeof ValidateResponseSchema>;
1087
1117
  declare const QueueOptionsSchema: z.ZodObject<{
@@ -1252,18 +1282,21 @@ declare const JobMetadataSchema: z.ZodObject<{
1252
1282
  }, {
1253
1283
  seconds: number;
1254
1284
  }>;
1285
+ accountId: z.ZodOptional<z.ZodString>;
1255
1286
  metadata: z.ZodAny;
1256
1287
  }, "strip", z.ZodTypeAny, {
1257
1288
  options: {
1258
1289
  seconds: number;
1259
1290
  };
1260
1291
  type: "interval";
1292
+ accountId?: string | undefined;
1261
1293
  metadata?: any;
1262
1294
  }, {
1263
1295
  options: {
1264
1296
  seconds: number;
1265
1297
  };
1266
1298
  type: "interval";
1299
+ accountId?: string | undefined;
1267
1300
  metadata?: any;
1268
1301
  }>, z.ZodObject<{
1269
1302
  type: z.ZodLiteral<"cron">;
@@ -1274,18 +1307,21 @@ declare const JobMetadataSchema: z.ZodObject<{
1274
1307
  }, {
1275
1308
  cron: string;
1276
1309
  }>;
1310
+ accountId: z.ZodOptional<z.ZodString>;
1277
1311
  metadata: z.ZodAny;
1278
1312
  }, "strip", z.ZodTypeAny, {
1279
1313
  options: {
1280
1314
  cron: string;
1281
1315
  };
1282
1316
  type: "cron";
1317
+ accountId?: string | undefined;
1283
1318
  metadata?: any;
1284
1319
  }, {
1285
1320
  options: {
1286
1321
  cron: string;
1287
1322
  };
1288
1323
  type: "cron";
1324
+ accountId?: string | undefined;
1289
1325
  metadata?: any;
1290
1326
  }>]>;
1291
1327
  }, "strip", z.ZodTypeAny, {
@@ -1295,12 +1331,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1295
1331
  cron: string;
1296
1332
  };
1297
1333
  type: "cron";
1334
+ accountId?: string | undefined;
1298
1335
  metadata?: any;
1299
1336
  } | {
1300
1337
  options: {
1301
1338
  seconds: number;
1302
1339
  };
1303
1340
  type: "interval";
1341
+ accountId?: string | undefined;
1304
1342
  metadata?: any;
1305
1343
  };
1306
1344
  }, {
@@ -1310,12 +1348,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1310
1348
  cron: string;
1311
1349
  };
1312
1350
  type: "cron";
1351
+ accountId?: string | undefined;
1313
1352
  metadata?: any;
1314
1353
  } | {
1315
1354
  options: {
1316
1355
  seconds: number;
1317
1356
  };
1318
1357
  type: "interval";
1358
+ accountId?: string | undefined;
1319
1359
  metadata?: any;
1320
1360
  };
1321
1361
  }>]>;
@@ -1334,7 +1374,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1334
1374
  id: string;
1335
1375
  instructions?: string | undefined;
1336
1376
  }>;
1337
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1377
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1338
1378
  }, "strip", z.ZodTypeAny, {
1339
1379
  id: string;
1340
1380
  metadata: {
@@ -1342,7 +1382,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1342
1382
  id: string;
1343
1383
  instructions?: string | undefined;
1344
1384
  };
1345
- authSource: "HOSTED" | "LOCAL";
1385
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1346
1386
  }, {
1347
1387
  id: string;
1348
1388
  metadata: {
@@ -1350,7 +1390,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1350
1390
  id: string;
1351
1391
  instructions?: string | undefined;
1352
1392
  };
1353
- authSource: "HOSTED" | "LOCAL";
1393
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1354
1394
  }>>;
1355
1395
  internal: z.ZodDefault<z.ZodBoolean>;
1356
1396
  enabled: z.ZodBoolean;
@@ -1403,12 +1443,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1403
1443
  cron: string;
1404
1444
  };
1405
1445
  type: "cron";
1446
+ accountId?: string | undefined;
1406
1447
  metadata?: any;
1407
1448
  } | {
1408
1449
  options: {
1409
1450
  seconds: number;
1410
1451
  };
1411
1452
  type: "interval";
1453
+ accountId?: string | undefined;
1412
1454
  metadata?: any;
1413
1455
  };
1414
1456
  };
@@ -1419,7 +1461,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1419
1461
  id: string;
1420
1462
  instructions?: string | undefined;
1421
1463
  };
1422
- authSource: "HOSTED" | "LOCAL";
1464
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1423
1465
  }>;
1424
1466
  internal: boolean;
1425
1467
  enabled: boolean;
@@ -1472,12 +1514,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1472
1514
  cron: string;
1473
1515
  };
1474
1516
  type: "cron";
1517
+ accountId?: string | undefined;
1475
1518
  metadata?: any;
1476
1519
  } | {
1477
1520
  options: {
1478
1521
  seconds: number;
1479
1522
  };
1480
1523
  type: "interval";
1524
+ accountId?: string | undefined;
1481
1525
  metadata?: any;
1482
1526
  };
1483
1527
  };
@@ -1488,7 +1532,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1488
1532
  id: string;
1489
1533
  instructions?: string | undefined;
1490
1534
  };
1491
- authSource: "HOSTED" | "LOCAL";
1535
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1492
1536
  }>;
1493
1537
  enabled: boolean;
1494
1538
  startPosition: "initial" | "latest";
@@ -1514,7 +1558,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1514
1558
  id: string;
1515
1559
  instructions?: string | undefined;
1516
1560
  }>;
1517
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1561
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1518
1562
  }, "strip", z.ZodTypeAny, {
1519
1563
  id: string;
1520
1564
  metadata: {
@@ -1522,7 +1566,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1522
1566
  id: string;
1523
1567
  instructions?: string | undefined;
1524
1568
  };
1525
- authSource: "HOSTED" | "LOCAL";
1569
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1526
1570
  }, {
1527
1571
  id: string;
1528
1572
  metadata: {
@@ -1530,7 +1574,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1530
1574
  id: string;
1531
1575
  instructions?: string | undefined;
1532
1576
  };
1533
- authSource: "HOSTED" | "LOCAL";
1577
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1534
1578
  }>;
1535
1579
  key: z.ZodString;
1536
1580
  params: z.ZodAny;
@@ -1557,7 +1601,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1557
1601
  id: string;
1558
1602
  instructions?: string | undefined;
1559
1603
  };
1560
- authSource: "HOSTED" | "LOCAL";
1604
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1561
1605
  };
1562
1606
  params?: any;
1563
1607
  registerSourceJob?: {
@@ -1576,7 +1620,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1576
1620
  id: string;
1577
1621
  instructions?: string | undefined;
1578
1622
  };
1579
- authSource: "HOSTED" | "LOCAL";
1623
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1580
1624
  };
1581
1625
  params?: any;
1582
1626
  registerSourceJob?: {
@@ -1603,7 +1647,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1603
1647
  id: string;
1604
1648
  instructions?: string | undefined;
1605
1649
  }>;
1606
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1650
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1607
1651
  }, "strip", z.ZodTypeAny, {
1608
1652
  id: string;
1609
1653
  metadata: {
@@ -1611,7 +1655,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1611
1655
  id: string;
1612
1656
  instructions?: string | undefined;
1613
1657
  };
1614
- authSource: "HOSTED" | "LOCAL";
1658
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1615
1659
  }, {
1616
1660
  id: string;
1617
1661
  metadata: {
@@ -1619,7 +1663,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1619
1663
  id: string;
1620
1664
  instructions?: string | undefined;
1621
1665
  };
1622
- authSource: "HOSTED" | "LOCAL";
1666
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1623
1667
  }>;
1624
1668
  key: z.ZodString;
1625
1669
  params: z.ZodAny;
@@ -1646,7 +1690,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1646
1690
  id: string;
1647
1691
  instructions?: string | undefined;
1648
1692
  };
1649
- authSource: "HOSTED" | "LOCAL";
1693
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1650
1694
  };
1651
1695
  params?: any;
1652
1696
  registerSourceJob?: {
@@ -1665,7 +1709,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1665
1709
  id: string;
1666
1710
  instructions?: string | undefined;
1667
1711
  };
1668
- authSource: "HOSTED" | "LOCAL";
1712
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1669
1713
  };
1670
1714
  params?: any;
1671
1715
  registerSourceJob?: {
@@ -1833,18 +1877,21 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1833
1877
  }, {
1834
1878
  seconds: number;
1835
1879
  }>;
1880
+ accountId: z.ZodOptional<z.ZodString>;
1836
1881
  metadata: z.ZodAny;
1837
1882
  }, "strip", z.ZodTypeAny, {
1838
1883
  options: {
1839
1884
  seconds: number;
1840
1885
  };
1841
1886
  type: "interval";
1887
+ accountId?: string | undefined;
1842
1888
  metadata?: any;
1843
1889
  }, {
1844
1890
  options: {
1845
1891
  seconds: number;
1846
1892
  };
1847
1893
  type: "interval";
1894
+ accountId?: string | undefined;
1848
1895
  metadata?: any;
1849
1896
  }>, z.ZodObject<{
1850
1897
  type: z.ZodLiteral<"cron">;
@@ -1855,18 +1902,21 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1855
1902
  }, {
1856
1903
  cron: string;
1857
1904
  }>;
1905
+ accountId: z.ZodOptional<z.ZodString>;
1858
1906
  metadata: z.ZodAny;
1859
1907
  }, "strip", z.ZodTypeAny, {
1860
1908
  options: {
1861
1909
  cron: string;
1862
1910
  };
1863
1911
  type: "cron";
1912
+ accountId?: string | undefined;
1864
1913
  metadata?: any;
1865
1914
  }, {
1866
1915
  options: {
1867
1916
  cron: string;
1868
1917
  };
1869
1918
  type: "cron";
1919
+ accountId?: string | undefined;
1870
1920
  metadata?: any;
1871
1921
  }>]>;
1872
1922
  }, "strip", z.ZodTypeAny, {
@@ -1876,12 +1926,14 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1876
1926
  cron: string;
1877
1927
  };
1878
1928
  type: "cron";
1929
+ accountId?: string | undefined;
1879
1930
  metadata?: any;
1880
1931
  } | {
1881
1932
  options: {
1882
1933
  seconds: number;
1883
1934
  };
1884
1935
  type: "interval";
1936
+ accountId?: string | undefined;
1885
1937
  metadata?: any;
1886
1938
  };
1887
1939
  }, {
@@ -1891,12 +1943,14 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1891
1943
  cron: string;
1892
1944
  };
1893
1945
  type: "cron";
1946
+ accountId?: string | undefined;
1894
1947
  metadata?: any;
1895
1948
  } | {
1896
1949
  options: {
1897
1950
  seconds: number;
1898
1951
  };
1899
1952
  type: "interval";
1953
+ accountId?: string | undefined;
1900
1954
  metadata?: any;
1901
1955
  };
1902
1956
  }>]>;
@@ -1915,7 +1969,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1915
1969
  id: string;
1916
1970
  instructions?: string | undefined;
1917
1971
  }>;
1918
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1972
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1919
1973
  }, "strip", z.ZodTypeAny, {
1920
1974
  id: string;
1921
1975
  metadata: {
@@ -1923,7 +1977,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1923
1977
  id: string;
1924
1978
  instructions?: string | undefined;
1925
1979
  };
1926
- authSource: "HOSTED" | "LOCAL";
1980
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1927
1981
  }, {
1928
1982
  id: string;
1929
1983
  metadata: {
@@ -1931,7 +1985,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1931
1985
  id: string;
1932
1986
  instructions?: string | undefined;
1933
1987
  };
1934
- authSource: "HOSTED" | "LOCAL";
1988
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1935
1989
  }>>;
1936
1990
  internal: z.ZodDefault<z.ZodBoolean>;
1937
1991
  enabled: z.ZodBoolean;
@@ -2134,18 +2188,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2134
2188
  }, {
2135
2189
  seconds: number;
2136
2190
  }>;
2191
+ accountId: z.ZodOptional<z.ZodString>;
2137
2192
  metadata: z.ZodAny;
2138
2193
  }, "strip", z.ZodTypeAny, {
2139
2194
  options: {
2140
2195
  seconds: number;
2141
2196
  };
2142
2197
  type: "interval";
2198
+ accountId?: string | undefined;
2143
2199
  metadata?: any;
2144
2200
  }, {
2145
2201
  options: {
2146
2202
  seconds: number;
2147
2203
  };
2148
2204
  type: "interval";
2205
+ accountId?: string | undefined;
2149
2206
  metadata?: any;
2150
2207
  }>, z.ZodObject<{
2151
2208
  type: z.ZodLiteral<"cron">;
@@ -2156,18 +2213,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2156
2213
  }, {
2157
2214
  cron: string;
2158
2215
  }>;
2216
+ accountId: z.ZodOptional<z.ZodString>;
2159
2217
  metadata: z.ZodAny;
2160
2218
  }, "strip", z.ZodTypeAny, {
2161
2219
  options: {
2162
2220
  cron: string;
2163
2221
  };
2164
2222
  type: "cron";
2223
+ accountId?: string | undefined;
2165
2224
  metadata?: any;
2166
2225
  }, {
2167
2226
  options: {
2168
2227
  cron: string;
2169
2228
  };
2170
2229
  type: "cron";
2230
+ accountId?: string | undefined;
2171
2231
  metadata?: any;
2172
2232
  }>]>;
2173
2233
  }, "strip", z.ZodTypeAny, {
@@ -2177,12 +2237,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2177
2237
  cron: string;
2178
2238
  };
2179
2239
  type: "cron";
2240
+ accountId?: string | undefined;
2180
2241
  metadata?: any;
2181
2242
  } | {
2182
2243
  options: {
2183
2244
  seconds: number;
2184
2245
  };
2185
2246
  type: "interval";
2247
+ accountId?: string | undefined;
2186
2248
  metadata?: any;
2187
2249
  };
2188
2250
  }, {
@@ -2192,12 +2254,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2192
2254
  cron: string;
2193
2255
  };
2194
2256
  type: "cron";
2257
+ accountId?: string | undefined;
2195
2258
  metadata?: any;
2196
2259
  } | {
2197
2260
  options: {
2198
2261
  seconds: number;
2199
2262
  };
2200
2263
  type: "interval";
2264
+ accountId?: string | undefined;
2201
2265
  metadata?: any;
2202
2266
  };
2203
2267
  }>]>;
@@ -2216,7 +2280,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2216
2280
  id: string;
2217
2281
  instructions?: string | undefined;
2218
2282
  }>;
2219
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2283
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2220
2284
  }, "strip", z.ZodTypeAny, {
2221
2285
  id: string;
2222
2286
  metadata: {
@@ -2224,7 +2288,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2224
2288
  id: string;
2225
2289
  instructions?: string | undefined;
2226
2290
  };
2227
- authSource: "HOSTED" | "LOCAL";
2291
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2228
2292
  }, {
2229
2293
  id: string;
2230
2294
  metadata: {
@@ -2232,7 +2296,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2232
2296
  id: string;
2233
2297
  instructions?: string | undefined;
2234
2298
  };
2235
- authSource: "HOSTED" | "LOCAL";
2299
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2236
2300
  }>>;
2237
2301
  internal: z.ZodDefault<z.ZodBoolean>;
2238
2302
  enabled: z.ZodBoolean;
@@ -2285,12 +2349,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2285
2349
  cron: string;
2286
2350
  };
2287
2351
  type: "cron";
2352
+ accountId?: string | undefined;
2288
2353
  metadata?: any;
2289
2354
  } | {
2290
2355
  options: {
2291
2356
  seconds: number;
2292
2357
  };
2293
2358
  type: "interval";
2359
+ accountId?: string | undefined;
2294
2360
  metadata?: any;
2295
2361
  };
2296
2362
  };
@@ -2301,7 +2367,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2301
2367
  id: string;
2302
2368
  instructions?: string | undefined;
2303
2369
  };
2304
- authSource: "HOSTED" | "LOCAL";
2370
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2305
2371
  }>;
2306
2372
  internal: boolean;
2307
2373
  enabled: boolean;
@@ -2354,12 +2420,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2354
2420
  cron: string;
2355
2421
  };
2356
2422
  type: "cron";
2423
+ accountId?: string | undefined;
2357
2424
  metadata?: any;
2358
2425
  } | {
2359
2426
  options: {
2360
2427
  seconds: number;
2361
2428
  };
2362
2429
  type: "interval";
2430
+ accountId?: string | undefined;
2363
2431
  metadata?: any;
2364
2432
  };
2365
2433
  };
@@ -2370,7 +2438,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2370
2438
  id: string;
2371
2439
  instructions?: string | undefined;
2372
2440
  };
2373
- authSource: "HOSTED" | "LOCAL";
2441
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2374
2442
  }>;
2375
2443
  enabled: boolean;
2376
2444
  startPosition: "initial" | "latest";
@@ -2395,7 +2463,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2395
2463
  id: string;
2396
2464
  instructions?: string | undefined;
2397
2465
  }>;
2398
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2466
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2399
2467
  }, "strip", z.ZodTypeAny, {
2400
2468
  id: string;
2401
2469
  metadata: {
@@ -2403,7 +2471,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2403
2471
  id: string;
2404
2472
  instructions?: string | undefined;
2405
2473
  };
2406
- authSource: "HOSTED" | "LOCAL";
2474
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2407
2475
  }, {
2408
2476
  id: string;
2409
2477
  metadata: {
@@ -2411,7 +2479,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2411
2479
  id: string;
2412
2480
  instructions?: string | undefined;
2413
2481
  };
2414
- authSource: "HOSTED" | "LOCAL";
2482
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2415
2483
  }>;
2416
2484
  key: z.ZodString;
2417
2485
  params: z.ZodAny;
@@ -2438,7 +2506,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2438
2506
  id: string;
2439
2507
  instructions?: string | undefined;
2440
2508
  };
2441
- authSource: "HOSTED" | "LOCAL";
2509
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2442
2510
  };
2443
2511
  params?: any;
2444
2512
  registerSourceJob?: {
@@ -2457,7 +2525,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2457
2525
  id: string;
2458
2526
  instructions?: string | undefined;
2459
2527
  };
2460
- authSource: "HOSTED" | "LOCAL";
2528
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2461
2529
  };
2462
2530
  params?: any;
2463
2531
  registerSourceJob?: {
@@ -2482,7 +2550,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2482
2550
  id: string;
2483
2551
  instructions?: string | undefined;
2484
2552
  }>;
2485
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2553
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2486
2554
  }, "strip", z.ZodTypeAny, {
2487
2555
  id: string;
2488
2556
  metadata: {
@@ -2490,7 +2558,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2490
2558
  id: string;
2491
2559
  instructions?: string | undefined;
2492
2560
  };
2493
- authSource: "HOSTED" | "LOCAL";
2561
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2494
2562
  }, {
2495
2563
  id: string;
2496
2564
  metadata: {
@@ -2498,7 +2566,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2498
2566
  id: string;
2499
2567
  instructions?: string | undefined;
2500
2568
  };
2501
- authSource: "HOSTED" | "LOCAL";
2569
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2502
2570
  }>;
2503
2571
  key: z.ZodString;
2504
2572
  params: z.ZodAny;
@@ -2525,7 +2593,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2525
2593
  id: string;
2526
2594
  instructions?: string | undefined;
2527
2595
  };
2528
- authSource: "HOSTED" | "LOCAL";
2596
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2529
2597
  };
2530
2598
  params?: any;
2531
2599
  registerSourceJob?: {
@@ -2544,7 +2612,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2544
2612
  id: string;
2545
2613
  instructions?: string | undefined;
2546
2614
  };
2547
- authSource: "HOSTED" | "LOCAL";
2615
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2548
2616
  };
2549
2617
  params?: any;
2550
2618
  registerSourceJob?: {
@@ -2563,7 +2631,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2563
2631
  id: string;
2564
2632
  instructions?: string | undefined;
2565
2633
  };
2566
- authSource: "HOSTED" | "LOCAL";
2634
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2567
2635
  };
2568
2636
  params?: any;
2569
2637
  registerSourceJob?: {
@@ -2582,7 +2650,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2582
2650
  id: string;
2583
2651
  instructions?: string | undefined;
2584
2652
  };
2585
- authSource: "HOSTED" | "LOCAL";
2653
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2586
2654
  };
2587
2655
  params?: any;
2588
2656
  registerSourceJob?: {
@@ -2749,18 +2817,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2749
2817
  }, {
2750
2818
  seconds: number;
2751
2819
  }>;
2820
+ accountId: z.ZodOptional<z.ZodString>;
2752
2821
  metadata: z.ZodAny;
2753
2822
  }, "strip", z.ZodTypeAny, {
2754
2823
  options: {
2755
2824
  seconds: number;
2756
2825
  };
2757
2826
  type: "interval";
2827
+ accountId?: string | undefined;
2758
2828
  metadata?: any;
2759
2829
  }, {
2760
2830
  options: {
2761
2831
  seconds: number;
2762
2832
  };
2763
2833
  type: "interval";
2834
+ accountId?: string | undefined;
2764
2835
  metadata?: any;
2765
2836
  }>, z.ZodObject<{
2766
2837
  type: z.ZodLiteral<"cron">;
@@ -2771,18 +2842,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2771
2842
  }, {
2772
2843
  cron: string;
2773
2844
  }>;
2845
+ accountId: z.ZodOptional<z.ZodString>;
2774
2846
  metadata: z.ZodAny;
2775
2847
  }, "strip", z.ZodTypeAny, {
2776
2848
  options: {
2777
2849
  cron: string;
2778
2850
  };
2779
2851
  type: "cron";
2852
+ accountId?: string | undefined;
2780
2853
  metadata?: any;
2781
2854
  }, {
2782
2855
  options: {
2783
2856
  cron: string;
2784
2857
  };
2785
2858
  type: "cron";
2859
+ accountId?: string | undefined;
2786
2860
  metadata?: any;
2787
2861
  }>]>;
2788
2862
  }, "strip", z.ZodTypeAny, {
@@ -2792,12 +2866,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2792
2866
  cron: string;
2793
2867
  };
2794
2868
  type: "cron";
2869
+ accountId?: string | undefined;
2795
2870
  metadata?: any;
2796
2871
  } | {
2797
2872
  options: {
2798
2873
  seconds: number;
2799
2874
  };
2800
2875
  type: "interval";
2876
+ accountId?: string | undefined;
2801
2877
  metadata?: any;
2802
2878
  };
2803
2879
  }, {
@@ -2807,12 +2883,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2807
2883
  cron: string;
2808
2884
  };
2809
2885
  type: "cron";
2886
+ accountId?: string | undefined;
2810
2887
  metadata?: any;
2811
2888
  } | {
2812
2889
  options: {
2813
2890
  seconds: number;
2814
2891
  };
2815
2892
  type: "interval";
2893
+ accountId?: string | undefined;
2816
2894
  metadata?: any;
2817
2895
  };
2818
2896
  }>]>;
@@ -2831,7 +2909,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2831
2909
  id: string;
2832
2910
  instructions?: string | undefined;
2833
2911
  }>;
2834
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2912
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2835
2913
  }, "strip", z.ZodTypeAny, {
2836
2914
  id: string;
2837
2915
  metadata: {
@@ -2839,7 +2917,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2839
2917
  id: string;
2840
2918
  instructions?: string | undefined;
2841
2919
  };
2842
- authSource: "HOSTED" | "LOCAL";
2920
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2843
2921
  }, {
2844
2922
  id: string;
2845
2923
  metadata: {
@@ -2847,7 +2925,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2847
2925
  id: string;
2848
2926
  instructions?: string | undefined;
2849
2927
  };
2850
- authSource: "HOSTED" | "LOCAL";
2928
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2851
2929
  }>>;
2852
2930
  internal: z.ZodDefault<z.ZodBoolean>;
2853
2931
  enabled: z.ZodBoolean;
@@ -2964,12 +3042,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2964
3042
  cron: string;
2965
3043
  };
2966
3044
  type: "cron";
3045
+ accountId?: string | undefined;
2967
3046
  metadata?: any;
2968
3047
  } | {
2969
3048
  options: {
2970
3049
  seconds: number;
2971
3050
  };
2972
3051
  type: "interval";
3052
+ accountId?: string | undefined;
2973
3053
  metadata?: any;
2974
3054
  };
2975
3055
  };
@@ -2980,7 +3060,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2980
3060
  id: string;
2981
3061
  instructions?: string | undefined;
2982
3062
  };
2983
- authSource: "HOSTED" | "LOCAL";
3063
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2984
3064
  }>;
2985
3065
  internal: boolean;
2986
3066
  enabled: boolean;
@@ -2999,7 +3079,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2999
3079
  id: string;
3000
3080
  instructions?: string | undefined;
3001
3081
  };
3002
- authSource: "HOSTED" | "LOCAL";
3082
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3003
3083
  };
3004
3084
  params?: any;
3005
3085
  registerSourceJob?: {
@@ -3018,7 +3098,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3018
3098
  id: string;
3019
3099
  instructions?: string | undefined;
3020
3100
  };
3021
- authSource: "HOSTED" | "LOCAL";
3101
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3022
3102
  };
3023
3103
  params?: any;
3024
3104
  registerSourceJob?: {
@@ -3092,12 +3172,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3092
3172
  cron: string;
3093
3173
  };
3094
3174
  type: "cron";
3175
+ accountId?: string | undefined;
3095
3176
  metadata?: any;
3096
3177
  } | {
3097
3178
  options: {
3098
3179
  seconds: number;
3099
3180
  };
3100
3181
  type: "interval";
3182
+ accountId?: string | undefined;
3101
3183
  metadata?: any;
3102
3184
  };
3103
3185
  };
@@ -3108,7 +3190,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3108
3190
  id: string;
3109
3191
  instructions?: string | undefined;
3110
3192
  };
3111
- authSource: "HOSTED" | "LOCAL";
3193
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3112
3194
  }>;
3113
3195
  enabled: boolean;
3114
3196
  startPosition: "initial" | "latest";
@@ -3136,6 +3218,13 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3136
3218
  }[];
3137
3219
  }>;
3138
3220
  type IndexEndpointResponse = z.infer<typeof IndexEndpointResponseSchema>;
3221
+ declare const EndpointHeadersSchema: z.ZodObject<{
3222
+ "trigger-version": z.ZodOptional<z.ZodString>;
3223
+ }, "strip", z.ZodTypeAny, {
3224
+ "trigger-version"?: string | undefined;
3225
+ }, {
3226
+ "trigger-version"?: string | undefined;
3227
+ }>;
3139
3228
  declare const RawEventSchema: z.ZodObject<{
3140
3229
  /** The `name` property must exactly match any subscriptions you want to
3141
3230
  trigger. */
@@ -3364,6 +3453,7 @@ declare const RunSourceContextSchema: z.ZodObject<{
3364
3453
  id: string;
3365
3454
  metadata?: any;
3366
3455
  }>;
3456
+ type RunSourceContext = z.infer<typeof RunSourceContextSchema>;
3367
3457
  declare const RunJobBodySchema: z.ZodObject<{
3368
3458
  event: z.ZodObject<{
3369
3459
  /** The `id` of the event that was sent.
@@ -3509,22 +3599,25 @@ declare const RunJobBodySchema: z.ZodObject<{
3509
3599
  output?: DeserializedJson | undefined;
3510
3600
  parentId?: string | null | undefined;
3511
3601
  }>, "many">>;
3602
+ cachedTaskCursor: z.ZodOptional<z.ZodString>;
3603
+ noopTasksSet: z.ZodOptional<z.ZodString>;
3512
3604
  connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3513
- type: z.ZodEnum<["oauth2"]>;
3605
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
3514
3606
  accessToken: z.ZodString;
3515
3607
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3516
3608
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3517
3609
  }, "strip", z.ZodTypeAny, {
3518
- type: "oauth2";
3610
+ type: "oauth2" | "apiKey";
3519
3611
  accessToken: string;
3520
3612
  scopes?: string[] | undefined;
3521
3613
  additionalFields?: Record<string, string> | undefined;
3522
3614
  }, {
3523
- type: "oauth2";
3615
+ type: "oauth2" | "apiKey";
3524
3616
  accessToken: string;
3525
3617
  scopes?: string[] | undefined;
3526
3618
  additionalFields?: Record<string, string> | undefined;
3527
3619
  }>>>;
3620
+ yieldedExecutions: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3528
3621
  }, "strip", z.ZodTypeAny, {
3529
3622
  event: {
3530
3623
  name: string;
@@ -3576,12 +3669,15 @@ declare const RunJobBodySchema: z.ZodObject<{
3576
3669
  output?: DeserializedJson | undefined;
3577
3670
  parentId?: string | null | undefined;
3578
3671
  }[] | undefined;
3672
+ cachedTaskCursor?: string | undefined;
3673
+ noopTasksSet?: string | undefined;
3579
3674
  connections?: Record<string, {
3580
- type: "oauth2";
3675
+ type: "oauth2" | "apiKey";
3581
3676
  accessToken: string;
3582
3677
  scopes?: string[] | undefined;
3583
3678
  additionalFields?: Record<string, string> | undefined;
3584
3679
  }> | undefined;
3680
+ yieldedExecutions?: string[] | undefined;
3585
3681
  }, {
3586
3682
  event: {
3587
3683
  name: string;
@@ -3633,12 +3729,15 @@ declare const RunJobBodySchema: z.ZodObject<{
3633
3729
  output?: DeserializedJson | undefined;
3634
3730
  parentId?: string | null | undefined;
3635
3731
  }[] | undefined;
3732
+ cachedTaskCursor?: string | undefined;
3733
+ noopTasksSet?: string | undefined;
3636
3734
  connections?: Record<string, {
3637
- type: "oauth2";
3735
+ type: "oauth2" | "apiKey";
3638
3736
  accessToken: string;
3639
3737
  scopes?: string[] | undefined;
3640
3738
  additionalFields?: Record<string, string> | undefined;
3641
3739
  }> | undefined;
3740
+ yieldedExecutions?: string[] | undefined;
3642
3741
  }>;
3643
3742
  type RunJobBody = z.infer<typeof RunJobBodySchema>;
3644
3743
  declare const RunJobErrorSchema: z.ZodObject<{
@@ -3707,6 +3806,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3707
3806
  variant?: string | undefined;
3708
3807
  }>>>;
3709
3808
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3809
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3710
3810
  }, "strip", z.ZodTypeAny, {
3711
3811
  name: string;
3712
3812
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -3736,6 +3836,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3736
3836
  variant?: string | undefined;
3737
3837
  } | null | undefined;
3738
3838
  operation?: string | null | undefined;
3839
+ callbackUrl?: string | null | undefined;
3739
3840
  }, {
3740
3841
  name: string;
3741
3842
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -3765,6 +3866,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3765
3866
  variant?: string | undefined;
3766
3867
  } | null | undefined;
3767
3868
  operation?: string | null | undefined;
3869
+ callbackUrl?: string | null | undefined;
3768
3870
  }>>;
3769
3871
  }, "strip", z.ZodTypeAny, {
3770
3872
  error: {
@@ -3802,6 +3904,7 @@ declare const RunJobErrorSchema: z.ZodObject<{
3802
3904
  variant?: string | undefined;
3803
3905
  } | null | undefined;
3804
3906
  operation?: string | null | undefined;
3907
+ callbackUrl?: string | null | undefined;
3805
3908
  } | undefined;
3806
3909
  }, {
3807
3910
  error: {
@@ -3839,9 +3942,73 @@ declare const RunJobErrorSchema: z.ZodObject<{
3839
3942
  variant?: string | undefined;
3840
3943
  } | null | undefined;
3841
3944
  operation?: string | null | undefined;
3945
+ callbackUrl?: string | null | undefined;
3842
3946
  } | undefined;
3843
3947
  }>;
3844
3948
  type RunJobError = z.infer<typeof RunJobErrorSchema>;
3949
+ declare const RunJobYieldExecutionErrorSchema: z.ZodObject<{
3950
+ status: z.ZodLiteral<"YIELD_EXECUTION">;
3951
+ key: z.ZodString;
3952
+ }, "strip", z.ZodTypeAny, {
3953
+ key: string;
3954
+ status: "YIELD_EXECUTION";
3955
+ }, {
3956
+ key: string;
3957
+ status: "YIELD_EXECUTION";
3958
+ }>;
3959
+ type RunJobYieldExecutionError = z.infer<typeof RunJobYieldExecutionErrorSchema>;
3960
+ declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
3961
+ status: z.ZodLiteral<"INVALID_PAYLOAD">;
3962
+ errors: z.ZodArray<z.ZodObject<{
3963
+ path: z.ZodArray<z.ZodString, "many">;
3964
+ message: z.ZodString;
3965
+ }, "strip", z.ZodTypeAny, {
3966
+ message: string;
3967
+ path: string[];
3968
+ }, {
3969
+ message: string;
3970
+ path: string[];
3971
+ }>, "many">;
3972
+ }, "strip", z.ZodTypeAny, {
3973
+ status: "INVALID_PAYLOAD";
3974
+ errors: {
3975
+ message: string;
3976
+ path: string[];
3977
+ }[];
3978
+ }, {
3979
+ status: "INVALID_PAYLOAD";
3980
+ errors: {
3981
+ message: string;
3982
+ path: string[];
3983
+ }[];
3984
+ }>;
3985
+ type RunJobInvalidPayloadError = z.infer<typeof RunJobInvalidPayloadErrorSchema>;
3986
+ declare const RunJobUnresolvedAuthErrorSchema: z.ZodObject<{
3987
+ status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
3988
+ issues: z.ZodRecord<z.ZodString, z.ZodObject<{
3989
+ id: z.ZodString;
3990
+ error: z.ZodString;
3991
+ }, "strip", z.ZodTypeAny, {
3992
+ error: string;
3993
+ id: string;
3994
+ }, {
3995
+ error: string;
3996
+ id: string;
3997
+ }>>;
3998
+ }, "strip", z.ZodTypeAny, {
3999
+ status: "UNRESOLVED_AUTH_ERROR";
4000
+ issues: Record<string, {
4001
+ error: string;
4002
+ id: string;
4003
+ }>;
4004
+ }, {
4005
+ status: "UNRESOLVED_AUTH_ERROR";
4006
+ issues: Record<string, {
4007
+ error: string;
4008
+ id: string;
4009
+ }>;
4010
+ }>;
4011
+ type RunJobUnresolvedAuthError = z.infer<typeof RunJobUnresolvedAuthErrorSchema>;
3845
4012
  declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3846
4013
  status: z.ZodLiteral<"RESUME_WITH_TASK">;
3847
4014
  task: z.ZodObject<{
@@ -3895,6 +4062,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3895
4062
  variant?: string | undefined;
3896
4063
  }>>>;
3897
4064
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4065
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
3898
4066
  }, "strip", z.ZodTypeAny, {
3899
4067
  name: string;
3900
4068
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -3924,6 +4092,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3924
4092
  variant?: string | undefined;
3925
4093
  } | null | undefined;
3926
4094
  operation?: string | null | undefined;
4095
+ callbackUrl?: string | null | undefined;
3927
4096
  }, {
3928
4097
  name: string;
3929
4098
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -3953,6 +4122,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3953
4122
  variant?: string | undefined;
3954
4123
  } | null | undefined;
3955
4124
  operation?: string | null | undefined;
4125
+ callbackUrl?: string | null | undefined;
3956
4126
  }>;
3957
4127
  }, "strip", z.ZodTypeAny, {
3958
4128
  status: "RESUME_WITH_TASK";
@@ -3985,6 +4155,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3985
4155
  variant?: string | undefined;
3986
4156
  } | null | undefined;
3987
4157
  operation?: string | null | undefined;
4158
+ callbackUrl?: string | null | undefined;
3988
4159
  };
3989
4160
  }, {
3990
4161
  status: "RESUME_WITH_TASK";
@@ -4017,6 +4188,7 @@ declare const RunJobResumeWithTaskSchema: z.ZodObject<{
4017
4188
  variant?: string | undefined;
4018
4189
  } | null | undefined;
4019
4190
  operation?: string | null | undefined;
4191
+ callbackUrl?: string | null | undefined;
4020
4192
  };
4021
4193
  }>;
4022
4194
  type RunJobResumeWithTask = z.infer<typeof RunJobResumeWithTaskSchema>;
@@ -4073,6 +4245,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4073
4245
  variant?: string | undefined;
4074
4246
  }>>>;
4075
4247
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4248
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4076
4249
  }, "strip", z.ZodTypeAny, {
4077
4250
  name: string;
4078
4251
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4102,6 +4275,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4102
4275
  variant?: string | undefined;
4103
4276
  } | null | undefined;
4104
4277
  operation?: string | null | undefined;
4278
+ callbackUrl?: string | null | undefined;
4105
4279
  }, {
4106
4280
  name: string;
4107
4281
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4131,6 +4305,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4131
4305
  variant?: string | undefined;
4132
4306
  } | null | undefined;
4133
4307
  operation?: string | null | undefined;
4308
+ callbackUrl?: string | null | undefined;
4134
4309
  }>;
4135
4310
  error: z.ZodObject<{
4136
4311
  message: z.ZodString;
@@ -4182,6 +4357,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4182
4357
  variant?: string | undefined;
4183
4358
  } | null | undefined;
4184
4359
  operation?: string | null | undefined;
4360
+ callbackUrl?: string | null | undefined;
4185
4361
  };
4186
4362
  retryAt: Date;
4187
4363
  }, {
@@ -4220,6 +4396,7 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
4220
4396
  variant?: string | undefined;
4221
4397
  } | null | undefined;
4222
4398
  operation?: string | null | undefined;
4399
+ callbackUrl?: string | null | undefined;
4223
4400
  };
4224
4401
  retryAt: Date;
4225
4402
  }>;
@@ -4277,6 +4454,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4277
4454
  variant?: string | undefined;
4278
4455
  }>>>;
4279
4456
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4457
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4280
4458
  }, "strip", z.ZodTypeAny, {
4281
4459
  name: string;
4282
4460
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4306,6 +4484,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4306
4484
  variant?: string | undefined;
4307
4485
  } | null | undefined;
4308
4486
  operation?: string | null | undefined;
4487
+ callbackUrl?: string | null | undefined;
4309
4488
  }, {
4310
4489
  name: string;
4311
4490
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4335,6 +4514,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4335
4514
  variant?: string | undefined;
4336
4515
  } | null | undefined;
4337
4516
  operation?: string | null | undefined;
4517
+ callbackUrl?: string | null | undefined;
4338
4518
  }>;
4339
4519
  }, "strip", z.ZodTypeAny, {
4340
4520
  status: "CANCELED";
@@ -4367,6 +4547,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4367
4547
  variant?: string | undefined;
4368
4548
  } | null | undefined;
4369
4549
  operation?: string | null | undefined;
4550
+ callbackUrl?: string | null | undefined;
4370
4551
  };
4371
4552
  }, {
4372
4553
  status: "CANCELED";
@@ -4399,6 +4580,7 @@ declare const RunJobCanceledWithTaskSchema: z.ZodObject<{
4399
4580
  variant?: string | undefined;
4400
4581
  } | null | undefined;
4401
4582
  operation?: string | null | undefined;
4583
+ callbackUrl?: string | null | undefined;
4402
4584
  };
4403
4585
  }>;
4404
4586
  type RunJobCanceledWithTask = z.infer<typeof RunJobCanceledWithTaskSchema>;
@@ -4414,6 +4596,15 @@ declare const RunJobSuccessSchema: z.ZodObject<{
4414
4596
  }>;
4415
4597
  type RunJobSuccess = z.infer<typeof RunJobSuccessSchema>;
4416
4598
  declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
4599
+ status: z.ZodLiteral<"YIELD_EXECUTION">;
4600
+ key: z.ZodString;
4601
+ }, "strip", z.ZodTypeAny, {
4602
+ key: string;
4603
+ status: "YIELD_EXECUTION";
4604
+ }, {
4605
+ key: string;
4606
+ status: "YIELD_EXECUTION";
4607
+ }>, z.ZodObject<{
4417
4608
  status: z.ZodLiteral<"ERROR">;
4418
4609
  error: z.ZodObject<{
4419
4610
  message: z.ZodString;
@@ -4479,6 +4670,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4479
4670
  variant?: string | undefined;
4480
4671
  }>>>;
4481
4672
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4673
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4482
4674
  }, "strip", z.ZodTypeAny, {
4483
4675
  name: string;
4484
4676
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4508,6 +4700,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4508
4700
  variant?: string | undefined;
4509
4701
  } | null | undefined;
4510
4702
  operation?: string | null | undefined;
4703
+ callbackUrl?: string | null | undefined;
4511
4704
  }, {
4512
4705
  name: string;
4513
4706
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4537,6 +4730,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4537
4730
  variant?: string | undefined;
4538
4731
  } | null | undefined;
4539
4732
  operation?: string | null | undefined;
4733
+ callbackUrl?: string | null | undefined;
4540
4734
  }>>;
4541
4735
  }, "strip", z.ZodTypeAny, {
4542
4736
  error: {
@@ -4574,6 +4768,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4574
4768
  variant?: string | undefined;
4575
4769
  } | null | undefined;
4576
4770
  operation?: string | null | undefined;
4771
+ callbackUrl?: string | null | undefined;
4577
4772
  } | undefined;
4578
4773
  }, {
4579
4774
  error: {
@@ -4611,7 +4806,56 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4611
4806
  variant?: string | undefined;
4612
4807
  } | null | undefined;
4613
4808
  operation?: string | null | undefined;
4809
+ callbackUrl?: string | null | undefined;
4614
4810
  } | undefined;
4811
+ }>, z.ZodObject<{
4812
+ status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
4813
+ issues: z.ZodRecord<z.ZodString, z.ZodObject<{
4814
+ id: z.ZodString;
4815
+ error: z.ZodString;
4816
+ }, "strip", z.ZodTypeAny, {
4817
+ error: string;
4818
+ id: string;
4819
+ }, {
4820
+ error: string;
4821
+ id: string;
4822
+ }>>;
4823
+ }, "strip", z.ZodTypeAny, {
4824
+ status: "UNRESOLVED_AUTH_ERROR";
4825
+ issues: Record<string, {
4826
+ error: string;
4827
+ id: string;
4828
+ }>;
4829
+ }, {
4830
+ status: "UNRESOLVED_AUTH_ERROR";
4831
+ issues: Record<string, {
4832
+ error: string;
4833
+ id: string;
4834
+ }>;
4835
+ }>, z.ZodObject<{
4836
+ status: z.ZodLiteral<"INVALID_PAYLOAD">;
4837
+ errors: z.ZodArray<z.ZodObject<{
4838
+ path: z.ZodArray<z.ZodString, "many">;
4839
+ message: z.ZodString;
4840
+ }, "strip", z.ZodTypeAny, {
4841
+ message: string;
4842
+ path: string[];
4843
+ }, {
4844
+ message: string;
4845
+ path: string[];
4846
+ }>, "many">;
4847
+ }, "strip", z.ZodTypeAny, {
4848
+ status: "INVALID_PAYLOAD";
4849
+ errors: {
4850
+ message: string;
4851
+ path: string[];
4852
+ }[];
4853
+ }, {
4854
+ status: "INVALID_PAYLOAD";
4855
+ errors: {
4856
+ message: string;
4857
+ path: string[];
4858
+ }[];
4615
4859
  }>, z.ZodObject<{
4616
4860
  status: z.ZodLiteral<"RESUME_WITH_TASK">;
4617
4861
  task: z.ZodObject<{
@@ -4665,6 +4909,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4665
4909
  variant?: string | undefined;
4666
4910
  }>>>;
4667
4911
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4912
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4668
4913
  }, "strip", z.ZodTypeAny, {
4669
4914
  name: string;
4670
4915
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4694,6 +4939,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4694
4939
  variant?: string | undefined;
4695
4940
  } | null | undefined;
4696
4941
  operation?: string | null | undefined;
4942
+ callbackUrl?: string | null | undefined;
4697
4943
  }, {
4698
4944
  name: string;
4699
4945
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4723,6 +4969,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4723
4969
  variant?: string | undefined;
4724
4970
  } | null | undefined;
4725
4971
  operation?: string | null | undefined;
4972
+ callbackUrl?: string | null | undefined;
4726
4973
  }>;
4727
4974
  }, "strip", z.ZodTypeAny, {
4728
4975
  status: "RESUME_WITH_TASK";
@@ -4755,6 +5002,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4755
5002
  variant?: string | undefined;
4756
5003
  } | null | undefined;
4757
5004
  operation?: string | null | undefined;
5005
+ callbackUrl?: string | null | undefined;
4758
5006
  };
4759
5007
  }, {
4760
5008
  status: "RESUME_WITH_TASK";
@@ -4787,6 +5035,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4787
5035
  variant?: string | undefined;
4788
5036
  } | null | undefined;
4789
5037
  operation?: string | null | undefined;
5038
+ callbackUrl?: string | null | undefined;
4790
5039
  };
4791
5040
  }>, z.ZodObject<{
4792
5041
  status: z.ZodLiteral<"RETRY_WITH_TASK">;
@@ -4841,6 +5090,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4841
5090
  variant?: string | undefined;
4842
5091
  }>>>;
4843
5092
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5093
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
4844
5094
  }, "strip", z.ZodTypeAny, {
4845
5095
  name: string;
4846
5096
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4870,6 +5120,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4870
5120
  variant?: string | undefined;
4871
5121
  } | null | undefined;
4872
5122
  operation?: string | null | undefined;
5123
+ callbackUrl?: string | null | undefined;
4873
5124
  }, {
4874
5125
  name: string;
4875
5126
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -4899,6 +5150,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4899
5150
  variant?: string | undefined;
4900
5151
  } | null | undefined;
4901
5152
  operation?: string | null | undefined;
5153
+ callbackUrl?: string | null | undefined;
4902
5154
  }>;
4903
5155
  error: z.ZodObject<{
4904
5156
  message: z.ZodString;
@@ -4950,6 +5202,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4950
5202
  variant?: string | undefined;
4951
5203
  } | null | undefined;
4952
5204
  operation?: string | null | undefined;
5205
+ callbackUrl?: string | null | undefined;
4953
5206
  };
4954
5207
  retryAt: Date;
4955
5208
  }, {
@@ -4988,6 +5241,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4988
5241
  variant?: string | undefined;
4989
5242
  } | null | undefined;
4990
5243
  operation?: string | null | undefined;
5244
+ callbackUrl?: string | null | undefined;
4991
5245
  };
4992
5246
  retryAt: Date;
4993
5247
  }>, z.ZodObject<{
@@ -5043,6 +5297,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5043
5297
  variant?: string | undefined;
5044
5298
  }>>>;
5045
5299
  operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5300
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
5046
5301
  }, "strip", z.ZodTypeAny, {
5047
5302
  name: string;
5048
5303
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5072,6 +5327,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5072
5327
  variant?: string | undefined;
5073
5328
  } | null | undefined;
5074
5329
  operation?: string | null | undefined;
5330
+ callbackUrl?: string | null | undefined;
5075
5331
  }, {
5076
5332
  name: string;
5077
5333
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5101,6 +5357,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5101
5357
  variant?: string | undefined;
5102
5358
  } | null | undefined;
5103
5359
  operation?: string | null | undefined;
5360
+ callbackUrl?: string | null | undefined;
5104
5361
  }>;
5105
5362
  }, "strip", z.ZodTypeAny, {
5106
5363
  status: "CANCELED";
@@ -5133,6 +5390,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5133
5390
  variant?: string | undefined;
5134
5391
  } | null | undefined;
5135
5392
  operation?: string | null | undefined;
5393
+ callbackUrl?: string | null | undefined;
5136
5394
  };
5137
5395
  }, {
5138
5396
  status: "CANCELED";
@@ -5165,6 +5423,7 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
5165
5423
  variant?: string | undefined;
5166
5424
  } | null | undefined;
5167
5425
  operation?: string | null | undefined;
5426
+ callbackUrl?: string | null | undefined;
5168
5427
  };
5169
5428
  }>, z.ZodObject<{
5170
5429
  status: z.ZodLiteral<"SUCCESS">;
@@ -5548,6 +5807,17 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5548
5807
  style: "normal" | "minimal";
5549
5808
  variant?: string | undefined;
5550
5809
  }>>;
5810
+ /** 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. */
5811
+ callback: z.ZodOptional<z.ZodObject<{
5812
+ enabled: z.ZodOptional<z.ZodBoolean>;
5813
+ timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
5814
+ }, "strip", z.ZodTypeAny, {
5815
+ enabled?: boolean | undefined;
5816
+ timeoutInSeconds?: number | undefined;
5817
+ }, {
5818
+ enabled?: boolean | undefined;
5819
+ timeoutInSeconds?: number | undefined;
5820
+ }>>;
5551
5821
  /** Allows you to link the Integration connection in the logs. This is handled automatically in integrations. */
5552
5822
  connectionKey: z.ZodOptional<z.ZodString>;
5553
5823
  /** 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. */
@@ -5641,18 +5911,21 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5641
5911
  }, {
5642
5912
  seconds: number;
5643
5913
  }>;
5914
+ accountId: z.ZodOptional<z.ZodString>;
5644
5915
  metadata: z.ZodAny;
5645
5916
  }, "strip", z.ZodTypeAny, {
5646
5917
  options: {
5647
5918
  seconds: number;
5648
5919
  };
5649
5920
  type: "interval";
5921
+ accountId?: string | undefined;
5650
5922
  metadata?: any;
5651
5923
  }, {
5652
5924
  options: {
5653
5925
  seconds: number;
5654
5926
  };
5655
5927
  type: "interval";
5928
+ accountId?: string | undefined;
5656
5929
  metadata?: any;
5657
5930
  }>, z.ZodObject<{
5658
5931
  type: z.ZodLiteral<"cron">;
@@ -5663,18 +5936,21 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5663
5936
  }, {
5664
5937
  cron: string;
5665
5938
  }>;
5939
+ accountId: z.ZodOptional<z.ZodString>;
5666
5940
  metadata: z.ZodAny;
5667
5941
  }, "strip", z.ZodTypeAny, {
5668
5942
  options: {
5669
5943
  cron: string;
5670
5944
  };
5671
5945
  type: "cron";
5946
+ accountId?: string | undefined;
5672
5947
  metadata?: any;
5673
5948
  }, {
5674
5949
  options: {
5675
5950
  cron: string;
5676
5951
  };
5677
5952
  type: "cron";
5953
+ accountId?: string | undefined;
5678
5954
  metadata?: any;
5679
5955
  }>]>;
5680
5956
  }, "strip", z.ZodTypeAny, {
@@ -5684,12 +5960,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5684
5960
  cron: string;
5685
5961
  };
5686
5962
  type: "cron";
5963
+ accountId?: string | undefined;
5687
5964
  metadata?: any;
5688
5965
  } | {
5689
5966
  options: {
5690
5967
  seconds: number;
5691
5968
  };
5692
5969
  type: "interval";
5970
+ accountId?: string | undefined;
5693
5971
  metadata?: any;
5694
5972
  };
5695
5973
  }, {
@@ -5699,12 +5977,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5699
5977
  cron: string;
5700
5978
  };
5701
5979
  type: "cron";
5980
+ accountId?: string | undefined;
5702
5981
  metadata?: any;
5703
5982
  } | {
5704
5983
  options: {
5705
5984
  seconds: number;
5706
5985
  };
5707
5986
  type: "interval";
5987
+ accountId?: string | undefined;
5708
5988
  metadata?: any;
5709
5989
  };
5710
5990
  }>]>>;
@@ -5732,6 +6012,10 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5732
6012
  style: "normal" | "minimal";
5733
6013
  variant?: string | undefined;
5734
6014
  } | undefined;
6015
+ callback?: {
6016
+ enabled?: boolean | undefined;
6017
+ timeoutInSeconds?: number | undefined;
6018
+ } | undefined;
5735
6019
  connectionKey?: string | undefined;
5736
6020
  operation?: "fetch" | undefined;
5737
6021
  redact?: {
@@ -5761,12 +6045,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5761
6045
  cron: string;
5762
6046
  };
5763
6047
  type: "cron";
6048
+ accountId?: string | undefined;
5764
6049
  metadata?: any;
5765
6050
  } | {
5766
6051
  options: {
5767
6052
  seconds: number;
5768
6053
  };
5769
6054
  type: "interval";
6055
+ accountId?: string | undefined;
5770
6056
  metadata?: any;
5771
6057
  };
5772
6058
  } | undefined;
@@ -5793,6 +6079,10 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5793
6079
  style: "normal" | "minimal";
5794
6080
  variant?: string | undefined;
5795
6081
  } | undefined;
6082
+ callback?: {
6083
+ enabled?: boolean | undefined;
6084
+ timeoutInSeconds?: number | undefined;
6085
+ } | undefined;
5796
6086
  connectionKey?: string | undefined;
5797
6087
  operation?: "fetch" | undefined;
5798
6088
  noop?: boolean | undefined;
@@ -5823,12 +6113,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5823
6113
  cron: string;
5824
6114
  };
5825
6115
  type: "cron";
6116
+ accountId?: string | undefined;
5826
6117
  metadata?: any;
5827
6118
  } | {
5828
6119
  options: {
5829
6120
  seconds: number;
5830
6121
  };
5831
6122
  type: "interval";
6123
+ accountId?: string | undefined;
5832
6124
  metadata?: any;
5833
6125
  };
5834
6126
  } | undefined;
@@ -5866,6 +6158,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5866
6158
  url?: string | undefined;
5867
6159
  }>, "many">>;
5868
6160
  operation: z.ZodOptional<z.ZodEnum<["fetch"]>>;
6161
+ displayKey: z.ZodOptional<z.ZodString>;
5869
6162
  trigger: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
5870
6163
  type: z.ZodLiteral<"dynamic">;
5871
6164
  id: z.ZodString;
@@ -5946,18 +6239,21 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5946
6239
  }, {
5947
6240
  seconds: number;
5948
6241
  }>;
6242
+ accountId: z.ZodOptional<z.ZodString>;
5949
6243
  metadata: z.ZodAny;
5950
6244
  }, "strip", z.ZodTypeAny, {
5951
6245
  options: {
5952
6246
  seconds: number;
5953
6247
  };
5954
6248
  type: "interval";
6249
+ accountId?: string | undefined;
5955
6250
  metadata?: any;
5956
6251
  }, {
5957
6252
  options: {
5958
6253
  seconds: number;
5959
6254
  };
5960
6255
  type: "interval";
6256
+ accountId?: string | undefined;
5961
6257
  metadata?: any;
5962
6258
  }>, z.ZodObject<{
5963
6259
  type: z.ZodLiteral<"cron">;
@@ -5968,18 +6264,21 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5968
6264
  }, {
5969
6265
  cron: string;
5970
6266
  }>;
6267
+ accountId: z.ZodOptional<z.ZodString>;
5971
6268
  metadata: z.ZodAny;
5972
6269
  }, "strip", z.ZodTypeAny, {
5973
6270
  options: {
5974
6271
  cron: string;
5975
6272
  };
5976
6273
  type: "cron";
6274
+ accountId?: string | undefined;
5977
6275
  metadata?: any;
5978
6276
  }, {
5979
6277
  options: {
5980
6278
  cron: string;
5981
6279
  };
5982
6280
  type: "cron";
6281
+ accountId?: string | undefined;
5983
6282
  metadata?: any;
5984
6283
  }>]>;
5985
6284
  }, "strip", z.ZodTypeAny, {
@@ -5989,12 +6288,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5989
6288
  cron: string;
5990
6289
  };
5991
6290
  type: "cron";
6291
+ accountId?: string | undefined;
5992
6292
  metadata?: any;
5993
6293
  } | {
5994
6294
  options: {
5995
6295
  seconds: number;
5996
6296
  };
5997
6297
  type: "interval";
6298
+ accountId?: string | undefined;
5998
6299
  metadata?: any;
5999
6300
  };
6000
6301
  }, {
@@ -6004,12 +6305,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6004
6305
  cron: string;
6005
6306
  };
6006
6307
  type: "cron";
6308
+ accountId?: string | undefined;
6007
6309
  metadata?: any;
6008
6310
  } | {
6009
6311
  options: {
6010
6312
  seconds: number;
6011
6313
  };
6012
6314
  type: "interval";
6315
+ accountId?: string | undefined;
6013
6316
  metadata?: any;
6014
6317
  };
6015
6318
  }>]>>;
@@ -6037,7 +6340,16 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6037
6340
  maxTimeoutInMs?: number | undefined;
6038
6341
  randomize?: boolean | undefined;
6039
6342
  }>>;
6040
- displayKey: z.ZodOptional<z.ZodString>;
6343
+ callback: z.ZodOptional<z.ZodObject<{
6344
+ enabled: z.ZodOptional<z.ZodBoolean>;
6345
+ timeoutInSeconds: z.ZodOptional<z.ZodNumber>;
6346
+ }, "strip", z.ZodTypeAny, {
6347
+ enabled?: boolean | undefined;
6348
+ timeoutInSeconds?: number | undefined;
6349
+ }, {
6350
+ enabled?: boolean | undefined;
6351
+ timeoutInSeconds?: number | undefined;
6352
+ }>>;
6041
6353
  connectionKey: z.ZodOptional<z.ZodString>;
6042
6354
  redact: z.ZodOptional<z.ZodObject<{
6043
6355
  paths: z.ZodArray<z.ZodString, "many">;
@@ -6066,6 +6378,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6066
6378
  url?: string | undefined;
6067
6379
  }[] | undefined;
6068
6380
  operation?: "fetch" | undefined;
6381
+ displayKey?: string | undefined;
6069
6382
  trigger?: {
6070
6383
  type: "dynamic";
6071
6384
  id: string;
@@ -6090,12 +6403,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6090
6403
  cron: string;
6091
6404
  };
6092
6405
  type: "cron";
6406
+ accountId?: string | undefined;
6093
6407
  metadata?: any;
6094
6408
  } | {
6095
6409
  options: {
6096
6410
  seconds: number;
6097
6411
  };
6098
6412
  type: "interval";
6413
+ accountId?: string | undefined;
6099
6414
  metadata?: any;
6100
6415
  };
6101
6416
  } | undefined;
@@ -6106,7 +6421,10 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6106
6421
  maxTimeoutInMs?: number | undefined;
6107
6422
  randomize?: boolean | undefined;
6108
6423
  } | undefined;
6109
- displayKey?: string | undefined;
6424
+ callback?: {
6425
+ enabled?: boolean | undefined;
6426
+ timeoutInSeconds?: number | undefined;
6427
+ } | undefined;
6110
6428
  connectionKey?: string | undefined;
6111
6429
  redact?: {
6112
6430
  paths: string[];
@@ -6130,6 +6448,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6130
6448
  url?: string | undefined;
6131
6449
  }[] | undefined;
6132
6450
  operation?: "fetch" | undefined;
6451
+ displayKey?: string | undefined;
6133
6452
  trigger?: {
6134
6453
  type: "dynamic";
6135
6454
  id: string;
@@ -6154,12 +6473,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6154
6473
  cron: string;
6155
6474
  };
6156
6475
  type: "cron";
6476
+ accountId?: string | undefined;
6157
6477
  metadata?: any;
6158
6478
  } | {
6159
6479
  options: {
6160
6480
  seconds: number;
6161
6481
  };
6162
6482
  type: "interval";
6483
+ accountId?: string | undefined;
6163
6484
  metadata?: any;
6164
6485
  };
6165
6486
  } | undefined;
@@ -6170,7 +6491,10 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6170
6491
  maxTimeoutInMs?: number | undefined;
6171
6492
  randomize?: boolean | undefined;
6172
6493
  } | undefined;
6173
- displayKey?: string | undefined;
6494
+ callback?: {
6495
+ enabled?: boolean | undefined;
6496
+ timeoutInSeconds?: number | undefined;
6497
+ } | undefined;
6174
6498
  connectionKey?: string | undefined;
6175
6499
  redact?: {
6176
6500
  paths: string[];
@@ -6210,6 +6534,7 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6210
6534
  parentId: z.ZodOptional<z.ZodString>;
6211
6535
  operation: z.ZodOptional<z.ZodEnum<["fetch"]>>;
6212
6536
  idempotencyKey: z.ZodString;
6537
+ displayKey: z.ZodOptional<z.ZodString>;
6213
6538
  trigger: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
6214
6539
  type: z.ZodLiteral<"dynamic">;
6215
6540
  id: z.ZodString;
@@ -6290,18 +6615,21 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6290
6615
  }, {
6291
6616
  seconds: number;
6292
6617
  }>;
6618
+ accountId: z.ZodOptional<z.ZodString>;
6293
6619
  metadata: z.ZodAny;
6294
6620
  }, "strip", z.ZodTypeAny, {
6295
6621
  options: {
6296
6622
  seconds: number;
6297
6623
  };
6298
6624
  type: "interval";
6625
+ accountId?: string | undefined;
6299
6626
  metadata?: any;
6300
6627
  }, {
6301
6628
  options: {
6302
6629
  seconds: number;
6303
6630
  };
6304
6631
  type: "interval";
6632
+ accountId?: string | undefined;
6305
6633
  metadata?: any;
6306
6634
  }>, z.ZodObject<{
6307
6635
  type: z.ZodLiteral<"cron">;
@@ -6312,18 +6640,21 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6312
6640
  }, {
6313
6641
  cron: string;
6314
6642
  }>;
6643
+ accountId: z.ZodOptional<z.ZodString>;
6315
6644
  metadata: z.ZodAny;
6316
6645
  }, "strip", z.ZodTypeAny, {
6317
6646
  options: {
6318
6647
  cron: string;
6319
6648
  };
6320
6649
  type: "cron";
6650
+ accountId?: string | undefined;
6321
6651
  metadata?: any;
6322
6652
  }, {
6323
6653
  options: {
6324
6654
  cron: string;
6325
6655
  };
6326
6656
  type: "cron";
6657
+ accountId?: string | undefined;
6327
6658
  metadata?: any;
6328
6659
  }>]>;
6329
6660
  }, "strip", z.ZodTypeAny, {
@@ -6333,12 +6664,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6333
6664
  cron: string;
6334
6665
  };
6335
6666
  type: "cron";
6667
+ accountId?: string | undefined;
6336
6668
  metadata?: any;
6337
6669
  } | {
6338
6670
  options: {
6339
6671
  seconds: number;
6340
6672
  };
6341
6673
  type: "interval";
6674
+ accountId?: string | undefined;
6342
6675
  metadata?: any;
6343
6676
  };
6344
6677
  }, {
@@ -6348,12 +6681,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6348
6681
  cron: string;
6349
6682
  };
6350
6683
  type: "cron";
6684
+ accountId?: string | undefined;
6351
6685
  metadata?: any;
6352
6686
  } | {
6353
6687
  options: {
6354
6688
  seconds: number;
6355
6689
  };
6356
6690
  type: "interval";
6691
+ accountId?: string | undefined;
6357
6692
  metadata?: any;
6358
6693
  };
6359
6694
  }>]>>;
@@ -6381,7 +6716,6 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6381
6716
  maxTimeoutInMs?: number | undefined;
6382
6717
  randomize?: boolean | undefined;
6383
6718
  }>>;
6384
- displayKey: z.ZodOptional<z.ZodString>;
6385
6719
  connectionKey: z.ZodOptional<z.ZodString>;
6386
6720
  redact: z.ZodOptional<z.ZodObject<{
6387
6721
  paths: z.ZodArray<z.ZodString, "many">;
@@ -6391,6 +6725,16 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6391
6725
  paths: string[];
6392
6726
  }>>;
6393
6727
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
6728
+ callback: z.ZodOptional<z.ZodObject<{
6729
+ enabled: z.ZodBoolean;
6730
+ timeoutInSeconds: z.ZodDefault<z.ZodNumber>;
6731
+ }, "strip", z.ZodTypeAny, {
6732
+ enabled: boolean;
6733
+ timeoutInSeconds: number;
6734
+ }, {
6735
+ enabled: boolean;
6736
+ timeoutInSeconds?: number | undefined;
6737
+ }>>;
6394
6738
  }, "strip", z.ZodTypeAny, {
6395
6739
  noop: boolean;
6396
6740
  idempotencyKey: string;
@@ -6409,6 +6753,7 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6409
6753
  }[] | undefined;
6410
6754
  parentId?: string | undefined;
6411
6755
  operation?: "fetch" | undefined;
6756
+ displayKey?: string | undefined;
6412
6757
  trigger?: {
6413
6758
  type: "dynamic";
6414
6759
  id: string;
@@ -6433,12 +6778,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6433
6778
  cron: string;
6434
6779
  };
6435
6780
  type: "cron";
6781
+ accountId?: string | undefined;
6436
6782
  metadata?: any;
6437
6783
  } | {
6438
6784
  options: {
6439
6785
  seconds: number;
6440
6786
  };
6441
6787
  type: "interval";
6788
+ accountId?: string | undefined;
6442
6789
  metadata?: any;
6443
6790
  };
6444
6791
  } | undefined;
@@ -6449,12 +6796,15 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6449
6796
  maxTimeoutInMs?: number | undefined;
6450
6797
  randomize?: boolean | undefined;
6451
6798
  } | undefined;
6452
- displayKey?: string | undefined;
6453
6799
  connectionKey?: string | undefined;
6454
6800
  redact?: {
6455
6801
  paths: string[];
6456
6802
  } | undefined;
6457
6803
  params?: DeserializedJson | undefined;
6804
+ callback?: {
6805
+ enabled: boolean;
6806
+ timeoutInSeconds: number;
6807
+ } | undefined;
6458
6808
  }, {
6459
6809
  idempotencyKey: string;
6460
6810
  name?: string | undefined;
@@ -6473,6 +6823,7 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6473
6823
  }[] | undefined;
6474
6824
  parentId?: string | undefined;
6475
6825
  operation?: "fetch" | undefined;
6826
+ displayKey?: string | undefined;
6476
6827
  trigger?: {
6477
6828
  type: "dynamic";
6478
6829
  id: string;
@@ -6497,12 +6848,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6497
6848
  cron: string;
6498
6849
  };
6499
6850
  type: "cron";
6851
+ accountId?: string | undefined;
6500
6852
  metadata?: any;
6501
6853
  } | {
6502
6854
  options: {
6503
6855
  seconds: number;
6504
6856
  };
6505
6857
  type: "interval";
6858
+ accountId?: string | undefined;
6506
6859
  metadata?: any;
6507
6860
  };
6508
6861
  } | undefined;
@@ -6513,50 +6866,310 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6513
6866
  maxTimeoutInMs?: number | undefined;
6514
6867
  randomize?: boolean | undefined;
6515
6868
  } | undefined;
6516
- displayKey?: string | undefined;
6517
6869
  connectionKey?: string | undefined;
6518
6870
  redact?: {
6519
6871
  paths: string[];
6520
6872
  } | undefined;
6521
6873
  params?: DeserializedJson | undefined;
6874
+ callback?: {
6875
+ enabled: boolean;
6876
+ timeoutInSeconds?: number | undefined;
6877
+ } | undefined;
6522
6878
  }>;
6523
6879
  type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
6524
- declare const CompleteTaskBodyInputSchema: z.ZodObject<{
6525
- params: z.ZodAny;
6526
- description: z.ZodOptional<z.ZodString>;
6527
- properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
6528
- label: z.ZodString;
6529
- text: z.ZodString;
6530
- url: z.ZodOptional<z.ZodString>;
6880
+ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
6881
+ task: z.ZodObject<{
6882
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6883
+ name: z.ZodString;
6884
+ params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
6885
+ status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
6886
+ id: z.ZodString;
6887
+ style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
6888
+ style: z.ZodEnum<["normal", "minimal"]>;
6889
+ variant: z.ZodOptional<z.ZodString>;
6890
+ }, "strip", z.ZodTypeAny, {
6891
+ style: "normal" | "minimal";
6892
+ variant?: string | undefined;
6893
+ }, {
6894
+ style: "normal" | "minimal";
6895
+ variant?: string | undefined;
6896
+ }>>>;
6897
+ icon: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6898
+ noop: z.ZodBoolean;
6899
+ startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
6900
+ completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
6901
+ delayUntil: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
6902
+ description: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6903
+ properties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6904
+ label: z.ZodString;
6905
+ text: z.ZodString;
6906
+ url: z.ZodOptional<z.ZodString>;
6907
+ }, "strip", z.ZodTypeAny, {
6908
+ label: string;
6909
+ text: string;
6910
+ url?: string | undefined;
6911
+ }, {
6912
+ label: string;
6913
+ text: string;
6914
+ url?: string | undefined;
6915
+ }>, "many">>>;
6916
+ outputProperties: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodObject<{
6917
+ label: z.ZodString;
6918
+ text: z.ZodString;
6919
+ url: z.ZodOptional<z.ZodString>;
6920
+ }, "strip", z.ZodTypeAny, {
6921
+ label: string;
6922
+ text: string;
6923
+ url?: string | undefined;
6924
+ }, {
6925
+ label: string;
6926
+ text: string;
6927
+ url?: string | undefined;
6928
+ }>, "many">>>;
6929
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
6930
+ parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6931
+ operation: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6932
+ callbackUrl: z.ZodNullable<z.ZodOptional<z.ZodString>>;
6933
+ idempotencyKey: z.ZodString;
6934
+ attempts: z.ZodNumber;
6531
6935
  }, "strip", z.ZodTypeAny, {
6532
- label: string;
6533
- text: string;
6534
- url?: string | undefined;
6936
+ name: string;
6937
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
6938
+ id: string;
6939
+ noop: boolean;
6940
+ idempotencyKey: string;
6941
+ attempts: number;
6942
+ error?: string | null | undefined;
6943
+ params?: DeserializedJson | undefined;
6944
+ style?: {
6945
+ style: "normal" | "minimal";
6946
+ variant?: string | undefined;
6947
+ } | null | undefined;
6948
+ icon?: string | null | undefined;
6949
+ startedAt?: Date | null | undefined;
6950
+ completedAt?: Date | null | undefined;
6951
+ delayUntil?: Date | null | undefined;
6952
+ description?: string | null | undefined;
6953
+ properties?: {
6954
+ label: string;
6955
+ text: string;
6956
+ url?: string | undefined;
6957
+ }[] | null | undefined;
6958
+ outputProperties?: {
6959
+ label: string;
6960
+ text: string;
6961
+ url?: string | undefined;
6962
+ }[] | null | undefined;
6963
+ output?: DeserializedJson | undefined;
6964
+ parentId?: string | null | undefined;
6965
+ operation?: string | null | undefined;
6966
+ callbackUrl?: string | null | undefined;
6535
6967
  }, {
6536
- label: string;
6537
- text: string;
6538
- url?: string | undefined;
6539
- }>, "many">>;
6540
- output: z.ZodEffects<z.ZodOptional<z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>, string | number | boolean | {
6541
- [key: string]: DeserializedJson;
6542
- } | DeserializedJson[] | null, SerializableJson>;
6968
+ name: string;
6969
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
6970
+ id: string;
6971
+ noop: boolean;
6972
+ idempotencyKey: string;
6973
+ attempts: number;
6974
+ error?: string | null | undefined;
6975
+ params?: DeserializedJson | undefined;
6976
+ style?: {
6977
+ style: "normal" | "minimal";
6978
+ variant?: string | undefined;
6979
+ } | null | undefined;
6980
+ icon?: string | null | undefined;
6981
+ startedAt?: Date | null | undefined;
6982
+ completedAt?: Date | null | undefined;
6983
+ delayUntil?: Date | null | undefined;
6984
+ description?: string | null | undefined;
6985
+ properties?: {
6986
+ label: string;
6987
+ text: string;
6988
+ url?: string | undefined;
6989
+ }[] | null | undefined;
6990
+ outputProperties?: {
6991
+ label: string;
6992
+ text: string;
6993
+ url?: string | undefined;
6994
+ }[] | null | undefined;
6995
+ output?: DeserializedJson | undefined;
6996
+ parentId?: string | null | undefined;
6997
+ operation?: string | null | undefined;
6998
+ callbackUrl?: string | null | undefined;
6999
+ }>;
7000
+ cachedTasks: z.ZodOptional<z.ZodObject<{
7001
+ tasks: z.ZodArray<z.ZodObject<{
7002
+ id: z.ZodString;
7003
+ idempotencyKey: z.ZodString;
7004
+ status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
7005
+ noop: z.ZodDefault<z.ZodBoolean>;
7006
+ output: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
7007
+ parentId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
7008
+ }, "strip", z.ZodTypeAny, {
7009
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7010
+ id: string;
7011
+ noop: boolean;
7012
+ idempotencyKey: string;
7013
+ output?: DeserializedJson | undefined;
7014
+ parentId?: string | null | undefined;
7015
+ }, {
7016
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7017
+ id: string;
7018
+ idempotencyKey: string;
7019
+ noop?: boolean | undefined;
7020
+ output?: DeserializedJson | undefined;
7021
+ parentId?: string | null | undefined;
7022
+ }>, "many">;
7023
+ cursor: z.ZodOptional<z.ZodString>;
7024
+ }, "strip", z.ZodTypeAny, {
7025
+ tasks: {
7026
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7027
+ id: string;
7028
+ noop: boolean;
7029
+ idempotencyKey: string;
7030
+ output?: DeserializedJson | undefined;
7031
+ parentId?: string | null | undefined;
7032
+ }[];
7033
+ cursor?: string | undefined;
7034
+ }, {
7035
+ tasks: {
7036
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7037
+ id: string;
7038
+ idempotencyKey: string;
7039
+ noop?: boolean | undefined;
7040
+ output?: DeserializedJson | undefined;
7041
+ parentId?: string | null | undefined;
7042
+ }[];
7043
+ cursor?: string | undefined;
7044
+ }>>;
6543
7045
  }, "strip", z.ZodTypeAny, {
6544
- output: ((string | number | boolean | {
6545
- [key: string]: DeserializedJson;
6546
- } | DeserializedJson[]) & (string | number | boolean | {
6547
- [key: string]: DeserializedJson;
6548
- } | DeserializedJson[] | undefined)) | null;
6549
- params?: any;
6550
- description?: string | undefined;
6551
- properties?: {
6552
- label: string;
6553
- text: string;
6554
- url?: string | undefined;
6555
- }[] | undefined;
6556
- }, {
6557
- params?: any;
6558
- description?: string | undefined;
6559
- properties?: {
7046
+ task: {
7047
+ name: string;
7048
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7049
+ id: string;
7050
+ noop: boolean;
7051
+ idempotencyKey: string;
7052
+ attempts: number;
7053
+ error?: string | null | undefined;
7054
+ params?: DeserializedJson | undefined;
7055
+ style?: {
7056
+ style: "normal" | "minimal";
7057
+ variant?: string | undefined;
7058
+ } | null | undefined;
7059
+ icon?: string | null | undefined;
7060
+ startedAt?: Date | null | undefined;
7061
+ completedAt?: Date | null | undefined;
7062
+ delayUntil?: Date | null | undefined;
7063
+ description?: string | null | undefined;
7064
+ properties?: {
7065
+ label: string;
7066
+ text: string;
7067
+ url?: string | undefined;
7068
+ }[] | null | undefined;
7069
+ outputProperties?: {
7070
+ label: string;
7071
+ text: string;
7072
+ url?: string | undefined;
7073
+ }[] | null | undefined;
7074
+ output?: DeserializedJson | undefined;
7075
+ parentId?: string | null | undefined;
7076
+ operation?: string | null | undefined;
7077
+ callbackUrl?: string | null | undefined;
7078
+ };
7079
+ cachedTasks?: {
7080
+ tasks: {
7081
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7082
+ id: string;
7083
+ noop: boolean;
7084
+ idempotencyKey: string;
7085
+ output?: DeserializedJson | undefined;
7086
+ parentId?: string | null | undefined;
7087
+ }[];
7088
+ cursor?: string | undefined;
7089
+ } | undefined;
7090
+ }, {
7091
+ task: {
7092
+ name: string;
7093
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7094
+ id: string;
7095
+ noop: boolean;
7096
+ idempotencyKey: string;
7097
+ attempts: number;
7098
+ error?: string | null | undefined;
7099
+ params?: DeserializedJson | undefined;
7100
+ style?: {
7101
+ style: "normal" | "minimal";
7102
+ variant?: string | undefined;
7103
+ } | null | undefined;
7104
+ icon?: string | null | undefined;
7105
+ startedAt?: Date | null | undefined;
7106
+ completedAt?: Date | null | undefined;
7107
+ delayUntil?: Date | null | undefined;
7108
+ description?: string | null | undefined;
7109
+ properties?: {
7110
+ label: string;
7111
+ text: string;
7112
+ url?: string | undefined;
7113
+ }[] | null | undefined;
7114
+ outputProperties?: {
7115
+ label: string;
7116
+ text: string;
7117
+ url?: string | undefined;
7118
+ }[] | null | undefined;
7119
+ output?: DeserializedJson | undefined;
7120
+ parentId?: string | null | undefined;
7121
+ operation?: string | null | undefined;
7122
+ callbackUrl?: string | null | undefined;
7123
+ };
7124
+ cachedTasks?: {
7125
+ tasks: {
7126
+ status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
7127
+ id: string;
7128
+ idempotencyKey: string;
7129
+ noop?: boolean | undefined;
7130
+ output?: DeserializedJson | undefined;
7131
+ parentId?: string | null | undefined;
7132
+ }[];
7133
+ cursor?: string | undefined;
7134
+ } | undefined;
7135
+ }>;
7136
+ type RunTaskResponseWithCachedTasksBody = z.infer<typeof RunTaskResponseWithCachedTasksBodySchema>;
7137
+ declare const CompleteTaskBodyInputSchema: z.ZodObject<{
7138
+ params: z.ZodAny;
7139
+ description: z.ZodOptional<z.ZodString>;
7140
+ properties: z.ZodOptional<z.ZodArray<z.ZodObject<{
7141
+ label: z.ZodString;
7142
+ text: z.ZodString;
7143
+ url: z.ZodOptional<z.ZodString>;
7144
+ }, "strip", z.ZodTypeAny, {
7145
+ label: string;
7146
+ text: string;
7147
+ url?: string | undefined;
7148
+ }, {
7149
+ label: string;
7150
+ text: string;
7151
+ url?: string | undefined;
7152
+ }>, "many">>;
7153
+ output: z.ZodEffects<z.ZodOptional<z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>, string | number | boolean | {
7154
+ [key: string]: DeserializedJson;
7155
+ } | DeserializedJson[] | null, SerializableJson>;
7156
+ }, "strip", z.ZodTypeAny, {
7157
+ output: ((string | number | boolean | {
7158
+ [key: string]: DeserializedJson;
7159
+ } | DeserializedJson[]) & (string | number | boolean | {
7160
+ [key: string]: DeserializedJson;
7161
+ } | DeserializedJson[] | undefined)) | null;
7162
+ params?: any;
7163
+ description?: string | undefined;
7164
+ properties?: {
7165
+ label: string;
7166
+ text: string;
7167
+ url?: string | undefined;
7168
+ }[] | undefined;
7169
+ }, {
7170
+ params?: any;
7171
+ description?: string | undefined;
7172
+ properties?: {
6560
7173
  label: string;
6561
7174
  text: string;
6562
7175
  url?: string | undefined;
@@ -6747,7 +7360,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6747
7360
  id: string;
6748
7361
  instructions?: string | undefined;
6749
7362
  }>;
6750
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
7363
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
6751
7364
  }, "strip", z.ZodTypeAny, {
6752
7365
  id: string;
6753
7366
  metadata: {
@@ -6755,7 +7368,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6755
7368
  id: string;
6756
7369
  instructions?: string | undefined;
6757
7370
  };
6758
- authSource: "HOSTED" | "LOCAL";
7371
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6759
7372
  }, {
6760
7373
  id: string;
6761
7374
  metadata: {
@@ -6763,7 +7376,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6763
7376
  id: string;
6764
7377
  instructions?: string | undefined;
6765
7378
  };
6766
- authSource: "HOSTED" | "LOCAL";
7379
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6767
7380
  }>;
6768
7381
  key: z.ZodString;
6769
7382
  params: z.ZodAny;
@@ -6790,7 +7403,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6790
7403
  id: string;
6791
7404
  instructions?: string | undefined;
6792
7405
  };
6793
- authSource: "HOSTED" | "LOCAL";
7406
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6794
7407
  };
6795
7408
  params?: any;
6796
7409
  registerSourceJob?: {
@@ -6809,7 +7422,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6809
7422
  id: string;
6810
7423
  instructions?: string | undefined;
6811
7424
  };
6812
- authSource: "HOSTED" | "LOCAL";
7425
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6813
7426
  };
6814
7427
  params?: any;
6815
7428
  registerSourceJob?: {
@@ -6830,7 +7443,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6830
7443
  id: string;
6831
7444
  instructions?: string | undefined;
6832
7445
  };
6833
- authSource: "HOSTED" | "LOCAL";
7446
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6834
7447
  };
6835
7448
  params?: any;
6836
7449
  registerSourceJob?: {
@@ -6857,7 +7470,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6857
7470
  id: string;
6858
7471
  instructions?: string | undefined;
6859
7472
  };
6860
- authSource: "HOSTED" | "LOCAL";
7473
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6861
7474
  };
6862
7475
  params?: any;
6863
7476
  registerSourceJob?: {
@@ -6908,7 +7521,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6908
7521
  id: string;
6909
7522
  instructions?: string | undefined;
6910
7523
  }>;
6911
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
7524
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
6912
7525
  }, "strip", z.ZodTypeAny, {
6913
7526
  id: string;
6914
7527
  metadata: {
@@ -6916,7 +7529,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6916
7529
  id: string;
6917
7530
  instructions?: string | undefined;
6918
7531
  };
6919
- authSource: "HOSTED" | "LOCAL";
7532
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6920
7533
  }, {
6921
7534
  id: string;
6922
7535
  metadata: {
@@ -6924,7 +7537,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6924
7537
  id: string;
6925
7538
  instructions?: string | undefined;
6926
7539
  };
6927
- authSource: "HOSTED" | "LOCAL";
7540
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6928
7541
  }>;
6929
7542
  key: z.ZodString;
6930
7543
  params: z.ZodAny;
@@ -6951,7 +7564,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6951
7564
  id: string;
6952
7565
  instructions?: string | undefined;
6953
7566
  };
6954
- authSource: "HOSTED" | "LOCAL";
7567
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6955
7568
  };
6956
7569
  params?: any;
6957
7570
  registerSourceJob?: {
@@ -6970,7 +7583,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6970
7583
  id: string;
6971
7584
  instructions?: string | undefined;
6972
7585
  };
6973
- authSource: "HOSTED" | "LOCAL";
7586
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6974
7587
  };
6975
7588
  params?: any;
6976
7589
  registerSourceJob?: {
@@ -6978,6 +7591,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6978
7591
  id: string;
6979
7592
  } | undefined;
6980
7593
  }>;
7594
+ accountId: z.ZodOptional<z.ZodString>;
6981
7595
  }, "strip", z.ZodTypeAny, {
6982
7596
  source: {
6983
7597
  key: string;
@@ -6991,7 +7605,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6991
7605
  id: string;
6992
7606
  instructions?: string | undefined;
6993
7607
  };
6994
- authSource: "HOSTED" | "LOCAL";
7608
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6995
7609
  };
6996
7610
  params?: any;
6997
7611
  registerSourceJob?: {
@@ -7005,6 +7619,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7005
7619
  payload?: EventFilter | undefined;
7006
7620
  context?: EventFilter | undefined;
7007
7621
  };
7622
+ accountId?: string | undefined;
7008
7623
  }, {
7009
7624
  source: {
7010
7625
  key: string;
@@ -7018,7 +7633,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7018
7633
  id: string;
7019
7634
  instructions?: string | undefined;
7020
7635
  };
7021
- authSource: "HOSTED" | "LOCAL";
7636
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7022
7637
  };
7023
7638
  params?: any;
7024
7639
  registerSourceJob?: {
@@ -7032,6 +7647,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7032
7647
  payload?: EventFilter | undefined;
7033
7648
  context?: EventFilter | undefined;
7034
7649
  };
7650
+ accountId?: string | undefined;
7035
7651
  }>;
7036
7652
  type RegisterTriggerBodyV2 = z.infer<typeof RegisterTriggerBodySchemaV2>;
7037
7653
  declare const InitializeTriggerBodySchema: z.ZodObject<{
@@ -7053,7 +7669,6 @@ declare const InitializeTriggerBodySchema: z.ZodObject<{
7053
7669
  type InitializeTriggerBody = z.infer<typeof InitializeTriggerBodySchema>;
7054
7670
  declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7055
7671
  id: z.ZodString;
7056
- accountId: z.ZodOptional<z.ZodString>;
7057
7672
  type: z.ZodLiteral<"interval">;
7058
7673
  options: z.ZodObject<{
7059
7674
  seconds: z.ZodNumber;
@@ -7062,6 +7677,7 @@ declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7062
7677
  }, {
7063
7678
  seconds: number;
7064
7679
  }>;
7680
+ accountId: z.ZodOptional<z.ZodString>;
7065
7681
  metadata: z.ZodAny;
7066
7682
  }, "strip", z.ZodTypeAny, {
7067
7683
  options: {
@@ -7083,7 +7699,6 @@ declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7083
7699
  type RegisterIntervalScheduleBody = z.infer<typeof RegisterIntervalScheduleBodySchema>;
7084
7700
  declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7085
7701
  id: z.ZodString;
7086
- accountId: z.ZodOptional<z.ZodString>;
7087
7702
  type: z.ZodLiteral<"cron">;
7088
7703
  options: z.ZodObject<{
7089
7704
  cron: z.ZodString;
@@ -7092,6 +7707,7 @@ declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7092
7707
  }, {
7093
7708
  cron: string;
7094
7709
  }>;
7710
+ accountId: z.ZodOptional<z.ZodString>;
7095
7711
  metadata: z.ZodAny;
7096
7712
  }, "strip", z.ZodTypeAny, {
7097
7713
  options: {
@@ -7113,7 +7729,6 @@ declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7113
7729
  type RegisterCronScheduleBody = z.infer<typeof InitializeCronScheduleBodySchema>;
7114
7730
  declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7115
7731
  id: z.ZodString;
7116
- accountId: z.ZodOptional<z.ZodString>;
7117
7732
  type: z.ZodLiteral<"interval">;
7118
7733
  options: z.ZodObject<{
7119
7734
  seconds: z.ZodNumber;
@@ -7122,6 +7737,7 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7122
7737
  }, {
7123
7738
  seconds: number;
7124
7739
  }>;
7740
+ accountId: z.ZodOptional<z.ZodString>;
7125
7741
  metadata: z.ZodAny;
7126
7742
  }, "strip", z.ZodTypeAny, {
7127
7743
  options: {
@@ -7141,7 +7757,6 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7141
7757
  metadata?: any;
7142
7758
  }>, z.ZodObject<{
7143
7759
  id: z.ZodString;
7144
- accountId: z.ZodOptional<z.ZodString>;
7145
7760
  type: z.ZodLiteral<"cron">;
7146
7761
  options: z.ZodObject<{
7147
7762
  cron: z.ZodString;
@@ -7150,6 +7765,7 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7150
7765
  }, {
7151
7766
  cron: string;
7152
7767
  }>;
7768
+ accountId: z.ZodOptional<z.ZodString>;
7153
7769
  metadata: z.ZodAny;
7154
7770
  }, "strip", z.ZodTypeAny, {
7155
7771
  options: {
@@ -7180,18 +7796,21 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7180
7796
  }, {
7181
7797
  seconds: number;
7182
7798
  }>;
7799
+ accountId: z.ZodOptional<z.ZodString>;
7183
7800
  metadata: z.ZodAny;
7184
7801
  }, "strip", z.ZodTypeAny, {
7185
7802
  options: {
7186
7803
  seconds: number;
7187
7804
  };
7188
7805
  type: "interval";
7806
+ accountId?: string | undefined;
7189
7807
  metadata?: any;
7190
7808
  }, {
7191
7809
  options: {
7192
7810
  seconds: number;
7193
7811
  };
7194
7812
  type: "interval";
7813
+ accountId?: string | undefined;
7195
7814
  metadata?: any;
7196
7815
  }>, z.ZodObject<{
7197
7816
  type: z.ZodLiteral<"cron">;
@@ -7202,18 +7821,21 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7202
7821
  }, {
7203
7822
  cron: string;
7204
7823
  }>;
7824
+ accountId: z.ZodOptional<z.ZodString>;
7205
7825
  metadata: z.ZodAny;
7206
7826
  }, "strip", z.ZodTypeAny, {
7207
7827
  options: {
7208
7828
  cron: string;
7209
7829
  };
7210
7830
  type: "cron";
7831
+ accountId?: string | undefined;
7211
7832
  metadata?: any;
7212
7833
  }, {
7213
7834
  options: {
7214
7835
  cron: string;
7215
7836
  };
7216
7837
  type: "cron";
7838
+ accountId?: string | undefined;
7217
7839
  metadata?: any;
7218
7840
  }>]>;
7219
7841
  metadata: z.ZodAny;
@@ -7225,12 +7847,14 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7225
7847
  cron: string;
7226
7848
  };
7227
7849
  type: "cron";
7850
+ accountId?: string | undefined;
7228
7851
  metadata?: any;
7229
7852
  } | {
7230
7853
  options: {
7231
7854
  seconds: number;
7232
7855
  };
7233
7856
  type: "interval";
7857
+ accountId?: string | undefined;
7234
7858
  metadata?: any;
7235
7859
  };
7236
7860
  active: boolean;
@@ -7242,12 +7866,14 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7242
7866
  cron: string;
7243
7867
  };
7244
7868
  type: "cron";
7869
+ accountId?: string | undefined;
7245
7870
  metadata?: any;
7246
7871
  } | {
7247
7872
  options: {
7248
7873
  seconds: number;
7249
7874
  };
7250
7875
  type: "interval";
7876
+ accountId?: string | undefined;
7251
7877
  metadata?: any;
7252
7878
  };
7253
7879
  active: boolean;
@@ -7271,6 +7897,95 @@ declare const CreateExternalConnectionBodySchema: z.ZodObject<{
7271
7897
  metadata?: any;
7272
7898
  }>;
7273
7899
  type CreateExternalConnectionBody = z.infer<typeof CreateExternalConnectionBodySchema>;
7900
+ declare const GetRunStatusesSchema: z.ZodObject<{
7901
+ run: z.ZodObject<{
7902
+ id: z.ZodString;
7903
+ 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">]>;
7904
+ output: z.ZodOptional<z.ZodAny>;
7905
+ }, "strip", z.ZodTypeAny, {
7906
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7907
+ id: string;
7908
+ output?: any;
7909
+ }, {
7910
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7911
+ id: string;
7912
+ output?: any;
7913
+ }>;
7914
+ statuses: z.ZodArray<z.ZodObject<{
7915
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
7916
+ label: z.ZodString;
7917
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
7918
+ key: z.ZodString;
7919
+ history: z.ZodArray<z.ZodObject<{
7920
+ label: z.ZodOptional<z.ZodString>;
7921
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
7922
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
7923
+ }, "strip", z.ZodTypeAny, {
7924
+ label?: string | undefined;
7925
+ state?: "loading" | "success" | "failure" | undefined;
7926
+ data?: Record<string, SerializableJson> | undefined;
7927
+ }, {
7928
+ label?: string | undefined;
7929
+ state?: "loading" | "success" | "failure" | undefined;
7930
+ data?: Record<string, SerializableJson> | undefined;
7931
+ }>, "many">;
7932
+ }, "strip", z.ZodTypeAny, {
7933
+ key: string;
7934
+ label: string;
7935
+ history: {
7936
+ label?: string | undefined;
7937
+ state?: "loading" | "success" | "failure" | undefined;
7938
+ data?: Record<string, SerializableJson> | undefined;
7939
+ }[];
7940
+ data?: Record<string, SerializableJson> | undefined;
7941
+ state?: "loading" | "success" | "failure" | undefined;
7942
+ }, {
7943
+ key: string;
7944
+ label: string;
7945
+ history: {
7946
+ label?: string | undefined;
7947
+ state?: "loading" | "success" | "failure" | undefined;
7948
+ data?: Record<string, SerializableJson> | undefined;
7949
+ }[];
7950
+ data?: Record<string, SerializableJson> | undefined;
7951
+ state?: "loading" | "success" | "failure" | undefined;
7952
+ }>, "many">;
7953
+ }, "strip", z.ZodTypeAny, {
7954
+ statuses: {
7955
+ key: string;
7956
+ label: string;
7957
+ history: {
7958
+ label?: string | undefined;
7959
+ state?: "loading" | "success" | "failure" | undefined;
7960
+ data?: Record<string, SerializableJson> | undefined;
7961
+ }[];
7962
+ data?: Record<string, SerializableJson> | undefined;
7963
+ state?: "loading" | "success" | "failure" | undefined;
7964
+ }[];
7965
+ run: {
7966
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7967
+ id: string;
7968
+ output?: any;
7969
+ };
7970
+ }, {
7971
+ statuses: {
7972
+ key: string;
7973
+ label: string;
7974
+ history: {
7975
+ label?: string | undefined;
7976
+ state?: "loading" | "success" | "failure" | undefined;
7977
+ data?: Record<string, SerializableJson> | undefined;
7978
+ }[];
7979
+ data?: Record<string, SerializableJson> | undefined;
7980
+ state?: "loading" | "success" | "failure" | undefined;
7981
+ }[];
7982
+ run: {
7983
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7984
+ id: string;
7985
+ output?: any;
7986
+ };
7987
+ }>;
7988
+ type GetRunStatuses = z.infer<typeof GetRunStatusesSchema>;
7274
7989
 
7275
7990
  declare const EventExampleSchema: z.ZodObject<{
7276
7991
  id: z.ZodString;
@@ -7444,18 +8159,21 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7444
8159
  }, {
7445
8160
  seconds: number;
7446
8161
  }>;
8162
+ accountId: z.ZodOptional<z.ZodString>;
7447
8163
  metadata: z.ZodAny;
7448
8164
  }, "strip", z.ZodTypeAny, {
7449
8165
  options: {
7450
8166
  seconds: number;
7451
8167
  };
7452
8168
  type: "interval";
8169
+ accountId?: string | undefined;
7453
8170
  metadata?: any;
7454
8171
  }, {
7455
8172
  options: {
7456
8173
  seconds: number;
7457
8174
  };
7458
8175
  type: "interval";
8176
+ accountId?: string | undefined;
7459
8177
  metadata?: any;
7460
8178
  }>, z.ZodObject<{
7461
8179
  type: z.ZodLiteral<"cron">;
@@ -7466,18 +8184,21 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7466
8184
  }, {
7467
8185
  cron: string;
7468
8186
  }>;
8187
+ accountId: z.ZodOptional<z.ZodString>;
7469
8188
  metadata: z.ZodAny;
7470
8189
  }, "strip", z.ZodTypeAny, {
7471
8190
  options: {
7472
8191
  cron: string;
7473
8192
  };
7474
8193
  type: "cron";
8194
+ accountId?: string | undefined;
7475
8195
  metadata?: any;
7476
8196
  }, {
7477
8197
  options: {
7478
8198
  cron: string;
7479
8199
  };
7480
8200
  type: "cron";
8201
+ accountId?: string | undefined;
7481
8202
  metadata?: any;
7482
8203
  }>]>;
7483
8204
  }, "strip", z.ZodTypeAny, {
@@ -7487,12 +8208,14 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7487
8208
  cron: string;
7488
8209
  };
7489
8210
  type: "cron";
8211
+ accountId?: string | undefined;
7490
8212
  metadata?: any;
7491
8213
  } | {
7492
8214
  options: {
7493
8215
  seconds: number;
7494
8216
  };
7495
8217
  type: "interval";
8218
+ accountId?: string | undefined;
7496
8219
  metadata?: any;
7497
8220
  };
7498
8221
  }, {
@@ -7502,12 +8225,14 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7502
8225
  cron: string;
7503
8226
  };
7504
8227
  type: "cron";
8228
+ accountId?: string | undefined;
7505
8229
  metadata?: any;
7506
8230
  } | {
7507
8231
  options: {
7508
8232
  seconds: number;
7509
8233
  };
7510
8234
  type: "interval";
8235
+ accountId?: string | undefined;
7511
8236
  metadata?: any;
7512
8237
  };
7513
8238
  }>;
@@ -7591,18 +8316,21 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7591
8316
  }, {
7592
8317
  seconds: number;
7593
8318
  }>;
8319
+ accountId: z.ZodOptional<z.ZodString>;
7594
8320
  metadata: z.ZodAny;
7595
8321
  }, "strip", z.ZodTypeAny, {
7596
8322
  options: {
7597
8323
  seconds: number;
7598
8324
  };
7599
8325
  type: "interval";
8326
+ accountId?: string | undefined;
7600
8327
  metadata?: any;
7601
8328
  }, {
7602
8329
  options: {
7603
8330
  seconds: number;
7604
8331
  };
7605
8332
  type: "interval";
8333
+ accountId?: string | undefined;
7606
8334
  metadata?: any;
7607
8335
  }>, z.ZodObject<{
7608
8336
  type: z.ZodLiteral<"cron">;
@@ -7613,18 +8341,21 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7613
8341
  }, {
7614
8342
  cron: string;
7615
8343
  }>;
8344
+ accountId: z.ZodOptional<z.ZodString>;
7616
8345
  metadata: z.ZodAny;
7617
8346
  }, "strip", z.ZodTypeAny, {
7618
8347
  options: {
7619
8348
  cron: string;
7620
8349
  };
7621
8350
  type: "cron";
8351
+ accountId?: string | undefined;
7622
8352
  metadata?: any;
7623
8353
  }, {
7624
8354
  options: {
7625
8355
  cron: string;
7626
8356
  };
7627
8357
  type: "cron";
8358
+ accountId?: string | undefined;
7628
8359
  metadata?: any;
7629
8360
  }>]>;
7630
8361
  }, "strip", z.ZodTypeAny, {
@@ -7634,12 +8365,14 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7634
8365
  cron: string;
7635
8366
  };
7636
8367
  type: "cron";
8368
+ accountId?: string | undefined;
7637
8369
  metadata?: any;
7638
8370
  } | {
7639
8371
  options: {
7640
8372
  seconds: number;
7641
8373
  };
7642
8374
  type: "interval";
8375
+ accountId?: string | undefined;
7643
8376
  metadata?: any;
7644
8377
  };
7645
8378
  }, {
@@ -7649,12 +8382,14 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7649
8382
  cron: string;
7650
8383
  };
7651
8384
  type: "cron";
8385
+ accountId?: string | undefined;
7652
8386
  metadata?: any;
7653
8387
  } | {
7654
8388
  options: {
7655
8389
  seconds: number;
7656
8390
  };
7657
8391
  type: "interval";
8392
+ accountId?: string | undefined;
7658
8393
  metadata?: any;
7659
8394
  };
7660
8395
  }>]>;
@@ -7674,6 +8409,17 @@ declare const ErrorWithStackSchema: z.ZodObject<{
7674
8409
  stack?: string | undefined;
7675
8410
  }>;
7676
8411
  type ErrorWithStack = z.infer<typeof ErrorWithStackSchema>;
8412
+ declare const SchemaErrorSchema: z.ZodObject<{
8413
+ path: z.ZodArray<z.ZodString, "many">;
8414
+ message: z.ZodString;
8415
+ }, "strip", z.ZodTypeAny, {
8416
+ message: string;
8417
+ path: string[];
8418
+ }, {
8419
+ message: string;
8420
+ path: string[];
8421
+ }>;
8422
+ type SchemaError = z.infer<typeof SchemaErrorSchema>;
7677
8423
 
7678
8424
  /** A property that is displayed in the logs */
7679
8425
  declare const DisplayPropertySchema: z.ZodObject<{
@@ -7725,17 +8471,17 @@ type Style = z.infer<typeof StyleSchema>;
7725
8471
  type StyleName = Style["style"];
7726
8472
 
7727
8473
  declare const ConnectionAuthSchema: z.ZodObject<{
7728
- type: z.ZodEnum<["oauth2"]>;
8474
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
7729
8475
  accessToken: z.ZodString;
7730
8476
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7731
8477
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7732
8478
  }, "strip", z.ZodTypeAny, {
7733
- type: "oauth2";
8479
+ type: "oauth2" | "apiKey";
7734
8480
  accessToken: string;
7735
8481
  scopes?: string[] | undefined;
7736
8482
  additionalFields?: Record<string, string> | undefined;
7737
8483
  }, {
7738
- type: "oauth2";
8484
+ type: "oauth2" | "apiKey";
7739
8485
  accessToken: string;
7740
8486
  scopes?: string[] | undefined;
7741
8487
  additionalFields?: Record<string, string> | undefined;
@@ -7770,7 +8516,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7770
8516
  id: string;
7771
8517
  instructions?: string | undefined;
7772
8518
  }>;
7773
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
8519
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
7774
8520
  }, "strip", z.ZodTypeAny, {
7775
8521
  id: string;
7776
8522
  metadata: {
@@ -7778,7 +8524,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7778
8524
  id: string;
7779
8525
  instructions?: string | undefined;
7780
8526
  };
7781
- authSource: "HOSTED" | "LOCAL";
8527
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7782
8528
  }, {
7783
8529
  id: string;
7784
8530
  metadata: {
@@ -7786,7 +8532,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7786
8532
  id: string;
7787
8533
  instructions?: string | undefined;
7788
8534
  };
7789
- authSource: "HOSTED" | "LOCAL";
8535
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7790
8536
  }>;
7791
8537
  type IntegrationConfig = z.infer<typeof IntegrationConfigSchema>;
7792
8538
 
@@ -7803,7 +8549,7 @@ declare const ScheduledPayloadSchema: z.ZodObject<{
7803
8549
  }>;
7804
8550
  type ScheduledPayload = z.infer<typeof ScheduledPayloadSchema>;
7805
8551
  declare const IntervalOptionsSchema: z.ZodObject<{
7806
- /** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
8552
+ /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
7807
8553
  seconds: z.ZodNumber;
7808
8554
  }, "strip", z.ZodTypeAny, {
7809
8555
  seconds: number;
@@ -7836,18 +8582,22 @@ declare const CronMetadataSchema: z.ZodObject<{
7836
8582
  }, {
7837
8583
  cron: string;
7838
8584
  }>;
8585
+ /** An optional Account ID to associate with runs triggered by this interval */
8586
+ accountId: z.ZodOptional<z.ZodString>;
7839
8587
  metadata: z.ZodAny;
7840
8588
  }, "strip", z.ZodTypeAny, {
7841
8589
  options: {
7842
8590
  cron: string;
7843
8591
  };
7844
8592
  type: "cron";
8593
+ accountId?: string | undefined;
7845
8594
  metadata?: any;
7846
8595
  }, {
7847
8596
  options: {
7848
8597
  cron: string;
7849
8598
  };
7850
8599
  type: "cron";
8600
+ accountId?: string | undefined;
7851
8601
  metadata?: any;
7852
8602
  }>;
7853
8603
  type CronMetadata = z.infer<typeof CronMetadataSchema>;
@@ -7856,13 +8606,15 @@ declare const IntervalMetadataSchema: z.ZodObject<{
7856
8606
  type: z.ZodLiteral<"interval">;
7857
8607
  /** An object containing options about the interval. */
7858
8608
  options: z.ZodObject<{
7859
- /** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
8609
+ /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
7860
8610
  seconds: z.ZodNumber;
7861
8611
  }, "strip", z.ZodTypeAny, {
7862
8612
  seconds: number;
7863
8613
  }, {
7864
8614
  seconds: number;
7865
8615
  }>;
8616
+ /** An optional Account ID to associate with runs triggered by this interval */
8617
+ accountId: z.ZodOptional<z.ZodString>;
7866
8618
  /** Any additional metadata about the schedule. */
7867
8619
  metadata: z.ZodAny;
7868
8620
  }, "strip", z.ZodTypeAny, {
@@ -7870,12 +8622,14 @@ declare const IntervalMetadataSchema: z.ZodObject<{
7870
8622
  seconds: number;
7871
8623
  };
7872
8624
  type: "interval";
8625
+ accountId?: string | undefined;
7873
8626
  metadata?: any;
7874
8627
  }, {
7875
8628
  options: {
7876
8629
  seconds: number;
7877
8630
  };
7878
8631
  type: "interval";
8632
+ accountId?: string | undefined;
7879
8633
  metadata?: any;
7880
8634
  }>;
7881
8635
  type IntervalMetadata = z.infer<typeof IntervalMetadataSchema>;
@@ -7884,13 +8638,15 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
7884
8638
  type: z.ZodLiteral<"interval">;
7885
8639
  /** An object containing options about the interval. */
7886
8640
  options: z.ZodObject<{
7887
- /** The number of seconds for the interval. Min = 60, Max = 86400 (1 day) */
8641
+ /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
7888
8642
  seconds: z.ZodNumber;
7889
8643
  }, "strip", z.ZodTypeAny, {
7890
8644
  seconds: number;
7891
8645
  }, {
7892
8646
  seconds: number;
7893
8647
  }>;
8648
+ /** An optional Account ID to associate with runs triggered by this interval */
8649
+ accountId: z.ZodOptional<z.ZodString>;
7894
8650
  /** Any additional metadata about the schedule. */
7895
8651
  metadata: z.ZodAny;
7896
8652
  }, "strip", z.ZodTypeAny, {
@@ -7898,12 +8654,14 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
7898
8654
  seconds: number;
7899
8655
  };
7900
8656
  type: "interval";
8657
+ accountId?: string | undefined;
7901
8658
  metadata?: any;
7902
8659
  }, {
7903
8660
  options: {
7904
8661
  seconds: number;
7905
8662
  };
7906
8663
  type: "interval";
8664
+ accountId?: string | undefined;
7907
8665
  metadata?: any;
7908
8666
  }>, z.ZodObject<{
7909
8667
  type: z.ZodLiteral<"cron">;
@@ -7917,18 +8675,22 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
7917
8675
  }, {
7918
8676
  cron: string;
7919
8677
  }>;
8678
+ /** An optional Account ID to associate with runs triggered by this interval */
8679
+ accountId: z.ZodOptional<z.ZodString>;
7920
8680
  metadata: z.ZodAny;
7921
8681
  }, "strip", z.ZodTypeAny, {
7922
8682
  options: {
7923
8683
  cron: string;
7924
8684
  };
7925
8685
  type: "cron";
8686
+ accountId?: string | undefined;
7926
8687
  metadata?: any;
7927
8688
  }, {
7928
8689
  options: {
7929
8690
  cron: string;
7930
8691
  };
7931
8692
  type: "cron";
8693
+ accountId?: string | undefined;
7932
8694
  metadata?: any;
7933
8695
  }>]>;
7934
8696
  type ScheduleMetadata = z.infer<typeof ScheduleMetadataSchema>;
@@ -7973,14 +8735,14 @@ declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObject<{
7973
8735
  scopes: string[];
7974
8736
  id: string;
7975
8737
  title: string;
7976
- createdAt: Date;
7977
8738
  updatedAt: Date;
8739
+ createdAt: Date;
7978
8740
  }, {
7979
8741
  scopes: string[];
7980
8742
  id: string;
7981
8743
  title: string;
7982
- createdAt: Date;
7983
8744
  updatedAt: Date;
8745
+ createdAt: Date;
7984
8746
  }>;
7985
8747
  authorizationUrl: z.ZodString;
7986
8748
  }, "strip", z.ZodTypeAny, {
@@ -7989,8 +8751,8 @@ declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObject<{
7989
8751
  scopes: string[];
7990
8752
  id: string;
7991
8753
  title: string;
7992
- createdAt: Date;
7993
8754
  updatedAt: Date;
8755
+ createdAt: Date;
7994
8756
  };
7995
8757
  authorizationUrl: string;
7996
8758
  }, {
@@ -7999,8 +8761,8 @@ declare const CommonMissingConnectionNotificationPayloadSchema: z.ZodObject<{
7999
8761
  scopes: string[];
8000
8762
  id: string;
8001
8763
  title: string;
8002
- createdAt: Date;
8003
8764
  updatedAt: Date;
8765
+ createdAt: Date;
8004
8766
  };
8005
8767
  authorizationUrl: string;
8006
8768
  }>;
@@ -8016,14 +8778,14 @@ declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
8016
8778
  scopes: string[];
8017
8779
  id: string;
8018
8780
  title: string;
8019
- createdAt: Date;
8020
8781
  updatedAt: Date;
8782
+ createdAt: Date;
8021
8783
  }, {
8022
8784
  scopes: string[];
8023
8785
  id: string;
8024
8786
  title: string;
8025
- createdAt: Date;
8026
8787
  updatedAt: Date;
8788
+ createdAt: Date;
8027
8789
  }>;
8028
8790
  authorizationUrl: z.ZodString;
8029
8791
  type: z.ZodLiteral<"DEVELOPER">;
@@ -8034,8 +8796,8 @@ declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
8034
8796
  scopes: string[];
8035
8797
  id: string;
8036
8798
  title: string;
8037
- createdAt: Date;
8038
8799
  updatedAt: Date;
8800
+ createdAt: Date;
8039
8801
  };
8040
8802
  authorizationUrl: string;
8041
8803
  }, {
@@ -8045,8 +8807,8 @@ declare const MissingDeveloperConnectionNotificationPayloadSchema: z.ZodObject<{
8045
8807
  scopes: string[];
8046
8808
  id: string;
8047
8809
  title: string;
8048
- createdAt: Date;
8049
8810
  updatedAt: Date;
8811
+ createdAt: Date;
8050
8812
  };
8051
8813
  authorizationUrl: string;
8052
8814
  }>;
@@ -8062,14 +8824,14 @@ declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
8062
8824
  scopes: string[];
8063
8825
  id: string;
8064
8826
  title: string;
8065
- createdAt: Date;
8066
8827
  updatedAt: Date;
8828
+ createdAt: Date;
8067
8829
  }, {
8068
8830
  scopes: string[];
8069
8831
  id: string;
8070
8832
  title: string;
8071
- createdAt: Date;
8072
8833
  updatedAt: Date;
8834
+ createdAt: Date;
8073
8835
  }>;
8074
8836
  authorizationUrl: z.ZodString;
8075
8837
  type: z.ZodLiteral<"EXTERNAL">;
@@ -8094,8 +8856,8 @@ declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
8094
8856
  scopes: string[];
8095
8857
  id: string;
8096
8858
  title: string;
8097
- createdAt: Date;
8098
8859
  updatedAt: Date;
8860
+ createdAt: Date;
8099
8861
  };
8100
8862
  authorizationUrl: string;
8101
8863
  }, {
@@ -8109,8 +8871,8 @@ declare const MissingExternalConnectionNotificationPayloadSchema: z.ZodObject<{
8109
8871
  scopes: string[];
8110
8872
  id: string;
8111
8873
  title: string;
8112
- createdAt: Date;
8113
8874
  updatedAt: Date;
8875
+ createdAt: Date;
8114
8876
  };
8115
8877
  authorizationUrl: string;
8116
8878
  }>;
@@ -8126,14 +8888,14 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8126
8888
  scopes: string[];
8127
8889
  id: string;
8128
8890
  title: string;
8129
- createdAt: Date;
8130
8891
  updatedAt: Date;
8892
+ createdAt: Date;
8131
8893
  }, {
8132
8894
  scopes: string[];
8133
8895
  id: string;
8134
8896
  title: string;
8135
- createdAt: Date;
8136
8897
  updatedAt: Date;
8898
+ createdAt: Date;
8137
8899
  }>;
8138
8900
  authorizationUrl: z.ZodString;
8139
8901
  type: z.ZodLiteral<"DEVELOPER">;
@@ -8144,8 +8906,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8144
8906
  scopes: string[];
8145
8907
  id: string;
8146
8908
  title: string;
8147
- createdAt: Date;
8148
8909
  updatedAt: Date;
8910
+ createdAt: Date;
8149
8911
  };
8150
8912
  authorizationUrl: string;
8151
8913
  }, {
@@ -8155,8 +8917,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8155
8917
  scopes: string[];
8156
8918
  id: string;
8157
8919
  title: string;
8158
- createdAt: Date;
8159
8920
  updatedAt: Date;
8921
+ createdAt: Date;
8160
8922
  };
8161
8923
  authorizationUrl: string;
8162
8924
  }>, z.ZodObject<{
@@ -8171,14 +8933,14 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8171
8933
  scopes: string[];
8172
8934
  id: string;
8173
8935
  title: string;
8174
- createdAt: Date;
8175
8936
  updatedAt: Date;
8937
+ createdAt: Date;
8176
8938
  }, {
8177
8939
  scopes: string[];
8178
8940
  id: string;
8179
8941
  title: string;
8180
- createdAt: Date;
8181
8942
  updatedAt: Date;
8943
+ createdAt: Date;
8182
8944
  }>;
8183
8945
  authorizationUrl: z.ZodString;
8184
8946
  type: z.ZodLiteral<"EXTERNAL">;
@@ -8203,8 +8965,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8203
8965
  scopes: string[];
8204
8966
  id: string;
8205
8967
  title: string;
8206
- createdAt: Date;
8207
8968
  updatedAt: Date;
8969
+ createdAt: Date;
8208
8970
  };
8209
8971
  authorizationUrl: string;
8210
8972
  }, {
@@ -8218,8 +8980,8 @@ declare const MissingConnectionNotificationPayloadSchema: z.ZodDiscriminatedUnio
8218
8980
  scopes: string[];
8219
8981
  id: string;
8220
8982
  title: string;
8221
- createdAt: Date;
8222
8983
  updatedAt: Date;
8984
+ createdAt: Date;
8223
8985
  };
8224
8986
  authorizationUrl: string;
8225
8987
  }>]>;
@@ -8238,16 +9000,16 @@ declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z.ZodObj
8238
9000
  scopes: string[];
8239
9001
  id: string;
8240
9002
  title: string;
8241
- createdAt: Date;
8242
9003
  updatedAt: Date;
9004
+ createdAt: Date;
8243
9005
  integrationIdentifier: string;
8244
9006
  integrationAuthMethod: string;
8245
9007
  }, {
8246
9008
  scopes: string[];
8247
9009
  id: string;
8248
9010
  title: string;
8249
- createdAt: Date;
8250
9011
  updatedAt: Date;
9012
+ createdAt: Date;
8251
9013
  integrationIdentifier: string;
8252
9014
  integrationAuthMethod: string;
8253
9015
  }>;
@@ -8258,8 +9020,8 @@ declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z.ZodObj
8258
9020
  scopes: string[];
8259
9021
  id: string;
8260
9022
  title: string;
8261
- createdAt: Date;
8262
9023
  updatedAt: Date;
9024
+ createdAt: Date;
8263
9025
  integrationIdentifier: string;
8264
9026
  integrationAuthMethod: string;
8265
9027
  };
@@ -8270,8 +9032,8 @@ declare const CommonMissingConnectionNotificationResolvedPayloadSchema: z.ZodObj
8270
9032
  scopes: string[];
8271
9033
  id: string;
8272
9034
  title: string;
8273
- createdAt: Date;
8274
9035
  updatedAt: Date;
9036
+ createdAt: Date;
8275
9037
  integrationIdentifier: string;
8276
9038
  integrationAuthMethod: string;
8277
9039
  };
@@ -8291,16 +9053,16 @@ declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.Zod
8291
9053
  scopes: string[];
8292
9054
  id: string;
8293
9055
  title: string;
8294
- createdAt: Date;
8295
9056
  updatedAt: Date;
9057
+ createdAt: Date;
8296
9058
  integrationIdentifier: string;
8297
9059
  integrationAuthMethod: string;
8298
9060
  }, {
8299
9061
  scopes: string[];
8300
9062
  id: string;
8301
9063
  title: string;
8302
- createdAt: Date;
8303
9064
  updatedAt: Date;
9065
+ createdAt: Date;
8304
9066
  integrationIdentifier: string;
8305
9067
  integrationAuthMethod: string;
8306
9068
  }>;
@@ -8313,8 +9075,8 @@ declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.Zod
8313
9075
  scopes: string[];
8314
9076
  id: string;
8315
9077
  title: string;
8316
- createdAt: Date;
8317
9078
  updatedAt: Date;
9079
+ createdAt: Date;
8318
9080
  integrationIdentifier: string;
8319
9081
  integrationAuthMethod: string;
8320
9082
  };
@@ -8326,8 +9088,8 @@ declare const MissingDeveloperConnectionResolvedNotificationPayloadSchema: z.Zod
8326
9088
  scopes: string[];
8327
9089
  id: string;
8328
9090
  title: string;
8329
- createdAt: Date;
8330
9091
  updatedAt: Date;
9092
+ createdAt: Date;
8331
9093
  integrationIdentifier: string;
8332
9094
  integrationAuthMethod: string;
8333
9095
  };
@@ -8347,16 +9109,16 @@ declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodO
8347
9109
  scopes: string[];
8348
9110
  id: string;
8349
9111
  title: string;
8350
- createdAt: Date;
8351
9112
  updatedAt: Date;
9113
+ createdAt: Date;
8352
9114
  integrationIdentifier: string;
8353
9115
  integrationAuthMethod: string;
8354
9116
  }, {
8355
9117
  scopes: string[];
8356
9118
  id: string;
8357
9119
  title: string;
8358
- createdAt: Date;
8359
9120
  updatedAt: Date;
9121
+ createdAt: Date;
8360
9122
  integrationIdentifier: string;
8361
9123
  integrationAuthMethod: string;
8362
9124
  }>;
@@ -8383,8 +9145,8 @@ declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodO
8383
9145
  scopes: string[];
8384
9146
  id: string;
8385
9147
  title: string;
8386
- createdAt: Date;
8387
9148
  updatedAt: Date;
9149
+ createdAt: Date;
8388
9150
  integrationIdentifier: string;
8389
9151
  integrationAuthMethod: string;
8390
9152
  };
@@ -8400,8 +9162,8 @@ declare const MissingExternalConnectionResolvedNotificationPayloadSchema: z.ZodO
8400
9162
  scopes: string[];
8401
9163
  id: string;
8402
9164
  title: string;
8403
- createdAt: Date;
8404
9165
  updatedAt: Date;
9166
+ createdAt: Date;
8405
9167
  integrationIdentifier: string;
8406
9168
  integrationAuthMethod: string;
8407
9169
  };
@@ -8421,16 +9183,16 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8421
9183
  scopes: string[];
8422
9184
  id: string;
8423
9185
  title: string;
8424
- createdAt: Date;
8425
9186
  updatedAt: Date;
9187
+ createdAt: Date;
8426
9188
  integrationIdentifier: string;
8427
9189
  integrationAuthMethod: string;
8428
9190
  }, {
8429
9191
  scopes: string[];
8430
9192
  id: string;
8431
9193
  title: string;
8432
- createdAt: Date;
8433
9194
  updatedAt: Date;
9195
+ createdAt: Date;
8434
9196
  integrationIdentifier: string;
8435
9197
  integrationAuthMethod: string;
8436
9198
  }>;
@@ -8443,8 +9205,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8443
9205
  scopes: string[];
8444
9206
  id: string;
8445
9207
  title: string;
8446
- createdAt: Date;
8447
9208
  updatedAt: Date;
9209
+ createdAt: Date;
8448
9210
  integrationIdentifier: string;
8449
9211
  integrationAuthMethod: string;
8450
9212
  };
@@ -8456,8 +9218,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8456
9218
  scopes: string[];
8457
9219
  id: string;
8458
9220
  title: string;
8459
- createdAt: Date;
8460
9221
  updatedAt: Date;
9222
+ createdAt: Date;
8461
9223
  integrationIdentifier: string;
8462
9224
  integrationAuthMethod: string;
8463
9225
  };
@@ -8476,16 +9238,16 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8476
9238
  scopes: string[];
8477
9239
  id: string;
8478
9240
  title: string;
8479
- createdAt: Date;
8480
9241
  updatedAt: Date;
9242
+ createdAt: Date;
8481
9243
  integrationIdentifier: string;
8482
9244
  integrationAuthMethod: string;
8483
9245
  }, {
8484
9246
  scopes: string[];
8485
9247
  id: string;
8486
9248
  title: string;
8487
- createdAt: Date;
8488
9249
  updatedAt: Date;
9250
+ createdAt: Date;
8489
9251
  integrationIdentifier: string;
8490
9252
  integrationAuthMethod: string;
8491
9253
  }>;
@@ -8512,8 +9274,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8512
9274
  scopes: string[];
8513
9275
  id: string;
8514
9276
  title: string;
8515
- createdAt: Date;
8516
9277
  updatedAt: Date;
9278
+ createdAt: Date;
8517
9279
  integrationIdentifier: string;
8518
9280
  integrationAuthMethod: string;
8519
9281
  };
@@ -8529,8 +9291,8 @@ declare const MissingConnectionResolvedNotificationPayloadSchema: z.ZodDiscrimin
8529
9291
  scopes: string[];
8530
9292
  id: string;
8531
9293
  title: string;
8532
- createdAt: Date;
8533
9294
  updatedAt: Date;
9295
+ createdAt: Date;
8534
9296
  integrationIdentifier: string;
8535
9297
  integrationAuthMethod: string;
8536
9298
  };
@@ -8856,18 +9618,18 @@ declare const GetEventSchema: z.ZodObject<{
8856
9618
  /** The Run id */
8857
9619
  id: z.ZodString;
8858
9620
  /** The Run status */
8859
- 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">]>;
9621
+ 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">]>;
8860
9622
  /** When the run started */
8861
9623
  startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8862
9624
  /** When the run completed */
8863
9625
  completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8864
9626
  }, "strip", z.ZodTypeAny, {
8865
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9627
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8866
9628
  id: string;
8867
9629
  startedAt?: Date | null | undefined;
8868
9630
  completedAt?: Date | null | undefined;
8869
9631
  }, {
8870
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9632
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8871
9633
  id: string;
8872
9634
  startedAt?: Date | null | undefined;
8873
9635
  completedAt?: Date | null | undefined;
@@ -8875,30 +9637,30 @@ declare const GetEventSchema: z.ZodObject<{
8875
9637
  }, "strip", z.ZodTypeAny, {
8876
9638
  name: string;
8877
9639
  id: string;
8878
- createdAt: Date;
8879
9640
  updatedAt: Date;
8880
9641
  runs: {
8881
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9642
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8882
9643
  id: string;
8883
9644
  startedAt?: Date | null | undefined;
8884
9645
  completedAt?: Date | null | undefined;
8885
9646
  }[];
9647
+ createdAt: Date;
8886
9648
  }, {
8887
9649
  name: string;
8888
9650
  id: string;
8889
- createdAt: Date;
8890
9651
  updatedAt: Date;
8891
9652
  runs: {
8892
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9653
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8893
9654
  id: string;
8894
9655
  startedAt?: Date | null | undefined;
8895
9656
  completedAt?: Date | null | undefined;
8896
9657
  }[];
9658
+ createdAt: Date;
8897
9659
  }>;
8898
9660
  type GetEvent = z.infer<typeof GetEventSchema>;
8899
9661
 
8900
- 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">]>;
8901
- declare const RunTaskSchema: ZodObject<{
9662
+ 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">]>;
9663
+ declare const RunTaskSchema: z.ZodObject<{
8902
9664
  /** The Task id */
8903
9665
  id: z.ZodString;
8904
9666
  /** The key that you defined when creating the Task, the first param in any task. */
@@ -8936,7 +9698,7 @@ type RunTaskWithSubtasks = z.infer<typeof RunTaskSchema> & {
8936
9698
  /** The subtasks of the task */
8937
9699
  subtasks?: RunTaskWithSubtasks[];
8938
9700
  };
8939
- declare const GetRunOptionsSchema: ZodObject<{
9701
+ declare const GetRunOptionsSchema: z.ZodObject<{
8940
9702
  /** Return subtasks, which appear in a `subtasks` array on a task. @default false */
8941
9703
  subtasks: z.ZodOptional<z.ZodBoolean>;
8942
9704
  /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
@@ -8953,7 +9715,7 @@ declare const GetRunOptionsSchema: ZodObject<{
8953
9715
  take?: number | undefined;
8954
9716
  }>;
8955
9717
  type GetRunOptions = z.infer<typeof GetRunOptionsSchema>;
8956
- declare const GetRunOptionsWithTaskDetailsSchema: ZodObject<{
9718
+ declare const GetRunOptionsWithTaskDetailsSchema: z.ZodObject<{
8957
9719
  subtasks: z.ZodOptional<z.ZodBoolean>;
8958
9720
  cursor: z.ZodOptional<z.ZodString>;
8959
9721
  take: z.ZodOptional<z.ZodNumber>;
@@ -8970,36 +9732,97 @@ declare const GetRunOptionsWithTaskDetailsSchema: ZodObject<{
8970
9732
  taskdetails?: boolean | undefined;
8971
9733
  }>;
8972
9734
  type GetRunOptionsWithTaskDetails = z.infer<typeof GetRunOptionsWithTaskDetailsSchema>;
8973
- declare const GetRunSchema: ZodObject<{
8974
- 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">]>;
9735
+ declare const GetRunSchema: z.ZodObject<{
9736
+ 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">]>;
8975
9737
  id: z.ZodString;
8976
9738
  startedAt: z.ZodNullable<z.ZodDate>;
8977
9739
  completedAt: z.ZodNullable<z.ZodDate>;
8978
9740
  updatedAt: z.ZodNullable<z.ZodDate>;
8979
9741
  output: z.ZodOptional<z.ZodAny>;
8980
9742
  tasks: z.ZodArray<z.ZodType<RunTaskWithSubtasks, z.ZodTypeDef, RunTaskWithSubtasks>, "many">;
9743
+ statuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
9744
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9745
+ label: z.ZodString;
9746
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9747
+ key: z.ZodString;
9748
+ history: z.ZodArray<z.ZodObject<{
9749
+ label: z.ZodOptional<z.ZodString>;
9750
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9751
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9752
+ }, "strip", z.ZodTypeAny, {
9753
+ label?: string | undefined;
9754
+ state?: "loading" | "success" | "failure" | undefined;
9755
+ data?: Record<string, SerializableJson> | undefined;
9756
+ }, {
9757
+ label?: string | undefined;
9758
+ state?: "loading" | "success" | "failure" | undefined;
9759
+ data?: Record<string, SerializableJson> | undefined;
9760
+ }>, "many">;
9761
+ }, "strip", z.ZodTypeAny, {
9762
+ key: string;
9763
+ label: string;
9764
+ history: {
9765
+ label?: string | undefined;
9766
+ state?: "loading" | "success" | "failure" | undefined;
9767
+ data?: Record<string, SerializableJson> | undefined;
9768
+ }[];
9769
+ data?: Record<string, SerializableJson> | undefined;
9770
+ state?: "loading" | "success" | "failure" | undefined;
9771
+ }, {
9772
+ key: string;
9773
+ label: string;
9774
+ history: {
9775
+ label?: string | undefined;
9776
+ state?: "loading" | "success" | "failure" | undefined;
9777
+ data?: Record<string, SerializableJson> | undefined;
9778
+ }[];
9779
+ data?: Record<string, SerializableJson> | undefined;
9780
+ state?: "loading" | "success" | "failure" | undefined;
9781
+ }>, "many">>;
8981
9782
  nextCursor: z.ZodOptional<z.ZodString>;
8982
9783
  }, "strip", z.ZodTypeAny, {
8983
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9784
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8984
9785
  id: string;
8985
9786
  startedAt: Date | null;
8986
9787
  completedAt: Date | null;
8987
- tasks: RunTaskWithSubtasks[];
8988
9788
  updatedAt: Date | null;
9789
+ tasks: RunTaskWithSubtasks[];
9790
+ statuses: {
9791
+ key: string;
9792
+ label: string;
9793
+ history: {
9794
+ label?: string | undefined;
9795
+ state?: "loading" | "success" | "failure" | undefined;
9796
+ data?: Record<string, SerializableJson> | undefined;
9797
+ }[];
9798
+ data?: Record<string, SerializableJson> | undefined;
9799
+ state?: "loading" | "success" | "failure" | undefined;
9800
+ }[];
8989
9801
  output?: any;
8990
9802
  nextCursor?: string | undefined;
8991
9803
  }, {
8992
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9804
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8993
9805
  id: string;
8994
9806
  startedAt: Date | null;
8995
9807
  completedAt: Date | null;
8996
- tasks: RunTaskWithSubtasks[];
8997
9808
  updatedAt: Date | null;
9809
+ tasks: RunTaskWithSubtasks[];
8998
9810
  output?: any;
9811
+ statuses?: {
9812
+ key: string;
9813
+ label: string;
9814
+ history: {
9815
+ label?: string | undefined;
9816
+ state?: "loading" | "success" | "failure" | undefined;
9817
+ data?: Record<string, SerializableJson> | undefined;
9818
+ }[];
9819
+ data?: Record<string, SerializableJson> | undefined;
9820
+ state?: "loading" | "success" | "failure" | undefined;
9821
+ }[] | undefined;
8999
9822
  nextCursor?: string | undefined;
9000
9823
  }>;
9001
9824
  type GetRun = z.infer<typeof GetRunSchema>;
9002
- declare const GetRunsOptionsSchema: ZodObject<{
9825
+ declare const GetRunsOptionsSchema: z.ZodObject<{
9003
9826
  /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
9004
9827
  cursor: z.ZodOptional<z.ZodString>;
9005
9828
  /** How many runs you want to return in one go, max 50. @default 20 */
@@ -9012,13 +9835,13 @@ declare const GetRunsOptionsSchema: ZodObject<{
9012
9835
  take?: number | undefined;
9013
9836
  }>;
9014
9837
  type GetRunsOptions = z.infer<typeof GetRunsOptionsSchema>;
9015
- declare const GetRunsSchema: ZodObject<{
9838
+ declare const GetRunsSchema: z.ZodObject<{
9016
9839
  /** The runs from the query */
9017
- runs: z.ZodArray<ZodObject<{
9840
+ runs: z.ZodArray<z.ZodObject<{
9018
9841
  /** The Run id */
9019
9842
  id: z.ZodString;
9020
9843
  /** The Run status */
9021
- 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">]>;
9844
+ 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">]>;
9022
9845
  /** When the run started */
9023
9846
  startedAt: z.ZodNullable<z.ZodDate>;
9024
9847
  /** When the run was last updated */
@@ -9026,13 +9849,13 @@ declare const GetRunsSchema: ZodObject<{
9026
9849
  /** When the run was completed */
9027
9850
  completedAt: z.ZodNullable<z.ZodDate>;
9028
9851
  }, "strip", z.ZodTypeAny, {
9029
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9852
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9030
9853
  id: string;
9031
9854
  startedAt: Date | null;
9032
9855
  completedAt: Date | null;
9033
9856
  updatedAt: Date | null;
9034
9857
  }, {
9035
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9858
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9036
9859
  id: string;
9037
9860
  startedAt: Date | null;
9038
9861
  completedAt: Date | null;
@@ -9042,7 +9865,7 @@ declare const GetRunsSchema: ZodObject<{
9042
9865
  nextCursor: z.ZodOptional<z.ZodString>;
9043
9866
  }, "strip", z.ZodTypeAny, {
9044
9867
  runs: {
9045
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9868
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9046
9869
  id: string;
9047
9870
  startedAt: Date | null;
9048
9871
  completedAt: Date | null;
@@ -9051,7 +9874,7 @@ declare const GetRunsSchema: ZodObject<{
9051
9874
  nextCursor?: string | undefined;
9052
9875
  }, {
9053
9876
  runs: {
9054
- status: "PENDING" | "CANCELED" | "SUCCESS" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9877
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9055
9878
  id: string;
9056
9879
  startedAt: Date | null;
9057
9880
  completedAt: Date | null;
@@ -9062,6 +9885,92 @@ declare const GetRunsSchema: ZodObject<{
9062
9885
 
9063
9886
  declare function addMissingVersionField(val: unknown): unknown;
9064
9887
 
9888
+ declare const StatusUpdateStateSchema: z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>;
9889
+ type StatusUpdateState = z.infer<typeof StatusUpdateStateSchema>;
9890
+ declare const StatusUpdateDataSchema: z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>;
9891
+ type StatusUpdateData = z.infer<typeof StatusUpdateDataSchema>;
9892
+ declare const StatusUpdateSchema: z.ZodObject<{
9893
+ label: z.ZodOptional<z.ZodString>;
9894
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9895
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9896
+ }, "strip", z.ZodTypeAny, {
9897
+ label?: string | undefined;
9898
+ state?: "loading" | "success" | "failure" | undefined;
9899
+ data?: Record<string, SerializableJson> | undefined;
9900
+ }, {
9901
+ label?: string | undefined;
9902
+ state?: "loading" | "success" | "failure" | undefined;
9903
+ data?: Record<string, SerializableJson> | undefined;
9904
+ }>;
9905
+ type StatusUpdate = z.infer<typeof StatusUpdateSchema>;
9906
+ declare const InitalStatusUpdateSchema: z.ZodObject<{
9907
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9908
+ label: z.ZodString;
9909
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9910
+ }, "strip", z.ZodTypeAny, {
9911
+ label: string;
9912
+ data?: Record<string, SerializableJson> | undefined;
9913
+ state?: "loading" | "success" | "failure" | undefined;
9914
+ }, {
9915
+ label: string;
9916
+ data?: Record<string, SerializableJson> | undefined;
9917
+ state?: "loading" | "success" | "failure" | undefined;
9918
+ }>;
9919
+ type InitialStatusUpdate = z.infer<typeof InitalStatusUpdateSchema>;
9920
+ declare const StatusHistorySchema: z.ZodArray<z.ZodObject<{
9921
+ label: z.ZodOptional<z.ZodString>;
9922
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9923
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9924
+ }, "strip", z.ZodTypeAny, {
9925
+ label?: string | undefined;
9926
+ state?: "loading" | "success" | "failure" | undefined;
9927
+ data?: Record<string, SerializableJson> | undefined;
9928
+ }, {
9929
+ label?: string | undefined;
9930
+ state?: "loading" | "success" | "failure" | undefined;
9931
+ data?: Record<string, SerializableJson> | undefined;
9932
+ }>, "many">;
9933
+ type StatusHistory = z.infer<typeof StatusHistorySchema>;
9934
+ declare const JobRunStatusRecordSchema: z.ZodObject<{
9935
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9936
+ label: z.ZodString;
9937
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9938
+ key: z.ZodString;
9939
+ history: z.ZodArray<z.ZodObject<{
9940
+ label: z.ZodOptional<z.ZodString>;
9941
+ state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9942
+ data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9943
+ }, "strip", z.ZodTypeAny, {
9944
+ label?: string | undefined;
9945
+ state?: "loading" | "success" | "failure" | undefined;
9946
+ data?: Record<string, SerializableJson> | undefined;
9947
+ }, {
9948
+ label?: string | undefined;
9949
+ state?: "loading" | "success" | "failure" | undefined;
9950
+ data?: Record<string, SerializableJson> | undefined;
9951
+ }>, "many">;
9952
+ }, "strip", z.ZodTypeAny, {
9953
+ key: string;
9954
+ label: string;
9955
+ history: {
9956
+ label?: string | undefined;
9957
+ state?: "loading" | "success" | "failure" | undefined;
9958
+ data?: Record<string, SerializableJson> | undefined;
9959
+ }[];
9960
+ data?: Record<string, SerializableJson> | undefined;
9961
+ state?: "loading" | "success" | "failure" | undefined;
9962
+ }, {
9963
+ key: string;
9964
+ label: string;
9965
+ history: {
9966
+ label?: string | undefined;
9967
+ state?: "loading" | "success" | "failure" | undefined;
9968
+ data?: Record<string, SerializableJson> | undefined;
9969
+ }[];
9970
+ data?: Record<string, SerializableJson> | undefined;
9971
+ state?: "loading" | "success" | "failure" | undefined;
9972
+ }>;
9973
+
9065
9974
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
9066
9975
 
9067
9976
  declare function calculateRetryAt(retryOptions: RetryOptions, attempts: number): Date | undefined;
@@ -9088,4 +9997,24 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
9088
9997
 
9089
9998
  declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
9090
9999
 
9091
- export { ApiEventLog, ApiEventLogSchema, CachedTask, CachedTaskSchema, 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, 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 };
10000
+ declare class BloomFilter {
10001
+ private size;
10002
+ private bitArray;
10003
+ constructor(size: number);
10004
+ add(item: string): void;
10005
+ test(item: string): boolean;
10006
+ serialize(): string;
10007
+ static deserialize(str: string, size: number): BloomFilter;
10008
+ static NOOP_TASK_SET_SIZE: number;
10009
+ }
10010
+
10011
+ declare const API_VERSIONS: {
10012
+ readonly LAZY_LOADED_CACHED_TASKS: "2023-09-29";
10013
+ };
10014
+ declare const PLATFORM_FEATURES: {
10015
+ yieldExecution: "2023-09-29";
10016
+ lazyLoadedCachedTasks: "2023-09-29";
10017
+ };
10018
+ declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
10019
+
10020
+ export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, BloomFilter, CachedTask, CachedTaskSchema, 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, 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, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, 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, 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, replacements, supportsFeature, urlWithSearchParams };