@trigger.dev/core 2.2.6 → 2.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import { z } from 'zod';
11
11
  type LogLevel = "log" | "error" | "warn" | "info" | "debug";
12
12
  declare class Logger {
13
13
  #private;
14
- constructor(name: string, level?: LogLevel, filteredKeys?: string[], jsonReplacer?: (key: string, value: unknown) => unknown);
14
+ constructor(name: string, level?: LogLevel, filteredKeys?: string[], jsonReplacer?: (key: string, value: unknown) => unknown, additionalFields?: () => Record<string, unknown>);
15
15
  filter(...keys: string[]): Logger;
16
16
  static satisfiesLogLevel(logLevel: LogLevel, setLevel: LogLevel): boolean;
17
17
  log(message: string, ...args: Array<Record<string, unknown> | undefined>): void;
@@ -159,6 +159,12 @@ declare const SerializableJsonSchema: z.ZodType<SerializableJson>;
159
159
  type Prettify<T> = {
160
160
  [K in keyof T]: T[K];
161
161
  } & {};
162
+ interface AsyncMap {
163
+ delete: (key: string) => Promise<boolean>;
164
+ get: (key: string) => Promise<any>;
165
+ has: (key: string) => Promise<boolean>;
166
+ set: (key: string, value: any) => Promise<any>;
167
+ }
162
168
 
163
169
  declare const TaskStatusSchema: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
164
170
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
@@ -491,6 +497,23 @@ declare const UpdateTriggerSourceBodyV2Schema: z.ZodObject<{
491
497
  data?: SerializableJson;
492
498
  }>;
493
499
  type UpdateTriggerSourceBodyV2 = z.infer<typeof UpdateTriggerSourceBodyV2Schema>;
500
+ declare const UpdateWebhookBodySchema: z.ZodDiscriminatedUnion<"active", [z.ZodObject<{
501
+ active: z.ZodLiteral<false>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ active: false;
504
+ }, {
505
+ active: false;
506
+ }>, z.ZodObject<{
507
+ active: z.ZodLiteral<true>;
508
+ config: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
509
+ }, "strip", z.ZodTypeAny, {
510
+ active: true;
511
+ config: Record<string, string[]>;
512
+ }, {
513
+ active: true;
514
+ config: Record<string, string[]>;
515
+ }>]>;
516
+ type UpdateWebhookBody = z.infer<typeof UpdateWebhookBodySchema>;
494
517
  declare const RegisterHTTPTriggerSourceBodySchema: z.ZodObject<{
495
518
  type: z.ZodLiteral<"HTTP">;
496
519
  url: z.ZodString;
@@ -537,6 +560,72 @@ declare const RegisterSourceChannelBodySchema: z.ZodDiscriminatedUnion<"type", [
537
560
  }, {
538
561
  type: "SQS";
539
562
  }>]>;
563
+ declare const REGISTER_WEBHOOK = "dev.trigger.webhook.register";
564
+ declare const DELIVER_WEBHOOK_REQUEST = "dev.trigger.webhook.deliver";
565
+ declare const RegisterWebhookSourceSchema: z.ZodObject<{
566
+ key: z.ZodString;
567
+ params: z.ZodAny;
568
+ config: z.ZodAny;
569
+ active: z.ZodBoolean;
570
+ secret: z.ZodString;
571
+ url: z.ZodString;
572
+ data: z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>;
573
+ clientId: z.ZodOptional<z.ZodString>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ key: string;
576
+ url: string;
577
+ secret: string;
578
+ active: boolean;
579
+ params?: any;
580
+ config?: any;
581
+ data?: DeserializedJson | undefined;
582
+ clientId?: string | undefined;
583
+ }, {
584
+ key: string;
585
+ url: string;
586
+ secret: string;
587
+ active: boolean;
588
+ params?: any;
589
+ config?: any;
590
+ data?: DeserializedJson | undefined;
591
+ clientId?: string | undefined;
592
+ }>;
593
+ type RegisterWebhookSource = z.infer<typeof RegisterWebhookSourceSchema>;
594
+ declare const RegisterWebhookPayloadSchema: z.ZodObject<{
595
+ active: z.ZodBoolean;
596
+ params: z.ZodOptional<z.ZodAny>;
597
+ config: z.ZodObject<{
598
+ current: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
599
+ desired: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
600
+ }, "strip", z.ZodTypeAny, {
601
+ current: Record<string, string[]>;
602
+ desired: Record<string, string[]>;
603
+ }, {
604
+ current: Record<string, string[]>;
605
+ desired: Record<string, string[]>;
606
+ }>;
607
+ url: z.ZodString;
608
+ secret: z.ZodString;
609
+ }, "strip", z.ZodTypeAny, {
610
+ url: string;
611
+ secret: string;
612
+ active: boolean;
613
+ config: {
614
+ current: Record<string, string[]>;
615
+ desired: Record<string, string[]>;
616
+ };
617
+ params?: any;
618
+ }, {
619
+ url: string;
620
+ secret: string;
621
+ active: boolean;
622
+ config: {
623
+ current: Record<string, string[]>;
624
+ desired: Record<string, string[]>;
625
+ };
626
+ params?: any;
627
+ }>;
628
+ type RegisterWebhookPayload = z.infer<typeof RegisterWebhookPayloadSchema>;
540
629
  declare const REGISTER_SOURCE_EVENT_V1 = "dev.trigger.source.register";
541
630
  declare const REGISTER_SOURCE_EVENT_V2 = "dev.trigger.source.register.v2";
542
631
  declare const RegisterTriggerSourceSchema: z.ZodObject<{
@@ -1069,6 +1158,32 @@ declare const HttpEndpointRequestHeadersSchema: z.ZodObject<{
1069
1158
  "x-ts-http-method": string;
1070
1159
  "x-ts-http-headers": string;
1071
1160
  }>;
1161
+ declare const WebhookSourceRequestHeadersSchema: z.ZodObject<{
1162
+ "x-ts-key": z.ZodString;
1163
+ "x-ts-dynamic-id": z.ZodOptional<z.ZodString>;
1164
+ "x-ts-secret": z.ZodString;
1165
+ "x-ts-params": z.ZodEffects<z.ZodString, any, string>;
1166
+ "x-ts-http-url": z.ZodString;
1167
+ "x-ts-http-method": z.ZodString;
1168
+ "x-ts-http-headers": z.ZodEffects<z.ZodString, Record<string, string>, string>;
1169
+ }, "strip", z.ZodTypeAny, {
1170
+ "x-ts-key": string;
1171
+ "x-ts-secret": string;
1172
+ "x-ts-http-url": string;
1173
+ "x-ts-http-method": string;
1174
+ "x-ts-http-headers": Record<string, string>;
1175
+ "x-ts-dynamic-id"?: string | undefined;
1176
+ "x-ts-params"?: any;
1177
+ }, {
1178
+ "x-ts-key": string;
1179
+ "x-ts-secret": string;
1180
+ "x-ts-params": string;
1181
+ "x-ts-http-url": string;
1182
+ "x-ts-http-method": string;
1183
+ "x-ts-http-headers": string;
1184
+ "x-ts-dynamic-id"?: string | undefined;
1185
+ }>;
1186
+ type WebhookSourceRequestHeaders = z.output<typeof WebhookSourceRequestHeadersSchema>;
1072
1187
  declare const PongSuccessResponseSchema: z.ZodObject<{
1073
1188
  ok: z.ZodLiteral<true>;
1074
1189
  triggerVersion: z.ZodOptional<z.ZodString>;
@@ -1858,6 +1973,98 @@ declare const SourceMetadataV2Schema: z.ZodObject<{
1858
1973
  } | undefined;
1859
1974
  }>;
1860
1975
  type SourceMetadataV2 = z.infer<typeof SourceMetadataV2Schema>;
1976
+ declare const WebhookMetadataSchema: z.ZodObject<{
1977
+ key: z.ZodString;
1978
+ params: z.ZodAny;
1979
+ config: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1980
+ integration: z.ZodObject<{
1981
+ id: z.ZodString;
1982
+ metadata: z.ZodObject<{
1983
+ id: z.ZodString;
1984
+ name: z.ZodString;
1985
+ instructions: z.ZodOptional<z.ZodString>;
1986
+ }, "strip", z.ZodTypeAny, {
1987
+ name: string;
1988
+ id: string;
1989
+ instructions?: string | undefined;
1990
+ }, {
1991
+ name: string;
1992
+ id: string;
1993
+ instructions?: string | undefined;
1994
+ }>;
1995
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
1996
+ }, "strip", z.ZodTypeAny, {
1997
+ id: string;
1998
+ metadata: {
1999
+ name: string;
2000
+ id: string;
2001
+ instructions?: string | undefined;
2002
+ };
2003
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2004
+ }, {
2005
+ id: string;
2006
+ metadata: {
2007
+ name: string;
2008
+ id: string;
2009
+ instructions?: string | undefined;
2010
+ };
2011
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2012
+ }>;
2013
+ httpEndpoint: z.ZodObject<{
2014
+ id: z.ZodString;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ id: string;
2017
+ }, {
2018
+ id: string;
2019
+ }>;
2020
+ }, "strip", z.ZodTypeAny, {
2021
+ key: string;
2022
+ config: Record<string, string[]>;
2023
+ integration: {
2024
+ id: string;
2025
+ metadata: {
2026
+ name: string;
2027
+ id: string;
2028
+ instructions?: string | undefined;
2029
+ };
2030
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2031
+ };
2032
+ httpEndpoint: {
2033
+ id: string;
2034
+ };
2035
+ params?: any;
2036
+ }, {
2037
+ key: string;
2038
+ config: Record<string, string[]>;
2039
+ integration: {
2040
+ id: string;
2041
+ metadata: {
2042
+ name: string;
2043
+ id: string;
2044
+ instructions?: string | undefined;
2045
+ };
2046
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
2047
+ };
2048
+ httpEndpoint: {
2049
+ id: string;
2050
+ };
2051
+ params?: any;
2052
+ }>;
2053
+ type WebhookMetadata = z.infer<typeof WebhookMetadataSchema>;
2054
+ declare const WebhookContextMetadataSchema: z.ZodObject<{
2055
+ params: z.ZodAny;
2056
+ config: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
2057
+ secret: z.ZodString;
2058
+ }, "strip", z.ZodTypeAny, {
2059
+ secret: string;
2060
+ config: Record<string, string[]>;
2061
+ params?: any;
2062
+ }, {
2063
+ secret: string;
2064
+ config: Record<string, string[]>;
2065
+ params?: any;
2066
+ }>;
2067
+ type WebhookContextMetadata = z.infer<typeof WebhookContextMetadataSchema>;
1861
2068
  declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1862
2069
  id: z.ZodString;
1863
2070
  jobs: z.ZodArray<z.ZodObject<Pick<{
@@ -3210,6 +3417,83 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
3210
3417
  id: string;
3211
3418
  } | undefined;
3212
3419
  }, unknown>, "many">;
3420
+ webhooks: z.ZodOptional<z.ZodArray<z.ZodObject<{
3421
+ key: z.ZodString;
3422
+ params: z.ZodAny;
3423
+ config: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
3424
+ integration: z.ZodObject<{
3425
+ id: z.ZodString;
3426
+ metadata: z.ZodObject<{
3427
+ id: z.ZodString;
3428
+ name: z.ZodString;
3429
+ instructions: z.ZodOptional<z.ZodString>;
3430
+ }, "strip", z.ZodTypeAny, {
3431
+ name: string;
3432
+ id: string;
3433
+ instructions?: string | undefined;
3434
+ }, {
3435
+ name: string;
3436
+ id: string;
3437
+ instructions?: string | undefined;
3438
+ }>;
3439
+ authSource: z.ZodEnum<["HOSTED", "LOCAL", "RESOLVER"]>;
3440
+ }, "strip", z.ZodTypeAny, {
3441
+ id: string;
3442
+ metadata: {
3443
+ name: string;
3444
+ id: string;
3445
+ instructions?: string | undefined;
3446
+ };
3447
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3448
+ }, {
3449
+ id: string;
3450
+ metadata: {
3451
+ name: string;
3452
+ id: string;
3453
+ instructions?: string | undefined;
3454
+ };
3455
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3456
+ }>;
3457
+ httpEndpoint: z.ZodObject<{
3458
+ id: z.ZodString;
3459
+ }, "strip", z.ZodTypeAny, {
3460
+ id: string;
3461
+ }, {
3462
+ id: string;
3463
+ }>;
3464
+ }, "strip", z.ZodTypeAny, {
3465
+ key: string;
3466
+ config: Record<string, string[]>;
3467
+ integration: {
3468
+ id: string;
3469
+ metadata: {
3470
+ name: string;
3471
+ id: string;
3472
+ instructions?: string | undefined;
3473
+ };
3474
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3475
+ };
3476
+ httpEndpoint: {
3477
+ id: string;
3478
+ };
3479
+ params?: any;
3480
+ }, {
3481
+ key: string;
3482
+ config: Record<string, string[]>;
3483
+ integration: {
3484
+ id: string;
3485
+ metadata: {
3486
+ name: string;
3487
+ id: string;
3488
+ instructions?: string | undefined;
3489
+ };
3490
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
3491
+ };
3492
+ httpEndpoint: {
3493
+ id: string;
3494
+ };
3495
+ params?: any;
3496
+ }>, "many">>;
3213
3497
  dynamicTriggers: z.ZodArray<z.ZodObject<{
3214
3498
  id: z.ZodString;
3215
3499
  jobs: z.ZodArray<z.ZodObject<Pick<{
@@ -4023,6 +4307,23 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
4023
4307
  id: string;
4024
4308
  }[];
4025
4309
  }[];
4310
+ webhooks?: {
4311
+ key: string;
4312
+ config: Record<string, string[]>;
4313
+ integration: {
4314
+ id: string;
4315
+ metadata: {
4316
+ name: string;
4317
+ id: string;
4318
+ instructions?: string | undefined;
4319
+ };
4320
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
4321
+ };
4322
+ httpEndpoint: {
4323
+ id: string;
4324
+ };
4325
+ params?: any;
4326
+ }[] | undefined;
4026
4327
  httpEndpoints?: {
4027
4328
  version: string;
4028
4329
  event: {
@@ -4179,6 +4480,23 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
4179
4480
  id: string;
4180
4481
  }[];
4181
4482
  }[];
4483
+ webhooks?: {
4484
+ key: string;
4485
+ config: Record<string, string[]>;
4486
+ integration: {
4487
+ id: string;
4488
+ metadata: {
4489
+ name: string;
4490
+ id: string;
4491
+ instructions?: string | undefined;
4492
+ };
4493
+ authSource: "HOSTED" | "LOCAL" | "RESOLVER";
4494
+ };
4495
+ httpEndpoint: {
4496
+ id: string;
4497
+ };
4498
+ params?: any;
4499
+ }[] | undefined;
4182
4500
  httpEndpoints?: {
4183
4501
  version: string;
4184
4502
  event: {
@@ -4248,6 +4566,7 @@ type EndpointIndexError = z.infer<typeof EndpointIndexErrorSchema>;
4248
4566
  declare const IndexEndpointStatsSchema: z.ZodObject<{
4249
4567
  jobs: z.ZodNumber;
4250
4568
  sources: z.ZodNumber;
4569
+ webhooks: z.ZodNumber;
4251
4570
  dynamicTriggers: z.ZodNumber;
4252
4571
  dynamicSchedules: z.ZodNumber;
4253
4572
  disabledJobs: z.ZodDefault<z.ZodNumber>;
@@ -4255,6 +4574,7 @@ declare const IndexEndpointStatsSchema: z.ZodObject<{
4255
4574
  }, "strip", z.ZodTypeAny, {
4256
4575
  jobs: number;
4257
4576
  sources: number;
4577
+ webhooks: number;
4258
4578
  dynamicTriggers: number;
4259
4579
  dynamicSchedules: number;
4260
4580
  httpEndpoints: number;
@@ -4262,6 +4582,7 @@ declare const IndexEndpointStatsSchema: z.ZodObject<{
4262
4582
  }, {
4263
4583
  jobs: number;
4264
4584
  sources: number;
4585
+ webhooks: number;
4265
4586
  dynamicTriggers: number;
4266
4587
  dynamicSchedules: number;
4267
4588
  disabledJobs?: number | undefined;
@@ -4292,6 +4613,7 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4292
4613
  stats: z.ZodObject<{
4293
4614
  jobs: z.ZodNumber;
4294
4615
  sources: z.ZodNumber;
4616
+ webhooks: z.ZodNumber;
4295
4617
  dynamicTriggers: z.ZodNumber;
4296
4618
  dynamicSchedules: z.ZodNumber;
4297
4619
  disabledJobs: z.ZodDefault<z.ZodNumber>;
@@ -4299,6 +4621,7 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4299
4621
  }, "strip", z.ZodTypeAny, {
4300
4622
  jobs: number;
4301
4623
  sources: number;
4624
+ webhooks: number;
4302
4625
  dynamicTriggers: number;
4303
4626
  dynamicSchedules: number;
4304
4627
  httpEndpoints: number;
@@ -4306,6 +4629,7 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4306
4629
  }, {
4307
4630
  jobs: number;
4308
4631
  sources: number;
4632
+ webhooks: number;
4309
4633
  dynamicTriggers: number;
4310
4634
  dynamicSchedules: number;
4311
4635
  disabledJobs?: number | undefined;
@@ -4318,6 +4642,7 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4318
4642
  stats: {
4319
4643
  jobs: number;
4320
4644
  sources: number;
4645
+ webhooks: number;
4321
4646
  dynamicTriggers: number;
4322
4647
  dynamicSchedules: number;
4323
4648
  httpEndpoints: number;
@@ -4329,6 +4654,7 @@ declare const GetEndpointIndexResponseSchema: z.ZodDiscriminatedUnion<"status",
4329
4654
  stats: {
4330
4655
  jobs: number;
4331
4656
  sources: number;
4657
+ webhooks: number;
4332
4658
  dynamicTriggers: number;
4333
4659
  dynamicSchedules: number;
4334
4660
  disabledJobs?: number | undefined;
@@ -4373,6 +4699,44 @@ declare const EndpointHeadersSchema: z.ZodObject<{
4373
4699
  "trigger-version"?: string | undefined;
4374
4700
  "trigger-sdk-version"?: string | undefined;
4375
4701
  }>;
4702
+ declare const ExecuteJobRunMetadataSchema: z.ZodObject<{
4703
+ successSubscription: z.ZodOptional<z.ZodBoolean>;
4704
+ failedSubscription: z.ZodOptional<z.ZodBoolean>;
4705
+ }, "strip", z.ZodTypeAny, {
4706
+ successSubscription?: boolean | undefined;
4707
+ failedSubscription?: boolean | undefined;
4708
+ }, {
4709
+ successSubscription?: boolean | undefined;
4710
+ failedSubscription?: boolean | undefined;
4711
+ }>;
4712
+ declare const ExecuteJobHeadersSchema: z.ZodObject<{
4713
+ "trigger-version": z.ZodOptional<z.ZodString>;
4714
+ "trigger-sdk-version": z.ZodOptional<z.ZodString>;
4715
+ "x-trigger-run-metadata": z.ZodOptional<z.ZodEffects<z.ZodObject<{
4716
+ successSubscription: z.ZodOptional<z.ZodBoolean>;
4717
+ failedSubscription: z.ZodOptional<z.ZodBoolean>;
4718
+ }, "strip", z.ZodTypeAny, {
4719
+ successSubscription?: boolean | undefined;
4720
+ failedSubscription?: boolean | undefined;
4721
+ }, {
4722
+ successSubscription?: boolean | undefined;
4723
+ failedSubscription?: boolean | undefined;
4724
+ }>, {
4725
+ successSubscription?: boolean | undefined;
4726
+ failedSubscription?: boolean | undefined;
4727
+ }, unknown>>;
4728
+ }, "strip", z.ZodTypeAny, {
4729
+ "trigger-version"?: string | undefined;
4730
+ "trigger-sdk-version"?: string | undefined;
4731
+ "x-trigger-run-metadata"?: {
4732
+ successSubscription?: boolean | undefined;
4733
+ failedSubscription?: boolean | undefined;
4734
+ } | undefined;
4735
+ }, {
4736
+ "trigger-version"?: string | undefined;
4737
+ "trigger-sdk-version"?: string | undefined;
4738
+ "x-trigger-run-metadata"?: unknown;
4739
+ }>;
4376
4740
  declare const RawEventSchema: z.ZodObject<{
4377
4741
  /** The `name` property must exactly match any subscriptions you want to
4378
4742
  trigger. */
@@ -13594,6 +13958,40 @@ declare const HttpSourceResponseSchema: z.ZodObject<{
13594
13958
  };
13595
13959
  metadata?: DeserializedJson | undefined;
13596
13960
  }>;
13961
+ declare const WebhookDeliveryResponseSchema: z.ZodObject<{
13962
+ response: z.ZodObject<{
13963
+ status: z.ZodNumber;
13964
+ body: z.ZodAny;
13965
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
13966
+ }, "strip", z.ZodTypeAny, {
13967
+ status: number;
13968
+ body?: any;
13969
+ headers?: Record<string, string> | undefined;
13970
+ }, {
13971
+ status: number;
13972
+ body?: any;
13973
+ headers?: Record<string, string> | undefined;
13974
+ }>;
13975
+ verified: z.ZodBoolean;
13976
+ error: z.ZodOptional<z.ZodString>;
13977
+ }, "strip", z.ZodTypeAny, {
13978
+ response: {
13979
+ status: number;
13980
+ body?: any;
13981
+ headers?: Record<string, string> | undefined;
13982
+ };
13983
+ verified: boolean;
13984
+ error?: string | undefined;
13985
+ }, {
13986
+ response: {
13987
+ status: number;
13988
+ body?: any;
13989
+ headers?: Record<string, string> | undefined;
13990
+ };
13991
+ verified: boolean;
13992
+ error?: string | undefined;
13993
+ }>;
13994
+ type WebhookDeliveryResponse = z.infer<typeof WebhookDeliveryResponseSchema>;
13597
13995
  declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13598
13996
  rule: z.ZodObject<{
13599
13997
  event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -14342,6 +14740,56 @@ declare const EphemeralEventDispatcherResponseBodySchema: z.ZodObject<{
14342
14740
  id: string;
14343
14741
  }>;
14344
14742
  type EphemeralEventDispatcherResponseBody = z.infer<typeof EphemeralEventDispatcherResponseBodySchema>;
14743
+ declare const KeyValueStoreResponseBodySchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject<{
14744
+ action: z.ZodLiteral<"DELETE">;
14745
+ key: z.ZodString;
14746
+ deleted: z.ZodBoolean;
14747
+ }, "strip", z.ZodTypeAny, {
14748
+ key: string;
14749
+ action: "DELETE";
14750
+ deleted: boolean;
14751
+ }, {
14752
+ key: string;
14753
+ action: "DELETE";
14754
+ deleted: boolean;
14755
+ }>, z.ZodObject<{
14756
+ action: z.ZodLiteral<"GET">;
14757
+ key: z.ZodString;
14758
+ value: z.ZodOptional<z.ZodString>;
14759
+ }, "strip", z.ZodTypeAny, {
14760
+ key: string;
14761
+ action: "GET";
14762
+ value?: string | undefined;
14763
+ }, {
14764
+ key: string;
14765
+ action: "GET";
14766
+ value?: string | undefined;
14767
+ }>, z.ZodObject<{
14768
+ action: z.ZodLiteral<"HAS">;
14769
+ key: z.ZodString;
14770
+ has: z.ZodBoolean;
14771
+ }, "strip", z.ZodTypeAny, {
14772
+ key: string;
14773
+ action: "HAS";
14774
+ has: boolean;
14775
+ }, {
14776
+ key: string;
14777
+ action: "HAS";
14778
+ has: boolean;
14779
+ }>, z.ZodObject<{
14780
+ action: z.ZodLiteral<"SET">;
14781
+ key: z.ZodString;
14782
+ value: z.ZodOptional<z.ZodString>;
14783
+ }, "strip", z.ZodTypeAny, {
14784
+ key: string;
14785
+ action: "SET";
14786
+ value?: string | undefined;
14787
+ }, {
14788
+ key: string;
14789
+ action: "SET";
14790
+ value?: string | undefined;
14791
+ }>]>;
14792
+ type KeyValueStoreResponseBody = z.infer<typeof KeyValueStoreResponseBodySchema>;
14345
14793
 
14346
14794
  declare const EventExampleSchema: z.ZodObject<{
14347
14795
  id: z.ZodString;
@@ -16987,7 +17435,36 @@ declare const GetRunsSchema: z.ZodObject<{
16987
17435
  }[];
16988
17436
  nextCursor?: string | undefined;
16989
17437
  }>;
16990
- type RunNotificationCommon = {
17438
+ type RunNotificationJobMetadata = {
17439
+ id: string;
17440
+ version: string;
17441
+ };
17442
+ type RunNotificationEnvMetadata = {
17443
+ slug: string;
17444
+ id: string;
17445
+ type: RuntimeEnvironmentType;
17446
+ };
17447
+ type RunNotificationOrgMetadata = {
17448
+ slug: string;
17449
+ id: string;
17450
+ title: string;
17451
+ };
17452
+ type RunNotificationProjectMetadata = {
17453
+ slug: string;
17454
+ id: string;
17455
+ name: string;
17456
+ };
17457
+ type RunNotificationAccountMetadata = {
17458
+ id: string;
17459
+ metadata?: any;
17460
+ };
17461
+ type RunNotificationInvocationMetadata<T = any> = {
17462
+ id: string;
17463
+ context: any;
17464
+ timestamp: Date;
17465
+ payload: T;
17466
+ };
17467
+ type RunNotificationRunMetadata = {
16991
17468
  /** The Run id */
16992
17469
  id: string;
16993
17470
  /** The Run status */
@@ -16998,58 +17475,65 @@ type RunNotificationCommon = {
16998
17475
  updatedAt: Date;
16999
17476
  /** When the run was completed */
17000
17477
  completedAt: Date;
17478
+ /** If the run was a test or not */
17479
+ isTest: boolean;
17480
+ executionDurationInMs: number;
17481
+ executionCount: number;
17482
+ };
17483
+ type RunNotificationCommon<TPayload = any> = {
17484
+ /** The Run id */
17485
+ id: string;
17486
+ /** The Run status */
17487
+ statuses: JobRunStatusRecord[];
17488
+ /** When the run started */
17489
+ startedAt: Date;
17490
+ /** When the run was last updated */
17491
+ updatedAt: Date;
17492
+ /** When the run was completed */
17493
+ completedAt: Date;
17494
+ /** If the run was a test or not */
17495
+ isTest: boolean;
17001
17496
  executionDurationInMs: number;
17002
17497
  executionCount: number;
17003
17498
  /** Job metadata */
17004
- job: {
17005
- id: string;
17006
- version: string;
17007
- };
17499
+ job: RunNotificationJobMetadata;
17008
17500
  /** Environment metadata */
17009
- environment: {
17010
- slug: string;
17011
- id: string;
17012
- type: RuntimeEnvironmentType;
17013
- };
17501
+ environment: RunNotificationEnvMetadata;
17014
17502
  /** Organization metadata */
17015
- organization: {
17016
- slug: string;
17017
- id: string;
17018
- title: string;
17019
- };
17503
+ organization: RunNotificationOrgMetadata;
17020
17504
  /** Project metadata */
17021
- project: {
17022
- slug: string;
17023
- id: string;
17024
- name: string;
17025
- };
17505
+ project: RunNotificationProjectMetadata;
17026
17506
  /** Account metadata */
17027
- account?: {
17028
- id: string;
17029
- metadata?: any;
17030
- };
17507
+ account?: RunNotificationAccountMetadata;
17031
17508
  /** Invocation metadata */
17032
- invocation: {
17033
- id: string;
17034
- context: any;
17035
- timestamp: Date;
17036
- };
17509
+ invocation: RunNotificationInvocationMetadata<TPayload>;
17037
17510
  };
17038
- type SuccessfulRunNotification<TOutput> = RunNotificationCommon & {
17511
+ type SuccessfulRunNotification<TOutput, TPayload = any> = RunNotificationCommon<TPayload> & {
17039
17512
  ok: true;
17040
17513
  /** The Run status */
17041
17514
  status: "SUCCESS";
17042
17515
  /** The output of the run */
17043
17516
  output: TOutput;
17044
17517
  };
17045
- type FailedRunNotification = RunNotificationCommon & {
17518
+ type FailedRunNotification<TPayload = any> = RunNotificationCommon<TPayload> & {
17046
17519
  ok: false;
17047
17520
  /** The Run status */
17048
17521
  status: "FAILURE" | "TIMED_OUT" | "ABORTED" | "CANCELED" | "UNRESOLVED_AUTH" | "INVALID_PAYLOAD";
17049
17522
  /** The error of the run */
17050
17523
  error: any;
17524
+ /** The task that failed */
17525
+ task?: {
17526
+ id: string;
17527
+ cacheKey: string | null;
17528
+ status: string;
17529
+ name: string;
17530
+ icon: string | null;
17531
+ startedAt: string;
17532
+ error: ErrorWithStack;
17533
+ params: any | null;
17534
+ };
17051
17535
  };
17052
- type RunNotification<TOutput> = SuccessfulRunNotification<TOutput> | FailedRunNotification;
17536
+ type RunNotification<TOutput, TPayload = any> = SuccessfulRunNotification<TOutput, TPayload> | FailedRunNotification<TPayload>;
17053
17537
 
17054
17538
  declare function addMissingVersionField(val: unknown): unknown;
17055
17539
 
@@ -17071,6 +17555,7 @@ declare const RequestWithRawBodySchema: z.ZodObject<{
17071
17555
  }>;
17072
17556
 
17073
17557
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
17558
+ declare function assertExhaustive(x: never): never;
17074
17559
 
17075
17560
  declare function calculateRetryAt(retryOptions: RetryOptions, attempts: number): Date | undefined;
17076
17561
  declare function calculateResetAt(resets: string | undefined | null, format: "unix_timestamp" | "iso_8601" | "iso_8601_duration_openai_variant" | "unix_timestamp_in_ms", now?: Date): Date | undefined;
@@ -17114,4 +17599,4 @@ declare const PLATFORM_FEATURES: {
17114
17599
  };
17115
17600
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
17116
17601
 
17117
- export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, AutoYieldConfig, AutoYieldConfigSchema, AutoYieldMetadata, AutoYieldMetadataSchema, CachedTask, CachedTaskSchema, CancelRunsForEvent, CancelRunsForEventSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, EndpointIndexError, EndpointIndexErrorSchema, EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FailedRunNotification, FetchOperation, FetchOperationSchema, FetchPollOperation, FetchPollOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, FetchTimeoutOptions, FetchTimeoutOptionsSchema, GetEndpointIndexResponse, GetEndpointIndexResponseSchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, HttpMethod, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, IndexEndpointStats, InitialStatusUpdate, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, JobMetadata, JobMetadataSchema, JobRunStatusRecord, JobRunStatusRecordSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterSourceEventV1, RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerBodyV1, RegisterTriggerBodyV2, RegisterTriggerSource, RegisterTriggerSourceSchema, RegisteredOptionsDiff, RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, ResponseFilter, ResponseFilterMatchResult, ResponseFilterSchema, RetryOptions, RetryOptionsSchema, RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, RunNotification, RunSourceContext, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistory, StatusHistorySchema, StatusUpdate, StatusUpdateData, StatusUpdateSchema, StatusUpdateState, StatusUpdateStateSchema, StringMatch, Style, StyleName, StyleSchema, SuccessfulRunNotification, TaskSchema, TaskStatus, TaskStatusSchema, TriggerHelpSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, addMissingVersionField, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };
17602
+ export { API_VERSIONS, ApiEventLog, ApiEventLogSchema, AsyncMap, AutoYieldConfig, AutoYieldConfigSchema, AutoYieldMetadata, AutoYieldMetadataSchema, CachedTask, CachedTaskSchema, CancelRunsForEvent, CancelRunsForEventSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, CompleteTaskBodyV2Input, CompleteTaskBodyV2InputSchema, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DELIVER_WEBHOOK_REQUEST, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, EndpointHeadersSchema, EndpointIndexError, EndpointIndexErrorSchema, EphemeralEventDispatcherRequestBody, EphemeralEventDispatcherRequestBodySchema, EphemeralEventDispatcherResponseBody, EphemeralEventDispatcherResponseBodySchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, ExecuteJobHeadersSchema, ExecuteJobRunMetadataSchema, FailTaskBodyInput, FailTaskBodyInputSchema, FailedRunNotification, FetchOperation, FetchOperationSchema, FetchPollOperation, FetchPollOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, FetchTimeoutOptions, FetchTimeoutOptionsSchema, GetEndpointIndexResponse, GetEndpointIndexResponseSchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunStatuses, GetRunStatusesSchema, GetRunsOptions, GetRunsSchema, HTTPMethodUnionSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpEndpointMetadata, HttpEndpointRequestHeadersSchema, HttpMethod, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, IndexEndpointStats, InitialStatusUpdate, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, InvokeJobRequestBody, InvokeJobRequestBodySchema, InvokeJobResponseSchema, InvokeOptions, InvokeOptionsSchema, InvokeTriggerMetadataSchema, JobMetadata, JobMetadataSchema, JobRunStatusRecord, JobRunStatusRecordSchema, KeyValueStoreResponseBody, KeyValueStoreResponseBodySchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, OverridableRunTaskOptions, PLATFORM_FEATURES, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT_V1, REGISTER_SOURCE_EVENT_V2, REGISTER_WEBHOOK, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEventOptions, RegisterSourceEventSchemaV1, RegisterSourceEventSchemaV2, RegisterSourceEventV1, RegisterSourceEventV2, RegisterTriggerBodySchemaV1, RegisterTriggerBodySchemaV2, RegisterTriggerBodyV1, RegisterTriggerBodyV2, RegisterTriggerSource, RegisterTriggerSourceSchema, RegisterWebhookPayload, RegisterWebhookPayloadSchema, RegisterWebhookSource, RegisterWebhookSourceSchema, RegisteredOptionsDiff, RequestFilter, RequestFilterSchema, RequestWithRawBodySchema, ResponseFilter, ResponseFilterMatchResult, ResponseFilterSchema, RetryOptions, RetryOptionsSchema, RunJobAutoYieldExecutionError, RunJobAutoYieldExecutionErrorSchema, RunJobAutoYieldWithCompletedTaskExecutionError, RunJobAutoYieldWithCompletedTaskExecutionErrorSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorResponse, RunJobErrorResponseSchema, RunJobErrorSchema, RunJobInvalidPayloadError, RunJobInvalidPayloadErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithParallelTask, RunJobResumeWithParallelTaskSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunJobUnresolvedAuthError, RunJobUnresolvedAuthErrorSchema, RunJobYieldExecutionError, RunJobYieldExecutionErrorSchema, RunNotification, RunNotificationAccountMetadata, RunNotificationEnvMetadata, RunNotificationInvocationMetadata, RunNotificationJobMetadata, RunNotificationOrgMetadata, RunNotificationProjectMetadata, RunNotificationRunMetadata, RunSourceContext, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskResponseWithCachedTasksBody, RunTaskResponseWithCachedTasksBodySchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SchemaError, SchemaErrorSchema, SendBulkEventsBodySchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, StatusHistory, StatusHistorySchema, StatusUpdate, StatusUpdateData, StatusUpdateSchema, StatusUpdateState, StatusUpdateStateSchema, StringMatch, Style, StyleName, StyleSchema, SuccessfulRunNotification, TaskSchema, TaskStatus, TaskStatusSchema, TriggerHelpSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, UpdateWebhookBody, UpdateWebhookBodySchema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, WebhookContextMetadata, WebhookContextMetadataSchema, WebhookDeliveryResponse, WebhookDeliveryResponseSchema, WebhookMetadata, WebhookMetadataSchema, WebhookSourceRequestHeaders, WebhookSourceRequestHeadersSchema, addMissingVersionField, assertExhaustive, calculateResetAt, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, parseEndpointIndexStats, replacements, requestFilterMatches, responseFilterMatches, stringPatternMatchers, supportsFeature, urlWithSearchParams };