@trigger.dev/core 0.0.0-prerelease-20231206103411 → 0.0.0-prerelease-20240112134133

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.mts CHANGED
@@ -1,18 +1,5 @@
1
1
  import { z } from 'zod';
2
2
 
3
- type LogLevel = "log" | "error" | "warn" | "info" | "debug";
4
- declare class Logger {
5
- #private;
6
- constructor(name: string, level?: LogLevel, filteredKeys?: string[], jsonReplacer?: (key: string, value: unknown) => unknown, additionalFields?: () => Record<string, unknown>);
7
- filter(...keys: string[]): Logger;
8
- static satisfiesLogLevel(logLevel: LogLevel, setLevel: LogLevel): boolean;
9
- log(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
10
- error(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
11
- warn(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
12
- info(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
13
- debug(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
14
- }
15
-
16
3
  declare const stringPatternMatchers: readonly [z.ZodObject<{
17
4
  $endsWith: z.ZodString;
18
5
  }, "strip", z.ZodTypeAny, {
@@ -110,6 +97,12 @@ declare const EventMatcherSchema: z.ZodUnion<[z.ZodArray<z.ZodString, "many">, z
110
97
  $includes: string | number | boolean;
111
98
  }, {
112
99
  $includes: string | number | boolean;
100
+ }>, z.ZodObject<{
101
+ $not: z.ZodUnion<[z.ZodString, z.ZodNumber, z.ZodBoolean]>;
102
+ }, "strip", z.ZodTypeAny, {
103
+ $not: string | number | boolean;
104
+ }, {
105
+ $not: string | number | boolean;
113
106
  }>]>, "many">]>;
114
107
  type EventMatcher = z.infer<typeof EventMatcherSchema>;
115
108
  /** A filter for matching against data */
@@ -290,10 +283,10 @@ declare const TaskSchema: z.ZodObject<{
290
283
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
291
284
  }>;
292
285
  declare const ServerTaskSchema: z.ZodObject<{
293
- error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
294
286
  name: z.ZodString;
295
287
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
296
288
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
289
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
297
290
  context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
298
291
  id: z.ZodString;
299
292
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -359,8 +352,8 @@ declare const ServerTaskSchema: z.ZodObject<{
359
352
  noop: boolean;
360
353
  idempotencyKey: string;
361
354
  attempts: number;
362
- error?: string | null | undefined;
363
355
  params?: DeserializedJson | undefined;
356
+ error?: string | null | undefined;
364
357
  context?: DeserializedJson | undefined;
365
358
  style?: {
366
359
  style: "normal" | "minimal";
@@ -396,8 +389,8 @@ declare const ServerTaskSchema: z.ZodObject<{
396
389
  noop: boolean;
397
390
  idempotencyKey: string;
398
391
  attempts: number;
399
- error?: string | null | undefined;
400
392
  params?: DeserializedJson | undefined;
393
+ error?: string | null | undefined;
401
394
  context?: DeserializedJson | undefined;
402
395
  style?: {
403
396
  style: "normal" | "minimal";
@@ -564,8 +557,8 @@ declare const RegisterWebhookSourceSchema: z.ZodObject<{
564
557
  data: z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>;
565
558
  clientId: z.ZodOptional<z.ZodString>;
566
559
  }, "strip", z.ZodTypeAny, {
567
- key: string;
568
560
  url: string;
561
+ key: string;
569
562
  secret: string;
570
563
  active: boolean;
571
564
  params?: any;
@@ -573,8 +566,8 @@ declare const RegisterWebhookSourceSchema: z.ZodObject<{
573
566
  data?: DeserializedJson | undefined;
574
567
  clientId?: string | undefined;
575
568
  }, {
576
- key: string;
577
569
  url: string;
570
+ key: string;
578
571
  secret: string;
579
572
  active: boolean;
580
573
  params?: any;
@@ -685,11 +678,11 @@ declare const SourceEventOptionSchema: z.ZodObject<{
685
678
  name: z.ZodString;
686
679
  value: z.ZodString;
687
680
  }, "strip", z.ZodTypeAny, {
688
- value: string;
689
681
  name: string;
690
- }, {
691
682
  value: string;
683
+ }, {
692
684
  name: string;
685
+ value: string;
693
686
  }>;
694
687
  type SourceEventOption = z.infer<typeof SourceEventOptionSchema>;
695
688
  declare const RegisterSourceEventSchemaV1: z.ZodObject<{
@@ -1028,11 +1021,11 @@ declare const TriggerSourceSchema: z.ZodObject<{
1028
1021
  id: z.ZodString;
1029
1022
  key: z.ZodString;
1030
1023
  }, "strip", z.ZodTypeAny, {
1031
- key: string;
1032
1024
  id: string;
1033
- }, {
1034
1025
  key: string;
1026
+ }, {
1035
1027
  id: string;
1028
+ key: string;
1036
1029
  }>;
1037
1030
  declare const HttpSourceResponseMetadataSchema: z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>;
1038
1031
  type HttpSourceResponseMetadata = z.infer<typeof HttpSourceResponseMetadataSchema>;
@@ -1865,8 +1858,8 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1865
1858
  id: string;
1866
1859
  }>>;
1867
1860
  }, "strip", z.ZodTypeAny, {
1868
- key: string;
1869
1861
  version: "1";
1862
+ key: string;
1870
1863
  channel: "HTTP" | "SMTP" | "SQS";
1871
1864
  events: string[];
1872
1865
  integration: {
@@ -1884,8 +1877,8 @@ declare const SourceMetadataV1Schema: z.ZodObject<{
1884
1877
  id: string;
1885
1878
  } | undefined;
1886
1879
  }, {
1887
- key: string;
1888
1880
  version: "1";
1881
+ key: string;
1889
1882
  channel: "HTTP" | "SMTP" | "SQS";
1890
1883
  events: string[];
1891
1884
  integration: {
@@ -1954,9 +1947,9 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1954
1947
  id: string;
1955
1948
  }>>;
1956
1949
  }, "strip", z.ZodTypeAny, {
1957
- key: string;
1958
1950
  version: "2";
1959
1951
  options: Record<string, string[]>;
1952
+ key: string;
1960
1953
  channel: "HTTP" | "SMTP" | "SQS";
1961
1954
  integration: {
1962
1955
  id: string;
@@ -1973,9 +1966,9 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1973
1966
  id: string;
1974
1967
  } | undefined;
1975
1968
  }, {
1976
- key: string;
1977
1969
  version: "2";
1978
1970
  options: Record<string, string[]>;
1971
+ key: string;
1979
1972
  channel: "HTTP" | "SMTP" | "SQS";
1980
1973
  integration: {
1981
1974
  id: string;
@@ -3302,8 +3295,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3302
3295
  id: string;
3303
3296
  }>>;
3304
3297
  }, "strip", z.ZodTypeAny, {
3305
- key: string;
3306
3298
  version: "1";
3299
+ key: string;
3307
3300
  channel: "HTTP" | "SMTP" | "SQS";
3308
3301
  events: string[];
3309
3302
  integration: {
@@ -3321,8 +3314,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3321
3314
  id: string;
3322
3315
  } | undefined;
3323
3316
  }, {
3324
- key: string;
3325
3317
  version: "1";
3318
+ key: string;
3326
3319
  channel: "HTTP" | "SMTP" | "SQS";
3327
3320
  events: string[];
3328
3321
  integration: {
@@ -3389,9 +3382,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3389
3382
  id: string;
3390
3383
  }>>;
3391
3384
  }, "strip", z.ZodTypeAny, {
3392
- key: string;
3393
3385
  version: "2";
3394
3386
  options: Record<string, string[]>;
3387
+ key: string;
3395
3388
  channel: "HTTP" | "SMTP" | "SQS";
3396
3389
  integration: {
3397
3390
  id: string;
@@ -3408,9 +3401,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3408
3401
  id: string;
3409
3402
  } | undefined;
3410
3403
  }, {
3411
- key: string;
3412
3404
  version: "2";
3413
3405
  options: Record<string, string[]>;
3406
+ key: string;
3414
3407
  channel: "HTTP" | "SMTP" | "SQS";
3415
3408
  integration: {
3416
3409
  id: string;
@@ -3427,8 +3420,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3427
3420
  id: string;
3428
3421
  } | undefined;
3429
3422
  }>]>, {
3430
- key: string;
3431
3423
  version: "1";
3424
+ key: string;
3432
3425
  channel: "HTTP" | "SMTP" | "SQS";
3433
3426
  events: string[];
3434
3427
  integration: {
@@ -3446,9 +3439,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3446
3439
  id: string;
3447
3440
  } | undefined;
3448
3441
  } | {
3449
- key: string;
3450
3442
  version: "2";
3451
3443
  options: Record<string, string[]>;
3444
+ key: string;
3452
3445
  channel: "HTTP" | "SMTP" | "SQS";
3453
3446
  integration: {
3454
3447
  id: string;
@@ -4313,8 +4306,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
4313
4306
  } | undefined;
4314
4307
  }[];
4315
4308
  sources: ({
4316
- key: string;
4317
4309
  version: "1";
4310
+ key: string;
4318
4311
  channel: "HTTP" | "SMTP" | "SQS";
4319
4312
  events: string[];
4320
4313
  integration: {
@@ -4332,9 +4325,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
4332
4325
  id: string;
4333
4326
  } | undefined;
4334
4327
  } | {
4335
- key: string;
4336
4328
  version: "2";
4337
4329
  options: Record<string, string[]>;
4330
+ key: string;
4338
4331
  channel: "HTTP" | "SMTP" | "SQS";
4339
4332
  integration: {
4340
4333
  id: string;
@@ -4740,18 +4733,18 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4740
4733
  }>;
4741
4734
  updatedAt: z.ZodDate;
4742
4735
  }, "strip", z.ZodTypeAny, {
4736
+ status: "FAILURE";
4743
4737
  error: {
4744
4738
  message: string;
4745
4739
  raw?: any;
4746
4740
  };
4747
- status: "FAILURE";
4748
4741
  updatedAt: Date;
4749
4742
  }, {
4743
+ status: "FAILURE";
4750
4744
  error: {
4751
4745
  message: string;
4752
4746
  raw?: any;
4753
4747
  };
4754
- status: "FAILURE";
4755
4748
  updatedAt: Date;
4756
4749
  }>]>;
4757
4750
  type GetEndpointIndexResponse = z.infer<typeof GetEndpointIndexResponseSchema>;
@@ -5643,12 +5636,12 @@ declare const RunJobErrorSchema: z.ZodObject<{
5643
5636
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
5644
5637
  }>>;
5645
5638
  }, "strip", z.ZodTypeAny, {
5639
+ status: "ERROR";
5646
5640
  error: {
5647
5641
  message: string;
5648
5642
  name?: string | undefined;
5649
5643
  stack?: string | undefined;
5650
5644
  };
5651
- status: "ERROR";
5652
5645
  task?: {
5653
5646
  name: string;
5654
5647
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5685,12 +5678,12 @@ declare const RunJobErrorSchema: z.ZodObject<{
5685
5678
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
5686
5679
  } | undefined;
5687
5680
  }, {
5681
+ status: "ERROR";
5688
5682
  error: {
5689
5683
  message: string;
5690
5684
  name?: string | undefined;
5691
5685
  stack?: string | undefined;
5692
5686
  };
5693
- status: "ERROR";
5694
5687
  task?: {
5695
5688
  name: string;
5696
5689
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -5732,11 +5725,11 @@ declare const RunJobYieldExecutionErrorSchema: z.ZodObject<{
5732
5725
  status: z.ZodLiteral<"YIELD_EXECUTION">;
5733
5726
  key: z.ZodString;
5734
5727
  }, "strip", z.ZodTypeAny, {
5735
- key: string;
5736
5728
  status: "YIELD_EXECUTION";
5737
- }, {
5738
5729
  key: string;
5730
+ }, {
5739
5731
  status: "YIELD_EXECUTION";
5732
+ key: string;
5740
5733
  }>;
5741
5734
  type RunJobYieldExecutionError = z.infer<typeof RunJobYieldExecutionErrorSchema>;
5742
5735
  declare const AutoYieldMetadataSchema: z.ZodObject<{
@@ -6251,12 +6244,12 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
6251
6244
  }>;
6252
6245
  retryAt: z.ZodDate;
6253
6246
  }, "strip", z.ZodTypeAny, {
6247
+ status: "RETRY_WITH_TASK";
6254
6248
  error: {
6255
6249
  message: string;
6256
6250
  name?: string | undefined;
6257
6251
  stack?: string | undefined;
6258
6252
  };
6259
- status: "RETRY_WITH_TASK";
6260
6253
  task: {
6261
6254
  name: string;
6262
6255
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6294,12 +6287,12 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
6294
6287
  };
6295
6288
  retryAt: Date;
6296
6289
  }, {
6290
+ status: "RETRY_WITH_TASK";
6297
6291
  error: {
6298
6292
  message: string;
6299
6293
  name?: string | undefined;
6300
6294
  stack?: string | undefined;
6301
6295
  };
6302
- status: "RETRY_WITH_TASK";
6303
6296
  task: {
6304
6297
  name: string;
6305
6298
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6646,11 +6639,11 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6646
6639
  status: z.ZodLiteral<"YIELD_EXECUTION">;
6647
6640
  key: z.ZodString;
6648
6641
  }, "strip", z.ZodTypeAny, {
6649
- key: string;
6650
6642
  status: "YIELD_EXECUTION";
6651
- }, {
6652
6643
  key: string;
6644
+ }, {
6653
6645
  status: "YIELD_EXECUTION";
6646
+ key: string;
6654
6647
  }>, z.ZodObject<{
6655
6648
  status: z.ZodLiteral<"ERROR">;
6656
6649
  error: z.ZodObject<{
@@ -6796,12 +6789,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6796
6789
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
6797
6790
  }>>;
6798
6791
  }, "strip", z.ZodTypeAny, {
6792
+ status: "ERROR";
6799
6793
  error: {
6800
6794
  message: string;
6801
6795
  name?: string | undefined;
6802
6796
  stack?: string | undefined;
6803
6797
  };
6804
- status: "ERROR";
6805
6798
  task?: {
6806
6799
  name: string;
6807
6800
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6838,12 +6831,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6838
6831
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
6839
6832
  } | undefined;
6840
6833
  }, {
6834
+ status: "ERROR";
6841
6835
  error: {
6842
6836
  message: string;
6843
6837
  name?: string | undefined;
6844
6838
  stack?: string | undefined;
6845
6839
  };
6846
- status: "ERROR";
6847
6840
  task?: {
6848
6841
  name: string;
6849
6842
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7278,12 +7271,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
7278
7271
  }>;
7279
7272
  retryAt: z.ZodDate;
7280
7273
  }, "strip", z.ZodTypeAny, {
7274
+ status: "RETRY_WITH_TASK";
7281
7275
  error: {
7282
7276
  message: string;
7283
7277
  name?: string | undefined;
7284
7278
  stack?: string | undefined;
7285
7279
  };
7286
- status: "RETRY_WITH_TASK";
7287
7280
  task: {
7288
7281
  name: string;
7289
7282
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7321,12 +7314,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
7321
7314
  };
7322
7315
  retryAt: Date;
7323
7316
  }, {
7317
+ status: "RETRY_WITH_TASK";
7324
7318
  error: {
7325
7319
  message: string;
7326
7320
  name?: string | undefined;
7327
7321
  stack?: string | undefined;
7328
7322
  };
7329
- status: "RETRY_WITH_TASK";
7330
7323
  task: {
7331
7324
  name: string;
7332
7325
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7791,11 +7784,11 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7791
7784
  status: z.ZodLiteral<"YIELD_EXECUTION">;
7792
7785
  key: z.ZodString;
7793
7786
  }, "strip", z.ZodTypeAny, {
7794
- key: string;
7795
7787
  status: "YIELD_EXECUTION";
7796
- }, {
7797
7788
  key: string;
7789
+ }, {
7798
7790
  status: "YIELD_EXECUTION";
7791
+ key: string;
7799
7792
  }>, z.ZodObject<{
7800
7793
  status: z.ZodLiteral<"ERROR">;
7801
7794
  error: z.ZodObject<{
@@ -7941,12 +7934,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7941
7934
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
7942
7935
  }>>;
7943
7936
  }, "strip", z.ZodTypeAny, {
7937
+ status: "ERROR";
7944
7938
  error: {
7945
7939
  message: string;
7946
7940
  name?: string | undefined;
7947
7941
  stack?: string | undefined;
7948
7942
  };
7949
- status: "ERROR";
7950
7943
  task?: {
7951
7944
  name: string;
7952
7945
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7983,12 +7976,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7983
7976
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
7984
7977
  } | undefined;
7985
7978
  }, {
7979
+ status: "ERROR";
7986
7980
  error: {
7987
7981
  message: string;
7988
7982
  name?: string | undefined;
7989
7983
  stack?: string | undefined;
7990
7984
  };
7991
- status: "ERROR";
7992
7985
  task?: {
7993
7986
  name: string;
7994
7987
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8423,12 +8416,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8423
8416
  }>;
8424
8417
  retryAt: z.ZodDate;
8425
8418
  }, "strip", z.ZodTypeAny, {
8419
+ status: "RETRY_WITH_TASK";
8426
8420
  error: {
8427
8421
  message: string;
8428
8422
  name?: string | undefined;
8429
8423
  stack?: string | undefined;
8430
8424
  };
8431
- status: "RETRY_WITH_TASK";
8432
8425
  task: {
8433
8426
  name: string;
8434
8427
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8466,12 +8459,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8466
8459
  };
8467
8460
  retryAt: Date;
8468
8461
  }, {
8462
+ status: "RETRY_WITH_TASK";
8469
8463
  error: {
8470
8464
  message: string;
8471
8465
  name?: string | undefined;
8472
8466
  stack?: string | undefined;
8473
8467
  };
8474
- status: "RETRY_WITH_TASK";
8475
8468
  task: {
8476
8469
  name: string;
8477
8470
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8752,12 +8745,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8752
8745
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8753
8746
  };
8754
8747
  childErrors: ({
8748
+ status: "ERROR";
8755
8749
  error: {
8756
8750
  message: string;
8757
8751
  name?: string | undefined;
8758
8752
  stack?: string | undefined;
8759
8753
  };
8760
- status: "ERROR";
8761
8754
  task?: {
8762
8755
  name: string;
8763
8756
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8794,8 +8787,8 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8794
8787
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8795
8788
  } | undefined;
8796
8789
  } | {
8797
- key: string;
8798
8790
  status: "YIELD_EXECUTION";
8791
+ key: string;
8799
8792
  } | {
8800
8793
  status: "AUTO_YIELD_EXECUTION";
8801
8794
  location: string;
@@ -8868,12 +8861,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8868
8861
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8869
8862
  };
8870
8863
  } | {
8864
+ status: "RETRY_WITH_TASK";
8871
8865
  error: {
8872
8866
  message: string;
8873
8867
  name?: string | undefined;
8874
8868
  stack?: string | undefined;
8875
8869
  };
8876
- status: "RETRY_WITH_TASK";
8877
8870
  task: {
8878
8871
  name: string;
8879
8872
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8986,12 +8979,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8986
8979
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8987
8980
  };
8988
8981
  childErrors: ({
8982
+ status: "ERROR";
8989
8983
  error: {
8990
8984
  message: string;
8991
8985
  name?: string | undefined;
8992
8986
  stack?: string | undefined;
8993
8987
  };
8994
- status: "ERROR";
8995
8988
  task?: {
8996
8989
  name: string;
8997
8990
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9028,8 +9021,8 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9028
9021
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9029
9022
  } | undefined;
9030
9023
  } | {
9031
- key: string;
9032
9024
  status: "YIELD_EXECUTION";
9025
+ key: string;
9033
9026
  } | {
9034
9027
  status: "AUTO_YIELD_EXECUTION";
9035
9028
  location: string;
@@ -9102,12 +9095,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9102
9095
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9103
9096
  };
9104
9097
  } | {
9098
+ status: "RETRY_WITH_TASK";
9105
9099
  error: {
9106
9100
  message: string;
9107
9101
  name?: string | undefined;
9108
9102
  stack?: string | undefined;
9109
9103
  };
9110
- status: "RETRY_WITH_TASK";
9111
9104
  task: {
9112
9105
  name: string;
9113
9106
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9274,11 +9267,11 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9274
9267
  status: z.ZodLiteral<"YIELD_EXECUTION">;
9275
9268
  key: z.ZodString;
9276
9269
  }, "strip", z.ZodTypeAny, {
9277
- key: string;
9278
9270
  status: "YIELD_EXECUTION";
9279
- }, {
9280
9271
  key: string;
9272
+ }, {
9281
9273
  status: "YIELD_EXECUTION";
9274
+ key: string;
9282
9275
  }>, z.ZodObject<{
9283
9276
  status: z.ZodLiteral<"ERROR">;
9284
9277
  error: z.ZodObject<{
@@ -9424,12 +9417,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9424
9417
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9425
9418
  }>>;
9426
9419
  }, "strip", z.ZodTypeAny, {
9420
+ status: "ERROR";
9427
9421
  error: {
9428
9422
  message: string;
9429
9423
  name?: string | undefined;
9430
9424
  stack?: string | undefined;
9431
9425
  };
9432
- status: "ERROR";
9433
9426
  task?: {
9434
9427
  name: string;
9435
9428
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9466,12 +9459,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9466
9459
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9467
9460
  } | undefined;
9468
9461
  }, {
9462
+ status: "ERROR";
9469
9463
  error: {
9470
9464
  message: string;
9471
9465
  name?: string | undefined;
9472
9466
  stack?: string | undefined;
9473
9467
  };
9474
- status: "ERROR";
9475
9468
  task?: {
9476
9469
  name: string;
9477
9470
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9981,11 +9974,11 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9981
9974
  status: z.ZodLiteral<"YIELD_EXECUTION">;
9982
9975
  key: z.ZodString;
9983
9976
  }, "strip", z.ZodTypeAny, {
9984
- key: string;
9985
9977
  status: "YIELD_EXECUTION";
9986
- }, {
9987
9978
  key: string;
9979
+ }, {
9988
9980
  status: "YIELD_EXECUTION";
9981
+ key: string;
9989
9982
  }>, z.ZodObject<{
9990
9983
  status: z.ZodLiteral<"ERROR">;
9991
9984
  error: z.ZodObject<{
@@ -10131,12 +10124,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10131
10124
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10132
10125
  }>>;
10133
10126
  }, "strip", z.ZodTypeAny, {
10127
+ status: "ERROR";
10134
10128
  error: {
10135
10129
  message: string;
10136
10130
  name?: string | undefined;
10137
10131
  stack?: string | undefined;
10138
10132
  };
10139
- status: "ERROR";
10140
10133
  task?: {
10141
10134
  name: string;
10142
10135
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10173,12 +10166,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10173
10166
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10174
10167
  } | undefined;
10175
10168
  }, {
10169
+ status: "ERROR";
10176
10170
  error: {
10177
10171
  message: string;
10178
10172
  name?: string | undefined;
10179
10173
  stack?: string | undefined;
10180
10174
  };
10181
- status: "ERROR";
10182
10175
  task?: {
10183
10176
  name: string;
10184
10177
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10613,12 +10606,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10613
10606
  }>;
10614
10607
  retryAt: z.ZodDate;
10615
10608
  }, "strip", z.ZodTypeAny, {
10609
+ status: "RETRY_WITH_TASK";
10616
10610
  error: {
10617
10611
  message: string;
10618
10612
  name?: string | undefined;
10619
10613
  stack?: string | undefined;
10620
10614
  };
10621
- status: "RETRY_WITH_TASK";
10622
10615
  task: {
10623
10616
  name: string;
10624
10617
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10656,12 +10649,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10656
10649
  };
10657
10650
  retryAt: Date;
10658
10651
  }, {
10652
+ status: "RETRY_WITH_TASK";
10659
10653
  error: {
10660
10654
  message: string;
10661
10655
  name?: string | undefined;
10662
10656
  stack?: string | undefined;
10663
10657
  };
10664
- status: "RETRY_WITH_TASK";
10665
10658
  task: {
10666
10659
  name: string;
10667
10660
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10942,12 +10935,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10942
10935
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10943
10936
  };
10944
10937
  childErrors: ({
10938
+ status: "ERROR";
10945
10939
  error: {
10946
10940
  message: string;
10947
10941
  name?: string | undefined;
10948
10942
  stack?: string | undefined;
10949
10943
  };
10950
- status: "ERROR";
10951
10944
  task?: {
10952
10945
  name: string;
10953
10946
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10984,8 +10977,8 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10984
10977
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10985
10978
  } | undefined;
10986
10979
  } | {
10987
- key: string;
10988
10980
  status: "YIELD_EXECUTION";
10981
+ key: string;
10989
10982
  } | {
10990
10983
  status: "AUTO_YIELD_EXECUTION";
10991
10984
  location: string;
@@ -11058,12 +11051,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11058
11051
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11059
11052
  };
11060
11053
  } | {
11054
+ status: "RETRY_WITH_TASK";
11061
11055
  error: {
11062
11056
  message: string;
11063
11057
  name?: string | undefined;
11064
11058
  stack?: string | undefined;
11065
11059
  };
11066
- status: "RETRY_WITH_TASK";
11067
11060
  task: {
11068
11061
  name: string;
11069
11062
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11176,12 +11169,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11176
11169
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11177
11170
  };
11178
11171
  childErrors: ({
11172
+ status: "ERROR";
11179
11173
  error: {
11180
11174
  message: string;
11181
11175
  name?: string | undefined;
11182
11176
  stack?: string | undefined;
11183
11177
  };
11184
- status: "ERROR";
11185
11178
  task?: {
11186
11179
  name: string;
11187
11180
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11218,8 +11211,8 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11218
11211
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11219
11212
  } | undefined;
11220
11213
  } | {
11221
- key: string;
11222
11214
  status: "YIELD_EXECUTION";
11215
+ key: string;
11223
11216
  } | {
11224
11217
  status: "AUTO_YIELD_EXECUTION";
11225
11218
  location: string;
@@ -11292,12 +11285,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11292
11285
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11293
11286
  };
11294
11287
  } | {
11288
+ status: "RETRY_WITH_TASK";
11295
11289
  error: {
11296
11290
  message: string;
11297
11291
  name?: string | undefined;
11298
11292
  stack?: string | undefined;
11299
11293
  };
11300
- status: "RETRY_WITH_TASK";
11301
11294
  task: {
11302
11295
  name: string;
11303
11296
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11518,12 +11511,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11518
11511
  }>;
11519
11512
  retryAt: z.ZodDate;
11520
11513
  }, "strip", z.ZodTypeAny, {
11514
+ status: "RETRY_WITH_TASK";
11521
11515
  error: {
11522
11516
  message: string;
11523
11517
  name?: string | undefined;
11524
11518
  stack?: string | undefined;
11525
11519
  };
11526
- status: "RETRY_WITH_TASK";
11527
11520
  task: {
11528
11521
  name: string;
11529
11522
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11561,12 +11554,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11561
11554
  };
11562
11555
  retryAt: Date;
11563
11556
  }, {
11557
+ status: "RETRY_WITH_TASK";
11564
11558
  error: {
11565
11559
  message: string;
11566
11560
  name?: string | undefined;
11567
11561
  stack?: string | undefined;
11568
11562
  };
11569
- status: "RETRY_WITH_TASK";
11570
11563
  task: {
11571
11564
  name: string;
11572
11565
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -12610,10 +12603,10 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
12610
12603
  type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
12611
12604
  declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12612
12605
  task: z.ZodObject<{
12613
- error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12614
12606
  name: z.ZodString;
12615
12607
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
12616
12608
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
12609
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12617
12610
  context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
12618
12611
  id: z.ZodString;
12619
12612
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -12679,8 +12672,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12679
12672
  noop: boolean;
12680
12673
  idempotencyKey: string;
12681
12674
  attempts: number;
12682
- error?: string | null | undefined;
12683
12675
  params?: DeserializedJson | undefined;
12676
+ error?: string | null | undefined;
12684
12677
  context?: DeserializedJson | undefined;
12685
12678
  style?: {
12686
12679
  style: "normal" | "minimal";
@@ -12716,8 +12709,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12716
12709
  noop: boolean;
12717
12710
  idempotencyKey: string;
12718
12711
  attempts: number;
12719
- error?: string | null | undefined;
12720
12712
  params?: DeserializedJson | undefined;
12713
+ error?: string | null | undefined;
12721
12714
  context?: DeserializedJson | undefined;
12722
12715
  style?: {
12723
12716
  style: "normal" | "minimal";
@@ -12800,8 +12793,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12800
12793
  noop: boolean;
12801
12794
  idempotencyKey: string;
12802
12795
  attempts: number;
12803
- error?: string | null | undefined;
12804
12796
  params?: DeserializedJson | undefined;
12797
+ error?: string | null | undefined;
12805
12798
  context?: DeserializedJson | undefined;
12806
12799
  style?: {
12807
12800
  style: "normal" | "minimal";
@@ -12850,8 +12843,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12850
12843
  noop: boolean;
12851
12844
  idempotencyKey: string;
12852
12845
  attempts: number;
12853
- error?: string | null | undefined;
12854
12846
  params?: DeserializedJson | undefined;
12847
+ error?: string | null | undefined;
12855
12848
  context?: DeserializedJson | undefined;
12856
12849
  style?: {
12857
12850
  style: "normal" | "minimal";
@@ -13240,8 +13233,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13240
13233
  id: string;
13241
13234
  }>>;
13242
13235
  }, "strip", z.ZodTypeAny, {
13243
- key: string;
13244
13236
  version: "1";
13237
+ key: string;
13245
13238
  channel: "HTTP" | "SMTP" | "SQS";
13246
13239
  events: string[];
13247
13240
  integration: {
@@ -13259,8 +13252,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13259
13252
  id: string;
13260
13253
  } | undefined;
13261
13254
  }, {
13262
- key: string;
13263
13255
  version: "1";
13256
+ key: string;
13264
13257
  channel: "HTTP" | "SMTP" | "SQS";
13265
13258
  events: string[];
13266
13259
  integration: {
@@ -13280,8 +13273,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13280
13273
  }>;
13281
13274
  }, "strip", z.ZodTypeAny, {
13282
13275
  source: {
13283
- key: string;
13284
13276
  version: "1";
13277
+ key: string;
13285
13278
  channel: "HTTP" | "SMTP" | "SQS";
13286
13279
  events: string[];
13287
13280
  integration: {
@@ -13307,8 +13300,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13307
13300
  };
13308
13301
  }, {
13309
13302
  source: {
13310
- key: string;
13311
13303
  version: "1";
13304
+ key: string;
13312
13305
  channel: "HTTP" | "SMTP" | "SQS";
13313
13306
  events: string[];
13314
13307
  integration: {
@@ -13401,9 +13394,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13401
13394
  id: string;
13402
13395
  }>>;
13403
13396
  }, "strip", z.ZodTypeAny, {
13404
- key: string;
13405
13397
  version: "2";
13406
13398
  options: Record<string, string[]>;
13399
+ key: string;
13407
13400
  channel: "HTTP" | "SMTP" | "SQS";
13408
13401
  integration: {
13409
13402
  id: string;
@@ -13420,9 +13413,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13420
13413
  id: string;
13421
13414
  } | undefined;
13422
13415
  }, {
13423
- key: string;
13424
13416
  version: "2";
13425
13417
  options: Record<string, string[]>;
13418
+ key: string;
13426
13419
  channel: "HTTP" | "SMTP" | "SQS";
13427
13420
  integration: {
13428
13421
  id: string;
@@ -13442,9 +13435,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13442
13435
  accountId: z.ZodOptional<z.ZodString>;
13443
13436
  }, "strip", z.ZodTypeAny, {
13444
13437
  source: {
13445
- key: string;
13446
13438
  version: "2";
13447
13439
  options: Record<string, string[]>;
13440
+ key: string;
13448
13441
  channel: "HTTP" | "SMTP" | "SQS";
13449
13442
  integration: {
13450
13443
  id: string;
@@ -13470,9 +13463,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13470
13463
  accountId?: string | undefined;
13471
13464
  }, {
13472
13465
  source: {
13473
- key: string;
13474
13466
  version: "2";
13475
13467
  options: Record<string, string[]>;
13468
+ key: string;
13476
13469
  channel: "HTTP" | "SMTP" | "SQS";
13477
13470
  integration: {
13478
13471
  id: string;
@@ -13778,8 +13771,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13778
13771
  data?: Record<string, SerializableJson> | undefined;
13779
13772
  }>, "many">;
13780
13773
  }, "strip", z.ZodTypeAny, {
13781
- key: string;
13782
13774
  label: string;
13775
+ key: string;
13783
13776
  history: {
13784
13777
  label?: string | undefined;
13785
13778
  state?: "loading" | "success" | "failure" | undefined;
@@ -13788,8 +13781,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13788
13781
  data?: Record<string, SerializableJson> | undefined;
13789
13782
  state?: "loading" | "success" | "failure" | undefined;
13790
13783
  }, {
13791
- key: string;
13792
13784
  label: string;
13785
+ key: string;
13793
13786
  history: {
13794
13787
  label?: string | undefined;
13795
13788
  state?: "loading" | "success" | "failure" | undefined;
@@ -13800,8 +13793,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13800
13793
  }>, "many">;
13801
13794
  }, "strip", z.ZodTypeAny, {
13802
13795
  statuses: {
13803
- key: string;
13804
13796
  label: string;
13797
+ key: string;
13805
13798
  history: {
13806
13799
  label?: string | undefined;
13807
13800
  state?: "loading" | "success" | "failure" | undefined;
@@ -13817,8 +13810,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13817
13810
  };
13818
13811
  }, {
13819
13812
  statuses: {
13820
- key: string;
13821
13813
  label: string;
13814
+ key: string;
13822
13815
  history: {
13823
13816
  label?: string | undefined;
13824
13817
  state?: "loading" | "success" | "failure" | undefined;
@@ -16371,8 +16364,8 @@ declare const JobRunStatusRecordSchema: z.ZodObject<{
16371
16364
  data?: Record<string, SerializableJson> | undefined;
16372
16365
  }>, "many">;
16373
16366
  }, "strip", z.ZodTypeAny, {
16374
- key: string;
16375
16367
  label: string;
16368
+ key: string;
16376
16369
  history: {
16377
16370
  label?: string | undefined;
16378
16371
  state?: "loading" | "success" | "failure" | undefined;
@@ -16381,8 +16374,8 @@ declare const JobRunStatusRecordSchema: z.ZodObject<{
16381
16374
  data?: Record<string, SerializableJson> | undefined;
16382
16375
  state?: "loading" | "success" | "failure" | undefined;
16383
16376
  }, {
16384
- key: string;
16385
16377
  label: string;
16378
+ key: string;
16386
16379
  history: {
16387
16380
  label?: string | undefined;
16388
16381
  state?: "loading" | "success" | "failure" | undefined;
@@ -16493,8 +16486,8 @@ declare const GetRunSchema: z.ZodObject<{
16493
16486
  data?: Record<string, SerializableJson> | undefined;
16494
16487
  }>, "many">;
16495
16488
  }, "strip", z.ZodTypeAny, {
16496
- key: string;
16497
16489
  label: string;
16490
+ key: string;
16498
16491
  history: {
16499
16492
  label?: string | undefined;
16500
16493
  state?: "loading" | "success" | "failure" | undefined;
@@ -16503,8 +16496,8 @@ declare const GetRunSchema: z.ZodObject<{
16503
16496
  data?: Record<string, SerializableJson> | undefined;
16504
16497
  state?: "loading" | "success" | "failure" | undefined;
16505
16498
  }, {
16506
- key: string;
16507
16499
  label: string;
16500
+ key: string;
16508
16501
  history: {
16509
16502
  label?: string | undefined;
16510
16503
  state?: "loading" | "success" | "failure" | undefined;
@@ -16522,8 +16515,8 @@ declare const GetRunSchema: z.ZodObject<{
16522
16515
  updatedAt: Date | null;
16523
16516
  tasks: RunTaskWithSubtasks[];
16524
16517
  statuses: {
16525
- key: string;
16526
16518
  label: string;
16519
+ key: string;
16527
16520
  history: {
16528
16521
  label?: string | undefined;
16529
16522
  state?: "loading" | "success" | "failure" | undefined;
@@ -16543,8 +16536,8 @@ declare const GetRunSchema: z.ZodObject<{
16543
16536
  tasks: RunTaskWithSubtasks[];
16544
16537
  output?: any;
16545
16538
  statuses?: {
16546
- key: string;
16547
16539
  label: string;
16540
+ key: string;
16548
16541
  history: {
16549
16542
  label?: string | undefined;
16550
16543
  state?: "loading" | "success" | "failure" | undefined;
@@ -16735,6 +16728,18 @@ declare const RequestWithRawBodySchema: z.ZodObject<{
16735
16728
  rawBody: string;
16736
16729
  }>;
16737
16730
 
16731
+ declare const CancelRunsForJobSchema: z.ZodObject<{
16732
+ cancelledRunIds: z.ZodArray<z.ZodString, "many">;
16733
+ failedToCancelRunIds: z.ZodArray<z.ZodString, "many">;
16734
+ }, "strip", z.ZodTypeAny, {
16735
+ cancelledRunIds: string[];
16736
+ failedToCancelRunIds: string[];
16737
+ }, {
16738
+ cancelledRunIds: string[];
16739
+ failedToCancelRunIds: string[];
16740
+ }>;
16741
+ type CancelRunsForJob = z.infer<typeof CancelRunsForJobSchema>;
16742
+
16738
16743
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
16739
16744
  declare function assertExhaustive(x: never): never;
16740
16745
 
@@ -16780,4 +16785,4 @@ declare const PLATFORM_FEATURES: {
16780
16785
  };
16781
16786
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
16782
16787
 
16783
- 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 LogLevel, type LogMessage, LogMessageSchema, Logger, 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 };
16788
+ export { API_VERSIONS, type ApiEventLog, ApiEventLogSchema, type AsyncMap, type AutoYieldConfig, AutoYieldConfigSchema, type AutoYieldMetadata, AutoYieldMetadataSchema, type CachedTask, CachedTaskSchema, type CancelRunsForEvent, CancelRunsForEventSchema, type CancelRunsForJob, CancelRunsForJobSchema, 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 };