@trigger.dev/core 2.2.11 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,26 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- /**
4
- * Represents different log levels.
5
- * - `"log"`: Only essential messages.
6
- * - `"error"`: Errors and essential messages.
7
- * - `"warn"`: Warnings, Errors and essential messages.
8
- * - `"info"`: Info, Warnings, Errors and essential messages.
9
- * - `"debug"`: Everything.
10
- */
11
- type LogLevel = "log" | "error" | "warn" | "info" | "debug";
12
- declare class Logger {
13
- #private;
14
- constructor(name: string, level?: LogLevel, filteredKeys?: string[], jsonReplacer?: (key: string, value: unknown) => unknown, additionalFields?: () => Record<string, unknown>);
15
- filter(...keys: string[]): Logger;
16
- static satisfiesLogLevel(logLevel: LogLevel, setLevel: LogLevel): boolean;
17
- log(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
18
- error(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
19
- warn(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
20
- info(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
21
- debug(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
22
- }
23
-
24
3
  declare const stringPatternMatchers: readonly [z.ZodObject<{
25
4
  $endsWith: z.ZodString;
26
5
  }, "strip", z.ZodTypeAny, {
@@ -298,10 +277,10 @@ declare const TaskSchema: z.ZodObject<{
298
277
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
299
278
  }>;
300
279
  declare const ServerTaskSchema: z.ZodObject<{
301
- error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
302
280
  name: z.ZodString;
303
281
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
304
282
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
283
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
305
284
  context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
306
285
  id: z.ZodString;
307
286
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -367,8 +346,8 @@ declare const ServerTaskSchema: z.ZodObject<{
367
346
  noop: boolean;
368
347
  idempotencyKey: string;
369
348
  attempts: number;
370
- error?: string | null | undefined;
371
349
  params?: DeserializedJson | undefined;
350
+ error?: string | null | undefined;
372
351
  context?: DeserializedJson | undefined;
373
352
  style?: {
374
353
  style: "normal" | "minimal";
@@ -404,8 +383,8 @@ declare const ServerTaskSchema: z.ZodObject<{
404
383
  noop: boolean;
405
384
  idempotencyKey: string;
406
385
  attempts: number;
407
- error?: string | null | undefined;
408
386
  params?: DeserializedJson | undefined;
387
+ error?: string | null | undefined;
409
388
  context?: DeserializedJson | undefined;
410
389
  style?: {
411
390
  style: "normal" | "minimal";
@@ -572,8 +551,8 @@ declare const RegisterWebhookSourceSchema: z.ZodObject<{
572
551
  data: z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>;
573
552
  clientId: z.ZodOptional<z.ZodString>;
574
553
  }, "strip", z.ZodTypeAny, {
575
- key: string;
576
554
  url: string;
555
+ key: string;
577
556
  secret: string;
578
557
  active: boolean;
579
558
  params?: any;
@@ -581,8 +560,8 @@ declare const RegisterWebhookSourceSchema: z.ZodObject<{
581
560
  data?: DeserializedJson | undefined;
582
561
  clientId?: string | undefined;
583
562
  }, {
584
- key: string;
585
563
  url: string;
564
+ key: string;
586
565
  secret: string;
587
566
  active: boolean;
588
567
  params?: any;
@@ -693,11 +672,11 @@ declare const SourceEventOptionSchema: z.ZodObject<{
693
672
  name: z.ZodString;
694
673
  value: z.ZodString;
695
674
  }, "strip", z.ZodTypeAny, {
696
- value: string;
697
675
  name: string;
698
- }, {
699
676
  value: string;
677
+ }, {
700
678
  name: string;
679
+ value: string;
701
680
  }>;
702
681
  type SourceEventOption = z.infer<typeof SourceEventOptionSchema>;
703
682
  declare const RegisterSourceEventSchemaV1: z.ZodObject<{
@@ -1036,11 +1015,11 @@ declare const TriggerSourceSchema: z.ZodObject<{
1036
1015
  id: z.ZodString;
1037
1016
  key: z.ZodString;
1038
1017
  }, "strip", z.ZodTypeAny, {
1039
- key: string;
1040
1018
  id: string;
1041
- }, {
1042
1019
  key: string;
1020
+ }, {
1043
1021
  id: string;
1022
+ key: string;
1044
1023
  }>;
1045
1024
  declare const HttpSourceResponseMetadataSchema: z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>;
1046
1025
  type HttpSourceResponseMetadata = z.infer<typeof HttpSourceResponseMetadataSchema>;
@@ -1873,8 +1852,8 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1873
1852
  id: string;
1874
1853
  }>>;
1875
1854
  }, "strip", z.ZodTypeAny, {
1876
- key: string;
1877
1855
  version: "1";
1856
+ key: string;
1878
1857
  channel: "HTTP" | "SMTP" | "SQS";
1879
1858
  events: string[];
1880
1859
  integration: {
@@ -1892,8 +1871,8 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1892
1871
  id: string;
1893
1872
  } | undefined;
1894
1873
  }, {
1895
- key: string;
1896
1874
  version: "1";
1875
+ key: string;
1897
1876
  channel: "HTTP" | "SMTP" | "SQS";
1898
1877
  events: string[];
1899
1878
  integration: {
@@ -1962,9 +1941,9 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1962
1941
  id: string;
1963
1942
  }>>;
1964
1943
  }, "strip", z.ZodTypeAny, {
1965
- key: string;
1966
1944
  version: "2";
1967
1945
  options: Record<string, string[]>;
1946
+ key: string;
1968
1947
  channel: "HTTP" | "SMTP" | "SQS";
1969
1948
  integration: {
1970
1949
  id: string;
@@ -1981,9 +1960,9 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1981
1960
  id: string;
1982
1961
  } | undefined;
1983
1962
  }, {
1984
- key: string;
1985
1963
  version: "2";
1986
1964
  options: Record<string, string[]>;
1965
+ key: string;
1987
1966
  channel: "HTTP" | "SMTP" | "SQS";
1988
1967
  integration: {
1989
1968
  id: string;
@@ -3310,8 +3289,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3310
3289
  id: string;
3311
3290
  }>>;
3312
3291
  }, "strip", z.ZodTypeAny, {
3313
- key: string;
3314
3292
  version: "1";
3293
+ key: string;
3315
3294
  channel: "HTTP" | "SMTP" | "SQS";
3316
3295
  events: string[];
3317
3296
  integration: {
@@ -3329,8 +3308,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3329
3308
  id: string;
3330
3309
  } | undefined;
3331
3310
  }, {
3332
- key: string;
3333
3311
  version: "1";
3312
+ key: string;
3334
3313
  channel: "HTTP" | "SMTP" | "SQS";
3335
3314
  events: string[];
3336
3315
  integration: {
@@ -3397,9 +3376,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3397
3376
  id: string;
3398
3377
  }>>;
3399
3378
  }, "strip", z.ZodTypeAny, {
3400
- key: string;
3401
3379
  version: "2";
3402
3380
  options: Record<string, string[]>;
3381
+ key: string;
3403
3382
  channel: "HTTP" | "SMTP" | "SQS";
3404
3383
  integration: {
3405
3384
  id: string;
@@ -3416,9 +3395,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3416
3395
  id: string;
3417
3396
  } | undefined;
3418
3397
  }, {
3419
- key: string;
3420
3398
  version: "2";
3421
3399
  options: Record<string, string[]>;
3400
+ key: string;
3422
3401
  channel: "HTTP" | "SMTP" | "SQS";
3423
3402
  integration: {
3424
3403
  id: string;
@@ -3435,8 +3414,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3435
3414
  id: string;
3436
3415
  } | undefined;
3437
3416
  }>]>, {
3438
- key: string;
3439
3417
  version: "1";
3418
+ key: string;
3440
3419
  channel: "HTTP" | "SMTP" | "SQS";
3441
3420
  events: string[];
3442
3421
  integration: {
@@ -3454,9 +3433,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3454
3433
  id: string;
3455
3434
  } | undefined;
3456
3435
  } | {
3457
- key: string;
3458
3436
  version: "2";
3459
3437
  options: Record<string, string[]>;
3438
+ key: string;
3460
3439
  channel: "HTTP" | "SMTP" | "SQS";
3461
3440
  integration: {
3462
3441
  id: string;
@@ -4321,8 +4300,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
4321
4300
  } | undefined;
4322
4301
  }[];
4323
4302
  sources: ({
4324
- key: string;
4325
4303
  version: "1";
4304
+ key: string;
4326
4305
  channel: "HTTP" | "SMTP" | "SQS";
4327
4306
  events: string[];
4328
4307
  integration: {
@@ -4340,9 +4319,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
4340
4319
  id: string;
4341
4320
  } | undefined;
4342
4321
  } | {
4343
- key: string;
4344
4322
  version: "2";
4345
4323
  options: Record<string, string[]>;
4324
+ key: string;
4346
4325
  channel: "HTTP" | "SMTP" | "SQS";
4347
4326
  integration: {
4348
4327
  id: string;
@@ -4748,18 +4727,18 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4748
4727
  }>;
4749
4728
  updatedAt: z.ZodDate;
4750
4729
  }, "strip", z.ZodTypeAny, {
4730
+ status: "FAILURE";
4751
4731
  error: {
4752
4732
  message: string;
4753
4733
  raw?: any;
4754
4734
  };
4755
- status: "FAILURE";
4756
4735
  updatedAt: Date;
4757
4736
  }, {
4737
+ status: "FAILURE";
4758
4738
  error: {
4759
4739
  message: string;
4760
4740
  raw?: any;
4761
4741
  };
4762
- status: "FAILURE";
4763
4742
  updatedAt: Date;
4764
4743
  }>]>;
4765
4744
  type GetEndpointIndexResponse = z.infer<typeof GetEndpointIndexResponseSchema>;
@@ -5651,12 +5630,12 @@ declare const RunJobErrorSchema: z.ZodObject<{
5651
5630
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
5652
5631
  }>>;
5653
5632
  }, "strip", z.ZodTypeAny, {
5633
+ status: "ERROR";
5654
5634
  error: {
5655
5635
  message: string;
5656
5636
  name?: string | undefined;
5657
5637
  stack?: string | undefined;
5658
5638
  };
5659
- status: "ERROR";
5660
5639
  task?: {
5661
5640
  name: string;
5662
5641
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5693,12 +5672,12 @@ declare const RunJobErrorSchema: z.ZodObject<{
5693
5672
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
5694
5673
  } | undefined;
5695
5674
  }, {
5675
+ status: "ERROR";
5696
5676
  error: {
5697
5677
  message: string;
5698
5678
  name?: string | undefined;
5699
5679
  stack?: string | undefined;
5700
5680
  };
5701
- status: "ERROR";
5702
5681
  task?: {
5703
5682
  name: string;
5704
5683
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5740,11 +5719,11 @@ declare const RunJobYieldExecutionErrorSchema: z.ZodObject<{
5740
5719
  status: z.ZodLiteral<"YIELD_EXECUTION">;
5741
5720
  key: z.ZodString;
5742
5721
  }, "strip", z.ZodTypeAny, {
5743
- key: string;
5744
5722
  status: "YIELD_EXECUTION";
5745
- }, {
5746
5723
  key: string;
5724
+ }, {
5747
5725
  status: "YIELD_EXECUTION";
5726
+ key: string;
5748
5727
  }>;
5749
5728
  type RunJobYieldExecutionError = z.infer<typeof RunJobYieldExecutionErrorSchema>;
5750
5729
  declare const AutoYieldMetadataSchema: z.ZodObject<{
@@ -6259,12 +6238,12 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
6259
6238
  }>;
6260
6239
  retryAt: z.ZodDate;
6261
6240
  }, "strip", z.ZodTypeAny, {
6241
+ status: "RETRY_WITH_TASK";
6262
6242
  error: {
6263
6243
  message: string;
6264
6244
  name?: string | undefined;
6265
6245
  stack?: string | undefined;
6266
6246
  };
6267
- status: "RETRY_WITH_TASK";
6268
6247
  task: {
6269
6248
  name: string;
6270
6249
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6302,12 +6281,12 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
6302
6281
  };
6303
6282
  retryAt: Date;
6304
6283
  }, {
6284
+ status: "RETRY_WITH_TASK";
6305
6285
  error: {
6306
6286
  message: string;
6307
6287
  name?: string | undefined;
6308
6288
  stack?: string | undefined;
6309
6289
  };
6310
- status: "RETRY_WITH_TASK";
6311
6290
  task: {
6312
6291
  name: string;
6313
6292
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6654,11 +6633,11 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6654
6633
  status: z.ZodLiteral<"YIELD_EXECUTION">;
6655
6634
  key: z.ZodString;
6656
6635
  }, "strip", z.ZodTypeAny, {
6657
- key: string;
6658
6636
  status: "YIELD_EXECUTION";
6659
- }, {
6660
6637
  key: string;
6638
+ }, {
6661
6639
  status: "YIELD_EXECUTION";
6640
+ key: string;
6662
6641
  }>, z.ZodObject<{
6663
6642
  status: z.ZodLiteral<"ERROR">;
6664
6643
  error: z.ZodObject<{
@@ -6804,12 +6783,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6804
6783
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
6805
6784
  }>>;
6806
6785
  }, "strip", z.ZodTypeAny, {
6786
+ status: "ERROR";
6807
6787
  error: {
6808
6788
  message: string;
6809
6789
  name?: string | undefined;
6810
6790
  stack?: string | undefined;
6811
6791
  };
6812
- status: "ERROR";
6813
6792
  task?: {
6814
6793
  name: string;
6815
6794
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6846,12 +6825,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6846
6825
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
6847
6826
  } | undefined;
6848
6827
  }, {
6828
+ status: "ERROR";
6849
6829
  error: {
6850
6830
  message: string;
6851
6831
  name?: string | undefined;
6852
6832
  stack?: string | undefined;
6853
6833
  };
6854
- status: "ERROR";
6855
6834
  task?: {
6856
6835
  name: string;
6857
6836
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7286,12 +7265,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
7286
7265
  }>;
7287
7266
  retryAt: z.ZodDate;
7288
7267
  }, "strip", z.ZodTypeAny, {
7268
+ status: "RETRY_WITH_TASK";
7289
7269
  error: {
7290
7270
  message: string;
7291
7271
  name?: string | undefined;
7292
7272
  stack?: string | undefined;
7293
7273
  };
7294
- status: "RETRY_WITH_TASK";
7295
7274
  task: {
7296
7275
  name: string;
7297
7276
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7329,12 +7308,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
7329
7308
  };
7330
7309
  retryAt: Date;
7331
7310
  }, {
7311
+ status: "RETRY_WITH_TASK";
7332
7312
  error: {
7333
7313
  message: string;
7334
7314
  name?: string | undefined;
7335
7315
  stack?: string | undefined;
7336
7316
  };
7337
- status: "RETRY_WITH_TASK";
7338
7317
  task: {
7339
7318
  name: string;
7340
7319
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7799,11 +7778,11 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7799
7778
  status: z.ZodLiteral<"YIELD_EXECUTION">;
7800
7779
  key: z.ZodString;
7801
7780
  }, "strip", z.ZodTypeAny, {
7802
- key: string;
7803
7781
  status: "YIELD_EXECUTION";
7804
- }, {
7805
7782
  key: string;
7783
+ }, {
7806
7784
  status: "YIELD_EXECUTION";
7785
+ key: string;
7807
7786
  }>, z.ZodObject<{
7808
7787
  status: z.ZodLiteral<"ERROR">;
7809
7788
  error: z.ZodObject<{
@@ -7949,12 +7928,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7949
7928
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
7950
7929
  }>>;
7951
7930
  }, "strip", z.ZodTypeAny, {
7931
+ status: "ERROR";
7952
7932
  error: {
7953
7933
  message: string;
7954
7934
  name?: string | undefined;
7955
7935
  stack?: string | undefined;
7956
7936
  };
7957
- status: "ERROR";
7958
7937
  task?: {
7959
7938
  name: string;
7960
7939
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7991,12 +7970,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7991
7970
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
7992
7971
  } | undefined;
7993
7972
  }, {
7973
+ status: "ERROR";
7994
7974
  error: {
7995
7975
  message: string;
7996
7976
  name?: string | undefined;
7997
7977
  stack?: string | undefined;
7998
7978
  };
7999
- status: "ERROR";
8000
7979
  task?: {
8001
7980
  name: string;
8002
7981
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8431,12 +8410,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8431
8410
  }>;
8432
8411
  retryAt: z.ZodDate;
8433
8412
  }, "strip", z.ZodTypeAny, {
8413
+ status: "RETRY_WITH_TASK";
8434
8414
  error: {
8435
8415
  message: string;
8436
8416
  name?: string | undefined;
8437
8417
  stack?: string | undefined;
8438
8418
  };
8439
- status: "RETRY_WITH_TASK";
8440
8419
  task: {
8441
8420
  name: string;
8442
8421
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8474,12 +8453,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8474
8453
  };
8475
8454
  retryAt: Date;
8476
8455
  }, {
8456
+ status: "RETRY_WITH_TASK";
8477
8457
  error: {
8478
8458
  message: string;
8479
8459
  name?: string | undefined;
8480
8460
  stack?: string | undefined;
8481
8461
  };
8482
- status: "RETRY_WITH_TASK";
8483
8462
  task: {
8484
8463
  name: string;
8485
8464
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8760,12 +8739,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8760
8739
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8761
8740
  };
8762
8741
  childErrors: ({
8742
+ status: "ERROR";
8763
8743
  error: {
8764
8744
  message: string;
8765
8745
  name?: string | undefined;
8766
8746
  stack?: string | undefined;
8767
8747
  };
8768
- status: "ERROR";
8769
8748
  task?: {
8770
8749
  name: string;
8771
8750
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8802,8 +8781,8 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8802
8781
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8803
8782
  } | undefined;
8804
8783
  } | {
8805
- key: string;
8806
8784
  status: "YIELD_EXECUTION";
8785
+ key: string;
8807
8786
  } | {
8808
8787
  status: "AUTO_YIELD_EXECUTION";
8809
8788
  location: string;
@@ -8876,12 +8855,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8876
8855
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8877
8856
  };
8878
8857
  } | {
8858
+ status: "RETRY_WITH_TASK";
8879
8859
  error: {
8880
8860
  message: string;
8881
8861
  name?: string | undefined;
8882
8862
  stack?: string | undefined;
8883
8863
  };
8884
- status: "RETRY_WITH_TASK";
8885
8864
  task: {
8886
8865
  name: string;
8887
8866
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8994,12 +8973,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8994
8973
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8995
8974
  };
8996
8975
  childErrors: ({
8976
+ status: "ERROR";
8997
8977
  error: {
8998
8978
  message: string;
8999
8979
  name?: string | undefined;
9000
8980
  stack?: string | undefined;
9001
8981
  };
9002
- status: "ERROR";
9003
8982
  task?: {
9004
8983
  name: string;
9005
8984
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9036,8 +9015,8 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9036
9015
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9037
9016
  } | undefined;
9038
9017
  } | {
9039
- key: string;
9040
9018
  status: "YIELD_EXECUTION";
9019
+ key: string;
9041
9020
  } | {
9042
9021
  status: "AUTO_YIELD_EXECUTION";
9043
9022
  location: string;
@@ -9110,12 +9089,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9110
9089
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9111
9090
  };
9112
9091
  } | {
9092
+ status: "RETRY_WITH_TASK";
9113
9093
  error: {
9114
9094
  message: string;
9115
9095
  name?: string | undefined;
9116
9096
  stack?: string | undefined;
9117
9097
  };
9118
- status: "RETRY_WITH_TASK";
9119
9098
  task: {
9120
9099
  name: string;
9121
9100
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9282,11 +9261,11 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9282
9261
  status: z.ZodLiteral<"YIELD_EXECUTION">;
9283
9262
  key: z.ZodString;
9284
9263
  }, "strip", z.ZodTypeAny, {
9285
- key: string;
9286
9264
  status: "YIELD_EXECUTION";
9287
- }, {
9288
9265
  key: string;
9266
+ }, {
9289
9267
  status: "YIELD_EXECUTION";
9268
+ key: string;
9290
9269
  }>, z.ZodObject<{
9291
9270
  status: z.ZodLiteral<"ERROR">;
9292
9271
  error: z.ZodObject<{
@@ -9432,12 +9411,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9432
9411
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9433
9412
  }>>;
9434
9413
  }, "strip", z.ZodTypeAny, {
9414
+ status: "ERROR";
9435
9415
  error: {
9436
9416
  message: string;
9437
9417
  name?: string | undefined;
9438
9418
  stack?: string | undefined;
9439
9419
  };
9440
- status: "ERROR";
9441
9420
  task?: {
9442
9421
  name: string;
9443
9422
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9474,12 +9453,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9474
9453
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9475
9454
  } | undefined;
9476
9455
  }, {
9456
+ status: "ERROR";
9477
9457
  error: {
9478
9458
  message: string;
9479
9459
  name?: string | undefined;
9480
9460
  stack?: string | undefined;
9481
9461
  };
9482
- status: "ERROR";
9483
9462
  task?: {
9484
9463
  name: string;
9485
9464
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9989,11 +9968,11 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9989
9968
  status: z.ZodLiteral<"YIELD_EXECUTION">;
9990
9969
  key: z.ZodString;
9991
9970
  }, "strip", z.ZodTypeAny, {
9992
- key: string;
9993
9971
  status: "YIELD_EXECUTION";
9994
- }, {
9995
9972
  key: string;
9973
+ }, {
9996
9974
  status: "YIELD_EXECUTION";
9975
+ key: string;
9997
9976
  }>, z.ZodObject<{
9998
9977
  status: z.ZodLiteral<"ERROR">;
9999
9978
  error: z.ZodObject<{
@@ -10139,12 +10118,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10139
10118
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10140
10119
  }>>;
10141
10120
  }, "strip", z.ZodTypeAny, {
10121
+ status: "ERROR";
10142
10122
  error: {
10143
10123
  message: string;
10144
10124
  name?: string | undefined;
10145
10125
  stack?: string | undefined;
10146
10126
  };
10147
- status: "ERROR";
10148
10127
  task?: {
10149
10128
  name: string;
10150
10129
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10181,12 +10160,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10181
10160
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10182
10161
  } | undefined;
10183
10162
  }, {
10163
+ status: "ERROR";
10184
10164
  error: {
10185
10165
  message: string;
10186
10166
  name?: string | undefined;
10187
10167
  stack?: string | undefined;
10188
10168
  };
10189
- status: "ERROR";
10190
10169
  task?: {
10191
10170
  name: string;
10192
10171
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10621,12 +10600,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10621
10600
  }>;
10622
10601
  retryAt: z.ZodDate;
10623
10602
  }, "strip", z.ZodTypeAny, {
10603
+ status: "RETRY_WITH_TASK";
10624
10604
  error: {
10625
10605
  message: string;
10626
10606
  name?: string | undefined;
10627
10607
  stack?: string | undefined;
10628
10608
  };
10629
- status: "RETRY_WITH_TASK";
10630
10609
  task: {
10631
10610
  name: string;
10632
10611
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10664,12 +10643,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10664
10643
  };
10665
10644
  retryAt: Date;
10666
10645
  }, {
10646
+ status: "RETRY_WITH_TASK";
10667
10647
  error: {
10668
10648
  message: string;
10669
10649
  name?: string | undefined;
10670
10650
  stack?: string | undefined;
10671
10651
  };
10672
- status: "RETRY_WITH_TASK";
10673
10652
  task: {
10674
10653
  name: string;
10675
10654
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10950,12 +10929,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10950
10929
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10951
10930
  };
10952
10931
  childErrors: ({
10932
+ status: "ERROR";
10953
10933
  error: {
10954
10934
  message: string;
10955
10935
  name?: string | undefined;
10956
10936
  stack?: string | undefined;
10957
10937
  };
10958
- status: "ERROR";
10959
10938
  task?: {
10960
10939
  name: string;
10961
10940
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10992,8 +10971,8 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10992
10971
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10993
10972
  } | undefined;
10994
10973
  } | {
10995
- key: string;
10996
10974
  status: "YIELD_EXECUTION";
10975
+ key: string;
10997
10976
  } | {
10998
10977
  status: "AUTO_YIELD_EXECUTION";
10999
10978
  location: string;
@@ -11066,12 +11045,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11066
11045
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11067
11046
  };
11068
11047
  } | {
11048
+ status: "RETRY_WITH_TASK";
11069
11049
  error: {
11070
11050
  message: string;
11071
11051
  name?: string | undefined;
11072
11052
  stack?: string | undefined;
11073
11053
  };
11074
- status: "RETRY_WITH_TASK";
11075
11054
  task: {
11076
11055
  name: string;
11077
11056
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11184,12 +11163,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11184
11163
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11185
11164
  };
11186
11165
  childErrors: ({
11166
+ status: "ERROR";
11187
11167
  error: {
11188
11168
  message: string;
11189
11169
  name?: string | undefined;
11190
11170
  stack?: string | undefined;
11191
11171
  };
11192
- status: "ERROR";
11193
11172
  task?: {
11194
11173
  name: string;
11195
11174
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11226,8 +11205,8 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11226
11205
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11227
11206
  } | undefined;
11228
11207
  } | {
11229
- key: string;
11230
11208
  status: "YIELD_EXECUTION";
11209
+ key: string;
11231
11210
  } | {
11232
11211
  status: "AUTO_YIELD_EXECUTION";
11233
11212
  location: string;
@@ -11300,12 +11279,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11300
11279
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11301
11280
  };
11302
11281
  } | {
11282
+ status: "RETRY_WITH_TASK";
11303
11283
  error: {
11304
11284
  message: string;
11305
11285
  name?: string | undefined;
11306
11286
  stack?: string | undefined;
11307
11287
  };
11308
- status: "RETRY_WITH_TASK";
11309
11288
  task: {
11310
11289
  name: string;
11311
11290
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11526,12 +11505,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11526
11505
  }>;
11527
11506
  retryAt: z.ZodDate;
11528
11507
  }, "strip", z.ZodTypeAny, {
11508
+ status: "RETRY_WITH_TASK";
11529
11509
  error: {
11530
11510
  message: string;
11531
11511
  name?: string | undefined;
11532
11512
  stack?: string | undefined;
11533
11513
  };
11534
- status: "RETRY_WITH_TASK";
11535
11514
  task: {
11536
11515
  name: string;
11537
11516
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11569,12 +11548,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11569
11548
  };
11570
11549
  retryAt: Date;
11571
11550
  }, {
11551
+ status: "RETRY_WITH_TASK";
11572
11552
  error: {
11573
11553
  message: string;
11574
11554
  name?: string | undefined;
11575
11555
  stack?: string | undefined;
11576
11556
  };
11577
- status: "RETRY_WITH_TASK";
11578
11557
  task: {
11579
11558
  name: string;
11580
11559
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -12618,10 +12597,10 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
12618
12597
  type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
12619
12598
  declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12620
12599
  task: z.ZodObject<{
12621
- error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12622
12600
  name: z.ZodString;
12623
12601
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
12624
12602
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
12603
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12625
12604
  context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
12626
12605
  id: z.ZodString;
12627
12606
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -12687,8 +12666,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12687
12666
  noop: boolean;
12688
12667
  idempotencyKey: string;
12689
12668
  attempts: number;
12690
- error?: string | null | undefined;
12691
12669
  params?: DeserializedJson | undefined;
12670
+ error?: string | null | undefined;
12692
12671
  context?: DeserializedJson | undefined;
12693
12672
  style?: {
12694
12673
  style: "normal" | "minimal";
@@ -12724,8 +12703,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12724
12703
  noop: boolean;
12725
12704
  idempotencyKey: string;
12726
12705
  attempts: number;
12727
- error?: string | null | undefined;
12728
12706
  params?: DeserializedJson | undefined;
12707
+ error?: string | null | undefined;
12729
12708
  context?: DeserializedJson | undefined;
12730
12709
  style?: {
12731
12710
  style: "normal" | "minimal";
@@ -12808,8 +12787,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12808
12787
  noop: boolean;
12809
12788
  idempotencyKey: string;
12810
12789
  attempts: number;
12811
- error?: string | null | undefined;
12812
12790
  params?: DeserializedJson | undefined;
12791
+ error?: string | null | undefined;
12813
12792
  context?: DeserializedJson | undefined;
12814
12793
  style?: {
12815
12794
  style: "normal" | "minimal";
@@ -12858,8 +12837,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12858
12837
  noop: boolean;
12859
12838
  idempotencyKey: string;
12860
12839
  attempts: number;
12861
- error?: string | null | undefined;
12862
12840
  params?: DeserializedJson | undefined;
12841
+ error?: string | null | undefined;
12863
12842
  context?: DeserializedJson | undefined;
12864
12843
  style?: {
12865
12844
  style: "normal" | "minimal";
@@ -13248,8 +13227,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13248
13227
  id: string;
13249
13228
  }>>;
13250
13229
  }, "strip", z.ZodTypeAny, {
13251
- key: string;
13252
13230
  version: "1";
13231
+ key: string;
13253
13232
  channel: "HTTP" | "SMTP" | "SQS";
13254
13233
  events: string[];
13255
13234
  integration: {
@@ -13267,8 +13246,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13267
13246
  id: string;
13268
13247
  } | undefined;
13269
13248
  }, {
13270
- key: string;
13271
13249
  version: "1";
13250
+ key: string;
13272
13251
  channel: "HTTP" | "SMTP" | "SQS";
13273
13252
  events: string[];
13274
13253
  integration: {
@@ -13288,8 +13267,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13288
13267
  }>;
13289
13268
  }, "strip", z.ZodTypeAny, {
13290
13269
  source: {
13291
- key: string;
13292
13270
  version: "1";
13271
+ key: string;
13293
13272
  channel: "HTTP" | "SMTP" | "SQS";
13294
13273
  events: string[];
13295
13274
  integration: {
@@ -13315,8 +13294,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13315
13294
  };
13316
13295
  }, {
13317
13296
  source: {
13318
- key: string;
13319
13297
  version: "1";
13298
+ key: string;
13320
13299
  channel: "HTTP" | "SMTP" | "SQS";
13321
13300
  events: string[];
13322
13301
  integration: {
@@ -13409,9 +13388,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13409
13388
  id: string;
13410
13389
  }>>;
13411
13390
  }, "strip", z.ZodTypeAny, {
13412
- key: string;
13413
13391
  version: "2";
13414
13392
  options: Record<string, string[]>;
13393
+ key: string;
13415
13394
  channel: "HTTP" | "SMTP" | "SQS";
13416
13395
  integration: {
13417
13396
  id: string;
@@ -13428,9 +13407,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13428
13407
  id: string;
13429
13408
  } | undefined;
13430
13409
  }, {
13431
- key: string;
13432
13410
  version: "2";
13433
13411
  options: Record<string, string[]>;
13412
+ key: string;
13434
13413
  channel: "HTTP" | "SMTP" | "SQS";
13435
13414
  integration: {
13436
13415
  id: string;
@@ -13450,9 +13429,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13450
13429
  accountId: z.ZodOptional<z.ZodString>;
13451
13430
  }, "strip", z.ZodTypeAny, {
13452
13431
  source: {
13453
- key: string;
13454
13432
  version: "2";
13455
13433
  options: Record<string, string[]>;
13434
+ key: string;
13456
13435
  channel: "HTTP" | "SMTP" | "SQS";
13457
13436
  integration: {
13458
13437
  id: string;
@@ -13478,9 +13457,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13478
13457
  accountId?: string | undefined;
13479
13458
  }, {
13480
13459
  source: {
13481
- key: string;
13482
13460
  version: "2";
13483
13461
  options: Record<string, string[]>;
13462
+ key: string;
13484
13463
  channel: "HTTP" | "SMTP" | "SQS";
13485
13464
  integration: {
13486
13465
  id: string;
@@ -13786,8 +13765,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13786
13765
  data?: Record<string, SerializableJson> | undefined;
13787
13766
  }>, "many">;
13788
13767
  }, "strip", z.ZodTypeAny, {
13789
- key: string;
13790
13768
  label: string;
13769
+ key: string;
13791
13770
  history: {
13792
13771
  label?: string | undefined;
13793
13772
  state?: "loading" | "success" | "failure" | undefined;
@@ -13796,8 +13775,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13796
13775
  data?: Record<string, SerializableJson> | undefined;
13797
13776
  state?: "loading" | "success" | "failure" | undefined;
13798
13777
  }, {
13799
- key: string;
13800
13778
  label: string;
13779
+ key: string;
13801
13780
  history: {
13802
13781
  label?: string | undefined;
13803
13782
  state?: "loading" | "success" | "failure" | undefined;
@@ -13808,8 +13787,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13808
13787
  }>, "many">;
13809
13788
  }, "strip", z.ZodTypeAny, {
13810
13789
  statuses: {
13811
- key: string;
13812
13790
  label: string;
13791
+ key: string;
13813
13792
  history: {
13814
13793
  label?: string | undefined;
13815
13794
  state?: "loading" | "success" | "failure" | undefined;
@@ -13825,8 +13804,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13825
13804
  };
13826
13805
  }, {
13827
13806
  statuses: {
13828
- key: string;
13829
13807
  label: string;
13808
+ key: string;
13830
13809
  history: {
13831
13810
  label?: string | undefined;
13832
13811
  state?: "loading" | "success" | "failure" | undefined;
@@ -16379,8 +16358,8 @@ declare const JobRunStatusRecordSchema: z.ZodObject<{
16379
16358
  data?: Record<string, SerializableJson> | undefined;
16380
16359
  }>, "many">;
16381
16360
  }, "strip", z.ZodTypeAny, {
16382
- key: string;
16383
16361
  label: string;
16362
+ key: string;
16384
16363
  history: {
16385
16364
  label?: string | undefined;
16386
16365
  state?: "loading" | "success" | "failure" | undefined;
@@ -16389,8 +16368,8 @@ declare const JobRunStatusRecordSchema: z.ZodObject<{
16389
16368
  data?: Record<string, SerializableJson> | undefined;
16390
16369
  state?: "loading" | "success" | "failure" | undefined;
16391
16370
  }, {
16392
- key: string;
16393
16371
  label: string;
16372
+ key: string;
16394
16373
  history: {
16395
16374
  label?: string | undefined;
16396
16375
  state?: "loading" | "success" | "failure" | undefined;
@@ -16501,8 +16480,8 @@ declare const GetRunSchema: z.ZodObject<{
16501
16480
  data?: Record<string, SerializableJson> | undefined;
16502
16481
  }>, "many">;
16503
16482
  }, "strip", z.ZodTypeAny, {
16504
- key: string;
16505
16483
  label: string;
16484
+ key: string;
16506
16485
  history: {
16507
16486
  label?: string | undefined;
16508
16487
  state?: "loading" | "success" | "failure" | undefined;
@@ -16511,8 +16490,8 @@ declare const GetRunSchema: z.ZodObject<{
16511
16490
  data?: Record<string, SerializableJson> | undefined;
16512
16491
  state?: "loading" | "success" | "failure" | undefined;
16513
16492
  }, {
16514
- key: string;
16515
16493
  label: string;
16494
+ key: string;
16516
16495
  history: {
16517
16496
  label?: string | undefined;
16518
16497
  state?: "loading" | "success" | "failure" | undefined;
@@ -16530,8 +16509,8 @@ declare const GetRunSchema: z.ZodObject<{
16530
16509
  updatedAt: Date | null;
16531
16510
  tasks: RunTaskWithSubtasks[];
16532
16511
  statuses: {
16533
- key: string;
16534
16512
  label: string;
16513
+ key: string;
16535
16514
  history: {
16536
16515
  label?: string | undefined;
16537
16516
  state?: "loading" | "success" | "failure" | undefined;
@@ -16551,8 +16530,8 @@ declare const GetRunSchema: z.ZodObject<{
16551
16530
  tasks: RunTaskWithSubtasks[];
16552
16531
  output?: any;
16553
16532
  statuses?: {
16554
- key: string;
16555
16533
  label: string;
16534
+ key: string;
16556
16535
  history: {
16557
16536
  label?: string | undefined;
16558
16537
  state?: "loading" | "success" | "failure" | undefined;
@@ -16788,4 +16767,4 @@ declare const PLATFORM_FEATURES: {
16788
16767
  };
16789
16768
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
16790
16769
 
16791
- export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, AsyncMap, AutoYieldConfig, AutoYieldConfigSchema, AutoYieldMetadata, AutoYieldMetadataSchema, CachedTask, CachedTaskSchema, CancelRunsForEvent, CancelRunsForEventSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, EndpointIndexError, EndpointIndexErrorSchema, EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, FailTaskBodyInput, FailTaskBodyInputSchema, FailedRunNotification, FetchOperation, FetchOperationSchema, FetchPollOperation, FetchPollOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, FetchTimeoutOptions, FetchTimeoutOptionsSchema, GetEndpointIndexResponse, GetEndpointIndexResponseSchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, HttpMethod, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, IndexEndpointStats, InitialStatusUpdate, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, JobMetadata, JobMetadataSchema, JobRunStatusRecord, JobRunStatusRecordSchema, KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, 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, REGISTER_WEBHOOK, 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, RegisterWebhookPayload, RegisterWebhookPayloadSchema, RegisterWebhookSource, RegisterWebhookSourceSchema, RegisteredOptionsDiff, RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, ResponseFilter, ResponseFilterMatchResult, ResponseFilterSchema, RetryOptions, RetryOptionsSchema, RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, RunNotification, RunNotificationAccountMetadata, RunNotificationEnvMetadata, RunNotificationInvocationMetadata, RunNotificationJobMetadata, RunNotificationOrgMetadata, RunNotificationProjectMetadata, RunNotificationRunMetadata, RunSourceContext, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistory, StatusHistorySchema, StatusUpdate, StatusUpdateData, StatusUpdateSchema, StatusUpdateState, StatusUpdateStateSchema, StringMatch, Style, StyleName, StyleSchema, SuccessfulRunNotification, TaskSchema, TaskStatus, TaskStatusSchema, TriggerHelpSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, WebhookContextMetadata, WebhookContextMetadataSchema, WebhookDeliveryResponse, WebhookDeliveryResponseSchema, WebhookMetadata, WebhookMetadataSchema, WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };
16770
+ export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, type CompleteTaskBodyInput, CompleteTaskBodyInputSchema, type CompleteTaskBodyOutput, type CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConcurrencyLimitOptionsSchema, type ConnectionAuth, ConnectionAuthSchema, type CreateExternalConnectionBody, CreateExternalConnectionBodySchema, type CreateRunResponseBody, CreateRunResponseBodySchema, type CronMetadata, CronMetadataSchema, type CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, type DeliverEventResponse, DeliverEventResponseSchema, type DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, type DisplayProperty, DisplayPropertySchema, type DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, type EndpointIndexError, EndpointIndexErrorSchema, type EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, type EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, type ErrorWithStack, ErrorWithStackSchema, type EventExample, EventExampleSchema, type EventFilter, EventFilterSchema, type EventRule, EventRuleSchema, EventSpecificationSchema, type ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, type FailTaskBodyInput, FailTaskBodyInputSchema, type FailedRunNotification, type FetchOperation, FetchOperationSchema, type FetchPollOperation, FetchPollOperationSchema, type FetchRequestInit, FetchRequestInitSchema, type FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, type FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, type FetchRetryOptions, FetchRetryOptionsSchema, type FetchRetryStrategy, FetchRetryStrategySchema, type FetchTimeoutOptions, FetchTimeoutOptionsSchema, type GetEndpointIndexResponse, GetEndpointIndexResponseSchema, type GetEvent, GetEventSchema, type GetRun, type GetRunOptions, type GetRunOptionsWithTaskDetails, GetRunSchema, type GetRunStatuses, GetRunStatusesSchema, type GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, type HandleTriggerSource, HandleTriggerSourceSchema, type HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, type HttpMethod, type HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, type HttpSourceResponseMetadata, HttpSourceResponseSchema, type IndexEndpointResponse, IndexEndpointResponseSchema, type IndexEndpointStats, type InitialStatusUpdate, InitializeCronScheduleBodySchema, type InitializeTriggerBody, InitializeTriggerBodySchema, type IntegrationConfig, IntegrationConfigSchema, type IntegrationMetadata, IntegrationMetadataSchema, type IntervalMetadata, IntervalMetadataSchema, type IntervalOptions, IntervalOptionsSchema, type InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, type InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, type JobMetadata, JobMetadataSchema, type JobRunStatusRecord, JobRunStatusRecordSchema, type KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, type LogMessage, LogMessageSchema, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, type MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, type MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, type NormalizedRequest, NormalizedRequestSchema, type NormalizedResponse, NormalizedResponseSchema, type OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, type PongResponse, PongResponseSchema, PongSuccessResponseSchema, type PreprocessRunBody, PreprocessRunBodySchema, type PreprocessRunResponse, PreprocessRunResponseSchema, type Prettify, type QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, type RawEvent, RawEventSchema, RedactSchema, type RedactString, RedactStringSchema, type RegisterCronScheduleBody, type RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, type RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, type RegisterScheduleBody, RegisterScheduleBodySchema, type RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, type RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, type RegisterSourceEventV1, type RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, type RegisterTriggerBodyV1, type RegisterTriggerBodyV2, type RegisterTriggerSource, RegisterTriggerSourceSchema, type RegisterWebhookPayload, RegisterWebhookPayloadSchema, type RegisterWebhookSource, RegisterWebhookSourceSchema, type RegisteredOptionsDiff, type RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, type ResponseFilter, type ResponseFilterMatchResult, ResponseFilterSchema, type RetryOptions, RetryOptionsSchema, type RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, type RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, type RunJobBody, RunJobBodySchema, type RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, type RunJobError, type RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, type RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, type RunJobResponse, RunJobResponseSchema, type RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, type RunJobResumeWithTask, RunJobResumeWithTaskSchema, type RunJobRetryWithTask, RunJobRetryWithTaskSchema, type RunJobSuccess, RunJobSuccessSchema, type RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, type RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, type RunNotification, type RunNotificationAccountMetadata, type RunNotificationEnvMetadata, type RunNotificationInvocationMetadata, type RunNotificationJobMetadata, type RunNotificationOrgMetadata, type RunNotificationProjectMetadata, type RunNotificationRunMetadata, type RunSourceContext, RunSourceContextSchema, RunStatusSchema, type RunTaskBodyInput, RunTaskBodyInputSchema, type RunTaskBodyOutput, RunTaskBodyOutputSchema, type RunTaskOptions, RunTaskOptionsSchema, type RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, type RunTaskWithSubtasks, type RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, type ScheduleMetadata, ScheduleMetadataSchema, type ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, type SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, type SendEvent, type SendEventBody, SendEventBodySchema, type SendEventOptions, SendEventOptionsSchema, type SerializableJson, SerializableJsonSchema, type ServerTask, ServerTaskSchema, type SourceEventOption, type SourceMetadataV1, type SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, type StatusHistory, StatusHistorySchema, type StatusUpdate, type StatusUpdateData, StatusUpdateSchema, type StatusUpdateState, StatusUpdateStateSchema, type StringMatch, type Style, type StyleName, StyleSchema, type SuccessfulRunNotification, TaskSchema, type TaskStatus, TaskStatusSchema, TriggerHelpSchema, type TriggerMetadata, TriggerMetadataSchema, type TriggerSource, TriggerSourceSchema, type UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, type UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, type UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, type ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, type WebhookContextMetadata, WebhookContextMetadataSchema, type WebhookDeliveryResponse, WebhookDeliveryResponseSchema, type WebhookMetadata, WebhookMetadataSchema, type WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };