@trigger.dev/core 2.0.14 → 2.1.0-beta.0

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
@@ -137,6 +137,10 @@ type SerializableJson = Serializable | {
137
137
  } | SerializableJson[];
138
138
  declare const SerializableJsonSchema: z.ZodType<SerializableJson>;
139
139
 
140
+ type Prettify<T> = {
141
+ [K in keyof T]: T[K];
142
+ } & {};
143
+
140
144
  declare const TaskStatusSchema: z.ZodEnum<["PENDING", "WAITING", "RUNNING", "COMPLETED", "ERRORED", "CANCELED"]>;
141
145
  type TaskStatus = z.infer<typeof TaskStatusSchema>;
142
146
  declare const TaskSchema: z.ZodObject<{
@@ -389,11 +393,7 @@ declare const CachedTaskSchema: z.ZodObject<{
389
393
  parentId?: string | null | undefined;
390
394
  }>;
391
395
 
392
- type Prettify<T> = {
393
- [K in keyof T]: T[K];
394
- } & {};
395
-
396
- declare const UpdateTriggerSourceBodySchema: z.ZodObject<{
396
+ declare const UpdateTriggerSourceBodyV1Schema: z.ZodObject<{
397
397
  registeredEvents: z.ZodArray<z.ZodString, "many">;
398
398
  secret: z.ZodOptional<z.ZodString>;
399
399
  data: z.ZodOptional<z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>;
@@ -406,29 +406,31 @@ declare const UpdateTriggerSourceBodySchema: z.ZodObject<{
406
406
  secret?: string | undefined;
407
407
  data?: SerializableJson;
408
408
  }>;
409
- type UpdateTriggerSourceBody = z.infer<typeof UpdateTriggerSourceBodySchema>;
410
- declare const HttpEventSourceSchema: z.ZodObject<{
411
- data: z.ZodOptional<z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>;
412
- registeredEvents: z.ZodArray<z.ZodString, "many">;
409
+ type UpdateTriggerSourceBodyV1 = z.infer<typeof UpdateTriggerSourceBodyV1Schema>;
410
+ declare const UpdateTriggerSourceBodyV2Schema: z.ZodObject<{
413
411
  secret: z.ZodOptional<z.ZodString>;
414
- id: z.ZodString;
415
- active: z.ZodBoolean;
416
- url: z.ZodString;
412
+ data: z.ZodOptional<z.ZodType<SerializableJson, z.ZodTypeDef, SerializableJson>>;
413
+ options: z.ZodIntersection<z.ZodObject<{
414
+ event: z.ZodArray<z.ZodString, "many">;
415
+ }, "strip", z.ZodTypeAny, {
416
+ event: string[];
417
+ }, {
418
+ event: string[];
419
+ }>, z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>>;
417
420
  }, "strip", z.ZodTypeAny, {
418
- id: string;
419
- url: string;
420
- registeredEvents: string[];
421
- active: boolean;
422
- data?: SerializableJson;
421
+ options: {
422
+ event: string[];
423
+ } & Record<string, string[]>;
423
424
  secret?: string | undefined;
424
- }, {
425
- id: string;
426
- url: string;
427
- registeredEvents: string[];
428
- active: boolean;
429
425
  data?: SerializableJson;
426
+ }, {
427
+ options: {
428
+ event: string[];
429
+ } & Record<string, string[]>;
430
430
  secret?: string | undefined;
431
+ data?: SerializableJson;
431
432
  }>;
433
+ type UpdateTriggerSourceBodyV2 = z.infer<typeof UpdateTriggerSourceBodyV2Schema>;
432
434
  declare const RegisterHTTPTriggerSourceBodySchema: z.ZodObject<{
433
435
  type: z.ZodLiteral<"HTTP">;
434
436
  url: z.ZodString;
@@ -475,7 +477,8 @@ declare const RegisterSourceChannelBodySchema: z.ZodDiscriminatedUnion<"type", [
475
477
  }, {
476
478
  type: "SQS";
477
479
  }>]>;
478
- declare const REGISTER_SOURCE_EVENT = "dev.trigger.source.register";
480
+ declare const REGISTER_SOURCE_EVENT_V1 = "dev.trigger.source.register";
481
+ declare const REGISTER_SOURCE_EVENT_V2 = "dev.trigger.source.register.v2";
479
482
  declare const RegisterTriggerSourceSchema: z.ZodObject<{
480
483
  key: z.ZodString;
481
484
  params: z.ZodAny;
@@ -537,7 +540,18 @@ declare const RegisterTriggerSourceSchema: z.ZodObject<{
537
540
  clientId?: string | undefined;
538
541
  }>;
539
542
  type RegisterTriggerSource = z.infer<typeof RegisterTriggerSourceSchema>;
540
- declare const RegisterSourceEventSchema: z.ZodObject<{
543
+ declare const SourceEventOptionSchema: z.ZodObject<{
544
+ name: z.ZodString;
545
+ value: z.ZodString;
546
+ }, "strip", z.ZodTypeAny, {
547
+ value: string;
548
+ name: string;
549
+ }, {
550
+ value: string;
551
+ name: string;
552
+ }>;
553
+ type SourceEventOption = z.infer<typeof SourceEventOptionSchema>;
554
+ declare const RegisterSourceEventSchemaV1: z.ZodObject<{
541
555
  /** The id of the source */
542
556
  id: z.ZodString;
543
557
  source: z.ZodObject<{
@@ -649,7 +663,226 @@ declare const RegisterSourceEventSchema: z.ZodObject<{
649
663
  orphanedEvents: string[];
650
664
  dynamicTriggerId?: string | undefined;
651
665
  }>;
652
- type RegisterSourceEvent = z.infer<typeof RegisterSourceEventSchema>;
666
+ type RegisterSourceEventV1 = z.infer<typeof RegisterSourceEventSchemaV1>;
667
+ declare const RegisteredOptionsDiffSchema: z.ZodObject<{
668
+ desired: z.ZodArray<z.ZodString, "many">;
669
+ missing: z.ZodArray<z.ZodString, "many">;
670
+ orphaned: z.ZodArray<z.ZodString, "many">;
671
+ }, "strip", z.ZodTypeAny, {
672
+ desired: string[];
673
+ missing: string[];
674
+ orphaned: string[];
675
+ }, {
676
+ desired: string[];
677
+ missing: string[];
678
+ orphaned: string[];
679
+ }>;
680
+ type RegisteredOptionsDiff = Prettify<z.infer<typeof RegisteredOptionsDiffSchema>>;
681
+ declare const RegisterSourceEventOptionsSchema: z.ZodIntersection<z.ZodObject<{
682
+ event: z.ZodObject<{
683
+ desired: z.ZodArray<z.ZodString, "many">;
684
+ missing: z.ZodArray<z.ZodString, "many">;
685
+ orphaned: z.ZodArray<z.ZodString, "many">;
686
+ }, "strip", z.ZodTypeAny, {
687
+ desired: string[];
688
+ missing: string[];
689
+ orphaned: string[];
690
+ }, {
691
+ desired: string[];
692
+ missing: string[];
693
+ orphaned: string[];
694
+ }>;
695
+ }, "strip", z.ZodTypeAny, {
696
+ event: {
697
+ desired: string[];
698
+ missing: string[];
699
+ orphaned: string[];
700
+ };
701
+ }, {
702
+ event: {
703
+ desired: string[];
704
+ missing: string[];
705
+ orphaned: string[];
706
+ };
707
+ }>, z.ZodRecord<z.ZodString, z.ZodObject<{
708
+ desired: z.ZodArray<z.ZodString, "many">;
709
+ missing: z.ZodArray<z.ZodString, "many">;
710
+ orphaned: z.ZodArray<z.ZodString, "many">;
711
+ }, "strip", z.ZodTypeAny, {
712
+ desired: string[];
713
+ missing: string[];
714
+ orphaned: string[];
715
+ }, {
716
+ desired: string[];
717
+ missing: string[];
718
+ orphaned: string[];
719
+ }>>>;
720
+ type RegisterSourceEventOptions = z.infer<typeof RegisterSourceEventOptionsSchema>;
721
+ declare const RegisterSourceEventSchemaV2: z.ZodObject<{
722
+ /** The id of the source */
723
+ id: z.ZodString;
724
+ source: z.ZodObject<{
725
+ key: z.ZodString;
726
+ params: z.ZodAny;
727
+ active: z.ZodBoolean;
728
+ secret: z.ZodString;
729
+ data: z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>;
730
+ channel: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
731
+ type: z.ZodLiteral<"HTTP">;
732
+ url: z.ZodString;
733
+ }, "strip", z.ZodTypeAny, {
734
+ type: "HTTP";
735
+ url: string;
736
+ }, {
737
+ type: "HTTP";
738
+ url: string;
739
+ }>, z.ZodObject<{
740
+ type: z.ZodLiteral<"SMTP">;
741
+ }, "strip", z.ZodTypeAny, {
742
+ type: "SMTP";
743
+ }, {
744
+ type: "SMTP";
745
+ }>, z.ZodObject<{
746
+ type: z.ZodLiteral<"SQS">;
747
+ }, "strip", z.ZodTypeAny, {
748
+ type: "SQS";
749
+ }, {
750
+ type: "SQS";
751
+ }>]>;
752
+ clientId: z.ZodOptional<z.ZodString>;
753
+ }, "strip", z.ZodTypeAny, {
754
+ key: string;
755
+ secret: string;
756
+ active: boolean;
757
+ channel: {
758
+ type: "HTTP";
759
+ url: string;
760
+ } | {
761
+ type: "SMTP";
762
+ } | {
763
+ type: "SQS";
764
+ };
765
+ params?: any;
766
+ data?: DeserializedJson | undefined;
767
+ clientId?: string | undefined;
768
+ }, {
769
+ key: string;
770
+ secret: string;
771
+ active: boolean;
772
+ channel: {
773
+ type: "HTTP";
774
+ url: string;
775
+ } | {
776
+ type: "SMTP";
777
+ } | {
778
+ type: "SQS";
779
+ };
780
+ params?: any;
781
+ data?: DeserializedJson | undefined;
782
+ clientId?: string | undefined;
783
+ }>;
784
+ options: z.ZodIntersection<z.ZodObject<{
785
+ event: z.ZodObject<{
786
+ desired: z.ZodArray<z.ZodString, "many">;
787
+ missing: z.ZodArray<z.ZodString, "many">;
788
+ orphaned: z.ZodArray<z.ZodString, "many">;
789
+ }, "strip", z.ZodTypeAny, {
790
+ desired: string[];
791
+ missing: string[];
792
+ orphaned: string[];
793
+ }, {
794
+ desired: string[];
795
+ missing: string[];
796
+ orphaned: string[];
797
+ }>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ event: {
800
+ desired: string[];
801
+ missing: string[];
802
+ orphaned: string[];
803
+ };
804
+ }, {
805
+ event: {
806
+ desired: string[];
807
+ missing: string[];
808
+ orphaned: string[];
809
+ };
810
+ }>, z.ZodRecord<z.ZodString, z.ZodObject<{
811
+ desired: z.ZodArray<z.ZodString, "many">;
812
+ missing: z.ZodArray<z.ZodString, "many">;
813
+ orphaned: z.ZodArray<z.ZodString, "many">;
814
+ }, "strip", z.ZodTypeAny, {
815
+ desired: string[];
816
+ missing: string[];
817
+ orphaned: string[];
818
+ }, {
819
+ desired: string[];
820
+ missing: string[];
821
+ orphaned: string[];
822
+ }>>>;
823
+ dynamicTriggerId: z.ZodOptional<z.ZodString>;
824
+ }, "strip", z.ZodTypeAny, {
825
+ options: {
826
+ event: {
827
+ desired: string[];
828
+ missing: string[];
829
+ orphaned: string[];
830
+ };
831
+ } & Record<string, {
832
+ desired: string[];
833
+ missing: string[];
834
+ orphaned: string[];
835
+ }>;
836
+ source: {
837
+ key: string;
838
+ secret: string;
839
+ active: boolean;
840
+ channel: {
841
+ type: "HTTP";
842
+ url: string;
843
+ } | {
844
+ type: "SMTP";
845
+ } | {
846
+ type: "SQS";
847
+ };
848
+ params?: any;
849
+ data?: DeserializedJson | undefined;
850
+ clientId?: string | undefined;
851
+ };
852
+ id: string;
853
+ dynamicTriggerId?: string | undefined;
854
+ }, {
855
+ options: {
856
+ event: {
857
+ desired: string[];
858
+ missing: string[];
859
+ orphaned: string[];
860
+ };
861
+ } & Record<string, {
862
+ desired: string[];
863
+ missing: string[];
864
+ orphaned: string[];
865
+ }>;
866
+ source: {
867
+ key: string;
868
+ secret: string;
869
+ active: boolean;
870
+ channel: {
871
+ type: "HTTP";
872
+ url: string;
873
+ } | {
874
+ type: "SMTP";
875
+ } | {
876
+ type: "SQS";
877
+ };
878
+ params?: any;
879
+ data?: DeserializedJson | undefined;
880
+ clientId?: string | undefined;
881
+ };
882
+ id: string;
883
+ dynamicTriggerId?: string | undefined;
884
+ }>;
885
+ type RegisterSourceEventV2 = z.infer<typeof RegisterSourceEventSchemaV2>;
653
886
  declare const TriggerSourceSchema: z.ZodObject<{
654
887
  id: z.ZodString;
655
888
  key: z.ZodString;
@@ -660,21 +893,54 @@ declare const TriggerSourceSchema: z.ZodObject<{
660
893
  key: string;
661
894
  id: string;
662
895
  }>;
896
+ declare const HttpSourceResponseMetadataSchema: z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>;
897
+ type HttpSourceResponseMetadata = z.infer<typeof HttpSourceResponseMetadataSchema>;
663
898
  declare const HandleTriggerSourceSchema: z.ZodObject<{
664
899
  key: z.ZodString;
665
900
  secret: z.ZodString;
666
901
  data: z.ZodAny;
667
902
  params: z.ZodAny;
903
+ auth: z.ZodOptional<z.ZodObject<{
904
+ type: z.ZodEnum<["oauth2"]>;
905
+ accessToken: z.ZodString;
906
+ scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
907
+ additionalFields: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
908
+ }, "strip", z.ZodTypeAny, {
909
+ type: "oauth2";
910
+ accessToken: string;
911
+ scopes?: string[] | undefined;
912
+ additionalFields?: Record<string, string> | undefined;
913
+ }, {
914
+ type: "oauth2";
915
+ accessToken: string;
916
+ scopes?: string[] | undefined;
917
+ additionalFields?: Record<string, string> | undefined;
918
+ }>>;
919
+ metadata: z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>;
668
920
  }, "strip", z.ZodTypeAny, {
669
921
  key: string;
670
922
  secret: string;
671
923
  data?: any;
672
924
  params?: any;
925
+ auth?: {
926
+ type: "oauth2";
927
+ accessToken: string;
928
+ scopes?: string[] | undefined;
929
+ additionalFields?: Record<string, string> | undefined;
930
+ } | undefined;
931
+ metadata?: DeserializedJson | undefined;
673
932
  }, {
674
933
  key: string;
675
934
  secret: string;
676
935
  data?: any;
677
936
  params?: any;
937
+ auth?: {
938
+ type: "oauth2";
939
+ accessToken: string;
940
+ scopes?: string[] | undefined;
941
+ additionalFields?: Record<string, string> | undefined;
942
+ } | undefined;
943
+ metadata?: DeserializedJson | undefined;
678
944
  }>;
679
945
  type HandleTriggerSource = z.infer<typeof HandleTriggerSourceSchema>;
680
946
  type TriggerSource = z.infer<typeof TriggerSourceSchema>;
@@ -704,6 +970,15 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
704
970
  "x-ts-http-url": z.ZodString;
705
971
  "x-ts-http-method": z.ZodString;
706
972
  "x-ts-http-headers": z.ZodEffects<z.ZodString, Record<string, string>, string>;
973
+ "x-ts-auth": z.ZodEffects<z.ZodOptional<z.ZodString>, {
974
+ type: "oauth2";
975
+ accessToken: string;
976
+ scopes?: string[] | undefined;
977
+ additionalFields?: Record<string, string> | undefined;
978
+ } | undefined, string | undefined>;
979
+ "x-ts-metadata": z.ZodEffects<z.ZodOptional<z.ZodString>, string | number | boolean | {
980
+ [key: string]: DeserializedJson;
981
+ } | DeserializedJson[] | null | undefined, string | undefined>;
707
982
  }, "strip", z.ZodTypeAny, {
708
983
  "x-ts-key": string;
709
984
  "x-ts-secret": string;
@@ -713,6 +988,15 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
713
988
  "x-ts-dynamic-id"?: string | undefined;
714
989
  "x-ts-data"?: any;
715
990
  "x-ts-params"?: any;
991
+ "x-ts-auth"?: {
992
+ type: "oauth2";
993
+ accessToken: string;
994
+ scopes?: string[] | undefined;
995
+ additionalFields?: Record<string, string> | undefined;
996
+ } | undefined;
997
+ "x-ts-metadata"?: string | number | boolean | {
998
+ [key: string]: DeserializedJson;
999
+ } | DeserializedJson[] | null | undefined;
716
1000
  }, {
717
1001
  "x-ts-key": string;
718
1002
  "x-ts-secret": string;
@@ -722,6 +1006,8 @@ declare const HttpSourceRequestHeadersSchema: z.ZodObject<{
722
1006
  "x-ts-http-method": string;
723
1007
  "x-ts-http-headers": string;
724
1008
  "x-ts-dynamic-id"?: string | undefined;
1009
+ "x-ts-auth"?: string | undefined;
1010
+ "x-ts-metadata"?: string | undefined;
725
1011
  }>;
726
1012
  type HttpSourceRequestHeaders = z.output<typeof HttpSourceRequestHeadersSchema>;
727
1013
  declare const PongSuccessResponseSchema: z.ZodObject<{
@@ -1071,6 +1357,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1071
1357
  startPosition: z.ZodEnum<["initial", "latest"]>;
1072
1358
  preprocessRuns: z.ZodBoolean;
1073
1359
  }, "strip", z.ZodTypeAny, {
1360
+ version: string;
1074
1361
  name: string;
1075
1362
  event: {
1076
1363
  name: (string | string[]) & (string | string[] | undefined);
@@ -1092,7 +1379,6 @@ declare const JobMetadataSchema: z.ZodObject<{
1092
1379
  }[] | undefined;
1093
1380
  };
1094
1381
  id: string;
1095
- version: string;
1096
1382
  trigger: {
1097
1383
  type: "dynamic";
1098
1384
  id: string;
@@ -1140,6 +1426,7 @@ declare const JobMetadataSchema: z.ZodObject<{
1140
1426
  startPosition: "initial" | "latest";
1141
1427
  preprocessRuns: boolean;
1142
1428
  }, {
1429
+ version: string;
1143
1430
  name: string;
1144
1431
  event: {
1145
1432
  name: (string | string[]) & (string | string[] | undefined);
@@ -1161,7 +1448,6 @@ declare const JobMetadataSchema: z.ZodObject<{
1161
1448
  }[] | undefined;
1162
1449
  };
1163
1450
  id: string;
1164
- version: string;
1165
1451
  trigger: {
1166
1452
  type: "dynamic";
1167
1453
  id: string;
@@ -1210,7 +1496,8 @@ declare const JobMetadataSchema: z.ZodObject<{
1210
1496
  internal?: boolean | undefined;
1211
1497
  }>;
1212
1498
  type JobMetadata = z.infer<typeof JobMetadataSchema>;
1213
- declare const SourceMetadataSchema: z.ZodObject<{
1499
+ declare const SourceMetadataV1Schema: z.ZodObject<{
1500
+ version: z.ZodLiteral<"1">;
1214
1501
  channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
1215
1502
  integration: z.ZodObject<{
1216
1503
  id: z.ZodString;
@@ -1252,14 +1539,15 @@ declare const SourceMetadataSchema: z.ZodObject<{
1252
1539
  id: z.ZodString;
1253
1540
  version: z.ZodString;
1254
1541
  }, "strip", z.ZodTypeAny, {
1255
- id: string;
1256
1542
  version: string;
1257
- }, {
1258
1543
  id: string;
1544
+ }, {
1259
1545
  version: string;
1546
+ id: string;
1260
1547
  }>>;
1261
1548
  }, "strip", z.ZodTypeAny, {
1262
1549
  key: string;
1550
+ version: "1";
1263
1551
  channel: "HTTP" | "SMTP" | "SQS";
1264
1552
  events: string[];
1265
1553
  integration: {
@@ -1273,11 +1561,12 @@ declare const SourceMetadataSchema: z.ZodObject<{
1273
1561
  };
1274
1562
  params?: any;
1275
1563
  registerSourceJob?: {
1276
- id: string;
1277
1564
  version: string;
1565
+ id: string;
1278
1566
  } | undefined;
1279
1567
  }, {
1280
1568
  key: string;
1569
+ version: "1";
1281
1570
  channel: "HTTP" | "SMTP" | "SQS";
1282
1571
  events: string[];
1283
1572
  integration: {
@@ -1291,11 +1580,100 @@ declare const SourceMetadataSchema: z.ZodObject<{
1291
1580
  };
1292
1581
  params?: any;
1293
1582
  registerSourceJob?: {
1583
+ version: string;
1294
1584
  id: string;
1585
+ } | undefined;
1586
+ }>;
1587
+ type SourceMetadataV1 = z.infer<typeof SourceMetadataV1Schema>;
1588
+ declare const SourceMetadataV2Schema: z.ZodObject<{
1589
+ version: z.ZodLiteral<"2">;
1590
+ channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
1591
+ integration: z.ZodObject<{
1592
+ id: z.ZodString;
1593
+ metadata: z.ZodObject<{
1594
+ id: z.ZodString;
1595
+ name: z.ZodString;
1596
+ instructions: z.ZodOptional<z.ZodString>;
1597
+ }, "strip", z.ZodTypeAny, {
1598
+ name: string;
1599
+ id: string;
1600
+ instructions?: string | undefined;
1601
+ }, {
1602
+ name: string;
1603
+ id: string;
1604
+ instructions?: string | undefined;
1605
+ }>;
1606
+ authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
1607
+ }, "strip", z.ZodTypeAny, {
1608
+ id: string;
1609
+ metadata: {
1610
+ name: string;
1611
+ id: string;
1612
+ instructions?: string | undefined;
1613
+ };
1614
+ authSource: "HOSTED" | "LOCAL";
1615
+ }, {
1616
+ id: string;
1617
+ metadata: {
1618
+ name: string;
1619
+ id: string;
1620
+ instructions?: string | undefined;
1621
+ };
1622
+ authSource: "HOSTED" | "LOCAL";
1623
+ }>;
1624
+ key: z.ZodString;
1625
+ params: z.ZodAny;
1626
+ options: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
1627
+ registerSourceJob: z.ZodOptional<z.ZodObject<{
1628
+ id: z.ZodString;
1629
+ version: z.ZodString;
1630
+ }, "strip", z.ZodTypeAny, {
1295
1631
  version: string;
1632
+ id: string;
1633
+ }, {
1634
+ version: string;
1635
+ id: string;
1636
+ }>>;
1637
+ }, "strip", z.ZodTypeAny, {
1638
+ key: string;
1639
+ version: "2";
1640
+ options: Record<string, string[]>;
1641
+ channel: "HTTP" | "SMTP" | "SQS";
1642
+ integration: {
1643
+ id: string;
1644
+ metadata: {
1645
+ name: string;
1646
+ id: string;
1647
+ instructions?: string | undefined;
1648
+ };
1649
+ authSource: "HOSTED" | "LOCAL";
1650
+ };
1651
+ params?: any;
1652
+ registerSourceJob?: {
1653
+ version: string;
1654
+ id: string;
1655
+ } | undefined;
1656
+ }, {
1657
+ key: string;
1658
+ version: "2";
1659
+ options: Record<string, string[]>;
1660
+ channel: "HTTP" | "SMTP" | "SQS";
1661
+ integration: {
1662
+ id: string;
1663
+ metadata: {
1664
+ name: string;
1665
+ id: string;
1666
+ instructions?: string | undefined;
1667
+ };
1668
+ authSource: "HOSTED" | "LOCAL";
1669
+ };
1670
+ params?: any;
1671
+ registerSourceJob?: {
1672
+ version: string;
1673
+ id: string;
1296
1674
  } | undefined;
1297
1675
  }>;
1298
- type SourceMetadata = z.infer<typeof SourceMetadataSchema>;
1676
+ type SourceMetadataV2 = z.infer<typeof SourceMetadataV2Schema>;
1299
1677
  declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1300
1678
  id: z.ZodString;
1301
1679
  jobs: z.ZodArray<z.ZodObject<Pick<{
@@ -1559,42 +1937,42 @@ declare const DynamicTriggerEndpointMetadataSchema: z.ZodObject<{
1559
1937
  enabled: z.ZodBoolean;
1560
1938
  startPosition: z.ZodEnum<["initial", "latest"]>;
1561
1939
  preprocessRuns: z.ZodBoolean;
1562
- }, "id" | "version">, "strip", z.ZodTypeAny, {
1563
- id: string;
1940
+ }, "version" | "id">, "strip", z.ZodTypeAny, {
1564
1941
  version: string;
1565
- }, {
1566
1942
  id: string;
1943
+ }, {
1567
1944
  version: string;
1945
+ id: string;
1568
1946
  }>, "many">;
1569
1947
  registerSourceJob: z.ZodOptional<z.ZodObject<{
1570
1948
  id: z.ZodString;
1571
1949
  version: z.ZodString;
1572
1950
  }, "strip", z.ZodTypeAny, {
1573
- id: string;
1574
1951
  version: string;
1575
- }, {
1576
1952
  id: string;
1953
+ }, {
1577
1954
  version: string;
1955
+ id: string;
1578
1956
  }>>;
1579
1957
  }, "strip", z.ZodTypeAny, {
1580
1958
  id: string;
1581
1959
  jobs: {
1582
- id: string;
1583
1960
  version: string;
1961
+ id: string;
1584
1962
  }[];
1585
1963
  registerSourceJob?: {
1586
- id: string;
1587
1964
  version: string;
1965
+ id: string;
1588
1966
  } | undefined;
1589
1967
  }, {
1590
1968
  id: string;
1591
1969
  jobs: {
1592
- id: string;
1593
1970
  version: string;
1971
+ id: string;
1594
1972
  }[];
1595
1973
  registerSourceJob?: {
1596
- id: string;
1597
1974
  version: string;
1975
+ id: string;
1598
1976
  } | undefined;
1599
1977
  }>;
1600
1978
  type DynamicTriggerEndpointMetadata = z.infer<typeof DynamicTriggerEndpointMetadataSchema>;
@@ -1861,6 +2239,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
1861
2239
  startPosition: z.ZodEnum<["initial", "latest"]>;
1862
2240
  preprocessRuns: z.ZodBoolean;
1863
2241
  }, "strip", z.ZodTypeAny, {
2242
+ version: string;
1864
2243
  name: string;
1865
2244
  event: {
1866
2245
  name: (string | string[]) & (string | string[] | undefined);
@@ -1882,7 +2261,6 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
1882
2261
  }[] | undefined;
1883
2262
  };
1884
2263
  id: string;
1885
- version: string;
1886
2264
  trigger: {
1887
2265
  type: "dynamic";
1888
2266
  id: string;
@@ -1930,6 +2308,7 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
1930
2308
  startPosition: "initial" | "latest";
1931
2309
  preprocessRuns: boolean;
1932
2310
  }, {
2311
+ version: string;
1933
2312
  name: string;
1934
2313
  event: {
1935
2314
  name: (string | string[]) & (string | string[] | undefined);
@@ -1951,7 +2330,6 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
1951
2330
  }[] | undefined;
1952
2331
  };
1953
2332
  id: string;
1954
- version: string;
1955
2333
  trigger: {
1956
2334
  type: "dynamic";
1957
2335
  id: string;
@@ -1999,7 +2377,8 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
1999
2377
  preprocessRuns: boolean;
2000
2378
  internal?: boolean | undefined;
2001
2379
  }>, "many">;
2002
- sources: z.ZodArray<z.ZodObject<{
2380
+ sources: z.ZodArray<z.ZodEffects<z.ZodDiscriminatedUnion<"version", [z.ZodObject<{
2381
+ version: z.ZodLiteral<"1">;
2003
2382
  channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
2004
2383
  integration: z.ZodObject<{
2005
2384
  id: z.ZodString;
@@ -2041,14 +2420,15 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2041
2420
  id: z.ZodString;
2042
2421
  version: z.ZodString;
2043
2422
  }, "strip", z.ZodTypeAny, {
2044
- id: string;
2045
2423
  version: string;
2046
- }, {
2047
2424
  id: string;
2425
+ }, {
2048
2426
  version: string;
2427
+ id: string;
2049
2428
  }>>;
2050
2429
  }, "strip", z.ZodTypeAny, {
2051
2430
  key: string;
2431
+ version: "1";
2052
2432
  channel: "HTTP" | "SMTP" | "SQS";
2053
2433
  events: string[];
2054
2434
  integration: {
@@ -2062,11 +2442,118 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2062
2442
  };
2063
2443
  params?: any;
2064
2444
  registerSourceJob?: {
2445
+ version: string;
2446
+ id: string;
2447
+ } | undefined;
2448
+ }, {
2449
+ key: string;
2450
+ version: "1";
2451
+ channel: "HTTP" | "SMTP" | "SQS";
2452
+ events: string[];
2453
+ integration: {
2065
2454
  id: string;
2455
+ metadata: {
2456
+ name: string;
2457
+ id: string;
2458
+ instructions?: string | undefined;
2459
+ };
2460
+ authSource: "HOSTED" | "LOCAL";
2461
+ };
2462
+ params?: any;
2463
+ registerSourceJob?: {
2066
2464
  version: string;
2465
+ id: string;
2466
+ } | undefined;
2467
+ }>, z.ZodObject<{
2468
+ version: z.ZodLiteral<"2">;
2469
+ channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
2470
+ integration: z.ZodObject<{
2471
+ id: z.ZodString;
2472
+ metadata: z.ZodObject<{
2473
+ id: z.ZodString;
2474
+ name: z.ZodString;
2475
+ instructions: z.ZodOptional<z.ZodString>;
2476
+ }, "strip", z.ZodTypeAny, {
2477
+ name: string;
2478
+ id: string;
2479
+ instructions?: string | undefined;
2480
+ }, {
2481
+ name: string;
2482
+ id: string;
2483
+ instructions?: string | undefined;
2484
+ }>;
2485
+ authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
2486
+ }, "strip", z.ZodTypeAny, {
2487
+ id: string;
2488
+ metadata: {
2489
+ name: string;
2490
+ id: string;
2491
+ instructions?: string | undefined;
2492
+ };
2493
+ authSource: "HOSTED" | "LOCAL";
2494
+ }, {
2495
+ id: string;
2496
+ metadata: {
2497
+ name: string;
2498
+ id: string;
2499
+ instructions?: string | undefined;
2500
+ };
2501
+ authSource: "HOSTED" | "LOCAL";
2502
+ }>;
2503
+ key: z.ZodString;
2504
+ params: z.ZodAny;
2505
+ options: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
2506
+ registerSourceJob: z.ZodOptional<z.ZodObject<{
2507
+ id: z.ZodString;
2508
+ version: z.ZodString;
2509
+ }, "strip", z.ZodTypeAny, {
2510
+ version: string;
2511
+ id: string;
2512
+ }, {
2513
+ version: string;
2514
+ id: string;
2515
+ }>>;
2516
+ }, "strip", z.ZodTypeAny, {
2517
+ key: string;
2518
+ version: "2";
2519
+ options: Record<string, string[]>;
2520
+ channel: "HTTP" | "SMTP" | "SQS";
2521
+ integration: {
2522
+ id: string;
2523
+ metadata: {
2524
+ name: string;
2525
+ id: string;
2526
+ instructions?: string | undefined;
2527
+ };
2528
+ authSource: "HOSTED" | "LOCAL";
2529
+ };
2530
+ params?: any;
2531
+ registerSourceJob?: {
2532
+ version: string;
2533
+ id: string;
2067
2534
  } | undefined;
2068
2535
  }, {
2069
2536
  key: string;
2537
+ version: "2";
2538
+ options: Record<string, string[]>;
2539
+ channel: "HTTP" | "SMTP" | "SQS";
2540
+ integration: {
2541
+ id: string;
2542
+ metadata: {
2543
+ name: string;
2544
+ id: string;
2545
+ instructions?: string | undefined;
2546
+ };
2547
+ authSource: "HOSTED" | "LOCAL";
2548
+ };
2549
+ params?: any;
2550
+ registerSourceJob?: {
2551
+ version: string;
2552
+ id: string;
2553
+ } | undefined;
2554
+ }>]>, {
2555
+ key: string;
2556
+ version: "1";
2070
2557
  channel: "HTTP" | "SMTP" | "SQS";
2071
2558
  events: string[];
2072
2559
  integration: {
@@ -2080,10 +2567,29 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2080
2567
  };
2081
2568
  params?: any;
2082
2569
  registerSourceJob?: {
2570
+ version: string;
2571
+ id: string;
2572
+ } | undefined;
2573
+ } | {
2574
+ key: string;
2575
+ version: "2";
2576
+ options: Record<string, string[]>;
2577
+ channel: "HTTP" | "SMTP" | "SQS";
2578
+ integration: {
2083
2579
  id: string;
2580
+ metadata: {
2581
+ name: string;
2582
+ id: string;
2583
+ instructions?: string | undefined;
2584
+ };
2585
+ authSource: "HOSTED" | "LOCAL";
2586
+ };
2587
+ params?: any;
2588
+ registerSourceJob?: {
2084
2589
  version: string;
2590
+ id: string;
2085
2591
  } | undefined;
2086
- }>, "many">;
2592
+ }, unknown>, "many">;
2087
2593
  dynamicTriggers: z.ZodArray<z.ZodObject<{
2088
2594
  id: z.ZodString;
2089
2595
  jobs: z.ZodArray<z.ZodObject<Pick<{
@@ -2347,42 +2853,42 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2347
2853
  enabled: z.ZodBoolean;
2348
2854
  startPosition: z.ZodEnum<["initial", "latest"]>;
2349
2855
  preprocessRuns: z.ZodBoolean;
2350
- }, "id" | "version">, "strip", z.ZodTypeAny, {
2351
- id: string;
2856
+ }, "version" | "id">, "strip", z.ZodTypeAny, {
2352
2857
  version: string;
2353
- }, {
2354
2858
  id: string;
2859
+ }, {
2355
2860
  version: string;
2861
+ id: string;
2356
2862
  }>, "many">;
2357
2863
  registerSourceJob: z.ZodOptional<z.ZodObject<{
2358
2864
  id: z.ZodString;
2359
2865
  version: z.ZodString;
2360
2866
  }, "strip", z.ZodTypeAny, {
2361
- id: string;
2362
2867
  version: string;
2363
- }, {
2364
2868
  id: string;
2869
+ }, {
2365
2870
  version: string;
2871
+ id: string;
2366
2872
  }>>;
2367
2873
  }, "strip", z.ZodTypeAny, {
2368
2874
  id: string;
2369
2875
  jobs: {
2370
- id: string;
2371
2876
  version: string;
2877
+ id: string;
2372
2878
  }[];
2373
2879
  registerSourceJob?: {
2374
- id: string;
2375
2880
  version: string;
2881
+ id: string;
2376
2882
  } | undefined;
2377
2883
  }, {
2378
2884
  id: string;
2379
2885
  jobs: {
2380
- id: string;
2381
2886
  version: string;
2887
+ id: string;
2382
2888
  }[];
2383
2889
  registerSourceJob?: {
2384
- id: string;
2385
2890
  version: string;
2891
+ id: string;
2386
2892
  } | undefined;
2387
2893
  }>, "many">;
2388
2894
  dynamicSchedules: z.ZodArray<z.ZodObject<{
@@ -2391,27 +2897,28 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2391
2897
  id: z.ZodString;
2392
2898
  version: z.ZodString;
2393
2899
  }, "strip", z.ZodTypeAny, {
2394
- id: string;
2395
2900
  version: string;
2396
- }, {
2397
2901
  id: string;
2902
+ }, {
2398
2903
  version: string;
2904
+ id: string;
2399
2905
  }>, "many">;
2400
2906
  }, "strip", z.ZodTypeAny, {
2401
2907
  id: string;
2402
2908
  jobs: {
2403
- id: string;
2404
2909
  version: string;
2910
+ id: string;
2405
2911
  }[];
2406
2912
  }, {
2407
2913
  id: string;
2408
2914
  jobs: {
2409
- id: string;
2410
2915
  version: string;
2916
+ id: string;
2411
2917
  }[];
2412
2918
  }>, "many">;
2413
2919
  }, "strip", z.ZodTypeAny, {
2414
2920
  jobs: {
2921
+ version: string;
2415
2922
  name: string;
2416
2923
  event: {
2417
2924
  name: (string | string[]) & (string | string[] | undefined);
@@ -2433,7 +2940,6 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2433
2940
  }[] | undefined;
2434
2941
  };
2435
2942
  id: string;
2436
- version: string;
2437
2943
  trigger: {
2438
2944
  type: "dynamic";
2439
2945
  id: string;
@@ -2481,8 +2987,9 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2481
2987
  startPosition: "initial" | "latest";
2482
2988
  preprocessRuns: boolean;
2483
2989
  }[];
2484
- sources: {
2990
+ sources: ({
2485
2991
  key: string;
2992
+ version: "1";
2486
2993
  channel: "HTTP" | "SMTP" | "SQS";
2487
2994
  events: string[];
2488
2995
  integration: {
@@ -2496,30 +3003,50 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2496
3003
  };
2497
3004
  params?: any;
2498
3005
  registerSourceJob?: {
3006
+ version: string;
3007
+ id: string;
3008
+ } | undefined;
3009
+ } | {
3010
+ key: string;
3011
+ version: "2";
3012
+ options: Record<string, string[]>;
3013
+ channel: "HTTP" | "SMTP" | "SQS";
3014
+ integration: {
2499
3015
  id: string;
3016
+ metadata: {
3017
+ name: string;
3018
+ id: string;
3019
+ instructions?: string | undefined;
3020
+ };
3021
+ authSource: "HOSTED" | "LOCAL";
3022
+ };
3023
+ params?: any;
3024
+ registerSourceJob?: {
2500
3025
  version: string;
3026
+ id: string;
2501
3027
  } | undefined;
2502
- }[];
3028
+ })[];
2503
3029
  dynamicTriggers: {
2504
3030
  id: string;
2505
3031
  jobs: {
2506
- id: string;
2507
3032
  version: string;
3033
+ id: string;
2508
3034
  }[];
2509
3035
  registerSourceJob?: {
2510
- id: string;
2511
3036
  version: string;
3037
+ id: string;
2512
3038
  } | undefined;
2513
3039
  }[];
2514
3040
  dynamicSchedules: {
2515
3041
  id: string;
2516
3042
  jobs: {
2517
- id: string;
2518
3043
  version: string;
3044
+ id: string;
2519
3045
  }[];
2520
3046
  }[];
2521
3047
  }, {
2522
3048
  jobs: {
3049
+ version: string;
2523
3050
  name: string;
2524
3051
  event: {
2525
3052
  name: (string | string[]) & (string | string[] | undefined);
@@ -2541,7 +3068,6 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2541
3068
  }[] | undefined;
2542
3069
  };
2543
3070
  id: string;
2544
- version: string;
2545
3071
  trigger: {
2546
3072
  type: "dynamic";
2547
3073
  id: string;
@@ -2589,41 +3115,23 @@ declare const IndexEndpointResponseSchema: z.ZodObject<{
2589
3115
  preprocessRuns: boolean;
2590
3116
  internal?: boolean | undefined;
2591
3117
  }[];
2592
- sources: {
2593
- key: string;
2594
- channel: "HTTP" | "SMTP" | "SQS";
2595
- events: string[];
2596
- integration: {
2597
- id: string;
2598
- metadata: {
2599
- name: string;
2600
- id: string;
2601
- instructions?: string | undefined;
2602
- };
2603
- authSource: "HOSTED" | "LOCAL";
2604
- };
2605
- params?: any;
2606
- registerSourceJob?: {
2607
- id: string;
2608
- version: string;
2609
- } | undefined;
2610
- }[];
3118
+ sources: unknown[];
2611
3119
  dynamicTriggers: {
2612
3120
  id: string;
2613
3121
  jobs: {
2614
- id: string;
2615
3122
  version: string;
3123
+ id: string;
2616
3124
  }[];
2617
3125
  registerSourceJob?: {
2618
- id: string;
2619
3126
  version: string;
3127
+ id: string;
2620
3128
  } | undefined;
2621
3129
  }[];
2622
3130
  dynamicSchedules: {
2623
3131
  id: string;
2624
3132
  jobs: {
2625
- id: string;
2626
3133
  version: string;
3134
+ id: string;
2627
3135
  }[];
2628
3136
  }[];
2629
3137
  }>;
@@ -2911,11 +3419,11 @@ declare const RunJobBodySchema: z.ZodObject<{
2911
3419
  id: z.ZodString;
2912
3420
  version: z.ZodString;
2913
3421
  }, "strip", z.ZodTypeAny, {
2914
- id: string;
2915
3422
  version: string;
2916
- }, {
2917
3423
  id: string;
3424
+ }, {
2918
3425
  version: string;
3426
+ id: string;
2919
3427
  }>;
2920
3428
  run: z.ZodObject<{
2921
3429
  id: z.ZodString;
@@ -3033,8 +3541,8 @@ declare const RunJobBodySchema: z.ZodObject<{
3033
3541
  cancelledAt?: Date | null | undefined;
3034
3542
  };
3035
3543
  job: {
3036
- id: string;
3037
3544
  version: string;
3545
+ id: string;
3038
3546
  };
3039
3547
  run: {
3040
3548
  id: string;
@@ -3090,8 +3598,8 @@ declare const RunJobBodySchema: z.ZodObject<{
3090
3598
  cancelledAt?: Date | null | undefined;
3091
3599
  };
3092
3600
  job: {
3093
- id: string;
3094
3601
  version: string;
3602
+ id: string;
3095
3603
  };
3096
3604
  run: {
3097
3605
  id: string;
@@ -4724,11 +5232,11 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
4724
5232
  id: z.ZodString;
4725
5233
  version: z.ZodString;
4726
5234
  }, "strip", z.ZodTypeAny, {
4727
- id: string;
4728
5235
  version: string;
4729
- }, {
4730
5236
  id: string;
5237
+ }, {
4731
5238
  version: string;
5239
+ id: string;
4732
5240
  }>;
4733
5241
  run: z.ZodObject<{
4734
5242
  id: z.ZodString;
@@ -4792,8 +5300,8 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
4792
5300
  cancelledAt?: Date | null | undefined;
4793
5301
  };
4794
5302
  job: {
4795
- id: string;
4796
5303
  version: string;
5304
+ id: string;
4797
5305
  };
4798
5306
  run: {
4799
5307
  id: string;
@@ -4829,8 +5337,8 @@ declare const PreprocessRunBodySchema: z.ZodObject<{
4829
5337
  cancelledAt?: Date | null | undefined;
4830
5338
  };
4831
5339
  job: {
4832
- id: string;
4833
5340
  version: string;
5341
+ id: string;
4834
5342
  };
4835
5343
  run: {
4836
5344
  id: string;
@@ -4977,7 +5485,7 @@ declare const RetryOptionsSchema: z.ZodObject<{
4977
5485
  type RetryOptions = z.infer<typeof RetryOptionsSchema>;
4978
5486
  declare const RunTaskOptionsSchema: z.ZodObject<{
4979
5487
  /** The name of the Task is required. This is displayed on the Task in the logs. */
4980
- name: z.ZodString;
5488
+ name: z.ZodOptional<z.ZodString>;
4981
5489
  /** The Task will wait and only start at the specified Date */
4982
5490
  delayUntil: z.ZodOptional<z.ZodDate>;
4983
5491
  /** Retry options */
@@ -5201,8 +5709,8 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5201
5709
  };
5202
5710
  }>]>>;
5203
5711
  }, "strip", z.ZodTypeAny, {
5204
- name: string;
5205
5712
  noop: boolean;
5713
+ name?: string | undefined;
5206
5714
  delayUntil?: Date | undefined;
5207
5715
  retry?: {
5208
5716
  limit?: number | undefined;
@@ -5263,7 +5771,7 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5263
5771
  };
5264
5772
  } | undefined;
5265
5773
  }, {
5266
- name: string;
5774
+ name?: string | undefined;
5267
5775
  delayUntil?: Date | undefined;
5268
5776
  retry?: {
5269
5777
  limit?: number | undefined;
@@ -5327,7 +5835,7 @@ declare const RunTaskOptionsSchema: z.ZodObject<{
5327
5835
  }>;
5328
5836
  type RunTaskOptions = z.input<typeof RunTaskOptionsSchema>;
5329
5837
  declare const RunTaskBodyInputSchema: z.ZodObject<{
5330
- name: z.ZodString;
5838
+ name: z.ZodOptional<z.ZodString>;
5331
5839
  params: z.ZodAny;
5332
5840
  style: z.ZodOptional<z.ZodObject<{
5333
5841
  style: z.ZodEnum<["normal", "minimal"]>;
@@ -5540,9 +6048,9 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5540
6048
  idempotencyKey: z.ZodString;
5541
6049
  parentId: z.ZodOptional<z.ZodString>;
5542
6050
  }, "strip", z.ZodTypeAny, {
5543
- name: string;
5544
6051
  noop: boolean;
5545
6052
  idempotencyKey: string;
6053
+ name?: string | undefined;
5546
6054
  params?: any;
5547
6055
  style?: {
5548
6056
  style: "normal" | "minimal";
@@ -5604,8 +6112,8 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5604
6112
  } | undefined;
5605
6113
  parentId?: string | undefined;
5606
6114
  }, {
5607
- name: string;
5608
6115
  idempotencyKey: string;
6116
+ name?: string | undefined;
5609
6117
  params?: any;
5610
6118
  style?: {
5611
6119
  style: "normal" | "minimal";
@@ -5670,7 +6178,7 @@ declare const RunTaskBodyInputSchema: z.ZodObject<{
5670
6178
  }>;
5671
6179
  type RunTaskBodyInput = z.infer<typeof RunTaskBodyInputSchema>;
5672
6180
  declare const RunTaskBodyOutputSchema: z.ZodObject<{
5673
- name: z.ZodString;
6181
+ name: z.ZodOptional<z.ZodString>;
5674
6182
  style: z.ZodOptional<z.ZodObject<{
5675
6183
  style: z.ZodEnum<["normal", "minimal"]>;
5676
6184
  variant: z.ZodOptional<z.ZodString>;
@@ -5883,9 +6391,9 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
5883
6391
  }>>;
5884
6392
  params: z.ZodNullable<z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>>;
5885
6393
  }, "strip", z.ZodTypeAny, {
5886
- name: string;
5887
6394
  noop: boolean;
5888
6395
  idempotencyKey: string;
6396
+ name?: string | undefined;
5889
6397
  style?: {
5890
6398
  style: "normal" | "minimal";
5891
6399
  variant?: string | undefined;
@@ -5947,8 +6455,8 @@ declare const RunTaskBodyOutputSchema: z.ZodObject<{
5947
6455
  } | undefined;
5948
6456
  params?: DeserializedJson | undefined;
5949
6457
  }, {
5950
- name: string;
5951
6458
  idempotencyKey: string;
6459
+ name?: string | undefined;
5952
6460
  style?: {
5953
6461
  style: "normal" | "minimal";
5954
6462
  variant?: string | undefined;
@@ -6171,6 +6679,7 @@ declare const HttpSourceResponseSchema: z.ZodObject<{
6171
6679
  timestamp?: Date | undefined;
6172
6680
  source?: string | undefined;
6173
6681
  }>, "many">;
6682
+ metadata: z.ZodOptional<z.ZodType<DeserializedJson, z.ZodTypeDef, DeserializedJson>>;
6174
6683
  }, "strip", z.ZodTypeAny, {
6175
6684
  events: {
6176
6685
  name: string;
@@ -6185,6 +6694,7 @@ declare const HttpSourceResponseSchema: z.ZodObject<{
6185
6694
  body?: any;
6186
6695
  headers?: Record<string, string> | undefined;
6187
6696
  };
6697
+ metadata?: DeserializedJson | undefined;
6188
6698
  }, {
6189
6699
  events: {
6190
6700
  name: string;
@@ -6199,8 +6709,9 @@ declare const HttpSourceResponseSchema: z.ZodObject<{
6199
6709
  body?: any;
6200
6710
  headers?: Record<string, string> | undefined;
6201
6711
  };
6712
+ metadata?: DeserializedJson | undefined;
6202
6713
  }>;
6203
- declare const RegisterTriggerBodySchema: z.ZodObject<{
6714
+ declare const RegisterTriggerBodySchemaV1: z.ZodObject<{
6204
6715
  rule: z.ZodObject<{
6205
6716
  event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
6206
6717
  source: z.ZodString;
@@ -6218,6 +6729,7 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6218
6729
  context?: EventFilter | undefined;
6219
6730
  }>;
6220
6731
  source: z.ZodObject<{
6732
+ version: z.ZodLiteral<"1">;
6221
6733
  channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
6222
6734
  integration: z.ZodObject<{
6223
6735
  id: z.ZodString;
@@ -6259,14 +6771,15 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6259
6771
  id: z.ZodString;
6260
6772
  version: z.ZodString;
6261
6773
  }, "strip", z.ZodTypeAny, {
6262
- id: string;
6263
6774
  version: string;
6264
- }, {
6265
6775
  id: string;
6776
+ }, {
6266
6777
  version: string;
6778
+ id: string;
6267
6779
  }>>;
6268
6780
  }, "strip", z.ZodTypeAny, {
6269
6781
  key: string;
6782
+ version: "1";
6270
6783
  channel: "HTTP" | "SMTP" | "SQS";
6271
6784
  events: string[];
6272
6785
  integration: {
@@ -6280,11 +6793,12 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6280
6793
  };
6281
6794
  params?: any;
6282
6795
  registerSourceJob?: {
6283
- id: string;
6284
6796
  version: string;
6797
+ id: string;
6285
6798
  } | undefined;
6286
6799
  }, {
6287
6800
  key: string;
6801
+ version: "1";
6288
6802
  channel: "HTTP" | "SMTP" | "SQS";
6289
6803
  events: string[];
6290
6804
  integration: {
@@ -6298,13 +6812,14 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6298
6812
  };
6299
6813
  params?: any;
6300
6814
  registerSourceJob?: {
6301
- id: string;
6302
6815
  version: string;
6816
+ id: string;
6303
6817
  } | undefined;
6304
6818
  }>;
6305
6819
  }, "strip", z.ZodTypeAny, {
6306
6820
  source: {
6307
6821
  key: string;
6822
+ version: "1";
6308
6823
  channel: "HTTP" | "SMTP" | "SQS";
6309
6824
  events: string[];
6310
6825
  integration: {
@@ -6318,8 +6833,8 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6318
6833
  };
6319
6834
  params?: any;
6320
6835
  registerSourceJob?: {
6321
- id: string;
6322
6836
  version: string;
6837
+ id: string;
6323
6838
  } | undefined;
6324
6839
  };
6325
6840
  rule: {
@@ -6331,6 +6846,7 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6331
6846
  }, {
6332
6847
  source: {
6333
6848
  key: string;
6849
+ version: "1";
6334
6850
  channel: "HTTP" | "SMTP" | "SQS";
6335
6851
  events: string[];
6336
6852
  integration: {
@@ -6344,8 +6860,169 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6344
6860
  };
6345
6861
  params?: any;
6346
6862
  registerSourceJob?: {
6863
+ version: string;
6864
+ id: string;
6865
+ } | undefined;
6866
+ };
6867
+ rule: {
6868
+ event: (string | string[]) & (string | string[] | undefined);
6869
+ source: string;
6870
+ payload?: EventFilter | undefined;
6871
+ context?: EventFilter | undefined;
6872
+ };
6873
+ }>;
6874
+ type RegisterTriggerBodyV1 = z.infer<typeof RegisterTriggerBodySchemaV1>;
6875
+ declare const RegisterTriggerBodySchemaV2: z.ZodObject<{
6876
+ rule: z.ZodObject<{
6877
+ event: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
6878
+ source: z.ZodString;
6879
+ payload: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
6880
+ context: z.ZodOptional<z.ZodType<EventFilter, z.ZodTypeDef, EventFilter>>;
6881
+ }, "strip", z.ZodTypeAny, {
6882
+ event: (string | string[]) & (string | string[] | undefined);
6883
+ source: string;
6884
+ payload?: EventFilter | undefined;
6885
+ context?: EventFilter | undefined;
6886
+ }, {
6887
+ event: (string | string[]) & (string | string[] | undefined);
6888
+ source: string;
6889
+ payload?: EventFilter | undefined;
6890
+ context?: EventFilter | undefined;
6891
+ }>;
6892
+ source: z.ZodObject<{
6893
+ version: z.ZodLiteral<"2">;
6894
+ channel: z.ZodEnum<["HTTP", "SQS", "SMTP"]>;
6895
+ integration: z.ZodObject<{
6896
+ id: z.ZodString;
6897
+ metadata: z.ZodObject<{
6898
+ id: z.ZodString;
6899
+ name: z.ZodString;
6900
+ instructions: z.ZodOptional<z.ZodString>;
6901
+ }, "strip", z.ZodTypeAny, {
6902
+ name: string;
6903
+ id: string;
6904
+ instructions?: string | undefined;
6905
+ }, {
6906
+ name: string;
6907
+ id: string;
6908
+ instructions?: string | undefined;
6909
+ }>;
6910
+ authSource: z.ZodEnum<["HOSTED", "LOCAL"]>;
6911
+ }, "strip", z.ZodTypeAny, {
6912
+ id: string;
6913
+ metadata: {
6914
+ name: string;
6915
+ id: string;
6916
+ instructions?: string | undefined;
6917
+ };
6918
+ authSource: "HOSTED" | "LOCAL";
6919
+ }, {
6920
+ id: string;
6921
+ metadata: {
6922
+ name: string;
6923
+ id: string;
6924
+ instructions?: string | undefined;
6925
+ };
6926
+ authSource: "HOSTED" | "LOCAL";
6927
+ }>;
6928
+ key: z.ZodString;
6929
+ params: z.ZodAny;
6930
+ options: z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>;
6931
+ registerSourceJob: z.ZodOptional<z.ZodObject<{
6932
+ id: z.ZodString;
6933
+ version: z.ZodString;
6934
+ }, "strip", z.ZodTypeAny, {
6935
+ version: string;
6936
+ id: string;
6937
+ }, {
6938
+ version: string;
6939
+ id: string;
6940
+ }>>;
6941
+ }, "strip", z.ZodTypeAny, {
6942
+ key: string;
6943
+ version: "2";
6944
+ options: Record<string, string[]>;
6945
+ channel: "HTTP" | "SMTP" | "SQS";
6946
+ integration: {
6947
+ id: string;
6948
+ metadata: {
6949
+ name: string;
6950
+ id: string;
6951
+ instructions?: string | undefined;
6952
+ };
6953
+ authSource: "HOSTED" | "LOCAL";
6954
+ };
6955
+ params?: any;
6956
+ registerSourceJob?: {
6957
+ version: string;
6958
+ id: string;
6959
+ } | undefined;
6960
+ }, {
6961
+ key: string;
6962
+ version: "2";
6963
+ options: Record<string, string[]>;
6964
+ channel: "HTTP" | "SMTP" | "SQS";
6965
+ integration: {
6966
+ id: string;
6967
+ metadata: {
6968
+ name: string;
6969
+ id: string;
6970
+ instructions?: string | undefined;
6971
+ };
6972
+ authSource: "HOSTED" | "LOCAL";
6973
+ };
6974
+ params?: any;
6975
+ registerSourceJob?: {
6976
+ version: string;
6977
+ id: string;
6978
+ } | undefined;
6979
+ }>;
6980
+ }, "strip", z.ZodTypeAny, {
6981
+ source: {
6982
+ key: string;
6983
+ version: "2";
6984
+ options: Record<string, string[]>;
6985
+ channel: "HTTP" | "SMTP" | "SQS";
6986
+ integration: {
6987
+ id: string;
6988
+ metadata: {
6989
+ name: string;
6990
+ id: string;
6991
+ instructions?: string | undefined;
6992
+ };
6993
+ authSource: "HOSTED" | "LOCAL";
6994
+ };
6995
+ params?: any;
6996
+ registerSourceJob?: {
6997
+ version: string;
6998
+ id: string;
6999
+ } | undefined;
7000
+ };
7001
+ rule: {
7002
+ event: (string | string[]) & (string | string[] | undefined);
7003
+ source: string;
7004
+ payload?: EventFilter | undefined;
7005
+ context?: EventFilter | undefined;
7006
+ };
7007
+ }, {
7008
+ source: {
7009
+ key: string;
7010
+ version: "2";
7011
+ options: Record<string, string[]>;
7012
+ channel: "HTTP" | "SMTP" | "SQS";
7013
+ integration: {
6347
7014
  id: string;
7015
+ metadata: {
7016
+ name: string;
7017
+ id: string;
7018
+ instructions?: string | undefined;
7019
+ };
7020
+ authSource: "HOSTED" | "LOCAL";
7021
+ };
7022
+ params?: any;
7023
+ registerSourceJob?: {
6348
7024
  version: string;
7025
+ id: string;
6349
7026
  } | undefined;
6350
7027
  };
6351
7028
  rule: {
@@ -6355,7 +7032,7 @@ declare const RegisterTriggerBodySchema: z.ZodObject<{
6355
7032
  context?: EventFilter | undefined;
6356
7033
  };
6357
7034
  }>;
6358
- type RegisterTriggerBody = z.infer<typeof RegisterTriggerBodySchema>;
7035
+ type RegisterTriggerBodyV2 = z.infer<typeof RegisterTriggerBodySchemaV2>;
6359
7036
  declare const InitializeTriggerBodySchema: z.ZodObject<{
6360
7037
  id: z.ZodString;
6361
7038
  params: z.ZodAny;
@@ -7260,23 +7937,23 @@ declare const RegisterDynamicSchedulePayloadSchema: z.ZodObject<{
7260
7937
  id: z.ZodString;
7261
7938
  version: z.ZodString;
7262
7939
  }, "strip", z.ZodTypeAny, {
7263
- id: string;
7264
7940
  version: string;
7265
- }, {
7266
7941
  id: string;
7942
+ }, {
7267
7943
  version: string;
7944
+ id: string;
7268
7945
  }>, "many">;
7269
7946
  }, "strip", z.ZodTypeAny, {
7270
7947
  id: string;
7271
7948
  jobs: {
7272
- id: string;
7273
7949
  version: string;
7950
+ id: string;
7274
7951
  }[];
7275
7952
  }, {
7276
7953
  id: string;
7277
7954
  jobs: {
7278
- id: string;
7279
7955
  version: string;
7956
+ id: string;
7280
7957
  }[];
7281
7958
  }>;
7282
7959
  type RegisterDynamicSchedulePayload = z.infer<typeof RegisterDynamicSchedulePayloadSchema>;
@@ -8382,6 +9059,8 @@ declare const GetRunsSchema: ZodObject<{
8382
9059
  nextCursor?: string | undefined;
8383
9060
  }>;
8384
9061
 
9062
+ declare function addMissingVersionField(val: unknown): unknown;
9063
+
8385
9064
  declare function deepMergeFilters(...filters: EventFilter[]): EventFilter;
8386
9065
 
8387
9066
  declare function calculateRetryAt(retryOptions: RetryOptions, attempts: number): Date | undefined;
@@ -8408,4 +9087,4 @@ declare function urlWithSearchParams(url: string, params: Record<string, string
8408
9087
 
8409
9088
  declare function eventFilterMatches(payload: any, filter: EventFilter): boolean;
8410
9089
 
8411
- export { ApiEventLog, ApiEventLogSchema, CachedTask, CachedTaskSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FetchOperation, FetchOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpEventSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, JobMetadata, JobMetadataSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, PongErrorResponseSchema, PongResponse, PongResponseSchema, PongSuccessResponseSchema, PreprocessRunBody, PreprocessRunBodySchema, PreprocessRunResponse, PreprocessRunResponseSchema, Prettify, QueueOptions, QueueOptionsSchema, REGISTER_SOURCE_EVENT, RawEvent, RawEventSchema, RedactSchema, RedactString, RedactStringSchema, RegisterCronScheduleBody, RegisterDynamicSchedulePayload, RegisterDynamicSchedulePayloadSchema, RegisterHTTPTriggerSourceBodySchema, RegisterIntervalScheduleBody, RegisterIntervalScheduleBodySchema, RegisterSMTPTriggerSourceBodySchema, RegisterSQSTriggerSourceBodySchema, RegisterScheduleBody, RegisterScheduleBodySchema, RegisterScheduleResponseBody, RegisterScheduleResponseBodySchema, RegisterSourceChannelBodySchema, RegisterSourceEvent, RegisterSourceEventSchema, RegisterTriggerBody, RegisterTriggerBodySchema, RegisterTriggerSource, RegisterTriggerSourceSchema, RetryOptions, RetryOptionsSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceMetadata, SourceMetadataSchema, StaticTriggerMetadataSchema, Style, StyleName, StyleSchema, TaskSchema, TaskStatus, TaskStatusSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBody, UpdateTriggerSourceBodySchema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, replacements, urlWithSearchParams };
9090
+ export { ApiEventLog, ApiEventLogSchema, CachedTask, CachedTaskSchema, ClientTask, CommonMissingConnectionNotificationPayloadSchema, CommonMissingConnectionNotificationResolvedPayloadSchema, CompleteTaskBodyInput, CompleteTaskBodyInputSchema, CompleteTaskBodyOutput, ConnectionAuth, ConnectionAuthSchema, CreateExternalConnectionBody, CreateExternalConnectionBodySchema, CreateRunResponseBody, CreateRunResponseBodySchema, CronMetadata, CronMetadataSchema, CronOptions, CronOptionsSchema, DeliverEventResponse, DeliverEventResponseSchema, DeserializedJson, DeserializedJsonSchema, DisplayPropertiesSchema, DisplayProperty, DisplayPropertySchema, DynamicTriggerEndpointMetadata, DynamicTriggerEndpointMetadataSchema, DynamicTriggerMetadataSchema, ErrorWithStack, ErrorWithStackSchema, EventExample, EventExampleSchema, EventFilter, EventFilterSchema, EventRule, EventRuleSchema, EventSpecificationSchema, ExampleReplacement, FailTaskBodyInput, FailTaskBodyInputSchema, FetchOperation, FetchOperationSchema, FetchRequestInit, FetchRequestInitSchema, FetchRetryBackoffStrategy, FetchRetryBackoffStrategySchema, FetchRetryHeadersStrategy, FetchRetryHeadersStrategySchema, FetchRetryOptions, FetchRetryOptionsSchema, FetchRetryStrategy, FetchRetryStrategySchema, GetEvent, GetEventSchema, GetRun, GetRunOptions, GetRunOptionsWithTaskDetails, GetRunSchema, GetRunsOptions, GetRunsSchema, HandleTriggerSource, HandleTriggerSourceSchema, HttpSourceRequest, HttpSourceRequestHeaders, HttpSourceRequestHeadersSchema, HttpSourceRequestSchema, HttpSourceResponseMetadata, HttpSourceResponseSchema, IndexEndpointResponse, IndexEndpointResponseSchema, InitializeCronScheduleBodySchema, InitializeTriggerBody, InitializeTriggerBodySchema, IntegrationConfig, IntegrationConfigSchema, IntegrationMetadata, IntegrationMetadataSchema, IntervalMetadata, IntervalMetadataSchema, IntervalOptions, IntervalOptionsSchema, JobMetadata, JobMetadataSchema, LogLevel, LogMessage, LogMessageSchema, Logger, MISSING_CONNECTION_NOTIFICATION, MISSING_CONNECTION_RESOLVED_NOTIFICATION, MissingConnectionNotificationPayload, MissingConnectionNotificationPayloadSchema, MissingConnectionResolvedNotificationPayload, MissingConnectionResolvedNotificationPayloadSchema, MissingDeveloperConnectionNotificationPayloadSchema, MissingDeveloperConnectionResolvedNotificationPayloadSchema, MissingExternalConnectionNotificationPayloadSchema, MissingExternalConnectionResolvedNotificationPayloadSchema, NormalizedRequest, NormalizedRequestSchema, NormalizedResponse, NormalizedResponseSchema, 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, RetryOptions, RetryOptionsSchema, RunJobBody, RunJobBodySchema, RunJobCanceledWithTask, RunJobCanceledWithTaskSchema, RunJobError, RunJobErrorSchema, RunJobResponse, RunJobResponseSchema, RunJobResumeWithTask, RunJobResumeWithTaskSchema, RunJobRetryWithTask, RunJobRetryWithTaskSchema, RunJobSuccess, RunJobSuccessSchema, RunSourceContextSchema, RunStatusSchema, RunTaskBodyInput, RunTaskBodyInputSchema, RunTaskBodyOutput, RunTaskBodyOutputSchema, RunTaskOptions, RunTaskOptionsSchema, RunTaskSchema, RunTaskWithSubtasks, RuntimeEnvironmentType, RuntimeEnvironmentTypeSchema, SCHEDULED_EVENT, ScheduleMetadata, ScheduleMetadataSchema, ScheduledPayload, ScheduledPayloadSchema, ScheduledTriggerMetadataSchema, SendEvent, SendEventBody, SendEventBodySchema, SendEventOptions, SendEventOptionsSchema, SerializableJson, SerializableJsonSchema, ServerTask, ServerTaskSchema, SourceEventOption, SourceMetadataV1, SourceMetadataV2, SourceMetadataV2Schema, StaticTriggerMetadataSchema, Style, StyleName, StyleSchema, TaskSchema, TaskStatus, TaskStatusSchema, TriggerMetadata, TriggerMetadataSchema, TriggerSource, TriggerSourceSchema, UpdateTriggerSourceBodyV1, UpdateTriggerSourceBodyV1Schema, UpdateTriggerSourceBodyV2, UpdateTriggerSourceBodyV2Schema, ValidateErrorResponseSchema, ValidateResponse, ValidateResponseSchema, ValidateSuccessResponseSchema, addMissingVersionField, calculateRetryAt, currentDate, currentTimestampMilliseconds, currentTimestampSeconds, deepMergeFilters, eventFilterMatches, replacements, urlWithSearchParams };