sendlit 0.2.0 → 0.3.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.mts CHANGED
@@ -39,7 +39,7 @@ declare class HttpClient {
39
39
  private send;
40
40
  }
41
41
 
42
- declare const routes$7: {
42
+ declare const routes$8: {
43
43
  create: {
44
44
  summary: "Create a contact";
45
45
  description: "Creates a contact (subscriber). If a contact with the same email already exists for this team, the existing contact is returned.";
@@ -122,15 +122,15 @@ declare const routes$7: {
122
122
  rowsPerPage: zod.ZodOptional<zod.ZodNumber>;
123
123
  }, "strip", zod.ZodTypeAny, {
124
124
  filter?: string | undefined;
125
- excludeFilter?: string | undefined;
126
125
  offset?: number | undefined;
126
+ excludeFilter?: string | undefined;
127
127
  q?: string | undefined;
128
128
  segmentId?: string | undefined;
129
129
  rowsPerPage?: number | undefined;
130
130
  }, {
131
131
  filter?: string | undefined;
132
- excludeFilter?: string | undefined;
133
132
  offset?: number | undefined;
133
+ excludeFilter?: string | undefined;
134
134
  q?: string | undefined;
135
135
  segmentId?: string | undefined;
136
136
  rowsPerPage?: number | undefined;
@@ -294,11 +294,11 @@ declare const routes$7: {
294
294
  reason: zod.ZodEnum<["invalid_email", "duplicate", "pending_confirmation", "unknown_status", "plan_limit_reached"]>;
295
295
  }, "strip", zod.ZodTypeAny, {
296
296
  email: string;
297
- reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
297
+ reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
298
298
  row?: number | undefined;
299
299
  }, {
300
300
  email: string;
301
- reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
301
+ reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
302
302
  row?: number | undefined;
303
303
  }>, "many">;
304
304
  }, "strip", zod.ZodTypeAny, {
@@ -306,7 +306,7 @@ declare const routes$7: {
306
306
  suppressed: number;
307
307
  skipped: {
308
308
  email: string;
309
- reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
309
+ reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
310
310
  row?: number | undefined;
311
311
  }[];
312
312
  updated: number;
@@ -316,7 +316,7 @@ declare const routes$7: {
316
316
  suppressed: number;
317
317
  skipped: {
318
318
  email: string;
319
- reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
319
+ reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
320
320
  row?: number | undefined;
321
321
  }[];
322
322
  updated: number;
@@ -600,8 +600,8 @@ declare const routes$7: {
600
600
  responses: {
601
601
  200: _ts_rest_core.ContractPlainType<{
602
602
  createdAt: string | null;
603
- emailId: string;
604
603
  sequenceId: string;
604
+ emailId: string;
605
605
  sequenceTitle: string;
606
606
  sequenceType: string;
607
607
  }[]>;
@@ -615,6 +615,118 @@ declare const routes$7: {
615
615
  };
616
616
  path: "/contacts/:contactId/deliveries";
617
617
  };
618
+ events: {
619
+ query: zod.ZodObject<{
620
+ page: zod.ZodOptional<zod.ZodNumber>;
621
+ limit: zod.ZodOptional<zod.ZodNumber>;
622
+ name: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>>;
623
+ }, "strip", zod.ZodTypeAny, {
624
+ name?: string | undefined;
625
+ page?: number | undefined;
626
+ limit?: number | undefined;
627
+ }, {
628
+ name?: string | undefined;
629
+ page?: number | undefined;
630
+ limit?: number | undefined;
631
+ }>;
632
+ summary: "List the custom events received for a contact";
633
+ description: "Newest first by occurredAt. `enrolledSequences` lists the sequences each event started.";
634
+ metadata: {
635
+ tag: string;
636
+ };
637
+ method: "GET";
638
+ responses: {
639
+ 200: zod.ZodObject<{
640
+ items: zod.ZodArray<zod.ZodObject<{
641
+ eventId: zod.ZodString;
642
+ name: zod.ZodString;
643
+ properties: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
644
+ occurredAt: zod.ZodString;
645
+ receivedAt: zod.ZodString;
646
+ source: zod.ZodEnum<["api", "session", "mcp"]>;
647
+ backfill: zod.ZodBoolean;
648
+ triggers: zod.ZodBoolean;
649
+ enrolledSequences: zod.ZodArray<zod.ZodObject<{
650
+ sequenceId: zod.ZodString;
651
+ title: zod.ZodString;
652
+ }, "strip", zod.ZodTypeAny, {
653
+ sequenceId: string;
654
+ title: string;
655
+ }, {
656
+ sequenceId: string;
657
+ title: string;
658
+ }>, "many">;
659
+ }, "strip", zod.ZodTypeAny, {
660
+ name: string;
661
+ source: "api" | "session" | "mcp";
662
+ properties: Record<string, unknown>;
663
+ occurredAt: string;
664
+ backfill: boolean;
665
+ eventId: string;
666
+ receivedAt: string;
667
+ triggers: boolean;
668
+ enrolledSequences: {
669
+ sequenceId: string;
670
+ title: string;
671
+ }[];
672
+ }, {
673
+ name: string;
674
+ source: "api" | "session" | "mcp";
675
+ properties: Record<string, unknown>;
676
+ occurredAt: string;
677
+ backfill: boolean;
678
+ eventId: string;
679
+ receivedAt: string;
680
+ triggers: boolean;
681
+ enrolledSequences: {
682
+ sequenceId: string;
683
+ title: string;
684
+ }[];
685
+ }>, "many">;
686
+ total: zod.ZodNumber;
687
+ }, "strip", zod.ZodTypeAny, {
688
+ items: {
689
+ name: string;
690
+ source: "api" | "session" | "mcp";
691
+ properties: Record<string, unknown>;
692
+ occurredAt: string;
693
+ backfill: boolean;
694
+ eventId: string;
695
+ receivedAt: string;
696
+ triggers: boolean;
697
+ enrolledSequences: {
698
+ sequenceId: string;
699
+ title: string;
700
+ }[];
701
+ }[];
702
+ total: number;
703
+ }, {
704
+ items: {
705
+ name: string;
706
+ source: "api" | "session" | "mcp";
707
+ properties: Record<string, unknown>;
708
+ occurredAt: string;
709
+ backfill: boolean;
710
+ eventId: string;
711
+ receivedAt: string;
712
+ triggers: boolean;
713
+ enrolledSequences: {
714
+ sequenceId: string;
715
+ title: string;
716
+ }[];
717
+ }[];
718
+ total: number;
719
+ }>;
720
+ 404: zod.ZodObject<{
721
+ error: zod.ZodString;
722
+ }, "strip", zod.ZodTypeAny, {
723
+ error: string;
724
+ }, {
725
+ error: string;
726
+ }>;
727
+ };
728
+ path: "/contacts/:contactId/events";
729
+ };
618
730
  remove: {
619
731
  summary: "Delete a contact";
620
732
  metadata: {
@@ -627,11 +739,13 @@ declare const routes$7: {
627
739
  path: "/contacts/:contactId";
628
740
  };
629
741
  };
630
- type Contact = Ok<typeof routes$7.get>;
631
- type CreateContactInput = Body<typeof routes$7.create>;
632
- type UpdateContactInput = Body<typeof routes$7.update>;
633
- type ListContactsQuery = Query<typeof routes$7.list>;
634
- type ContactDelivery = Ok<typeof routes$7.deliveries>[number];
742
+ type Contact = Ok<typeof routes$8.get>;
743
+ type CreateContactInput = Body<typeof routes$8.create>;
744
+ type UpdateContactInput = Body<typeof routes$8.update>;
745
+ type ListContactsQuery = Query<typeof routes$8.list>;
746
+ type ContactDelivery = Ok<typeof routes$8.deliveries>[number];
747
+ type ContactEvent = Ok<typeof routes$8.events>["items"][number];
748
+ type ListContactEventsQuery = Query<typeof routes$8.events>;
635
749
  declare class Contacts {
636
750
  private readonly http;
637
751
  constructor(http: HttpClient);
@@ -643,7 +757,7 @@ declare class Contacts {
643
757
  * here don't fire `tag:added`.
644
758
  */
645
759
  create(input: CreateContactInput): Promise<Contact>;
646
- list(query?: ListContactsQuery): Promise<Ok<typeof routes$7.list>>;
760
+ list(query?: ListContactsQuery): Promise<Ok<typeof routes$8.list>>;
647
761
  /** Iterates every contact matching `query`, fetching pages lazily. */
648
762
  listAll(query?: Omit<ListContactsQuery, "offset">): AsyncGenerator<Contact, void, undefined>;
649
763
  get(contactId: string): Promise<Contact>;
@@ -653,9 +767,12 @@ declare class Contacts {
653
767
  removeTag(contactId: string, tag: string): Promise<Contact>;
654
768
  /** Broadcast and sequence emails delivered to this contact. */
655
769
  deliveries(contactId: string): Promise<ContactDelivery[]>;
770
+ /** Custom events received for this contact, newest first, with the
771
+ * sequences each one started. */
772
+ events(contactId: string, query?: ListContactEventsQuery): Promise<Ok<typeof routes$8.events>>;
656
773
  }
657
774
 
658
- declare const routes$6: {
775
+ declare const routes$7: {
659
776
  list: {
660
777
  query: zod.ZodObject<{
661
778
  espId: zod.ZodOptional<zod.ZodString>;
@@ -705,28 +822,28 @@ declare const routes$6: {
705
822
  receivedAt: zod.ZodString;
706
823
  }, "strip", zod.ZodTypeAny, {
707
824
  espId: string | null;
825
+ occurredAt: string;
708
826
  eventId: string;
827
+ receivedAt: string;
709
828
  provider: string;
710
829
  deliverySourceType: "organization" | "team" | null;
711
830
  messageId: string | null;
712
831
  recipientEmail: string | null;
713
832
  eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
714
- occurredAt: string;
715
- receivedAt: string;
716
833
  reason?: string | null | undefined;
717
834
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
718
835
  smtpCode?: number | null | undefined;
719
836
  enhancedStatusCode?: string | null | undefined;
720
837
  }, {
721
838
  espId: string | null;
839
+ occurredAt: string;
722
840
  eventId: string;
841
+ receivedAt: string;
723
842
  provider: string;
724
843
  deliverySourceType: "organization" | "team" | null;
725
844
  messageId: string | null;
726
845
  recipientEmail: string | null;
727
846
  eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
728
- occurredAt: string;
729
- receivedAt: string;
730
847
  reason?: string | null | undefined;
731
848
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
732
849
  smtpCode?: number | null | undefined;
@@ -736,14 +853,14 @@ declare const routes$6: {
736
853
  }, "strip", zod.ZodTypeAny, {
737
854
  items: {
738
855
  espId: string | null;
856
+ occurredAt: string;
739
857
  eventId: string;
858
+ receivedAt: string;
740
859
  provider: string;
741
860
  deliverySourceType: "organization" | "team" | null;
742
861
  messageId: string | null;
743
862
  recipientEmail: string | null;
744
863
  eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
745
- occurredAt: string;
746
- receivedAt: string;
747
864
  reason?: string | null | undefined;
748
865
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
749
866
  smtpCode?: number | null | undefined;
@@ -753,14 +870,14 @@ declare const routes$6: {
753
870
  }, {
754
871
  items: {
755
872
  espId: string | null;
873
+ occurredAt: string;
756
874
  eventId: string;
875
+ receivedAt: string;
757
876
  provider: string;
758
877
  deliverySourceType: "organization" | "team" | null;
759
878
  messageId: string | null;
760
879
  recipientEmail: string | null;
761
880
  eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
762
- occurredAt: string;
763
- receivedAt: string;
764
881
  reason?: string | null | undefined;
765
882
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
766
883
  smtpCode?: number | null | undefined;
@@ -794,28 +911,28 @@ declare const routes$6: {
794
911
  receivedAt: zod.ZodString;
795
912
  }, "strip", zod.ZodTypeAny, {
796
913
  espId: string | null;
914
+ occurredAt: string;
797
915
  eventId: string;
916
+ receivedAt: string;
798
917
  provider: string;
799
918
  deliverySourceType: "organization" | "team" | null;
800
919
  messageId: string | null;
801
920
  recipientEmail: string | null;
802
921
  eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
803
- occurredAt: string;
804
- receivedAt: string;
805
922
  reason?: string | null | undefined;
806
923
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
807
924
  smtpCode?: number | null | undefined;
808
925
  enhancedStatusCode?: string | null | undefined;
809
926
  }, {
810
927
  espId: string | null;
928
+ occurredAt: string;
811
929
  eventId: string;
930
+ receivedAt: string;
812
931
  provider: string;
813
932
  deliverySourceType: "organization" | "team" | null;
814
933
  messageId: string | null;
815
934
  recipientEmail: string | null;
816
935
  eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
817
- occurredAt: string;
818
- receivedAt: string;
819
936
  reason?: string | null | undefined;
820
937
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
821
938
  smtpCode?: number | null | undefined;
@@ -832,18 +949,18 @@ declare const routes$6: {
832
949
  path: "/delivery-events/:eventId";
833
950
  };
834
951
  };
835
- type DeliveryEvent = Ok<typeof routes$6.get>;
836
- type ListDeliveryEventsQuery = Query<typeof routes$6.list>;
952
+ type DeliveryEvent = Ok<typeof routes$7.get>;
953
+ type ListDeliveryEventsQuery = Query<typeof routes$7.list>;
837
954
  /** Normalized delivery history (delivered, bounced, complained, …). */
838
955
  declare class DeliveryEvents {
839
956
  private readonly http;
840
957
  constructor(http: HttpClient);
841
- list(query?: ListDeliveryEventsQuery): Promise<Ok<typeof routes$6.list>>;
958
+ list(query?: ListDeliveryEventsQuery): Promise<Ok<typeof routes$7.list>>;
842
959
  listAll(query?: Omit<ListDeliveryEventsQuery, "offset">): AsyncGenerator<DeliveryEvent, void, undefined>;
843
960
  get(eventId: string): Promise<DeliveryEvent>;
844
961
  }
845
962
 
846
- declare const routes$5: {
963
+ declare const routes$6: {
847
964
  send: {
848
965
  summary: "Send a transactional email";
849
966
  description: "Requires a non-empty mailing address in the team's general settings. `templateId` must identify a team-owned transactional template; marketing templates return 422 template_not_transactional. Unguarded Liquid variables must be supplied in `variables`, or the API returns 422 missing_template_variables without creating a row or queue job. Inline `html` is sent verbatim without Liquid rendering. address, unsubscribe_link, and subscriber are marketing-only server-owned values and are unavailable to transactional templates.";
@@ -880,8 +997,8 @@ declare const routes$5: {
880
997
  espId?: string | undefined;
881
998
  }>]>>;
882
999
  }, "strip", zod.ZodTypeAny, {
883
- subject: string;
884
1000
  to: string;
1001
+ subject: string;
885
1002
  headers?: Record<string, string> | undefined;
886
1003
  idempotencyKey?: string | undefined;
887
1004
  text?: string | undefined;
@@ -898,8 +1015,8 @@ declare const routes$5: {
898
1015
  trackClicks?: boolean | undefined;
899
1016
  html?: string | undefined;
900
1017
  }, {
901
- subject: string;
902
1018
  to: string;
1019
+ subject: string;
903
1020
  headers?: Record<string, string> | undefined;
904
1021
  idempotencyKey?: string | undefined;
905
1022
  text?: string | undefined;
@@ -916,8 +1033,8 @@ declare const routes$5: {
916
1033
  trackClicks?: boolean | undefined;
917
1034
  html?: string | undefined;
918
1035
  }>, {
919
- subject: string;
920
1036
  to: string;
1037
+ subject: string;
921
1038
  headers?: Record<string, string> | undefined;
922
1039
  idempotencyKey?: string | undefined;
923
1040
  text?: string | undefined;
@@ -934,8 +1051,8 @@ declare const routes$5: {
934
1051
  trackClicks?: boolean | undefined;
935
1052
  html?: string | undefined;
936
1053
  }, {
937
- subject: string;
938
1054
  to: string;
1055
+ subject: string;
939
1056
  headers?: Record<string, string> | undefined;
940
1057
  idempotencyKey?: string | undefined;
941
1058
  text?: string | undefined;
@@ -952,8 +1069,8 @@ declare const routes$5: {
952
1069
  trackClicks?: boolean | undefined;
953
1070
  html?: string | undefined;
954
1071
  }>, {
955
- subject: string;
956
1072
  to: string;
1073
+ subject: string;
957
1074
  headers?: Record<string, string> | undefined;
958
1075
  idempotencyKey?: string | undefined;
959
1076
  text?: string | undefined;
@@ -970,8 +1087,8 @@ declare const routes$5: {
970
1087
  trackClicks?: boolean | undefined;
971
1088
  html?: string | undefined;
972
1089
  }, {
973
- subject: string;
974
1090
  to: string;
1091
+ subject: string;
975
1092
  headers?: Record<string, string> | undefined;
976
1093
  idempotencyKey?: string | undefined;
977
1094
  text?: string | undefined;
@@ -1099,13 +1216,13 @@ declare const routes$5: {
1099
1216
  updatedAt: string | null;
1100
1217
  replyTo: string | null;
1101
1218
  createdAt: string | null;
1219
+ from: string | null;
1220
+ to: string;
1102
1221
  subject: string;
1103
1222
  templateId: string | null;
1104
1223
  sentAt: string | null;
1105
- to: string;
1106
1224
  variables: Record<string, any>;
1107
1225
  txeId: string;
1108
- from: string | null;
1109
1226
  trackOpens: boolean;
1110
1227
  trackClicks: boolean;
1111
1228
  openCount: number;
@@ -1118,13 +1235,13 @@ declare const routes$5: {
1118
1235
  updatedAt: string | null;
1119
1236
  replyTo: string | null;
1120
1237
  createdAt: string | null;
1238
+ from: string | null;
1239
+ to: string;
1121
1240
  subject: string;
1122
1241
  templateId: string | null;
1123
1242
  sentAt: string | null;
1124
- to: string;
1125
1243
  variables: Record<string, any>;
1126
1244
  txeId: string;
1127
- from: string | null;
1128
1245
  trackOpens: boolean;
1129
1246
  trackClicks: boolean;
1130
1247
  openCount: number;
@@ -1140,151 +1257,773 @@ declare const routes$5: {
1140
1257
  error: string;
1141
1258
  }>;
1142
1259
  };
1143
- path: "/emails/:txeId";
1260
+ path: "/emails/:txeId";
1261
+ };
1262
+ list: {
1263
+ query: zod.ZodObject<{
1264
+ status: zod.ZodOptional<zod.ZodEnum<["queued", "sent", "failed", "bounced", "suppressed"]>>;
1265
+ createdAfter: zod.ZodOptional<zod.ZodNumber>;
1266
+ createdBefore: zod.ZodOptional<zod.ZodNumber>;
1267
+ offset: zod.ZodOptional<zod.ZodNumber>;
1268
+ itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
1269
+ }, "strip", zod.ZodTypeAny, {
1270
+ status?: "bounced" | "failed" | "sent" | "suppressed" | "queued" | undefined;
1271
+ offset?: number | undefined;
1272
+ itemsPerPage?: number | undefined;
1273
+ createdAfter?: number | undefined;
1274
+ createdBefore?: number | undefined;
1275
+ }, {
1276
+ status?: "bounced" | "failed" | "sent" | "suppressed" | "queued" | undefined;
1277
+ offset?: number | undefined;
1278
+ itemsPerPage?: number | undefined;
1279
+ createdAfter?: number | undefined;
1280
+ createdBefore?: number | undefined;
1281
+ }>;
1282
+ summary: "List transactional emails";
1283
+ metadata: {
1284
+ tag: string;
1285
+ };
1286
+ method: "GET";
1287
+ responses: {
1288
+ 200: zod.ZodObject<{
1289
+ items: zod.ZodArray<zod.ZodObject<{
1290
+ txeId: zod.ZodString;
1291
+ to: zod.ZodString;
1292
+ from: zod.ZodNullable<zod.ZodString>;
1293
+ replyTo: zod.ZodNullable<zod.ZodString>;
1294
+ subject: zod.ZodString;
1295
+ templateId: zod.ZodNullable<zod.ZodString>;
1296
+ variables: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
1297
+ status: zod.ZodEnum<["queued", "sent", "failed", "bounced", "suppressed"]>;
1298
+ error: zod.ZodNullable<zod.ZodString>;
1299
+ trackOpens: zod.ZodBoolean;
1300
+ trackClicks: zod.ZodBoolean;
1301
+ openCount: zod.ZodNumber;
1302
+ clickCount: zod.ZodNumber;
1303
+ sentAt: zod.ZodNullable<zod.ZodString>;
1304
+ createdAt: zod.ZodNullable<zod.ZodString>;
1305
+ updatedAt: zod.ZodNullable<zod.ZodString>;
1306
+ }, "strip", zod.ZodTypeAny, {
1307
+ error: string | null;
1308
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1309
+ updatedAt: string | null;
1310
+ replyTo: string | null;
1311
+ createdAt: string | null;
1312
+ from: string | null;
1313
+ to: string;
1314
+ subject: string;
1315
+ templateId: string | null;
1316
+ sentAt: string | null;
1317
+ variables: Record<string, any>;
1318
+ txeId: string;
1319
+ trackOpens: boolean;
1320
+ trackClicks: boolean;
1321
+ openCount: number;
1322
+ clickCount: number;
1323
+ }, {
1324
+ error: string | null;
1325
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1326
+ updatedAt: string | null;
1327
+ replyTo: string | null;
1328
+ createdAt: string | null;
1329
+ from: string | null;
1330
+ to: string;
1331
+ subject: string;
1332
+ templateId: string | null;
1333
+ sentAt: string | null;
1334
+ variables: Record<string, any>;
1335
+ txeId: string;
1336
+ trackOpens: boolean;
1337
+ trackClicks: boolean;
1338
+ openCount: number;
1339
+ clickCount: number;
1340
+ }>, "many">;
1341
+ total: zod.ZodNumber;
1342
+ }, "strip", zod.ZodTypeAny, {
1343
+ items: {
1344
+ error: string | null;
1345
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1346
+ updatedAt: string | null;
1347
+ replyTo: string | null;
1348
+ createdAt: string | null;
1349
+ from: string | null;
1350
+ to: string;
1351
+ subject: string;
1352
+ templateId: string | null;
1353
+ sentAt: string | null;
1354
+ variables: Record<string, any>;
1355
+ txeId: string;
1356
+ trackOpens: boolean;
1357
+ trackClicks: boolean;
1358
+ openCount: number;
1359
+ clickCount: number;
1360
+ }[];
1361
+ total: number;
1362
+ }, {
1363
+ items: {
1364
+ error: string | null;
1365
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1366
+ updatedAt: string | null;
1367
+ replyTo: string | null;
1368
+ createdAt: string | null;
1369
+ from: string | null;
1370
+ to: string;
1371
+ subject: string;
1372
+ templateId: string | null;
1373
+ sentAt: string | null;
1374
+ variables: Record<string, any>;
1375
+ txeId: string;
1376
+ trackOpens: boolean;
1377
+ trackClicks: boolean;
1378
+ openCount: number;
1379
+ clickCount: number;
1380
+ }[];
1381
+ total: number;
1382
+ }>;
1383
+ };
1384
+ path: "/emails";
1385
+ };
1386
+ };
1387
+ type SendEmailInput = Body<typeof routes$6.send>;
1388
+ type SendEmailResponse = Ok<typeof routes$6.send>;
1389
+ type TransactionalEmail = Ok<typeof routes$6.list>["items"][number];
1390
+ type TransactionalEmailDetail = Ok<typeof routes$6.get>;
1391
+ type ListEmailsQuery = Query<typeof routes$6.list>;
1392
+ /** Transactional (single, API-triggered) emails. */
1393
+ declare class Emails {
1394
+ private readonly http;
1395
+ constructor(http: HttpClient);
1396
+ /**
1397
+ * Queues one email and resolves with its id and initial status; poll
1398
+ * `get` for delivery progress. Passing `idempotencyKey` makes the call
1399
+ * safe to retry, so the SDK retries it on 5xx and network errors too.
1400
+ */
1401
+ send(input: SendEmailInput): Promise<SendEmailResponse>;
1402
+ get(txeId: string): Promise<TransactionalEmailDetail>;
1403
+ list(query?: ListEmailsQuery): Promise<Ok<typeof routes$6.list>>;
1404
+ listAll(query?: Omit<ListEmailsQuery, "offset">): AsyncGenerator<TransactionalEmail, void, undefined>;
1405
+ }
1406
+
1407
+ declare const routes$5: {
1408
+ track: {
1409
+ summary: "Track a custom event";
1410
+ description: "Stores the event, then starts every active sequence whose trigger is `event:custom` with this name and whose filters match. An unknown email creates the contact unless `createContact` is false (then 404). An unknown `contactId` is always 404. The same `idempotencyKey` within 30 days returns the original event with `duplicate: true`. Events with `backfill: true`, or an `occurredAt` more than 72 hours old, are stored but never start a sequence.";
1411
+ metadata: {
1412
+ tag: string;
1413
+ };
1414
+ method: "POST";
1415
+ body: zod.ZodEffects<zod.ZodEffects<zod.ZodObject<{
1416
+ email: zod.ZodOptional<zod.ZodString>;
1417
+ contactId: zod.ZodOptional<zod.ZodString>;
1418
+ eventName: zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>;
1419
+ properties: zod.ZodOptional<zod.ZodEffects<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>, Record<string, unknown>, Record<string, unknown>>>;
1420
+ occurredAt: zod.ZodOptional<zod.ZodString>;
1421
+ idempotencyKey: zod.ZodOptional<zod.ZodString>;
1422
+ backfill: zod.ZodOptional<zod.ZodBoolean>;
1423
+ createContact: zod.ZodOptional<zod.ZodBoolean>;
1424
+ contact: zod.ZodOptional<zod.ZodObject<{
1425
+ name: zod.ZodOptional<zod.ZodString>;
1426
+ customFields: zod.ZodOptional<zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, "many">]>>>>;
1427
+ }, "strict", zod.ZodTypeAny, {
1428
+ name?: string | undefined;
1429
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1430
+ }, {
1431
+ name?: string | undefined;
1432
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1433
+ }>>;
1434
+ }, "strict", zod.ZodTypeAny, {
1435
+ eventName: string;
1436
+ email?: string | undefined;
1437
+ idempotencyKey?: string | undefined;
1438
+ contactId?: string | undefined;
1439
+ properties?: Record<string, unknown> | undefined;
1440
+ occurredAt?: string | undefined;
1441
+ backfill?: boolean | undefined;
1442
+ createContact?: boolean | undefined;
1443
+ contact?: {
1444
+ name?: string | undefined;
1445
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1446
+ } | undefined;
1447
+ }, {
1448
+ eventName: string;
1449
+ email?: string | undefined;
1450
+ idempotencyKey?: string | undefined;
1451
+ contactId?: string | undefined;
1452
+ properties?: Record<string, unknown> | undefined;
1453
+ occurredAt?: string | undefined;
1454
+ backfill?: boolean | undefined;
1455
+ createContact?: boolean | undefined;
1456
+ contact?: {
1457
+ name?: string | undefined;
1458
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1459
+ } | undefined;
1460
+ }>, {
1461
+ eventName: string;
1462
+ email?: string | undefined;
1463
+ idempotencyKey?: string | undefined;
1464
+ contactId?: string | undefined;
1465
+ properties?: Record<string, unknown> | undefined;
1466
+ occurredAt?: string | undefined;
1467
+ backfill?: boolean | undefined;
1468
+ createContact?: boolean | undefined;
1469
+ contact?: {
1470
+ name?: string | undefined;
1471
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1472
+ } | undefined;
1473
+ }, {
1474
+ eventName: string;
1475
+ email?: string | undefined;
1476
+ idempotencyKey?: string | undefined;
1477
+ contactId?: string | undefined;
1478
+ properties?: Record<string, unknown> | undefined;
1479
+ occurredAt?: string | undefined;
1480
+ backfill?: boolean | undefined;
1481
+ createContact?: boolean | undefined;
1482
+ contact?: {
1483
+ name?: string | undefined;
1484
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1485
+ } | undefined;
1486
+ }>, {
1487
+ eventName: string;
1488
+ email?: string | undefined;
1489
+ idempotencyKey?: string | undefined;
1490
+ contactId?: string | undefined;
1491
+ properties?: Record<string, unknown> | undefined;
1492
+ occurredAt?: string | undefined;
1493
+ backfill?: boolean | undefined;
1494
+ createContact?: boolean | undefined;
1495
+ contact?: {
1496
+ name?: string | undefined;
1497
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1498
+ } | undefined;
1499
+ }, {
1500
+ eventName: string;
1501
+ email?: string | undefined;
1502
+ idempotencyKey?: string | undefined;
1503
+ contactId?: string | undefined;
1504
+ properties?: Record<string, unknown> | undefined;
1505
+ occurredAt?: string | undefined;
1506
+ backfill?: boolean | undefined;
1507
+ createContact?: boolean | undefined;
1508
+ contact?: {
1509
+ name?: string | undefined;
1510
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1511
+ } | undefined;
1512
+ }>;
1513
+ responses: {
1514
+ 202: zod.ZodObject<{
1515
+ eventId: zod.ZodString;
1516
+ contactId: zod.ZodString;
1517
+ duplicate: zod.ZodBoolean;
1518
+ contactCreated: zod.ZodBoolean;
1519
+ }, "strip", zod.ZodTypeAny, {
1520
+ contactId: string;
1521
+ eventId: string;
1522
+ duplicate: boolean;
1523
+ contactCreated: boolean;
1524
+ }, {
1525
+ contactId: string;
1526
+ eventId: string;
1527
+ duplicate: boolean;
1528
+ contactCreated: boolean;
1529
+ }>;
1530
+ 400: zod.ZodObject<{
1531
+ error: zod.ZodString;
1532
+ }, "strip", zod.ZodTypeAny, {
1533
+ error: string;
1534
+ }, {
1535
+ error: string;
1536
+ }>;
1537
+ 402: zod.ZodObject<{
1538
+ error: zod.ZodString;
1539
+ }, "strip", zod.ZodTypeAny, {
1540
+ error: string;
1541
+ }, {
1542
+ error: string;
1543
+ }>;
1544
+ 404: zod.ZodObject<{
1545
+ error: zod.ZodString;
1546
+ }, "strip", zod.ZodTypeAny, {
1547
+ error: string;
1548
+ }, {
1549
+ error: string;
1550
+ }>;
1551
+ 409: zod.ZodObject<{
1552
+ error: zod.ZodString;
1553
+ }, "strip", zod.ZodTypeAny, {
1554
+ error: string;
1555
+ }, {
1556
+ error: string;
1557
+ }>;
1558
+ 422: zod.ZodObject<{
1559
+ error: zod.ZodString;
1560
+ }, "strip", zod.ZodTypeAny, {
1561
+ error: string;
1562
+ }, {
1563
+ error: string;
1564
+ }>;
1565
+ 429: zod.ZodObject<{
1566
+ error: zod.ZodString;
1567
+ }, "strip", zod.ZodTypeAny, {
1568
+ error: string;
1569
+ }, {
1570
+ error: string;
1571
+ }>;
1572
+ };
1573
+ path: "/events";
1574
+ };
1575
+ definitions: {
1576
+ summary: "List the team's events";
1577
+ metadata: {
1578
+ tag: string;
1579
+ };
1580
+ method: "GET";
1581
+ responses: {
1582
+ 200: zod.ZodObject<{
1583
+ items: zod.ZodArray<zod.ZodObject<{
1584
+ name: zod.ZodString;
1585
+ origin: zod.ZodEnum<["received", "manual"]>;
1586
+ description: zod.ZodNullable<zod.ZodString>;
1587
+ properties: zod.ZodArray<zod.ZodObject<{
1588
+ key: zod.ZodString;
1589
+ type: zod.ZodEnum<["string", "number", "boolean", "date", "object", "array"]>;
1590
+ declared: zod.ZodBoolean;
1591
+ }, "strip", zod.ZodTypeAny, {
1592
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1593
+ key: string;
1594
+ declared: boolean;
1595
+ }, {
1596
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1597
+ key: string;
1598
+ declared: boolean;
1599
+ }>, "many">;
1600
+ firstSeenAt: zod.ZodNullable<zod.ZodString>;
1601
+ lastSeenAt: zod.ZodNullable<zod.ZodString>;
1602
+ createdAt: zod.ZodString;
1603
+ sequenceCount: zod.ZodNumber;
1604
+ }, "strip", zod.ZodTypeAny, {
1605
+ description: string | null;
1606
+ name: string;
1607
+ createdAt: string;
1608
+ properties: {
1609
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1610
+ key: string;
1611
+ declared: boolean;
1612
+ }[];
1613
+ origin: "received" | "manual";
1614
+ firstSeenAt: string | null;
1615
+ lastSeenAt: string | null;
1616
+ sequenceCount: number;
1617
+ }, {
1618
+ description: string | null;
1619
+ name: string;
1620
+ createdAt: string;
1621
+ properties: {
1622
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1623
+ key: string;
1624
+ declared: boolean;
1625
+ }[];
1626
+ origin: "received" | "manual";
1627
+ firstSeenAt: string | null;
1628
+ lastSeenAt: string | null;
1629
+ sequenceCount: number;
1630
+ }>, "many">;
1631
+ }, "strip", zod.ZodTypeAny, {
1632
+ items: {
1633
+ description: string | null;
1634
+ name: string;
1635
+ createdAt: string;
1636
+ properties: {
1637
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1638
+ key: string;
1639
+ declared: boolean;
1640
+ }[];
1641
+ origin: "received" | "manual";
1642
+ firstSeenAt: string | null;
1643
+ lastSeenAt: string | null;
1644
+ sequenceCount: number;
1645
+ }[];
1646
+ }, {
1647
+ items: {
1648
+ description: string | null;
1649
+ name: string;
1650
+ createdAt: string;
1651
+ properties: {
1652
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1653
+ key: string;
1654
+ declared: boolean;
1655
+ }[];
1656
+ origin: "received" | "manual";
1657
+ firstSeenAt: string | null;
1658
+ lastSeenAt: string | null;
1659
+ sequenceCount: number;
1660
+ }[];
1661
+ }>;
1662
+ };
1663
+ path: "/events/definitions";
1664
+ };
1665
+ definition: {
1666
+ summary: "Get an event, with its last payload";
1667
+ metadata: {
1668
+ tag: string;
1669
+ };
1670
+ method: "GET";
1671
+ responses: {
1672
+ 200: zod.ZodObject<{
1673
+ name: zod.ZodString;
1674
+ origin: zod.ZodEnum<["received", "manual"]>;
1675
+ description: zod.ZodNullable<zod.ZodString>;
1676
+ properties: zod.ZodArray<zod.ZodObject<{
1677
+ key: zod.ZodString;
1678
+ type: zod.ZodEnum<["string", "number", "boolean", "date", "object", "array"]>;
1679
+ declared: zod.ZodBoolean;
1680
+ }, "strip", zod.ZodTypeAny, {
1681
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1682
+ key: string;
1683
+ declared: boolean;
1684
+ }, {
1685
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1686
+ key: string;
1687
+ declared: boolean;
1688
+ }>, "many">;
1689
+ firstSeenAt: zod.ZodNullable<zod.ZodString>;
1690
+ lastSeenAt: zod.ZodNullable<zod.ZodString>;
1691
+ createdAt: zod.ZodString;
1692
+ sequenceCount: zod.ZodNumber;
1693
+ } & {
1694
+ lastProperties: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1695
+ }, "strip", zod.ZodTypeAny, {
1696
+ description: string | null;
1697
+ name: string;
1698
+ createdAt: string;
1699
+ properties: {
1700
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1701
+ key: string;
1702
+ declared: boolean;
1703
+ }[];
1704
+ origin: "received" | "manual";
1705
+ firstSeenAt: string | null;
1706
+ lastSeenAt: string | null;
1707
+ sequenceCount: number;
1708
+ lastProperties: Record<string, unknown> | null;
1709
+ }, {
1710
+ description: string | null;
1711
+ name: string;
1712
+ createdAt: string;
1713
+ properties: {
1714
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1715
+ key: string;
1716
+ declared: boolean;
1717
+ }[];
1718
+ origin: "received" | "manual";
1719
+ firstSeenAt: string | null;
1720
+ lastSeenAt: string | null;
1721
+ sequenceCount: number;
1722
+ lastProperties: Record<string, unknown> | null;
1723
+ }>;
1724
+ 404: zod.ZodObject<{
1725
+ error: zod.ZodString;
1726
+ }, "strip", zod.ZodTypeAny, {
1727
+ error: string;
1728
+ }, {
1729
+ error: string;
1730
+ }>;
1731
+ };
1732
+ path: "/events/definitions/:name";
1733
+ };
1734
+ createDefinition: {
1735
+ summary: "Register an event before it is sent";
1736
+ metadata: {
1737
+ tag: string;
1738
+ };
1739
+ method: "POST";
1740
+ body: zod.ZodObject<{
1741
+ name: zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>;
1742
+ description: zod.ZodOptional<zod.ZodString>;
1743
+ properties: zod.ZodOptional<zod.ZodEffects<zod.ZodArray<zod.ZodObject<{
1744
+ key: zod.ZodString;
1745
+ type: zod.ZodEnum<["string", "number", "boolean", "date", "object", "array"]>;
1746
+ }, "strip", zod.ZodTypeAny, {
1747
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1748
+ key: string;
1749
+ }, {
1750
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1751
+ key: string;
1752
+ }>, "many">, {
1753
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1754
+ key: string;
1755
+ }[], {
1756
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1757
+ key: string;
1758
+ }[]>>;
1759
+ }, "strict", zod.ZodTypeAny, {
1760
+ name: string;
1761
+ description?: string | undefined;
1762
+ properties?: {
1763
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1764
+ key: string;
1765
+ }[] | undefined;
1766
+ }, {
1767
+ name: string;
1768
+ description?: string | undefined;
1769
+ properties?: {
1770
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1771
+ key: string;
1772
+ }[] | undefined;
1773
+ }>;
1774
+ responses: {
1775
+ 201: zod.ZodObject<{
1776
+ name: zod.ZodString;
1777
+ origin: zod.ZodEnum<["received", "manual"]>;
1778
+ description: zod.ZodNullable<zod.ZodString>;
1779
+ properties: zod.ZodArray<zod.ZodObject<{
1780
+ key: zod.ZodString;
1781
+ type: zod.ZodEnum<["string", "number", "boolean", "date", "object", "array"]>;
1782
+ declared: zod.ZodBoolean;
1783
+ }, "strip", zod.ZodTypeAny, {
1784
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1785
+ key: string;
1786
+ declared: boolean;
1787
+ }, {
1788
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1789
+ key: string;
1790
+ declared: boolean;
1791
+ }>, "many">;
1792
+ firstSeenAt: zod.ZodNullable<zod.ZodString>;
1793
+ lastSeenAt: zod.ZodNullable<zod.ZodString>;
1794
+ createdAt: zod.ZodString;
1795
+ sequenceCount: zod.ZodNumber;
1796
+ } & {
1797
+ lastProperties: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1798
+ }, "strip", zod.ZodTypeAny, {
1799
+ description: string | null;
1800
+ name: string;
1801
+ createdAt: string;
1802
+ properties: {
1803
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1804
+ key: string;
1805
+ declared: boolean;
1806
+ }[];
1807
+ origin: "received" | "manual";
1808
+ firstSeenAt: string | null;
1809
+ lastSeenAt: string | null;
1810
+ sequenceCount: number;
1811
+ lastProperties: Record<string, unknown> | null;
1812
+ }, {
1813
+ description: string | null;
1814
+ name: string;
1815
+ createdAt: string;
1816
+ properties: {
1817
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1818
+ key: string;
1819
+ declared: boolean;
1820
+ }[];
1821
+ origin: "received" | "manual";
1822
+ firstSeenAt: string | null;
1823
+ lastSeenAt: string | null;
1824
+ sequenceCount: number;
1825
+ lastProperties: Record<string, unknown> | null;
1826
+ }>;
1827
+ 400: zod.ZodObject<{
1828
+ error: zod.ZodString;
1829
+ }, "strip", zod.ZodTypeAny, {
1830
+ error: string;
1831
+ }, {
1832
+ error: string;
1833
+ }>;
1834
+ 409: zod.ZodObject<{
1835
+ error: zod.ZodString;
1836
+ }, "strip", zod.ZodTypeAny, {
1837
+ error: string;
1838
+ }, {
1839
+ error: string;
1840
+ }>;
1841
+ 422: zod.ZodObject<{
1842
+ error: zod.ZodString;
1843
+ }, "strip", zod.ZodTypeAny, {
1844
+ error: string;
1845
+ }, {
1846
+ error: string;
1847
+ }>;
1848
+ };
1849
+ path: "/events/definitions";
1144
1850
  };
1145
- list: {
1146
- query: zod.ZodObject<{
1147
- status: zod.ZodOptional<zod.ZodEnum<["queued", "sent", "failed", "bounced", "suppressed"]>>;
1148
- createdAfter: zod.ZodOptional<zod.ZodNumber>;
1149
- createdBefore: zod.ZodOptional<zod.ZodNumber>;
1150
- offset: zod.ZodOptional<zod.ZodNumber>;
1151
- itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
1152
- }, "strip", zod.ZodTypeAny, {
1153
- status?: "bounced" | "failed" | "sent" | "suppressed" | "queued" | undefined;
1154
- offset?: number | undefined;
1155
- itemsPerPage?: number | undefined;
1156
- createdAfter?: number | undefined;
1157
- createdBefore?: number | undefined;
1158
- }, {
1159
- status?: "bounced" | "failed" | "sent" | "suppressed" | "queued" | undefined;
1160
- offset?: number | undefined;
1161
- itemsPerPage?: number | undefined;
1162
- createdAfter?: number | undefined;
1163
- createdBefore?: number | undefined;
1164
- }>;
1165
- summary: "List transactional emails";
1851
+ updateDefinition: {
1852
+ summary: "Update an event's description or declared properties";
1166
1853
  metadata: {
1167
1854
  tag: string;
1168
1855
  };
1169
- method: "GET";
1856
+ method: "PATCH";
1857
+ body: zod.ZodObject<{
1858
+ description: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
1859
+ properties: zod.ZodOptional<zod.ZodEffects<zod.ZodArray<zod.ZodObject<{
1860
+ key: zod.ZodString;
1861
+ type: zod.ZodEnum<["string", "number", "boolean", "date", "object", "array"]>;
1862
+ }, "strip", zod.ZodTypeAny, {
1863
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1864
+ key: string;
1865
+ }, {
1866
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1867
+ key: string;
1868
+ }>, "many">, {
1869
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1870
+ key: string;
1871
+ }[], {
1872
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1873
+ key: string;
1874
+ }[]>>;
1875
+ }, "strict", zod.ZodTypeAny, {
1876
+ description?: string | null | undefined;
1877
+ properties?: {
1878
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1879
+ key: string;
1880
+ }[] | undefined;
1881
+ }, {
1882
+ description?: string | null | undefined;
1883
+ properties?: {
1884
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1885
+ key: string;
1886
+ }[] | undefined;
1887
+ }>;
1170
1888
  responses: {
1171
1889
  200: zod.ZodObject<{
1172
- items: zod.ZodArray<zod.ZodObject<{
1173
- txeId: zod.ZodString;
1174
- to: zod.ZodString;
1175
- from: zod.ZodNullable<zod.ZodString>;
1176
- replyTo: zod.ZodNullable<zod.ZodString>;
1177
- subject: zod.ZodString;
1178
- templateId: zod.ZodNullable<zod.ZodString>;
1179
- variables: zod.ZodRecord<zod.ZodString, zod.ZodAny>;
1180
- status: zod.ZodEnum<["queued", "sent", "failed", "bounced", "suppressed"]>;
1181
- error: zod.ZodNullable<zod.ZodString>;
1182
- trackOpens: zod.ZodBoolean;
1183
- trackClicks: zod.ZodBoolean;
1184
- openCount: zod.ZodNumber;
1185
- clickCount: zod.ZodNumber;
1186
- sentAt: zod.ZodNullable<zod.ZodString>;
1187
- createdAt: zod.ZodNullable<zod.ZodString>;
1188
- updatedAt: zod.ZodNullable<zod.ZodString>;
1890
+ name: zod.ZodString;
1891
+ origin: zod.ZodEnum<["received", "manual"]>;
1892
+ description: zod.ZodNullable<zod.ZodString>;
1893
+ properties: zod.ZodArray<zod.ZodObject<{
1894
+ key: zod.ZodString;
1895
+ type: zod.ZodEnum<["string", "number", "boolean", "date", "object", "array"]>;
1896
+ declared: zod.ZodBoolean;
1189
1897
  }, "strip", zod.ZodTypeAny, {
1190
- error: string | null;
1191
- status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1192
- updatedAt: string | null;
1193
- replyTo: string | null;
1194
- createdAt: string | null;
1195
- subject: string;
1196
- templateId: string | null;
1197
- sentAt: string | null;
1198
- to: string;
1199
- variables: Record<string, any>;
1200
- txeId: string;
1201
- from: string | null;
1202
- trackOpens: boolean;
1203
- trackClicks: boolean;
1204
- openCount: number;
1205
- clickCount: number;
1898
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1899
+ key: string;
1900
+ declared: boolean;
1206
1901
  }, {
1207
- error: string | null;
1208
- status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1209
- updatedAt: string | null;
1210
- replyTo: string | null;
1211
- createdAt: string | null;
1212
- subject: string;
1213
- templateId: string | null;
1214
- sentAt: string | null;
1215
- to: string;
1216
- variables: Record<string, any>;
1217
- txeId: string;
1218
- from: string | null;
1219
- trackOpens: boolean;
1220
- trackClicks: boolean;
1221
- openCount: number;
1222
- clickCount: number;
1902
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1903
+ key: string;
1904
+ declared: boolean;
1223
1905
  }>, "many">;
1224
- total: zod.ZodNumber;
1906
+ firstSeenAt: zod.ZodNullable<zod.ZodString>;
1907
+ lastSeenAt: zod.ZodNullable<zod.ZodString>;
1908
+ createdAt: zod.ZodString;
1909
+ sequenceCount: zod.ZodNumber;
1910
+ } & {
1911
+ lastProperties: zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
1225
1912
  }, "strip", zod.ZodTypeAny, {
1226
- items: {
1227
- error: string | null;
1228
- status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1229
- updatedAt: string | null;
1230
- replyTo: string | null;
1231
- createdAt: string | null;
1232
- subject: string;
1233
- templateId: string | null;
1234
- sentAt: string | null;
1235
- to: string;
1236
- variables: Record<string, any>;
1237
- txeId: string;
1238
- from: string | null;
1239
- trackOpens: boolean;
1240
- trackClicks: boolean;
1241
- openCount: number;
1242
- clickCount: number;
1913
+ description: string | null;
1914
+ name: string;
1915
+ createdAt: string;
1916
+ properties: {
1917
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1918
+ key: string;
1919
+ declared: boolean;
1243
1920
  }[];
1244
- total: number;
1921
+ origin: "received" | "manual";
1922
+ firstSeenAt: string | null;
1923
+ lastSeenAt: string | null;
1924
+ sequenceCount: number;
1925
+ lastProperties: Record<string, unknown> | null;
1245
1926
  }, {
1246
- items: {
1247
- error: string | null;
1248
- status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1249
- updatedAt: string | null;
1250
- replyTo: string | null;
1251
- createdAt: string | null;
1252
- subject: string;
1253
- templateId: string | null;
1254
- sentAt: string | null;
1255
- to: string;
1256
- variables: Record<string, any>;
1257
- txeId: string;
1258
- from: string | null;
1259
- trackOpens: boolean;
1260
- trackClicks: boolean;
1261
- openCount: number;
1262
- clickCount: number;
1927
+ description: string | null;
1928
+ name: string;
1929
+ createdAt: string;
1930
+ properties: {
1931
+ type: "string" | "number" | "boolean" | "object" | "date" | "array";
1932
+ key: string;
1933
+ declared: boolean;
1263
1934
  }[];
1264
- total: number;
1935
+ origin: "received" | "manual";
1936
+ firstSeenAt: string | null;
1937
+ lastSeenAt: string | null;
1938
+ sequenceCount: number;
1939
+ lastProperties: Record<string, unknown> | null;
1940
+ }>;
1941
+ 400: zod.ZodObject<{
1942
+ error: zod.ZodString;
1943
+ }, "strip", zod.ZodTypeAny, {
1944
+ error: string;
1945
+ }, {
1946
+ error: string;
1947
+ }>;
1948
+ 404: zod.ZodObject<{
1949
+ error: zod.ZodString;
1950
+ }, "strip", zod.ZodTypeAny, {
1951
+ error: string;
1952
+ }, {
1953
+ error: string;
1265
1954
  }>;
1266
1955
  };
1267
- path: "/emails";
1956
+ path: "/events/definitions/:name";
1957
+ };
1958
+ deleteDefinition: {
1959
+ summary: "Remove an event from the list";
1960
+ description: "Stored events are kept, and a later event with this name registers it again. Returns 409 event_definition_in_use while a sequence uses it as its trigger.";
1961
+ metadata: {
1962
+ tag: string;
1963
+ };
1964
+ method: "DELETE";
1965
+ body: typeof _ts_rest_core.ContractNoBody;
1966
+ responses: {
1967
+ 204: typeof _ts_rest_core.ContractNoBody;
1968
+ 404: zod.ZodObject<{
1969
+ error: zod.ZodString;
1970
+ }, "strip", zod.ZodTypeAny, {
1971
+ error: string;
1972
+ }, {
1973
+ error: string;
1974
+ }>;
1975
+ 409: zod.ZodObject<{
1976
+ error: zod.ZodString;
1977
+ }, "strip", zod.ZodTypeAny, {
1978
+ error: string;
1979
+ }, {
1980
+ error: string;
1981
+ }>;
1982
+ };
1983
+ path: "/events/definitions/:name";
1268
1984
  };
1269
1985
  };
1270
- type SendEmailInput = Body<typeof routes$5.send>;
1271
- type SendEmailResponse = Ok<typeof routes$5.send>;
1272
- type TransactionalEmail = Ok<typeof routes$5.list>["items"][number];
1273
- type TransactionalEmailDetail = Ok<typeof routes$5.get>;
1274
- type ListEmailsQuery = Query<typeof routes$5.list>;
1275
- /** Transactional (single, API-triggered) emails. */
1276
- declare class Emails {
1986
+ type TrackEventInput = Body<typeof routes$5.track>;
1987
+ type TrackEventResponse = Ok<typeof routes$5.track>;
1988
+ type EventDefinition = Ok<typeof routes$5.definitions>["items"][number];
1989
+ type EventDefinitionDetail = Ok<typeof routes$5.definition>;
1990
+ type CreateEventDefinitionInput = Body<typeof routes$5.createDefinition>;
1991
+ type UpdateEventDefinitionInput = Body<typeof routes$5.updateDefinition>;
1992
+ /** The team's list of events: registered on first receipt, or by hand so
1993
+ * sequences can be built before the first event is sent. */
1994
+ declare class EventDefinitions {
1995
+ private readonly http;
1996
+ constructor(http: HttpClient);
1997
+ list(): Promise<Ok<typeof routes$5.definitions>>;
1998
+ /** One event with its last received payload. Names are case-sensitive. */
1999
+ get(name: string): Promise<EventDefinitionDetail>;
2000
+ create(input: CreateEventDefinitionInput): Promise<EventDefinitionDetail>;
2001
+ /** `properties` replaces the declared set; observed keys stay. */
2002
+ update(name: string, input: UpdateEventDefinitionInput): Promise<EventDefinitionDetail>;
2003
+ /** Removes the event from the list. Stored events are kept, and the API
2004
+ * refuses (409 `event_definition_in_use`) while a sequence uses it. */
2005
+ delete(name: string): Promise<void>;
2006
+ }
2007
+ /** Custom events, which start sequences triggered by "a custom event is
2008
+ * received". */
2009
+ declare class Events {
1277
2010
  private readonly http;
2011
+ readonly definitions: EventDefinitions;
1278
2012
  constructor(http: HttpClient);
1279
2013
  /**
1280
- * Queues one email and resolves with its id and initial status; poll
1281
- * `get` for delivery progress. Passing `idempotencyKey` makes the call
1282
- * safe to retry, so the SDK retries it on 5xx and network errors too.
2014
+ * Records an event for one contact (by `email` or `contactId`) and starts
2015
+ * every active sequence listening for `eventName`.
2016
+ *
2017
+ * - An unknown `email` creates the contact, since `createContact`
2018
+ * defaults to `true`. Pass `false` to get a 404 instead. An unknown
2019
+ * `contactId` is always a 404.
2020
+ * - The same `idempotencyKey` within 30 days stores one event and
2021
+ * returns the original with `duplicate: true`. With a key, the SDK
2022
+ * also retries the call on 5xx and network errors.
2023
+ * - `backfill: true` stores history without starting sequences. Events
2024
+ * whose `occurredAt` is more than 72 hours old never start one either.
1283
2025
  */
1284
- send(input: SendEmailInput): Promise<SendEmailResponse>;
1285
- get(txeId: string): Promise<TransactionalEmailDetail>;
1286
- list(query?: ListEmailsQuery): Promise<Ok<typeof routes$5.list>>;
1287
- listAll(query?: Omit<ListEmailsQuery, "offset">): AsyncGenerator<TransactionalEmail, void, undefined>;
2026
+ track(input: TrackEventInput): Promise<TrackEventResponse>;
1288
2027
  }
1289
2028
 
1290
2029
  declare const routes$4: {
@@ -2023,14 +2762,14 @@ declare const routes$4: {
2023
2762
  resetsAt: zod.ZodString;
2024
2763
  }, "strip", zod.ZodTypeAny, {
2025
2764
  accepted: number;
2026
- remaining: number | null;
2027
2765
  limit: number | null;
2766
+ remaining: number | null;
2028
2767
  reserved: number;
2029
2768
  resetsAt: string;
2030
2769
  }, {
2031
2770
  accepted: number;
2032
- remaining: number | null;
2033
2771
  limit: number | null;
2772
+ remaining: number | null;
2034
2773
  reserved: number;
2035
2774
  resetsAt: string;
2036
2775
  }>;
@@ -2042,44 +2781,44 @@ declare const routes$4: {
2042
2781
  resetsAt: zod.ZodString;
2043
2782
  }, "strip", zod.ZodTypeAny, {
2044
2783
  accepted: number;
2045
- remaining: number | null;
2046
2784
  limit: number | null;
2785
+ remaining: number | null;
2047
2786
  reserved: number;
2048
2787
  resetsAt: string;
2049
2788
  }, {
2050
2789
  accepted: number;
2051
- remaining: number | null;
2052
2790
  limit: number | null;
2791
+ remaining: number | null;
2053
2792
  reserved: number;
2054
2793
  resetsAt: string;
2055
2794
  }>;
2056
2795
  }, "strip", zod.ZodTypeAny, {
2057
2796
  month: {
2058
2797
  accepted: number;
2059
- remaining: number | null;
2060
2798
  limit: number | null;
2799
+ remaining: number | null;
2061
2800
  reserved: number;
2062
2801
  resetsAt: string;
2063
2802
  };
2064
2803
  day: {
2065
2804
  accepted: number;
2066
- remaining: number | null;
2067
2805
  limit: number | null;
2806
+ remaining: number | null;
2068
2807
  reserved: number;
2069
2808
  resetsAt: string;
2070
2809
  };
2071
2810
  }, {
2072
2811
  month: {
2073
2812
  accepted: number;
2074
- remaining: number | null;
2075
2813
  limit: number | null;
2814
+ remaining: number | null;
2076
2815
  reserved: number;
2077
2816
  resetsAt: string;
2078
2817
  };
2079
2818
  day: {
2080
2819
  accepted: number;
2081
- remaining: number | null;
2082
2820
  limit: number | null;
2821
+ remaining: number | null;
2083
2822
  reserved: number;
2084
2823
  resetsAt: string;
2085
2824
  };
@@ -2223,26 +2962,26 @@ declare const routes$3: {
2223
2962
  valueLabel: zod.ZodOptional<zod.ZodString>;
2224
2963
  }, "strip", zod.ZodTypeAny, {
2225
2964
  name: "customField";
2226
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2227
2965
  key: string;
2966
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2228
2967
  value?: string | undefined;
2229
2968
  valueLabel?: string | undefined;
2230
2969
  }, {
2231
2970
  name: "customField";
2232
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2233
2971
  key: string;
2972
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2234
2973
  value?: string | undefined;
2235
2974
  valueLabel?: string | undefined;
2236
2975
  }>, {
2237
2976
  name: "customField";
2238
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2239
2977
  key: string;
2978
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2240
2979
  value?: string | undefined;
2241
2980
  valueLabel?: string | undefined;
2242
2981
  }, {
2243
2982
  name: "customField";
2244
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2245
2983
  key: string;
2984
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2246
2985
  value?: string | undefined;
2247
2986
  valueLabel?: string | undefined;
2248
2987
  }>]>, "many">;
@@ -2270,8 +3009,8 @@ declare const routes$3: {
2270
3009
  valueLabel?: string | undefined;
2271
3010
  } | {
2272
3011
  name: "customField";
2273
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2274
3012
  key: string;
3013
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2275
3014
  value?: string | undefined;
2276
3015
  valueLabel?: string | undefined;
2277
3016
  })[];
@@ -2299,8 +3038,8 @@ declare const routes$3: {
2299
3038
  valueLabel?: string | undefined;
2300
3039
  } | {
2301
3040
  name: "customField";
2302
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2303
3041
  key: string;
3042
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2304
3043
  value?: string | undefined;
2305
3044
  valueLabel?: string | undefined;
2306
3045
  })[];
@@ -2330,8 +3069,8 @@ declare const routes$3: {
2330
3069
  valueLabel?: string | undefined;
2331
3070
  } | {
2332
3071
  name: "customField";
2333
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2334
3072
  key: string;
3073
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2335
3074
  value?: string | undefined;
2336
3075
  valueLabel?: string | undefined;
2337
3076
  })[];
@@ -2362,8 +3101,8 @@ declare const routes$3: {
2362
3101
  valueLabel?: string | undefined;
2363
3102
  } | {
2364
3103
  name: "customField";
2365
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2366
3104
  key: string;
3105
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2367
3106
  value?: string | undefined;
2368
3107
  valueLabel?: string | undefined;
2369
3108
  })[];
@@ -2449,26 +3188,26 @@ declare const routes$3: {
2449
3188
  valueLabel: zod.ZodOptional<zod.ZodString>;
2450
3189
  }, "strip", zod.ZodTypeAny, {
2451
3190
  name: "customField";
2452
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2453
3191
  key: string;
3192
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2454
3193
  value?: string | undefined;
2455
3194
  valueLabel?: string | undefined;
2456
3195
  }, {
2457
3196
  name: "customField";
2458
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2459
3197
  key: string;
3198
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2460
3199
  value?: string | undefined;
2461
3200
  valueLabel?: string | undefined;
2462
3201
  }>, {
2463
3202
  name: "customField";
2464
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2465
3203
  key: string;
3204
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2466
3205
  value?: string | undefined;
2467
3206
  valueLabel?: string | undefined;
2468
3207
  }, {
2469
3208
  name: "customField";
2470
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2471
3209
  key: string;
3210
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2472
3211
  value?: string | undefined;
2473
3212
  valueLabel?: string | undefined;
2474
3213
  }>]>, "many">;
@@ -2496,8 +3235,8 @@ declare const routes$3: {
2496
3235
  valueLabel?: string | undefined;
2497
3236
  } | {
2498
3237
  name: "customField";
2499
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2500
3238
  key: string;
3239
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2501
3240
  value?: string | undefined;
2502
3241
  valueLabel?: string | undefined;
2503
3242
  })[];
@@ -2525,8 +3264,8 @@ declare const routes$3: {
2525
3264
  valueLabel?: string | undefined;
2526
3265
  } | {
2527
3266
  name: "customField";
2528
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2529
3267
  key: string;
3268
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2530
3269
  value?: string | undefined;
2531
3270
  valueLabel?: string | undefined;
2532
3271
  })[];
@@ -2558,8 +3297,8 @@ declare const routes$3: {
2558
3297
  valueLabel?: string | undefined;
2559
3298
  } | {
2560
3299
  name: "customField";
2561
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2562
3300
  key: string;
3301
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2563
3302
  value?: string | undefined;
2564
3303
  valueLabel?: string | undefined;
2565
3304
  })[];
@@ -2593,8 +3332,8 @@ declare const routes$3: {
2593
3332
  valueLabel?: string | undefined;
2594
3333
  } | {
2595
3334
  name: "customField";
2596
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2597
3335
  key: string;
3336
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2598
3337
  value?: string | undefined;
2599
3338
  valueLabel?: string | undefined;
2600
3339
  })[];
@@ -2646,8 +3385,8 @@ declare const routes$3: {
2646
3385
  valueLabel?: string | undefined;
2647
3386
  } | {
2648
3387
  name: "customField";
2649
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2650
3388
  key: string;
3389
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2651
3390
  value?: string | undefined;
2652
3391
  valueLabel?: string | undefined;
2653
3392
  })[];
@@ -2745,26 +3484,26 @@ declare const routes$3: {
2745
3484
  valueLabel: zod.ZodOptional<zod.ZodString>;
2746
3485
  }, "strip", zod.ZodTypeAny, {
2747
3486
  name: "customField";
2748
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2749
3487
  key: string;
3488
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2750
3489
  value?: string | undefined;
2751
3490
  valueLabel?: string | undefined;
2752
3491
  }, {
2753
3492
  name: "customField";
2754
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2755
3493
  key: string;
3494
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2756
3495
  value?: string | undefined;
2757
3496
  valueLabel?: string | undefined;
2758
3497
  }>, {
2759
3498
  name: "customField";
2760
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2761
3499
  key: string;
3500
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2762
3501
  value?: string | undefined;
2763
3502
  valueLabel?: string | undefined;
2764
3503
  }, {
2765
3504
  name: "customField";
2766
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2767
3505
  key: string;
3506
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2768
3507
  value?: string | undefined;
2769
3508
  valueLabel?: string | undefined;
2770
3509
  }>]>, "many">;
@@ -2792,8 +3531,8 @@ declare const routes$3: {
2792
3531
  valueLabel?: string | undefined;
2793
3532
  } | {
2794
3533
  name: "customField";
2795
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2796
3534
  key: string;
3535
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2797
3536
  value?: string | undefined;
2798
3537
  valueLabel?: string | undefined;
2799
3538
  })[];
@@ -2821,8 +3560,8 @@ declare const routes$3: {
2821
3560
  valueLabel?: string | undefined;
2822
3561
  } | {
2823
3562
  name: "customField";
2824
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2825
3563
  key: string;
3564
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2826
3565
  value?: string | undefined;
2827
3566
  valueLabel?: string | undefined;
2828
3567
  })[];
@@ -2854,8 +3593,8 @@ declare const routes$3: {
2854
3593
  valueLabel?: string | undefined;
2855
3594
  } | {
2856
3595
  name: "customField";
2857
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2858
3596
  key: string;
3597
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2859
3598
  value?: string | undefined;
2860
3599
  valueLabel?: string | undefined;
2861
3600
  })[];
@@ -2889,8 +3628,8 @@ declare const routes$3: {
2889
3628
  valueLabel?: string | undefined;
2890
3629
  } | {
2891
3630
  name: "customField";
2892
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2893
3631
  key: string;
3632
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2894
3633
  value?: string | undefined;
2895
3634
  valueLabel?: string | undefined;
2896
3635
  })[];
@@ -2993,26 +3732,26 @@ declare const routes$3: {
2993
3732
  valueLabel: zod.ZodOptional<zod.ZodString>;
2994
3733
  }, "strip", zod.ZodTypeAny, {
2995
3734
  name: "customField";
2996
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
2997
3735
  key: string;
3736
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
2998
3737
  value?: string | undefined;
2999
3738
  valueLabel?: string | undefined;
3000
3739
  }, {
3001
3740
  name: "customField";
3002
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3003
3741
  key: string;
3742
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3004
3743
  value?: string | undefined;
3005
3744
  valueLabel?: string | undefined;
3006
3745
  }>, {
3007
3746
  name: "customField";
3008
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3009
3747
  key: string;
3748
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3010
3749
  value?: string | undefined;
3011
3750
  valueLabel?: string | undefined;
3012
3751
  }, {
3013
3752
  name: "customField";
3014
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3015
3753
  key: string;
3754
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3016
3755
  value?: string | undefined;
3017
3756
  valueLabel?: string | undefined;
3018
3757
  }>]>, "many">;
@@ -3040,8 +3779,8 @@ declare const routes$3: {
3040
3779
  valueLabel?: string | undefined;
3041
3780
  } | {
3042
3781
  name: "customField";
3043
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3044
3782
  key: string;
3783
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3045
3784
  value?: string | undefined;
3046
3785
  valueLabel?: string | undefined;
3047
3786
  })[];
@@ -3069,8 +3808,8 @@ declare const routes$3: {
3069
3808
  valueLabel?: string | undefined;
3070
3809
  } | {
3071
3810
  name: "customField";
3072
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3073
3811
  key: string;
3812
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3074
3813
  value?: string | undefined;
3075
3814
  valueLabel?: string | undefined;
3076
3815
  })[];
@@ -3100,8 +3839,8 @@ declare const routes$3: {
3100
3839
  valueLabel?: string | undefined;
3101
3840
  } | {
3102
3841
  name: "customField";
3103
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3104
3842
  key: string;
3843
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3105
3844
  value?: string | undefined;
3106
3845
  valueLabel?: string | undefined;
3107
3846
  })[];
@@ -3132,8 +3871,8 @@ declare const routes$3: {
3132
3871
  valueLabel?: string | undefined;
3133
3872
  } | {
3134
3873
  name: "customField";
3135
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3136
3874
  key: string;
3875
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3137
3876
  value?: string | undefined;
3138
3877
  valueLabel?: string | undefined;
3139
3878
  })[];
@@ -3219,26 +3958,26 @@ declare const routes$3: {
3219
3958
  valueLabel: zod.ZodOptional<zod.ZodString>;
3220
3959
  }, "strip", zod.ZodTypeAny, {
3221
3960
  name: "customField";
3222
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3223
3961
  key: string;
3962
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3224
3963
  value?: string | undefined;
3225
3964
  valueLabel?: string | undefined;
3226
3965
  }, {
3227
3966
  name: "customField";
3228
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3229
3967
  key: string;
3968
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3230
3969
  value?: string | undefined;
3231
3970
  valueLabel?: string | undefined;
3232
3971
  }>, {
3233
3972
  name: "customField";
3234
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3235
3973
  key: string;
3974
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3236
3975
  value?: string | undefined;
3237
3976
  valueLabel?: string | undefined;
3238
3977
  }, {
3239
3978
  name: "customField";
3240
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3241
3979
  key: string;
3980
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3242
3981
  value?: string | undefined;
3243
3982
  valueLabel?: string | undefined;
3244
3983
  }>]>, "many">;
@@ -3266,8 +4005,8 @@ declare const routes$3: {
3266
4005
  valueLabel?: string | undefined;
3267
4006
  } | {
3268
4007
  name: "customField";
3269
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3270
4008
  key: string;
4009
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3271
4010
  value?: string | undefined;
3272
4011
  valueLabel?: string | undefined;
3273
4012
  })[];
@@ -3295,8 +4034,8 @@ declare const routes$3: {
3295
4034
  valueLabel?: string | undefined;
3296
4035
  } | {
3297
4036
  name: "customField";
3298
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3299
4037
  key: string;
4038
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3300
4039
  value?: string | undefined;
3301
4040
  valueLabel?: string | undefined;
3302
4041
  })[];
@@ -3328,8 +4067,8 @@ declare const routes$3: {
3328
4067
  valueLabel?: string | undefined;
3329
4068
  } | {
3330
4069
  name: "customField";
3331
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3332
4070
  key: string;
4071
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3333
4072
  value?: string | undefined;
3334
4073
  valueLabel?: string | undefined;
3335
4074
  })[];
@@ -3363,8 +4102,8 @@ declare const routes$3: {
3363
4102
  valueLabel?: string | undefined;
3364
4103
  } | {
3365
4104
  name: "customField";
3366
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
3367
4105
  key: string;
4106
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
3368
4107
  value?: string | undefined;
3369
4108
  valueLabel?: string | undefined;
3370
4109
  })[];
@@ -3484,14 +4223,18 @@ declare const routes$2: {
3484
4223
  type: "team";
3485
4224
  espId?: string | undefined;
3486
4225
  }>]>>;
3487
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4226
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
3488
4227
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4228
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4229
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
4230
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
3489
4231
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3490
4232
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3491
4233
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
3492
4234
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
3493
4235
  entrants: zod.ZodArray<zod.ZodString, "many">;
3494
4236
  report: zod.ZodAny;
4237
+ viewInBrowser: zod.ZodBoolean;
3495
4238
  createdAt: zod.ZodNullable<zod.ZodString>;
3496
4239
  updatedAt: zod.ZodNullable<zod.ZodString>;
3497
4240
  emails: zod.ZodArray<zod.ZodObject<{
@@ -3588,6 +4331,7 @@ declare const routes$2: {
3588
4331
  title: string;
3589
4332
  emailsOrder: string[];
3590
4333
  entrants: string[];
4334
+ viewInBrowser: boolean;
3591
4335
  emails: {
3592
4336
  content: {
3593
4337
  style: Record<string, any>;
@@ -3607,8 +4351,11 @@ declare const routes$2: {
3607
4351
  contentScanVerdict?: string | null | undefined;
3608
4352
  }[];
3609
4353
  filter?: any;
3610
- triggerType?: string | null | undefined;
4354
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
3611
4355
  triggerData?: string | null | undefined;
4356
+ triggerFilter?: any;
4357
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4358
+ reentryPeriodDays?: number | null | undefined;
3612
4359
  excludeFilter?: any;
3613
4360
  entrantsCount?: number | undefined;
3614
4361
  report?: any;
@@ -3634,6 +4381,7 @@ declare const routes$2: {
3634
4381
  title: string;
3635
4382
  emailsOrder: string[];
3636
4383
  entrants: string[];
4384
+ viewInBrowser: boolean;
3637
4385
  emails: {
3638
4386
  content: {
3639
4387
  style: Record<string, any>;
@@ -3653,8 +4401,11 @@ declare const routes$2: {
3653
4401
  contentScanVerdict?: string | null | undefined;
3654
4402
  }[];
3655
4403
  filter?: any;
3656
- triggerType?: string | null | undefined;
4404
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
3657
4405
  triggerData?: string | null | undefined;
4406
+ triggerFilter?: any;
4407
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4408
+ reentryPeriodDays?: number | null | undefined;
3658
4409
  excludeFilter?: any;
3659
4410
  entrantsCount?: number | undefined;
3660
4411
  report?: any;
@@ -3725,14 +4476,18 @@ declare const routes$2: {
3725
4476
  type: "team";
3726
4477
  espId?: string | undefined;
3727
4478
  }>]>>;
3728
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4479
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
3729
4480
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4481
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4482
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
4483
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
3730
4484
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3731
4485
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3732
4486
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
3733
4487
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
3734
4488
  entrants: zod.ZodArray<zod.ZodString, "many">;
3735
4489
  report: zod.ZodAny;
4490
+ viewInBrowser: zod.ZodBoolean;
3736
4491
  createdAt: zod.ZodNullable<zod.ZodString>;
3737
4492
  updatedAt: zod.ZodNullable<zod.ZodString>;
3738
4493
  emails: zod.ZodArray<zod.ZodObject<{
@@ -3829,6 +4584,7 @@ declare const routes$2: {
3829
4584
  title: string;
3830
4585
  emailsOrder: string[];
3831
4586
  entrants: string[];
4587
+ viewInBrowser: boolean;
3832
4588
  emails: {
3833
4589
  content: {
3834
4590
  style: Record<string, any>;
@@ -3848,8 +4604,11 @@ declare const routes$2: {
3848
4604
  contentScanVerdict?: string | null | undefined;
3849
4605
  }[];
3850
4606
  filter?: any;
3851
- triggerType?: string | null | undefined;
4607
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
3852
4608
  triggerData?: string | null | undefined;
4609
+ triggerFilter?: any;
4610
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4611
+ reentryPeriodDays?: number | null | undefined;
3853
4612
  excludeFilter?: any;
3854
4613
  entrantsCount?: number | undefined;
3855
4614
  report?: any;
@@ -3875,6 +4634,7 @@ declare const routes$2: {
3875
4634
  title: string;
3876
4635
  emailsOrder: string[];
3877
4636
  entrants: string[];
4637
+ viewInBrowser: boolean;
3878
4638
  emails: {
3879
4639
  content: {
3880
4640
  style: Record<string, any>;
@@ -3894,8 +4654,11 @@ declare const routes$2: {
3894
4654
  contentScanVerdict?: string | null | undefined;
3895
4655
  }[];
3896
4656
  filter?: any;
3897
- triggerType?: string | null | undefined;
4657
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
3898
4658
  triggerData?: string | null | undefined;
4659
+ triggerFilter?: any;
4660
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4661
+ reentryPeriodDays?: number | null | undefined;
3899
4662
  excludeFilter?: any;
3900
4663
  entrantsCount?: number | undefined;
3901
4664
  report?: any;
@@ -3924,6 +4687,7 @@ declare const routes$2: {
3924
4687
  title: string;
3925
4688
  emailsOrder: string[];
3926
4689
  entrants: string[];
4690
+ viewInBrowser: boolean;
3927
4691
  emails: {
3928
4692
  content: {
3929
4693
  style: Record<string, any>;
@@ -3943,8 +4707,11 @@ declare const routes$2: {
3943
4707
  contentScanVerdict?: string | null | undefined;
3944
4708
  }[];
3945
4709
  filter?: any;
3946
- triggerType?: string | null | undefined;
4710
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
3947
4711
  triggerData?: string | null | undefined;
4712
+ triggerFilter?: any;
4713
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4714
+ reentryPeriodDays?: number | null | undefined;
3948
4715
  excludeFilter?: any;
3949
4716
  entrantsCount?: number | undefined;
3950
4717
  report?: any;
@@ -3973,6 +4740,7 @@ declare const routes$2: {
3973
4740
  title: string;
3974
4741
  emailsOrder: string[];
3975
4742
  entrants: string[];
4743
+ viewInBrowser: boolean;
3976
4744
  emails: {
3977
4745
  content: {
3978
4746
  style: Record<string, any>;
@@ -3992,8 +4760,11 @@ declare const routes$2: {
3992
4760
  contentScanVerdict?: string | null | undefined;
3993
4761
  }[];
3994
4762
  filter?: any;
3995
- triggerType?: string | null | undefined;
4763
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
3996
4764
  triggerData?: string | null | undefined;
4765
+ triggerFilter?: any;
4766
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4767
+ reentryPeriodDays?: number | null | undefined;
3997
4768
  excludeFilter?: any;
3998
4769
  entrantsCount?: number | undefined;
3999
4770
  report?: any;
@@ -4038,14 +4809,18 @@ declare const routes$2: {
4038
4809
  type: "team";
4039
4810
  espId?: string | undefined;
4040
4811
  }>]>>;
4041
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4812
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
4042
4813
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4814
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4815
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
4816
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
4043
4817
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4044
4818
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4045
4819
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
4046
4820
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
4047
4821
  entrants: zod.ZodArray<zod.ZodString, "many">;
4048
4822
  report: zod.ZodAny;
4823
+ viewInBrowser: zod.ZodBoolean;
4049
4824
  createdAt: zod.ZodNullable<zod.ZodString>;
4050
4825
  updatedAt: zod.ZodNullable<zod.ZodString>;
4051
4826
  emails: zod.ZodArray<zod.ZodObject<{
@@ -4142,6 +4917,7 @@ declare const routes$2: {
4142
4917
  title: string;
4143
4918
  emailsOrder: string[];
4144
4919
  entrants: string[];
4920
+ viewInBrowser: boolean;
4145
4921
  emails: {
4146
4922
  content: {
4147
4923
  style: Record<string, any>;
@@ -4161,8 +4937,11 @@ declare const routes$2: {
4161
4937
  contentScanVerdict?: string | null | undefined;
4162
4938
  }[];
4163
4939
  filter?: any;
4164
- triggerType?: string | null | undefined;
4940
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
4165
4941
  triggerData?: string | null | undefined;
4942
+ triggerFilter?: any;
4943
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4944
+ reentryPeriodDays?: number | null | undefined;
4166
4945
  excludeFilter?: any;
4167
4946
  entrantsCount?: number | undefined;
4168
4947
  report?: any;
@@ -4188,6 +4967,7 @@ declare const routes$2: {
4188
4967
  title: string;
4189
4968
  emailsOrder: string[];
4190
4969
  entrants: string[];
4970
+ viewInBrowser: boolean;
4191
4971
  emails: {
4192
4972
  content: {
4193
4973
  style: Record<string, any>;
@@ -4207,8 +4987,11 @@ declare const routes$2: {
4207
4987
  contentScanVerdict?: string | null | undefined;
4208
4988
  }[];
4209
4989
  filter?: any;
4210
- triggerType?: string | null | undefined;
4990
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
4211
4991
  triggerData?: string | null | undefined;
4992
+ triggerFilter?: any;
4993
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
4994
+ reentryPeriodDays?: number | null | undefined;
4212
4995
  excludeFilter?: any;
4213
4996
  entrantsCount?: number | undefined;
4214
4997
  report?: any;
@@ -4232,15 +5015,64 @@ declare const routes$2: {
4232
5015
  };
4233
5016
  update: {
4234
5017
  summary: "Update a broadcast or sequence";
4235
- description: "A broadcast's title is its email's subject, so once the broadcast has been sent, changing the title returns 400 with the error \"This broadcast has already been sent\".";
5018
+ description: "A broadcast's title is its email's subject, so once the broadcast has been sent, changing the title returns 400 with the error \"This broadcast has already been sent\". `viewInBrowser` can be changed at any time; turning it off also takes down the web versions linked from emails already sent.";
4236
5019
  metadata: {
4237
5020
  tag: string;
4238
5021
  };
4239
5022
  method: "PATCH";
4240
5023
  body: zod.ZodObject<{
4241
5024
  title: zod.ZodOptional<zod.ZodString>;
4242
- triggerType: zod.ZodOptional<zod.ZodString>;
5025
+ triggerType: zod.ZodOptional<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>;
4243
5026
  triggerData: zod.ZodOptional<zod.ZodString>;
5027
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<[zod.ZodObject<{
5028
+ aggregator: zod.ZodEnum<["and", "or"]>;
5029
+ filters: zod.ZodArray<zod.ZodEffects<zod.ZodObject<{
5030
+ key: zod.ZodEffects<zod.ZodString, string, string>;
5031
+ condition: zod.ZodEnum<["is", "is_not", "contains", "not_contains", "gt", "gte", "lt", "lte", "exists", "not_exists"]>;
5032
+ value: zod.ZodOptional<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>>;
5033
+ }, "strip", zod.ZodTypeAny, {
5034
+ key: string;
5035
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5036
+ value?: string | number | boolean | undefined;
5037
+ }, {
5038
+ key: string;
5039
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5040
+ value?: string | number | boolean | undefined;
5041
+ }>, {
5042
+ key: string;
5043
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5044
+ value?: string | number | boolean | undefined;
5045
+ }, {
5046
+ key: string;
5047
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5048
+ value?: string | number | boolean | undefined;
5049
+ }>, "many">;
5050
+ }, "strip", zod.ZodTypeAny, {
5051
+ aggregator: "and" | "or";
5052
+ filters: {
5053
+ key: string;
5054
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5055
+ value?: string | number | boolean | undefined;
5056
+ }[];
5057
+ }, {
5058
+ aggregator: "and" | "or";
5059
+ filters: {
5060
+ key: string;
5061
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5062
+ value?: string | number | boolean | undefined;
5063
+ }[];
5064
+ }>, zod.ZodObject<{
5065
+ from: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>>>;
5066
+ to: zod.ZodOptional<zod.ZodNullable<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>>>;
5067
+ }, "strict", zod.ZodTypeAny, {
5068
+ from?: string | number | boolean | null | undefined;
5069
+ to?: string | number | boolean | null | undefined;
5070
+ }, {
5071
+ from?: string | number | boolean | null | undefined;
5072
+ to?: string | number | boolean | null | undefined;
5073
+ }>]>>>;
5074
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
5075
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
4244
5076
  filter: zod.ZodOptional<zod.ZodObject<{
4245
5077
  aggregator: zod.ZodEnum<["and", "or"]>;
4246
5078
  filters: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
@@ -4316,26 +5148,26 @@ declare const routes$2: {
4316
5148
  valueLabel: zod.ZodOptional<zod.ZodString>;
4317
5149
  }, "strip", zod.ZodTypeAny, {
4318
5150
  name: "customField";
4319
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4320
5151
  key: string;
5152
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4321
5153
  value?: string | undefined;
4322
5154
  valueLabel?: string | undefined;
4323
5155
  }, {
4324
5156
  name: "customField";
4325
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4326
5157
  key: string;
5158
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4327
5159
  value?: string | undefined;
4328
5160
  valueLabel?: string | undefined;
4329
5161
  }>, {
4330
5162
  name: "customField";
4331
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4332
5163
  key: string;
5164
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4333
5165
  value?: string | undefined;
4334
5166
  valueLabel?: string | undefined;
4335
5167
  }, {
4336
5168
  name: "customField";
4337
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4338
5169
  key: string;
5170
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4339
5171
  value?: string | undefined;
4340
5172
  valueLabel?: string | undefined;
4341
5173
  }>]>, "many">;
@@ -4363,8 +5195,8 @@ declare const routes$2: {
4363
5195
  valueLabel?: string | undefined;
4364
5196
  } | {
4365
5197
  name: "customField";
4366
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4367
5198
  key: string;
5199
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4368
5200
  value?: string | undefined;
4369
5201
  valueLabel?: string | undefined;
4370
5202
  })[];
@@ -4392,8 +5224,8 @@ declare const routes$2: {
4392
5224
  valueLabel?: string | undefined;
4393
5225
  } | {
4394
5226
  name: "customField";
4395
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4396
5227
  key: string;
5228
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4397
5229
  value?: string | undefined;
4398
5230
  valueLabel?: string | undefined;
4399
5231
  })[];
@@ -4473,26 +5305,26 @@ declare const routes$2: {
4473
5305
  valueLabel: zod.ZodOptional<zod.ZodString>;
4474
5306
  }, "strip", zod.ZodTypeAny, {
4475
5307
  name: "customField";
4476
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4477
5308
  key: string;
5309
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4478
5310
  value?: string | undefined;
4479
5311
  valueLabel?: string | undefined;
4480
5312
  }, {
4481
5313
  name: "customField";
4482
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4483
5314
  key: string;
5315
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4484
5316
  value?: string | undefined;
4485
5317
  valueLabel?: string | undefined;
4486
5318
  }>, {
4487
5319
  name: "customField";
4488
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4489
5320
  key: string;
5321
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4490
5322
  value?: string | undefined;
4491
5323
  valueLabel?: string | undefined;
4492
5324
  }, {
4493
5325
  name: "customField";
4494
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4495
5326
  key: string;
5327
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4496
5328
  value?: string | undefined;
4497
5329
  valueLabel?: string | undefined;
4498
5330
  }>]>, "many">;
@@ -4520,8 +5352,8 @@ declare const routes$2: {
4520
5352
  valueLabel?: string | undefined;
4521
5353
  } | {
4522
5354
  name: "customField";
4523
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4524
5355
  key: string;
5356
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4525
5357
  value?: string | undefined;
4526
5358
  valueLabel?: string | undefined;
4527
5359
  })[];
@@ -4549,8 +5381,8 @@ declare const routes$2: {
4549
5381
  valueLabel?: string | undefined;
4550
5382
  } | {
4551
5383
  name: "customField";
4552
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4553
5384
  key: string;
5385
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4554
5386
  value?: string | undefined;
4555
5387
  valueLabel?: string | undefined;
4556
5388
  })[];
@@ -4572,6 +5404,7 @@ declare const routes$2: {
4572
5404
  type: "team";
4573
5405
  espId?: string | undefined;
4574
5406
  }>]>>>;
5407
+ viewInBrowser: zod.ZodOptional<zod.ZodBoolean>;
4575
5408
  }, "strip", zod.ZodTypeAny, {
4576
5409
  filter?: {
4577
5410
  aggregator: "and" | "or";
@@ -4597,8 +5430,8 @@ declare const routes$2: {
4597
5430
  valueLabel?: string | undefined;
4598
5431
  } | {
4599
5432
  name: "customField";
4600
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4601
5433
  key: string;
5434
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4602
5435
  value?: string | undefined;
4603
5436
  valueLabel?: string | undefined;
4604
5437
  })[];
@@ -4610,8 +5443,21 @@ declare const routes$2: {
4610
5443
  espId?: string | undefined;
4611
5444
  } | null | undefined;
4612
5445
  title?: string | undefined;
4613
- triggerType?: string | undefined;
5446
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | undefined;
4614
5447
  triggerData?: string | undefined;
5448
+ triggerFilter?: {
5449
+ aggregator: "and" | "or";
5450
+ filters: {
5451
+ key: string;
5452
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5453
+ value?: string | number | boolean | undefined;
5454
+ }[];
5455
+ } | {
5456
+ from?: string | number | boolean | null | undefined;
5457
+ to?: string | number | boolean | null | undefined;
5458
+ } | null | undefined;
5459
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
5460
+ reentryPeriodDays?: number | null | undefined;
4615
5461
  excludeFilter?: {
4616
5462
  aggregator: "and" | "or";
4617
5463
  filters: ({
@@ -4636,13 +5482,14 @@ declare const routes$2: {
4636
5482
  valueLabel?: string | undefined;
4637
5483
  } | {
4638
5484
  name: "customField";
4639
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4640
5485
  key: string;
5486
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4641
5487
  value?: string | undefined;
4642
5488
  valueLabel?: string | undefined;
4643
5489
  })[];
4644
5490
  } | null | undefined;
4645
5491
  emailsOrder?: string[] | undefined;
5492
+ viewInBrowser?: boolean | undefined;
4646
5493
  }, {
4647
5494
  filter?: {
4648
5495
  aggregator: "and" | "or";
@@ -4668,8 +5515,8 @@ declare const routes$2: {
4668
5515
  valueLabel?: string | undefined;
4669
5516
  } | {
4670
5517
  name: "customField";
4671
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4672
5518
  key: string;
5519
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4673
5520
  value?: string | undefined;
4674
5521
  valueLabel?: string | undefined;
4675
5522
  })[];
@@ -4681,8 +5528,21 @@ declare const routes$2: {
4681
5528
  espId?: string | undefined;
4682
5529
  } | null | undefined;
4683
5530
  title?: string | undefined;
4684
- triggerType?: string | undefined;
5531
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | undefined;
4685
5532
  triggerData?: string | undefined;
5533
+ triggerFilter?: {
5534
+ aggregator: "and" | "or";
5535
+ filters: {
5536
+ key: string;
5537
+ condition: "is" | "is_not" | "contains" | "not_contains" | "gt" | "gte" | "lt" | "lte" | "exists" | "not_exists";
5538
+ value?: string | number | boolean | undefined;
5539
+ }[];
5540
+ } | {
5541
+ from?: string | number | boolean | null | undefined;
5542
+ to?: string | number | boolean | null | undefined;
5543
+ } | null | undefined;
5544
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
5545
+ reentryPeriodDays?: number | null | undefined;
4686
5546
  excludeFilter?: {
4687
5547
  aggregator: "and" | "or";
4688
5548
  filters: ({
@@ -4707,13 +5567,14 @@ declare const routes$2: {
4707
5567
  valueLabel?: string | undefined;
4708
5568
  } | {
4709
5569
  name: "customField";
4710
- condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4711
5570
  key: string;
5571
+ condition: "is" | "is_not" | "contains" | "not_contains" | "exists" | "not_exists" | "before" | "after" | "on" | "has" | "not_has";
4712
5572
  value?: string | undefined;
4713
5573
  valueLabel?: string | undefined;
4714
5574
  })[];
4715
5575
  } | null | undefined;
4716
5576
  emailsOrder?: string[] | undefined;
5577
+ viewInBrowser?: boolean | undefined;
4717
5578
  }>;
4718
5579
  responses: {
4719
5580
  200: zod.ZodObject<{
@@ -4737,14 +5598,18 @@ declare const routes$2: {
4737
5598
  type: "team";
4738
5599
  espId?: string | undefined;
4739
5600
  }>]>>;
4740
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5601
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
4741
5602
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5603
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
5604
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
5605
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
4742
5606
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4743
5607
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4744
5608
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
4745
5609
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
4746
5610
  entrants: zod.ZodArray<zod.ZodString, "many">;
4747
5611
  report: zod.ZodAny;
5612
+ viewInBrowser: zod.ZodBoolean;
4748
5613
  createdAt: zod.ZodNullable<zod.ZodString>;
4749
5614
  updatedAt: zod.ZodNullable<zod.ZodString>;
4750
5615
  emails: zod.ZodArray<zod.ZodObject<{
@@ -4841,6 +5706,7 @@ declare const routes$2: {
4841
5706
  title: string;
4842
5707
  emailsOrder: string[];
4843
5708
  entrants: string[];
5709
+ viewInBrowser: boolean;
4844
5710
  emails: {
4845
5711
  content: {
4846
5712
  style: Record<string, any>;
@@ -4860,8 +5726,11 @@ declare const routes$2: {
4860
5726
  contentScanVerdict?: string | null | undefined;
4861
5727
  }[];
4862
5728
  filter?: any;
4863
- triggerType?: string | null | undefined;
5729
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
4864
5730
  triggerData?: string | null | undefined;
5731
+ triggerFilter?: any;
5732
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
5733
+ reentryPeriodDays?: number | null | undefined;
4865
5734
  excludeFilter?: any;
4866
5735
  entrantsCount?: number | undefined;
4867
5736
  report?: any;
@@ -4887,6 +5756,7 @@ declare const routes$2: {
4887
5756
  title: string;
4888
5757
  emailsOrder: string[];
4889
5758
  entrants: string[];
5759
+ viewInBrowser: boolean;
4890
5760
  emails: {
4891
5761
  content: {
4892
5762
  style: Record<string, any>;
@@ -4906,8 +5776,11 @@ declare const routes$2: {
4906
5776
  contentScanVerdict?: string | null | undefined;
4907
5777
  }[];
4908
5778
  filter?: any;
4909
- triggerType?: string | null | undefined;
5779
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
4910
5780
  triggerData?: string | null | undefined;
5781
+ triggerFilter?: any;
5782
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
5783
+ reentryPeriodDays?: number | null | undefined;
4911
5784
  excludeFilter?: any;
4912
5785
  entrantsCount?: number | undefined;
4913
5786
  report?: any;
@@ -4990,14 +5863,18 @@ declare const routes$2: {
4990
5863
  type: "team";
4991
5864
  espId?: string | undefined;
4992
5865
  }>]>>;
4993
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5866
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
4994
5867
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5868
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
5869
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
5870
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
4995
5871
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4996
5872
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4997
5873
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
4998
5874
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
4999
5875
  entrants: zod.ZodArray<zod.ZodString, "many">;
5000
5876
  report: zod.ZodAny;
5877
+ viewInBrowser: zod.ZodBoolean;
5001
5878
  createdAt: zod.ZodNullable<zod.ZodString>;
5002
5879
  updatedAt: zod.ZodNullable<zod.ZodString>;
5003
5880
  emails: zod.ZodArray<zod.ZodObject<{
@@ -5094,6 +5971,7 @@ declare const routes$2: {
5094
5971
  title: string;
5095
5972
  emailsOrder: string[];
5096
5973
  entrants: string[];
5974
+ viewInBrowser: boolean;
5097
5975
  emails: {
5098
5976
  content: {
5099
5977
  style: Record<string, any>;
@@ -5113,8 +5991,11 @@ declare const routes$2: {
5113
5991
  contentScanVerdict?: string | null | undefined;
5114
5992
  }[];
5115
5993
  filter?: any;
5116
- triggerType?: string | null | undefined;
5994
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
5117
5995
  triggerData?: string | null | undefined;
5996
+ triggerFilter?: any;
5997
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
5998
+ reentryPeriodDays?: number | null | undefined;
5118
5999
  excludeFilter?: any;
5119
6000
  entrantsCount?: number | undefined;
5120
6001
  report?: any;
@@ -5140,6 +6021,7 @@ declare const routes$2: {
5140
6021
  title: string;
5141
6022
  emailsOrder: string[];
5142
6023
  entrants: string[];
6024
+ viewInBrowser: boolean;
5143
6025
  emails: {
5144
6026
  content: {
5145
6027
  style: Record<string, any>;
@@ -5159,8 +6041,11 @@ declare const routes$2: {
5159
6041
  contentScanVerdict?: string | null | undefined;
5160
6042
  }[];
5161
6043
  filter?: any;
5162
- triggerType?: string | null | undefined;
6044
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
5163
6045
  triggerData?: string | null | undefined;
6046
+ triggerFilter?: any;
6047
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
6048
+ reentryPeriodDays?: number | null | undefined;
5164
6049
  excludeFilter?: any;
5165
6050
  entrantsCount?: number | undefined;
5166
6051
  report?: any;
@@ -6204,14 +7089,18 @@ declare const routes$2: {
6204
7089
  type: "team";
6205
7090
  espId?: string | undefined;
6206
7091
  }>]>>;
6207
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7092
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
6208
7093
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7094
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
7095
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
7096
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
6209
7097
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6210
7098
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6211
7099
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
6212
7100
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
6213
7101
  entrants: zod.ZodArray<zod.ZodString, "many">;
6214
7102
  report: zod.ZodAny;
7103
+ viewInBrowser: zod.ZodBoolean;
6215
7104
  createdAt: zod.ZodNullable<zod.ZodString>;
6216
7105
  updatedAt: zod.ZodNullable<zod.ZodString>;
6217
7106
  emails: zod.ZodArray<zod.ZodObject<{
@@ -6308,6 +7197,7 @@ declare const routes$2: {
6308
7197
  title: string;
6309
7198
  emailsOrder: string[];
6310
7199
  entrants: string[];
7200
+ viewInBrowser: boolean;
6311
7201
  emails: {
6312
7202
  content: {
6313
7203
  style: Record<string, any>;
@@ -6327,8 +7217,11 @@ declare const routes$2: {
6327
7217
  contentScanVerdict?: string | null | undefined;
6328
7218
  }[];
6329
7219
  filter?: any;
6330
- triggerType?: string | null | undefined;
7220
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
6331
7221
  triggerData?: string | null | undefined;
7222
+ triggerFilter?: any;
7223
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
7224
+ reentryPeriodDays?: number | null | undefined;
6332
7225
  excludeFilter?: any;
6333
7226
  entrantsCount?: number | undefined;
6334
7227
  report?: any;
@@ -6354,6 +7247,7 @@ declare const routes$2: {
6354
7247
  title: string;
6355
7248
  emailsOrder: string[];
6356
7249
  entrants: string[];
7250
+ viewInBrowser: boolean;
6357
7251
  emails: {
6358
7252
  content: {
6359
7253
  style: Record<string, any>;
@@ -6373,8 +7267,11 @@ declare const routes$2: {
6373
7267
  contentScanVerdict?: string | null | undefined;
6374
7268
  }[];
6375
7269
  filter?: any;
6376
- triggerType?: string | null | undefined;
7270
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
6377
7271
  triggerData?: string | null | undefined;
7272
+ triggerFilter?: any;
7273
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
7274
+ reentryPeriodDays?: number | null | undefined;
6378
7275
  excludeFilter?: any;
6379
7276
  entrantsCount?: number | undefined;
6380
7277
  report?: any;
@@ -6438,6 +7335,7 @@ declare const routes$2: {
6438
7335
  reason: "suppressed";
6439
7336
  }>, "many">;
6440
7337
  lastTestSentAt: zod.ZodNullable<zod.ZodString>;
7338
+ eventSample: zod.ZodOptional<zod.ZodEnum<["last_event", "none"]>>;
6441
7339
  }, "strip", zod.ZodTypeAny, {
6442
7340
  lastTestSentAt: string | null;
6443
7341
  sent: string[];
@@ -6445,6 +7343,7 @@ declare const routes$2: {
6445
7343
  email: string;
6446
7344
  reason: "suppressed";
6447
7345
  }[];
7346
+ eventSample?: "last_event" | "none" | undefined;
6448
7347
  }, {
6449
7348
  lastTestSentAt: string | null;
6450
7349
  sent: string[];
@@ -6452,6 +7351,7 @@ declare const routes$2: {
6452
7351
  email: string;
6453
7352
  reason: "suppressed";
6454
7353
  }[];
7354
+ eventSample?: "last_event" | "none" | undefined;
6455
7355
  }>;
6456
7356
  400: zod.ZodObject<{
6457
7357
  error: zod.ZodString;
@@ -6505,14 +7405,18 @@ declare const routes$2: {
6505
7405
  type: "team";
6506
7406
  espId?: string | undefined;
6507
7407
  }>]>>;
6508
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7408
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
6509
7409
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7410
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
7411
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
7412
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
6510
7413
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6511
7414
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6512
7415
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
6513
7416
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
6514
7417
  entrants: zod.ZodArray<zod.ZodString, "many">;
6515
7418
  report: zod.ZodAny;
7419
+ viewInBrowser: zod.ZodBoolean;
6516
7420
  createdAt: zod.ZodNullable<zod.ZodString>;
6517
7421
  updatedAt: zod.ZodNullable<zod.ZodString>;
6518
7422
  emails: zod.ZodArray<zod.ZodObject<{
@@ -6609,6 +7513,7 @@ declare const routes$2: {
6609
7513
  title: string;
6610
7514
  emailsOrder: string[];
6611
7515
  entrants: string[];
7516
+ viewInBrowser: boolean;
6612
7517
  emails: {
6613
7518
  content: {
6614
7519
  style: Record<string, any>;
@@ -6628,8 +7533,11 @@ declare const routes$2: {
6628
7533
  contentScanVerdict?: string | null | undefined;
6629
7534
  }[];
6630
7535
  filter?: any;
6631
- triggerType?: string | null | undefined;
7536
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
6632
7537
  triggerData?: string | null | undefined;
7538
+ triggerFilter?: any;
7539
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
7540
+ reentryPeriodDays?: number | null | undefined;
6633
7541
  excludeFilter?: any;
6634
7542
  entrantsCount?: number | undefined;
6635
7543
  report?: any;
@@ -6655,6 +7563,7 @@ declare const routes$2: {
6655
7563
  title: string;
6656
7564
  emailsOrder: string[];
6657
7565
  entrants: string[];
7566
+ viewInBrowser: boolean;
6658
7567
  emails: {
6659
7568
  content: {
6660
7569
  style: Record<string, any>;
@@ -6674,8 +7583,11 @@ declare const routes$2: {
6674
7583
  contentScanVerdict?: string | null | undefined;
6675
7584
  }[];
6676
7585
  filter?: any;
6677
- triggerType?: string | null | undefined;
7586
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
6678
7587
  triggerData?: string | null | undefined;
7588
+ triggerFilter?: any;
7589
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
7590
+ reentryPeriodDays?: number | null | undefined;
6679
7591
  excludeFilter?: any;
6680
7592
  entrantsCount?: number | undefined;
6681
7593
  report?: any;
@@ -6734,14 +7646,18 @@ declare const routes$2: {
6734
7646
  type: "team";
6735
7647
  espId?: string | undefined;
6736
7648
  }>]>>;
6737
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7649
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
6738
7650
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7651
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
7652
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
7653
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
6739
7654
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6740
7655
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6741
7656
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
6742
7657
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
6743
7658
  entrants: zod.ZodArray<zod.ZodString, "many">;
6744
7659
  report: zod.ZodAny;
7660
+ viewInBrowser: zod.ZodBoolean;
6745
7661
  createdAt: zod.ZodNullable<zod.ZodString>;
6746
7662
  updatedAt: zod.ZodNullable<zod.ZodString>;
6747
7663
  emails: zod.ZodArray<zod.ZodObject<{
@@ -6838,6 +7754,7 @@ declare const routes$2: {
6838
7754
  title: string;
6839
7755
  emailsOrder: string[];
6840
7756
  entrants: string[];
7757
+ viewInBrowser: boolean;
6841
7758
  emails: {
6842
7759
  content: {
6843
7760
  style: Record<string, any>;
@@ -6857,8 +7774,11 @@ declare const routes$2: {
6857
7774
  contentScanVerdict?: string | null | undefined;
6858
7775
  }[];
6859
7776
  filter?: any;
6860
- triggerType?: string | null | undefined;
7777
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
6861
7778
  triggerData?: string | null | undefined;
7779
+ triggerFilter?: any;
7780
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
7781
+ reentryPeriodDays?: number | null | undefined;
6862
7782
  excludeFilter?: any;
6863
7783
  entrantsCount?: number | undefined;
6864
7784
  report?: any;
@@ -6884,6 +7804,7 @@ declare const routes$2: {
6884
7804
  title: string;
6885
7805
  emailsOrder: string[];
6886
7806
  entrants: string[];
7807
+ viewInBrowser: boolean;
6887
7808
  emails: {
6888
7809
  content: {
6889
7810
  style: Record<string, any>;
@@ -6903,8 +7824,11 @@ declare const routes$2: {
6903
7824
  contentScanVerdict?: string | null | undefined;
6904
7825
  }[];
6905
7826
  filter?: any;
6906
- triggerType?: string | null | undefined;
7827
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
6907
7828
  triggerData?: string | null | undefined;
7829
+ triggerFilter?: any;
7830
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
7831
+ reentryPeriodDays?: number | null | undefined;
6908
7832
  excludeFilter?: any;
6909
7833
  entrantsCount?: number | undefined;
6910
7834
  report?: any;
@@ -6962,14 +7886,18 @@ declare const routes$2: {
6962
7886
  type: "team";
6963
7887
  espId?: string | undefined;
6964
7888
  }>]>>;
6965
- triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7889
+ triggerType: zod.ZodOptional<zod.ZodNullable<zod.ZodEnum<["subscriber:added", "tag:added", "tag:removed", "date:occurred", "event:custom", "contact:property_changed"]>>>;
6966
7890
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7891
+ triggerFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
7892
+ reentry: zod.ZodOptional<zod.ZodEnum<["every_time", "once", "once_per_period"]>>;
7893
+ reentryPeriodDays: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
6967
7894
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6968
7895
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6969
7896
  entrantsCount: zod.ZodOptional<zod.ZodNumber>;
6970
7897
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
6971
7898
  entrants: zod.ZodArray<zod.ZodString, "many">;
6972
7899
  report: zod.ZodAny;
7900
+ viewInBrowser: zod.ZodBoolean;
6973
7901
  createdAt: zod.ZodNullable<zod.ZodString>;
6974
7902
  updatedAt: zod.ZodNullable<zod.ZodString>;
6975
7903
  emails: zod.ZodArray<zod.ZodObject<{
@@ -7066,6 +7994,7 @@ declare const routes$2: {
7066
7994
  title: string;
7067
7995
  emailsOrder: string[];
7068
7996
  entrants: string[];
7997
+ viewInBrowser: boolean;
7069
7998
  emails: {
7070
7999
  content: {
7071
8000
  style: Record<string, any>;
@@ -7085,8 +8014,11 @@ declare const routes$2: {
7085
8014
  contentScanVerdict?: string | null | undefined;
7086
8015
  }[];
7087
8016
  filter?: any;
7088
- triggerType?: string | null | undefined;
8017
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
7089
8018
  triggerData?: string | null | undefined;
8019
+ triggerFilter?: any;
8020
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
8021
+ reentryPeriodDays?: number | null | undefined;
7090
8022
  excludeFilter?: any;
7091
8023
  entrantsCount?: number | undefined;
7092
8024
  report?: any;
@@ -7112,6 +8044,7 @@ declare const routes$2: {
7112
8044
  title: string;
7113
8045
  emailsOrder: string[];
7114
8046
  entrants: string[];
8047
+ viewInBrowser: boolean;
7115
8048
  emails: {
7116
8049
  content: {
7117
8050
  style: Record<string, any>;
@@ -7131,8 +8064,11 @@ declare const routes$2: {
7131
8064
  contentScanVerdict?: string | null | undefined;
7132
8065
  }[];
7133
8066
  filter?: any;
7134
- triggerType?: string | null | undefined;
8067
+ triggerType?: "subscriber:added" | "tag:added" | "tag:removed" | "date:occurred" | "event:custom" | "contact:property_changed" | null | undefined;
7135
8068
  triggerData?: string | null | undefined;
8069
+ triggerFilter?: any;
8070
+ reentry?: "every_time" | "once" | "once_per_period" | undefined;
8071
+ reentryPeriodDays?: number | null | undefined;
7136
8072
  excludeFilter?: any;
7137
8073
  entrantsCount?: number | undefined;
7138
8074
  report?: any;
@@ -7404,13 +8340,13 @@ declare const routes$1: {
7404
8340
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
7405
8341
  }, "strip", zod.ZodTypeAny, {
7406
8342
  active?: boolean | undefined;
7407
- reason?: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual" | undefined;
7408
8343
  offset?: number | undefined;
8344
+ reason?: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression" | undefined;
7409
8345
  itemsPerPage?: number | undefined;
7410
8346
  }, {
7411
8347
  active?: boolean | undefined;
7412
- reason?: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual" | undefined;
7413
8348
  offset?: number | undefined;
8349
+ reason?: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression" | undefined;
7414
8350
  itemsPerPage?: number | undefined;
7415
8351
  }>;
7416
8352
  summary: "List the team's suppressed recipients";
@@ -7431,7 +8367,7 @@ declare const routes$1: {
7431
8367
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7432
8368
  }, "strip", zod.ZodTypeAny, {
7433
8369
  active: boolean;
7434
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8370
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7435
8371
  recipientEmail: string | null;
7436
8372
  suppressionId: string;
7437
8373
  firstSuppressedAt: string;
@@ -7440,7 +8376,7 @@ declare const routes$1: {
7440
8376
  releaseReason?: string | null | undefined;
7441
8377
  }, {
7442
8378
  active: boolean;
7443
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8379
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7444
8380
  recipientEmail: string | null;
7445
8381
  suppressionId: string;
7446
8382
  firstSuppressedAt: string;
@@ -7452,7 +8388,7 @@ declare const routes$1: {
7452
8388
  }, "strip", zod.ZodTypeAny, {
7453
8389
  items: {
7454
8390
  active: boolean;
7455
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8391
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7456
8392
  recipientEmail: string | null;
7457
8393
  suppressionId: string;
7458
8394
  firstSuppressedAt: string;
@@ -7464,7 +8400,7 @@ declare const routes$1: {
7464
8400
  }, {
7465
8401
  items: {
7466
8402
  active: boolean;
7467
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8403
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7468
8404
  recipientEmail: string | null;
7469
8405
  suppressionId: string;
7470
8406
  firstSuppressedAt: string;
@@ -7506,7 +8442,7 @@ declare const routes$1: {
7506
8442
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7507
8443
  }, "strip", zod.ZodTypeAny, {
7508
8444
  active: boolean;
7509
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8445
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7510
8446
  recipientEmail: string | null;
7511
8447
  suppressionId: string;
7512
8448
  firstSuppressedAt: string;
@@ -7515,7 +8451,7 @@ declare const routes$1: {
7515
8451
  releaseReason?: string | null | undefined;
7516
8452
  }, {
7517
8453
  active: boolean;
7518
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8454
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7519
8455
  recipientEmail: string | null;
7520
8456
  suppressionId: string;
7521
8457
  firstSuppressedAt: string;
@@ -7551,7 +8487,7 @@ declare const routes$1: {
7551
8487
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7552
8488
  }, "strip", zod.ZodTypeAny, {
7553
8489
  active: boolean;
7554
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8490
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7555
8491
  recipientEmail: string | null;
7556
8492
  suppressionId: string;
7557
8493
  firstSuppressedAt: string;
@@ -7560,7 +8496,7 @@ declare const routes$1: {
7560
8496
  releaseReason?: string | null | undefined;
7561
8497
  }, {
7562
8498
  active: boolean;
7563
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8499
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7564
8500
  recipientEmail: string | null;
7565
8501
  suppressionId: string;
7566
8502
  firstSuppressedAt: string;
@@ -7604,7 +8540,7 @@ declare const routes$1: {
7604
8540
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7605
8541
  }, "strip", zod.ZodTypeAny, {
7606
8542
  active: boolean;
7607
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8543
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7608
8544
  recipientEmail: string | null;
7609
8545
  suppressionId: string;
7610
8546
  firstSuppressedAt: string;
@@ -7613,7 +8549,7 @@ declare const routes$1: {
7613
8549
  releaseReason?: string | null | undefined;
7614
8550
  }, {
7615
8551
  active: boolean;
7616
- reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
8552
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
7617
8553
  recipientEmail: string | null;
7618
8554
  suppressionId: string;
7619
8555
  firstSuppressedAt: string;
@@ -7710,8 +8646,8 @@ declare const routes: {
7710
8646
  meta: Record<string, any>;
7711
8647
  content: Record<string, any>[];
7712
8648
  };
7713
- templateId: string;
7714
8649
  title: string;
8650
+ templateId: string;
7715
8651
  purpose: "marketing" | "transactional";
7716
8652
  requiredVariables: string[];
7717
8653
  variableDefinitions?: {
@@ -7726,8 +8662,8 @@ declare const routes: {
7726
8662
  meta: Record<string, any>;
7727
8663
  content: Record<string, any>[];
7728
8664
  };
7729
- templateId: string;
7730
8665
  title: string;
8666
+ templateId: string;
7731
8667
  purpose: "marketing" | "transactional";
7732
8668
  requiredVariables: string[];
7733
8669
  variableDefinitions?: {
@@ -7744,8 +8680,8 @@ declare const routes: {
7744
8680
  meta: Record<string, any>;
7745
8681
  content: Record<string, any>[];
7746
8682
  };
7747
- templateId: string;
7748
8683
  title: string;
8684
+ templateId: string;
7749
8685
  purpose: "marketing" | "transactional";
7750
8686
  requiredVariables: string[];
7751
8687
  variableDefinitions?: {
@@ -7762,8 +8698,8 @@ declare const routes: {
7762
8698
  meta: Record<string, any>;
7763
8699
  content: Record<string, any>[];
7764
8700
  };
7765
- templateId: string;
7766
8701
  title: string;
8702
+ templateId: string;
7767
8703
  purpose: "marketing" | "transactional";
7768
8704
  requiredVariables: string[];
7769
8705
  variableDefinitions?: {
@@ -8780,8 +9716,8 @@ declare const routes: {
8780
9716
  };
8781
9717
  updatedAt: string | null;
8782
9718
  createdAt: string | null;
8783
- templateId: string;
8784
9719
  title: string;
9720
+ templateId: string;
8785
9721
  purpose: "marketing" | "transactional";
8786
9722
  requiredVariables: string[];
8787
9723
  validationError?: string | undefined;
@@ -8793,8 +9729,8 @@ declare const routes: {
8793
9729
  };
8794
9730
  updatedAt: string | null;
8795
9731
  createdAt: string | null;
8796
- templateId: string;
8797
9732
  title: string;
9733
+ templateId: string;
8798
9734
  purpose: "marketing" | "transactional";
8799
9735
  requiredVariables: string[];
8800
9736
  validationError?: string | undefined;
@@ -8835,8 +9771,8 @@ declare const routes: {
8835
9771
  };
8836
9772
  updatedAt: string | null;
8837
9773
  createdAt: string | null;
8838
- templateId: string;
8839
9774
  title: string;
9775
+ templateId: string;
8840
9776
  purpose: "marketing" | "transactional";
8841
9777
  requiredVariables: string[];
8842
9778
  validationError?: string | undefined;
@@ -8880,8 +9816,8 @@ declare const routes: {
8880
9816
  };
8881
9817
  updatedAt: string | null;
8882
9818
  createdAt: string | null;
8883
- templateId: string;
8884
9819
  title: string;
9820
+ templateId: string;
8885
9821
  purpose: "marketing" | "transactional";
8886
9822
  requiredVariables: string[];
8887
9823
  validationError?: string | undefined;
@@ -8893,8 +9829,8 @@ declare const routes: {
8893
9829
  };
8894
9830
  updatedAt: string | null;
8895
9831
  createdAt: string | null;
8896
- templateId: string;
8897
9832
  title: string;
9833
+ templateId: string;
8898
9834
  purpose: "marketing" | "transactional";
8899
9835
  requiredVariables: string[];
8900
9836
  validationError?: string | undefined;
@@ -9919,8 +10855,8 @@ declare const routes: {
9919
10855
  };
9920
10856
  updatedAt: string | null;
9921
10857
  createdAt: string | null;
9922
- templateId: string;
9923
10858
  title: string;
10859
+ templateId: string;
9924
10860
  purpose: "marketing" | "transactional";
9925
10861
  requiredVariables: string[];
9926
10862
  validationError?: string | undefined;
@@ -9932,8 +10868,8 @@ declare const routes: {
9932
10868
  };
9933
10869
  updatedAt: string | null;
9934
10870
  createdAt: string | null;
9935
- templateId: string;
9936
10871
  title: string;
10872
+ templateId: string;
9937
10873
  purpose: "marketing" | "transactional";
9938
10874
  requiredVariables: string[];
9939
10875
  validationError?: string | undefined;
@@ -10009,8 +10945,8 @@ declare const routes: {
10009
10945
  };
10010
10946
  updatedAt: string | null;
10011
10947
  createdAt: string | null;
10012
- templateId: string;
10013
10948
  title: string;
10949
+ templateId: string;
10014
10950
  purpose: "marketing" | "transactional";
10015
10951
  requiredVariables: string[];
10016
10952
  validationError?: string | undefined;
@@ -10022,8 +10958,8 @@ declare const routes: {
10022
10958
  };
10023
10959
  updatedAt: string | null;
10024
10960
  createdAt: string | null;
10025
- templateId: string;
10026
10961
  title: string;
10962
+ templateId: string;
10027
10963
  purpose: "marketing" | "transactional";
10028
10964
  requiredVariables: string[];
10029
10965
  validationError?: string | undefined;
@@ -10113,6 +11049,8 @@ declare class SendLit {
10113
11049
  readonly sequences: Sequences;
10114
11050
  /** Transactional emails. */
10115
11051
  readonly emails: Emails;
11052
+ /** Custom events and the team's event definitions. */
11053
+ readonly events: Events;
10116
11054
  readonly provisioning: Provisioning;
10117
11055
  readonly suppressions: Suppressions;
10118
11056
  readonly deliveryEvents: DeliveryEvents;
@@ -10142,4 +11080,4 @@ declare class SendLitError extends Error {
10142
11080
  static fromResponse(status: number, body: unknown, headers?: Headers): SendLitError;
10143
11081
  }
10144
11082
 
10145
- export { AddSequenceEmailInput, Contact, ContactDelivery, Contacts, CreateContactInput, CreateSegmentInput, CreateSequenceInput, CreateTeamKeyInput, CreateTemplateInput, CreatedTeamKey, DEFAULT_ENDPOINT, DeliveryEvent, DeliveryEvents, DuplicateTemplateInput, EmailTemplate, Emails, ListContactsQuery, ListDeliveryEventsQuery, ListEmailsQuery, ListSequenceSubscribersQuery, ListSequencesQuery, ListSuppressionsQuery, ListTemplatesQuery, ProvisionTeamInput, ProvisionTeamResponse, ProvisionedTeam, ProvisionedTeamUsage, Provisioning, ReleaseSuppressionInput, Segment, Segments, SendEmailInput, SendEmailResponse, SendLit, SendLitError, SendLitOptions, Sequence, SequenceStats, Sequences, Suppression, Suppressions, SystemTemplate, Templates, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateTemplateInput };
11083
+ export { AddSequenceEmailInput, Contact, ContactDelivery, ContactEvent, Contacts, CreateContactInput, CreateEventDefinitionInput, CreateSegmentInput, CreateSequenceInput, CreateTeamKeyInput, CreateTemplateInput, CreatedTeamKey, DEFAULT_ENDPOINT, DeliveryEvent, DeliveryEvents, DuplicateTemplateInput, EmailTemplate, Emails, EventDefinition, EventDefinitionDetail, EventDefinitions, Events, ListContactEventsQuery, ListContactsQuery, ListDeliveryEventsQuery, ListEmailsQuery, ListSequenceSubscribersQuery, ListSequencesQuery, ListSuppressionsQuery, ListTemplatesQuery, ProvisionTeamInput, ProvisionTeamResponse, ProvisionedTeam, ProvisionedTeamUsage, Provisioning, ReleaseSuppressionInput, Segment, Segments, SendEmailInput, SendEmailResponse, SendLit, SendLitError, SendLitOptions, Sequence, SequenceStats, Sequences, Suppression, Suppressions, SystemTemplate, Templates, TrackEventInput, TrackEventResponse, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateEventDefinitionInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateTemplateInput };