@trigger.dev/core 0.0.0-statuses-20230921210707 → 0.0.0-zod-decouple-20230922213650

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.
@@ -901,17 +901,17 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
901
901
  data: z.ZodAny;
902
902
  params: z.ZodAny;
903
903
  auth: z.ZodOptional<z.ZodObject<{
904
- type: z.ZodEnum<["oauth2"]>;
904
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
905
905
  accessToken: z.ZodString;
906
906
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
907
907
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
908
908
  }, "strip", z.ZodTypeAny, {
909
- type: "oauth2";
909
+ type: "oauth2" | "apiKey";
910
910
  accessToken: string;
911
911
  scopes?: string[] | undefined;
912
912
  additionalFields?: Record<string, string> | undefined;
913
913
  }, {
914
- type: "oauth2";
914
+ type: "oauth2" | "apiKey";
915
915
  accessToken: string;
916
916
  scopes?: string[] | undefined;
917
917
  additionalFields?: Record<string, string> | undefined;
@@ -923,7 +923,7 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
923
923
  data?: any;
924
924
  params?: any;
925
925
  auth?: {
926
- type: "oauth2";
926
+ type: "oauth2" | "apiKey";
927
927
  accessToken: string;
928
928
  scopes?: string[] | undefined;
929
929
  additionalFields?: Record<string, string> | undefined;
@@ -935,7 +935,7 @@ declare const HandleTriggerSourceSchema: z.ZodObject<{
935
935
  data?: any;
936
936
  params?: any;
937
937
  auth?: {
938
- type: "oauth2";
938
+ type: "oauth2" | "apiKey";
939
939
  accessToken: string;
940
940
  scopes?: string[] | undefined;
941
941
  additionalFields?: Record<string, string> | undefined;
@@ -971,7 +971,7 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
971
971
  "x-ts-http-method": z.ZodString;
972
972
  "x-ts-http-headers": z.ZodEffects<z.ZodString, Record<string, string>, string>;
973
973
  "x-ts-auth": z.ZodEffects<z.ZodOptional<z.ZodString>, {
974
- type: "oauth2";
974
+ type: "oauth2" | "apiKey";
975
975
  accessToken: string;
976
976
  scopes?: string[] | undefined;
977
977
  additionalFields?: Record<string, string> | undefined;
@@ -989,7 +989,7 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
989
989
  "x-ts-data"?: any;
990
990
  "x-ts-params"?: any;
991
991
  "x-ts-auth"?: {
992
- type: "oauth2";
992
+ type: "oauth2" | "apiKey";
993
993
  accessToken: string;
994
994
  scopes?: string[] | undefined;
995
995
  additionalFields?: Record<string, string> | undefined;
@@ -1252,18 +1252,21 @@ declare const JobMetadataSchema: z.ZodObject<{
1252
1252
  }, {
1253
1253
  seconds: number;
1254
1254
  }>;
1255
+ accountId: z.ZodOptional<z.ZodString>;
1255
1256
  metadata: z.ZodAny;
1256
1257
  }, "strip", z.ZodTypeAny, {
1257
1258
  options: {
1258
1259
  seconds: number;
1259
1260
  };
1260
1261
  type: "interval";
1262
+ accountId?: string | undefined;
1261
1263
  metadata?: any;
1262
1264
  }, {
1263
1265
  options: {
1264
1266
  seconds: number;
1265
1267
  };
1266
1268
  type: "interval";
1269
+ accountId?: string | undefined;
1267
1270
  metadata?: any;
1268
1271
  }>, z.ZodObject<{
1269
1272
  type: z.ZodLiteral<"cron">;
@@ -1274,18 +1277,21 @@ declare const JobMetadataSchema: z.ZodObject<{
1274
1277
  }, {
1275
1278
  cron: string;
1276
1279
  }>;
1280
+ accountId: z.ZodOptional<z.ZodString>;
1277
1281
  metadata: z.ZodAny;
1278
1282
  }, "strip", z.ZodTypeAny, {
1279
1283
  options: {
1280
1284
  cron: string;
1281
1285
  };
1282
1286
  type: "cron";
1287
+ accountId?: string | undefined;
1283
1288
  metadata?: any;
1284
1289
  }, {
1285
1290
  options: {
1286
1291
  cron: string;
1287
1292
  };
1288
1293
  type: "cron";
1294
+ accountId?: string | undefined;
1289
1295
  metadata?: any;
1290
1296
  }>]>;
1291
1297
  }, "strip", z.ZodTypeAny, {
@@ -1295,12 +1301,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1295
1301
  cron: string;
1296
1302
  };
1297
1303
  type: "cron";
1304
+ accountId?: string | undefined;
1298
1305
  metadata?: any;
1299
1306
  } | {
1300
1307
  options: {
1301
1308
  seconds: number;
1302
1309
  };
1303
1310
  type: "interval";
1311
+ accountId?: string | undefined;
1304
1312
  metadata?: any;
1305
1313
  };
1306
1314
  }, {
@@ -1310,12 +1318,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1310
1318
  cron: string;
1311
1319
  };
1312
1320
  type: "cron";
1321
+ accountId?: string | undefined;
1313
1322
  metadata?: any;
1314
1323
  } | {
1315
1324
  options: {
1316
1325
  seconds: number;
1317
1326
  };
1318
1327
  type: "interval";
1328
+ accountId?: string | undefined;
1319
1329
  metadata?: any;
1320
1330
  };
1321
1331
  }>]>;
@@ -1334,7 +1344,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1334
1344
  id: string;
1335
1345
  instructions?: string | undefined;
1336
1346
  }>;
1337
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1347
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1338
1348
  }, "strip", z.ZodTypeAny, {
1339
1349
  id: string;
1340
1350
  metadata: {
@@ -1342,7 +1352,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1342
1352
  id: string;
1343
1353
  instructions?: string | undefined;
1344
1354
  };
1345
- authSource: "HOSTED" | "LOCAL";
1355
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1346
1356
  }, {
1347
1357
  id: string;
1348
1358
  metadata: {
@@ -1350,7 +1360,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1350
1360
  id: string;
1351
1361
  instructions?: string | undefined;
1352
1362
  };
1353
- authSource: "HOSTED" | "LOCAL";
1363
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1354
1364
  }>>;
1355
1365
  internal: z.ZodDefault<z.ZodBoolean>;
1356
1366
  enabled: z.ZodBoolean;
@@ -1403,12 +1413,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1403
1413
  cron: string;
1404
1414
  };
1405
1415
  type: "cron";
1416
+ accountId?: string | undefined;
1406
1417
  metadata?: any;
1407
1418
  } | {
1408
1419
  options: {
1409
1420
  seconds: number;
1410
1421
  };
1411
1422
  type: "interval";
1423
+ accountId?: string | undefined;
1412
1424
  metadata?: any;
1413
1425
  };
1414
1426
  };
@@ -1419,7 +1431,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1419
1431
  id: string;
1420
1432
  instructions?: string | undefined;
1421
1433
  };
1422
- authSource: "HOSTED" | "LOCAL";
1434
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1423
1435
  }>;
1424
1436
  internal: boolean;
1425
1437
  enabled: boolean;
@@ -1472,12 +1484,14 @@ declare const JobMetadataSchema: z.ZodObject<{
1472
1484
  cron: string;
1473
1485
  };
1474
1486
  type: "cron";
1487
+ accountId?: string | undefined;
1475
1488
  metadata?: any;
1476
1489
  } | {
1477
1490
  options: {
1478
1491
  seconds: number;
1479
1492
  };
1480
1493
  type: "interval";
1494
+ accountId?: string | undefined;
1481
1495
  metadata?: any;
1482
1496
  };
1483
1497
  };
@@ -1488,7 +1502,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1488
1502
  id: string;
1489
1503
  instructions?: string | undefined;
1490
1504
  };
1491
- authSource: "HOSTED" | "LOCAL";
1505
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1492
1506
  }>;
1493
1507
  enabled: boolean;
1494
1508
  startPosition: "initial" | "latest";
@@ -1514,7 +1528,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1514
1528
  id: string;
1515
1529
  instructions?: string | undefined;
1516
1530
  }>;
1517
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1531
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1518
1532
  }, "strip", z.ZodTypeAny, {
1519
1533
  id: string;
1520
1534
  metadata: {
@@ -1522,7 +1536,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1522
1536
  id: string;
1523
1537
  instructions?: string | undefined;
1524
1538
  };
1525
- authSource: "HOSTED" | "LOCAL";
1539
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1526
1540
  }, {
1527
1541
  id: string;
1528
1542
  metadata: {
@@ -1530,7 +1544,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1530
1544
  id: string;
1531
1545
  instructions?: string | undefined;
1532
1546
  };
1533
- authSource: "HOSTED" | "LOCAL";
1547
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1534
1548
  }>;
1535
1549
  key: z.ZodString;
1536
1550
  params: z.ZodAny;
@@ -1557,7 +1571,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1557
1571
  id: string;
1558
1572
  instructions?: string | undefined;
1559
1573
  };
1560
- authSource: "HOSTED" | "LOCAL";
1574
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1561
1575
  };
1562
1576
  params?: any;
1563
1577
  registerSourceJob?: {
@@ -1576,7 +1590,7 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1576
1590
  id: string;
1577
1591
  instructions?: string | undefined;
1578
1592
  };
1579
- authSource: "HOSTED" | "LOCAL";
1593
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1580
1594
  };
1581
1595
  params?: any;
1582
1596
  registerSourceJob?: {
@@ -1603,7 +1617,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1603
1617
  id: string;
1604
1618
  instructions?: string | undefined;
1605
1619
  }>;
1606
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1620
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1607
1621
  }, "strip", z.ZodTypeAny, {
1608
1622
  id: string;
1609
1623
  metadata: {
@@ -1611,7 +1625,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1611
1625
  id: string;
1612
1626
  instructions?: string | undefined;
1613
1627
  };
1614
- authSource: "HOSTED" | "LOCAL";
1628
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1615
1629
  }, {
1616
1630
  id: string;
1617
1631
  metadata: {
@@ -1619,7 +1633,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1619
1633
  id: string;
1620
1634
  instructions?: string | undefined;
1621
1635
  };
1622
- authSource: "HOSTED" | "LOCAL";
1636
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1623
1637
  }>;
1624
1638
  key: z.ZodString;
1625
1639
  params: z.ZodAny;
@@ -1646,7 +1660,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1646
1660
  id: string;
1647
1661
  instructions?: string | undefined;
1648
1662
  };
1649
- authSource: "HOSTED" | "LOCAL";
1663
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1650
1664
  };
1651
1665
  params?: any;
1652
1666
  registerSourceJob?: {
@@ -1665,7 +1679,7 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1665
1679
  id: string;
1666
1680
  instructions?: string | undefined;
1667
1681
  };
1668
- authSource: "HOSTED" | "LOCAL";
1682
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1669
1683
  };
1670
1684
  params?: any;
1671
1685
  registerSourceJob?: {
@@ -1833,18 +1847,21 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1833
1847
  }, {
1834
1848
  seconds: number;
1835
1849
  }>;
1850
+ accountId: z.ZodOptional<z.ZodString>;
1836
1851
  metadata: z.ZodAny;
1837
1852
  }, "strip", z.ZodTypeAny, {
1838
1853
  options: {
1839
1854
  seconds: number;
1840
1855
  };
1841
1856
  type: "interval";
1857
+ accountId?: string | undefined;
1842
1858
  metadata?: any;
1843
1859
  }, {
1844
1860
  options: {
1845
1861
  seconds: number;
1846
1862
  };
1847
1863
  type: "interval";
1864
+ accountId?: string | undefined;
1848
1865
  metadata?: any;
1849
1866
  }>, z.ZodObject<{
1850
1867
  type: z.ZodLiteral<"cron">;
@@ -1855,18 +1872,21 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1855
1872
  }, {
1856
1873
  cron: string;
1857
1874
  }>;
1875
+ accountId: z.ZodOptional<z.ZodString>;
1858
1876
  metadata: z.ZodAny;
1859
1877
  }, "strip", z.ZodTypeAny, {
1860
1878
  options: {
1861
1879
  cron: string;
1862
1880
  };
1863
1881
  type: "cron";
1882
+ accountId?: string | undefined;
1864
1883
  metadata?: any;
1865
1884
  }, {
1866
1885
  options: {
1867
1886
  cron: string;
1868
1887
  };
1869
1888
  type: "cron";
1889
+ accountId?: string | undefined;
1870
1890
  metadata?: any;
1871
1891
  }>]>;
1872
1892
  }, "strip", z.ZodTypeAny, {
@@ -1876,12 +1896,14 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1876
1896
  cron: string;
1877
1897
  };
1878
1898
  type: "cron";
1899
+ accountId?: string | undefined;
1879
1900
  metadata?: any;
1880
1901
  } | {
1881
1902
  options: {
1882
1903
  seconds: number;
1883
1904
  };
1884
1905
  type: "interval";
1906
+ accountId?: string | undefined;
1885
1907
  metadata?: any;
1886
1908
  };
1887
1909
  }, {
@@ -1891,12 +1913,14 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1891
1913
  cron: string;
1892
1914
  };
1893
1915
  type: "cron";
1916
+ accountId?: string | undefined;
1894
1917
  metadata?: any;
1895
1918
  } | {
1896
1919
  options: {
1897
1920
  seconds: number;
1898
1921
  };
1899
1922
  type: "interval";
1923
+ accountId?: string | undefined;
1900
1924
  metadata?: any;
1901
1925
  };
1902
1926
  }>]>;
@@ -1915,7 +1939,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1915
1939
  id: string;
1916
1940
  instructions?: string | undefined;
1917
1941
  }>;
1918
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1942
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1919
1943
  }, "strip", z.ZodTypeAny, {
1920
1944
  id: string;
1921
1945
  metadata: {
@@ -1923,7 +1947,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1923
1947
  id: string;
1924
1948
  instructions?: string | undefined;
1925
1949
  };
1926
- authSource: "HOSTED" | "LOCAL";
1950
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1927
1951
  }, {
1928
1952
  id: string;
1929
1953
  metadata: {
@@ -1931,7 +1955,7 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1931
1955
  id: string;
1932
1956
  instructions?: string | undefined;
1933
1957
  };
1934
- authSource: "HOSTED" | "LOCAL";
1958
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
1935
1959
  }>>;
1936
1960
  internal: z.ZodDefault<z.ZodBoolean>;
1937
1961
  enabled: z.ZodBoolean;
@@ -2134,18 +2158,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2134
2158
  }, {
2135
2159
  seconds: number;
2136
2160
  }>;
2161
+ accountId: z.ZodOptional<z.ZodString>;
2137
2162
  metadata: z.ZodAny;
2138
2163
  }, "strip", z.ZodTypeAny, {
2139
2164
  options: {
2140
2165
  seconds: number;
2141
2166
  };
2142
2167
  type: "interval";
2168
+ accountId?: string | undefined;
2143
2169
  metadata?: any;
2144
2170
  }, {
2145
2171
  options: {
2146
2172
  seconds: number;
2147
2173
  };
2148
2174
  type: "interval";
2175
+ accountId?: string | undefined;
2149
2176
  metadata?: any;
2150
2177
  }>, z.ZodObject<{
2151
2178
  type: z.ZodLiteral<"cron">;
@@ -2156,18 +2183,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2156
2183
  }, {
2157
2184
  cron: string;
2158
2185
  }>;
2186
+ accountId: z.ZodOptional<z.ZodString>;
2159
2187
  metadata: z.ZodAny;
2160
2188
  }, "strip", z.ZodTypeAny, {
2161
2189
  options: {
2162
2190
  cron: string;
2163
2191
  };
2164
2192
  type: "cron";
2193
+ accountId?: string | undefined;
2165
2194
  metadata?: any;
2166
2195
  }, {
2167
2196
  options: {
2168
2197
  cron: string;
2169
2198
  };
2170
2199
  type: "cron";
2200
+ accountId?: string | undefined;
2171
2201
  metadata?: any;
2172
2202
  }>]>;
2173
2203
  }, "strip", z.ZodTypeAny, {
@@ -2177,12 +2207,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2177
2207
  cron: string;
2178
2208
  };
2179
2209
  type: "cron";
2210
+ accountId?: string | undefined;
2180
2211
  metadata?: any;
2181
2212
  } | {
2182
2213
  options: {
2183
2214
  seconds: number;
2184
2215
  };
2185
2216
  type: "interval";
2217
+ accountId?: string | undefined;
2186
2218
  metadata?: any;
2187
2219
  };
2188
2220
  }, {
@@ -2192,12 +2224,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2192
2224
  cron: string;
2193
2225
  };
2194
2226
  type: "cron";
2227
+ accountId?: string | undefined;
2195
2228
  metadata?: any;
2196
2229
  } | {
2197
2230
  options: {
2198
2231
  seconds: number;
2199
2232
  };
2200
2233
  type: "interval";
2234
+ accountId?: string | undefined;
2201
2235
  metadata?: any;
2202
2236
  };
2203
2237
  }>]>;
@@ -2216,7 +2250,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2216
2250
  id: string;
2217
2251
  instructions?: string | undefined;
2218
2252
  }>;
2219
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2253
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2220
2254
  }, "strip", z.ZodTypeAny, {
2221
2255
  id: string;
2222
2256
  metadata: {
@@ -2224,7 +2258,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2224
2258
  id: string;
2225
2259
  instructions?: string | undefined;
2226
2260
  };
2227
- authSource: "HOSTED" | "LOCAL";
2261
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2228
2262
  }, {
2229
2263
  id: string;
2230
2264
  metadata: {
@@ -2232,7 +2266,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2232
2266
  id: string;
2233
2267
  instructions?: string | undefined;
2234
2268
  };
2235
- authSource: "HOSTED" | "LOCAL";
2269
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2236
2270
  }>>;
2237
2271
  internal: z.ZodDefault<z.ZodBoolean>;
2238
2272
  enabled: z.ZodBoolean;
@@ -2285,12 +2319,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2285
2319
  cron: string;
2286
2320
  };
2287
2321
  type: "cron";
2322
+ accountId?: string | undefined;
2288
2323
  metadata?: any;
2289
2324
  } | {
2290
2325
  options: {
2291
2326
  seconds: number;
2292
2327
  };
2293
2328
  type: "interval";
2329
+ accountId?: string | undefined;
2294
2330
  metadata?: any;
2295
2331
  };
2296
2332
  };
@@ -2301,7 +2337,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2301
2337
  id: string;
2302
2338
  instructions?: string | undefined;
2303
2339
  };
2304
- authSource: "HOSTED" | "LOCAL";
2340
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2305
2341
  }>;
2306
2342
  internal: boolean;
2307
2343
  enabled: boolean;
@@ -2354,12 +2390,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2354
2390
  cron: string;
2355
2391
  };
2356
2392
  type: "cron";
2393
+ accountId?: string | undefined;
2357
2394
  metadata?: any;
2358
2395
  } | {
2359
2396
  options: {
2360
2397
  seconds: number;
2361
2398
  };
2362
2399
  type: "interval";
2400
+ accountId?: string | undefined;
2363
2401
  metadata?: any;
2364
2402
  };
2365
2403
  };
@@ -2370,7 +2408,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2370
2408
  id: string;
2371
2409
  instructions?: string | undefined;
2372
2410
  };
2373
- authSource: "HOSTED" | "LOCAL";
2411
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2374
2412
  }>;
2375
2413
  enabled: boolean;
2376
2414
  startPosition: "initial" | "latest";
@@ -2395,7 +2433,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2395
2433
  id: string;
2396
2434
  instructions?: string | undefined;
2397
2435
  }>;
2398
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2436
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2399
2437
  }, "strip", z.ZodTypeAny, {
2400
2438
  id: string;
2401
2439
  metadata: {
@@ -2403,7 +2441,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2403
2441
  id: string;
2404
2442
  instructions?: string | undefined;
2405
2443
  };
2406
- authSource: "HOSTED" | "LOCAL";
2444
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2407
2445
  }, {
2408
2446
  id: string;
2409
2447
  metadata: {
@@ -2411,7 +2449,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2411
2449
  id: string;
2412
2450
  instructions?: string | undefined;
2413
2451
  };
2414
- authSource: "HOSTED" | "LOCAL";
2452
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2415
2453
  }>;
2416
2454
  key: z.ZodString;
2417
2455
  params: z.ZodAny;
@@ -2438,7 +2476,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2438
2476
  id: string;
2439
2477
  instructions?: string | undefined;
2440
2478
  };
2441
- authSource: "HOSTED" | "LOCAL";
2479
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2442
2480
  };
2443
2481
  params?: any;
2444
2482
  registerSourceJob?: {
@@ -2457,7 +2495,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2457
2495
  id: string;
2458
2496
  instructions?: string | undefined;
2459
2497
  };
2460
- authSource: "HOSTED" | "LOCAL";
2498
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2461
2499
  };
2462
2500
  params?: any;
2463
2501
  registerSourceJob?: {
@@ -2482,7 +2520,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2482
2520
  id: string;
2483
2521
  instructions?: string | undefined;
2484
2522
  }>;
2485
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2523
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2486
2524
  }, "strip", z.ZodTypeAny, {
2487
2525
  id: string;
2488
2526
  metadata: {
@@ -2490,7 +2528,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2490
2528
  id: string;
2491
2529
  instructions?: string | undefined;
2492
2530
  };
2493
- authSource: "HOSTED" | "LOCAL";
2531
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2494
2532
  }, {
2495
2533
  id: string;
2496
2534
  metadata: {
@@ -2498,7 +2536,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2498
2536
  id: string;
2499
2537
  instructions?: string | undefined;
2500
2538
  };
2501
- authSource: "HOSTED" | "LOCAL";
2539
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2502
2540
  }>;
2503
2541
  key: z.ZodString;
2504
2542
  params: z.ZodAny;
@@ -2525,7 +2563,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2525
2563
  id: string;
2526
2564
  instructions?: string | undefined;
2527
2565
  };
2528
- authSource: "HOSTED" | "LOCAL";
2566
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2529
2567
  };
2530
2568
  params?: any;
2531
2569
  registerSourceJob?: {
@@ -2544,7 +2582,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2544
2582
  id: string;
2545
2583
  instructions?: string | undefined;
2546
2584
  };
2547
- authSource: "HOSTED" | "LOCAL";
2585
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2548
2586
  };
2549
2587
  params?: any;
2550
2588
  registerSourceJob?: {
@@ -2563,7 +2601,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2563
2601
  id: string;
2564
2602
  instructions?: string | undefined;
2565
2603
  };
2566
- authSource: "HOSTED" | "LOCAL";
2604
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2567
2605
  };
2568
2606
  params?: any;
2569
2607
  registerSourceJob?: {
@@ -2582,7 +2620,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2582
2620
  id: string;
2583
2621
  instructions?: string | undefined;
2584
2622
  };
2585
- authSource: "HOSTED" | "LOCAL";
2623
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2586
2624
  };
2587
2625
  params?: any;
2588
2626
  registerSourceJob?: {
@@ -2749,18 +2787,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2749
2787
  }, {
2750
2788
  seconds: number;
2751
2789
  }>;
2790
+ accountId: z.ZodOptional<z.ZodString>;
2752
2791
  metadata: z.ZodAny;
2753
2792
  }, "strip", z.ZodTypeAny, {
2754
2793
  options: {
2755
2794
  seconds: number;
2756
2795
  };
2757
2796
  type: "interval";
2797
+ accountId?: string | undefined;
2758
2798
  metadata?: any;
2759
2799
  }, {
2760
2800
  options: {
2761
2801
  seconds: number;
2762
2802
  };
2763
2803
  type: "interval";
2804
+ accountId?: string | undefined;
2764
2805
  metadata?: any;
2765
2806
  }>, z.ZodObject<{
2766
2807
  type: z.ZodLiteral<"cron">;
@@ -2771,18 +2812,21 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2771
2812
  }, {
2772
2813
  cron: string;
2773
2814
  }>;
2815
+ accountId: z.ZodOptional<z.ZodString>;
2774
2816
  metadata: z.ZodAny;
2775
2817
  }, "strip", z.ZodTypeAny, {
2776
2818
  options: {
2777
2819
  cron: string;
2778
2820
  };
2779
2821
  type: "cron";
2822
+ accountId?: string | undefined;
2780
2823
  metadata?: any;
2781
2824
  }, {
2782
2825
  options: {
2783
2826
  cron: string;
2784
2827
  };
2785
2828
  type: "cron";
2829
+ accountId?: string | undefined;
2786
2830
  metadata?: any;
2787
2831
  }>]>;
2788
2832
  }, "strip", z.ZodTypeAny, {
@@ -2792,12 +2836,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2792
2836
  cron: string;
2793
2837
  };
2794
2838
  type: "cron";
2839
+ accountId?: string | undefined;
2795
2840
  metadata?: any;
2796
2841
  } | {
2797
2842
  options: {
2798
2843
  seconds: number;
2799
2844
  };
2800
2845
  type: "interval";
2846
+ accountId?: string | undefined;
2801
2847
  metadata?: any;
2802
2848
  };
2803
2849
  }, {
@@ -2807,12 +2853,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2807
2853
  cron: string;
2808
2854
  };
2809
2855
  type: "cron";
2856
+ accountId?: string | undefined;
2810
2857
  metadata?: any;
2811
2858
  } | {
2812
2859
  options: {
2813
2860
  seconds: number;
2814
2861
  };
2815
2862
  type: "interval";
2863
+ accountId?: string | undefined;
2816
2864
  metadata?: any;
2817
2865
  };
2818
2866
  }>]>;
@@ -2831,7 +2879,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2831
2879
  id: string;
2832
2880
  instructions?: string | undefined;
2833
2881
  }>;
2834
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2882
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
2835
2883
  }, "strip", z.ZodTypeAny, {
2836
2884
  id: string;
2837
2885
  metadata: {
@@ -2839,7 +2887,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2839
2887
  id: string;
2840
2888
  instructions?: string | undefined;
2841
2889
  };
2842
- authSource: "HOSTED" | "LOCAL";
2890
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2843
2891
  }, {
2844
2892
  id: string;
2845
2893
  metadata: {
@@ -2847,7 +2895,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2847
2895
  id: string;
2848
2896
  instructions?: string | undefined;
2849
2897
  };
2850
- authSource: "HOSTED" | "LOCAL";
2898
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2851
2899
  }>>;
2852
2900
  internal: z.ZodDefault<z.ZodBoolean>;
2853
2901
  enabled: z.ZodBoolean;
@@ -2964,12 +3012,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2964
3012
  cron: string;
2965
3013
  };
2966
3014
  type: "cron";
3015
+ accountId?: string | undefined;
2967
3016
  metadata?: any;
2968
3017
  } | {
2969
3018
  options: {
2970
3019
  seconds: number;
2971
3020
  };
2972
3021
  type: "interval";
3022
+ accountId?: string | undefined;
2973
3023
  metadata?: any;
2974
3024
  };
2975
3025
  };
@@ -2980,7 +3030,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2980
3030
  id: string;
2981
3031
  instructions?: string | undefined;
2982
3032
  };
2983
- authSource: "HOSTED" | "LOCAL";
3033
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2984
3034
  }>;
2985
3035
  internal: boolean;
2986
3036
  enabled: boolean;
@@ -2999,7 +3049,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2999
3049
  id: string;
3000
3050
  instructions?: string | undefined;
3001
3051
  };
3002
- authSource: "HOSTED" | "LOCAL";
3052
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3003
3053
  };
3004
3054
  params?: any;
3005
3055
  registerSourceJob?: {
@@ -3018,7 +3068,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3018
3068
  id: string;
3019
3069
  instructions?: string | undefined;
3020
3070
  };
3021
- authSource: "HOSTED" | "LOCAL";
3071
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3022
3072
  };
3023
3073
  params?: any;
3024
3074
  registerSourceJob?: {
@@ -3092,12 +3142,14 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3092
3142
  cron: string;
3093
3143
  };
3094
3144
  type: "cron";
3145
+ accountId?: string | undefined;
3095
3146
  metadata?: any;
3096
3147
  } | {
3097
3148
  options: {
3098
3149
  seconds: number;
3099
3150
  };
3100
3151
  type: "interval";
3152
+ accountId?: string | undefined;
3101
3153
  metadata?: any;
3102
3154
  };
3103
3155
  };
@@ -3108,7 +3160,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3108
3160
  id: string;
3109
3161
  instructions?: string | undefined;
3110
3162
  };
3111
- authSource: "HOSTED" | "LOCAL";
3163
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3112
3164
  }>;
3113
3165
  enabled: boolean;
3114
3166
  startPosition: "initial" | "latest";
@@ -3510,17 +3562,17 @@ declare const RunJobBodySchema: z.ZodObject<{
3510
3562
  parentId?: string | null | undefined;
3511
3563
  }>, "many">>;
3512
3564
  connections: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
3513
- type: z.ZodEnum<["oauth2"]>;
3565
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
3514
3566
  accessToken: z.ZodString;
3515
3567
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3516
3568
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3517
3569
  }, "strip", z.ZodTypeAny, {
3518
- type: "oauth2";
3570
+ type: "oauth2" | "apiKey";
3519
3571
  accessToken: string;
3520
3572
  scopes?: string[] | undefined;
3521
3573
  additionalFields?: Record<string, string> | undefined;
3522
3574
  }, {
3523
- type: "oauth2";
3575
+ type: "oauth2" | "apiKey";
3524
3576
  accessToken: string;
3525
3577
  scopes?: string[] | undefined;
3526
3578
  additionalFields?: Record<string, string> | undefined;
@@ -3577,7 +3629,7 @@ declare const RunJobBodySchema: z.ZodObject<{
3577
3629
  parentId?: string | null | undefined;
3578
3630
  }[] | undefined;
3579
3631
  connections?: Record<string, {
3580
- type: "oauth2";
3632
+ type: "oauth2" | "apiKey";
3581
3633
  accessToken: string;
3582
3634
  scopes?: string[] | undefined;
3583
3635
  additionalFields?: Record<string, string> | undefined;
@@ -3634,7 +3686,7 @@ declare const RunJobBodySchema: z.ZodObject<{
3634
3686
  parentId?: string | null | undefined;
3635
3687
  }[] | undefined;
3636
3688
  connections?: Record<string, {
3637
- type: "oauth2";
3689
+ type: "oauth2" | "apiKey";
3638
3690
  accessToken: string;
3639
3691
  scopes?: string[] | undefined;
3640
3692
  additionalFields?: Record<string, string> | undefined;
@@ -3842,6 +3894,58 @@ declare const RunJobErrorSchema: z.ZodObject<{
3842
3894
  } | undefined;
3843
3895
  }>;
3844
3896
  type RunJobError = z.infer<typeof RunJobErrorSchema>;
3897
+ declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
3898
+ status: z.ZodLiteral<"INVALID_PAYLOAD">;
3899
+ errors: z.ZodArray<z.ZodObject<{
3900
+ path: z.ZodArray<z.ZodString, "many">;
3901
+ message: z.ZodString;
3902
+ }, "strip", z.ZodTypeAny, {
3903
+ message: string;
3904
+ path: string[];
3905
+ }, {
3906
+ message: string;
3907
+ path: string[];
3908
+ }>, "many">;
3909
+ }, "strip", z.ZodTypeAny, {
3910
+ status: "INVALID_PAYLOAD";
3911
+ errors: {
3912
+ message: string;
3913
+ path: string[];
3914
+ }[];
3915
+ }, {
3916
+ status: "INVALID_PAYLOAD";
3917
+ errors: {
3918
+ message: string;
3919
+ path: string[];
3920
+ }[];
3921
+ }>;
3922
+ type RunJobInvalidPayloadError = z.infer<typeof RunJobInvalidPayloadErrorSchema>;
3923
+ declare const RunJobUnresolvedAuthErrorSchema: z.ZodObject<{
3924
+ status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
3925
+ issues: z.ZodRecord<z.ZodString, z.ZodObject<{
3926
+ id: z.ZodString;
3927
+ error: z.ZodString;
3928
+ }, "strip", z.ZodTypeAny, {
3929
+ error: string;
3930
+ id: string;
3931
+ }, {
3932
+ error: string;
3933
+ id: string;
3934
+ }>>;
3935
+ }, "strip", z.ZodTypeAny, {
3936
+ status: "UNRESOLVED_AUTH_ERROR";
3937
+ issues: Record<string, {
3938
+ error: string;
3939
+ id: string;
3940
+ }>;
3941
+ }, {
3942
+ status: "UNRESOLVED_AUTH_ERROR";
3943
+ issues: Record<string, {
3944
+ error: string;
3945
+ id: string;
3946
+ }>;
3947
+ }>;
3948
+ type RunJobUnresolvedAuthError = z.infer<typeof RunJobUnresolvedAuthErrorSchema>;
3845
3949
  declare const RunJobResumeWithTaskSchema: z.ZodObject<{
3846
3950
  status: z.ZodLiteral<"RESUME_WITH_TASK">;
3847
3951
  task: z.ZodObject<{
@@ -4612,6 +4716,54 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
4612
4716
  } | null | undefined;
4613
4717
  operation?: string | null | undefined;
4614
4718
  } | undefined;
4719
+ }>, z.ZodObject<{
4720
+ status: z.ZodLiteral<"UNRESOLVED_AUTH_ERROR">;
4721
+ issues: z.ZodRecord<z.ZodString, z.ZodObject<{
4722
+ id: z.ZodString;
4723
+ error: z.ZodString;
4724
+ }, "strip", z.ZodTypeAny, {
4725
+ error: string;
4726
+ id: string;
4727
+ }, {
4728
+ error: string;
4729
+ id: string;
4730
+ }>>;
4731
+ }, "strip", z.ZodTypeAny, {
4732
+ status: "UNRESOLVED_AUTH_ERROR";
4733
+ issues: Record<string, {
4734
+ error: string;
4735
+ id: string;
4736
+ }>;
4737
+ }, {
4738
+ status: "UNRESOLVED_AUTH_ERROR";
4739
+ issues: Record<string, {
4740
+ error: string;
4741
+ id: string;
4742
+ }>;
4743
+ }>, z.ZodObject<{
4744
+ status: z.ZodLiteral<"INVALID_PAYLOAD">;
4745
+ errors: z.ZodArray<z.ZodObject<{
4746
+ path: z.ZodArray<z.ZodString, "many">;
4747
+ message: z.ZodString;
4748
+ }, "strip", z.ZodTypeAny, {
4749
+ message: string;
4750
+ path: string[];
4751
+ }, {
4752
+ message: string;
4753
+ path: string[];
4754
+ }>, "many">;
4755
+ }, "strip", z.ZodTypeAny, {
4756
+ status: "INVALID_PAYLOAD";
4757
+ errors: {
4758
+ message: string;
4759
+ path: string[];
4760
+ }[];
4761
+ }, {
4762
+ status: "INVALID_PAYLOAD";
4763
+ errors: {
4764
+ message: string;
4765
+ path: string[];
4766
+ }[];
4615
4767
  }>, z.ZodObject<{
4616
4768
  status: z.ZodLiteral<"RESUME_WITH_TASK">;
4617
4769
  task: z.ZodObject<{
@@ -5641,18 +5793,21 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5641
5793
  }, {
5642
5794
  seconds: number;
5643
5795
  }>;
5796
+ accountId: z.ZodOptional<z.ZodString>;
5644
5797
  metadata: z.ZodAny;
5645
5798
  }, "strip", z.ZodTypeAny, {
5646
5799
  options: {
5647
5800
  seconds: number;
5648
5801
  };
5649
5802
  type: "interval";
5803
+ accountId?: string | undefined;
5650
5804
  metadata?: any;
5651
5805
  }, {
5652
5806
  options: {
5653
5807
  seconds: number;
5654
5808
  };
5655
5809
  type: "interval";
5810
+ accountId?: string | undefined;
5656
5811
  metadata?: any;
5657
5812
  }>, z.ZodObject<{
5658
5813
  type: z.ZodLiteral<"cron">;
@@ -5663,18 +5818,21 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5663
5818
  }, {
5664
5819
  cron: string;
5665
5820
  }>;
5821
+ accountId: z.ZodOptional<z.ZodString>;
5666
5822
  metadata: z.ZodAny;
5667
5823
  }, "strip", z.ZodTypeAny, {
5668
5824
  options: {
5669
5825
  cron: string;
5670
5826
  };
5671
5827
  type: "cron";
5828
+ accountId?: string | undefined;
5672
5829
  metadata?: any;
5673
5830
  }, {
5674
5831
  options: {
5675
5832
  cron: string;
5676
5833
  };
5677
5834
  type: "cron";
5835
+ accountId?: string | undefined;
5678
5836
  metadata?: any;
5679
5837
  }>]>;
5680
5838
  }, "strip", z.ZodTypeAny, {
@@ -5684,12 +5842,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5684
5842
  cron: string;
5685
5843
  };
5686
5844
  type: "cron";
5845
+ accountId?: string | undefined;
5687
5846
  metadata?: any;
5688
5847
  } | {
5689
5848
  options: {
5690
5849
  seconds: number;
5691
5850
  };
5692
5851
  type: "interval";
5852
+ accountId?: string | undefined;
5693
5853
  metadata?: any;
5694
5854
  };
5695
5855
  }, {
@@ -5699,12 +5859,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5699
5859
  cron: string;
5700
5860
  };
5701
5861
  type: "cron";
5862
+ accountId?: string | undefined;
5702
5863
  metadata?: any;
5703
5864
  } | {
5704
5865
  options: {
5705
5866
  seconds: number;
5706
5867
  };
5707
5868
  type: "interval";
5869
+ accountId?: string | undefined;
5708
5870
  metadata?: any;
5709
5871
  };
5710
5872
  }>]>>;
@@ -5761,12 +5923,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5761
5923
  cron: string;
5762
5924
  };
5763
5925
  type: "cron";
5926
+ accountId?: string | undefined;
5764
5927
  metadata?: any;
5765
5928
  } | {
5766
5929
  options: {
5767
5930
  seconds: number;
5768
5931
  };
5769
5932
  type: "interval";
5933
+ accountId?: string | undefined;
5770
5934
  metadata?: any;
5771
5935
  };
5772
5936
  } | undefined;
@@ -5823,12 +5987,14 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5823
5987
  cron: string;
5824
5988
  };
5825
5989
  type: "cron";
5990
+ accountId?: string | undefined;
5826
5991
  metadata?: any;
5827
5992
  } | {
5828
5993
  options: {
5829
5994
  seconds: number;
5830
5995
  };
5831
5996
  type: "interval";
5997
+ accountId?: string | undefined;
5832
5998
  metadata?: any;
5833
5999
  };
5834
6000
  } | undefined;
@@ -5947,18 +6113,21 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5947
6113
  }, {
5948
6114
  seconds: number;
5949
6115
  }>;
6116
+ accountId: z.ZodOptional<z.ZodString>;
5950
6117
  metadata: z.ZodAny;
5951
6118
  }, "strip", z.ZodTypeAny, {
5952
6119
  options: {
5953
6120
  seconds: number;
5954
6121
  };
5955
6122
  type: "interval";
6123
+ accountId?: string | undefined;
5956
6124
  metadata?: any;
5957
6125
  }, {
5958
6126
  options: {
5959
6127
  seconds: number;
5960
6128
  };
5961
6129
  type: "interval";
6130
+ accountId?: string | undefined;
5962
6131
  metadata?: any;
5963
6132
  }>, z.ZodObject<{
5964
6133
  type: z.ZodLiteral<"cron">;
@@ -5969,18 +6138,21 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5969
6138
  }, {
5970
6139
  cron: string;
5971
6140
  }>;
6141
+ accountId: z.ZodOptional<z.ZodString>;
5972
6142
  metadata: z.ZodAny;
5973
6143
  }, "strip", z.ZodTypeAny, {
5974
6144
  options: {
5975
6145
  cron: string;
5976
6146
  };
5977
6147
  type: "cron";
6148
+ accountId?: string | undefined;
5978
6149
  metadata?: any;
5979
6150
  }, {
5980
6151
  options: {
5981
6152
  cron: string;
5982
6153
  };
5983
6154
  type: "cron";
6155
+ accountId?: string | undefined;
5984
6156
  metadata?: any;
5985
6157
  }>]>;
5986
6158
  }, "strip", z.ZodTypeAny, {
@@ -5990,12 +6162,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5990
6162
  cron: string;
5991
6163
  };
5992
6164
  type: "cron";
6165
+ accountId?: string | undefined;
5993
6166
  metadata?: any;
5994
6167
  } | {
5995
6168
  options: {
5996
6169
  seconds: number;
5997
6170
  };
5998
6171
  type: "interval";
6172
+ accountId?: string | undefined;
5999
6173
  metadata?: any;
6000
6174
  };
6001
6175
  }, {
@@ -6005,12 +6179,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6005
6179
  cron: string;
6006
6180
  };
6007
6181
  type: "cron";
6182
+ accountId?: string | undefined;
6008
6183
  metadata?: any;
6009
6184
  } | {
6010
6185
  options: {
6011
6186
  seconds: number;
6012
6187
  };
6013
6188
  type: "interval";
6189
+ accountId?: string | undefined;
6014
6190
  metadata?: any;
6015
6191
  };
6016
6192
  }>]>>;
@@ -6091,12 +6267,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6091
6267
  cron: string;
6092
6268
  };
6093
6269
  type: "cron";
6270
+ accountId?: string | undefined;
6094
6271
  metadata?: any;
6095
6272
  } | {
6096
6273
  options: {
6097
6274
  seconds: number;
6098
6275
  };
6099
6276
  type: "interval";
6277
+ accountId?: string | undefined;
6100
6278
  metadata?: any;
6101
6279
  };
6102
6280
  } | undefined;
@@ -6155,12 +6333,14 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
6155
6333
  cron: string;
6156
6334
  };
6157
6335
  type: "cron";
6336
+ accountId?: string | undefined;
6158
6337
  metadata?: any;
6159
6338
  } | {
6160
6339
  options: {
6161
6340
  seconds: number;
6162
6341
  };
6163
6342
  type: "interval";
6343
+ accountId?: string | undefined;
6164
6344
  metadata?: any;
6165
6345
  };
6166
6346
  } | undefined;
@@ -6291,18 +6471,21 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6291
6471
  }, {
6292
6472
  seconds: number;
6293
6473
  }>;
6474
+ accountId: z.ZodOptional<z.ZodString>;
6294
6475
  metadata: z.ZodAny;
6295
6476
  }, "strip", z.ZodTypeAny, {
6296
6477
  options: {
6297
6478
  seconds: number;
6298
6479
  };
6299
6480
  type: "interval";
6481
+ accountId?: string | undefined;
6300
6482
  metadata?: any;
6301
6483
  }, {
6302
6484
  options: {
6303
6485
  seconds: number;
6304
6486
  };
6305
6487
  type: "interval";
6488
+ accountId?: string | undefined;
6306
6489
  metadata?: any;
6307
6490
  }>, z.ZodObject<{
6308
6491
  type: z.ZodLiteral<"cron">;
@@ -6313,18 +6496,21 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6313
6496
  }, {
6314
6497
  cron: string;
6315
6498
  }>;
6499
+ accountId: z.ZodOptional<z.ZodString>;
6316
6500
  metadata: z.ZodAny;
6317
6501
  }, "strip", z.ZodTypeAny, {
6318
6502
  options: {
6319
6503
  cron: string;
6320
6504
  };
6321
6505
  type: "cron";
6506
+ accountId?: string | undefined;
6322
6507
  metadata?: any;
6323
6508
  }, {
6324
6509
  options: {
6325
6510
  cron: string;
6326
6511
  };
6327
6512
  type: "cron";
6513
+ accountId?: string | undefined;
6328
6514
  metadata?: any;
6329
6515
  }>]>;
6330
6516
  }, "strip", z.ZodTypeAny, {
@@ -6334,12 +6520,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6334
6520
  cron: string;
6335
6521
  };
6336
6522
  type: "cron";
6523
+ accountId?: string | undefined;
6337
6524
  metadata?: any;
6338
6525
  } | {
6339
6526
  options: {
6340
6527
  seconds: number;
6341
6528
  };
6342
6529
  type: "interval";
6530
+ accountId?: string | undefined;
6343
6531
  metadata?: any;
6344
6532
  };
6345
6533
  }, {
@@ -6349,12 +6537,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6349
6537
  cron: string;
6350
6538
  };
6351
6539
  type: "cron";
6540
+ accountId?: string | undefined;
6352
6541
  metadata?: any;
6353
6542
  } | {
6354
6543
  options: {
6355
6544
  seconds: number;
6356
6545
  };
6357
6546
  type: "interval";
6547
+ accountId?: string | undefined;
6358
6548
  metadata?: any;
6359
6549
  };
6360
6550
  }>]>>;
@@ -6434,12 +6624,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6434
6624
  cron: string;
6435
6625
  };
6436
6626
  type: "cron";
6627
+ accountId?: string | undefined;
6437
6628
  metadata?: any;
6438
6629
  } | {
6439
6630
  options: {
6440
6631
  seconds: number;
6441
6632
  };
6442
6633
  type: "interval";
6634
+ accountId?: string | undefined;
6443
6635
  metadata?: any;
6444
6636
  };
6445
6637
  } | undefined;
@@ -6498,12 +6690,14 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
6498
6690
  cron: string;
6499
6691
  };
6500
6692
  type: "cron";
6693
+ accountId?: string | undefined;
6501
6694
  metadata?: any;
6502
6695
  } | {
6503
6696
  options: {
6504
6697
  seconds: number;
6505
6698
  };
6506
6699
  type: "interval";
6700
+ accountId?: string | undefined;
6507
6701
  metadata?: any;
6508
6702
  };
6509
6703
  } | undefined;
@@ -6747,7 +6941,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6747
6941
  id: string;
6748
6942
  instructions?: string | undefined;
6749
6943
  }>;
6750
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
6944
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
6751
6945
  }, "strip", z.ZodTypeAny, {
6752
6946
  id: string;
6753
6947
  metadata: {
@@ -6755,7 +6949,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6755
6949
  id: string;
6756
6950
  instructions?: string | undefined;
6757
6951
  };
6758
- authSource: "HOSTED" | "LOCAL";
6952
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6759
6953
  }, {
6760
6954
  id: string;
6761
6955
  metadata: {
@@ -6763,7 +6957,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6763
6957
  id: string;
6764
6958
  instructions?: string | undefined;
6765
6959
  };
6766
- authSource: "HOSTED" | "LOCAL";
6960
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6767
6961
  }>;
6768
6962
  key: z.ZodString;
6769
6963
  params: z.ZodAny;
@@ -6790,7 +6984,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6790
6984
  id: string;
6791
6985
  instructions?: string | undefined;
6792
6986
  };
6793
- authSource: "HOSTED" | "LOCAL";
6987
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6794
6988
  };
6795
6989
  params?: any;
6796
6990
  registerSourceJob?: {
@@ -6809,7 +7003,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6809
7003
  id: string;
6810
7004
  instructions?: string | undefined;
6811
7005
  };
6812
- authSource: "HOSTED" | "LOCAL";
7006
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6813
7007
  };
6814
7008
  params?: any;
6815
7009
  registerSourceJob?: {
@@ -6830,7 +7024,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6830
7024
  id: string;
6831
7025
  instructions?: string | undefined;
6832
7026
  };
6833
- authSource: "HOSTED" | "LOCAL";
7027
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6834
7028
  };
6835
7029
  params?: any;
6836
7030
  registerSourceJob?: {
@@ -6857,7 +7051,7 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6857
7051
  id: string;
6858
7052
  instructions?: string | undefined;
6859
7053
  };
6860
- authSource: "HOSTED" | "LOCAL";
7054
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6861
7055
  };
6862
7056
  params?: any;
6863
7057
  registerSourceJob?: {
@@ -6908,7 +7102,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6908
7102
  id: string;
6909
7103
  instructions?: string | undefined;
6910
7104
  }>;
6911
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
7105
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
6912
7106
  }, "strip", z.ZodTypeAny, {
6913
7107
  id: string;
6914
7108
  metadata: {
@@ -6916,7 +7110,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6916
7110
  id: string;
6917
7111
  instructions?: string | undefined;
6918
7112
  };
6919
- authSource: "HOSTED" | "LOCAL";
7113
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6920
7114
  }, {
6921
7115
  id: string;
6922
7116
  metadata: {
@@ -6924,7 +7118,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6924
7118
  id: string;
6925
7119
  instructions?: string | undefined;
6926
7120
  };
6927
- authSource: "HOSTED" | "LOCAL";
7121
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6928
7122
  }>;
6929
7123
  key: z.ZodString;
6930
7124
  params: z.ZodAny;
@@ -6951,7 +7145,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6951
7145
  id: string;
6952
7146
  instructions?: string | undefined;
6953
7147
  };
6954
- authSource: "HOSTED" | "LOCAL";
7148
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6955
7149
  };
6956
7150
  params?: any;
6957
7151
  registerSourceJob?: {
@@ -6970,7 +7164,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6970
7164
  id: string;
6971
7165
  instructions?: string | undefined;
6972
7166
  };
6973
- authSource: "HOSTED" | "LOCAL";
7167
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6974
7168
  };
6975
7169
  params?: any;
6976
7170
  registerSourceJob?: {
@@ -6978,6 +7172,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6978
7172
  id: string;
6979
7173
  } | undefined;
6980
7174
  }>;
7175
+ accountId: z.ZodOptional<z.ZodString>;
6981
7176
  }, "strip", z.ZodTypeAny, {
6982
7177
  source: {
6983
7178
  key: string;
@@ -6991,7 +7186,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6991
7186
  id: string;
6992
7187
  instructions?: string | undefined;
6993
7188
  };
6994
- authSource: "HOSTED" | "LOCAL";
7189
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
6995
7190
  };
6996
7191
  params?: any;
6997
7192
  registerSourceJob?: {
@@ -7005,6 +7200,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7005
7200
  payload?: EventFilter | undefined;
7006
7201
  context?: EventFilter | undefined;
7007
7202
  };
7203
+ accountId?: string | undefined;
7008
7204
  }, {
7009
7205
  source: {
7010
7206
  key: string;
@@ -7018,7 +7214,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7018
7214
  id: string;
7019
7215
  instructions?: string | undefined;
7020
7216
  };
7021
- authSource: "HOSTED" | "LOCAL";
7217
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7022
7218
  };
7023
7219
  params?: any;
7024
7220
  registerSourceJob?: {
@@ -7032,6 +7228,7 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
7032
7228
  payload?: EventFilter | undefined;
7033
7229
  context?: EventFilter | undefined;
7034
7230
  };
7231
+ accountId?: string | undefined;
7035
7232
  }>;
7036
7233
  type RegisterTriggerBodyV2 = z.infer<typeof RegisterTriggerBodySchemaV2>;
7037
7234
  declare const InitializeTriggerBodySchema: z.ZodObject<{
@@ -7053,7 +7250,6 @@ declare const InitializeTriggerBodySchema: z.ZodObject<{
7053
7250
  type InitializeTriggerBody = z.infer<typeof InitializeTriggerBodySchema>;
7054
7251
  declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7055
7252
  id: z.ZodString;
7056
- accountId: z.ZodOptional<z.ZodString>;
7057
7253
  type: z.ZodLiteral<"interval">;
7058
7254
  options: z.ZodObject<{
7059
7255
  seconds: z.ZodNumber;
@@ -7062,6 +7258,7 @@ declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7062
7258
  }, {
7063
7259
  seconds: number;
7064
7260
  }>;
7261
+ accountId: z.ZodOptional<z.ZodString>;
7065
7262
  metadata: z.ZodAny;
7066
7263
  }, "strip", z.ZodTypeAny, {
7067
7264
  options: {
@@ -7083,7 +7280,6 @@ declare const RegisterIntervalScheduleBodySchema: z.ZodObject<{
7083
7280
  type RegisterIntervalScheduleBody = z.infer<typeof RegisterIntervalScheduleBodySchema>;
7084
7281
  declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7085
7282
  id: z.ZodString;
7086
- accountId: z.ZodOptional<z.ZodString>;
7087
7283
  type: z.ZodLiteral<"cron">;
7088
7284
  options: z.ZodObject<{
7089
7285
  cron: z.ZodString;
@@ -7092,6 +7288,7 @@ declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7092
7288
  }, {
7093
7289
  cron: string;
7094
7290
  }>;
7291
+ accountId: z.ZodOptional<z.ZodString>;
7095
7292
  metadata: z.ZodAny;
7096
7293
  }, "strip", z.ZodTypeAny, {
7097
7294
  options: {
@@ -7113,7 +7310,6 @@ declare const InitializeCronScheduleBodySchema: z.ZodObject<{
7113
7310
  type RegisterCronScheduleBody = z.infer<typeof InitializeCronScheduleBodySchema>;
7114
7311
  declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
7115
7312
  id: z.ZodString;
7116
- accountId: z.ZodOptional<z.ZodString>;
7117
7313
  type: z.ZodLiteral<"interval">;
7118
7314
  options: z.ZodObject<{
7119
7315
  seconds: z.ZodNumber;
@@ -7122,6 +7318,7 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7122
7318
  }, {
7123
7319
  seconds: number;
7124
7320
  }>;
7321
+ accountId: z.ZodOptional<z.ZodString>;
7125
7322
  metadata: z.ZodAny;
7126
7323
  }, "strip", z.ZodTypeAny, {
7127
7324
  options: {
@@ -7141,7 +7338,6 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7141
7338
  metadata?: any;
7142
7339
  }>, z.ZodObject<{
7143
7340
  id: z.ZodString;
7144
- accountId: z.ZodOptional<z.ZodString>;
7145
7341
  type: z.ZodLiteral<"cron">;
7146
7342
  options: z.ZodObject<{
7147
7343
  cron: z.ZodString;
@@ -7150,6 +7346,7 @@ declare const RegisterScheduleBodySchema: z.ZodDiscriminatedUnion<"type", [z.Zod
7150
7346
  }, {
7151
7347
  cron: string;
7152
7348
  }>;
7349
+ accountId: z.ZodOptional<z.ZodString>;
7153
7350
  metadata: z.ZodAny;
7154
7351
  }, "strip", z.ZodTypeAny, {
7155
7352
  options: {
@@ -7180,18 +7377,21 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7180
7377
  }, {
7181
7378
  seconds: number;
7182
7379
  }>;
7380
+ accountId: z.ZodOptional<z.ZodString>;
7183
7381
  metadata: z.ZodAny;
7184
7382
  }, "strip", z.ZodTypeAny, {
7185
7383
  options: {
7186
7384
  seconds: number;
7187
7385
  };
7188
7386
  type: "interval";
7387
+ accountId?: string | undefined;
7189
7388
  metadata?: any;
7190
7389
  }, {
7191
7390
  options: {
7192
7391
  seconds: number;
7193
7392
  };
7194
7393
  type: "interval";
7394
+ accountId?: string | undefined;
7195
7395
  metadata?: any;
7196
7396
  }>, z.ZodObject<{
7197
7397
  type: z.ZodLiteral<"cron">;
@@ -7202,18 +7402,21 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7202
7402
  }, {
7203
7403
  cron: string;
7204
7404
  }>;
7405
+ accountId: z.ZodOptional<z.ZodString>;
7205
7406
  metadata: z.ZodAny;
7206
7407
  }, "strip", z.ZodTypeAny, {
7207
7408
  options: {
7208
7409
  cron: string;
7209
7410
  };
7210
7411
  type: "cron";
7412
+ accountId?: string | undefined;
7211
7413
  metadata?: any;
7212
7414
  }, {
7213
7415
  options: {
7214
7416
  cron: string;
7215
7417
  };
7216
7418
  type: "cron";
7419
+ accountId?: string | undefined;
7217
7420
  metadata?: any;
7218
7421
  }>]>;
7219
7422
  metadata: z.ZodAny;
@@ -7225,12 +7428,14 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7225
7428
  cron: string;
7226
7429
  };
7227
7430
  type: "cron";
7431
+ accountId?: string | undefined;
7228
7432
  metadata?: any;
7229
7433
  } | {
7230
7434
  options: {
7231
7435
  seconds: number;
7232
7436
  };
7233
7437
  type: "interval";
7438
+ accountId?: string | undefined;
7234
7439
  metadata?: any;
7235
7440
  };
7236
7441
  active: boolean;
@@ -7242,12 +7447,14 @@ declare const RegisterScheduleResponseBodySchema: z.ZodObject<{
7242
7447
  cron: string;
7243
7448
  };
7244
7449
  type: "cron";
7450
+ accountId?: string | undefined;
7245
7451
  metadata?: any;
7246
7452
  } | {
7247
7453
  options: {
7248
7454
  seconds: number;
7249
7455
  };
7250
7456
  type: "interval";
7457
+ accountId?: string | undefined;
7251
7458
  metadata?: any;
7252
7459
  };
7253
7460
  active: boolean;
@@ -7274,14 +7481,14 @@ type CreateExternalConnectionBody = z.infer<typeof CreateExternalConnectionBodyS
7274
7481
  declare const GetRunStatusesSchema: z.ZodObject<{
7275
7482
  run: z.ZodObject<{
7276
7483
  id: z.ZodString;
7277
- 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">]>;
7484
+ 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">]>;
7278
7485
  output: z.ZodOptional<z.ZodAny>;
7279
7486
  }, "strip", z.ZodTypeAny, {
7280
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
7487
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7281
7488
  id: string;
7282
7489
  output?: any;
7283
7490
  }, {
7284
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
7491
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7285
7492
  id: string;
7286
7493
  output?: any;
7287
7494
  }>;
@@ -7337,7 +7544,7 @@ declare const GetRunStatusesSchema: z.ZodObject<{
7337
7544
  state?: "loading" | "success" | "failure" | undefined;
7338
7545
  }[];
7339
7546
  run: {
7340
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
7547
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7341
7548
  id: string;
7342
7549
  output?: any;
7343
7550
  };
@@ -7354,7 +7561,7 @@ declare const GetRunStatusesSchema: z.ZodObject<{
7354
7561
  state?: "loading" | "success" | "failure" | undefined;
7355
7562
  }[];
7356
7563
  run: {
7357
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
7564
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
7358
7565
  id: string;
7359
7566
  output?: any;
7360
7567
  };
@@ -7533,18 +7740,21 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7533
7740
  }, {
7534
7741
  seconds: number;
7535
7742
  }>;
7743
+ accountId: z.ZodOptional<z.ZodString>;
7536
7744
  metadata: z.ZodAny;
7537
7745
  }, "strip", z.ZodTypeAny, {
7538
7746
  options: {
7539
7747
  seconds: number;
7540
7748
  };
7541
7749
  type: "interval";
7750
+ accountId?: string | undefined;
7542
7751
  metadata?: any;
7543
7752
  }, {
7544
7753
  options: {
7545
7754
  seconds: number;
7546
7755
  };
7547
7756
  type: "interval";
7757
+ accountId?: string | undefined;
7548
7758
  metadata?: any;
7549
7759
  }>, z.ZodObject<{
7550
7760
  type: z.ZodLiteral<"cron">;
@@ -7555,18 +7765,21 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7555
7765
  }, {
7556
7766
  cron: string;
7557
7767
  }>;
7768
+ accountId: z.ZodOptional<z.ZodString>;
7558
7769
  metadata: z.ZodAny;
7559
7770
  }, "strip", z.ZodTypeAny, {
7560
7771
  options: {
7561
7772
  cron: string;
7562
7773
  };
7563
7774
  type: "cron";
7775
+ accountId?: string | undefined;
7564
7776
  metadata?: any;
7565
7777
  }, {
7566
7778
  options: {
7567
7779
  cron: string;
7568
7780
  };
7569
7781
  type: "cron";
7782
+ accountId?: string | undefined;
7570
7783
  metadata?: any;
7571
7784
  }>]>;
7572
7785
  }, "strip", z.ZodTypeAny, {
@@ -7576,12 +7789,14 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7576
7789
  cron: string;
7577
7790
  };
7578
7791
  type: "cron";
7792
+ accountId?: string | undefined;
7579
7793
  metadata?: any;
7580
7794
  } | {
7581
7795
  options: {
7582
7796
  seconds: number;
7583
7797
  };
7584
7798
  type: "interval";
7799
+ accountId?: string | undefined;
7585
7800
  metadata?: any;
7586
7801
  };
7587
7802
  }, {
@@ -7591,12 +7806,14 @@ declare const ScheduledTriggerMetadataSchema: z.ZodObject<{
7591
7806
  cron: string;
7592
7807
  };
7593
7808
  type: "cron";
7809
+ accountId?: string | undefined;
7594
7810
  metadata?: any;
7595
7811
  } | {
7596
7812
  options: {
7597
7813
  seconds: number;
7598
7814
  };
7599
7815
  type: "interval";
7816
+ accountId?: string | undefined;
7600
7817
  metadata?: any;
7601
7818
  };
7602
7819
  }>;
@@ -7680,18 +7897,21 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7680
7897
  }, {
7681
7898
  seconds: number;
7682
7899
  }>;
7900
+ accountId: z.ZodOptional<z.ZodString>;
7683
7901
  metadata: z.ZodAny;
7684
7902
  }, "strip", z.ZodTypeAny, {
7685
7903
  options: {
7686
7904
  seconds: number;
7687
7905
  };
7688
7906
  type: "interval";
7907
+ accountId?: string | undefined;
7689
7908
  metadata?: any;
7690
7909
  }, {
7691
7910
  options: {
7692
7911
  seconds: number;
7693
7912
  };
7694
7913
  type: "interval";
7914
+ accountId?: string | undefined;
7695
7915
  metadata?: any;
7696
7916
  }>, z.ZodObject<{
7697
7917
  type: z.ZodLiteral<"cron">;
@@ -7702,18 +7922,21 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7702
7922
  }, {
7703
7923
  cron: string;
7704
7924
  }>;
7925
+ accountId: z.ZodOptional<z.ZodString>;
7705
7926
  metadata: z.ZodAny;
7706
7927
  }, "strip", z.ZodTypeAny, {
7707
7928
  options: {
7708
7929
  cron: string;
7709
7930
  };
7710
7931
  type: "cron";
7932
+ accountId?: string | undefined;
7711
7933
  metadata?: any;
7712
7934
  }, {
7713
7935
  options: {
7714
7936
  cron: string;
7715
7937
  };
7716
7938
  type: "cron";
7939
+ accountId?: string | undefined;
7717
7940
  metadata?: any;
7718
7941
  }>]>;
7719
7942
  }, "strip", z.ZodTypeAny, {
@@ -7723,12 +7946,14 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7723
7946
  cron: string;
7724
7947
  };
7725
7948
  type: "cron";
7949
+ accountId?: string | undefined;
7726
7950
  metadata?: any;
7727
7951
  } | {
7728
7952
  options: {
7729
7953
  seconds: number;
7730
7954
  };
7731
7955
  type: "interval";
7956
+ accountId?: string | undefined;
7732
7957
  metadata?: any;
7733
7958
  };
7734
7959
  }, {
@@ -7738,12 +7963,14 @@ declare const TriggerMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObjec
7738
7963
  cron: string;
7739
7964
  };
7740
7965
  type: "cron";
7966
+ accountId?: string | undefined;
7741
7967
  metadata?: any;
7742
7968
  } | {
7743
7969
  options: {
7744
7970
  seconds: number;
7745
7971
  };
7746
7972
  type: "interval";
7973
+ accountId?: string | undefined;
7747
7974
  metadata?: any;
7748
7975
  };
7749
7976
  }>]>;
@@ -7763,6 +7990,17 @@ declare const ErrorWithStackSchema: z.ZodObject<{
7763
7990
  stack?: string | undefined;
7764
7991
  }>;
7765
7992
  type ErrorWithStack = z.infer<typeof ErrorWithStackSchema>;
7993
+ declare const SchemaErrorSchema: z.ZodObject<{
7994
+ path: z.ZodArray<z.ZodString, "many">;
7995
+ message: z.ZodString;
7996
+ }, "strip", z.ZodTypeAny, {
7997
+ message: string;
7998
+ path: string[];
7999
+ }, {
8000
+ message: string;
8001
+ path: string[];
8002
+ }>;
8003
+ type SchemaError = z.infer<typeof SchemaErrorSchema>;
7766
8004
 
7767
8005
  /** A property that is displayed in the logs */
7768
8006
  declare const DisplayPropertySchema: z.ZodObject<{
@@ -7814,17 +8052,17 @@ type Style = z.infer<typeof StyleSchema>;
7814
8052
  type StyleName = Style["style"];
7815
8053
 
7816
8054
  declare const ConnectionAuthSchema: z.ZodObject<{
7817
- type: z.ZodEnum<["oauth2"]>;
8055
+ type: z.ZodEnum<["oauth2", "apiKey"]>;
7818
8056
  accessToken: z.ZodString;
7819
8057
  scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
7820
8058
  additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
7821
8059
  }, "strip", z.ZodTypeAny, {
7822
- type: "oauth2";
8060
+ type: "oauth2" | "apiKey";
7823
8061
  accessToken: string;
7824
8062
  scopes?: string[] | undefined;
7825
8063
  additionalFields?: Record<string, string> | undefined;
7826
8064
  }, {
7827
- type: "oauth2";
8065
+ type: "oauth2" | "apiKey";
7828
8066
  accessToken: string;
7829
8067
  scopes?: string[] | undefined;
7830
8068
  additionalFields?: Record<string, string> | undefined;
@@ -7859,7 +8097,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7859
8097
  id: string;
7860
8098
  instructions?: string | undefined;
7861
8099
  }>;
7862
- authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
8100
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
7863
8101
  }, "strip", z.ZodTypeAny, {
7864
8102
  id: string;
7865
8103
  metadata: {
@@ -7867,7 +8105,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7867
8105
  id: string;
7868
8106
  instructions?: string | undefined;
7869
8107
  };
7870
- authSource: "HOSTED" | "LOCAL";
8108
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7871
8109
  }, {
7872
8110
  id: string;
7873
8111
  metadata: {
@@ -7875,7 +8113,7 @@ declare const IntegrationConfigSchema: z.ZodObject<{
7875
8113
  id: string;
7876
8114
  instructions?: string | undefined;
7877
8115
  };
7878
- authSource: "HOSTED" | "LOCAL";
8116
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
7879
8117
  }>;
7880
8118
  type IntegrationConfig = z.infer<typeof IntegrationConfigSchema>;
7881
8119
 
@@ -7925,18 +8163,22 @@ declare const CronMetadataSchema: z.ZodObject<{
7925
8163
  }, {
7926
8164
  cron: string;
7927
8165
  }>;
8166
+ /** An optional Account ID to associate with runs triggered by this interval */
8167
+ accountId: z.ZodOptional<z.ZodString>;
7928
8168
  metadata: z.ZodAny;
7929
8169
  }, "strip", z.ZodTypeAny, {
7930
8170
  options: {
7931
8171
  cron: string;
7932
8172
  };
7933
8173
  type: "cron";
8174
+ accountId?: string | undefined;
7934
8175
  metadata?: any;
7935
8176
  }, {
7936
8177
  options: {
7937
8178
  cron: string;
7938
8179
  };
7939
8180
  type: "cron";
8181
+ accountId?: string | undefined;
7940
8182
  metadata?: any;
7941
8183
  }>;
7942
8184
  type CronMetadata = z.infer<typeof CronMetadataSchema>;
@@ -7952,6 +8194,8 @@ declare const IntervalMetadataSchema: z.ZodObject<{
7952
8194
  }, {
7953
8195
  seconds: number;
7954
8196
  }>;
8197
+ /** An optional Account ID to associate with runs triggered by this interval */
8198
+ accountId: z.ZodOptional<z.ZodString>;
7955
8199
  /** Any additional metadata about the schedule. */
7956
8200
  metadata: z.ZodAny;
7957
8201
  }, "strip", z.ZodTypeAny, {
@@ -7959,12 +8203,14 @@ declare const IntervalMetadataSchema: z.ZodObject<{
7959
8203
  seconds: number;
7960
8204
  };
7961
8205
  type: "interval";
8206
+ accountId?: string | undefined;
7962
8207
  metadata?: any;
7963
8208
  }, {
7964
8209
  options: {
7965
8210
  seconds: number;
7966
8211
  };
7967
8212
  type: "interval";
8213
+ accountId?: string | undefined;
7968
8214
  metadata?: any;
7969
8215
  }>;
7970
8216
  type IntervalMetadata = z.infer<typeof IntervalMetadataSchema>;
@@ -7980,6 +8226,8 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
7980
8226
  }, {
7981
8227
  seconds: number;
7982
8228
  }>;
8229
+ /** An optional Account ID to associate with runs triggered by this interval */
8230
+ accountId: z.ZodOptional<z.ZodString>;
7983
8231
  /** Any additional metadata about the schedule. */
7984
8232
  metadata: z.ZodAny;
7985
8233
  }, "strip", z.ZodTypeAny, {
@@ -7987,12 +8235,14 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
7987
8235
  seconds: number;
7988
8236
  };
7989
8237
  type: "interval";
8238
+ accountId?: string | undefined;
7990
8239
  metadata?: any;
7991
8240
  }, {
7992
8241
  options: {
7993
8242
  seconds: number;
7994
8243
  };
7995
8244
  type: "interval";
8245
+ accountId?: string | undefined;
7996
8246
  metadata?: any;
7997
8247
  }>, z.ZodObject<{
7998
8248
  type: z.ZodLiteral<"cron">;
@@ -8006,18 +8256,22 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
8006
8256
  }, {
8007
8257
  cron: string;
8008
8258
  }>;
8259
+ /** An optional Account ID to associate with runs triggered by this interval */
8260
+ accountId: z.ZodOptional<z.ZodString>;
8009
8261
  metadata: z.ZodAny;
8010
8262
  }, "strip", z.ZodTypeAny, {
8011
8263
  options: {
8012
8264
  cron: string;
8013
8265
  };
8014
8266
  type: "cron";
8267
+ accountId?: string | undefined;
8015
8268
  metadata?: any;
8016
8269
  }, {
8017
8270
  options: {
8018
8271
  cron: string;
8019
8272
  };
8020
8273
  type: "cron";
8274
+ accountId?: string | undefined;
8021
8275
  metadata?: any;
8022
8276
  }>]>;
8023
8277
  type ScheduleMetadata = z.infer<typeof ScheduleMetadataSchema>;
@@ -8945,18 +9199,18 @@ declare const GetEventSchema: z.ZodObject<{
8945
9199
  /** The Run id */
8946
9200
  id: z.ZodString;
8947
9201
  /** The Run status */
8948
- 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">]>;
9202
+ 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">]>;
8949
9203
  /** When the run started */
8950
9204
  startedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8951
9205
  /** When the run completed */
8952
9206
  completedAt: z.ZodNullable<z.ZodOptional<z.ZodDate>>;
8953
9207
  }, "strip", z.ZodTypeAny, {
8954
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9208
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8955
9209
  id: string;
8956
9210
  startedAt?: Date | null | undefined;
8957
9211
  completedAt?: Date | null | undefined;
8958
9212
  }, {
8959
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9213
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8960
9214
  id: string;
8961
9215
  startedAt?: Date | null | undefined;
8962
9216
  completedAt?: Date | null | undefined;
@@ -8966,7 +9220,7 @@ declare const GetEventSchema: z.ZodObject<{
8966
9220
  id: string;
8967
9221
  updatedAt: Date;
8968
9222
  runs: {
8969
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9223
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8970
9224
  id: string;
8971
9225
  startedAt?: Date | null | undefined;
8972
9226
  completedAt?: Date | null | undefined;
@@ -8977,7 +9231,7 @@ declare const GetEventSchema: z.ZodObject<{
8977
9231
  id: string;
8978
9232
  updatedAt: Date;
8979
9233
  runs: {
8980
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9234
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
8981
9235
  id: string;
8982
9236
  startedAt?: Date | null | undefined;
8983
9237
  completedAt?: Date | null | undefined;
@@ -8986,8 +9240,8 @@ declare const GetEventSchema: z.ZodObject<{
8986
9240
  }>;
8987
9241
  type GetEvent = z.infer<typeof GetEventSchema>;
8988
9242
 
8989
- 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">]>;
8990
- declare const RunTaskSchema: ZodObject<{
9243
+ 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">]>;
9244
+ declare const RunTaskSchema: z.ZodObject<{
8991
9245
  /** The Task id */
8992
9246
  id: z.ZodString;
8993
9247
  /** The key that you defined when creating the Task, the first param in any task. */
@@ -9025,7 +9279,7 @@ type RunTaskWithSubtasks = z.infer<typeof RunTaskSchema> & {
9025
9279
  /** The subtasks of the task */
9026
9280
  subtasks?: RunTaskWithSubtasks[];
9027
9281
  };
9028
- declare const GetRunOptionsSchema: ZodObject<{
9282
+ declare const GetRunOptionsSchema: z.ZodObject<{
9029
9283
  /** Return subtasks, which appear in a `subtasks` array on a task. @default false */
9030
9284
  subtasks: z.ZodOptional<z.ZodBoolean>;
9031
9285
  /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
@@ -9042,7 +9296,7 @@ declare const GetRunOptionsSchema: ZodObject<{
9042
9296
  take?: number | undefined;
9043
9297
  }>;
9044
9298
  type GetRunOptions = z.infer<typeof GetRunOptionsSchema>;
9045
- declare const GetRunOptionsWithTaskDetailsSchema: ZodObject<{
9299
+ declare const GetRunOptionsWithTaskDetailsSchema: z.ZodObject<{
9046
9300
  subtasks: z.ZodOptional<z.ZodBoolean>;
9047
9301
  cursor: z.ZodOptional<z.ZodString>;
9048
9302
  take: z.ZodOptional<z.ZodNumber>;
@@ -9059,20 +9313,20 @@ declare const GetRunOptionsWithTaskDetailsSchema: ZodObject<{
9059
9313
  taskdetails?: boolean | undefined;
9060
9314
  }>;
9061
9315
  type GetRunOptionsWithTaskDetails = z.infer<typeof GetRunOptionsWithTaskDetailsSchema>;
9062
- declare const GetRunSchema: ZodObject<{
9063
- 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">]>;
9316
+ declare const GetRunSchema: z.ZodObject<{
9317
+ 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">]>;
9064
9318
  id: z.ZodString;
9065
9319
  startedAt: z.ZodNullable<z.ZodDate>;
9066
9320
  completedAt: z.ZodNullable<z.ZodDate>;
9067
9321
  updatedAt: z.ZodNullable<z.ZodDate>;
9068
9322
  output: z.ZodOptional<z.ZodAny>;
9069
9323
  tasks: z.ZodArray<z.ZodType<RunTaskWithSubtasks, z.ZodTypeDef, RunTaskWithSubtasks>, "many">;
9070
- statuses: z.ZodDefault<z.ZodArray<ZodObject<{
9324
+ statuses: z.ZodDefault<z.ZodArray<z.ZodObject<{
9071
9325
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
9072
9326
  label: z.ZodString;
9073
9327
  state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9074
9328
  key: z.ZodString;
9075
- history: z.ZodArray<ZodObject<{
9329
+ history: z.ZodArray<z.ZodObject<{
9076
9330
  label: z.ZodOptional<z.ZodString>;
9077
9331
  state: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"loading">, z.ZodLiteral<"success">, z.ZodLiteral<"failure">]>>;
9078
9332
  data: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>>;
@@ -9108,7 +9362,7 @@ declare const GetRunSchema: ZodObject<{
9108
9362
  }>, "many">>;
9109
9363
  nextCursor: z.ZodOptional<z.ZodString>;
9110
9364
  }, "strip", z.ZodTypeAny, {
9111
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9365
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9112
9366
  id: string;
9113
9367
  startedAt: Date | null;
9114
9368
  completedAt: Date | null;
@@ -9128,7 +9382,7 @@ declare const GetRunSchema: ZodObject<{
9128
9382
  output?: any;
9129
9383
  nextCursor?: string | undefined;
9130
9384
  }, {
9131
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9385
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9132
9386
  id: string;
9133
9387
  startedAt: Date | null;
9134
9388
  completedAt: Date | null;
@@ -9149,7 +9403,7 @@ declare const GetRunSchema: ZodObject<{
9149
9403
  nextCursor?: string | undefined;
9150
9404
  }>;
9151
9405
  type GetRun = z.infer<typeof GetRunSchema>;
9152
- declare const GetRunsOptionsSchema: ZodObject<{
9406
+ declare const GetRunsOptionsSchema: z.ZodObject<{
9153
9407
  /** You can use this to get more tasks, if there are more than are returned in a single batch @default undefined */
9154
9408
  cursor: z.ZodOptional<z.ZodString>;
9155
9409
  /** How many runs you want to return in one go, max 50. @default 20 */
@@ -9162,13 +9416,13 @@ declare const GetRunsOptionsSchema: ZodObject<{
9162
9416
  take?: number | undefined;
9163
9417
  }>;
9164
9418
  type GetRunsOptions = z.infer<typeof GetRunsOptionsSchema>;
9165
- declare const GetRunsSchema: ZodObject<{
9419
+ declare const GetRunsSchema: z.ZodObject<{
9166
9420
  /** The runs from the query */
9167
- runs: z.ZodArray<ZodObject<{
9421
+ runs: z.ZodArray<z.ZodObject<{
9168
9422
  /** The Run id */
9169
9423
  id: z.ZodString;
9170
9424
  /** The Run status */
9171
- 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">]>;
9425
+ 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">]>;
9172
9426
  /** When the run started */
9173
9427
  startedAt: z.ZodNullable<z.ZodDate>;
9174
9428
  /** When the run was last updated */
@@ -9176,13 +9430,13 @@ declare const GetRunsSchema: ZodObject<{
9176
9430
  /** When the run was completed */
9177
9431
  completedAt: z.ZodNullable<z.ZodDate>;
9178
9432
  }, "strip", z.ZodTypeAny, {
9179
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9433
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9180
9434
  id: string;
9181
9435
  startedAt: Date | null;
9182
9436
  completedAt: Date | null;
9183
9437
  updatedAt: Date | null;
9184
9438
  }, {
9185
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9439
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9186
9440
  id: string;
9187
9441
  startedAt: Date | null;
9188
9442
  completedAt: Date | null;
@@ -9192,7 +9446,7 @@ declare const GetRunsSchema: ZodObject<{
9192
9446
  nextCursor: z.ZodOptional<z.ZodString>;
9193
9447
  }, "strip", z.ZodTypeAny, {
9194
9448
  runs: {
9195
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9449
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9196
9450
  id: string;
9197
9451
  startedAt: Date | null;
9198
9452
  completedAt: Date | null;
@@ -9201,7 +9455,7 @@ declare const GetRunsSchema: ZodObject<{
9201
9455
  nextCursor?: string | undefined;
9202
9456
  }, {
9203
9457
  runs: {
9204
- status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED";
9458
+ status: "PENDING" | "CANCELED" | "QUEUED" | "WAITING_ON_CONNECTIONS" | "PREPROCESSING" | "STARTED" | "SUCCESS" | "FAILURE" | "TIMED_OUT" | "ABORTED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
9205
9459
  id: string;
9206
9460
  startedAt: Date | null;
9207
9461
  completedAt: Date | null;
@@ -9324,4 +9578,4 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
9324
9578
 
9325
9579
  declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
9326
9580
 
9327
- 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, 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, 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, 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, urlWithSearchParams };
9581
+ 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, 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, 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, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, 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, urlWithSearchParams };