@trigger.dev/core 2.2.7 → 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
@@ -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;
@@ -13632,6 +13958,40 @@ declare const HttpSourceResponseSchema: z.ZodObject<{
13632
13958
  };
13633
13959
  metadata?: DeserializedJson | undefined;
13634
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>;
13635
13995
  declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
13636
13996
  rule: z.ZodObject<{
13637
13997
  event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
@@ -14380,6 +14740,56 @@ declare const EphemeralEventDispatcherResponseBodySchema: z.ZodObject<{
14380
14740
  id: string;
14381
14741
  }>;
14382
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>;
14383
14793
 
14384
14794
  declare const EventExampleSchema: z.ZodObject<{
14385
14795
  id: z.ZodString;
@@ -17145,6 +17555,7 @@ declare const RequestWithRawBodySchema: z.ZodObject<{
17145
17555
  }>;
17146
17556
 
17147
17557
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
17558
+ declare function assertExhaustive(x: never): never;
17148
17559
 
17149
17560
  declare function calculateRetryAt(retryOptions: RetryOptions, attempts: number): Date | undefined;
17150
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;
@@ -17188,4 +17599,4 @@ declare const PLATFORM_FEATURES: {
17188
17599
  };
17189
17600
  declare function supportsFeature<TFeatureName extends keyof typeof PLATFORM_FEATURES>(featureName: TFeatureName, version: string): boolean;
17190
17601
 
17191
- 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, 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, 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, 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, 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 };