sendlit 0.7.0 → 0.8.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
@@ -52,16 +52,59 @@ declare const routes$c: {
52
52
  name: zod.ZodOptional<zod.ZodString>;
53
53
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
54
54
  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">]>>>>;
55
+ consent: zod.ZodOptional<zod.ZodObject<{
56
+ source: zod.ZodOptional<zod.ZodString>;
57
+ wording: zod.ZodOptional<zod.ZodString>;
58
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
59
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
60
+ externalActorId: zod.ZodOptional<zod.ZodString>;
61
+ ipAddress: zod.ZodOptional<zod.ZodString>;
62
+ userAgent: zod.ZodOptional<zod.ZodString>;
63
+ }, "strip", zod.ZodTypeAny, {
64
+ source?: string | undefined;
65
+ wording?: string | undefined;
66
+ consentedAt?: string | undefined;
67
+ actor?: "contact" | "app" | undefined;
68
+ externalActorId?: string | undefined;
69
+ ipAddress?: string | undefined;
70
+ userAgent?: string | undefined;
71
+ }, {
72
+ source?: string | undefined;
73
+ wording?: string | undefined;
74
+ consentedAt?: string | undefined;
75
+ actor?: "contact" | "app" | undefined;
76
+ externalActorId?: string | undefined;
77
+ ipAddress?: string | undefined;
78
+ userAgent?: string | undefined;
79
+ }>>;
55
80
  }, "strip", zod.ZodTypeAny, {
56
81
  email: string;
57
82
  name?: string | undefined;
58
83
  tags?: string[] | undefined;
59
84
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
85
+ consent?: {
86
+ source?: string | undefined;
87
+ wording?: string | undefined;
88
+ consentedAt?: string | undefined;
89
+ actor?: "contact" | "app" | undefined;
90
+ externalActorId?: string | undefined;
91
+ ipAddress?: string | undefined;
92
+ userAgent?: string | undefined;
93
+ } | undefined;
60
94
  }, {
61
95
  email: string;
62
96
  name?: string | undefined;
63
97
  tags?: string[] | undefined;
64
98
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
99
+ consent?: {
100
+ source?: string | undefined;
101
+ wording?: string | undefined;
102
+ consentedAt?: string | undefined;
103
+ actor?: "contact" | "app" | undefined;
104
+ externalActorId?: string | undefined;
105
+ ipAddress?: string | undefined;
106
+ userAgent?: string | undefined;
107
+ } | undefined;
65
108
  }>;
66
109
  responses: {
67
110
  201: zod.ZodObject<{
@@ -221,7 +264,7 @@ declare const routes$c: {
221
264
  };
222
265
  import: {
223
266
  summary: "Import contacts";
224
- description: "Creates or updates up to 1000 contacts per request, matched by email. A status can only get stricter (subscribed < unsubscribed < bounced < complained): an import never re-subscribes an unsubscribed or suppressed contact, and bounced or complained rows are imported unsubscribed and added to the suppression list. Paused contacts stay subscribed with the `paused` tag. Tags and custom fields are merged into existing contacts, and an earlier createdAt replaces a later one. Imports don't trigger sequences. Subscribed contacts over the plan's limit are skipped with `plan_limit_reached`.";
267
+ description: "Creates or updates up to 1000 contacts per request, matched by email. A status can only get stricter (subscribed < unsubscribed < bounced < complained): an import never re-subscribes an unsubscribed or suppressed contact, and bounced or complained rows are imported unsubscribed and added to the suppression list. Paused contacts stay subscribed with the `paused` tag. Tags and custom fields are merged into existing contacts, and an earlier createdAt replaces a later one. Imports don't trigger sequences. Subscribed contacts over the plan's limit are skipped with `plan_limit_reached`. When any row would be imported subscribed, `consentConfirmed: true` is required (400 `consent_confirmation_required` otherwise): you confirm these people agreed to receive marketing email from you. Each imported contact gets a consent event with the returned `importId`, the confirmation, who imported, and the row's `optedInAt` as a claimed time.";
225
268
  metadata: {
226
269
  tag: string;
227
270
  };
@@ -233,6 +276,7 @@ declare const routes$c: {
233
276
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
234
277
  status: zod.ZodOptional<zod.ZodString>;
235
278
  createdAt: zod.ZodOptional<zod.ZodString>;
279
+ optedInAt: zod.ZodOptional<zod.ZodString>;
236
280
  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">]>>>>;
237
281
  row: zod.ZodOptional<zod.ZodNumber>;
238
282
  }, "strip", zod.ZodTypeAny, {
@@ -242,6 +286,7 @@ declare const routes$c: {
242
286
  tags?: string[] | undefined;
243
287
  createdAt?: string | undefined;
244
288
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
289
+ optedInAt?: string | undefined;
245
290
  row?: number | undefined;
246
291
  }, {
247
292
  email: string;
@@ -250,11 +295,28 @@ declare const routes$c: {
250
295
  tags?: string[] | undefined;
251
296
  createdAt?: string | undefined;
252
297
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
298
+ optedInAt?: string | undefined;
253
299
  row?: number | undefined;
254
300
  }>, "many">;
255
301
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
256
302
  pending: zod.ZodOptional<zod.ZodEnum<["skip", "unsubscribed"]>>;
257
303
  source: zod.ZodOptional<zod.ZodString>;
304
+ consentConfirmed: zod.ZodOptional<zod.ZodBoolean>;
305
+ consent: zod.ZodOptional<zod.ZodObject<Pick<{
306
+ source: zod.ZodOptional<zod.ZodString>;
307
+ wording: zod.ZodOptional<zod.ZodString>;
308
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
309
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
310
+ externalActorId: zod.ZodOptional<zod.ZodString>;
311
+ ipAddress: zod.ZodOptional<zod.ZodString>;
312
+ userAgent: zod.ZodOptional<zod.ZodString>;
313
+ }, "source" | "wording">, "strip", zod.ZodTypeAny, {
314
+ source?: string | undefined;
315
+ wording?: string | undefined;
316
+ }, {
317
+ source?: string | undefined;
318
+ wording?: string | undefined;
319
+ }>>;
258
320
  }, "strip", zod.ZodTypeAny, {
259
321
  contacts: {
260
322
  email: string;
@@ -263,11 +325,17 @@ declare const routes$c: {
263
325
  tags?: string[] | undefined;
264
326
  createdAt?: string | undefined;
265
327
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
328
+ optedInAt?: string | undefined;
266
329
  row?: number | undefined;
267
330
  }[];
268
331
  tags?: string[] | undefined;
269
332
  pending?: "unsubscribed" | "skip" | undefined;
270
333
  source?: string | undefined;
334
+ consent?: {
335
+ source?: string | undefined;
336
+ wording?: string | undefined;
337
+ } | undefined;
338
+ consentConfirmed?: boolean | undefined;
271
339
  }, {
272
340
  contacts: {
273
341
  email: string;
@@ -276,14 +344,21 @@ declare const routes$c: {
276
344
  tags?: string[] | undefined;
277
345
  createdAt?: string | undefined;
278
346
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
347
+ optedInAt?: string | undefined;
279
348
  row?: number | undefined;
280
349
  }[];
281
350
  tags?: string[] | undefined;
282
351
  pending?: "unsubscribed" | "skip" | undefined;
283
352
  source?: string | undefined;
353
+ consent?: {
354
+ source?: string | undefined;
355
+ wording?: string | undefined;
356
+ } | undefined;
357
+ consentConfirmed?: boolean | undefined;
284
358
  }>;
285
359
  responses: {
286
360
  200: zod.ZodObject<{
361
+ importId: zod.ZodString;
287
362
  created: zod.ZodNumber;
288
363
  updated: zod.ZodNumber;
289
364
  unchanged: zod.ZodNumber;
@@ -304,6 +379,7 @@ declare const routes$c: {
304
379
  }, "strip", zod.ZodTypeAny, {
305
380
  created: number;
306
381
  suppressed: number;
382
+ importId: string;
307
383
  skipped: {
308
384
  email: string;
309
385
  reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
@@ -314,6 +390,7 @@ declare const routes$c: {
314
390
  }, {
315
391
  created: number;
316
392
  suppressed: number;
393
+ importId: string;
317
394
  skipped: {
318
395
  email: string;
319
396
  reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
@@ -344,7 +421,7 @@ declare const routes$c: {
344
421
  segmentId?: string | undefined;
345
422
  }>;
346
423
  summary: "Export contacts as CSV";
347
- description: "Returns every contact, or those matching segmentId and/or filter, as CSV: email, name, status (subscribed, unsubscribed, bounced or complained), tags, created_at, suppression_reason, then one column per custom field.";
424
+ description: "Returns every contact, or those matching segmentId and/or filter, as CSV: email, name, status (subscribed, unsubscribed, bounced or complained), tags, created_at, suppression_reason, the latest opt-in's opted_in_at, consent_channel, consent_source and consent_wording, then one column per custom field.";
348
425
  metadata: {
349
426
  tag: string;
350
427
  };
@@ -1401,16 +1478,59 @@ declare const routes$c: {
1401
1478
  subscribed: zod.ZodOptional<zod.ZodBoolean>;
1402
1479
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1403
1480
  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">]>>>>;
1481
+ consent: zod.ZodOptional<zod.ZodObject<{
1482
+ source: zod.ZodOptional<zod.ZodString>;
1483
+ wording: zod.ZodOptional<zod.ZodString>;
1484
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
1485
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
1486
+ externalActorId: zod.ZodOptional<zod.ZodString>;
1487
+ ipAddress: zod.ZodOptional<zod.ZodString>;
1488
+ userAgent: zod.ZodOptional<zod.ZodString>;
1489
+ }, "strip", zod.ZodTypeAny, {
1490
+ source?: string | undefined;
1491
+ wording?: string | undefined;
1492
+ consentedAt?: string | undefined;
1493
+ actor?: "contact" | "app" | undefined;
1494
+ externalActorId?: string | undefined;
1495
+ ipAddress?: string | undefined;
1496
+ userAgent?: string | undefined;
1497
+ }, {
1498
+ source?: string | undefined;
1499
+ wording?: string | undefined;
1500
+ consentedAt?: string | undefined;
1501
+ actor?: "contact" | "app" | undefined;
1502
+ externalActorId?: string | undefined;
1503
+ ipAddress?: string | undefined;
1504
+ userAgent?: string | undefined;
1505
+ }>>;
1404
1506
  }, "strip", zod.ZodTypeAny, {
1405
1507
  name?: string | undefined;
1406
1508
  tags?: string[] | undefined;
1407
1509
  subscribed?: boolean | undefined;
1408
1510
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1511
+ consent?: {
1512
+ source?: string | undefined;
1513
+ wording?: string | undefined;
1514
+ consentedAt?: string | undefined;
1515
+ actor?: "contact" | "app" | undefined;
1516
+ externalActorId?: string | undefined;
1517
+ ipAddress?: string | undefined;
1518
+ userAgent?: string | undefined;
1519
+ } | undefined;
1409
1520
  }, {
1410
1521
  name?: string | undefined;
1411
1522
  tags?: string[] | undefined;
1412
1523
  subscribed?: boolean | undefined;
1413
1524
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1525
+ consent?: {
1526
+ source?: string | undefined;
1527
+ wording?: string | undefined;
1528
+ consentedAt?: string | undefined;
1529
+ actor?: "contact" | "app" | undefined;
1530
+ externalActorId?: string | undefined;
1531
+ ipAddress?: string | undefined;
1532
+ userAgent?: string | undefined;
1533
+ } | undefined;
1414
1534
  }>;
1415
1535
  responses: {
1416
1536
  200: zod.ZodObject<{
@@ -1635,7 +1755,7 @@ declare const routes$c: {
1635
1755
  }>, "many">;
1636
1756
  }, "strip", zod.ZodTypeAny, {
1637
1757
  name: string;
1638
- source: "api" | "session" | "mcp";
1758
+ source: "api" | "mcp" | "session";
1639
1759
  eventId: string;
1640
1760
  occurredAt: string;
1641
1761
  receivedAt: string;
@@ -1648,7 +1768,7 @@ declare const routes$c: {
1648
1768
  }[];
1649
1769
  }, {
1650
1770
  name: string;
1651
- source: "api" | "session" | "mcp";
1771
+ source: "api" | "mcp" | "session";
1652
1772
  eventId: string;
1653
1773
  occurredAt: string;
1654
1774
  receivedAt: string;
@@ -1664,7 +1784,7 @@ declare const routes$c: {
1664
1784
  }, "strip", zod.ZodTypeAny, {
1665
1785
  items: {
1666
1786
  name: string;
1667
- source: "api" | "session" | "mcp";
1787
+ source: "api" | "mcp" | "session";
1668
1788
  eventId: string;
1669
1789
  occurredAt: string;
1670
1790
  receivedAt: string;
@@ -1680,7 +1800,7 @@ declare const routes$c: {
1680
1800
  }, {
1681
1801
  items: {
1682
1802
  name: string;
1683
- source: "api" | "session" | "mcp";
1803
+ source: "api" | "mcp" | "session";
1684
1804
  eventId: string;
1685
1805
  occurredAt: string;
1686
1806
  receivedAt: string;
@@ -1704,8 +1824,124 @@ declare const routes$c: {
1704
1824
  };
1705
1825
  path: "/contacts/:contactId/events";
1706
1826
  };
1827
+ consent: {
1828
+ summary: "List a contact's consent history";
1829
+ description: "Every opt-in, opt-out and suppression recorded for the contact, newest first: how it reached SendLit (`channel`), where it was collected (`source`), the wording the person agreed to, who made it, and for forms and imports the IP address, user agent, double opt-in and import confirmation. Contacts that existed before consent records start with one `pre_tracking` event holding their state at that time. The history is deleted with the contact.";
1830
+ metadata: {
1831
+ tag: string;
1832
+ };
1833
+ method: "GET";
1834
+ responses: {
1835
+ 200: zod.ZodObject<{
1836
+ items: zod.ZodArray<zod.ZodObject<{
1837
+ consentEventId: zod.ZodString;
1838
+ action: zod.ZodEnum<["opt_in", "opt_out", "suppressed"]>;
1839
+ channel: zod.ZodEnum<["form", "import", "api", "mcp", "dashboard", "unsubscribe_link", "list_unsubscribe", "suppression", "pre_tracking"]>;
1840
+ source: zod.ZodNullable<zod.ZodString>;
1841
+ wording: zod.ZodNullable<zod.ZodString>;
1842
+ recordedAt: zod.ZodString;
1843
+ consentedAt: zod.ZodNullable<zod.ZodString>;
1844
+ actorType: zod.ZodEnum<["contact", "member", "api_key", "system"]>;
1845
+ actorUserId: zod.ZodNullable<zod.ZodString>;
1846
+ apiKeyId: zod.ZodNullable<zod.ZodString>;
1847
+ externalActorId: zod.ZodNullable<zod.ZodString>;
1848
+ ipAddress: zod.ZodNullable<zod.ZodString>;
1849
+ userAgent: zod.ZodNullable<zod.ZodString>;
1850
+ formId: zod.ZodNullable<zod.ZodString>;
1851
+ doubleOptIn: zod.ZodNullable<zod.ZodBoolean>;
1852
+ importId: zod.ZodNullable<zod.ZodString>;
1853
+ importConfirmed: zod.ZodNullable<zod.ZodBoolean>;
1854
+ }, "strip", zod.ZodTypeAny, {
1855
+ action: "opt_in" | "opt_out" | "suppressed";
1856
+ actorType: "member" | "system" | "contact" | "api_key";
1857
+ source: string | null;
1858
+ wording: string | null;
1859
+ consentedAt: string | null;
1860
+ externalActorId: string | null;
1861
+ ipAddress: string | null;
1862
+ userAgent: string | null;
1863
+ consentEventId: string;
1864
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1865
+ recordedAt: string;
1866
+ actorUserId: string | null;
1867
+ apiKeyId: string | null;
1868
+ formId: string | null;
1869
+ doubleOptIn: boolean | null;
1870
+ importId: string | null;
1871
+ importConfirmed: boolean | null;
1872
+ }, {
1873
+ action: "opt_in" | "opt_out" | "suppressed";
1874
+ actorType: "member" | "system" | "contact" | "api_key";
1875
+ source: string | null;
1876
+ wording: string | null;
1877
+ consentedAt: string | null;
1878
+ externalActorId: string | null;
1879
+ ipAddress: string | null;
1880
+ userAgent: string | null;
1881
+ consentEventId: string;
1882
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1883
+ recordedAt: string;
1884
+ actorUserId: string | null;
1885
+ apiKeyId: string | null;
1886
+ formId: string | null;
1887
+ doubleOptIn: boolean | null;
1888
+ importId: string | null;
1889
+ importConfirmed: boolean | null;
1890
+ }>, "many">;
1891
+ }, "strip", zod.ZodTypeAny, {
1892
+ items: {
1893
+ action: "opt_in" | "opt_out" | "suppressed";
1894
+ actorType: "member" | "system" | "contact" | "api_key";
1895
+ source: string | null;
1896
+ wording: string | null;
1897
+ consentedAt: string | null;
1898
+ externalActorId: string | null;
1899
+ ipAddress: string | null;
1900
+ userAgent: string | null;
1901
+ consentEventId: string;
1902
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1903
+ recordedAt: string;
1904
+ actorUserId: string | null;
1905
+ apiKeyId: string | null;
1906
+ formId: string | null;
1907
+ doubleOptIn: boolean | null;
1908
+ importId: string | null;
1909
+ importConfirmed: boolean | null;
1910
+ }[];
1911
+ }, {
1912
+ items: {
1913
+ action: "opt_in" | "opt_out" | "suppressed";
1914
+ actorType: "member" | "system" | "contact" | "api_key";
1915
+ source: string | null;
1916
+ wording: string | null;
1917
+ consentedAt: string | null;
1918
+ externalActorId: string | null;
1919
+ ipAddress: string | null;
1920
+ userAgent: string | null;
1921
+ consentEventId: string;
1922
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1923
+ recordedAt: string;
1924
+ actorUserId: string | null;
1925
+ apiKeyId: string | null;
1926
+ formId: string | null;
1927
+ doubleOptIn: boolean | null;
1928
+ importId: string | null;
1929
+ importConfirmed: boolean | null;
1930
+ }[];
1931
+ }>;
1932
+ 404: zod.ZodObject<{
1933
+ error: zod.ZodString;
1934
+ }, "strip", zod.ZodTypeAny, {
1935
+ error: string;
1936
+ }, {
1937
+ error: string;
1938
+ }>;
1939
+ };
1940
+ path: "/contacts/:contactId/consent";
1941
+ };
1707
1942
  remove: {
1708
1943
  summary: "Delete a contact";
1944
+ description: "Deletes the contact with its consent history, custom field values, events and delivery records.";
1709
1945
  metadata: {
1710
1946
  tag: string;
1711
1947
  };
@@ -1723,6 +1959,11 @@ type ListContactsQuery = Query<typeof routes$c.list>;
1723
1959
  type ContactDelivery = Ok<typeof routes$c.deliveries>[number];
1724
1960
  type ContactEvent = Ok<typeof routes$c.events>["items"][number];
1725
1961
  type ListContactEventsQuery = Query<typeof routes$c.events>;
1962
+ type ConsentEvent = Ok<typeof routes$c.consent>["items"][number];
1963
+ /** Consent details to pass with `create` or `update`. */
1964
+ type ConsentInput = NonNullable<CreateContactInput["consent"]>;
1965
+ type ImportContactsInput = Body<typeof routes$c.import>;
1966
+ type ImportContactsResult = Ok<typeof routes$c.import>;
1726
1967
  declare class Contacts {
1727
1968
  private readonly http;
1728
1969
  constructor(http: HttpClient);
@@ -1744,6 +1985,15 @@ declare class Contacts {
1744
1985
  removeTag(contactId: string, tag: string): Promise<Contact>;
1745
1986
  /** Broadcast and sequence emails delivered to this contact. */
1746
1987
  deliveries(contactId: string): Promise<ContactDelivery[]>;
1988
+ /** The contact's consent history, newest first: every opt-in, opt-out
1989
+ * and suppression with its channel, source, wording, actor, and for forms
1990
+ * and imports the IP address, user agent, double opt-in and import
1991
+ * confirmation. Keep it as proof of consent. */
1992
+ consent(contactId: string): Promise<ConsentEvent[]>;
1993
+ /** Imports up to 1000 contacts, matched by email. Importing anyone as
1994
+ * subscribed requires `consentConfirmed: true`: you confirm they agreed
1995
+ * to receive marketing email from you. */
1996
+ import(input: ImportContactsInput): Promise<ImportContactsResult>;
1747
1997
  /** Custom events received for this contact, newest first, with the
1748
1998
  * sequences each one started. */
1749
1999
  events(contactId: string, query?: ListContactEventsQuery): Promise<Ok<typeof routes$c.events>>;
@@ -1761,19 +2011,19 @@ declare const routes$b: {
1761
2011
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
1762
2012
  }, "strip", zod.ZodTypeAny, {
1763
2013
  espId?: string | undefined;
2014
+ offset?: number | undefined;
1764
2015
  deliverySourceType?: "organization" | "team" | undefined;
1765
- eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected" | undefined;
2016
+ eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected" | undefined;
1766
2017
  createdAfter?: number | undefined;
1767
2018
  createdBefore?: number | undefined;
1768
- offset?: number | undefined;
1769
2019
  itemsPerPage?: number | undefined;
1770
2020
  }, {
1771
2021
  espId?: string | undefined;
2022
+ offset?: number | undefined;
1772
2023
  deliverySourceType?: "organization" | "team" | undefined;
1773
- eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected" | undefined;
2024
+ eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected" | undefined;
1774
2025
  createdAfter?: number | undefined;
1775
2026
  createdBefore?: number | undefined;
1776
- offset?: number | undefined;
1777
2027
  itemsPerPage?: number | undefined;
1778
2028
  }>;
1779
2029
  summary: "List normalized delivery events for the team";
@@ -1804,7 +2054,7 @@ declare const routes$b: {
1804
2054
  deliverySourceType: "organization" | "team" | null;
1805
2055
  messageId: string | null;
1806
2056
  recipientEmail: string | null;
1807
- eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2057
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1808
2058
  occurredAt: string;
1809
2059
  receivedAt: string;
1810
2060
  reason?: string | null | undefined;
@@ -1818,7 +2068,7 @@ declare const routes$b: {
1818
2068
  deliverySourceType: "organization" | "team" | null;
1819
2069
  messageId: string | null;
1820
2070
  recipientEmail: string | null;
1821
- eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2071
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1822
2072
  occurredAt: string;
1823
2073
  receivedAt: string;
1824
2074
  reason?: string | null | undefined;
@@ -1835,7 +2085,7 @@ declare const routes$b: {
1835
2085
  deliverySourceType: "organization" | "team" | null;
1836
2086
  messageId: string | null;
1837
2087
  recipientEmail: string | null;
1838
- eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2088
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1839
2089
  occurredAt: string;
1840
2090
  receivedAt: string;
1841
2091
  reason?: string | null | undefined;
@@ -1852,7 +2102,7 @@ declare const routes$b: {
1852
2102
  deliverySourceType: "organization" | "team" | null;
1853
2103
  messageId: string | null;
1854
2104
  recipientEmail: string | null;
1855
- eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2105
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1856
2106
  occurredAt: string;
1857
2107
  receivedAt: string;
1858
2108
  reason?: string | null | undefined;
@@ -1893,7 +2143,7 @@ declare const routes$b: {
1893
2143
  deliverySourceType: "organization" | "team" | null;
1894
2144
  messageId: string | null;
1895
2145
  recipientEmail: string | null;
1896
- eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2146
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1897
2147
  occurredAt: string;
1898
2148
  receivedAt: string;
1899
2149
  reason?: string | null | undefined;
@@ -1907,7 +2157,7 @@ declare const routes$b: {
1907
2157
  deliverySourceType: "organization" | "team" | null;
1908
2158
  messageId: string | null;
1909
2159
  recipientEmail: string | null;
1910
- eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2160
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1911
2161
  occurredAt: string;
1912
2162
  receivedAt: string;
1913
2163
  reason?: string | null | undefined;
@@ -2252,15 +2502,15 @@ declare const routes$a: {
2252
2502
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
2253
2503
  }, "strip", zod.ZodTypeAny, {
2254
2504
  status?: "bounced" | "failed" | "sent" | "queued" | "suppressed" | undefined;
2505
+ offset?: number | undefined;
2255
2506
  createdAfter?: number | undefined;
2256
2507
  createdBefore?: number | undefined;
2257
- offset?: number | undefined;
2258
2508
  itemsPerPage?: number | undefined;
2259
2509
  }, {
2260
2510
  status?: "bounced" | "failed" | "sent" | "queued" | "suppressed" | undefined;
2511
+ offset?: number | undefined;
2261
2512
  createdAfter?: number | undefined;
2262
2513
  createdBefore?: number | undefined;
2263
- offset?: number | undefined;
2264
2514
  itemsPerPage?: number | undefined;
2265
2515
  }>;
2266
2516
  summary: "List transactional emails";
@@ -2419,80 +2669,80 @@ declare const routes$9: {
2419
2669
  eventName: string;
2420
2670
  email?: string | undefined;
2421
2671
  idempotencyKey?: string | undefined;
2672
+ contact?: {
2673
+ name?: string | undefined;
2674
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2675
+ } | undefined;
2422
2676
  occurredAt?: string | undefined;
2423
2677
  contactId?: string | undefined;
2424
2678
  properties?: Record<string, unknown> | undefined;
2425
2679
  backfill?: boolean | undefined;
2426
2680
  createContact?: boolean | undefined;
2427
- contact?: {
2428
- name?: string | undefined;
2429
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2430
- } | undefined;
2431
2681
  }, {
2432
2682
  eventName: string;
2433
2683
  email?: string | undefined;
2434
2684
  idempotencyKey?: string | undefined;
2685
+ contact?: {
2686
+ name?: string | undefined;
2687
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2688
+ } | undefined;
2435
2689
  occurredAt?: string | undefined;
2436
2690
  contactId?: string | undefined;
2437
2691
  properties?: Record<string, unknown> | undefined;
2438
2692
  backfill?: boolean | undefined;
2439
2693
  createContact?: boolean | undefined;
2440
- contact?: {
2441
- name?: string | undefined;
2442
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2443
- } | undefined;
2444
2694
  }>, {
2445
2695
  eventName: string;
2446
2696
  email?: string | undefined;
2447
2697
  idempotencyKey?: string | undefined;
2698
+ contact?: {
2699
+ name?: string | undefined;
2700
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2701
+ } | undefined;
2448
2702
  occurredAt?: string | undefined;
2449
2703
  contactId?: string | undefined;
2450
2704
  properties?: Record<string, unknown> | undefined;
2451
2705
  backfill?: boolean | undefined;
2452
2706
  createContact?: boolean | undefined;
2453
- contact?: {
2454
- name?: string | undefined;
2455
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2456
- } | undefined;
2457
2707
  }, {
2458
2708
  eventName: string;
2459
2709
  email?: string | undefined;
2460
2710
  idempotencyKey?: string | undefined;
2711
+ contact?: {
2712
+ name?: string | undefined;
2713
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2714
+ } | undefined;
2461
2715
  occurredAt?: string | undefined;
2462
2716
  contactId?: string | undefined;
2463
2717
  properties?: Record<string, unknown> | undefined;
2464
2718
  backfill?: boolean | undefined;
2465
2719
  createContact?: boolean | undefined;
2466
- contact?: {
2467
- name?: string | undefined;
2468
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2469
- } | undefined;
2470
2720
  }>, {
2471
2721
  eventName: string;
2472
2722
  email?: string | undefined;
2473
2723
  idempotencyKey?: string | undefined;
2724
+ contact?: {
2725
+ name?: string | undefined;
2726
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2727
+ } | undefined;
2474
2728
  occurredAt?: string | undefined;
2475
2729
  contactId?: string | undefined;
2476
2730
  properties?: Record<string, unknown> | undefined;
2477
2731
  backfill?: boolean | undefined;
2478
2732
  createContact?: boolean | undefined;
2479
- contact?: {
2480
- name?: string | undefined;
2481
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2482
- } | undefined;
2483
2733
  }, {
2484
2734
  eventName: string;
2485
2735
  email?: string | undefined;
2486
2736
  idempotencyKey?: string | undefined;
2737
+ contact?: {
2738
+ name?: string | undefined;
2739
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2740
+ } | undefined;
2487
2741
  occurredAt?: string | undefined;
2488
2742
  contactId?: string | undefined;
2489
2743
  properties?: Record<string, unknown> | undefined;
2490
2744
  backfill?: boolean | undefined;
2491
2745
  createContact?: boolean | undefined;
2492
- contact?: {
2493
- name?: string | undefined;
2494
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2495
- } | undefined;
2496
2746
  }>;
2497
2747
  responses: {
2498
2748
  202: zod.ZodObject<{
@@ -3296,7 +3546,7 @@ declare const routes$8: {
3296
3546
  };
3297
3547
  submit: {
3298
3548
  summary: "Submit a signup to a form";
3299
- description: "Signs someone up through the form from your own server, for a signup page you host yourself. It works like a submission to the form's public URL: double opt-in forms email the confirmation link and subscribe only once it's clicked, single opt-in never resubscribes someone who unsubscribed, and suppressed or disposable addresses are dropped quietly. A double opt-in form doesn't email someone who is already subscribed. Pass `clientIp` so the per-IP rate limit applies to the person, not your server. Fails with 400 `invalid_email`, 429 `too_many_requests`, or 503 `form_unavailable` when the team can't send the confirmation email.";
3549
+ description: "Signs someone up through the form from your own server, for a signup page you host yourself. It works like a submission to the form's public URL: double opt-in forms email the confirmation link and subscribe only once it's clicked, single opt-in never resubscribes someone who unsubscribed, and suppressed or disposable addresses are dropped quietly. A double opt-in form doesn't email someone who is already subscribed. Pass `clientIp` so the per-IP rate limit applies to the person, not your server. For double opt-in, `confirmation` replaces the email and points its link at your own page (for example to match your site's language); that page confirms the token with POST /forms/{formId}/confirmations. Fails with 400 `invalid_email`, 429 `too_many_requests`, or 503 `form_unavailable` when the team can't send the confirmation email.";
3300
3550
  metadata: {
3301
3551
  tag: string;
3302
3552
  };
@@ -3305,14 +3555,87 @@ declare const routes$8: {
3305
3555
  email: zod.ZodString;
3306
3556
  name: zod.ZodOptional<zod.ZodString>;
3307
3557
  clientIp: zod.ZodOptional<zod.ZodString>;
3558
+ confirmation: zod.ZodOptional<zod.ZodObject<{
3559
+ url: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>>;
3560
+ email: zod.ZodOptional<zod.ZodObject<{
3561
+ subject: zod.ZodString;
3562
+ html: zod.ZodEffects<zod.ZodString, string, string>;
3563
+ text: zod.ZodEffects<zod.ZodString, string, string>;
3564
+ }, "strip", zod.ZodTypeAny, {
3565
+ text: string;
3566
+ html: string;
3567
+ subject: string;
3568
+ }, {
3569
+ text: string;
3570
+ html: string;
3571
+ subject: string;
3572
+ }>>;
3573
+ }, "strip", zod.ZodTypeAny, {
3574
+ email?: {
3575
+ text: string;
3576
+ html: string;
3577
+ subject: string;
3578
+ } | undefined;
3579
+ url?: string | undefined;
3580
+ }, {
3581
+ email?: {
3582
+ text: string;
3583
+ html: string;
3584
+ subject: string;
3585
+ } | undefined;
3586
+ url?: string | undefined;
3587
+ }>>;
3588
+ consent: zod.ZodOptional<zod.ZodObject<Pick<{
3589
+ source: zod.ZodOptional<zod.ZodString>;
3590
+ wording: zod.ZodOptional<zod.ZodString>;
3591
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
3592
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
3593
+ externalActorId: zod.ZodOptional<zod.ZodString>;
3594
+ ipAddress: zod.ZodOptional<zod.ZodString>;
3595
+ userAgent: zod.ZodOptional<zod.ZodString>;
3596
+ }, "source" | "wording" | "userAgent">, "strip", zod.ZodTypeAny, {
3597
+ source?: string | undefined;
3598
+ wording?: string | undefined;
3599
+ userAgent?: string | undefined;
3600
+ }, {
3601
+ source?: string | undefined;
3602
+ wording?: string | undefined;
3603
+ userAgent?: string | undefined;
3604
+ }>>;
3308
3605
  }, "strip", zod.ZodTypeAny, {
3309
3606
  email: string;
3310
3607
  name?: string | undefined;
3608
+ consent?: {
3609
+ source?: string | undefined;
3610
+ wording?: string | undefined;
3611
+ userAgent?: string | undefined;
3612
+ } | undefined;
3311
3613
  clientIp?: string | undefined;
3614
+ confirmation?: {
3615
+ email?: {
3616
+ text: string;
3617
+ html: string;
3618
+ subject: string;
3619
+ } | undefined;
3620
+ url?: string | undefined;
3621
+ } | undefined;
3312
3622
  }, {
3313
3623
  email: string;
3314
3624
  name?: string | undefined;
3625
+ consent?: {
3626
+ source?: string | undefined;
3627
+ wording?: string | undefined;
3628
+ userAgent?: string | undefined;
3629
+ } | undefined;
3315
3630
  clientIp?: string | undefined;
3631
+ confirmation?: {
3632
+ email?: {
3633
+ text: string;
3634
+ html: string;
3635
+ subject: string;
3636
+ } | undefined;
3637
+ url?: string | undefined;
3638
+ } | undefined;
3316
3639
  }>;
3317
3640
  responses: {
3318
3641
  200: zod.ZodObject<{
@@ -3357,6 +3680,51 @@ declare const routes$8: {
3357
3680
  };
3358
3681
  path: "/forms/:formId/submissions";
3359
3682
  };
3683
+ confirm: {
3684
+ summary: "Confirm a double opt-in signup";
3685
+ description: "Confirms a signup from the token in its confirmation link, for a confirmation page you host yourself (see `confirmation.url` on submit). Subscribes the person with the form's tags; confirming again is harmless. Only call it when the person presses a button on your page: link scanners open emailed links too. Fails with 400 `invalid_token` when the token is unknown, expired, or belongs to another form.";
3686
+ metadata: {
3687
+ tag: string;
3688
+ };
3689
+ method: "POST";
3690
+ body: zod.ZodObject<{
3691
+ token: zod.ZodString;
3692
+ clientIp: zod.ZodOptional<zod.ZodString>;
3693
+ userAgent: zod.ZodOptional<zod.ZodString>;
3694
+ }, "strip", zod.ZodTypeAny, {
3695
+ token: string;
3696
+ userAgent?: string | undefined;
3697
+ clientIp?: string | undefined;
3698
+ }, {
3699
+ token: string;
3700
+ userAgent?: string | undefined;
3701
+ clientIp?: string | undefined;
3702
+ }>;
3703
+ responses: {
3704
+ 200: zod.ZodObject<{
3705
+ status: zod.ZodLiteral<"confirmed">;
3706
+ }, "strip", zod.ZodTypeAny, {
3707
+ status: "confirmed";
3708
+ }, {
3709
+ status: "confirmed";
3710
+ }>;
3711
+ 400: zod.ZodObject<{
3712
+ error: zod.ZodString;
3713
+ }, "strip", zod.ZodTypeAny, {
3714
+ error: string;
3715
+ }, {
3716
+ error: string;
3717
+ }>;
3718
+ 404: zod.ZodObject<{
3719
+ error: zod.ZodString;
3720
+ }, "strip", zod.ZodTypeAny, {
3721
+ error: string;
3722
+ }, {
3723
+ error: string;
3724
+ }>;
3725
+ };
3726
+ path: "/forms/:formId/confirmations";
3727
+ };
3360
3728
  };
3361
3729
  /** A public signup form, with its hosted page `url`. */
3362
3730
  type SignupForm = Ok<typeof routes$8.get>;
@@ -3364,6 +3732,7 @@ type CreateSignupFormInput = Body<typeof routes$8.create>;
3364
3732
  type UpdateSignupFormInput = Body<typeof routes$8.update>;
3365
3733
  type SubmitSignupFormInput = Body<typeof routes$8.submit>;
3366
3734
  type SignupFormSubmission = Ok<typeof routes$8.submit>;
3735
+ type SignupConfirmation = Ok<typeof routes$8.confirm>;
3367
3736
  /** Signup forms: people subscribe on the hosted page, through an HTML form
3368
3737
  * posting to it, or through `submit` from your own server. */
3369
3738
  declare class Forms {
@@ -3382,6 +3751,12 @@ declare class Forms {
3382
3751
  * rate limit applies to them rather than to your server.
3383
3752
  */
3384
3753
  submit(formId: string, input: SubmitSignupFormInput): Promise<SignupFormSubmission>;
3754
+ /**
3755
+ * Confirms a double opt-in signup from the token in its link, for a
3756
+ * confirmation page you host (`confirmation.url` on `submit`). Call it only
3757
+ * when the person presses a button there: link scanners open links too.
3758
+ */
3759
+ confirm(formId: string, token: string): Promise<SignupConfirmation>;
3385
3760
  }
3386
3761
 
3387
3762
  declare const routes$7: {
@@ -13405,6 +13780,10 @@ declare const routes$4: {
13405
13780
  }, "strip", zod.ZodTypeAny, {
13406
13781
  email: string;
13407
13782
  reason: string | null;
13783
+ suppression: {
13784
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13785
+ suppressionId: string;
13786
+ } | null;
13408
13787
  messageId: string;
13409
13788
  smtpCode: number | null;
13410
13789
  enhancedStatusCode: string | null;
@@ -13413,13 +13792,13 @@ declare const routes$4: {
13413
13792
  emailId: string;
13414
13793
  outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
13415
13794
  bounceType: "hard" | "soft" | null;
13795
+ }, {
13796
+ email: string;
13797
+ reason: string | null;
13416
13798
  suppression: {
13417
13799
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13418
13800
  suppressionId: string;
13419
13801
  } | null;
13420
- }, {
13421
- email: string;
13422
- reason: string | null;
13423
13802
  messageId: string;
13424
13803
  smtpCode: number | null;
13425
13804
  enhancedStatusCode: string | null;
@@ -13428,16 +13807,16 @@ declare const routes$4: {
13428
13807
  emailId: string;
13429
13808
  outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
13430
13809
  bounceType: "hard" | "soft" | null;
13431
- suppression: {
13432
- reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13433
- suppressionId: string;
13434
- } | null;
13435
13810
  }>, "many">;
13436
13811
  total: zod.ZodNumber;
13437
13812
  }, "strip", zod.ZodTypeAny, {
13438
13813
  items: {
13439
13814
  email: string;
13440
13815
  reason: string | null;
13816
+ suppression: {
13817
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13818
+ suppressionId: string;
13819
+ } | null;
13441
13820
  messageId: string;
13442
13821
  smtpCode: number | null;
13443
13822
  enhancedStatusCode: string | null;
@@ -13446,16 +13825,16 @@ declare const routes$4: {
13446
13825
  emailId: string;
13447
13826
  outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
13448
13827
  bounceType: "hard" | "soft" | null;
13449
- suppression: {
13450
- reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13451
- suppressionId: string;
13452
- } | null;
13453
13828
  }[];
13454
13829
  total: number;
13455
13830
  }, {
13456
13831
  items: {
13457
13832
  email: string;
13458
13833
  reason: string | null;
13834
+ suppression: {
13835
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13836
+ suppressionId: string;
13837
+ } | null;
13459
13838
  messageId: string;
13460
13839
  smtpCode: number | null;
13461
13840
  enhancedStatusCode: string | null;
@@ -13464,10 +13843,6 @@ declare const routes$4: {
13464
13843
  emailId: string;
13465
13844
  outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
13466
13845
  bounceType: "hard" | "soft" | null;
13467
- suppression: {
13468
- reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13469
- suppressionId: string;
13470
- } | null;
13471
13846
  }[];
13472
13847
  total: number;
13473
13848
  }>;
@@ -17752,4 +18127,4 @@ declare class SendLitError extends Error {
17752
18127
  static fromResponse(status: number, body: unknown, headers?: Headers): SendLitError;
17753
18128
  }
17754
18129
 
17755
- export { AddSequenceEmailInput, Contact, ContactDelivery, ContactEvent, Contacts, CreateContactInput, CreateEventDefinitionInput, CreateSegmentInput, CreateSequenceInput, CreateSignupFormInput, CreateTeamKeyInput, CreateTemplateInput, CreatedTeamKey, DEFAULT_ENDPOINT, DeliveryEvent, DeliveryEvents, DiscardSequenceChangesInput, DuplicateTemplateInput, EmailTemplate, Emails, EventDefinition, EventDefinitionDetail, EventDefinitions, Events, Forms, GeneralSettings, GeneralSettingsResource, ListContactEventsQuery, ListContactsQuery, ListDeliveryEventsQuery, ListEmailsQuery, ListSequenceDeliveriesQuery, ListSequenceSubscribersQuery, ListSequencesQuery, ListSuppressionsQuery, ListTemplatesQuery, Overview, OverviewQuery, OverviewResource, PostalAddress, ProvisionTeamInput, ProvisionTeamResponse, ProvisionedTeam, ProvisionedTeamUsage, Provisioning, PublishSequenceChangesInput, ReleaseSuppressionInput, RemoveTagResult, RenameTagInput, RenameTagResult, Segment, Segments, SendEmailInput, SendEmailResponse, SendLit, SendLitError, SendLitOptions, SendSequenceEmailTestInput, Sequence, SequenceDelivery, SequenceEmailTestResult, SequenceEmailVersion, SequenceStats, Sequences, Settings, SignupForm, SignupFormSubmission, SubmitSignupFormInput, Suppression, Suppressions, SystemTemplate, Tag, TagReferences, Tags, Templates, TrackEventInput, TrackEventResponse, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateEventDefinitionInput, UpdateGeneralSettingsInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateSignupFormInput, UpdateTemplateInput };
18130
+ export { AddSequenceEmailInput, ConsentEvent, ConsentInput, Contact, ContactDelivery, ContactEvent, Contacts, CreateContactInput, CreateEventDefinitionInput, CreateSegmentInput, CreateSequenceInput, CreateSignupFormInput, CreateTeamKeyInput, CreateTemplateInput, CreatedTeamKey, DEFAULT_ENDPOINT, DeliveryEvent, DeliveryEvents, DiscardSequenceChangesInput, DuplicateTemplateInput, EmailTemplate, Emails, EventDefinition, EventDefinitionDetail, EventDefinitions, Events, Forms, GeneralSettings, GeneralSettingsResource, ImportContactsInput, ImportContactsResult, ListContactEventsQuery, ListContactsQuery, ListDeliveryEventsQuery, ListEmailsQuery, ListSequenceDeliveriesQuery, ListSequenceSubscribersQuery, ListSequencesQuery, ListSuppressionsQuery, ListTemplatesQuery, Overview, OverviewQuery, OverviewResource, PostalAddress, ProvisionTeamInput, ProvisionTeamResponse, ProvisionedTeam, ProvisionedTeamUsage, Provisioning, PublishSequenceChangesInput, ReleaseSuppressionInput, RemoveTagResult, RenameTagInput, RenameTagResult, Segment, Segments, SendEmailInput, SendEmailResponse, SendLit, SendLitError, SendLitOptions, SendSequenceEmailTestInput, Sequence, SequenceDelivery, SequenceEmailTestResult, SequenceEmailVersion, SequenceStats, Sequences, Settings, SignupConfirmation, SignupForm, SignupFormSubmission, SubmitSignupFormInput, Suppression, Suppressions, SystemTemplate, Tag, TagReferences, Tags, Templates, TrackEventInput, TrackEventResponse, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateEventDefinitionInput, UpdateGeneralSettingsInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateSignupFormInput, UpdateTemplateInput };