@trigger.dev/core 0.0.0-svelte-test-20231206141434 → 0.0.0-v2-prerelease-20240524135558

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<{
@@ -5846,6 +5839,17 @@ declare const RunJobAutoYieldWithCompletedTaskExecutionErrorSchema: z.ZodObject<
5846
5839
  output?: string | undefined;
5847
5840
  }>;
5848
5841
  type RunJobAutoYieldWithCompletedTaskExecutionError = z.infer<typeof RunJobAutoYieldWithCompletedTaskExecutionErrorSchema>;
5842
+ declare const RunJobAutoYieldRateLimitErrorSchema: z.ZodObject<{
5843
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
5844
+ reset: z.ZodNumber;
5845
+ }, "strip", z.ZodTypeAny, {
5846
+ status: "AUTO_YIELD_RATE_LIMIT";
5847
+ reset: number;
5848
+ }, {
5849
+ status: "AUTO_YIELD_RATE_LIMIT";
5850
+ reset: number;
5851
+ }>;
5852
+ type RunJobAutoYieldRateLimitError = z.infer<typeof RunJobAutoYieldRateLimitErrorSchema>;
5849
5853
  declare const RunJobInvalidPayloadErrorSchema: z.ZodObject<{
5850
5854
  status: z.ZodLiteral<"INVALID_PAYLOAD">;
5851
5855
  errors: z.ZodArray<z.ZodObject<{
@@ -6251,12 +6255,12 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
6251
6255
  }>;
6252
6256
  retryAt: z.ZodDate;
6253
6257
  }, "strip", z.ZodTypeAny, {
6258
+ status: "RETRY_WITH_TASK";
6254
6259
  error: {
6255
6260
  message: string;
6256
6261
  name?: string | undefined;
6257
6262
  stack?: string | undefined;
6258
6263
  };
6259
- status: "RETRY_WITH_TASK";
6260
6264
  task: {
6261
6265
  name: string;
6262
6266
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6294,12 +6298,12 @@ declare const RunJobRetryWithTaskSchema: z.ZodObject<{
6294
6298
  };
6295
6299
  retryAt: Date;
6296
6300
  }, {
6301
+ status: "RETRY_WITH_TASK";
6297
6302
  error: {
6298
6303
  message: string;
6299
6304
  name?: string | undefined;
6300
6305
  stack?: string | undefined;
6301
6306
  };
6302
- status: "RETRY_WITH_TASK";
6303
6307
  task: {
6304
6308
  name: string;
6305
6309
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6646,11 +6650,20 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6646
6650
  status: z.ZodLiteral<"YIELD_EXECUTION">;
6647
6651
  key: z.ZodString;
6648
6652
  }, "strip", z.ZodTypeAny, {
6649
- key: string;
6650
6653
  status: "YIELD_EXECUTION";
6651
- }, {
6652
6654
  key: string;
6655
+ }, {
6653
6656
  status: "YIELD_EXECUTION";
6657
+ key: string;
6658
+ }>, z.ZodObject<{
6659
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
6660
+ reset: z.ZodNumber;
6661
+ }, "strip", z.ZodTypeAny, {
6662
+ status: "AUTO_YIELD_RATE_LIMIT";
6663
+ reset: number;
6664
+ }, {
6665
+ status: "AUTO_YIELD_RATE_LIMIT";
6666
+ reset: number;
6654
6667
  }>, z.ZodObject<{
6655
6668
  status: z.ZodLiteral<"ERROR">;
6656
6669
  error: z.ZodObject<{
@@ -6796,12 +6809,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6796
6809
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
6797
6810
  }>>;
6798
6811
  }, "strip", z.ZodTypeAny, {
6812
+ status: "ERROR";
6799
6813
  error: {
6800
6814
  message: string;
6801
6815
  name?: string | undefined;
6802
6816
  stack?: string | undefined;
6803
6817
  };
6804
- status: "ERROR";
6805
6818
  task?: {
6806
6819
  name: string;
6807
6820
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -6838,12 +6851,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
6838
6851
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
6839
6852
  } | undefined;
6840
6853
  }, {
6854
+ status: "ERROR";
6841
6855
  error: {
6842
6856
  message: string;
6843
6857
  name?: string | undefined;
6844
6858
  stack?: string | undefined;
6845
6859
  };
6846
- status: "ERROR";
6847
6860
  task?: {
6848
6861
  name: string;
6849
6862
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7278,12 +7291,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
7278
7291
  }>;
7279
7292
  retryAt: z.ZodDate;
7280
7293
  }, "strip", z.ZodTypeAny, {
7294
+ status: "RETRY_WITH_TASK";
7281
7295
  error: {
7282
7296
  message: string;
7283
7297
  name?: string | undefined;
7284
7298
  stack?: string | undefined;
7285
7299
  };
7286
- status: "RETRY_WITH_TASK";
7287
7300
  task: {
7288
7301
  name: string;
7289
7302
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7321,12 +7334,12 @@ declare const RunJobErrorResponseSchema: z.ZodUnion<[z.ZodObject<{
7321
7334
  };
7322
7335
  retryAt: Date;
7323
7336
  }, {
7337
+ status: "RETRY_WITH_TASK";
7324
7338
  error: {
7325
7339
  message: string;
7326
7340
  name?: string | undefined;
7327
7341
  stack?: string | undefined;
7328
7342
  };
7329
- status: "RETRY_WITH_TASK";
7330
7343
  task: {
7331
7344
  name: string;
7332
7345
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7791,11 +7804,20 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7791
7804
  status: z.ZodLiteral<"YIELD_EXECUTION">;
7792
7805
  key: z.ZodString;
7793
7806
  }, "strip", z.ZodTypeAny, {
7794
- key: string;
7795
7807
  status: "YIELD_EXECUTION";
7796
- }, {
7797
7808
  key: string;
7809
+ }, {
7798
7810
  status: "YIELD_EXECUTION";
7811
+ key: string;
7812
+ }>, z.ZodObject<{
7813
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
7814
+ reset: z.ZodNumber;
7815
+ }, "strip", z.ZodTypeAny, {
7816
+ status: "AUTO_YIELD_RATE_LIMIT";
7817
+ reset: number;
7818
+ }, {
7819
+ status: "AUTO_YIELD_RATE_LIMIT";
7820
+ reset: number;
7799
7821
  }>, z.ZodObject<{
7800
7822
  status: z.ZodLiteral<"ERROR">;
7801
7823
  error: z.ZodObject<{
@@ -7941,12 +7963,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7941
7963
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
7942
7964
  }>>;
7943
7965
  }, "strip", z.ZodTypeAny, {
7966
+ status: "ERROR";
7944
7967
  error: {
7945
7968
  message: string;
7946
7969
  name?: string | undefined;
7947
7970
  stack?: string | undefined;
7948
7971
  };
7949
- status: "ERROR";
7950
7972
  task?: {
7951
7973
  name: string;
7952
7974
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -7983,12 +8005,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
7983
8005
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
7984
8006
  } | undefined;
7985
8007
  }, {
8008
+ status: "ERROR";
7986
8009
  error: {
7987
8010
  message: string;
7988
8011
  name?: string | undefined;
7989
8012
  stack?: string | undefined;
7990
8013
  };
7991
- status: "ERROR";
7992
8014
  task?: {
7993
8015
  name: string;
7994
8016
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8423,12 +8445,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8423
8445
  }>;
8424
8446
  retryAt: z.ZodDate;
8425
8447
  }, "strip", z.ZodTypeAny, {
8448
+ status: "RETRY_WITH_TASK";
8426
8449
  error: {
8427
8450
  message: string;
8428
8451
  name?: string | undefined;
8429
8452
  stack?: string | undefined;
8430
8453
  };
8431
- status: "RETRY_WITH_TASK";
8432
8454
  task: {
8433
8455
  name: string;
8434
8456
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8466,12 +8488,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8466
8488
  };
8467
8489
  retryAt: Date;
8468
8490
  }, {
8491
+ status: "RETRY_WITH_TASK";
8469
8492
  error: {
8470
8493
  message: string;
8471
8494
  name?: string | undefined;
8472
8495
  stack?: string | undefined;
8473
8496
  };
8474
- status: "RETRY_WITH_TASK";
8475
8497
  task: {
8476
8498
  name: string;
8477
8499
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8752,12 +8774,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8752
8774
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8753
8775
  };
8754
8776
  childErrors: ({
8777
+ status: "ERROR";
8755
8778
  error: {
8756
8779
  message: string;
8757
8780
  name?: string | undefined;
8758
8781
  stack?: string | undefined;
8759
8782
  };
8760
- status: "ERROR";
8761
8783
  task?: {
8762
8784
  name: string;
8763
8785
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8794,8 +8816,8 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8794
8816
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8795
8817
  } | undefined;
8796
8818
  } | {
8797
- key: string;
8798
8819
  status: "YIELD_EXECUTION";
8820
+ key: string;
8799
8821
  } | {
8800
8822
  status: "AUTO_YIELD_EXECUTION";
8801
8823
  location: string;
@@ -8818,6 +8840,9 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8818
8840
  imageUrl?: string[] | undefined;
8819
8841
  }[] | undefined;
8820
8842
  output?: string | undefined;
8843
+ } | {
8844
+ status: "AUTO_YIELD_RATE_LIMIT";
8845
+ reset: number;
8821
8846
  } | {
8822
8847
  status: "INVALID_PAYLOAD";
8823
8848
  errors: {
@@ -8868,12 +8893,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8868
8893
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8869
8894
  };
8870
8895
  } | {
8896
+ status: "RETRY_WITH_TASK";
8871
8897
  error: {
8872
8898
  message: string;
8873
8899
  name?: string | undefined;
8874
8900
  stack?: string | undefined;
8875
8901
  };
8876
- status: "RETRY_WITH_TASK";
8877
8902
  task: {
8878
8903
  name: string;
8879
8904
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -8986,12 +9011,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
8986
9011
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
8987
9012
  };
8988
9013
  childErrors: ({
9014
+ status: "ERROR";
8989
9015
  error: {
8990
9016
  message: string;
8991
9017
  name?: string | undefined;
8992
9018
  stack?: string | undefined;
8993
9019
  };
8994
- status: "ERROR";
8995
9020
  task?: {
8996
9021
  name: string;
8997
9022
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9028,8 +9053,8 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9028
9053
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9029
9054
  } | undefined;
9030
9055
  } | {
9031
- key: string;
9032
9056
  status: "YIELD_EXECUTION";
9057
+ key: string;
9033
9058
  } | {
9034
9059
  status: "AUTO_YIELD_EXECUTION";
9035
9060
  location: string;
@@ -9052,6 +9077,9 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9052
9077
  imageUrl?: string[] | undefined;
9053
9078
  }[] | undefined;
9054
9079
  output?: string | undefined;
9080
+ } | {
9081
+ status: "AUTO_YIELD_RATE_LIMIT";
9082
+ reset: number;
9055
9083
  } | {
9056
9084
  status: "INVALID_PAYLOAD";
9057
9085
  errors: {
@@ -9102,12 +9130,12 @@ declare const RunJobResumeWithParallelTaskSchema: z.ZodObject<{
9102
9130
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9103
9131
  };
9104
9132
  } | {
9133
+ status: "RETRY_WITH_TASK";
9105
9134
  error: {
9106
9135
  message: string;
9107
9136
  name?: string | undefined;
9108
9137
  stack?: string | undefined;
9109
9138
  };
9110
- status: "RETRY_WITH_TASK";
9111
9139
  task: {
9112
9140
  name: string;
9113
9141
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9274,11 +9302,20 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9274
9302
  status: z.ZodLiteral<"YIELD_EXECUTION">;
9275
9303
  key: z.ZodString;
9276
9304
  }, "strip", z.ZodTypeAny, {
9277
- key: string;
9278
9305
  status: "YIELD_EXECUTION";
9279
- }, {
9280
9306
  key: string;
9307
+ }, {
9281
9308
  status: "YIELD_EXECUTION";
9309
+ key: string;
9310
+ }>, z.ZodObject<{
9311
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
9312
+ reset: z.ZodNumber;
9313
+ }, "strip", z.ZodTypeAny, {
9314
+ status: "AUTO_YIELD_RATE_LIMIT";
9315
+ reset: number;
9316
+ }, {
9317
+ status: "AUTO_YIELD_RATE_LIMIT";
9318
+ reset: number;
9282
9319
  }>, z.ZodObject<{
9283
9320
  status: z.ZodLiteral<"ERROR">;
9284
9321
  error: z.ZodObject<{
@@ -9424,12 +9461,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9424
9461
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9425
9462
  }>>;
9426
9463
  }, "strip", z.ZodTypeAny, {
9464
+ status: "ERROR";
9427
9465
  error: {
9428
9466
  message: string;
9429
9467
  name?: string | undefined;
9430
9468
  stack?: string | undefined;
9431
9469
  };
9432
- status: "ERROR";
9433
9470
  task?: {
9434
9471
  name: string;
9435
9472
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9466,12 +9503,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9466
9503
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
9467
9504
  } | undefined;
9468
9505
  }, {
9506
+ status: "ERROR";
9469
9507
  error: {
9470
9508
  message: string;
9471
9509
  name?: string | undefined;
9472
9510
  stack?: string | undefined;
9473
9511
  };
9474
- status: "ERROR";
9475
9512
  task?: {
9476
9513
  name: string;
9477
9514
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -9981,11 +10018,20 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
9981
10018
  status: z.ZodLiteral<"YIELD_EXECUTION">;
9982
10019
  key: z.ZodString;
9983
10020
  }, "strip", z.ZodTypeAny, {
9984
- key: string;
9985
10021
  status: "YIELD_EXECUTION";
9986
- }, {
9987
10022
  key: string;
10023
+ }, {
9988
10024
  status: "YIELD_EXECUTION";
10025
+ key: string;
10026
+ }>, z.ZodObject<{
10027
+ status: z.ZodLiteral<"AUTO_YIELD_RATE_LIMIT">;
10028
+ reset: z.ZodNumber;
10029
+ }, "strip", z.ZodTypeAny, {
10030
+ status: "AUTO_YIELD_RATE_LIMIT";
10031
+ reset: number;
10032
+ }, {
10033
+ status: "AUTO_YIELD_RATE_LIMIT";
10034
+ reset: number;
9989
10035
  }>, z.ZodObject<{
9990
10036
  status: z.ZodLiteral<"ERROR">;
9991
10037
  error: z.ZodObject<{
@@ -10131,12 +10177,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10131
10177
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10132
10178
  }>>;
10133
10179
  }, "strip", z.ZodTypeAny, {
10180
+ status: "ERROR";
10134
10181
  error: {
10135
10182
  message: string;
10136
10183
  name?: string | undefined;
10137
10184
  stack?: string | undefined;
10138
10185
  };
10139
- status: "ERROR";
10140
10186
  task?: {
10141
10187
  name: string;
10142
10188
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10173,12 +10219,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10173
10219
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10174
10220
  } | undefined;
10175
10221
  }, {
10222
+ status: "ERROR";
10176
10223
  error: {
10177
10224
  message: string;
10178
10225
  name?: string | undefined;
10179
10226
  stack?: string | undefined;
10180
10227
  };
10181
- status: "ERROR";
10182
10228
  task?: {
10183
10229
  name: string;
10184
10230
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10613,12 +10659,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10613
10659
  }>;
10614
10660
  retryAt: z.ZodDate;
10615
10661
  }, "strip", z.ZodTypeAny, {
10662
+ status: "RETRY_WITH_TASK";
10616
10663
  error: {
10617
10664
  message: string;
10618
10665
  name?: string | undefined;
10619
10666
  stack?: string | undefined;
10620
10667
  };
10621
- status: "RETRY_WITH_TASK";
10622
10668
  task: {
10623
10669
  name: string;
10624
10670
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10656,12 +10702,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10656
10702
  };
10657
10703
  retryAt: Date;
10658
10704
  }, {
10705
+ status: "RETRY_WITH_TASK";
10659
10706
  error: {
10660
10707
  message: string;
10661
10708
  name?: string | undefined;
10662
10709
  stack?: string | undefined;
10663
10710
  };
10664
- status: "RETRY_WITH_TASK";
10665
10711
  task: {
10666
10712
  name: string;
10667
10713
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10942,12 +10988,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10942
10988
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10943
10989
  };
10944
10990
  childErrors: ({
10991
+ status: "ERROR";
10945
10992
  error: {
10946
10993
  message: string;
10947
10994
  name?: string | undefined;
10948
10995
  stack?: string | undefined;
10949
10996
  };
10950
- status: "ERROR";
10951
10997
  task?: {
10952
10998
  name: string;
10953
10999
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -10984,8 +11030,8 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
10984
11030
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
10985
11031
  } | undefined;
10986
11032
  } | {
10987
- key: string;
10988
11033
  status: "YIELD_EXECUTION";
11034
+ key: string;
10989
11035
  } | {
10990
11036
  status: "AUTO_YIELD_EXECUTION";
10991
11037
  location: string;
@@ -11008,6 +11054,9 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11008
11054
  imageUrl?: string[] | undefined;
11009
11055
  }[] | undefined;
11010
11056
  output?: string | undefined;
11057
+ } | {
11058
+ status: "AUTO_YIELD_RATE_LIMIT";
11059
+ reset: number;
11011
11060
  } | {
11012
11061
  status: "INVALID_PAYLOAD";
11013
11062
  errors: {
@@ -11058,12 +11107,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11058
11107
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11059
11108
  };
11060
11109
  } | {
11110
+ status: "RETRY_WITH_TASK";
11061
11111
  error: {
11062
11112
  message: string;
11063
11113
  name?: string | undefined;
11064
11114
  stack?: string | undefined;
11065
11115
  };
11066
- status: "RETRY_WITH_TASK";
11067
11116
  task: {
11068
11117
  name: string;
11069
11118
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11176,12 +11225,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11176
11225
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11177
11226
  };
11178
11227
  childErrors: ({
11228
+ status: "ERROR";
11179
11229
  error: {
11180
11230
  message: string;
11181
11231
  name?: string | undefined;
11182
11232
  stack?: string | undefined;
11183
11233
  };
11184
- status: "ERROR";
11185
11234
  task?: {
11186
11235
  name: string;
11187
11236
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11218,8 +11267,8 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11218
11267
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11219
11268
  } | undefined;
11220
11269
  } | {
11221
- key: string;
11222
11270
  status: "YIELD_EXECUTION";
11271
+ key: string;
11223
11272
  } | {
11224
11273
  status: "AUTO_YIELD_EXECUTION";
11225
11274
  location: string;
@@ -11242,6 +11291,9 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11242
11291
  imageUrl?: string[] | undefined;
11243
11292
  }[] | undefined;
11244
11293
  output?: string | undefined;
11294
+ } | {
11295
+ status: "AUTO_YIELD_RATE_LIMIT";
11296
+ reset: number;
11245
11297
  } | {
11246
11298
  status: "INVALID_PAYLOAD";
11247
11299
  errors: {
@@ -11292,12 +11344,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11292
11344
  childExecutionMode?: "SEQUENTIAL" | "PARALLEL" | null | undefined;
11293
11345
  };
11294
11346
  } | {
11347
+ status: "RETRY_WITH_TASK";
11295
11348
  error: {
11296
11349
  message: string;
11297
11350
  name?: string | undefined;
11298
11351
  stack?: string | undefined;
11299
11352
  };
11300
- status: "RETRY_WITH_TASK";
11301
11353
  task: {
11302
11354
  name: string;
11303
11355
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11518,12 +11570,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11518
11570
  }>;
11519
11571
  retryAt: z.ZodDate;
11520
11572
  }, "strip", z.ZodTypeAny, {
11573
+ status: "RETRY_WITH_TASK";
11521
11574
  error: {
11522
11575
  message: string;
11523
11576
  name?: string | undefined;
11524
11577
  stack?: string | undefined;
11525
11578
  };
11526
- status: "RETRY_WITH_TASK";
11527
11579
  task: {
11528
11580
  name: string;
11529
11581
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -11561,12 +11613,12 @@ declare const RunJobResponseSchema: z.ZodDiscriminatedUnion<"status", [z.ZodObje
11561
11613
  };
11562
11614
  retryAt: Date;
11563
11615
  }, {
11616
+ status: "RETRY_WITH_TASK";
11564
11617
  error: {
11565
11618
  message: string;
11566
11619
  name?: string | undefined;
11567
11620
  stack?: string | undefined;
11568
11621
  };
11569
- status: "RETRY_WITH_TASK";
11570
11622
  task: {
11571
11623
  name: string;
11572
11624
  status: "PENDING" | "WAITING" | "RUNNING" | "COMPLETED" | "ERRORED" | "CANCELED";
@@ -12610,10 +12662,10 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
12610
12662
  type RunTaskBodyOutput = z.infer<typeof RunTaskBodyOutputSchema>;
12611
12663
  declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12612
12664
  task: z.ZodObject<{
12613
- error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12614
12665
  name: z.ZodString;
12615
12666
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
12616
12667
  status: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
12668
+ error: z.ZodNullable<z.ZodOptional<z.ZodString>>;
12617
12669
  context: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
12618
12670
  id: z.ZodString;
12619
12671
  style: z.ZodNullable<z.ZodOptional<z.ZodObject<{
@@ -12679,8 +12731,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12679
12731
  noop: boolean;
12680
12732
  idempotencyKey: string;
12681
12733
  attempts: number;
12682
- error?: string | null | undefined;
12683
12734
  params?: DeserializedJson | undefined;
12735
+ error?: string | null | undefined;
12684
12736
  context?: DeserializedJson | undefined;
12685
12737
  style?: {
12686
12738
  style: "normal" | "minimal";
@@ -12716,8 +12768,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12716
12768
  noop: boolean;
12717
12769
  idempotencyKey: string;
12718
12770
  attempts: number;
12719
- error?: string | null | undefined;
12720
12771
  params?: DeserializedJson | undefined;
12772
+ error?: string | null | undefined;
12721
12773
  context?: DeserializedJson | undefined;
12722
12774
  style?: {
12723
12775
  style: "normal" | "minimal";
@@ -12800,8 +12852,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12800
12852
  noop: boolean;
12801
12853
  idempotencyKey: string;
12802
12854
  attempts: number;
12803
- error?: string | null | undefined;
12804
12855
  params?: DeserializedJson | undefined;
12856
+ error?: string | null | undefined;
12805
12857
  context?: DeserializedJson | undefined;
12806
12858
  style?: {
12807
12859
  style: "normal" | "minimal";
@@ -12850,8 +12902,8 @@ declare const RunTaskResponseWithCachedTasksBodySchema: z.ZodObject<{
12850
12902
  noop: boolean;
12851
12903
  idempotencyKey: string;
12852
12904
  attempts: number;
12853
- error?: string | null | undefined;
12854
12905
  params?: DeserializedJson | undefined;
12906
+ error?: string | null | undefined;
12855
12907
  context?: DeserializedJson | undefined;
12856
12908
  style?: {
12857
12909
  style: "normal" | "minimal";
@@ -13240,8 +13292,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13240
13292
  id: string;
13241
13293
  }>>;
13242
13294
  }, "strip", z.ZodTypeAny, {
13243
- key: string;
13244
13295
  version: "1";
13296
+ key: string;
13245
13297
  channel: "HTTP" | "SMTP" | "SQS";
13246
13298
  events: string[];
13247
13299
  integration: {
@@ -13259,8 +13311,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13259
13311
  id: string;
13260
13312
  } | undefined;
13261
13313
  }, {
13262
- key: string;
13263
13314
  version: "1";
13315
+ key: string;
13264
13316
  channel: "HTTP" | "SMTP" | "SQS";
13265
13317
  events: string[];
13266
13318
  integration: {
@@ -13280,8 +13332,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13280
13332
  }>;
13281
13333
  }, "strip", z.ZodTypeAny, {
13282
13334
  source: {
13283
- key: string;
13284
13335
  version: "1";
13336
+ key: string;
13285
13337
  channel: "HTTP" | "SMTP" | "SQS";
13286
13338
  events: string[];
13287
13339
  integration: {
@@ -13307,8 +13359,8 @@ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13307
13359
  };
13308
13360
  }, {
13309
13361
  source: {
13310
- key: string;
13311
13362
  version: "1";
13363
+ key: string;
13312
13364
  channel: "HTTP" | "SMTP" | "SQS";
13313
13365
  events: string[];
13314
13366
  integration: {
@@ -13401,9 +13453,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13401
13453
  id: string;
13402
13454
  }>>;
13403
13455
  }, "strip", z.ZodTypeAny, {
13404
- key: string;
13405
13456
  version: "2";
13406
13457
  options: Record<string, string[]>;
13458
+ key: string;
13407
13459
  channel: "HTTP" | "SMTP" | "SQS";
13408
13460
  integration: {
13409
13461
  id: string;
@@ -13420,9 +13472,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13420
13472
  id: string;
13421
13473
  } | undefined;
13422
13474
  }, {
13423
- key: string;
13424
13475
  version: "2";
13425
13476
  options: Record<string, string[]>;
13477
+ key: string;
13426
13478
  channel: "HTTP" | "SMTP" | "SQS";
13427
13479
  integration: {
13428
13480
  id: string;
@@ -13442,9 +13494,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13442
13494
  accountId: z.ZodOptional<z.ZodString>;
13443
13495
  }, "strip", z.ZodTypeAny, {
13444
13496
  source: {
13445
- key: string;
13446
13497
  version: "2";
13447
13498
  options: Record<string, string[]>;
13499
+ key: string;
13448
13500
  channel: "HTTP" | "SMTP" | "SQS";
13449
13501
  integration: {
13450
13502
  id: string;
@@ -13470,9 +13522,9 @@ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
13470
13522
  accountId?: string | undefined;
13471
13523
  }, {
13472
13524
  source: {
13473
- key: string;
13474
13525
  version: "2";
13475
13526
  options: Record<string, string[]>;
13527
+ key: string;
13476
13528
  channel: "HTTP" | "SMTP" | "SQS";
13477
13529
  integration: {
13478
13530
  id: string;
@@ -13778,8 +13830,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13778
13830
  data?: Record<string, SerializableJson> | undefined;
13779
13831
  }>, "many">;
13780
13832
  }, "strip", z.ZodTypeAny, {
13781
- key: string;
13782
13833
  label: string;
13834
+ key: string;
13783
13835
  history: {
13784
13836
  label?: string | undefined;
13785
13837
  state?: "loading" | "success" | "failure" | undefined;
@@ -13788,8 +13840,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13788
13840
  data?: Record<string, SerializableJson> | undefined;
13789
13841
  state?: "loading" | "success" | "failure" | undefined;
13790
13842
  }, {
13791
- key: string;
13792
13843
  label: string;
13844
+ key: string;
13793
13845
  history: {
13794
13846
  label?: string | undefined;
13795
13847
  state?: "loading" | "success" | "failure" | undefined;
@@ -13800,8 +13852,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13800
13852
  }>, "many">;
13801
13853
  }, "strip", z.ZodTypeAny, {
13802
13854
  statuses: {
13803
- key: string;
13804
13855
  label: string;
13856
+ key: string;
13805
13857
  history: {
13806
13858
  label?: string | undefined;
13807
13859
  state?: "loading" | "success" | "failure" | undefined;
@@ -13817,8 +13869,8 @@ declare const GetRunStatusesSchema: z.ZodObject<{
13817
13869
  };
13818
13870
  }, {
13819
13871
  statuses: {
13820
- key: string;
13821
13872
  label: string;
13873
+ key: string;
13822
13874
  history: {
13823
13875
  label?: string | undefined;
13824
13876
  state?: "loading" | "success" | "failure" | undefined;
@@ -14841,7 +14893,7 @@ declare const ScheduledPayloadSchema: z.ZodObject<{
14841
14893
  }>;
14842
14894
  type ScheduledPayload = z.infer<typeof ScheduledPayloadSchema>;
14843
14895
  declare const IntervalOptionsSchema: z.ZodObject<{
14844
- /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
14896
+ /** The number of seconds for the interval. Min = 20, Max = 2_592_000 (30 days) */
14845
14897
  seconds: z.ZodNumber;
14846
14898
  }, "strip", z.ZodTypeAny, {
14847
14899
  seconds: number;
@@ -14898,7 +14950,7 @@ declare const IntervalMetadataSchema: z.ZodObject<{
14898
14950
  type: z.ZodLiteral<"interval">;
14899
14951
  /** An object containing options about the interval. */
14900
14952
  options: z.ZodObject<{
14901
- /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
14953
+ /** The number of seconds for the interval. Min = 20, Max = 2_592_000 (30 days) */
14902
14954
  seconds: z.ZodNumber;
14903
14955
  }, "strip", z.ZodTypeAny, {
14904
14956
  seconds: number;
@@ -14930,7 +14982,7 @@ declare const ScheduleMetadataSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObje
14930
14982
  type: z.ZodLiteral<"interval">;
14931
14983
  /** An object containing options about the interval. */
14932
14984
  options: z.ZodObject<{
14933
- /** The number of seconds for the interval. Min = 60, Max = 2_592_000 (30 days) */
14985
+ /** The number of seconds for the interval. Min = 20, Max = 2_592_000 (30 days) */
14934
14986
  seconds: z.ZodNumber;
14935
14987
  }, "strip", z.ZodTypeAny, {
14936
14988
  seconds: number;
@@ -16371,8 +16423,8 @@ declare const JobRunStatusRecordSchema: z.ZodObject<{
16371
16423
  data?: Record<string, SerializableJson> | undefined;
16372
16424
  }>, "many">;
16373
16425
  }, "strip", z.ZodTypeAny, {
16374
- key: string;
16375
16426
  label: string;
16427
+ key: string;
16376
16428
  history: {
16377
16429
  label?: string | undefined;
16378
16430
  state?: "loading" | "success" | "failure" | undefined;
@@ -16381,8 +16433,8 @@ declare const JobRunStatusRecordSchema: z.ZodObject<{
16381
16433
  data?: Record<string, SerializableJson> | undefined;
16382
16434
  state?: "loading" | "success" | "failure" | undefined;
16383
16435
  }, {
16384
- key: string;
16385
16436
  label: string;
16437
+ key: string;
16386
16438
  history: {
16387
16439
  label?: string | undefined;
16388
16440
  state?: "loading" | "success" | "failure" | undefined;
@@ -16493,8 +16545,8 @@ declare const GetRunSchema: z.ZodObject<{
16493
16545
  data?: Record<string, SerializableJson> | undefined;
16494
16546
  }>, "many">;
16495
16547
  }, "strip", z.ZodTypeAny, {
16496
- key: string;
16497
16548
  label: string;
16549
+ key: string;
16498
16550
  history: {
16499
16551
  label?: string | undefined;
16500
16552
  state?: "loading" | "success" | "failure" | undefined;
@@ -16503,8 +16555,8 @@ declare const GetRunSchema: z.ZodObject<{
16503
16555
  data?: Record<string, SerializableJson> | undefined;
16504
16556
  state?: "loading" | "success" | "failure" | undefined;
16505
16557
  }, {
16506
- key: string;
16507
16558
  label: string;
16559
+ key: string;
16508
16560
  history: {
16509
16561
  label?: string | undefined;
16510
16562
  state?: "loading" | "success" | "failure" | undefined;
@@ -16522,8 +16574,8 @@ declare const GetRunSchema: z.ZodObject<{
16522
16574
  updatedAt: Date | null;
16523
16575
  tasks: RunTaskWithSubtasks[];
16524
16576
  statuses: {
16525
- key: string;
16526
16577
  label: string;
16578
+ key: string;
16527
16579
  history: {
16528
16580
  label?: string | undefined;
16529
16581
  state?: "loading" | "success" | "failure" | undefined;
@@ -16543,8 +16595,8 @@ declare const GetRunSchema: z.ZodObject<{
16543
16595
  tasks: RunTaskWithSubtasks[];
16544
16596
  output?: any;
16545
16597
  statuses?: {
16546
- key: string;
16547
16598
  label: string;
16599
+ key: string;
16548
16600
  history: {
16549
16601
  label?: string | undefined;
16550
16602
  state?: "loading" | "success" | "failure" | undefined;
@@ -16735,6 +16787,18 @@ declare const RequestWithRawBodySchema: z.ZodObject<{
16735
16787
  rawBody: string;
16736
16788
  }>;
16737
16789
 
16790
+ declare const CancelRunsForJobSchema: z.ZodObject<{
16791
+ cancelledRunIds: z.ZodArray<z.ZodString, "many">;
16792
+ failedToCancelRunIds: z.ZodArray<z.ZodString, "many">;
16793
+ }, "strip", z.ZodTypeAny, {
16794
+ cancelledRunIds: string[];
16795
+ failedToCancelRunIds: string[];
16796
+ }, {
16797
+ cancelledRunIds: string[];
16798
+ failedToCancelRunIds: string[];
16799
+ }>;
16800
+ type CancelRunsForJob = z.infer<typeof CancelRunsForJobSchema>;
16801
+
16738
16802
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
16739
16803
  declare function assertExhaustive(x: never): never;
16740
16804
 
@@ -16770,6 +16834,61 @@ type ResponseFilterMatchResult = {
16770
16834
  };
16771
16835
  declare function responseFilterMatches(response: Response, filter: ResponseFilter): Promise<ResponseFilterMatchResult>;
16772
16836
 
16837
+ declare const CreateAuthorizationCodeResponseSchema: z.ZodObject<{
16838
+ url: z.ZodString;
16839
+ authorizationCode: z.ZodString;
16840
+ }, "strip", z.ZodTypeAny, {
16841
+ url: string;
16842
+ authorizationCode: string;
16843
+ }, {
16844
+ url: string;
16845
+ authorizationCode: string;
16846
+ }>;
16847
+ type CreateAuthorizationCodeResponse = z.infer<typeof CreateAuthorizationCodeResponseSchema>;
16848
+ declare const GetPersonalAccessTokenRequestSchema: z.ZodObject<{
16849
+ authorizationCode: z.ZodString;
16850
+ }, "strip", z.ZodTypeAny, {
16851
+ authorizationCode: string;
16852
+ }, {
16853
+ authorizationCode: string;
16854
+ }>;
16855
+ type GetPersonalAccessTokenRequest = z.infer<typeof GetPersonalAccessTokenRequestSchema>;
16856
+ declare const GetPersonalAccessTokenResponseSchema: z.ZodObject<{
16857
+ token: z.ZodNullable<z.ZodObject<{
16858
+ token: z.ZodString;
16859
+ obfuscatedToken: z.ZodString;
16860
+ }, "strip", z.ZodTypeAny, {
16861
+ token: string;
16862
+ obfuscatedToken: string;
16863
+ }, {
16864
+ token: string;
16865
+ obfuscatedToken: string;
16866
+ }>>;
16867
+ }, "strip", z.ZodTypeAny, {
16868
+ token: {
16869
+ token: string;
16870
+ obfuscatedToken: string;
16871
+ } | null;
16872
+ }, {
16873
+ token: {
16874
+ token: string;
16875
+ obfuscatedToken: string;
16876
+ } | null;
16877
+ }>;
16878
+ type GetPersonalAccessTokenResponse = z.infer<typeof GetPersonalAccessTokenResponseSchema>;
16879
+
16880
+ declare const WhoAmIResponseSchema: z.ZodObject<{
16881
+ userId: z.ZodString;
16882
+ email: z.ZodString;
16883
+ }, "strip", z.ZodTypeAny, {
16884
+ userId: string;
16885
+ email: string;
16886
+ }, {
16887
+ userId: string;
16888
+ email: string;
16889
+ }>;
16890
+ type WhoAmIResponse = z.infer<typeof WhoAmIResponseSchema>;
16891
+
16773
16892
  declare const API_VERSIONS: {
16774
16893
  readonly LAZY_LOADED_CACHED_TASKS: "2023-09-29";
16775
16894
  readonly SERIALIZED_TASK_OUTPUT: "2023-11-01";
@@ -16780,4 +16899,4 @@ declare const PLATFORM_FEATURES: {
16780
16899
  };
16781
16900
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
16782
16901
 
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 };
16902
+ 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 CreateAuthorizationCodeResponse, CreateAuthorizationCodeResponseSchema, 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 GetPersonalAccessTokenRequest, GetPersonalAccessTokenRequestSchema, type GetPersonalAccessTokenResponse, GetPersonalAccessTokenResponseSchema, 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 RunJobAutoYieldRateLimitError, RunJobAutoYieldRateLimitErrorSchema, 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, type WhoAmIResponse, WhoAmIResponseSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };