sendlit 0.5.0 → 0.7.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/README.md +10 -4
- package/dist/index.d.mts +1874 -485
- package/dist/index.d.ts +1874 -485
- package/dist/index.js +627 -301
- package/dist/index.mjs +627 -302
- package/package.json +1 -1
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$
|
|
42
|
+
declare const routes$c: {
|
|
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.";
|
|
@@ -78,8 +78,8 @@ declare const routes$b: {
|
|
|
78
78
|
email: string;
|
|
79
79
|
tags: string[];
|
|
80
80
|
subscribed: boolean;
|
|
81
|
-
createdAt: string | null;
|
|
82
81
|
updatedAt: string | null;
|
|
82
|
+
createdAt: string | null;
|
|
83
83
|
contactId: string;
|
|
84
84
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
85
85
|
unsubscribeToken: string;
|
|
@@ -88,8 +88,8 @@ declare const routes$b: {
|
|
|
88
88
|
email: string;
|
|
89
89
|
tags: string[];
|
|
90
90
|
subscribed: boolean;
|
|
91
|
-
createdAt: string | null;
|
|
92
91
|
updatedAt: string | null;
|
|
92
|
+
createdAt: string | null;
|
|
93
93
|
contactId: string;
|
|
94
94
|
unsubscribeToken: string;
|
|
95
95
|
name?: string | null | undefined;
|
|
@@ -157,8 +157,8 @@ declare const routes$b: {
|
|
|
157
157
|
email: string;
|
|
158
158
|
tags: string[];
|
|
159
159
|
subscribed: boolean;
|
|
160
|
-
createdAt: string | null;
|
|
161
160
|
updatedAt: string | null;
|
|
161
|
+
createdAt: string | null;
|
|
162
162
|
contactId: string;
|
|
163
163
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
164
164
|
unsubscribeToken: string;
|
|
@@ -167,8 +167,8 @@ declare const routes$b: {
|
|
|
167
167
|
email: string;
|
|
168
168
|
tags: string[];
|
|
169
169
|
subscribed: boolean;
|
|
170
|
-
createdAt: string | null;
|
|
171
170
|
updatedAt: string | null;
|
|
171
|
+
createdAt: string | null;
|
|
172
172
|
contactId: string;
|
|
173
173
|
unsubscribeToken: string;
|
|
174
174
|
name?: string | null | undefined;
|
|
@@ -180,8 +180,8 @@ declare const routes$b: {
|
|
|
180
180
|
email: string;
|
|
181
181
|
tags: string[];
|
|
182
182
|
subscribed: boolean;
|
|
183
|
-
createdAt: string | null;
|
|
184
183
|
updatedAt: string | null;
|
|
184
|
+
createdAt: string | null;
|
|
185
185
|
contactId: string;
|
|
186
186
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
187
187
|
unsubscribeToken: string;
|
|
@@ -193,8 +193,8 @@ declare const routes$b: {
|
|
|
193
193
|
email: string;
|
|
194
194
|
tags: string[];
|
|
195
195
|
subscribed: boolean;
|
|
196
|
-
createdAt: string | null;
|
|
197
196
|
updatedAt: string | null;
|
|
197
|
+
createdAt: string | null;
|
|
198
198
|
contactId: string;
|
|
199
199
|
unsubscribeToken: string;
|
|
200
200
|
name?: string | null | undefined;
|
|
@@ -1246,13 +1246,13 @@ declare const routes$b: {
|
|
|
1246
1246
|
deleted: zod.ZodNumber;
|
|
1247
1247
|
suppressed: zod.ZodNumber;
|
|
1248
1248
|
}, "strip", zod.ZodTypeAny, {
|
|
1249
|
-
status: "
|
|
1249
|
+
status: "failed" | "queued" | "completed" | "running";
|
|
1250
1250
|
suppressed: number;
|
|
1251
1251
|
count: number;
|
|
1252
1252
|
deletionId: string | null;
|
|
1253
1253
|
deleted: number;
|
|
1254
1254
|
}, {
|
|
1255
|
-
status: "
|
|
1255
|
+
status: "failed" | "queued" | "completed" | "running";
|
|
1256
1256
|
suppressed: number;
|
|
1257
1257
|
count: number;
|
|
1258
1258
|
deletionId: string | null;
|
|
@@ -1265,13 +1265,13 @@ declare const routes$b: {
|
|
|
1265
1265
|
deleted: zod.ZodNumber;
|
|
1266
1266
|
suppressed: zod.ZodNumber;
|
|
1267
1267
|
}, "strip", zod.ZodTypeAny, {
|
|
1268
|
-
status: "
|
|
1268
|
+
status: "failed" | "queued" | "completed" | "running";
|
|
1269
1269
|
suppressed: number;
|
|
1270
1270
|
count: number;
|
|
1271
1271
|
deletionId: string | null;
|
|
1272
1272
|
deleted: number;
|
|
1273
1273
|
}, {
|
|
1274
|
-
status: "
|
|
1274
|
+
status: "failed" | "queued" | "completed" | "running";
|
|
1275
1275
|
suppressed: number;
|
|
1276
1276
|
count: number;
|
|
1277
1277
|
deletionId: string | null;
|
|
@@ -1320,13 +1320,13 @@ declare const routes$b: {
|
|
|
1320
1320
|
deleted: zod.ZodNumber;
|
|
1321
1321
|
suppressed: zod.ZodNumber;
|
|
1322
1322
|
}, "strip", zod.ZodTypeAny, {
|
|
1323
|
-
status: "
|
|
1323
|
+
status: "failed" | "queued" | "completed" | "running";
|
|
1324
1324
|
suppressed: number;
|
|
1325
1325
|
count: number;
|
|
1326
1326
|
deletionId: string | null;
|
|
1327
1327
|
deleted: number;
|
|
1328
1328
|
}, {
|
|
1329
|
-
status: "
|
|
1329
|
+
status: "failed" | "queued" | "completed" | "running";
|
|
1330
1330
|
suppressed: number;
|
|
1331
1331
|
count: number;
|
|
1332
1332
|
deletionId: string | null;
|
|
@@ -1363,8 +1363,8 @@ declare const routes$b: {
|
|
|
1363
1363
|
email: string;
|
|
1364
1364
|
tags: string[];
|
|
1365
1365
|
subscribed: boolean;
|
|
1366
|
-
createdAt: string | null;
|
|
1367
1366
|
updatedAt: string | null;
|
|
1367
|
+
createdAt: string | null;
|
|
1368
1368
|
contactId: string;
|
|
1369
1369
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
1370
1370
|
unsubscribeToken: string;
|
|
@@ -1373,8 +1373,8 @@ declare const routes$b: {
|
|
|
1373
1373
|
email: string;
|
|
1374
1374
|
tags: string[];
|
|
1375
1375
|
subscribed: boolean;
|
|
1376
|
-
createdAt: string | null;
|
|
1377
1376
|
updatedAt: string | null;
|
|
1377
|
+
createdAt: string | null;
|
|
1378
1378
|
contactId: string;
|
|
1379
1379
|
unsubscribeToken: string;
|
|
1380
1380
|
name?: string | null | undefined;
|
|
@@ -1427,8 +1427,8 @@ declare const routes$b: {
|
|
|
1427
1427
|
email: string;
|
|
1428
1428
|
tags: string[];
|
|
1429
1429
|
subscribed: boolean;
|
|
1430
|
-
createdAt: string | null;
|
|
1431
1430
|
updatedAt: string | null;
|
|
1431
|
+
createdAt: string | null;
|
|
1432
1432
|
contactId: string;
|
|
1433
1433
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
1434
1434
|
unsubscribeToken: string;
|
|
@@ -1437,8 +1437,8 @@ declare const routes$b: {
|
|
|
1437
1437
|
email: string;
|
|
1438
1438
|
tags: string[];
|
|
1439
1439
|
subscribed: boolean;
|
|
1440
|
-
createdAt: string | null;
|
|
1441
1440
|
updatedAt: string | null;
|
|
1441
|
+
createdAt: string | null;
|
|
1442
1442
|
contactId: string;
|
|
1443
1443
|
unsubscribeToken: string;
|
|
1444
1444
|
name?: string | null | undefined;
|
|
@@ -1490,8 +1490,8 @@ declare const routes$b: {
|
|
|
1490
1490
|
email: string;
|
|
1491
1491
|
tags: string[];
|
|
1492
1492
|
subscribed: boolean;
|
|
1493
|
-
createdAt: string | null;
|
|
1494
1493
|
updatedAt: string | null;
|
|
1494
|
+
createdAt: string | null;
|
|
1495
1495
|
contactId: string;
|
|
1496
1496
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
1497
1497
|
unsubscribeToken: string;
|
|
@@ -1500,8 +1500,8 @@ declare const routes$b: {
|
|
|
1500
1500
|
email: string;
|
|
1501
1501
|
tags: string[];
|
|
1502
1502
|
subscribed: boolean;
|
|
1503
|
-
createdAt: string | null;
|
|
1504
1503
|
updatedAt: string | null;
|
|
1504
|
+
createdAt: string | null;
|
|
1505
1505
|
contactId: string;
|
|
1506
1506
|
unsubscribeToken: string;
|
|
1507
1507
|
name?: string | null | undefined;
|
|
@@ -1538,8 +1538,8 @@ declare const routes$b: {
|
|
|
1538
1538
|
email: string;
|
|
1539
1539
|
tags: string[];
|
|
1540
1540
|
subscribed: boolean;
|
|
1541
|
-
createdAt: string | null;
|
|
1542
1541
|
updatedAt: string | null;
|
|
1542
|
+
createdAt: string | null;
|
|
1543
1543
|
contactId: string;
|
|
1544
1544
|
customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
|
|
1545
1545
|
unsubscribeToken: string;
|
|
@@ -1548,8 +1548,8 @@ declare const routes$b: {
|
|
|
1548
1548
|
email: string;
|
|
1549
1549
|
tags: string[];
|
|
1550
1550
|
subscribed: boolean;
|
|
1551
|
-
createdAt: string | null;
|
|
1552
1551
|
updatedAt: string | null;
|
|
1552
|
+
createdAt: string | null;
|
|
1553
1553
|
contactId: string;
|
|
1554
1554
|
unsubscribeToken: string;
|
|
1555
1555
|
name?: string | null | undefined;
|
|
@@ -1566,7 +1566,8 @@ declare const routes$b: {
|
|
|
1566
1566
|
path: "/contacts/:contactId/tags/:tag";
|
|
1567
1567
|
};
|
|
1568
1568
|
deliveries: {
|
|
1569
|
-
summary: "List broadcasts/sequence emails
|
|
1569
|
+
summary: "List broadcasts/sequence emails sent to a contact";
|
|
1570
|
+
description: "Newest first. Each send has its `outcome`: sent (accepted by the ESP, no report yet), delivered, bounced, complained (marked as spam) or failed; null for sends from before the outbound message log.";
|
|
1570
1571
|
metadata: {
|
|
1571
1572
|
tag: string;
|
|
1572
1573
|
};
|
|
@@ -1574,8 +1575,10 @@ declare const routes$b: {
|
|
|
1574
1575
|
responses: {
|
|
1575
1576
|
200: _ts_rest_core.ContractPlainType<{
|
|
1576
1577
|
createdAt: string | null;
|
|
1578
|
+
messageId: string | null;
|
|
1577
1579
|
sequenceId: string;
|
|
1578
1580
|
emailId: string;
|
|
1581
|
+
outcome: "bounced" | "complained" | "failed" | "sent" | "delivered" | null;
|
|
1579
1582
|
sequenceTitle: string;
|
|
1580
1583
|
sequenceType: string;
|
|
1581
1584
|
}[]>;
|
|
@@ -1633,11 +1636,11 @@ declare const routes$b: {
|
|
|
1633
1636
|
}, "strip", zod.ZodTypeAny, {
|
|
1634
1637
|
name: string;
|
|
1635
1638
|
source: "api" | "session" | "mcp";
|
|
1636
|
-
properties: Record<string, unknown>;
|
|
1637
|
-
occurredAt: string;
|
|
1638
|
-
backfill: boolean;
|
|
1639
1639
|
eventId: string;
|
|
1640
|
+
occurredAt: string;
|
|
1640
1641
|
receivedAt: string;
|
|
1642
|
+
properties: Record<string, unknown>;
|
|
1643
|
+
backfill: boolean;
|
|
1641
1644
|
triggers: boolean;
|
|
1642
1645
|
enrolledSequences: {
|
|
1643
1646
|
sequenceId: string;
|
|
@@ -1646,11 +1649,11 @@ declare const routes$b: {
|
|
|
1646
1649
|
}, {
|
|
1647
1650
|
name: string;
|
|
1648
1651
|
source: "api" | "session" | "mcp";
|
|
1649
|
-
properties: Record<string, unknown>;
|
|
1650
|
-
occurredAt: string;
|
|
1651
|
-
backfill: boolean;
|
|
1652
1652
|
eventId: string;
|
|
1653
|
+
occurredAt: string;
|
|
1653
1654
|
receivedAt: string;
|
|
1655
|
+
properties: Record<string, unknown>;
|
|
1656
|
+
backfill: boolean;
|
|
1654
1657
|
triggers: boolean;
|
|
1655
1658
|
enrolledSequences: {
|
|
1656
1659
|
sequenceId: string;
|
|
@@ -1662,11 +1665,11 @@ declare const routes$b: {
|
|
|
1662
1665
|
items: {
|
|
1663
1666
|
name: string;
|
|
1664
1667
|
source: "api" | "session" | "mcp";
|
|
1665
|
-
properties: Record<string, unknown>;
|
|
1666
|
-
occurredAt: string;
|
|
1667
|
-
backfill: boolean;
|
|
1668
1668
|
eventId: string;
|
|
1669
|
+
occurredAt: string;
|
|
1669
1670
|
receivedAt: string;
|
|
1671
|
+
properties: Record<string, unknown>;
|
|
1672
|
+
backfill: boolean;
|
|
1670
1673
|
triggers: boolean;
|
|
1671
1674
|
enrolledSequences: {
|
|
1672
1675
|
sequenceId: string;
|
|
@@ -1678,11 +1681,11 @@ declare const routes$b: {
|
|
|
1678
1681
|
items: {
|
|
1679
1682
|
name: string;
|
|
1680
1683
|
source: "api" | "session" | "mcp";
|
|
1681
|
-
properties: Record<string, unknown>;
|
|
1682
|
-
occurredAt: string;
|
|
1683
|
-
backfill: boolean;
|
|
1684
1684
|
eventId: string;
|
|
1685
|
+
occurredAt: string;
|
|
1685
1686
|
receivedAt: string;
|
|
1687
|
+
properties: Record<string, unknown>;
|
|
1688
|
+
backfill: boolean;
|
|
1686
1689
|
triggers: boolean;
|
|
1687
1690
|
enrolledSequences: {
|
|
1688
1691
|
sequenceId: string;
|
|
@@ -1713,13 +1716,13 @@ declare const routes$b: {
|
|
|
1713
1716
|
path: "/contacts/:contactId";
|
|
1714
1717
|
};
|
|
1715
1718
|
};
|
|
1716
|
-
type Contact = Ok<typeof routes$
|
|
1717
|
-
type CreateContactInput = Body<typeof routes$
|
|
1718
|
-
type UpdateContactInput = Body<typeof routes$
|
|
1719
|
-
type ListContactsQuery = Query<typeof routes$
|
|
1720
|
-
type ContactDelivery = Ok<typeof routes$
|
|
1721
|
-
type ContactEvent = Ok<typeof routes$
|
|
1722
|
-
type ListContactEventsQuery = Query<typeof routes$
|
|
1719
|
+
type Contact = Ok<typeof routes$c.get>;
|
|
1720
|
+
type CreateContactInput = Body<typeof routes$c.create>;
|
|
1721
|
+
type UpdateContactInput = Body<typeof routes$c.update>;
|
|
1722
|
+
type ListContactsQuery = Query<typeof routes$c.list>;
|
|
1723
|
+
type ContactDelivery = Ok<typeof routes$c.deliveries>[number];
|
|
1724
|
+
type ContactEvent = Ok<typeof routes$c.events>["items"][number];
|
|
1725
|
+
type ListContactEventsQuery = Query<typeof routes$c.events>;
|
|
1723
1726
|
declare class Contacts {
|
|
1724
1727
|
private readonly http;
|
|
1725
1728
|
constructor(http: HttpClient);
|
|
@@ -1731,7 +1734,7 @@ declare class Contacts {
|
|
|
1731
1734
|
* here don't fire `tag:added`.
|
|
1732
1735
|
*/
|
|
1733
1736
|
create(input: CreateContactInput): Promise<Contact>;
|
|
1734
|
-
list(query?: ListContactsQuery): Promise<Ok<typeof routes$
|
|
1737
|
+
list(query?: ListContactsQuery): Promise<Ok<typeof routes$c.list>>;
|
|
1735
1738
|
/** Iterates every contact matching `query`, fetching pages lazily. */
|
|
1736
1739
|
listAll(query?: Omit<ListContactsQuery, "offset">): AsyncGenerator<Contact, void, undefined>;
|
|
1737
1740
|
get(contactId: string): Promise<Contact>;
|
|
@@ -1743,10 +1746,10 @@ declare class Contacts {
|
|
|
1743
1746
|
deliveries(contactId: string): Promise<ContactDelivery[]>;
|
|
1744
1747
|
/** Custom events received for this contact, newest first, with the
|
|
1745
1748
|
* sequences each one started. */
|
|
1746
|
-
events(contactId: string, query?: ListContactEventsQuery): Promise<Ok<typeof routes$
|
|
1749
|
+
events(contactId: string, query?: ListContactEventsQuery): Promise<Ok<typeof routes$c.events>>;
|
|
1747
1750
|
}
|
|
1748
1751
|
|
|
1749
|
-
declare const routes$
|
|
1752
|
+
declare const routes$b: {
|
|
1750
1753
|
list: {
|
|
1751
1754
|
query: zod.ZodObject<{
|
|
1752
1755
|
espId: zod.ZodOptional<zod.ZodString>;
|
|
@@ -1758,20 +1761,20 @@ declare const routes$a: {
|
|
|
1758
1761
|
itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
|
|
1759
1762
|
}, "strip", zod.ZodTypeAny, {
|
|
1760
1763
|
espId?: string | undefined;
|
|
1761
|
-
offset?: number | undefined;
|
|
1762
|
-
itemsPerPage?: number | undefined;
|
|
1763
1764
|
deliverySourceType?: "organization" | "team" | undefined;
|
|
1764
|
-
eventType?: "hard_bounce" | "complaint" | "
|
|
1765
|
+
eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected" | undefined;
|
|
1765
1766
|
createdAfter?: number | undefined;
|
|
1766
1767
|
createdBefore?: number | undefined;
|
|
1767
|
-
}, {
|
|
1768
|
-
espId?: string | undefined;
|
|
1769
1768
|
offset?: number | undefined;
|
|
1770
1769
|
itemsPerPage?: number | undefined;
|
|
1770
|
+
}, {
|
|
1771
|
+
espId?: string | undefined;
|
|
1771
1772
|
deliverySourceType?: "organization" | "team" | undefined;
|
|
1772
|
-
eventType?: "hard_bounce" | "complaint" | "
|
|
1773
|
+
eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected" | undefined;
|
|
1773
1774
|
createdAfter?: number | undefined;
|
|
1774
1775
|
createdBefore?: number | undefined;
|
|
1776
|
+
offset?: number | undefined;
|
|
1777
|
+
itemsPerPage?: number | undefined;
|
|
1775
1778
|
}>;
|
|
1776
1779
|
summary: "List normalized delivery events for the team";
|
|
1777
1780
|
metadata: {
|
|
@@ -1796,28 +1799,28 @@ declare const routes$a: {
|
|
|
1796
1799
|
receivedAt: zod.ZodString;
|
|
1797
1800
|
}, "strip", zod.ZodTypeAny, {
|
|
1798
1801
|
espId: string | null;
|
|
1799
|
-
occurredAt: string;
|
|
1800
1802
|
eventId: string;
|
|
1801
|
-
receivedAt: string;
|
|
1802
1803
|
provider: string;
|
|
1803
1804
|
deliverySourceType: "organization" | "team" | null;
|
|
1804
1805
|
messageId: string | null;
|
|
1805
1806
|
recipientEmail: string | null;
|
|
1806
|
-
eventType: "hard_bounce" | "complaint" | "
|
|
1807
|
+
eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
|
|
1808
|
+
occurredAt: string;
|
|
1809
|
+
receivedAt: string;
|
|
1807
1810
|
reason?: string | null | undefined;
|
|
1808
1811
|
bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
|
|
1809
1812
|
smtpCode?: number | null | undefined;
|
|
1810
1813
|
enhancedStatusCode?: string | null | undefined;
|
|
1811
1814
|
}, {
|
|
1812
1815
|
espId: string | null;
|
|
1813
|
-
occurredAt: string;
|
|
1814
1816
|
eventId: string;
|
|
1815
|
-
receivedAt: string;
|
|
1816
1817
|
provider: string;
|
|
1817
1818
|
deliverySourceType: "organization" | "team" | null;
|
|
1818
1819
|
messageId: string | null;
|
|
1819
1820
|
recipientEmail: string | null;
|
|
1820
|
-
eventType: "hard_bounce" | "complaint" | "
|
|
1821
|
+
eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
|
|
1822
|
+
occurredAt: string;
|
|
1823
|
+
receivedAt: string;
|
|
1821
1824
|
reason?: string | null | undefined;
|
|
1822
1825
|
bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
|
|
1823
1826
|
smtpCode?: number | null | undefined;
|
|
@@ -1827,14 +1830,14 @@ declare const routes$a: {
|
|
|
1827
1830
|
}, "strip", zod.ZodTypeAny, {
|
|
1828
1831
|
items: {
|
|
1829
1832
|
espId: string | null;
|
|
1830
|
-
occurredAt: string;
|
|
1831
1833
|
eventId: string;
|
|
1832
|
-
receivedAt: string;
|
|
1833
1834
|
provider: string;
|
|
1834
1835
|
deliverySourceType: "organization" | "team" | null;
|
|
1835
1836
|
messageId: string | null;
|
|
1836
1837
|
recipientEmail: string | null;
|
|
1837
|
-
eventType: "hard_bounce" | "complaint" | "
|
|
1838
|
+
eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
|
|
1839
|
+
occurredAt: string;
|
|
1840
|
+
receivedAt: string;
|
|
1838
1841
|
reason?: string | null | undefined;
|
|
1839
1842
|
bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
|
|
1840
1843
|
smtpCode?: number | null | undefined;
|
|
@@ -1844,14 +1847,14 @@ declare const routes$a: {
|
|
|
1844
1847
|
}, {
|
|
1845
1848
|
items: {
|
|
1846
1849
|
espId: string | null;
|
|
1847
|
-
occurredAt: string;
|
|
1848
1850
|
eventId: string;
|
|
1849
|
-
receivedAt: string;
|
|
1850
1851
|
provider: string;
|
|
1851
1852
|
deliverySourceType: "organization" | "team" | null;
|
|
1852
1853
|
messageId: string | null;
|
|
1853
1854
|
recipientEmail: string | null;
|
|
1854
|
-
eventType: "hard_bounce" | "complaint" | "
|
|
1855
|
+
eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
|
|
1856
|
+
occurredAt: string;
|
|
1857
|
+
receivedAt: string;
|
|
1855
1858
|
reason?: string | null | undefined;
|
|
1856
1859
|
bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
|
|
1857
1860
|
smtpCode?: number | null | undefined;
|
|
@@ -1885,28 +1888,28 @@ declare const routes$a: {
|
|
|
1885
1888
|
receivedAt: zod.ZodString;
|
|
1886
1889
|
}, "strip", zod.ZodTypeAny, {
|
|
1887
1890
|
espId: string | null;
|
|
1888
|
-
occurredAt: string;
|
|
1889
1891
|
eventId: string;
|
|
1890
|
-
receivedAt: string;
|
|
1891
1892
|
provider: string;
|
|
1892
1893
|
deliverySourceType: "organization" | "team" | null;
|
|
1893
1894
|
messageId: string | null;
|
|
1894
1895
|
recipientEmail: string | null;
|
|
1895
|
-
eventType: "hard_bounce" | "complaint" | "
|
|
1896
|
+
eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
|
|
1897
|
+
occurredAt: string;
|
|
1898
|
+
receivedAt: string;
|
|
1896
1899
|
reason?: string | null | undefined;
|
|
1897
1900
|
bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
|
|
1898
1901
|
smtpCode?: number | null | undefined;
|
|
1899
1902
|
enhancedStatusCode?: string | null | undefined;
|
|
1900
1903
|
}, {
|
|
1901
1904
|
espId: string | null;
|
|
1902
|
-
occurredAt: string;
|
|
1903
1905
|
eventId: string;
|
|
1904
|
-
receivedAt: string;
|
|
1905
1906
|
provider: string;
|
|
1906
1907
|
deliverySourceType: "organization" | "team" | null;
|
|
1907
1908
|
messageId: string | null;
|
|
1908
1909
|
recipientEmail: string | null;
|
|
1909
|
-
eventType: "hard_bounce" | "complaint" | "
|
|
1910
|
+
eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
|
|
1911
|
+
occurredAt: string;
|
|
1912
|
+
receivedAt: string;
|
|
1910
1913
|
reason?: string | null | undefined;
|
|
1911
1914
|
bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
|
|
1912
1915
|
smtpCode?: number | null | undefined;
|
|
@@ -1923,21 +1926,21 @@ declare const routes$a: {
|
|
|
1923
1926
|
path: "/delivery-events/:eventId";
|
|
1924
1927
|
};
|
|
1925
1928
|
};
|
|
1926
|
-
type DeliveryEvent = Ok<typeof routes$
|
|
1927
|
-
type ListDeliveryEventsQuery = Query<typeof routes$
|
|
1929
|
+
type DeliveryEvent = Ok<typeof routes$b.get>;
|
|
1930
|
+
type ListDeliveryEventsQuery = Query<typeof routes$b.list>;
|
|
1928
1931
|
/** Normalized delivery history (delivered, bounced, complained, …). */
|
|
1929
1932
|
declare class DeliveryEvents {
|
|
1930
1933
|
private readonly http;
|
|
1931
1934
|
constructor(http: HttpClient);
|
|
1932
|
-
list(query?: ListDeliveryEventsQuery): Promise<Ok<typeof routes$
|
|
1935
|
+
list(query?: ListDeliveryEventsQuery): Promise<Ok<typeof routes$b.list>>;
|
|
1933
1936
|
listAll(query?: Omit<ListDeliveryEventsQuery, "offset">): AsyncGenerator<DeliveryEvent, void, undefined>;
|
|
1934
1937
|
get(eventId: string): Promise<DeliveryEvent>;
|
|
1935
1938
|
}
|
|
1936
1939
|
|
|
1937
|
-
declare const routes$
|
|
1940
|
+
declare const routes$a: {
|
|
1938
1941
|
send: {
|
|
1939
1942
|
summary: "Send a transactional email";
|
|
1940
|
-
description: "Requires a
|
|
1943
|
+
description: "Requires a postal 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.";
|
|
1941
1944
|
metadata: {
|
|
1942
1945
|
tag: string;
|
|
1943
1946
|
};
|
|
@@ -1975,9 +1978,6 @@ declare const routes$9: {
|
|
|
1975
1978
|
to: string;
|
|
1976
1979
|
subject: string;
|
|
1977
1980
|
headers?: Record<string, string> | undefined;
|
|
1978
|
-
idempotencyKey?: string | undefined;
|
|
1979
|
-
text?: string | undefined;
|
|
1980
|
-
html?: string | undefined;
|
|
1981
1981
|
fromName?: string | undefined;
|
|
1982
1982
|
replyTo?: string | undefined;
|
|
1983
1983
|
deliverySource?: {
|
|
@@ -1986,6 +1986,9 @@ declare const routes$9: {
|
|
|
1986
1986
|
type: "team";
|
|
1987
1987
|
espId?: string | undefined;
|
|
1988
1988
|
} | undefined;
|
|
1989
|
+
idempotencyKey?: string | undefined;
|
|
1990
|
+
text?: string | undefined;
|
|
1991
|
+
html?: string | undefined;
|
|
1989
1992
|
templateId?: string | undefined;
|
|
1990
1993
|
variables?: Record<string, any> | undefined;
|
|
1991
1994
|
trackOpens?: boolean | undefined;
|
|
@@ -1994,9 +1997,6 @@ declare const routes$9: {
|
|
|
1994
1997
|
to: string;
|
|
1995
1998
|
subject: string;
|
|
1996
1999
|
headers?: Record<string, string> | undefined;
|
|
1997
|
-
idempotencyKey?: string | undefined;
|
|
1998
|
-
text?: string | undefined;
|
|
1999
|
-
html?: string | undefined;
|
|
2000
2000
|
fromName?: string | undefined;
|
|
2001
2001
|
replyTo?: string | undefined;
|
|
2002
2002
|
deliverySource?: {
|
|
@@ -2005,6 +2005,9 @@ declare const routes$9: {
|
|
|
2005
2005
|
type: "team";
|
|
2006
2006
|
espId?: string | undefined;
|
|
2007
2007
|
} | undefined;
|
|
2008
|
+
idempotencyKey?: string | undefined;
|
|
2009
|
+
text?: string | undefined;
|
|
2010
|
+
html?: string | undefined;
|
|
2008
2011
|
templateId?: string | undefined;
|
|
2009
2012
|
variables?: Record<string, any> | undefined;
|
|
2010
2013
|
trackOpens?: boolean | undefined;
|
|
@@ -2013,9 +2016,6 @@ declare const routes$9: {
|
|
|
2013
2016
|
to: string;
|
|
2014
2017
|
subject: string;
|
|
2015
2018
|
headers?: Record<string, string> | undefined;
|
|
2016
|
-
idempotencyKey?: string | undefined;
|
|
2017
|
-
text?: string | undefined;
|
|
2018
|
-
html?: string | undefined;
|
|
2019
2019
|
fromName?: string | undefined;
|
|
2020
2020
|
replyTo?: string | undefined;
|
|
2021
2021
|
deliverySource?: {
|
|
@@ -2024,6 +2024,9 @@ declare const routes$9: {
|
|
|
2024
2024
|
type: "team";
|
|
2025
2025
|
espId?: string | undefined;
|
|
2026
2026
|
} | undefined;
|
|
2027
|
+
idempotencyKey?: string | undefined;
|
|
2028
|
+
text?: string | undefined;
|
|
2029
|
+
html?: string | undefined;
|
|
2027
2030
|
templateId?: string | undefined;
|
|
2028
2031
|
variables?: Record<string, any> | undefined;
|
|
2029
2032
|
trackOpens?: boolean | undefined;
|
|
@@ -2032,9 +2035,6 @@ declare const routes$9: {
|
|
|
2032
2035
|
to: string;
|
|
2033
2036
|
subject: string;
|
|
2034
2037
|
headers?: Record<string, string> | undefined;
|
|
2035
|
-
idempotencyKey?: string | undefined;
|
|
2036
|
-
text?: string | undefined;
|
|
2037
|
-
html?: string | undefined;
|
|
2038
2038
|
fromName?: string | undefined;
|
|
2039
2039
|
replyTo?: string | undefined;
|
|
2040
2040
|
deliverySource?: {
|
|
@@ -2043,6 +2043,9 @@ declare const routes$9: {
|
|
|
2043
2043
|
type: "team";
|
|
2044
2044
|
espId?: string | undefined;
|
|
2045
2045
|
} | undefined;
|
|
2046
|
+
idempotencyKey?: string | undefined;
|
|
2047
|
+
text?: string | undefined;
|
|
2048
|
+
html?: string | undefined;
|
|
2046
2049
|
templateId?: string | undefined;
|
|
2047
2050
|
variables?: Record<string, any> | undefined;
|
|
2048
2051
|
trackOpens?: boolean | undefined;
|
|
@@ -2051,9 +2054,6 @@ declare const routes$9: {
|
|
|
2051
2054
|
to: string;
|
|
2052
2055
|
subject: string;
|
|
2053
2056
|
headers?: Record<string, string> | undefined;
|
|
2054
|
-
idempotencyKey?: string | undefined;
|
|
2055
|
-
text?: string | undefined;
|
|
2056
|
-
html?: string | undefined;
|
|
2057
2057
|
fromName?: string | undefined;
|
|
2058
2058
|
replyTo?: string | undefined;
|
|
2059
2059
|
deliverySource?: {
|
|
@@ -2062,6 +2062,9 @@ declare const routes$9: {
|
|
|
2062
2062
|
type: "team";
|
|
2063
2063
|
espId?: string | undefined;
|
|
2064
2064
|
} | undefined;
|
|
2065
|
+
idempotencyKey?: string | undefined;
|
|
2066
|
+
text?: string | undefined;
|
|
2067
|
+
html?: string | undefined;
|
|
2065
2068
|
templateId?: string | undefined;
|
|
2066
2069
|
variables?: Record<string, any> | undefined;
|
|
2067
2070
|
trackOpens?: boolean | undefined;
|
|
@@ -2070,9 +2073,6 @@ declare const routes$9: {
|
|
|
2070
2073
|
to: string;
|
|
2071
2074
|
subject: string;
|
|
2072
2075
|
headers?: Record<string, string> | undefined;
|
|
2073
|
-
idempotencyKey?: string | undefined;
|
|
2074
|
-
text?: string | undefined;
|
|
2075
|
-
html?: string | undefined;
|
|
2076
2076
|
fromName?: string | undefined;
|
|
2077
2077
|
replyTo?: string | undefined;
|
|
2078
2078
|
deliverySource?: {
|
|
@@ -2081,6 +2081,9 @@ declare const routes$9: {
|
|
|
2081
2081
|
type: "team";
|
|
2082
2082
|
espId?: string | undefined;
|
|
2083
2083
|
} | undefined;
|
|
2084
|
+
idempotencyKey?: string | undefined;
|
|
2085
|
+
text?: string | undefined;
|
|
2086
|
+
html?: string | undefined;
|
|
2084
2087
|
templateId?: string | undefined;
|
|
2085
2088
|
variables?: Record<string, any> | undefined;
|
|
2086
2089
|
trackOpens?: boolean | undefined;
|
|
@@ -2105,10 +2108,10 @@ declare const routes$9: {
|
|
|
2105
2108
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
2106
2109
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
2107
2110
|
}, "status" | "txeId">, "strip", zod.ZodTypeAny, {
|
|
2108
|
-
status: "bounced" | "
|
|
2111
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2109
2112
|
txeId: string;
|
|
2110
2113
|
}, {
|
|
2111
|
-
status: "bounced" | "
|
|
2114
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2112
2115
|
txeId: string;
|
|
2113
2116
|
}>;
|
|
2114
2117
|
400: zod.ZodObject<{
|
|
@@ -2193,11 +2196,11 @@ declare const routes$9: {
|
|
|
2193
2196
|
text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
2194
2197
|
}, "strip", zod.ZodTypeAny, {
|
|
2195
2198
|
error: string | null;
|
|
2196
|
-
status: "bounced" | "
|
|
2197
|
-
createdAt: string | null;
|
|
2199
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2198
2200
|
updatedAt: string | null;
|
|
2199
|
-
|
|
2201
|
+
createdAt: string | null;
|
|
2200
2202
|
replyTo: string | null;
|
|
2203
|
+
html: string | null;
|
|
2201
2204
|
from: string | null;
|
|
2202
2205
|
to: string;
|
|
2203
2206
|
subject: string;
|
|
@@ -2212,11 +2215,11 @@ declare const routes$9: {
|
|
|
2212
2215
|
text?: string | null | undefined;
|
|
2213
2216
|
}, {
|
|
2214
2217
|
error: string | null;
|
|
2215
|
-
status: "bounced" | "
|
|
2216
|
-
createdAt: string | null;
|
|
2218
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2217
2219
|
updatedAt: string | null;
|
|
2218
|
-
|
|
2220
|
+
createdAt: string | null;
|
|
2219
2221
|
replyTo: string | null;
|
|
2222
|
+
html: string | null;
|
|
2220
2223
|
from: string | null;
|
|
2221
2224
|
to: string;
|
|
2222
2225
|
subject: string;
|
|
@@ -2248,17 +2251,17 @@ declare const routes$9: {
|
|
|
2248
2251
|
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
2249
2252
|
itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
|
|
2250
2253
|
}, "strip", zod.ZodTypeAny, {
|
|
2251
|
-
status?: "bounced" | "
|
|
2252
|
-
offset?: number | undefined;
|
|
2253
|
-
itemsPerPage?: number | undefined;
|
|
2254
|
+
status?: "bounced" | "failed" | "sent" | "queued" | "suppressed" | undefined;
|
|
2254
2255
|
createdAfter?: number | undefined;
|
|
2255
2256
|
createdBefore?: number | undefined;
|
|
2256
|
-
}, {
|
|
2257
|
-
status?: "bounced" | "sent" | "queued" | "failed" | "suppressed" | undefined;
|
|
2258
2257
|
offset?: number | undefined;
|
|
2259
2258
|
itemsPerPage?: number | undefined;
|
|
2259
|
+
}, {
|
|
2260
|
+
status?: "bounced" | "failed" | "sent" | "queued" | "suppressed" | undefined;
|
|
2260
2261
|
createdAfter?: number | undefined;
|
|
2261
2262
|
createdBefore?: number | undefined;
|
|
2263
|
+
offset?: number | undefined;
|
|
2264
|
+
itemsPerPage?: number | undefined;
|
|
2262
2265
|
}>;
|
|
2263
2266
|
summary: "List transactional emails";
|
|
2264
2267
|
metadata: {
|
|
@@ -2286,9 +2289,9 @@ declare const routes$9: {
|
|
|
2286
2289
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
2287
2290
|
}, "strip", zod.ZodTypeAny, {
|
|
2288
2291
|
error: string | null;
|
|
2289
|
-
status: "bounced" | "
|
|
2290
|
-
createdAt: string | null;
|
|
2292
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2291
2293
|
updatedAt: string | null;
|
|
2294
|
+
createdAt: string | null;
|
|
2292
2295
|
replyTo: string | null;
|
|
2293
2296
|
from: string | null;
|
|
2294
2297
|
to: string;
|
|
@@ -2303,9 +2306,9 @@ declare const routes$9: {
|
|
|
2303
2306
|
clickCount: number;
|
|
2304
2307
|
}, {
|
|
2305
2308
|
error: string | null;
|
|
2306
|
-
status: "bounced" | "
|
|
2307
|
-
createdAt: string | null;
|
|
2309
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2308
2310
|
updatedAt: string | null;
|
|
2311
|
+
createdAt: string | null;
|
|
2309
2312
|
replyTo: string | null;
|
|
2310
2313
|
from: string | null;
|
|
2311
2314
|
to: string;
|
|
@@ -2323,9 +2326,9 @@ declare const routes$9: {
|
|
|
2323
2326
|
}, "strip", zod.ZodTypeAny, {
|
|
2324
2327
|
items: {
|
|
2325
2328
|
error: string | null;
|
|
2326
|
-
status: "bounced" | "
|
|
2327
|
-
createdAt: string | null;
|
|
2329
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2328
2330
|
updatedAt: string | null;
|
|
2331
|
+
createdAt: string | null;
|
|
2329
2332
|
replyTo: string | null;
|
|
2330
2333
|
from: string | null;
|
|
2331
2334
|
to: string;
|
|
@@ -2343,9 +2346,9 @@ declare const routes$9: {
|
|
|
2343
2346
|
}, {
|
|
2344
2347
|
items: {
|
|
2345
2348
|
error: string | null;
|
|
2346
|
-
status: "bounced" | "
|
|
2347
|
-
createdAt: string | null;
|
|
2349
|
+
status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
|
|
2348
2350
|
updatedAt: string | null;
|
|
2351
|
+
createdAt: string | null;
|
|
2349
2352
|
replyTo: string | null;
|
|
2350
2353
|
from: string | null;
|
|
2351
2354
|
to: string;
|
|
@@ -2365,11 +2368,11 @@ declare const routes$9: {
|
|
|
2365
2368
|
path: "/emails";
|
|
2366
2369
|
};
|
|
2367
2370
|
};
|
|
2368
|
-
type SendEmailInput = Body<typeof routes$
|
|
2369
|
-
type SendEmailResponse = Ok<typeof routes$
|
|
2370
|
-
type TransactionalEmail = Ok<typeof routes$
|
|
2371
|
-
type TransactionalEmailDetail = Ok<typeof routes$
|
|
2372
|
-
type ListEmailsQuery = Query<typeof routes$
|
|
2371
|
+
type SendEmailInput = Body<typeof routes$a.send>;
|
|
2372
|
+
type SendEmailResponse = Ok<typeof routes$a.send>;
|
|
2373
|
+
type TransactionalEmail = Ok<typeof routes$a.list>["items"][number];
|
|
2374
|
+
type TransactionalEmailDetail = Ok<typeof routes$a.get>;
|
|
2375
|
+
type ListEmailsQuery = Query<typeof routes$a.list>;
|
|
2373
2376
|
/** Transactional (single, API-triggered) emails. */
|
|
2374
2377
|
declare class Emails {
|
|
2375
2378
|
private readonly http;
|
|
@@ -2381,11 +2384,11 @@ declare class Emails {
|
|
|
2381
2384
|
*/
|
|
2382
2385
|
send(input: SendEmailInput): Promise<SendEmailResponse>;
|
|
2383
2386
|
get(txeId: string): Promise<TransactionalEmailDetail>;
|
|
2384
|
-
list(query?: ListEmailsQuery): Promise<Ok<typeof routes$
|
|
2387
|
+
list(query?: ListEmailsQuery): Promise<Ok<typeof routes$a.list>>;
|
|
2385
2388
|
listAll(query?: Omit<ListEmailsQuery, "offset">): AsyncGenerator<TransactionalEmail, void, undefined>;
|
|
2386
2389
|
}
|
|
2387
2390
|
|
|
2388
|
-
declare const routes$
|
|
2391
|
+
declare const routes$9: {
|
|
2389
2392
|
track: {
|
|
2390
2393
|
summary: "Track a custom event";
|
|
2391
2394
|
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.";
|
|
@@ -2416,9 +2419,9 @@ declare const routes$8: {
|
|
|
2416
2419
|
eventName: string;
|
|
2417
2420
|
email?: string | undefined;
|
|
2418
2421
|
idempotencyKey?: string | undefined;
|
|
2422
|
+
occurredAt?: string | undefined;
|
|
2419
2423
|
contactId?: string | undefined;
|
|
2420
2424
|
properties?: Record<string, unknown> | undefined;
|
|
2421
|
-
occurredAt?: string | undefined;
|
|
2422
2425
|
backfill?: boolean | undefined;
|
|
2423
2426
|
createContact?: boolean | undefined;
|
|
2424
2427
|
contact?: {
|
|
@@ -2429,9 +2432,9 @@ declare const routes$8: {
|
|
|
2429
2432
|
eventName: string;
|
|
2430
2433
|
email?: string | undefined;
|
|
2431
2434
|
idempotencyKey?: string | undefined;
|
|
2435
|
+
occurredAt?: string | undefined;
|
|
2432
2436
|
contactId?: string | undefined;
|
|
2433
2437
|
properties?: Record<string, unknown> | undefined;
|
|
2434
|
-
occurredAt?: string | undefined;
|
|
2435
2438
|
backfill?: boolean | undefined;
|
|
2436
2439
|
createContact?: boolean | undefined;
|
|
2437
2440
|
contact?: {
|
|
@@ -2442,9 +2445,9 @@ declare const routes$8: {
|
|
|
2442
2445
|
eventName: string;
|
|
2443
2446
|
email?: string | undefined;
|
|
2444
2447
|
idempotencyKey?: string | undefined;
|
|
2448
|
+
occurredAt?: string | undefined;
|
|
2445
2449
|
contactId?: string | undefined;
|
|
2446
2450
|
properties?: Record<string, unknown> | undefined;
|
|
2447
|
-
occurredAt?: string | undefined;
|
|
2448
2451
|
backfill?: boolean | undefined;
|
|
2449
2452
|
createContact?: boolean | undefined;
|
|
2450
2453
|
contact?: {
|
|
@@ -2455,9 +2458,9 @@ declare const routes$8: {
|
|
|
2455
2458
|
eventName: string;
|
|
2456
2459
|
email?: string | undefined;
|
|
2457
2460
|
idempotencyKey?: string | undefined;
|
|
2461
|
+
occurredAt?: string | undefined;
|
|
2458
2462
|
contactId?: string | undefined;
|
|
2459
2463
|
properties?: Record<string, unknown> | undefined;
|
|
2460
|
-
occurredAt?: string | undefined;
|
|
2461
2464
|
backfill?: boolean | undefined;
|
|
2462
2465
|
createContact?: boolean | undefined;
|
|
2463
2466
|
contact?: {
|
|
@@ -2468,9 +2471,9 @@ declare const routes$8: {
|
|
|
2468
2471
|
eventName: string;
|
|
2469
2472
|
email?: string | undefined;
|
|
2470
2473
|
idempotencyKey?: string | undefined;
|
|
2474
|
+
occurredAt?: string | undefined;
|
|
2471
2475
|
contactId?: string | undefined;
|
|
2472
2476
|
properties?: Record<string, unknown> | undefined;
|
|
2473
|
-
occurredAt?: string | undefined;
|
|
2474
2477
|
backfill?: boolean | undefined;
|
|
2475
2478
|
createContact?: boolean | undefined;
|
|
2476
2479
|
contact?: {
|
|
@@ -2481,9 +2484,9 @@ declare const routes$8: {
|
|
|
2481
2484
|
eventName: string;
|
|
2482
2485
|
email?: string | undefined;
|
|
2483
2486
|
idempotencyKey?: string | undefined;
|
|
2487
|
+
occurredAt?: string | undefined;
|
|
2484
2488
|
contactId?: string | undefined;
|
|
2485
2489
|
properties?: Record<string, unknown> | undefined;
|
|
2486
|
-
occurredAt?: string | undefined;
|
|
2487
2490
|
backfill?: boolean | undefined;
|
|
2488
2491
|
createContact?: boolean | undefined;
|
|
2489
2492
|
contact?: {
|
|
@@ -2498,13 +2501,13 @@ declare const routes$8: {
|
|
|
2498
2501
|
duplicate: zod.ZodBoolean;
|
|
2499
2502
|
contactCreated: zod.ZodBoolean;
|
|
2500
2503
|
}, "strip", zod.ZodTypeAny, {
|
|
2501
|
-
contactId: string;
|
|
2502
2504
|
eventId: string;
|
|
2505
|
+
contactId: string;
|
|
2503
2506
|
duplicate: boolean;
|
|
2504
2507
|
contactCreated: boolean;
|
|
2505
2508
|
}, {
|
|
2506
|
-
contactId: string;
|
|
2507
2509
|
eventId: string;
|
|
2510
|
+
contactId: string;
|
|
2508
2511
|
duplicate: boolean;
|
|
2509
2512
|
contactCreated: boolean;
|
|
2510
2513
|
}>;
|
|
@@ -2964,18 +2967,18 @@ declare const routes$8: {
|
|
|
2964
2967
|
path: "/events/definitions/:name";
|
|
2965
2968
|
};
|
|
2966
2969
|
};
|
|
2967
|
-
type TrackEventInput = Body<typeof routes$
|
|
2968
|
-
type TrackEventResponse = Ok<typeof routes$
|
|
2969
|
-
type EventDefinition = Ok<typeof routes$
|
|
2970
|
-
type EventDefinitionDetail = Ok<typeof routes$
|
|
2971
|
-
type CreateEventDefinitionInput = Body<typeof routes$
|
|
2972
|
-
type UpdateEventDefinitionInput = Body<typeof routes$
|
|
2970
|
+
type TrackEventInput = Body<typeof routes$9.track>;
|
|
2971
|
+
type TrackEventResponse = Ok<typeof routes$9.track>;
|
|
2972
|
+
type EventDefinition = Ok<typeof routes$9.definitions>["items"][number];
|
|
2973
|
+
type EventDefinitionDetail = Ok<typeof routes$9.definition>;
|
|
2974
|
+
type CreateEventDefinitionInput = Body<typeof routes$9.createDefinition>;
|
|
2975
|
+
type UpdateEventDefinitionInput = Body<typeof routes$9.updateDefinition>;
|
|
2973
2976
|
/** The team's list of events: registered on first receipt, or by hand so
|
|
2974
2977
|
* sequences can be built before the first event is sent. */
|
|
2975
2978
|
declare class EventDefinitions {
|
|
2976
2979
|
private readonly http;
|
|
2977
2980
|
constructor(http: HttpClient);
|
|
2978
|
-
list(): Promise<Ok<typeof routes$
|
|
2981
|
+
list(): Promise<Ok<typeof routes$9.definitions>>;
|
|
2979
2982
|
/** One event with its last received payload. Names are case-sensitive. */
|
|
2980
2983
|
get(name: string): Promise<EventDefinitionDetail>;
|
|
2981
2984
|
create(input: CreateEventDefinitionInput): Promise<EventDefinitionDetail>;
|
|
@@ -3007,90 +3010,464 @@ declare class Events {
|
|
|
3007
3010
|
track(input: TrackEventInput): Promise<TrackEventResponse>;
|
|
3008
3011
|
}
|
|
3009
3012
|
|
|
3010
|
-
declare const routes$
|
|
3011
|
-
|
|
3012
|
-
|
|
3013
|
-
rangeDays: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, number>>;
|
|
3014
|
-
}, "strip", zod.ZodTypeAny, {
|
|
3015
|
-
rangeDays?: number | undefined;
|
|
3016
|
-
}, {
|
|
3017
|
-
rangeDays?: number | undefined;
|
|
3018
|
-
}>;
|
|
3019
|
-
summary: "Get team overview metrics for a delivery activity window";
|
|
3020
|
-
description: "Use `rangeDays` (1, 3, 7, or 30; default 7) to filter transactional delivery activity and scheduled broadcasts.";
|
|
3013
|
+
declare const routes$8: {
|
|
3014
|
+
list: {
|
|
3015
|
+
summary: "List signup forms";
|
|
3021
3016
|
metadata: {
|
|
3022
3017
|
tag: string;
|
|
3023
3018
|
};
|
|
3024
3019
|
method: "GET";
|
|
3025
3020
|
responses: {
|
|
3026
3021
|
200: zod.ZodObject<{
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
sent: number;
|
|
3038
|
-
queued: number;
|
|
3039
|
-
failed: number;
|
|
3040
|
-
}, {
|
|
3041
|
-
bounced: number;
|
|
3042
|
-
sent: number;
|
|
3043
|
-
queued: number;
|
|
3044
|
-
failed: number;
|
|
3045
|
-
}>;
|
|
3046
|
-
quota: zod.ZodObject<{
|
|
3047
|
-
dailyUsed: zod.ZodNumber;
|
|
3048
|
-
dailyLimit: zod.ZodNumber;
|
|
3049
|
-
monthlyUsed: zod.ZodNumber;
|
|
3050
|
-
monthlyLimit: zod.ZodNumber;
|
|
3022
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
3023
|
+
formId: zod.ZodString;
|
|
3024
|
+
name: zod.ZodString;
|
|
3025
|
+
tags: zod.ZodArray<zod.ZodString, "many">;
|
|
3026
|
+
doubleOptIn: zod.ZodBoolean;
|
|
3027
|
+
redirectUrl: zod.ZodNullable<zod.ZodString>;
|
|
3028
|
+
url: zod.ZodString;
|
|
3029
|
+
sendingIssue: zod.ZodNullable<zod.ZodString>;
|
|
3030
|
+
createdAt: zod.ZodString;
|
|
3031
|
+
updatedAt: zod.ZodString;
|
|
3051
3032
|
}, "strip", zod.ZodTypeAny, {
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3033
|
+
name: string;
|
|
3034
|
+
tags: string[];
|
|
3035
|
+
updatedAt: string;
|
|
3036
|
+
createdAt: string;
|
|
3037
|
+
url: string;
|
|
3038
|
+
formId: string;
|
|
3039
|
+
doubleOptIn: boolean;
|
|
3040
|
+
redirectUrl: string | null;
|
|
3041
|
+
sendingIssue: string | null;
|
|
3056
3042
|
}, {
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3043
|
+
name: string;
|
|
3044
|
+
tags: string[];
|
|
3045
|
+
updatedAt: string;
|
|
3046
|
+
createdAt: string;
|
|
3047
|
+
url: string;
|
|
3048
|
+
formId: string;
|
|
3049
|
+
doubleOptIn: boolean;
|
|
3050
|
+
redirectUrl: string | null;
|
|
3051
|
+
sendingIssue: string | null;
|
|
3052
|
+
}>, "many">;
|
|
3062
3053
|
}, "strip", zod.ZodTypeAny, {
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
monthlyLimit: number;
|
|
3075
|
-
dailyUsed: number;
|
|
3076
|
-
monthlyUsed: number;
|
|
3077
|
-
};
|
|
3054
|
+
items: {
|
|
3055
|
+
name: string;
|
|
3056
|
+
tags: string[];
|
|
3057
|
+
updatedAt: string;
|
|
3058
|
+
createdAt: string;
|
|
3059
|
+
url: string;
|
|
3060
|
+
formId: string;
|
|
3061
|
+
doubleOptIn: boolean;
|
|
3062
|
+
redirectUrl: string | null;
|
|
3063
|
+
sendingIssue: string | null;
|
|
3064
|
+
}[];
|
|
3078
3065
|
}, {
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3066
|
+
items: {
|
|
3067
|
+
name: string;
|
|
3068
|
+
tags: string[];
|
|
3069
|
+
updatedAt: string;
|
|
3070
|
+
createdAt: string;
|
|
3071
|
+
url: string;
|
|
3072
|
+
formId: string;
|
|
3073
|
+
doubleOptIn: boolean;
|
|
3074
|
+
redirectUrl: string | null;
|
|
3075
|
+
sendingIssue: string | null;
|
|
3076
|
+
}[];
|
|
3077
|
+
}>;
|
|
3078
|
+
};
|
|
3079
|
+
path: "/forms";
|
|
3080
|
+
};
|
|
3081
|
+
create: {
|
|
3082
|
+
summary: "Create a signup form";
|
|
3083
|
+
description: "A public signup form for the team. People subscribe on its hosted page (`url`) or through an HTML form on your site that posts `email` (and optionally `name`) to the same URL, as a form post or JSON. Double opt-in (the default) emails a confirmation link through the team's delivery source and subscribes only once it is clicked, so it needs a sending mailbox: without one, creating a double opt-in form (or switching a form to it) fails with 422 `confirmation_sender_unavailable`, and an existing form's `sendingIssue` says why submissions are failing; single opt-in never resubscribes someone who unsubscribed. Submissions are rate limited per IP and per form, and suppressed or disposable addresses are dropped. A new subscriber triggers `subscriber:added` sequences.";
|
|
3084
|
+
metadata: {
|
|
3085
|
+
tag: string;
|
|
3086
|
+
};
|
|
3087
|
+
method: "POST";
|
|
3088
|
+
body: zod.ZodObject<{
|
|
3089
|
+
name: zod.ZodString;
|
|
3090
|
+
tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
3091
|
+
doubleOptIn: zod.ZodOptional<zod.ZodBoolean>;
|
|
3092
|
+
redirectUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodEffects<zod.ZodString, string, string>>>;
|
|
3093
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3094
|
+
name: string;
|
|
3095
|
+
tags?: string[] | undefined;
|
|
3096
|
+
doubleOptIn?: boolean | undefined;
|
|
3097
|
+
redirectUrl?: string | null | undefined;
|
|
3098
|
+
}, {
|
|
3099
|
+
name: string;
|
|
3100
|
+
tags?: string[] | undefined;
|
|
3101
|
+
doubleOptIn?: boolean | undefined;
|
|
3102
|
+
redirectUrl?: string | null | undefined;
|
|
3103
|
+
}>;
|
|
3104
|
+
responses: {
|
|
3105
|
+
201: zod.ZodObject<{
|
|
3106
|
+
formId: zod.ZodString;
|
|
3107
|
+
name: zod.ZodString;
|
|
3108
|
+
tags: zod.ZodArray<zod.ZodString, "many">;
|
|
3109
|
+
doubleOptIn: zod.ZodBoolean;
|
|
3110
|
+
redirectUrl: zod.ZodNullable<zod.ZodString>;
|
|
3111
|
+
url: zod.ZodString;
|
|
3112
|
+
sendingIssue: zod.ZodNullable<zod.ZodString>;
|
|
3113
|
+
createdAt: zod.ZodString;
|
|
3114
|
+
updatedAt: zod.ZodString;
|
|
3115
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3116
|
+
name: string;
|
|
3117
|
+
tags: string[];
|
|
3118
|
+
updatedAt: string;
|
|
3119
|
+
createdAt: string;
|
|
3120
|
+
url: string;
|
|
3121
|
+
formId: string;
|
|
3122
|
+
doubleOptIn: boolean;
|
|
3123
|
+
redirectUrl: string | null;
|
|
3124
|
+
sendingIssue: string | null;
|
|
3125
|
+
}, {
|
|
3126
|
+
name: string;
|
|
3127
|
+
tags: string[];
|
|
3128
|
+
updatedAt: string;
|
|
3129
|
+
createdAt: string;
|
|
3130
|
+
url: string;
|
|
3131
|
+
formId: string;
|
|
3132
|
+
doubleOptIn: boolean;
|
|
3133
|
+
redirectUrl: string | null;
|
|
3134
|
+
sendingIssue: string | null;
|
|
3135
|
+
}>;
|
|
3136
|
+
400: zod.ZodObject<{
|
|
3137
|
+
error: zod.ZodString;
|
|
3138
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3139
|
+
error: string;
|
|
3140
|
+
}, {
|
|
3141
|
+
error: string;
|
|
3142
|
+
}>;
|
|
3143
|
+
422: zod.ZodObject<{
|
|
3144
|
+
error: zod.ZodLiteral<"confirmation_sender_unavailable">;
|
|
3145
|
+
message: zod.ZodString;
|
|
3146
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3147
|
+
error: "confirmation_sender_unavailable";
|
|
3148
|
+
message: string;
|
|
3149
|
+
}, {
|
|
3150
|
+
error: "confirmation_sender_unavailable";
|
|
3151
|
+
message: string;
|
|
3152
|
+
}>;
|
|
3153
|
+
};
|
|
3154
|
+
path: "/forms";
|
|
3155
|
+
};
|
|
3156
|
+
get: {
|
|
3157
|
+
summary: "Get a signup form";
|
|
3158
|
+
metadata: {
|
|
3159
|
+
tag: string;
|
|
3160
|
+
};
|
|
3161
|
+
method: "GET";
|
|
3162
|
+
responses: {
|
|
3163
|
+
200: zod.ZodObject<{
|
|
3164
|
+
formId: zod.ZodString;
|
|
3165
|
+
name: zod.ZodString;
|
|
3166
|
+
tags: zod.ZodArray<zod.ZodString, "many">;
|
|
3167
|
+
doubleOptIn: zod.ZodBoolean;
|
|
3168
|
+
redirectUrl: zod.ZodNullable<zod.ZodString>;
|
|
3169
|
+
url: zod.ZodString;
|
|
3170
|
+
sendingIssue: zod.ZodNullable<zod.ZodString>;
|
|
3171
|
+
createdAt: zod.ZodString;
|
|
3172
|
+
updatedAt: zod.ZodString;
|
|
3173
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3174
|
+
name: string;
|
|
3175
|
+
tags: string[];
|
|
3176
|
+
updatedAt: string;
|
|
3177
|
+
createdAt: string;
|
|
3178
|
+
url: string;
|
|
3179
|
+
formId: string;
|
|
3180
|
+
doubleOptIn: boolean;
|
|
3181
|
+
redirectUrl: string | null;
|
|
3182
|
+
sendingIssue: string | null;
|
|
3183
|
+
}, {
|
|
3184
|
+
name: string;
|
|
3185
|
+
tags: string[];
|
|
3186
|
+
updatedAt: string;
|
|
3187
|
+
createdAt: string;
|
|
3188
|
+
url: string;
|
|
3189
|
+
formId: string;
|
|
3190
|
+
doubleOptIn: boolean;
|
|
3191
|
+
redirectUrl: string | null;
|
|
3192
|
+
sendingIssue: string | null;
|
|
3193
|
+
}>;
|
|
3194
|
+
404: zod.ZodObject<{
|
|
3195
|
+
error: zod.ZodString;
|
|
3196
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3197
|
+
error: string;
|
|
3198
|
+
}, {
|
|
3199
|
+
error: string;
|
|
3200
|
+
}>;
|
|
3201
|
+
};
|
|
3202
|
+
path: "/forms/:formId";
|
|
3203
|
+
};
|
|
3204
|
+
update: {
|
|
3205
|
+
summary: "Update a signup form";
|
|
3206
|
+
description: "Turning double opt-in on fails with 422 `confirmation_sender_unavailable` when the team can't send the confirmation email.";
|
|
3207
|
+
metadata: {
|
|
3208
|
+
tag: string;
|
|
3209
|
+
};
|
|
3210
|
+
method: "PATCH";
|
|
3211
|
+
body: zod.ZodObject<{
|
|
3212
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
3213
|
+
tags: zod.ZodOptional<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
|
|
3214
|
+
doubleOptIn: zod.ZodOptional<zod.ZodOptional<zod.ZodBoolean>>;
|
|
3215
|
+
redirectUrl: zod.ZodOptional<zod.ZodOptional<zod.ZodNullable<zod.ZodEffects<zod.ZodString, string, string>>>>;
|
|
3216
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3217
|
+
name?: string | undefined;
|
|
3218
|
+
tags?: string[] | undefined;
|
|
3219
|
+
doubleOptIn?: boolean | undefined;
|
|
3220
|
+
redirectUrl?: string | null | undefined;
|
|
3221
|
+
}, {
|
|
3222
|
+
name?: string | undefined;
|
|
3223
|
+
tags?: string[] | undefined;
|
|
3224
|
+
doubleOptIn?: boolean | undefined;
|
|
3225
|
+
redirectUrl?: string | null | undefined;
|
|
3226
|
+
}>;
|
|
3227
|
+
responses: {
|
|
3228
|
+
200: zod.ZodObject<{
|
|
3229
|
+
formId: zod.ZodString;
|
|
3230
|
+
name: zod.ZodString;
|
|
3231
|
+
tags: zod.ZodArray<zod.ZodString, "many">;
|
|
3232
|
+
doubleOptIn: zod.ZodBoolean;
|
|
3233
|
+
redirectUrl: zod.ZodNullable<zod.ZodString>;
|
|
3234
|
+
url: zod.ZodString;
|
|
3235
|
+
sendingIssue: zod.ZodNullable<zod.ZodString>;
|
|
3236
|
+
createdAt: zod.ZodString;
|
|
3237
|
+
updatedAt: zod.ZodString;
|
|
3238
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3239
|
+
name: string;
|
|
3240
|
+
tags: string[];
|
|
3241
|
+
updatedAt: string;
|
|
3242
|
+
createdAt: string;
|
|
3243
|
+
url: string;
|
|
3244
|
+
formId: string;
|
|
3245
|
+
doubleOptIn: boolean;
|
|
3246
|
+
redirectUrl: string | null;
|
|
3247
|
+
sendingIssue: string | null;
|
|
3248
|
+
}, {
|
|
3249
|
+
name: string;
|
|
3250
|
+
tags: string[];
|
|
3251
|
+
updatedAt: string;
|
|
3252
|
+
createdAt: string;
|
|
3253
|
+
url: string;
|
|
3254
|
+
formId: string;
|
|
3255
|
+
doubleOptIn: boolean;
|
|
3256
|
+
redirectUrl: string | null;
|
|
3257
|
+
sendingIssue: string | null;
|
|
3258
|
+
}>;
|
|
3259
|
+
404: zod.ZodObject<{
|
|
3260
|
+
error: zod.ZodString;
|
|
3261
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3262
|
+
error: string;
|
|
3263
|
+
}, {
|
|
3264
|
+
error: string;
|
|
3265
|
+
}>;
|
|
3266
|
+
422: zod.ZodObject<{
|
|
3267
|
+
error: zod.ZodLiteral<"confirmation_sender_unavailable">;
|
|
3268
|
+
message: zod.ZodString;
|
|
3269
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3270
|
+
error: "confirmation_sender_unavailable";
|
|
3271
|
+
message: string;
|
|
3272
|
+
}, {
|
|
3273
|
+
error: "confirmation_sender_unavailable";
|
|
3274
|
+
message: string;
|
|
3275
|
+
}>;
|
|
3276
|
+
};
|
|
3277
|
+
path: "/forms/:formId";
|
|
3278
|
+
};
|
|
3279
|
+
remove: {
|
|
3280
|
+
summary: "Delete a signup form";
|
|
3281
|
+
metadata: {
|
|
3282
|
+
tag: string;
|
|
3283
|
+
};
|
|
3284
|
+
method: "DELETE";
|
|
3285
|
+
responses: {
|
|
3286
|
+
204: typeof _ts_rest_core.ContractNoBody;
|
|
3287
|
+
404: zod.ZodObject<{
|
|
3288
|
+
error: zod.ZodString;
|
|
3289
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3290
|
+
error: string;
|
|
3291
|
+
}, {
|
|
3292
|
+
error: string;
|
|
3293
|
+
}>;
|
|
3294
|
+
};
|
|
3295
|
+
path: "/forms/:formId";
|
|
3296
|
+
};
|
|
3297
|
+
submit: {
|
|
3298
|
+
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.";
|
|
3300
|
+
metadata: {
|
|
3301
|
+
tag: string;
|
|
3302
|
+
};
|
|
3303
|
+
method: "POST";
|
|
3304
|
+
body: zod.ZodObject<{
|
|
3305
|
+
email: zod.ZodString;
|
|
3306
|
+
name: zod.ZodOptional<zod.ZodString>;
|
|
3307
|
+
clientIp: zod.ZodOptional<zod.ZodString>;
|
|
3308
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3309
|
+
email: string;
|
|
3310
|
+
name?: string | undefined;
|
|
3311
|
+
clientIp?: string | undefined;
|
|
3312
|
+
}, {
|
|
3313
|
+
email: string;
|
|
3314
|
+
name?: string | undefined;
|
|
3315
|
+
clientIp?: string | undefined;
|
|
3316
|
+
}>;
|
|
3317
|
+
responses: {
|
|
3318
|
+
200: zod.ZodObject<{
|
|
3319
|
+
status: zod.ZodEnum<["confirmation_sent", "subscribed"]>;
|
|
3320
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3321
|
+
status: "subscribed" | "confirmation_sent";
|
|
3322
|
+
}, {
|
|
3323
|
+
status: "subscribed" | "confirmation_sent";
|
|
3324
|
+
}>;
|
|
3325
|
+
400: zod.ZodObject<{
|
|
3326
|
+
error: zod.ZodString;
|
|
3327
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3328
|
+
error: string;
|
|
3329
|
+
}, {
|
|
3330
|
+
error: string;
|
|
3331
|
+
}>;
|
|
3332
|
+
404: zod.ZodObject<{
|
|
3333
|
+
error: zod.ZodString;
|
|
3334
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3335
|
+
error: string;
|
|
3336
|
+
}, {
|
|
3337
|
+
error: string;
|
|
3338
|
+
}>;
|
|
3339
|
+
429: zod.ZodObject<{
|
|
3340
|
+
error: zod.ZodString;
|
|
3341
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3342
|
+
error: string;
|
|
3343
|
+
}, {
|
|
3344
|
+
error: string;
|
|
3345
|
+
}>;
|
|
3346
|
+
503: zod.ZodObject<{
|
|
3347
|
+
message: zod.ZodString;
|
|
3348
|
+
} & {
|
|
3349
|
+
error: zod.ZodLiteral<"form_unavailable">;
|
|
3350
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3351
|
+
error: "form_unavailable";
|
|
3352
|
+
message: string;
|
|
3353
|
+
}, {
|
|
3354
|
+
error: "form_unavailable";
|
|
3355
|
+
message: string;
|
|
3356
|
+
}>;
|
|
3357
|
+
};
|
|
3358
|
+
path: "/forms/:formId/submissions";
|
|
3359
|
+
};
|
|
3360
|
+
};
|
|
3361
|
+
/** A public signup form, with its hosted page `url`. */
|
|
3362
|
+
type SignupForm = Ok<typeof routes$8.get>;
|
|
3363
|
+
type CreateSignupFormInput = Body<typeof routes$8.create>;
|
|
3364
|
+
type UpdateSignupFormInput = Body<typeof routes$8.update>;
|
|
3365
|
+
type SubmitSignupFormInput = Body<typeof routes$8.submit>;
|
|
3366
|
+
type SignupFormSubmission = Ok<typeof routes$8.submit>;
|
|
3367
|
+
/** Signup forms: people subscribe on the hosted page, through an HTML form
|
|
3368
|
+
* posting to it, or through `submit` from your own server. */
|
|
3369
|
+
declare class Forms {
|
|
3370
|
+
private readonly http;
|
|
3371
|
+
constructor(http: HttpClient);
|
|
3372
|
+
list(): Promise<Ok<typeof routes$8.list>>;
|
|
3373
|
+
/** Double opt-in (the default) needs a sending mailbox: without one this
|
|
3374
|
+
* fails with 422 `confirmation_sender_unavailable`. */
|
|
3375
|
+
create(input: CreateSignupFormInput): Promise<SignupForm>;
|
|
3376
|
+
get(formId: string): Promise<SignupForm>;
|
|
3377
|
+
update(formId: string, input: UpdateSignupFormInput): Promise<SignupForm>;
|
|
3378
|
+
remove(formId: string): Promise<void>;
|
|
3379
|
+
/**
|
|
3380
|
+
* Signs someone up through the form from your server. A double opt-in
|
|
3381
|
+
* form emails them a confirmation link; pass `clientIp` so the per-IP
|
|
3382
|
+
* rate limit applies to them rather than to your server.
|
|
3383
|
+
*/
|
|
3384
|
+
submit(formId: string, input: SubmitSignupFormInput): Promise<SignupFormSubmission>;
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
declare const routes$7: {
|
|
3388
|
+
get: {
|
|
3389
|
+
query: zod.ZodObject<{
|
|
3390
|
+
rangeDays: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, number>>;
|
|
3391
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3392
|
+
rangeDays?: number | undefined;
|
|
3393
|
+
}, {
|
|
3394
|
+
rangeDays?: number | undefined;
|
|
3395
|
+
}>;
|
|
3396
|
+
summary: "Get team overview metrics for a delivery activity window";
|
|
3397
|
+
description: "Use `rangeDays` (1, 3, 7, or 30; default 7) to filter transactional delivery activity and scheduled broadcasts.";
|
|
3398
|
+
metadata: {
|
|
3399
|
+
tag: string;
|
|
3400
|
+
};
|
|
3401
|
+
method: "GET";
|
|
3402
|
+
responses: {
|
|
3403
|
+
200: zod.ZodObject<{
|
|
3404
|
+
activeSequences: zod.ZodNumber;
|
|
3405
|
+
ongoingContacts: zod.ZodNumber;
|
|
3406
|
+
scheduledBroadcasts: zod.ZodNumber;
|
|
3407
|
+
mail: zod.ZodObject<{
|
|
3408
|
+
sent: zod.ZodNumber;
|
|
3409
|
+
queued: zod.ZodNumber;
|
|
3410
|
+
failed: zod.ZodNumber;
|
|
3411
|
+
bounced: zod.ZodNumber;
|
|
3412
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3413
|
+
bounced: number;
|
|
3414
|
+
failed: number;
|
|
3415
|
+
sent: number;
|
|
3416
|
+
queued: number;
|
|
3417
|
+
}, {
|
|
3418
|
+
bounced: number;
|
|
3419
|
+
failed: number;
|
|
3420
|
+
sent: number;
|
|
3421
|
+
queued: number;
|
|
3422
|
+
}>;
|
|
3423
|
+
quota: zod.ZodObject<{
|
|
3424
|
+
dailyUsed: zod.ZodNumber;
|
|
3425
|
+
dailyLimit: zod.ZodNumber;
|
|
3426
|
+
monthlyUsed: zod.ZodNumber;
|
|
3427
|
+
monthlyLimit: zod.ZodNumber;
|
|
3428
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3429
|
+
dailyLimit: number;
|
|
3430
|
+
monthlyLimit: number;
|
|
3431
|
+
dailyUsed: number;
|
|
3432
|
+
monthlyUsed: number;
|
|
3433
|
+
}, {
|
|
3434
|
+
dailyLimit: number;
|
|
3435
|
+
monthlyLimit: number;
|
|
3436
|
+
dailyUsed: number;
|
|
3437
|
+
monthlyUsed: number;
|
|
3438
|
+
}>;
|
|
3439
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3440
|
+
mail: {
|
|
3441
|
+
bounced: number;
|
|
3442
|
+
failed: number;
|
|
3443
|
+
sent: number;
|
|
3444
|
+
queued: number;
|
|
3445
|
+
};
|
|
3446
|
+
quota: {
|
|
3447
|
+
dailyLimit: number;
|
|
3448
|
+
monthlyLimit: number;
|
|
3449
|
+
dailyUsed: number;
|
|
3450
|
+
monthlyUsed: number;
|
|
3451
|
+
};
|
|
3452
|
+
activeSequences: number;
|
|
3453
|
+
ongoingContacts: number;
|
|
3454
|
+
scheduledBroadcasts: number;
|
|
3455
|
+
}, {
|
|
3456
|
+
mail: {
|
|
3457
|
+
bounced: number;
|
|
3458
|
+
failed: number;
|
|
3459
|
+
sent: number;
|
|
3460
|
+
queued: number;
|
|
3461
|
+
};
|
|
3088
3462
|
quota: {
|
|
3089
3463
|
dailyLimit: number;
|
|
3090
3464
|
monthlyLimit: number;
|
|
3091
3465
|
dailyUsed: number;
|
|
3092
3466
|
monthlyUsed: number;
|
|
3093
3467
|
};
|
|
3468
|
+
activeSequences: number;
|
|
3469
|
+
ongoingContacts: number;
|
|
3470
|
+
scheduledBroadcasts: number;
|
|
3094
3471
|
}>;
|
|
3095
3472
|
};
|
|
3096
3473
|
path: "/overview";
|
|
@@ -3124,15 +3501,15 @@ declare const routes$6: {
|
|
|
3124
3501
|
}, "strip", zod.ZodTypeAny, {
|
|
3125
3502
|
status: "active" | "pending_payment" | "suspended" | "abandoned" | "closed";
|
|
3126
3503
|
name: string;
|
|
3504
|
+
updatedAt: string;
|
|
3127
3505
|
organizationId: string;
|
|
3128
3506
|
createdAt: string;
|
|
3129
|
-
updatedAt: string;
|
|
3130
3507
|
}, {
|
|
3131
3508
|
status: "active" | "pending_payment" | "suspended" | "abandoned" | "closed";
|
|
3132
3509
|
name: string;
|
|
3510
|
+
updatedAt: string;
|
|
3133
3511
|
organizationId: string;
|
|
3134
3512
|
createdAt: string;
|
|
3135
|
-
updatedAt: string;
|
|
3136
3513
|
}>;
|
|
3137
3514
|
401: zod.ZodObject<{
|
|
3138
3515
|
error: zod.ZodString;
|
|
@@ -3160,7 +3537,7 @@ declare const routes$6: {
|
|
|
3160
3537
|
};
|
|
3161
3538
|
provisionTeam: {
|
|
3162
3539
|
summary: "Find-or-create a team for a consumer-supplied tenant id";
|
|
3163
|
-
description: "Server-to-server endpoint for multi-tenant consumers (e.g. CourseLit) to provision one SendLit team per tenant. Requires a scoped organization key as a Bearer token.";
|
|
3540
|
+
description: "Server-to-server endpoint for multi-tenant consumers (e.g. CourseLit) to provision one SendLit team per tenant. Requires a scoped organization key as a Bearer token. `postalAddress` sets the team's footer address; 400 `postal_country_invalid` when its country isn't a current ISO 3166-1 alpha-2 code.";
|
|
3164
3541
|
metadata: {
|
|
3165
3542
|
tag: string;
|
|
3166
3543
|
};
|
|
@@ -3178,19 +3555,40 @@ declare const routes$6: {
|
|
|
3178
3555
|
fromName?: string | undefined;
|
|
3179
3556
|
replyTo?: string | undefined;
|
|
3180
3557
|
}>>;
|
|
3181
|
-
|
|
3558
|
+
postalAddress: zod.ZodOptional<zod.ZodObject<{
|
|
3559
|
+
line1: zod.ZodString;
|
|
3560
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
3561
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
3562
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
3563
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
3564
|
+
country: zod.ZodString;
|
|
3565
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3566
|
+
line1: string;
|
|
3567
|
+
country: string;
|
|
3568
|
+
line2?: string | undefined;
|
|
3569
|
+
city?: string | undefined;
|
|
3570
|
+
region?: string | undefined;
|
|
3571
|
+
postalCode?: string | undefined;
|
|
3572
|
+
}, {
|
|
3573
|
+
line1: string;
|
|
3574
|
+
country: string;
|
|
3575
|
+
line2?: string | undefined;
|
|
3576
|
+
city?: string | undefined;
|
|
3577
|
+
region?: string | undefined;
|
|
3578
|
+
postalCode?: string | undefined;
|
|
3579
|
+
}>>;
|
|
3182
3580
|
delivery: zod.ZodOptional<zod.ZodObject<{
|
|
3183
3581
|
useOrganizationDefault: zod.ZodOptional<zod.ZodBoolean>;
|
|
3184
3582
|
teamEspEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
3185
3583
|
teamCanChangeDefault: zod.ZodOptional<zod.ZodBoolean>;
|
|
3186
3584
|
}, "strip", zod.ZodTypeAny, {
|
|
3187
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3188
|
-
teamEspEnabled?: boolean | undefined;
|
|
3189
3585
|
useOrganizationDefault?: boolean | undefined;
|
|
3190
|
-
}, {
|
|
3191
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3192
3586
|
teamEspEnabled?: boolean | undefined;
|
|
3587
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3588
|
+
}, {
|
|
3193
3589
|
useOrganizationDefault?: boolean | undefined;
|
|
3590
|
+
teamEspEnabled?: boolean | undefined;
|
|
3591
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3194
3592
|
}>>;
|
|
3195
3593
|
quota: zod.ZodOptional<zod.ZodObject<{
|
|
3196
3594
|
dailyLimit: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
@@ -3205,36 +3603,50 @@ declare const routes$6: {
|
|
|
3205
3603
|
}, "strip", zod.ZodTypeAny, {
|
|
3206
3604
|
name: string;
|
|
3207
3605
|
externalId: string;
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3606
|
+
postalAddress?: {
|
|
3607
|
+
line1: string;
|
|
3608
|
+
country: string;
|
|
3609
|
+
line2?: string | undefined;
|
|
3610
|
+
city?: string | undefined;
|
|
3611
|
+
region?: string | undefined;
|
|
3612
|
+
postalCode?: string | undefined;
|
|
3211
3613
|
} | undefined;
|
|
3212
|
-
mailingAddress?: string | undefined;
|
|
3213
3614
|
sender?: {
|
|
3214
3615
|
fromName?: string | undefined;
|
|
3215
3616
|
replyTo?: string | undefined;
|
|
3216
3617
|
} | undefined;
|
|
3217
3618
|
delivery?: {
|
|
3218
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3219
|
-
teamEspEnabled?: boolean | undefined;
|
|
3220
3619
|
useOrganizationDefault?: boolean | undefined;
|
|
3620
|
+
teamEspEnabled?: boolean | undefined;
|
|
3621
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3221
3622
|
} | undefined;
|
|
3222
|
-
}, {
|
|
3223
|
-
name: string;
|
|
3224
|
-
externalId: string;
|
|
3225
3623
|
quota?: {
|
|
3226
3624
|
dailyLimit?: number | null | undefined;
|
|
3227
3625
|
monthlyLimit?: number | null | undefined;
|
|
3228
3626
|
} | undefined;
|
|
3229
|
-
|
|
3627
|
+
}, {
|
|
3628
|
+
name: string;
|
|
3629
|
+
externalId: string;
|
|
3630
|
+
postalAddress?: {
|
|
3631
|
+
line1: string;
|
|
3632
|
+
country: string;
|
|
3633
|
+
line2?: string | undefined;
|
|
3634
|
+
city?: string | undefined;
|
|
3635
|
+
region?: string | undefined;
|
|
3636
|
+
postalCode?: string | undefined;
|
|
3637
|
+
} | undefined;
|
|
3230
3638
|
sender?: {
|
|
3231
3639
|
fromName?: string | undefined;
|
|
3232
3640
|
replyTo?: string | undefined;
|
|
3233
3641
|
} | undefined;
|
|
3234
3642
|
delivery?: {
|
|
3235
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3236
|
-
teamEspEnabled?: boolean | undefined;
|
|
3237
3643
|
useOrganizationDefault?: boolean | undefined;
|
|
3644
|
+
teamEspEnabled?: boolean | undefined;
|
|
3645
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3646
|
+
} | undefined;
|
|
3647
|
+
quota?: {
|
|
3648
|
+
dailyLimit?: number | null | undefined;
|
|
3649
|
+
monthlyLimit?: number | null | undefined;
|
|
3238
3650
|
} | undefined;
|
|
3239
3651
|
}>;
|
|
3240
3652
|
responses: {
|
|
@@ -3350,6 +3762,7 @@ declare const routes$6: {
|
|
|
3350
3762
|
};
|
|
3351
3763
|
getTeam: {
|
|
3352
3764
|
summary: "Get a provisioned team within the authenticated organization";
|
|
3765
|
+
description: "`health` is the team's sending status: `normal`, `warned`, `marketing_paused` or `all_paused`, with the `reason` code and whether it comes from the team's own reputation or the shared mailbox (`scope`). `last7Days` counts the emails the ESP accepted in the last 7 days and how many bounced or were marked as spam.";
|
|
3353
3766
|
metadata: {
|
|
3354
3767
|
tag: string;
|
|
3355
3768
|
};
|
|
@@ -3368,37 +3781,128 @@ declare const routes$6: {
|
|
|
3368
3781
|
}>;
|
|
3369
3782
|
} & {
|
|
3370
3783
|
status: zod.ZodEnum<["active", "sending_suspended", "archived"]>;
|
|
3371
|
-
|
|
3784
|
+
postalAddress: zod.ZodNullable<zod.ZodObject<{
|
|
3785
|
+
line1: zod.ZodString;
|
|
3786
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
3787
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
3788
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
3789
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
3790
|
+
country: zod.ZodString;
|
|
3791
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3792
|
+
line1: string;
|
|
3793
|
+
country: string;
|
|
3794
|
+
line2?: string | undefined;
|
|
3795
|
+
city?: string | undefined;
|
|
3796
|
+
region?: string | undefined;
|
|
3797
|
+
postalCode?: string | undefined;
|
|
3798
|
+
}, {
|
|
3799
|
+
line1: string;
|
|
3800
|
+
country: string;
|
|
3801
|
+
line2?: string | undefined;
|
|
3802
|
+
city?: string | undefined;
|
|
3803
|
+
region?: string | undefined;
|
|
3804
|
+
postalCode?: string | undefined;
|
|
3805
|
+
}>>;
|
|
3372
3806
|
teamEspEnabled: zod.ZodBoolean;
|
|
3373
3807
|
teamCanChangeDefault: zod.ZodBoolean;
|
|
3374
3808
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
3375
3809
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
3810
|
+
health: zod.ZodObject<{
|
|
3811
|
+
status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
|
|
3812
|
+
reason: zod.ZodNullable<zod.ZodString>;
|
|
3813
|
+
scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
|
|
3814
|
+
last7Days: zod.ZodObject<{
|
|
3815
|
+
sent: zod.ZodNumber;
|
|
3816
|
+
bounced: zod.ZodNumber;
|
|
3817
|
+
complained: zod.ZodNumber;
|
|
3818
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3819
|
+
bounced: number;
|
|
3820
|
+
complained: number;
|
|
3821
|
+
sent: number;
|
|
3822
|
+
}, {
|
|
3823
|
+
bounced: number;
|
|
3824
|
+
complained: number;
|
|
3825
|
+
sent: number;
|
|
3826
|
+
}>;
|
|
3827
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3828
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
3829
|
+
reason: string | null;
|
|
3830
|
+
scope: "team" | "shared_mailbox" | null;
|
|
3831
|
+
last7Days: {
|
|
3832
|
+
bounced: number;
|
|
3833
|
+
complained: number;
|
|
3834
|
+
sent: number;
|
|
3835
|
+
};
|
|
3836
|
+
}, {
|
|
3837
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
3838
|
+
reason: string | null;
|
|
3839
|
+
scope: "team" | "shared_mailbox" | null;
|
|
3840
|
+
last7Days: {
|
|
3841
|
+
bounced: number;
|
|
3842
|
+
complained: number;
|
|
3843
|
+
sent: number;
|
|
3844
|
+
};
|
|
3845
|
+
}>;
|
|
3376
3846
|
}, "strip", zod.ZodTypeAny, {
|
|
3377
3847
|
status: "active" | "sending_suspended" | "archived";
|
|
3378
3848
|
name: string;
|
|
3379
|
-
|
|
3849
|
+
postalAddress: {
|
|
3850
|
+
line1: string;
|
|
3851
|
+
country: string;
|
|
3852
|
+
line2?: string | undefined;
|
|
3853
|
+
city?: string | undefined;
|
|
3854
|
+
region?: string | undefined;
|
|
3855
|
+
postalCode?: string | undefined;
|
|
3856
|
+
} | null;
|
|
3380
3857
|
updatedAt: string | null;
|
|
3381
3858
|
teamId: string;
|
|
3382
3859
|
externalId: string;
|
|
3383
|
-
|
|
3860
|
+
createdAt: string | null;
|
|
3384
3861
|
teamEspEnabled: boolean;
|
|
3862
|
+
teamCanChangeDefault: boolean;
|
|
3385
3863
|
deliverySource: {
|
|
3386
3864
|
type: "organization";
|
|
3387
3865
|
};
|
|
3388
|
-
|
|
3866
|
+
health: {
|
|
3867
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
3868
|
+
reason: string | null;
|
|
3869
|
+
scope: "team" | "shared_mailbox" | null;
|
|
3870
|
+
last7Days: {
|
|
3871
|
+
bounced: number;
|
|
3872
|
+
complained: number;
|
|
3873
|
+
sent: number;
|
|
3874
|
+
};
|
|
3875
|
+
};
|
|
3389
3876
|
}, {
|
|
3390
3877
|
status: "active" | "sending_suspended" | "archived";
|
|
3391
3878
|
name: string;
|
|
3392
|
-
|
|
3879
|
+
postalAddress: {
|
|
3880
|
+
line1: string;
|
|
3881
|
+
country: string;
|
|
3882
|
+
line2?: string | undefined;
|
|
3883
|
+
city?: string | undefined;
|
|
3884
|
+
region?: string | undefined;
|
|
3885
|
+
postalCode?: string | undefined;
|
|
3886
|
+
} | null;
|
|
3393
3887
|
updatedAt: string | null;
|
|
3394
3888
|
teamId: string;
|
|
3395
3889
|
externalId: string;
|
|
3396
|
-
|
|
3890
|
+
createdAt: string | null;
|
|
3397
3891
|
teamEspEnabled: boolean;
|
|
3892
|
+
teamCanChangeDefault: boolean;
|
|
3398
3893
|
deliverySource: {
|
|
3399
3894
|
type: "organization";
|
|
3400
3895
|
};
|
|
3401
|
-
|
|
3896
|
+
health: {
|
|
3897
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
3898
|
+
reason: string | null;
|
|
3899
|
+
scope: "team" | "shared_mailbox" | null;
|
|
3900
|
+
last7Days: {
|
|
3901
|
+
bounced: number;
|
|
3902
|
+
complained: number;
|
|
3903
|
+
sent: number;
|
|
3904
|
+
};
|
|
3905
|
+
};
|
|
3402
3906
|
}>;
|
|
3403
3907
|
403: zod.ZodObject<{
|
|
3404
3908
|
error: zod.ZodString;
|
|
@@ -3419,6 +3923,7 @@ declare const routes$6: {
|
|
|
3419
3923
|
};
|
|
3420
3924
|
updateTeam: {
|
|
3421
3925
|
summary: "Update a provisioned team's sender, limits, or settings";
|
|
3926
|
+
description: "Omitted fields are left unchanged. `postalAddress: null` clears the team's postal address; 400 `postal_country_invalid` when its country isn't a current ISO 3166-1 alpha-2 code.";
|
|
3422
3927
|
metadata: {
|
|
3423
3928
|
tag: string;
|
|
3424
3929
|
};
|
|
@@ -3435,16 +3940,37 @@ declare const routes$6: {
|
|
|
3435
3940
|
fromName?: string | null | undefined;
|
|
3436
3941
|
replyTo?: string | null | undefined;
|
|
3437
3942
|
}>>;
|
|
3438
|
-
|
|
3943
|
+
postalAddress: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
3944
|
+
line1: zod.ZodString;
|
|
3945
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
3946
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
3947
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
3948
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
3949
|
+
country: zod.ZodString;
|
|
3950
|
+
}, "strip", zod.ZodTypeAny, {
|
|
3951
|
+
line1: string;
|
|
3952
|
+
country: string;
|
|
3953
|
+
line2?: string | undefined;
|
|
3954
|
+
city?: string | undefined;
|
|
3955
|
+
region?: string | undefined;
|
|
3956
|
+
postalCode?: string | undefined;
|
|
3957
|
+
}, {
|
|
3958
|
+
line1: string;
|
|
3959
|
+
country: string;
|
|
3960
|
+
line2?: string | undefined;
|
|
3961
|
+
city?: string | undefined;
|
|
3962
|
+
region?: string | undefined;
|
|
3963
|
+
postalCode?: string | undefined;
|
|
3964
|
+
}>>>;
|
|
3439
3965
|
delivery: zod.ZodOptional<zod.ZodObject<{
|
|
3440
3966
|
teamEspEnabled: zod.ZodOptional<zod.ZodBoolean>;
|
|
3441
3967
|
teamCanChangeDefault: zod.ZodOptional<zod.ZodBoolean>;
|
|
3442
3968
|
}, "strip", zod.ZodTypeAny, {
|
|
3443
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3444
3969
|
teamEspEnabled?: boolean | undefined;
|
|
3445
|
-
}, {
|
|
3446
3970
|
teamCanChangeDefault?: boolean | undefined;
|
|
3971
|
+
}, {
|
|
3447
3972
|
teamEspEnabled?: boolean | undefined;
|
|
3973
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3448
3974
|
}>>;
|
|
3449
3975
|
quota: zod.ZodOptional<zod.ZodObject<{
|
|
3450
3976
|
dailyLimit: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
@@ -3458,63 +3984,91 @@ declare const routes$6: {
|
|
|
3458
3984
|
}>>;
|
|
3459
3985
|
}, "strip", zod.ZodTypeAny, {
|
|
3460
3986
|
name?: string | undefined;
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3987
|
+
postalAddress?: {
|
|
3988
|
+
line1: string;
|
|
3989
|
+
country: string;
|
|
3990
|
+
line2?: string | undefined;
|
|
3991
|
+
city?: string | undefined;
|
|
3992
|
+
region?: string | undefined;
|
|
3993
|
+
postalCode?: string | undefined;
|
|
3994
|
+
} | null | undefined;
|
|
3466
3995
|
sender?: {
|
|
3467
3996
|
fromName?: string | null | undefined;
|
|
3468
3997
|
replyTo?: string | null | undefined;
|
|
3469
3998
|
} | undefined;
|
|
3470
3999
|
delivery?: {
|
|
3471
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3472
4000
|
teamEspEnabled?: boolean | undefined;
|
|
4001
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3473
4002
|
} | undefined;
|
|
3474
|
-
}, {
|
|
3475
|
-
name?: string | undefined;
|
|
3476
4003
|
quota?: {
|
|
3477
4004
|
dailyLimit?: number | null | undefined;
|
|
3478
4005
|
monthlyLimit?: number | null | undefined;
|
|
3479
4006
|
} | undefined;
|
|
3480
|
-
|
|
4007
|
+
}, {
|
|
4008
|
+
name?: string | undefined;
|
|
4009
|
+
postalAddress?: {
|
|
4010
|
+
line1: string;
|
|
4011
|
+
country: string;
|
|
4012
|
+
line2?: string | undefined;
|
|
4013
|
+
city?: string | undefined;
|
|
4014
|
+
region?: string | undefined;
|
|
4015
|
+
postalCode?: string | undefined;
|
|
4016
|
+
} | null | undefined;
|
|
3481
4017
|
sender?: {
|
|
3482
4018
|
fromName?: string | null | undefined;
|
|
3483
4019
|
replyTo?: string | null | undefined;
|
|
3484
4020
|
} | undefined;
|
|
3485
4021
|
delivery?: {
|
|
3486
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3487
4022
|
teamEspEnabled?: boolean | undefined;
|
|
4023
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3488
4024
|
} | undefined;
|
|
3489
|
-
}>, {
|
|
3490
|
-
name?: string | undefined;
|
|
3491
4025
|
quota?: {
|
|
3492
4026
|
dailyLimit?: number | null | undefined;
|
|
3493
4027
|
monthlyLimit?: number | null | undefined;
|
|
3494
4028
|
} | undefined;
|
|
3495
|
-
|
|
4029
|
+
}>, {
|
|
4030
|
+
name?: string | undefined;
|
|
4031
|
+
postalAddress?: {
|
|
4032
|
+
line1: string;
|
|
4033
|
+
country: string;
|
|
4034
|
+
line2?: string | undefined;
|
|
4035
|
+
city?: string | undefined;
|
|
4036
|
+
region?: string | undefined;
|
|
4037
|
+
postalCode?: string | undefined;
|
|
4038
|
+
} | null | undefined;
|
|
3496
4039
|
sender?: {
|
|
3497
4040
|
fromName?: string | null | undefined;
|
|
3498
4041
|
replyTo?: string | null | undefined;
|
|
3499
4042
|
} | undefined;
|
|
3500
4043
|
delivery?: {
|
|
3501
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3502
4044
|
teamEspEnabled?: boolean | undefined;
|
|
4045
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
3503
4046
|
} | undefined;
|
|
3504
|
-
}, {
|
|
3505
|
-
name?: string | undefined;
|
|
3506
4047
|
quota?: {
|
|
3507
4048
|
dailyLimit?: number | null | undefined;
|
|
3508
4049
|
monthlyLimit?: number | null | undefined;
|
|
3509
4050
|
} | undefined;
|
|
3510
|
-
|
|
4051
|
+
}, {
|
|
4052
|
+
name?: string | undefined;
|
|
4053
|
+
postalAddress?: {
|
|
4054
|
+
line1: string;
|
|
4055
|
+
country: string;
|
|
4056
|
+
line2?: string | undefined;
|
|
4057
|
+
city?: string | undefined;
|
|
4058
|
+
region?: string | undefined;
|
|
4059
|
+
postalCode?: string | undefined;
|
|
4060
|
+
} | null | undefined;
|
|
3511
4061
|
sender?: {
|
|
3512
4062
|
fromName?: string | null | undefined;
|
|
3513
4063
|
replyTo?: string | null | undefined;
|
|
3514
4064
|
} | undefined;
|
|
3515
4065
|
delivery?: {
|
|
3516
|
-
teamCanChangeDefault?: boolean | undefined;
|
|
3517
4066
|
teamEspEnabled?: boolean | undefined;
|
|
4067
|
+
teamCanChangeDefault?: boolean | undefined;
|
|
4068
|
+
} | undefined;
|
|
4069
|
+
quota?: {
|
|
4070
|
+
dailyLimit?: number | null | undefined;
|
|
4071
|
+
monthlyLimit?: number | null | undefined;
|
|
3518
4072
|
} | undefined;
|
|
3519
4073
|
}>;
|
|
3520
4074
|
responses: {
|
|
@@ -3531,37 +4085,135 @@ declare const routes$6: {
|
|
|
3531
4085
|
}>;
|
|
3532
4086
|
} & {
|
|
3533
4087
|
status: zod.ZodEnum<["active", "sending_suspended", "archived"]>;
|
|
3534
|
-
|
|
4088
|
+
postalAddress: zod.ZodNullable<zod.ZodObject<{
|
|
4089
|
+
line1: zod.ZodString;
|
|
4090
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
4091
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
4092
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
4093
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
4094
|
+
country: zod.ZodString;
|
|
4095
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4096
|
+
line1: string;
|
|
4097
|
+
country: string;
|
|
4098
|
+
line2?: string | undefined;
|
|
4099
|
+
city?: string | undefined;
|
|
4100
|
+
region?: string | undefined;
|
|
4101
|
+
postalCode?: string | undefined;
|
|
4102
|
+
}, {
|
|
4103
|
+
line1: string;
|
|
4104
|
+
country: string;
|
|
4105
|
+
line2?: string | undefined;
|
|
4106
|
+
city?: string | undefined;
|
|
4107
|
+
region?: string | undefined;
|
|
4108
|
+
postalCode?: string | undefined;
|
|
4109
|
+
}>>;
|
|
3535
4110
|
teamEspEnabled: zod.ZodBoolean;
|
|
3536
4111
|
teamCanChangeDefault: zod.ZodBoolean;
|
|
3537
4112
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
3538
4113
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
4114
|
+
health: zod.ZodObject<{
|
|
4115
|
+
status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
|
|
4116
|
+
reason: zod.ZodNullable<zod.ZodString>;
|
|
4117
|
+
scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
|
|
4118
|
+
last7Days: zod.ZodObject<{
|
|
4119
|
+
sent: zod.ZodNumber;
|
|
4120
|
+
bounced: zod.ZodNumber;
|
|
4121
|
+
complained: zod.ZodNumber;
|
|
4122
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4123
|
+
bounced: number;
|
|
4124
|
+
complained: number;
|
|
4125
|
+
sent: number;
|
|
4126
|
+
}, {
|
|
4127
|
+
bounced: number;
|
|
4128
|
+
complained: number;
|
|
4129
|
+
sent: number;
|
|
4130
|
+
}>;
|
|
4131
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4132
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4133
|
+
reason: string | null;
|
|
4134
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4135
|
+
last7Days: {
|
|
4136
|
+
bounced: number;
|
|
4137
|
+
complained: number;
|
|
4138
|
+
sent: number;
|
|
4139
|
+
};
|
|
4140
|
+
}, {
|
|
4141
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4142
|
+
reason: string | null;
|
|
4143
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4144
|
+
last7Days: {
|
|
4145
|
+
bounced: number;
|
|
4146
|
+
complained: number;
|
|
4147
|
+
sent: number;
|
|
4148
|
+
};
|
|
4149
|
+
}>;
|
|
3539
4150
|
}, "strip", zod.ZodTypeAny, {
|
|
3540
4151
|
status: "active" | "sending_suspended" | "archived";
|
|
3541
4152
|
name: string;
|
|
3542
|
-
|
|
4153
|
+
postalAddress: {
|
|
4154
|
+
line1: string;
|
|
4155
|
+
country: string;
|
|
4156
|
+
line2?: string | undefined;
|
|
4157
|
+
city?: string | undefined;
|
|
4158
|
+
region?: string | undefined;
|
|
4159
|
+
postalCode?: string | undefined;
|
|
4160
|
+
} | null;
|
|
3543
4161
|
updatedAt: string | null;
|
|
3544
4162
|
teamId: string;
|
|
3545
4163
|
externalId: string;
|
|
3546
|
-
|
|
4164
|
+
createdAt: string | null;
|
|
3547
4165
|
teamEspEnabled: boolean;
|
|
4166
|
+
teamCanChangeDefault: boolean;
|
|
3548
4167
|
deliverySource: {
|
|
3549
4168
|
type: "organization";
|
|
3550
4169
|
};
|
|
3551
|
-
|
|
4170
|
+
health: {
|
|
4171
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4172
|
+
reason: string | null;
|
|
4173
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4174
|
+
last7Days: {
|
|
4175
|
+
bounced: number;
|
|
4176
|
+
complained: number;
|
|
4177
|
+
sent: number;
|
|
4178
|
+
};
|
|
4179
|
+
};
|
|
3552
4180
|
}, {
|
|
3553
4181
|
status: "active" | "sending_suspended" | "archived";
|
|
3554
4182
|
name: string;
|
|
3555
|
-
|
|
4183
|
+
postalAddress: {
|
|
4184
|
+
line1: string;
|
|
4185
|
+
country: string;
|
|
4186
|
+
line2?: string | undefined;
|
|
4187
|
+
city?: string | undefined;
|
|
4188
|
+
region?: string | undefined;
|
|
4189
|
+
postalCode?: string | undefined;
|
|
4190
|
+
} | null;
|
|
3556
4191
|
updatedAt: string | null;
|
|
3557
4192
|
teamId: string;
|
|
3558
4193
|
externalId: string;
|
|
3559
|
-
|
|
4194
|
+
createdAt: string | null;
|
|
3560
4195
|
teamEspEnabled: boolean;
|
|
4196
|
+
teamCanChangeDefault: boolean;
|
|
3561
4197
|
deliverySource: {
|
|
3562
4198
|
type: "organization";
|
|
3563
4199
|
};
|
|
3564
|
-
|
|
4200
|
+
health: {
|
|
4201
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4202
|
+
reason: string | null;
|
|
4203
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4204
|
+
last7Days: {
|
|
4205
|
+
bounced: number;
|
|
4206
|
+
complained: number;
|
|
4207
|
+
sent: number;
|
|
4208
|
+
};
|
|
4209
|
+
};
|
|
4210
|
+
}>;
|
|
4211
|
+
400: zod.ZodObject<{
|
|
4212
|
+
error: zod.ZodString;
|
|
4213
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4214
|
+
error: string;
|
|
4215
|
+
}, {
|
|
4216
|
+
error: string;
|
|
3565
4217
|
}>;
|
|
3566
4218
|
403: zod.ZodObject<{
|
|
3567
4219
|
error: zod.ZodString;
|
|
@@ -3668,37 +4320,128 @@ declare const routes$6: {
|
|
|
3668
4320
|
}>;
|
|
3669
4321
|
} & {
|
|
3670
4322
|
status: zod.ZodEnum<["active", "sending_suspended", "archived"]>;
|
|
3671
|
-
|
|
4323
|
+
postalAddress: zod.ZodNullable<zod.ZodObject<{
|
|
4324
|
+
line1: zod.ZodString;
|
|
4325
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
4326
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
4327
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
4328
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
4329
|
+
country: zod.ZodString;
|
|
4330
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4331
|
+
line1: string;
|
|
4332
|
+
country: string;
|
|
4333
|
+
line2?: string | undefined;
|
|
4334
|
+
city?: string | undefined;
|
|
4335
|
+
region?: string | undefined;
|
|
4336
|
+
postalCode?: string | undefined;
|
|
4337
|
+
}, {
|
|
4338
|
+
line1: string;
|
|
4339
|
+
country: string;
|
|
4340
|
+
line2?: string | undefined;
|
|
4341
|
+
city?: string | undefined;
|
|
4342
|
+
region?: string | undefined;
|
|
4343
|
+
postalCode?: string | undefined;
|
|
4344
|
+
}>>;
|
|
3672
4345
|
teamEspEnabled: zod.ZodBoolean;
|
|
3673
4346
|
teamCanChangeDefault: zod.ZodBoolean;
|
|
3674
4347
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
3675
4348
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
4349
|
+
health: zod.ZodObject<{
|
|
4350
|
+
status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
|
|
4351
|
+
reason: zod.ZodNullable<zod.ZodString>;
|
|
4352
|
+
scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
|
|
4353
|
+
last7Days: zod.ZodObject<{
|
|
4354
|
+
sent: zod.ZodNumber;
|
|
4355
|
+
bounced: zod.ZodNumber;
|
|
4356
|
+
complained: zod.ZodNumber;
|
|
4357
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4358
|
+
bounced: number;
|
|
4359
|
+
complained: number;
|
|
4360
|
+
sent: number;
|
|
4361
|
+
}, {
|
|
4362
|
+
bounced: number;
|
|
4363
|
+
complained: number;
|
|
4364
|
+
sent: number;
|
|
4365
|
+
}>;
|
|
4366
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4367
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4368
|
+
reason: string | null;
|
|
4369
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4370
|
+
last7Days: {
|
|
4371
|
+
bounced: number;
|
|
4372
|
+
complained: number;
|
|
4373
|
+
sent: number;
|
|
4374
|
+
};
|
|
4375
|
+
}, {
|
|
4376
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4377
|
+
reason: string | null;
|
|
4378
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4379
|
+
last7Days: {
|
|
4380
|
+
bounced: number;
|
|
4381
|
+
complained: number;
|
|
4382
|
+
sent: number;
|
|
4383
|
+
};
|
|
4384
|
+
}>;
|
|
3676
4385
|
}, "strip", zod.ZodTypeAny, {
|
|
3677
4386
|
status: "active" | "sending_suspended" | "archived";
|
|
3678
4387
|
name: string;
|
|
3679
|
-
|
|
4388
|
+
postalAddress: {
|
|
4389
|
+
line1: string;
|
|
4390
|
+
country: string;
|
|
4391
|
+
line2?: string | undefined;
|
|
4392
|
+
city?: string | undefined;
|
|
4393
|
+
region?: string | undefined;
|
|
4394
|
+
postalCode?: string | undefined;
|
|
4395
|
+
} | null;
|
|
3680
4396
|
updatedAt: string | null;
|
|
3681
4397
|
teamId: string;
|
|
3682
4398
|
externalId: string;
|
|
3683
|
-
|
|
4399
|
+
createdAt: string | null;
|
|
3684
4400
|
teamEspEnabled: boolean;
|
|
4401
|
+
teamCanChangeDefault: boolean;
|
|
3685
4402
|
deliverySource: {
|
|
3686
4403
|
type: "organization";
|
|
3687
4404
|
};
|
|
3688
|
-
|
|
4405
|
+
health: {
|
|
4406
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4407
|
+
reason: string | null;
|
|
4408
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4409
|
+
last7Days: {
|
|
4410
|
+
bounced: number;
|
|
4411
|
+
complained: number;
|
|
4412
|
+
sent: number;
|
|
4413
|
+
};
|
|
4414
|
+
};
|
|
3689
4415
|
}, {
|
|
3690
4416
|
status: "active" | "sending_suspended" | "archived";
|
|
3691
4417
|
name: string;
|
|
3692
|
-
|
|
4418
|
+
postalAddress: {
|
|
4419
|
+
line1: string;
|
|
4420
|
+
country: string;
|
|
4421
|
+
line2?: string | undefined;
|
|
4422
|
+
city?: string | undefined;
|
|
4423
|
+
region?: string | undefined;
|
|
4424
|
+
postalCode?: string | undefined;
|
|
4425
|
+
} | null;
|
|
3693
4426
|
updatedAt: string | null;
|
|
3694
4427
|
teamId: string;
|
|
3695
4428
|
externalId: string;
|
|
3696
|
-
|
|
4429
|
+
createdAt: string | null;
|
|
3697
4430
|
teamEspEnabled: boolean;
|
|
4431
|
+
teamCanChangeDefault: boolean;
|
|
3698
4432
|
deliverySource: {
|
|
3699
4433
|
type: "organization";
|
|
3700
4434
|
};
|
|
3701
|
-
|
|
4435
|
+
health: {
|
|
4436
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4437
|
+
reason: string | null;
|
|
4438
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4439
|
+
last7Days: {
|
|
4440
|
+
bounced: number;
|
|
4441
|
+
complained: number;
|
|
4442
|
+
sent: number;
|
|
4443
|
+
};
|
|
4444
|
+
};
|
|
3702
4445
|
}>;
|
|
3703
4446
|
403: zod.ZodObject<{
|
|
3704
4447
|
error: zod.ZodString;
|
|
@@ -3745,37 +4488,365 @@ declare const routes$6: {
|
|
|
3745
4488
|
}>;
|
|
3746
4489
|
} & {
|
|
3747
4490
|
status: zod.ZodEnum<["active", "sending_suspended", "archived"]>;
|
|
3748
|
-
|
|
4491
|
+
postalAddress: zod.ZodNullable<zod.ZodObject<{
|
|
4492
|
+
line1: zod.ZodString;
|
|
4493
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
4494
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
4495
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
4496
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
4497
|
+
country: zod.ZodString;
|
|
4498
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4499
|
+
line1: string;
|
|
4500
|
+
country: string;
|
|
4501
|
+
line2?: string | undefined;
|
|
4502
|
+
city?: string | undefined;
|
|
4503
|
+
region?: string | undefined;
|
|
4504
|
+
postalCode?: string | undefined;
|
|
4505
|
+
}, {
|
|
4506
|
+
line1: string;
|
|
4507
|
+
country: string;
|
|
4508
|
+
line2?: string | undefined;
|
|
4509
|
+
city?: string | undefined;
|
|
4510
|
+
region?: string | undefined;
|
|
4511
|
+
postalCode?: string | undefined;
|
|
4512
|
+
}>>;
|
|
3749
4513
|
teamEspEnabled: zod.ZodBoolean;
|
|
3750
4514
|
teamCanChangeDefault: zod.ZodBoolean;
|
|
3751
4515
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
3752
4516
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
4517
|
+
health: zod.ZodObject<{
|
|
4518
|
+
status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
|
|
4519
|
+
reason: zod.ZodNullable<zod.ZodString>;
|
|
4520
|
+
scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
|
|
4521
|
+
last7Days: zod.ZodObject<{
|
|
4522
|
+
sent: zod.ZodNumber;
|
|
4523
|
+
bounced: zod.ZodNumber;
|
|
4524
|
+
complained: zod.ZodNumber;
|
|
4525
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4526
|
+
bounced: number;
|
|
4527
|
+
complained: number;
|
|
4528
|
+
sent: number;
|
|
4529
|
+
}, {
|
|
4530
|
+
bounced: number;
|
|
4531
|
+
complained: number;
|
|
4532
|
+
sent: number;
|
|
4533
|
+
}>;
|
|
4534
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4535
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4536
|
+
reason: string | null;
|
|
4537
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4538
|
+
last7Days: {
|
|
4539
|
+
bounced: number;
|
|
4540
|
+
complained: number;
|
|
4541
|
+
sent: number;
|
|
4542
|
+
};
|
|
4543
|
+
}, {
|
|
4544
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4545
|
+
reason: string | null;
|
|
4546
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4547
|
+
last7Days: {
|
|
4548
|
+
bounced: number;
|
|
4549
|
+
complained: number;
|
|
4550
|
+
sent: number;
|
|
4551
|
+
};
|
|
4552
|
+
}>;
|
|
4553
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4554
|
+
status: "active" | "sending_suspended" | "archived";
|
|
4555
|
+
name: string;
|
|
4556
|
+
postalAddress: {
|
|
4557
|
+
line1: string;
|
|
4558
|
+
country: string;
|
|
4559
|
+
line2?: string | undefined;
|
|
4560
|
+
city?: string | undefined;
|
|
4561
|
+
region?: string | undefined;
|
|
4562
|
+
postalCode?: string | undefined;
|
|
4563
|
+
} | null;
|
|
4564
|
+
updatedAt: string | null;
|
|
4565
|
+
teamId: string;
|
|
4566
|
+
externalId: string;
|
|
4567
|
+
createdAt: string | null;
|
|
4568
|
+
teamEspEnabled: boolean;
|
|
4569
|
+
teamCanChangeDefault: boolean;
|
|
4570
|
+
deliverySource: {
|
|
4571
|
+
type: "organization";
|
|
4572
|
+
};
|
|
4573
|
+
health: {
|
|
4574
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4575
|
+
reason: string | null;
|
|
4576
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4577
|
+
last7Days: {
|
|
4578
|
+
bounced: number;
|
|
4579
|
+
complained: number;
|
|
4580
|
+
sent: number;
|
|
4581
|
+
};
|
|
4582
|
+
};
|
|
4583
|
+
}, {
|
|
4584
|
+
status: "active" | "sending_suspended" | "archived";
|
|
4585
|
+
name: string;
|
|
4586
|
+
postalAddress: {
|
|
4587
|
+
line1: string;
|
|
4588
|
+
country: string;
|
|
4589
|
+
line2?: string | undefined;
|
|
4590
|
+
city?: string | undefined;
|
|
4591
|
+
region?: string | undefined;
|
|
4592
|
+
postalCode?: string | undefined;
|
|
4593
|
+
} | null;
|
|
4594
|
+
updatedAt: string | null;
|
|
4595
|
+
teamId: string;
|
|
4596
|
+
externalId: string;
|
|
4597
|
+
createdAt: string | null;
|
|
4598
|
+
teamEspEnabled: boolean;
|
|
4599
|
+
teamCanChangeDefault: boolean;
|
|
4600
|
+
deliverySource: {
|
|
4601
|
+
type: "organization";
|
|
4602
|
+
};
|
|
4603
|
+
health: {
|
|
4604
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4605
|
+
reason: string | null;
|
|
4606
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4607
|
+
last7Days: {
|
|
4608
|
+
bounced: number;
|
|
4609
|
+
complained: number;
|
|
4610
|
+
sent: number;
|
|
4611
|
+
};
|
|
4612
|
+
};
|
|
4613
|
+
}>;
|
|
4614
|
+
403: zod.ZodObject<{
|
|
4615
|
+
error: zod.ZodString;
|
|
4616
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4617
|
+
error: string;
|
|
4618
|
+
}, {
|
|
4619
|
+
error: string;
|
|
4620
|
+
}>;
|
|
4621
|
+
404: zod.ZodObject<{
|
|
4622
|
+
error: zod.ZodString;
|
|
4623
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4624
|
+
error: string;
|
|
4625
|
+
}, {
|
|
4626
|
+
error: string;
|
|
4627
|
+
}>;
|
|
4628
|
+
409: zod.ZodObject<{
|
|
4629
|
+
error: zod.ZodString;
|
|
4630
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4631
|
+
error: string;
|
|
4632
|
+
}, {
|
|
4633
|
+
error: string;
|
|
4634
|
+
}>;
|
|
4635
|
+
};
|
|
4636
|
+
path: "/provisioning/teams/:teamId/resume";
|
|
4637
|
+
};
|
|
4638
|
+
archiveTeam: {
|
|
4639
|
+
summary: "Archive a provisioned team";
|
|
4640
|
+
metadata: {
|
|
4641
|
+
tag: string;
|
|
4642
|
+
};
|
|
4643
|
+
method: "DELETE";
|
|
4644
|
+
responses: {
|
|
4645
|
+
204: typeof _ts_rest_core.ContractNoBody;
|
|
4646
|
+
403: zod.ZodObject<{
|
|
4647
|
+
error: zod.ZodString;
|
|
4648
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4649
|
+
error: string;
|
|
4650
|
+
}, {
|
|
4651
|
+
error: string;
|
|
4652
|
+
}>;
|
|
4653
|
+
404: zod.ZodObject<{
|
|
4654
|
+
error: zod.ZodString;
|
|
4655
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4656
|
+
error: string;
|
|
4657
|
+
}, {
|
|
4658
|
+
error: string;
|
|
4659
|
+
}>;
|
|
4660
|
+
};
|
|
4661
|
+
path: "/provisioning/teams/:teamId";
|
|
4662
|
+
};
|
|
4663
|
+
getTeamSendingDomain: {
|
|
4664
|
+
summary: "Check a provisioned team's own sending domain";
|
|
4665
|
+
description: "Re-checks the domain with the shared ESP and DNS, at most every 30 seconds (calls in between return the last check). Requires `teams:read`. `null` when the team has none.";
|
|
4666
|
+
metadata: {
|
|
4667
|
+
tag: string;
|
|
4668
|
+
};
|
|
4669
|
+
method: "GET";
|
|
4670
|
+
responses: {
|
|
4671
|
+
200: zod.ZodNullable<zod.ZodObject<{
|
|
4672
|
+
domain: zod.ZodString;
|
|
4673
|
+
fromEmail: zod.ZodNullable<zod.ZodString>;
|
|
4674
|
+
status: zod.ZodEnum<["pending", "verified", "failing"]>;
|
|
4675
|
+
dkim: zod.ZodEnum<["pending", "verified", "failed"]>;
|
|
4676
|
+
dmarc: zod.ZodEnum<["pass", "missing"]>;
|
|
4677
|
+
inUse: zod.ZodBoolean;
|
|
4678
|
+
records: zod.ZodArray<zod.ZodObject<{
|
|
4679
|
+
type: zod.ZodEnum<["CNAME", "TXT"]>;
|
|
4680
|
+
name: zod.ZodString;
|
|
4681
|
+
value: zod.ZodString;
|
|
4682
|
+
purpose: zod.ZodEnum<["dkim", "dmarc"]>;
|
|
4683
|
+
present: zod.ZodOptional<zod.ZodBoolean>;
|
|
4684
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4685
|
+
value: string;
|
|
4686
|
+
type: "CNAME" | "TXT";
|
|
4687
|
+
name: string;
|
|
4688
|
+
purpose: "dkim" | "dmarc";
|
|
4689
|
+
present?: boolean | undefined;
|
|
4690
|
+
}, {
|
|
4691
|
+
value: string;
|
|
4692
|
+
type: "CNAME" | "TXT";
|
|
4693
|
+
name: string;
|
|
4694
|
+
purpose: "dkim" | "dmarc";
|
|
4695
|
+
present?: boolean | undefined;
|
|
4696
|
+
}>, "many">;
|
|
4697
|
+
verifiedAt: zod.ZodNullable<zod.ZodString>;
|
|
4698
|
+
failingSince: zod.ZodNullable<zod.ZodString>;
|
|
4699
|
+
graceEndsAt: zod.ZodNullable<zod.ZodString>;
|
|
4700
|
+
lastCheckedAt: zod.ZodNullable<zod.ZodString>;
|
|
4701
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4702
|
+
status: "pending" | "verified" | "failing";
|
|
4703
|
+
domain: string;
|
|
4704
|
+
verifiedAt: string | null;
|
|
4705
|
+
graceEndsAt: string | null;
|
|
4706
|
+
lastCheckedAt: string | null;
|
|
4707
|
+
fromEmail: string | null;
|
|
4708
|
+
inUse: boolean;
|
|
4709
|
+
dkim: "pending" | "verified" | "failed";
|
|
4710
|
+
dmarc: "pass" | "missing";
|
|
4711
|
+
records: {
|
|
4712
|
+
value: string;
|
|
4713
|
+
type: "CNAME" | "TXT";
|
|
4714
|
+
name: string;
|
|
4715
|
+
purpose: "dkim" | "dmarc";
|
|
4716
|
+
present?: boolean | undefined;
|
|
4717
|
+
}[];
|
|
4718
|
+
failingSince: string | null;
|
|
4719
|
+
}, {
|
|
4720
|
+
status: "pending" | "verified" | "failing";
|
|
4721
|
+
domain: string;
|
|
4722
|
+
verifiedAt: string | null;
|
|
4723
|
+
graceEndsAt: string | null;
|
|
4724
|
+
lastCheckedAt: string | null;
|
|
4725
|
+
fromEmail: string | null;
|
|
4726
|
+
inUse: boolean;
|
|
4727
|
+
dkim: "pending" | "verified" | "failed";
|
|
4728
|
+
dmarc: "pass" | "missing";
|
|
4729
|
+
records: {
|
|
4730
|
+
value: string;
|
|
4731
|
+
type: "CNAME" | "TXT";
|
|
4732
|
+
name: string;
|
|
4733
|
+
purpose: "dkim" | "dmarc";
|
|
4734
|
+
present?: boolean | undefined;
|
|
4735
|
+
}[];
|
|
4736
|
+
failingSince: string | null;
|
|
4737
|
+
}>>;
|
|
4738
|
+
403: zod.ZodObject<{
|
|
4739
|
+
error: zod.ZodString;
|
|
4740
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4741
|
+
error: string;
|
|
4742
|
+
}, {
|
|
4743
|
+
error: string;
|
|
4744
|
+
}>;
|
|
4745
|
+
404: zod.ZodObject<{
|
|
4746
|
+
error: zod.ZodString;
|
|
4747
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4748
|
+
error: string;
|
|
4749
|
+
}, {
|
|
4750
|
+
error: string;
|
|
4751
|
+
}>;
|
|
4752
|
+
422: zod.ZodObject<{
|
|
4753
|
+
error: zod.ZodString;
|
|
4754
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4755
|
+
error: string;
|
|
4756
|
+
}, {
|
|
4757
|
+
error: string;
|
|
4758
|
+
}>;
|
|
4759
|
+
};
|
|
4760
|
+
path: "/provisioning/teams/:teamId/sending-domain";
|
|
4761
|
+
};
|
|
4762
|
+
setTeamSendingDomain: {
|
|
4763
|
+
summary: "Set a provisioned team's own From address and register its domain";
|
|
4764
|
+
description: "Requires `teams:manage`. Returns the DNS records the team must publish (Amazon SES Easy DKIM CNAMEs and a DMARC TXT record). Errors as for the organization route.";
|
|
4765
|
+
metadata: {
|
|
4766
|
+
tag: string;
|
|
4767
|
+
};
|
|
4768
|
+
method: "PUT";
|
|
4769
|
+
body: zod.ZodObject<{
|
|
4770
|
+
fromEmail: zod.ZodString;
|
|
4771
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4772
|
+
fromEmail: string;
|
|
4773
|
+
}, {
|
|
4774
|
+
fromEmail: string;
|
|
4775
|
+
}>;
|
|
4776
|
+
responses: {
|
|
4777
|
+
200: zod.ZodObject<{
|
|
4778
|
+
domain: zod.ZodString;
|
|
4779
|
+
fromEmail: zod.ZodNullable<zod.ZodString>;
|
|
4780
|
+
status: zod.ZodEnum<["pending", "verified", "failing"]>;
|
|
4781
|
+
dkim: zod.ZodEnum<["pending", "verified", "failed"]>;
|
|
4782
|
+
dmarc: zod.ZodEnum<["pass", "missing"]>;
|
|
4783
|
+
inUse: zod.ZodBoolean;
|
|
4784
|
+
records: zod.ZodArray<zod.ZodObject<{
|
|
4785
|
+
type: zod.ZodEnum<["CNAME", "TXT"]>;
|
|
4786
|
+
name: zod.ZodString;
|
|
4787
|
+
value: zod.ZodString;
|
|
4788
|
+
purpose: zod.ZodEnum<["dkim", "dmarc"]>;
|
|
4789
|
+
present: zod.ZodOptional<zod.ZodBoolean>;
|
|
4790
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4791
|
+
value: string;
|
|
4792
|
+
type: "CNAME" | "TXT";
|
|
4793
|
+
name: string;
|
|
4794
|
+
purpose: "dkim" | "dmarc";
|
|
4795
|
+
present?: boolean | undefined;
|
|
4796
|
+
}, {
|
|
4797
|
+
value: string;
|
|
4798
|
+
type: "CNAME" | "TXT";
|
|
4799
|
+
name: string;
|
|
4800
|
+
purpose: "dkim" | "dmarc";
|
|
4801
|
+
present?: boolean | undefined;
|
|
4802
|
+
}>, "many">;
|
|
4803
|
+
verifiedAt: zod.ZodNullable<zod.ZodString>;
|
|
4804
|
+
failingSince: zod.ZodNullable<zod.ZodString>;
|
|
4805
|
+
graceEndsAt: zod.ZodNullable<zod.ZodString>;
|
|
4806
|
+
lastCheckedAt: zod.ZodNullable<zod.ZodString>;
|
|
3753
4807
|
}, "strip", zod.ZodTypeAny, {
|
|
3754
|
-
status: "
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
4808
|
+
status: "pending" | "verified" | "failing";
|
|
4809
|
+
domain: string;
|
|
4810
|
+
verifiedAt: string | null;
|
|
4811
|
+
graceEndsAt: string | null;
|
|
4812
|
+
lastCheckedAt: string | null;
|
|
4813
|
+
fromEmail: string | null;
|
|
4814
|
+
inUse: boolean;
|
|
4815
|
+
dkim: "pending" | "verified" | "failed";
|
|
4816
|
+
dmarc: "pass" | "missing";
|
|
4817
|
+
records: {
|
|
4818
|
+
value: string;
|
|
4819
|
+
type: "CNAME" | "TXT";
|
|
4820
|
+
name: string;
|
|
4821
|
+
purpose: "dkim" | "dmarc";
|
|
4822
|
+
present?: boolean | undefined;
|
|
4823
|
+
}[];
|
|
4824
|
+
failingSince: string | null;
|
|
3766
4825
|
}, {
|
|
3767
|
-
status: "
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
4826
|
+
status: "pending" | "verified" | "failing";
|
|
4827
|
+
domain: string;
|
|
4828
|
+
verifiedAt: string | null;
|
|
4829
|
+
graceEndsAt: string | null;
|
|
4830
|
+
lastCheckedAt: string | null;
|
|
4831
|
+
fromEmail: string | null;
|
|
4832
|
+
inUse: boolean;
|
|
4833
|
+
dkim: "pending" | "verified" | "failed";
|
|
4834
|
+
dmarc: "pass" | "missing";
|
|
4835
|
+
records: {
|
|
4836
|
+
value: string;
|
|
4837
|
+
type: "CNAME" | "TXT";
|
|
4838
|
+
name: string;
|
|
4839
|
+
purpose: "dkim" | "dmarc";
|
|
4840
|
+
present?: boolean | undefined;
|
|
4841
|
+
}[];
|
|
4842
|
+
failingSince: string | null;
|
|
4843
|
+
}>;
|
|
4844
|
+
400: zod.ZodObject<{
|
|
4845
|
+
error: zod.ZodString;
|
|
4846
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4847
|
+
error: string;
|
|
4848
|
+
}, {
|
|
4849
|
+
error: string;
|
|
3779
4850
|
}>;
|
|
3780
4851
|
403: zod.ZodObject<{
|
|
3781
4852
|
error: zod.ZodString;
|
|
@@ -3798,11 +4869,18 @@ declare const routes$6: {
|
|
|
3798
4869
|
}, {
|
|
3799
4870
|
error: string;
|
|
3800
4871
|
}>;
|
|
4872
|
+
422: zod.ZodObject<{
|
|
4873
|
+
error: zod.ZodString;
|
|
4874
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4875
|
+
error: string;
|
|
4876
|
+
}, {
|
|
4877
|
+
error: string;
|
|
4878
|
+
}>;
|
|
3801
4879
|
};
|
|
3802
|
-
path: "/provisioning/teams/:teamId/
|
|
4880
|
+
path: "/provisioning/teams/:teamId/sending-domain";
|
|
3803
4881
|
};
|
|
3804
|
-
|
|
3805
|
-
summary: "
|
|
4882
|
+
removeTeamSendingDomain: {
|
|
4883
|
+
summary: "Stop using a provisioned team's own sending domain";
|
|
3806
4884
|
metadata: {
|
|
3807
4885
|
tag: string;
|
|
3808
4886
|
};
|
|
@@ -3824,10 +4902,11 @@ declare const routes$6: {
|
|
|
3824
4902
|
error: string;
|
|
3825
4903
|
}>;
|
|
3826
4904
|
};
|
|
3827
|
-
path: "/provisioning/teams/:teamId";
|
|
4905
|
+
path: "/provisioning/teams/:teamId/sending-domain";
|
|
3828
4906
|
};
|
|
3829
4907
|
getTeamUsage: {
|
|
3830
4908
|
summary: "Get organization-delivery quota usage for a provisioned team";
|
|
4909
|
+
description: "Returns the team's day and month quota on the shared mailbox, plus its `health` (see Get a provisioned team).";
|
|
3831
4910
|
metadata: {
|
|
3832
4911
|
tag: string;
|
|
3833
4912
|
};
|
|
@@ -3872,7 +4951,54 @@ declare const routes$6: {
|
|
|
3872
4951
|
remaining: number | null;
|
|
3873
4952
|
resetsAt: string;
|
|
3874
4953
|
}>;
|
|
4954
|
+
} & {
|
|
4955
|
+
health: zod.ZodObject<{
|
|
4956
|
+
status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
|
|
4957
|
+
reason: zod.ZodNullable<zod.ZodString>;
|
|
4958
|
+
scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
|
|
4959
|
+
last7Days: zod.ZodObject<{
|
|
4960
|
+
sent: zod.ZodNumber;
|
|
4961
|
+
bounced: zod.ZodNumber;
|
|
4962
|
+
complained: zod.ZodNumber;
|
|
4963
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4964
|
+
bounced: number;
|
|
4965
|
+
complained: number;
|
|
4966
|
+
sent: number;
|
|
4967
|
+
}, {
|
|
4968
|
+
bounced: number;
|
|
4969
|
+
complained: number;
|
|
4970
|
+
sent: number;
|
|
4971
|
+
}>;
|
|
4972
|
+
}, "strip", zod.ZodTypeAny, {
|
|
4973
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4974
|
+
reason: string | null;
|
|
4975
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4976
|
+
last7Days: {
|
|
4977
|
+
bounced: number;
|
|
4978
|
+
complained: number;
|
|
4979
|
+
sent: number;
|
|
4980
|
+
};
|
|
4981
|
+
}, {
|
|
4982
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4983
|
+
reason: string | null;
|
|
4984
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4985
|
+
last7Days: {
|
|
4986
|
+
bounced: number;
|
|
4987
|
+
complained: number;
|
|
4988
|
+
sent: number;
|
|
4989
|
+
};
|
|
4990
|
+
}>;
|
|
3875
4991
|
}, "strip", zod.ZodTypeAny, {
|
|
4992
|
+
health: {
|
|
4993
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
4994
|
+
reason: string | null;
|
|
4995
|
+
scope: "team" | "shared_mailbox" | null;
|
|
4996
|
+
last7Days: {
|
|
4997
|
+
bounced: number;
|
|
4998
|
+
complained: number;
|
|
4999
|
+
sent: number;
|
|
5000
|
+
};
|
|
5001
|
+
};
|
|
3876
5002
|
day: {
|
|
3877
5003
|
limit: number | null;
|
|
3878
5004
|
accepted: number;
|
|
@@ -3888,6 +5014,16 @@ declare const routes$6: {
|
|
|
3888
5014
|
resetsAt: string;
|
|
3889
5015
|
};
|
|
3890
5016
|
}, {
|
|
5017
|
+
health: {
|
|
5018
|
+
status: "normal" | "warned" | "marketing_paused" | "all_paused";
|
|
5019
|
+
reason: string | null;
|
|
5020
|
+
scope: "team" | "shared_mailbox" | null;
|
|
5021
|
+
last7Days: {
|
|
5022
|
+
bounced: number;
|
|
5023
|
+
complained: number;
|
|
5024
|
+
sent: number;
|
|
5025
|
+
};
|
|
5026
|
+
};
|
|
3891
5027
|
day: {
|
|
3892
5028
|
limit: number | null;
|
|
3893
5029
|
accepted: number;
|
|
@@ -4384,8 +5520,8 @@ declare const routes$5: {
|
|
|
4384
5520
|
})[];
|
|
4385
5521
|
};
|
|
4386
5522
|
name: string;
|
|
4387
|
-
createdAt: string | null;
|
|
4388
5523
|
updatedAt: string | null;
|
|
5524
|
+
createdAt: string | null;
|
|
4389
5525
|
segmentId: string;
|
|
4390
5526
|
}, {
|
|
4391
5527
|
filter: {
|
|
@@ -4419,8 +5555,8 @@ declare const routes$5: {
|
|
|
4419
5555
|
})[];
|
|
4420
5556
|
};
|
|
4421
5557
|
name: string;
|
|
4422
|
-
createdAt: string | null;
|
|
4423
5558
|
updatedAt: string | null;
|
|
5559
|
+
createdAt: string | null;
|
|
4424
5560
|
segmentId: string;
|
|
4425
5561
|
}>;
|
|
4426
5562
|
409: zod.ZodObject<{
|
|
@@ -4472,8 +5608,8 @@ declare const routes$5: {
|
|
|
4472
5608
|
})[];
|
|
4473
5609
|
};
|
|
4474
5610
|
name: string;
|
|
4475
|
-
createdAt: string | null;
|
|
4476
5611
|
updatedAt: string | null;
|
|
5612
|
+
createdAt: string | null;
|
|
4477
5613
|
segmentId: string;
|
|
4478
5614
|
}[]>;
|
|
4479
5615
|
};
|
|
@@ -4680,8 +5816,8 @@ declare const routes$5: {
|
|
|
4680
5816
|
})[];
|
|
4681
5817
|
};
|
|
4682
5818
|
name: string;
|
|
4683
|
-
createdAt: string | null;
|
|
4684
5819
|
updatedAt: string | null;
|
|
5820
|
+
createdAt: string | null;
|
|
4685
5821
|
segmentId: string;
|
|
4686
5822
|
}, {
|
|
4687
5823
|
filter: {
|
|
@@ -4715,8 +5851,8 @@ declare const routes$5: {
|
|
|
4715
5851
|
})[];
|
|
4716
5852
|
};
|
|
4717
5853
|
name: string;
|
|
4718
|
-
createdAt: string | null;
|
|
4719
5854
|
updatedAt: string | null;
|
|
5855
|
+
createdAt: string | null;
|
|
4720
5856
|
segmentId: string;
|
|
4721
5857
|
}>;
|
|
4722
5858
|
404: zod.ZodObject<{
|
|
@@ -5154,8 +6290,8 @@ declare const routes$5: {
|
|
|
5154
6290
|
})[];
|
|
5155
6291
|
};
|
|
5156
6292
|
name: string;
|
|
5157
|
-
createdAt: string | null;
|
|
5158
6293
|
updatedAt: string | null;
|
|
6294
|
+
createdAt: string | null;
|
|
5159
6295
|
segmentId: string;
|
|
5160
6296
|
}, {
|
|
5161
6297
|
filter: {
|
|
@@ -5189,8 +6325,8 @@ declare const routes$5: {
|
|
|
5189
6325
|
})[];
|
|
5190
6326
|
};
|
|
5191
6327
|
name: string;
|
|
5192
|
-
createdAt: string | null;
|
|
5193
6328
|
updatedAt: string | null;
|
|
6329
|
+
createdAt: string | null;
|
|
5194
6330
|
segmentId: string;
|
|
5195
6331
|
}>;
|
|
5196
6332
|
404: zod.ZodObject<{
|
|
@@ -5378,8 +6514,8 @@ declare const routes$4: {
|
|
|
5378
6514
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
5379
6515
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
5380
6516
|
}, "strip", zod.ZodTypeAny, {
|
|
5381
|
-
createdAt: string | null;
|
|
5382
6517
|
updatedAt: string | null;
|
|
6518
|
+
createdAt: string | null;
|
|
5383
6519
|
content: {
|
|
5384
6520
|
style: Record<string, any>;
|
|
5385
6521
|
meta: Record<string, any>;
|
|
@@ -5405,8 +6541,8 @@ declare const routes$4: {
|
|
|
5405
6541
|
contentScanVerdict?: string | null | undefined;
|
|
5406
6542
|
hasUnpublishedChanges?: boolean | undefined;
|
|
5407
6543
|
}, {
|
|
5408
|
-
createdAt: string | null;
|
|
5409
6544
|
updatedAt: string | null;
|
|
6545
|
+
createdAt: string | null;
|
|
5410
6546
|
content: {
|
|
5411
6547
|
style: Record<string, any>;
|
|
5412
6548
|
meta: Record<string, any>;
|
|
@@ -5440,23 +6576,23 @@ declare const routes$4: {
|
|
|
5440
6576
|
remaining: zod.ZodNumber;
|
|
5441
6577
|
estimatedCompletionAt: zod.ZodString;
|
|
5442
6578
|
}, "strip", zod.ZodTypeAny, {
|
|
5443
|
-
remaining: number;
|
|
5444
6579
|
dailyLimit: number;
|
|
5445
6580
|
reason: "new_account";
|
|
6581
|
+
remaining: number;
|
|
5446
6582
|
hourlyLimit: number;
|
|
5447
6583
|
estimatedCompletionAt: string;
|
|
5448
6584
|
}, {
|
|
5449
|
-
remaining: number;
|
|
5450
6585
|
dailyLimit: number;
|
|
5451
6586
|
reason: "new_account";
|
|
6587
|
+
remaining: number;
|
|
5452
6588
|
hourlyLimit: number;
|
|
5453
6589
|
estimatedCompletionAt: string;
|
|
5454
6590
|
}>>>;
|
|
5455
6591
|
}, "strip", zod.ZodTypeAny, {
|
|
5456
6592
|
type: string;
|
|
5457
6593
|
status: string;
|
|
5458
|
-
createdAt: string | null;
|
|
5459
6594
|
updatedAt: string | null;
|
|
6595
|
+
createdAt: string | null;
|
|
5460
6596
|
deliverySource: {
|
|
5461
6597
|
type: "organization";
|
|
5462
6598
|
} | {
|
|
@@ -5469,8 +6605,8 @@ declare const routes$4: {
|
|
|
5469
6605
|
entrants: string[];
|
|
5470
6606
|
viewInBrowser: boolean;
|
|
5471
6607
|
emails: {
|
|
5472
|
-
createdAt: string | null;
|
|
5473
6608
|
updatedAt: string | null;
|
|
6609
|
+
createdAt: string | null;
|
|
5474
6610
|
content: {
|
|
5475
6611
|
style: Record<string, any>;
|
|
5476
6612
|
meta: Record<string, any>;
|
|
@@ -5508,17 +6644,17 @@ declare const routes$4: {
|
|
|
5508
6644
|
report?: any;
|
|
5509
6645
|
archivedAt?: string | null | undefined;
|
|
5510
6646
|
pacing?: {
|
|
5511
|
-
remaining: number;
|
|
5512
6647
|
dailyLimit: number;
|
|
5513
6648
|
reason: "new_account";
|
|
6649
|
+
remaining: number;
|
|
5514
6650
|
hourlyLimit: number;
|
|
5515
6651
|
estimatedCompletionAt: string;
|
|
5516
6652
|
} | null | undefined;
|
|
5517
6653
|
}, {
|
|
5518
6654
|
type: string;
|
|
5519
6655
|
status: string;
|
|
5520
|
-
createdAt: string | null;
|
|
5521
6656
|
updatedAt: string | null;
|
|
6657
|
+
createdAt: string | null;
|
|
5522
6658
|
deliverySource: {
|
|
5523
6659
|
type: "organization";
|
|
5524
6660
|
} | {
|
|
@@ -5531,8 +6667,8 @@ declare const routes$4: {
|
|
|
5531
6667
|
entrants: string[];
|
|
5532
6668
|
viewInBrowser: boolean;
|
|
5533
6669
|
emails: {
|
|
5534
|
-
createdAt: string | null;
|
|
5535
6670
|
updatedAt: string | null;
|
|
6671
|
+
createdAt: string | null;
|
|
5536
6672
|
content: {
|
|
5537
6673
|
style: Record<string, any>;
|
|
5538
6674
|
meta: Record<string, any>;
|
|
@@ -5570,9 +6706,9 @@ declare const routes$4: {
|
|
|
5570
6706
|
report?: any;
|
|
5571
6707
|
archivedAt?: string | null | undefined;
|
|
5572
6708
|
pacing?: {
|
|
5573
|
-
remaining: number;
|
|
5574
6709
|
dailyLimit: number;
|
|
5575
6710
|
reason: "new_account";
|
|
6711
|
+
remaining: number;
|
|
5576
6712
|
hourlyLimit: number;
|
|
5577
6713
|
estimatedCompletionAt: string;
|
|
5578
6714
|
} | null | undefined;
|
|
@@ -5715,8 +6851,8 @@ declare const routes$4: {
|
|
|
5715
6851
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
5716
6852
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
5717
6853
|
}, "strip", zod.ZodTypeAny, {
|
|
5718
|
-
createdAt: string | null;
|
|
5719
6854
|
updatedAt: string | null;
|
|
6855
|
+
createdAt: string | null;
|
|
5720
6856
|
content: {
|
|
5721
6857
|
style: Record<string, any>;
|
|
5722
6858
|
meta: Record<string, any>;
|
|
@@ -5742,8 +6878,8 @@ declare const routes$4: {
|
|
|
5742
6878
|
contentScanVerdict?: string | null | undefined;
|
|
5743
6879
|
hasUnpublishedChanges?: boolean | undefined;
|
|
5744
6880
|
}, {
|
|
5745
|
-
createdAt: string | null;
|
|
5746
6881
|
updatedAt: string | null;
|
|
6882
|
+
createdAt: string | null;
|
|
5747
6883
|
content: {
|
|
5748
6884
|
style: Record<string, any>;
|
|
5749
6885
|
meta: Record<string, any>;
|
|
@@ -5777,23 +6913,23 @@ declare const routes$4: {
|
|
|
5777
6913
|
remaining: zod.ZodNumber;
|
|
5778
6914
|
estimatedCompletionAt: zod.ZodString;
|
|
5779
6915
|
}, "strip", zod.ZodTypeAny, {
|
|
5780
|
-
remaining: number;
|
|
5781
6916
|
dailyLimit: number;
|
|
5782
6917
|
reason: "new_account";
|
|
6918
|
+
remaining: number;
|
|
5783
6919
|
hourlyLimit: number;
|
|
5784
6920
|
estimatedCompletionAt: string;
|
|
5785
6921
|
}, {
|
|
5786
|
-
remaining: number;
|
|
5787
6922
|
dailyLimit: number;
|
|
5788
6923
|
reason: "new_account";
|
|
6924
|
+
remaining: number;
|
|
5789
6925
|
hourlyLimit: number;
|
|
5790
6926
|
estimatedCompletionAt: string;
|
|
5791
6927
|
}>>>;
|
|
5792
6928
|
}, "strip", zod.ZodTypeAny, {
|
|
5793
6929
|
type: string;
|
|
5794
6930
|
status: string;
|
|
5795
|
-
createdAt: string | null;
|
|
5796
6931
|
updatedAt: string | null;
|
|
6932
|
+
createdAt: string | null;
|
|
5797
6933
|
deliverySource: {
|
|
5798
6934
|
type: "organization";
|
|
5799
6935
|
} | {
|
|
@@ -5806,8 +6942,8 @@ declare const routes$4: {
|
|
|
5806
6942
|
entrants: string[];
|
|
5807
6943
|
viewInBrowser: boolean;
|
|
5808
6944
|
emails: {
|
|
5809
|
-
createdAt: string | null;
|
|
5810
6945
|
updatedAt: string | null;
|
|
6946
|
+
createdAt: string | null;
|
|
5811
6947
|
content: {
|
|
5812
6948
|
style: Record<string, any>;
|
|
5813
6949
|
meta: Record<string, any>;
|
|
@@ -5845,17 +6981,17 @@ declare const routes$4: {
|
|
|
5845
6981
|
report?: any;
|
|
5846
6982
|
archivedAt?: string | null | undefined;
|
|
5847
6983
|
pacing?: {
|
|
5848
|
-
remaining: number;
|
|
5849
6984
|
dailyLimit: number;
|
|
5850
6985
|
reason: "new_account";
|
|
6986
|
+
remaining: number;
|
|
5851
6987
|
hourlyLimit: number;
|
|
5852
6988
|
estimatedCompletionAt: string;
|
|
5853
6989
|
} | null | undefined;
|
|
5854
6990
|
}, {
|
|
5855
6991
|
type: string;
|
|
5856
6992
|
status: string;
|
|
5857
|
-
createdAt: string | null;
|
|
5858
6993
|
updatedAt: string | null;
|
|
6994
|
+
createdAt: string | null;
|
|
5859
6995
|
deliverySource: {
|
|
5860
6996
|
type: "organization";
|
|
5861
6997
|
} | {
|
|
@@ -5868,8 +7004,8 @@ declare const routes$4: {
|
|
|
5868
7004
|
entrants: string[];
|
|
5869
7005
|
viewInBrowser: boolean;
|
|
5870
7006
|
emails: {
|
|
5871
|
-
createdAt: string | null;
|
|
5872
7007
|
updatedAt: string | null;
|
|
7008
|
+
createdAt: string | null;
|
|
5873
7009
|
content: {
|
|
5874
7010
|
style: Record<string, any>;
|
|
5875
7011
|
meta: Record<string, any>;
|
|
@@ -5907,9 +7043,9 @@ declare const routes$4: {
|
|
|
5907
7043
|
report?: any;
|
|
5908
7044
|
archivedAt?: string | null | undefined;
|
|
5909
7045
|
pacing?: {
|
|
5910
|
-
remaining: number;
|
|
5911
7046
|
dailyLimit: number;
|
|
5912
7047
|
reason: "new_account";
|
|
7048
|
+
remaining: number;
|
|
5913
7049
|
hourlyLimit: number;
|
|
5914
7050
|
estimatedCompletionAt: string;
|
|
5915
7051
|
} | null | undefined;
|
|
@@ -5919,8 +7055,8 @@ declare const routes$4: {
|
|
|
5919
7055
|
items: {
|
|
5920
7056
|
type: string;
|
|
5921
7057
|
status: string;
|
|
5922
|
-
createdAt: string | null;
|
|
5923
7058
|
updatedAt: string | null;
|
|
7059
|
+
createdAt: string | null;
|
|
5924
7060
|
deliverySource: {
|
|
5925
7061
|
type: "organization";
|
|
5926
7062
|
} | {
|
|
@@ -5933,8 +7069,8 @@ declare const routes$4: {
|
|
|
5933
7069
|
entrants: string[];
|
|
5934
7070
|
viewInBrowser: boolean;
|
|
5935
7071
|
emails: {
|
|
5936
|
-
createdAt: string | null;
|
|
5937
7072
|
updatedAt: string | null;
|
|
7073
|
+
createdAt: string | null;
|
|
5938
7074
|
content: {
|
|
5939
7075
|
style: Record<string, any>;
|
|
5940
7076
|
meta: Record<string, any>;
|
|
@@ -5972,9 +7108,9 @@ declare const routes$4: {
|
|
|
5972
7108
|
report?: any;
|
|
5973
7109
|
archivedAt?: string | null | undefined;
|
|
5974
7110
|
pacing?: {
|
|
5975
|
-
remaining: number;
|
|
5976
7111
|
dailyLimit: number;
|
|
5977
7112
|
reason: "new_account";
|
|
7113
|
+
remaining: number;
|
|
5978
7114
|
hourlyLimit: number;
|
|
5979
7115
|
estimatedCompletionAt: string;
|
|
5980
7116
|
} | null | undefined;
|
|
@@ -5984,8 +7120,8 @@ declare const routes$4: {
|
|
|
5984
7120
|
items: {
|
|
5985
7121
|
type: string;
|
|
5986
7122
|
status: string;
|
|
5987
|
-
createdAt: string | null;
|
|
5988
7123
|
updatedAt: string | null;
|
|
7124
|
+
createdAt: string | null;
|
|
5989
7125
|
deliverySource: {
|
|
5990
7126
|
type: "organization";
|
|
5991
7127
|
} | {
|
|
@@ -5998,8 +7134,8 @@ declare const routes$4: {
|
|
|
5998
7134
|
entrants: string[];
|
|
5999
7135
|
viewInBrowser: boolean;
|
|
6000
7136
|
emails: {
|
|
6001
|
-
createdAt: string | null;
|
|
6002
7137
|
updatedAt: string | null;
|
|
7138
|
+
createdAt: string | null;
|
|
6003
7139
|
content: {
|
|
6004
7140
|
style: Record<string, any>;
|
|
6005
7141
|
meta: Record<string, any>;
|
|
@@ -6037,9 +7173,9 @@ declare const routes$4: {
|
|
|
6037
7173
|
report?: any;
|
|
6038
7174
|
archivedAt?: string | null | undefined;
|
|
6039
7175
|
pacing?: {
|
|
6040
|
-
remaining: number;
|
|
6041
7176
|
dailyLimit: number;
|
|
6042
7177
|
reason: "new_account";
|
|
7178
|
+
remaining: number;
|
|
6043
7179
|
hourlyLimit: number;
|
|
6044
7180
|
estimatedCompletionAt: string;
|
|
6045
7181
|
} | null | undefined;
|
|
@@ -6152,8 +7288,8 @@ declare const routes$4: {
|
|
|
6152
7288
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
6153
7289
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
6154
7290
|
}, "strip", zod.ZodTypeAny, {
|
|
6155
|
-
createdAt: string | null;
|
|
6156
7291
|
updatedAt: string | null;
|
|
7292
|
+
createdAt: string | null;
|
|
6157
7293
|
content: {
|
|
6158
7294
|
style: Record<string, any>;
|
|
6159
7295
|
meta: Record<string, any>;
|
|
@@ -6179,8 +7315,8 @@ declare const routes$4: {
|
|
|
6179
7315
|
contentScanVerdict?: string | null | undefined;
|
|
6180
7316
|
hasUnpublishedChanges?: boolean | undefined;
|
|
6181
7317
|
}, {
|
|
6182
|
-
createdAt: string | null;
|
|
6183
7318
|
updatedAt: string | null;
|
|
7319
|
+
createdAt: string | null;
|
|
6184
7320
|
content: {
|
|
6185
7321
|
style: Record<string, any>;
|
|
6186
7322
|
meta: Record<string, any>;
|
|
@@ -6214,23 +7350,23 @@ declare const routes$4: {
|
|
|
6214
7350
|
remaining: zod.ZodNumber;
|
|
6215
7351
|
estimatedCompletionAt: zod.ZodString;
|
|
6216
7352
|
}, "strip", zod.ZodTypeAny, {
|
|
6217
|
-
remaining: number;
|
|
6218
7353
|
dailyLimit: number;
|
|
6219
7354
|
reason: "new_account";
|
|
7355
|
+
remaining: number;
|
|
6220
7356
|
hourlyLimit: number;
|
|
6221
7357
|
estimatedCompletionAt: string;
|
|
6222
7358
|
}, {
|
|
6223
|
-
remaining: number;
|
|
6224
7359
|
dailyLimit: number;
|
|
6225
7360
|
reason: "new_account";
|
|
7361
|
+
remaining: number;
|
|
6226
7362
|
hourlyLimit: number;
|
|
6227
7363
|
estimatedCompletionAt: string;
|
|
6228
7364
|
}>>>;
|
|
6229
7365
|
}, "strip", zod.ZodTypeAny, {
|
|
6230
7366
|
type: string;
|
|
6231
7367
|
status: string;
|
|
6232
|
-
createdAt: string | null;
|
|
6233
7368
|
updatedAt: string | null;
|
|
7369
|
+
createdAt: string | null;
|
|
6234
7370
|
deliverySource: {
|
|
6235
7371
|
type: "organization";
|
|
6236
7372
|
} | {
|
|
@@ -6243,8 +7379,8 @@ declare const routes$4: {
|
|
|
6243
7379
|
entrants: string[];
|
|
6244
7380
|
viewInBrowser: boolean;
|
|
6245
7381
|
emails: {
|
|
6246
|
-
createdAt: string | null;
|
|
6247
7382
|
updatedAt: string | null;
|
|
7383
|
+
createdAt: string | null;
|
|
6248
7384
|
content: {
|
|
6249
7385
|
style: Record<string, any>;
|
|
6250
7386
|
meta: Record<string, any>;
|
|
@@ -6282,17 +7418,17 @@ declare const routes$4: {
|
|
|
6282
7418
|
report?: any;
|
|
6283
7419
|
archivedAt?: string | null | undefined;
|
|
6284
7420
|
pacing?: {
|
|
6285
|
-
remaining: number;
|
|
6286
7421
|
dailyLimit: number;
|
|
6287
7422
|
reason: "new_account";
|
|
7423
|
+
remaining: number;
|
|
6288
7424
|
hourlyLimit: number;
|
|
6289
7425
|
estimatedCompletionAt: string;
|
|
6290
7426
|
} | null | undefined;
|
|
6291
7427
|
}, {
|
|
6292
7428
|
type: string;
|
|
6293
7429
|
status: string;
|
|
6294
|
-
createdAt: string | null;
|
|
6295
7430
|
updatedAt: string | null;
|
|
7431
|
+
createdAt: string | null;
|
|
6296
7432
|
deliverySource: {
|
|
6297
7433
|
type: "organization";
|
|
6298
7434
|
} | {
|
|
@@ -6305,8 +7441,8 @@ declare const routes$4: {
|
|
|
6305
7441
|
entrants: string[];
|
|
6306
7442
|
viewInBrowser: boolean;
|
|
6307
7443
|
emails: {
|
|
6308
|
-
createdAt: string | null;
|
|
6309
7444
|
updatedAt: string | null;
|
|
7445
|
+
createdAt: string | null;
|
|
6310
7446
|
content: {
|
|
6311
7447
|
style: Record<string, any>;
|
|
6312
7448
|
meta: Record<string, any>;
|
|
@@ -6344,9 +7480,9 @@ declare const routes$4: {
|
|
|
6344
7480
|
report?: any;
|
|
6345
7481
|
archivedAt?: string | null | undefined;
|
|
6346
7482
|
pacing?: {
|
|
6347
|
-
remaining: number;
|
|
6348
7483
|
dailyLimit: number;
|
|
6349
7484
|
reason: "new_account";
|
|
7485
|
+
remaining: number;
|
|
6350
7486
|
hourlyLimit: number;
|
|
6351
7487
|
estimatedCompletionAt: string;
|
|
6352
7488
|
} | null | undefined;
|
|
@@ -7021,8 +8157,8 @@ declare const routes$4: {
|
|
|
7021
8157
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
7022
8158
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
7023
8159
|
}, "strip", zod.ZodTypeAny, {
|
|
7024
|
-
createdAt: string | null;
|
|
7025
8160
|
updatedAt: string | null;
|
|
8161
|
+
createdAt: string | null;
|
|
7026
8162
|
content: {
|
|
7027
8163
|
style: Record<string, any>;
|
|
7028
8164
|
meta: Record<string, any>;
|
|
@@ -7048,8 +8184,8 @@ declare const routes$4: {
|
|
|
7048
8184
|
contentScanVerdict?: string | null | undefined;
|
|
7049
8185
|
hasUnpublishedChanges?: boolean | undefined;
|
|
7050
8186
|
}, {
|
|
7051
|
-
createdAt: string | null;
|
|
7052
8187
|
updatedAt: string | null;
|
|
8188
|
+
createdAt: string | null;
|
|
7053
8189
|
content: {
|
|
7054
8190
|
style: Record<string, any>;
|
|
7055
8191
|
meta: Record<string, any>;
|
|
@@ -7083,23 +8219,23 @@ declare const routes$4: {
|
|
|
7083
8219
|
remaining: zod.ZodNumber;
|
|
7084
8220
|
estimatedCompletionAt: zod.ZodString;
|
|
7085
8221
|
}, "strip", zod.ZodTypeAny, {
|
|
7086
|
-
remaining: number;
|
|
7087
8222
|
dailyLimit: number;
|
|
7088
8223
|
reason: "new_account";
|
|
8224
|
+
remaining: number;
|
|
7089
8225
|
hourlyLimit: number;
|
|
7090
8226
|
estimatedCompletionAt: string;
|
|
7091
8227
|
}, {
|
|
7092
|
-
remaining: number;
|
|
7093
8228
|
dailyLimit: number;
|
|
7094
8229
|
reason: "new_account";
|
|
8230
|
+
remaining: number;
|
|
7095
8231
|
hourlyLimit: number;
|
|
7096
8232
|
estimatedCompletionAt: string;
|
|
7097
8233
|
}>>>;
|
|
7098
8234
|
}, "strip", zod.ZodTypeAny, {
|
|
7099
8235
|
type: string;
|
|
7100
8236
|
status: string;
|
|
7101
|
-
createdAt: string | null;
|
|
7102
8237
|
updatedAt: string | null;
|
|
8238
|
+
createdAt: string | null;
|
|
7103
8239
|
deliverySource: {
|
|
7104
8240
|
type: "organization";
|
|
7105
8241
|
} | {
|
|
@@ -7112,8 +8248,8 @@ declare const routes$4: {
|
|
|
7112
8248
|
entrants: string[];
|
|
7113
8249
|
viewInBrowser: boolean;
|
|
7114
8250
|
emails: {
|
|
7115
|
-
createdAt: string | null;
|
|
7116
8251
|
updatedAt: string | null;
|
|
8252
|
+
createdAt: string | null;
|
|
7117
8253
|
content: {
|
|
7118
8254
|
style: Record<string, any>;
|
|
7119
8255
|
meta: Record<string, any>;
|
|
@@ -7151,17 +8287,17 @@ declare const routes$4: {
|
|
|
7151
8287
|
report?: any;
|
|
7152
8288
|
archivedAt?: string | null | undefined;
|
|
7153
8289
|
pacing?: {
|
|
7154
|
-
remaining: number;
|
|
7155
8290
|
dailyLimit: number;
|
|
7156
8291
|
reason: "new_account";
|
|
8292
|
+
remaining: number;
|
|
7157
8293
|
hourlyLimit: number;
|
|
7158
8294
|
estimatedCompletionAt: string;
|
|
7159
8295
|
} | null | undefined;
|
|
7160
8296
|
}, {
|
|
7161
8297
|
type: string;
|
|
7162
8298
|
status: string;
|
|
7163
|
-
createdAt: string | null;
|
|
7164
8299
|
updatedAt: string | null;
|
|
8300
|
+
createdAt: string | null;
|
|
7165
8301
|
deliverySource: {
|
|
7166
8302
|
type: "organization";
|
|
7167
8303
|
} | {
|
|
@@ -7174,8 +8310,8 @@ declare const routes$4: {
|
|
|
7174
8310
|
entrants: string[];
|
|
7175
8311
|
viewInBrowser: boolean;
|
|
7176
8312
|
emails: {
|
|
7177
|
-
createdAt: string | null;
|
|
7178
8313
|
updatedAt: string | null;
|
|
8314
|
+
createdAt: string | null;
|
|
7179
8315
|
content: {
|
|
7180
8316
|
style: Record<string, any>;
|
|
7181
8317
|
meta: Record<string, any>;
|
|
@@ -7213,9 +8349,9 @@ declare const routes$4: {
|
|
|
7213
8349
|
report?: any;
|
|
7214
8350
|
archivedAt?: string | null | undefined;
|
|
7215
8351
|
pacing?: {
|
|
7216
|
-
remaining: number;
|
|
7217
8352
|
dailyLimit: number;
|
|
7218
8353
|
reason: "new_account";
|
|
8354
|
+
remaining: number;
|
|
7219
8355
|
hourlyLimit: number;
|
|
7220
8356
|
estimatedCompletionAt: string;
|
|
7221
8357
|
} | null | undefined;
|
|
@@ -7402,8 +8538,8 @@ declare const routes$4: {
|
|
|
7402
8538
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
7403
8539
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
7404
8540
|
}, "strip", zod.ZodTypeAny, {
|
|
7405
|
-
createdAt: string | null;
|
|
7406
8541
|
updatedAt: string | null;
|
|
8542
|
+
createdAt: string | null;
|
|
7407
8543
|
content: {
|
|
7408
8544
|
style: Record<string, any>;
|
|
7409
8545
|
meta: Record<string, any>;
|
|
@@ -7429,8 +8565,8 @@ declare const routes$4: {
|
|
|
7429
8565
|
contentScanVerdict?: string | null | undefined;
|
|
7430
8566
|
hasUnpublishedChanges?: boolean | undefined;
|
|
7431
8567
|
}, {
|
|
7432
|
-
createdAt: string | null;
|
|
7433
8568
|
updatedAt: string | null;
|
|
8569
|
+
createdAt: string | null;
|
|
7434
8570
|
content: {
|
|
7435
8571
|
style: Record<string, any>;
|
|
7436
8572
|
meta: Record<string, any>;
|
|
@@ -7464,23 +8600,23 @@ declare const routes$4: {
|
|
|
7464
8600
|
remaining: zod.ZodNumber;
|
|
7465
8601
|
estimatedCompletionAt: zod.ZodString;
|
|
7466
8602
|
}, "strip", zod.ZodTypeAny, {
|
|
7467
|
-
remaining: number;
|
|
7468
8603
|
dailyLimit: number;
|
|
7469
8604
|
reason: "new_account";
|
|
8605
|
+
remaining: number;
|
|
7470
8606
|
hourlyLimit: number;
|
|
7471
8607
|
estimatedCompletionAt: string;
|
|
7472
8608
|
}, {
|
|
7473
|
-
remaining: number;
|
|
7474
8609
|
dailyLimit: number;
|
|
7475
8610
|
reason: "new_account";
|
|
8611
|
+
remaining: number;
|
|
7476
8612
|
hourlyLimit: number;
|
|
7477
8613
|
estimatedCompletionAt: string;
|
|
7478
8614
|
}>>>;
|
|
7479
8615
|
}, "strip", zod.ZodTypeAny, {
|
|
7480
8616
|
type: string;
|
|
7481
8617
|
status: string;
|
|
7482
|
-
createdAt: string | null;
|
|
7483
8618
|
updatedAt: string | null;
|
|
8619
|
+
createdAt: string | null;
|
|
7484
8620
|
deliverySource: {
|
|
7485
8621
|
type: "organization";
|
|
7486
8622
|
} | {
|
|
@@ -7493,8 +8629,8 @@ declare const routes$4: {
|
|
|
7493
8629
|
entrants: string[];
|
|
7494
8630
|
viewInBrowser: boolean;
|
|
7495
8631
|
emails: {
|
|
7496
|
-
createdAt: string | null;
|
|
7497
8632
|
updatedAt: string | null;
|
|
8633
|
+
createdAt: string | null;
|
|
7498
8634
|
content: {
|
|
7499
8635
|
style: Record<string, any>;
|
|
7500
8636
|
meta: Record<string, any>;
|
|
@@ -7532,17 +8668,17 @@ declare const routes$4: {
|
|
|
7532
8668
|
report?: any;
|
|
7533
8669
|
archivedAt?: string | null | undefined;
|
|
7534
8670
|
pacing?: {
|
|
7535
|
-
remaining: number;
|
|
7536
8671
|
dailyLimit: number;
|
|
7537
8672
|
reason: "new_account";
|
|
8673
|
+
remaining: number;
|
|
7538
8674
|
hourlyLimit: number;
|
|
7539
8675
|
estimatedCompletionAt: string;
|
|
7540
8676
|
} | null | undefined;
|
|
7541
8677
|
}, {
|
|
7542
8678
|
type: string;
|
|
7543
8679
|
status: string;
|
|
7544
|
-
createdAt: string | null;
|
|
7545
8680
|
updatedAt: string | null;
|
|
8681
|
+
createdAt: string | null;
|
|
7546
8682
|
deliverySource: {
|
|
7547
8683
|
type: "organization";
|
|
7548
8684
|
} | {
|
|
@@ -7555,8 +8691,8 @@ declare const routes$4: {
|
|
|
7555
8691
|
entrants: string[];
|
|
7556
8692
|
viewInBrowser: boolean;
|
|
7557
8693
|
emails: {
|
|
7558
|
-
createdAt: string | null;
|
|
7559
8694
|
updatedAt: string | null;
|
|
8695
|
+
createdAt: string | null;
|
|
7560
8696
|
content: {
|
|
7561
8697
|
style: Record<string, any>;
|
|
7562
8698
|
meta: Record<string, any>;
|
|
@@ -7594,9 +8730,9 @@ declare const routes$4: {
|
|
|
7594
8730
|
report?: any;
|
|
7595
8731
|
archivedAt?: string | null | undefined;
|
|
7596
8732
|
pacing?: {
|
|
7597
|
-
remaining: number;
|
|
7598
8733
|
dailyLimit: number;
|
|
7599
8734
|
reason: "new_account";
|
|
8735
|
+
remaining: number;
|
|
7600
8736
|
hourlyLimit: number;
|
|
7601
8737
|
estimatedCompletionAt: string;
|
|
7602
8738
|
} | null | undefined;
|
|
@@ -7723,8 +8859,8 @@ declare const routes$4: {
|
|
|
7723
8859
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
7724
8860
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
7725
8861
|
}, "strip", zod.ZodTypeAny, {
|
|
7726
|
-
createdAt: string | null;
|
|
7727
8862
|
updatedAt: string | null;
|
|
8863
|
+
createdAt: string | null;
|
|
7728
8864
|
content: {
|
|
7729
8865
|
style: Record<string, any>;
|
|
7730
8866
|
meta: Record<string, any>;
|
|
@@ -7750,8 +8886,8 @@ declare const routes$4: {
|
|
|
7750
8886
|
contentScanVerdict?: string | null | undefined;
|
|
7751
8887
|
hasUnpublishedChanges?: boolean | undefined;
|
|
7752
8888
|
}, {
|
|
7753
|
-
createdAt: string | null;
|
|
7754
8889
|
updatedAt: string | null;
|
|
8890
|
+
createdAt: string | null;
|
|
7755
8891
|
content: {
|
|
7756
8892
|
style: Record<string, any>;
|
|
7757
8893
|
meta: Record<string, any>;
|
|
@@ -7785,23 +8921,23 @@ declare const routes$4: {
|
|
|
7785
8921
|
remaining: zod.ZodNumber;
|
|
7786
8922
|
estimatedCompletionAt: zod.ZodString;
|
|
7787
8923
|
}, "strip", zod.ZodTypeAny, {
|
|
7788
|
-
remaining: number;
|
|
7789
8924
|
dailyLimit: number;
|
|
7790
8925
|
reason: "new_account";
|
|
8926
|
+
remaining: number;
|
|
7791
8927
|
hourlyLimit: number;
|
|
7792
8928
|
estimatedCompletionAt: string;
|
|
7793
8929
|
}, {
|
|
7794
|
-
remaining: number;
|
|
7795
8930
|
dailyLimit: number;
|
|
7796
8931
|
reason: "new_account";
|
|
8932
|
+
remaining: number;
|
|
7797
8933
|
hourlyLimit: number;
|
|
7798
8934
|
estimatedCompletionAt: string;
|
|
7799
8935
|
}>>>;
|
|
7800
8936
|
}, "strip", zod.ZodTypeAny, {
|
|
7801
8937
|
type: string;
|
|
7802
8938
|
status: string;
|
|
7803
|
-
createdAt: string | null;
|
|
7804
8939
|
updatedAt: string | null;
|
|
8940
|
+
createdAt: string | null;
|
|
7805
8941
|
deliverySource: {
|
|
7806
8942
|
type: "organization";
|
|
7807
8943
|
} | {
|
|
@@ -7814,8 +8950,8 @@ declare const routes$4: {
|
|
|
7814
8950
|
entrants: string[];
|
|
7815
8951
|
viewInBrowser: boolean;
|
|
7816
8952
|
emails: {
|
|
7817
|
-
createdAt: string | null;
|
|
7818
8953
|
updatedAt: string | null;
|
|
8954
|
+
createdAt: string | null;
|
|
7819
8955
|
content: {
|
|
7820
8956
|
style: Record<string, any>;
|
|
7821
8957
|
meta: Record<string, any>;
|
|
@@ -7853,17 +8989,17 @@ declare const routes$4: {
|
|
|
7853
8989
|
report?: any;
|
|
7854
8990
|
archivedAt?: string | null | undefined;
|
|
7855
8991
|
pacing?: {
|
|
7856
|
-
remaining: number;
|
|
7857
8992
|
dailyLimit: number;
|
|
7858
8993
|
reason: "new_account";
|
|
8994
|
+
remaining: number;
|
|
7859
8995
|
hourlyLimit: number;
|
|
7860
8996
|
estimatedCompletionAt: string;
|
|
7861
8997
|
} | null | undefined;
|
|
7862
8998
|
}, {
|
|
7863
8999
|
type: string;
|
|
7864
9000
|
status: string;
|
|
7865
|
-
createdAt: string | null;
|
|
7866
9001
|
updatedAt: string | null;
|
|
9002
|
+
createdAt: string | null;
|
|
7867
9003
|
deliverySource: {
|
|
7868
9004
|
type: "organization";
|
|
7869
9005
|
} | {
|
|
@@ -7876,8 +9012,8 @@ declare const routes$4: {
|
|
|
7876
9012
|
entrants: string[];
|
|
7877
9013
|
viewInBrowser: boolean;
|
|
7878
9014
|
emails: {
|
|
7879
|
-
createdAt: string | null;
|
|
7880
9015
|
updatedAt: string | null;
|
|
9016
|
+
createdAt: string | null;
|
|
7881
9017
|
content: {
|
|
7882
9018
|
style: Record<string, any>;
|
|
7883
9019
|
meta: Record<string, any>;
|
|
@@ -7915,9 +9051,9 @@ declare const routes$4: {
|
|
|
7915
9051
|
report?: any;
|
|
7916
9052
|
archivedAt?: string | null | undefined;
|
|
7917
9053
|
pacing?: {
|
|
7918
|
-
remaining: number;
|
|
7919
9054
|
dailyLimit: number;
|
|
7920
9055
|
reason: "new_account";
|
|
9056
|
+
remaining: number;
|
|
7921
9057
|
hourlyLimit: number;
|
|
7922
9058
|
estimatedCompletionAt: string;
|
|
7923
9059
|
} | null | undefined;
|
|
@@ -8043,8 +9179,8 @@ declare const routes$4: {
|
|
|
8043
9179
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
8044
9180
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
8045
9181
|
}, "strip", zod.ZodTypeAny, {
|
|
8046
|
-
createdAt: string | null;
|
|
8047
9182
|
updatedAt: string | null;
|
|
9183
|
+
createdAt: string | null;
|
|
8048
9184
|
content: {
|
|
8049
9185
|
style: Record<string, any>;
|
|
8050
9186
|
meta: Record<string, any>;
|
|
@@ -8070,8 +9206,8 @@ declare const routes$4: {
|
|
|
8070
9206
|
contentScanVerdict?: string | null | undefined;
|
|
8071
9207
|
hasUnpublishedChanges?: boolean | undefined;
|
|
8072
9208
|
}, {
|
|
8073
|
-
createdAt: string | null;
|
|
8074
9209
|
updatedAt: string | null;
|
|
9210
|
+
createdAt: string | null;
|
|
8075
9211
|
content: {
|
|
8076
9212
|
style: Record<string, any>;
|
|
8077
9213
|
meta: Record<string, any>;
|
|
@@ -8105,23 +9241,23 @@ declare const routes$4: {
|
|
|
8105
9241
|
remaining: zod.ZodNumber;
|
|
8106
9242
|
estimatedCompletionAt: zod.ZodString;
|
|
8107
9243
|
}, "strip", zod.ZodTypeAny, {
|
|
8108
|
-
remaining: number;
|
|
8109
9244
|
dailyLimit: number;
|
|
8110
9245
|
reason: "new_account";
|
|
9246
|
+
remaining: number;
|
|
8111
9247
|
hourlyLimit: number;
|
|
8112
9248
|
estimatedCompletionAt: string;
|
|
8113
9249
|
}, {
|
|
8114
|
-
remaining: number;
|
|
8115
9250
|
dailyLimit: number;
|
|
8116
9251
|
reason: "new_account";
|
|
9252
|
+
remaining: number;
|
|
8117
9253
|
hourlyLimit: number;
|
|
8118
9254
|
estimatedCompletionAt: string;
|
|
8119
9255
|
}>>>;
|
|
8120
9256
|
}, "strip", zod.ZodTypeAny, {
|
|
8121
9257
|
type: string;
|
|
8122
9258
|
status: string;
|
|
8123
|
-
createdAt: string | null;
|
|
8124
9259
|
updatedAt: string | null;
|
|
9260
|
+
createdAt: string | null;
|
|
8125
9261
|
deliverySource: {
|
|
8126
9262
|
type: "organization";
|
|
8127
9263
|
} | {
|
|
@@ -8134,8 +9270,8 @@ declare const routes$4: {
|
|
|
8134
9270
|
entrants: string[];
|
|
8135
9271
|
viewInBrowser: boolean;
|
|
8136
9272
|
emails: {
|
|
8137
|
-
createdAt: string | null;
|
|
8138
9273
|
updatedAt: string | null;
|
|
9274
|
+
createdAt: string | null;
|
|
8139
9275
|
content: {
|
|
8140
9276
|
style: Record<string, any>;
|
|
8141
9277
|
meta: Record<string, any>;
|
|
@@ -8173,17 +9309,17 @@ declare const routes$4: {
|
|
|
8173
9309
|
report?: any;
|
|
8174
9310
|
archivedAt?: string | null | undefined;
|
|
8175
9311
|
pacing?: {
|
|
8176
|
-
remaining: number;
|
|
8177
9312
|
dailyLimit: number;
|
|
8178
9313
|
reason: "new_account";
|
|
9314
|
+
remaining: number;
|
|
8179
9315
|
hourlyLimit: number;
|
|
8180
9316
|
estimatedCompletionAt: string;
|
|
8181
9317
|
} | null | undefined;
|
|
8182
9318
|
}, {
|
|
8183
9319
|
type: string;
|
|
8184
9320
|
status: string;
|
|
8185
|
-
createdAt: string | null;
|
|
8186
9321
|
updatedAt: string | null;
|
|
9322
|
+
createdAt: string | null;
|
|
8187
9323
|
deliverySource: {
|
|
8188
9324
|
type: "organization";
|
|
8189
9325
|
} | {
|
|
@@ -8196,8 +9332,8 @@ declare const routes$4: {
|
|
|
8196
9332
|
entrants: string[];
|
|
8197
9333
|
viewInBrowser: boolean;
|
|
8198
9334
|
emails: {
|
|
8199
|
-
createdAt: string | null;
|
|
8200
9335
|
updatedAt: string | null;
|
|
9336
|
+
createdAt: string | null;
|
|
8201
9337
|
content: {
|
|
8202
9338
|
style: Record<string, any>;
|
|
8203
9339
|
meta: Record<string, any>;
|
|
@@ -8235,9 +9371,9 @@ declare const routes$4: {
|
|
|
8235
9371
|
report?: any;
|
|
8236
9372
|
archivedAt?: string | null | undefined;
|
|
8237
9373
|
pacing?: {
|
|
8238
|
-
remaining: number;
|
|
8239
9374
|
dailyLimit: number;
|
|
8240
9375
|
reason: "new_account";
|
|
9376
|
+
remaining: number;
|
|
8241
9377
|
hourlyLimit: number;
|
|
8242
9378
|
estimatedCompletionAt: string;
|
|
8243
9379
|
} | null | undefined;
|
|
@@ -9734,8 +10870,8 @@ declare const routes$4: {
|
|
|
9734
10870
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
9735
10871
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
9736
10872
|
}, "strip", zod.ZodTypeAny, {
|
|
9737
|
-
createdAt: string | null;
|
|
9738
10873
|
updatedAt: string | null;
|
|
10874
|
+
createdAt: string | null;
|
|
9739
10875
|
content: {
|
|
9740
10876
|
style: Record<string, any>;
|
|
9741
10877
|
meta: Record<string, any>;
|
|
@@ -9761,8 +10897,8 @@ declare const routes$4: {
|
|
|
9761
10897
|
contentScanVerdict?: string | null | undefined;
|
|
9762
10898
|
hasUnpublishedChanges?: boolean | undefined;
|
|
9763
10899
|
}, {
|
|
9764
|
-
createdAt: string | null;
|
|
9765
10900
|
updatedAt: string | null;
|
|
10901
|
+
createdAt: string | null;
|
|
9766
10902
|
content: {
|
|
9767
10903
|
style: Record<string, any>;
|
|
9768
10904
|
meta: Record<string, any>;
|
|
@@ -9796,23 +10932,23 @@ declare const routes$4: {
|
|
|
9796
10932
|
remaining: zod.ZodNumber;
|
|
9797
10933
|
estimatedCompletionAt: zod.ZodString;
|
|
9798
10934
|
}, "strip", zod.ZodTypeAny, {
|
|
9799
|
-
remaining: number;
|
|
9800
10935
|
dailyLimit: number;
|
|
9801
10936
|
reason: "new_account";
|
|
10937
|
+
remaining: number;
|
|
9802
10938
|
hourlyLimit: number;
|
|
9803
10939
|
estimatedCompletionAt: string;
|
|
9804
10940
|
}, {
|
|
9805
|
-
remaining: number;
|
|
9806
10941
|
dailyLimit: number;
|
|
9807
10942
|
reason: "new_account";
|
|
10943
|
+
remaining: number;
|
|
9808
10944
|
hourlyLimit: number;
|
|
9809
10945
|
estimatedCompletionAt: string;
|
|
9810
10946
|
}>>>;
|
|
9811
10947
|
}, "strip", zod.ZodTypeAny, {
|
|
9812
10948
|
type: string;
|
|
9813
10949
|
status: string;
|
|
9814
|
-
createdAt: string | null;
|
|
9815
10950
|
updatedAt: string | null;
|
|
10951
|
+
createdAt: string | null;
|
|
9816
10952
|
deliverySource: {
|
|
9817
10953
|
type: "organization";
|
|
9818
10954
|
} | {
|
|
@@ -9825,8 +10961,8 @@ declare const routes$4: {
|
|
|
9825
10961
|
entrants: string[];
|
|
9826
10962
|
viewInBrowser: boolean;
|
|
9827
10963
|
emails: {
|
|
9828
|
-
createdAt: string | null;
|
|
9829
10964
|
updatedAt: string | null;
|
|
10965
|
+
createdAt: string | null;
|
|
9830
10966
|
content: {
|
|
9831
10967
|
style: Record<string, any>;
|
|
9832
10968
|
meta: Record<string, any>;
|
|
@@ -9864,17 +11000,17 @@ declare const routes$4: {
|
|
|
9864
11000
|
report?: any;
|
|
9865
11001
|
archivedAt?: string | null | undefined;
|
|
9866
11002
|
pacing?: {
|
|
9867
|
-
remaining: number;
|
|
9868
11003
|
dailyLimit: number;
|
|
9869
11004
|
reason: "new_account";
|
|
11005
|
+
remaining: number;
|
|
9870
11006
|
hourlyLimit: number;
|
|
9871
11007
|
estimatedCompletionAt: string;
|
|
9872
11008
|
} | null | undefined;
|
|
9873
11009
|
}, {
|
|
9874
11010
|
type: string;
|
|
9875
11011
|
status: string;
|
|
9876
|
-
createdAt: string | null;
|
|
9877
11012
|
updatedAt: string | null;
|
|
11013
|
+
createdAt: string | null;
|
|
9878
11014
|
deliverySource: {
|
|
9879
11015
|
type: "organization";
|
|
9880
11016
|
} | {
|
|
@@ -9887,8 +11023,8 @@ declare const routes$4: {
|
|
|
9887
11023
|
entrants: string[];
|
|
9888
11024
|
viewInBrowser: boolean;
|
|
9889
11025
|
emails: {
|
|
9890
|
-
createdAt: string | null;
|
|
9891
11026
|
updatedAt: string | null;
|
|
11027
|
+
createdAt: string | null;
|
|
9892
11028
|
content: {
|
|
9893
11029
|
style: Record<string, any>;
|
|
9894
11030
|
meta: Record<string, any>;
|
|
@@ -9926,9 +11062,9 @@ declare const routes$4: {
|
|
|
9926
11062
|
report?: any;
|
|
9927
11063
|
archivedAt?: string | null | undefined;
|
|
9928
11064
|
pacing?: {
|
|
9929
|
-
remaining: number;
|
|
9930
11065
|
dailyLimit: number;
|
|
9931
11066
|
reason: "new_account";
|
|
11067
|
+
remaining: number;
|
|
9932
11068
|
hourlyLimit: number;
|
|
9933
11069
|
estimatedCompletionAt: string;
|
|
9934
11070
|
} | null | undefined;
|
|
@@ -9968,11 +11104,11 @@ declare const routes$4: {
|
|
|
9968
11104
|
emailIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
|
|
9969
11105
|
scope: zod.ZodOptional<zod.ZodEnum<["in_flight", "new_entrants"]>>;
|
|
9970
11106
|
}, "strip", zod.ZodTypeAny, {
|
|
9971
|
-
emailIds?: string[] | undefined;
|
|
9972
11107
|
scope?: "in_flight" | "new_entrants" | undefined;
|
|
9973
|
-
}, {
|
|
9974
11108
|
emailIds?: string[] | undefined;
|
|
11109
|
+
}, {
|
|
9975
11110
|
scope?: "in_flight" | "new_entrants" | undefined;
|
|
11111
|
+
emailIds?: string[] | undefined;
|
|
9976
11112
|
}>;
|
|
9977
11113
|
responses: {
|
|
9978
11114
|
200: zod.ZodObject<{
|
|
@@ -10071,8 +11207,8 @@ declare const routes$4: {
|
|
|
10071
11207
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
10072
11208
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
10073
11209
|
}, "strip", zod.ZodTypeAny, {
|
|
10074
|
-
createdAt: string | null;
|
|
10075
11210
|
updatedAt: string | null;
|
|
11211
|
+
createdAt: string | null;
|
|
10076
11212
|
content: {
|
|
10077
11213
|
style: Record<string, any>;
|
|
10078
11214
|
meta: Record<string, any>;
|
|
@@ -10098,8 +11234,8 @@ declare const routes$4: {
|
|
|
10098
11234
|
contentScanVerdict?: string | null | undefined;
|
|
10099
11235
|
hasUnpublishedChanges?: boolean | undefined;
|
|
10100
11236
|
}, {
|
|
10101
|
-
createdAt: string | null;
|
|
10102
11237
|
updatedAt: string | null;
|
|
11238
|
+
createdAt: string | null;
|
|
10103
11239
|
content: {
|
|
10104
11240
|
style: Record<string, any>;
|
|
10105
11241
|
meta: Record<string, any>;
|
|
@@ -10133,23 +11269,23 @@ declare const routes$4: {
|
|
|
10133
11269
|
remaining: zod.ZodNumber;
|
|
10134
11270
|
estimatedCompletionAt: zod.ZodString;
|
|
10135
11271
|
}, "strip", zod.ZodTypeAny, {
|
|
10136
|
-
remaining: number;
|
|
10137
11272
|
dailyLimit: number;
|
|
10138
11273
|
reason: "new_account";
|
|
11274
|
+
remaining: number;
|
|
10139
11275
|
hourlyLimit: number;
|
|
10140
11276
|
estimatedCompletionAt: string;
|
|
10141
11277
|
}, {
|
|
10142
|
-
remaining: number;
|
|
10143
11278
|
dailyLimit: number;
|
|
10144
11279
|
reason: "new_account";
|
|
11280
|
+
remaining: number;
|
|
10145
11281
|
hourlyLimit: number;
|
|
10146
11282
|
estimatedCompletionAt: string;
|
|
10147
11283
|
}>>>;
|
|
10148
11284
|
}, "strip", zod.ZodTypeAny, {
|
|
10149
11285
|
type: string;
|
|
10150
11286
|
status: string;
|
|
10151
|
-
createdAt: string | null;
|
|
10152
11287
|
updatedAt: string | null;
|
|
11288
|
+
createdAt: string | null;
|
|
10153
11289
|
deliverySource: {
|
|
10154
11290
|
type: "organization";
|
|
10155
11291
|
} | {
|
|
@@ -10162,8 +11298,8 @@ declare const routes$4: {
|
|
|
10162
11298
|
entrants: string[];
|
|
10163
11299
|
viewInBrowser: boolean;
|
|
10164
11300
|
emails: {
|
|
10165
|
-
createdAt: string | null;
|
|
10166
11301
|
updatedAt: string | null;
|
|
11302
|
+
createdAt: string | null;
|
|
10167
11303
|
content: {
|
|
10168
11304
|
style: Record<string, any>;
|
|
10169
11305
|
meta: Record<string, any>;
|
|
@@ -10201,17 +11337,17 @@ declare const routes$4: {
|
|
|
10201
11337
|
report?: any;
|
|
10202
11338
|
archivedAt?: string | null | undefined;
|
|
10203
11339
|
pacing?: {
|
|
10204
|
-
remaining: number;
|
|
10205
11340
|
dailyLimit: number;
|
|
10206
11341
|
reason: "new_account";
|
|
11342
|
+
remaining: number;
|
|
10207
11343
|
hourlyLimit: number;
|
|
10208
11344
|
estimatedCompletionAt: string;
|
|
10209
11345
|
} | null | undefined;
|
|
10210
11346
|
}, {
|
|
10211
11347
|
type: string;
|
|
10212
11348
|
status: string;
|
|
10213
|
-
createdAt: string | null;
|
|
10214
11349
|
updatedAt: string | null;
|
|
11350
|
+
createdAt: string | null;
|
|
10215
11351
|
deliverySource: {
|
|
10216
11352
|
type: "organization";
|
|
10217
11353
|
} | {
|
|
@@ -10224,8 +11360,8 @@ declare const routes$4: {
|
|
|
10224
11360
|
entrants: string[];
|
|
10225
11361
|
viewInBrowser: boolean;
|
|
10226
11362
|
emails: {
|
|
10227
|
-
createdAt: string | null;
|
|
10228
11363
|
updatedAt: string | null;
|
|
11364
|
+
createdAt: string | null;
|
|
10229
11365
|
content: {
|
|
10230
11366
|
style: Record<string, any>;
|
|
10231
11367
|
meta: Record<string, any>;
|
|
@@ -10263,9 +11399,9 @@ declare const routes$4: {
|
|
|
10263
11399
|
report?: any;
|
|
10264
11400
|
archivedAt?: string | null | undefined;
|
|
10265
11401
|
pacing?: {
|
|
10266
|
-
remaining: number;
|
|
10267
11402
|
dailyLimit: number;
|
|
10268
11403
|
reason: "new_account";
|
|
11404
|
+
remaining: number;
|
|
10269
11405
|
hourlyLimit: number;
|
|
10270
11406
|
estimatedCompletionAt: string;
|
|
10271
11407
|
} | null | undefined;
|
|
@@ -10405,8 +11541,8 @@ declare const routes$4: {
|
|
|
10405
11541
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
10406
11542
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
10407
11543
|
}, "strip", zod.ZodTypeAny, {
|
|
10408
|
-
createdAt: string | null;
|
|
10409
11544
|
updatedAt: string | null;
|
|
11545
|
+
createdAt: string | null;
|
|
10410
11546
|
content: {
|
|
10411
11547
|
style: Record<string, any>;
|
|
10412
11548
|
meta: Record<string, any>;
|
|
@@ -10432,8 +11568,8 @@ declare const routes$4: {
|
|
|
10432
11568
|
contentScanVerdict?: string | null | undefined;
|
|
10433
11569
|
hasUnpublishedChanges?: boolean | undefined;
|
|
10434
11570
|
}, {
|
|
10435
|
-
createdAt: string | null;
|
|
10436
11571
|
updatedAt: string | null;
|
|
11572
|
+
createdAt: string | null;
|
|
10437
11573
|
content: {
|
|
10438
11574
|
style: Record<string, any>;
|
|
10439
11575
|
meta: Record<string, any>;
|
|
@@ -10467,23 +11603,23 @@ declare const routes$4: {
|
|
|
10467
11603
|
remaining: zod.ZodNumber;
|
|
10468
11604
|
estimatedCompletionAt: zod.ZodString;
|
|
10469
11605
|
}, "strip", zod.ZodTypeAny, {
|
|
10470
|
-
remaining: number;
|
|
10471
11606
|
dailyLimit: number;
|
|
10472
11607
|
reason: "new_account";
|
|
11608
|
+
remaining: number;
|
|
10473
11609
|
hourlyLimit: number;
|
|
10474
11610
|
estimatedCompletionAt: string;
|
|
10475
11611
|
}, {
|
|
10476
|
-
remaining: number;
|
|
10477
11612
|
dailyLimit: number;
|
|
10478
11613
|
reason: "new_account";
|
|
11614
|
+
remaining: number;
|
|
10479
11615
|
hourlyLimit: number;
|
|
10480
11616
|
estimatedCompletionAt: string;
|
|
10481
11617
|
}>>>;
|
|
10482
11618
|
}, "strip", zod.ZodTypeAny, {
|
|
10483
11619
|
type: string;
|
|
10484
11620
|
status: string;
|
|
10485
|
-
createdAt: string | null;
|
|
10486
11621
|
updatedAt: string | null;
|
|
11622
|
+
createdAt: string | null;
|
|
10487
11623
|
deliverySource: {
|
|
10488
11624
|
type: "organization";
|
|
10489
11625
|
} | {
|
|
@@ -10496,8 +11632,8 @@ declare const routes$4: {
|
|
|
10496
11632
|
entrants: string[];
|
|
10497
11633
|
viewInBrowser: boolean;
|
|
10498
11634
|
emails: {
|
|
10499
|
-
createdAt: string | null;
|
|
10500
11635
|
updatedAt: string | null;
|
|
11636
|
+
createdAt: string | null;
|
|
10501
11637
|
content: {
|
|
10502
11638
|
style: Record<string, any>;
|
|
10503
11639
|
meta: Record<string, any>;
|
|
@@ -10535,17 +11671,17 @@ declare const routes$4: {
|
|
|
10535
11671
|
report?: any;
|
|
10536
11672
|
archivedAt?: string | null | undefined;
|
|
10537
11673
|
pacing?: {
|
|
10538
|
-
remaining: number;
|
|
10539
11674
|
dailyLimit: number;
|
|
10540
11675
|
reason: "new_account";
|
|
11676
|
+
remaining: number;
|
|
10541
11677
|
hourlyLimit: number;
|
|
10542
11678
|
estimatedCompletionAt: string;
|
|
10543
11679
|
} | null | undefined;
|
|
10544
11680
|
}, {
|
|
10545
11681
|
type: string;
|
|
10546
11682
|
status: string;
|
|
10547
|
-
createdAt: string | null;
|
|
10548
11683
|
updatedAt: string | null;
|
|
11684
|
+
createdAt: string | null;
|
|
10549
11685
|
deliverySource: {
|
|
10550
11686
|
type: "organization";
|
|
10551
11687
|
} | {
|
|
@@ -10558,8 +11694,8 @@ declare const routes$4: {
|
|
|
10558
11694
|
entrants: string[];
|
|
10559
11695
|
viewInBrowser: boolean;
|
|
10560
11696
|
emails: {
|
|
10561
|
-
createdAt: string | null;
|
|
10562
11697
|
updatedAt: string | null;
|
|
11698
|
+
createdAt: string | null;
|
|
10563
11699
|
content: {
|
|
10564
11700
|
style: Record<string, any>;
|
|
10565
11701
|
meta: Record<string, any>;
|
|
@@ -10597,9 +11733,9 @@ declare const routes$4: {
|
|
|
10597
11733
|
report?: any;
|
|
10598
11734
|
archivedAt?: string | null | undefined;
|
|
10599
11735
|
pacing?: {
|
|
10600
|
-
remaining: number;
|
|
10601
11736
|
dailyLimit: number;
|
|
10602
11737
|
reason: "new_account";
|
|
11738
|
+
remaining: number;
|
|
10603
11739
|
hourlyLimit: number;
|
|
10604
11740
|
estimatedCompletionAt: string;
|
|
10605
11741
|
} | null | undefined;
|
|
@@ -10802,8 +11938,8 @@ declare const routes$4: {
|
|
|
10802
11938
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
10803
11939
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
10804
11940
|
}, "strip", zod.ZodTypeAny, {
|
|
10805
|
-
createdAt: string | null;
|
|
10806
11941
|
updatedAt: string | null;
|
|
11942
|
+
createdAt: string | null;
|
|
10807
11943
|
content: {
|
|
10808
11944
|
style: Record<string, any>;
|
|
10809
11945
|
meta: Record<string, any>;
|
|
@@ -10829,8 +11965,8 @@ declare const routes$4: {
|
|
|
10829
11965
|
contentScanVerdict?: string | null | undefined;
|
|
10830
11966
|
hasUnpublishedChanges?: boolean | undefined;
|
|
10831
11967
|
}, {
|
|
10832
|
-
createdAt: string | null;
|
|
10833
11968
|
updatedAt: string | null;
|
|
11969
|
+
createdAt: string | null;
|
|
10834
11970
|
content: {
|
|
10835
11971
|
style: Record<string, any>;
|
|
10836
11972
|
meta: Record<string, any>;
|
|
@@ -10864,23 +12000,23 @@ declare const routes$4: {
|
|
|
10864
12000
|
remaining: zod.ZodNumber;
|
|
10865
12001
|
estimatedCompletionAt: zod.ZodString;
|
|
10866
12002
|
}, "strip", zod.ZodTypeAny, {
|
|
10867
|
-
remaining: number;
|
|
10868
12003
|
dailyLimit: number;
|
|
10869
12004
|
reason: "new_account";
|
|
12005
|
+
remaining: number;
|
|
10870
12006
|
hourlyLimit: number;
|
|
10871
12007
|
estimatedCompletionAt: string;
|
|
10872
12008
|
}, {
|
|
10873
|
-
remaining: number;
|
|
10874
12009
|
dailyLimit: number;
|
|
10875
12010
|
reason: "new_account";
|
|
12011
|
+
remaining: number;
|
|
10876
12012
|
hourlyLimit: number;
|
|
10877
12013
|
estimatedCompletionAt: string;
|
|
10878
12014
|
}>>>;
|
|
10879
12015
|
}, "strip", zod.ZodTypeAny, {
|
|
10880
12016
|
type: string;
|
|
10881
12017
|
status: string;
|
|
10882
|
-
createdAt: string | null;
|
|
10883
12018
|
updatedAt: string | null;
|
|
12019
|
+
createdAt: string | null;
|
|
10884
12020
|
deliverySource: {
|
|
10885
12021
|
type: "organization";
|
|
10886
12022
|
} | {
|
|
@@ -10893,8 +12029,8 @@ declare const routes$4: {
|
|
|
10893
12029
|
entrants: string[];
|
|
10894
12030
|
viewInBrowser: boolean;
|
|
10895
12031
|
emails: {
|
|
10896
|
-
createdAt: string | null;
|
|
10897
12032
|
updatedAt: string | null;
|
|
12033
|
+
createdAt: string | null;
|
|
10898
12034
|
content: {
|
|
10899
12035
|
style: Record<string, any>;
|
|
10900
12036
|
meta: Record<string, any>;
|
|
@@ -10932,17 +12068,17 @@ declare const routes$4: {
|
|
|
10932
12068
|
report?: any;
|
|
10933
12069
|
archivedAt?: string | null | undefined;
|
|
10934
12070
|
pacing?: {
|
|
10935
|
-
remaining: number;
|
|
10936
12071
|
dailyLimit: number;
|
|
10937
12072
|
reason: "new_account";
|
|
12073
|
+
remaining: number;
|
|
10938
12074
|
hourlyLimit: number;
|
|
10939
12075
|
estimatedCompletionAt: string;
|
|
10940
12076
|
} | null | undefined;
|
|
10941
12077
|
}, {
|
|
10942
12078
|
type: string;
|
|
10943
12079
|
status: string;
|
|
10944
|
-
createdAt: string | null;
|
|
10945
12080
|
updatedAt: string | null;
|
|
12081
|
+
createdAt: string | null;
|
|
10946
12082
|
deliverySource: {
|
|
10947
12083
|
type: "organization";
|
|
10948
12084
|
} | {
|
|
@@ -10955,8 +12091,8 @@ declare const routes$4: {
|
|
|
10955
12091
|
entrants: string[];
|
|
10956
12092
|
viewInBrowser: boolean;
|
|
10957
12093
|
emails: {
|
|
10958
|
-
createdAt: string | null;
|
|
10959
12094
|
updatedAt: string | null;
|
|
12095
|
+
createdAt: string | null;
|
|
10960
12096
|
content: {
|
|
10961
12097
|
style: Record<string, any>;
|
|
10962
12098
|
meta: Record<string, any>;
|
|
@@ -10994,9 +12130,9 @@ declare const routes$4: {
|
|
|
10994
12130
|
report?: any;
|
|
10995
12131
|
archivedAt?: string | null | undefined;
|
|
10996
12132
|
pacing?: {
|
|
10997
|
-
remaining: number;
|
|
10998
12133
|
dailyLimit: number;
|
|
10999
12134
|
reason: "new_account";
|
|
12135
|
+
remaining: number;
|
|
11000
12136
|
hourlyLimit: number;
|
|
11001
12137
|
estimatedCompletionAt: string;
|
|
11002
12138
|
} | null | undefined;
|
|
@@ -11192,8 +12328,8 @@ declare const routes$4: {
|
|
|
11192
12328
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
11193
12329
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
11194
12330
|
}, "strip", zod.ZodTypeAny, {
|
|
11195
|
-
createdAt: string | null;
|
|
11196
12331
|
updatedAt: string | null;
|
|
12332
|
+
createdAt: string | null;
|
|
11197
12333
|
content: {
|
|
11198
12334
|
style: Record<string, any>;
|
|
11199
12335
|
meta: Record<string, any>;
|
|
@@ -11219,8 +12355,8 @@ declare const routes$4: {
|
|
|
11219
12355
|
contentScanVerdict?: string | null | undefined;
|
|
11220
12356
|
hasUnpublishedChanges?: boolean | undefined;
|
|
11221
12357
|
}, {
|
|
11222
|
-
createdAt: string | null;
|
|
11223
12358
|
updatedAt: string | null;
|
|
12359
|
+
createdAt: string | null;
|
|
11224
12360
|
content: {
|
|
11225
12361
|
style: Record<string, any>;
|
|
11226
12362
|
meta: Record<string, any>;
|
|
@@ -11254,23 +12390,23 @@ declare const routes$4: {
|
|
|
11254
12390
|
remaining: zod.ZodNumber;
|
|
11255
12391
|
estimatedCompletionAt: zod.ZodString;
|
|
11256
12392
|
}, "strip", zod.ZodTypeAny, {
|
|
11257
|
-
remaining: number;
|
|
11258
12393
|
dailyLimit: number;
|
|
11259
12394
|
reason: "new_account";
|
|
12395
|
+
remaining: number;
|
|
11260
12396
|
hourlyLimit: number;
|
|
11261
12397
|
estimatedCompletionAt: string;
|
|
11262
12398
|
}, {
|
|
11263
|
-
remaining: number;
|
|
11264
12399
|
dailyLimit: number;
|
|
11265
12400
|
reason: "new_account";
|
|
12401
|
+
remaining: number;
|
|
11266
12402
|
hourlyLimit: number;
|
|
11267
12403
|
estimatedCompletionAt: string;
|
|
11268
12404
|
}>>>;
|
|
11269
12405
|
}, "strip", zod.ZodTypeAny, {
|
|
11270
12406
|
type: string;
|
|
11271
12407
|
status: string;
|
|
11272
|
-
createdAt: string | null;
|
|
11273
12408
|
updatedAt: string | null;
|
|
12409
|
+
createdAt: string | null;
|
|
11274
12410
|
deliverySource: {
|
|
11275
12411
|
type: "organization";
|
|
11276
12412
|
} | {
|
|
@@ -11283,8 +12419,8 @@ declare const routes$4: {
|
|
|
11283
12419
|
entrants: string[];
|
|
11284
12420
|
viewInBrowser: boolean;
|
|
11285
12421
|
emails: {
|
|
11286
|
-
createdAt: string | null;
|
|
11287
12422
|
updatedAt: string | null;
|
|
12423
|
+
createdAt: string | null;
|
|
11288
12424
|
content: {
|
|
11289
12425
|
style: Record<string, any>;
|
|
11290
12426
|
meta: Record<string, any>;
|
|
@@ -11322,17 +12458,17 @@ declare const routes$4: {
|
|
|
11322
12458
|
report?: any;
|
|
11323
12459
|
archivedAt?: string | null | undefined;
|
|
11324
12460
|
pacing?: {
|
|
11325
|
-
remaining: number;
|
|
11326
12461
|
dailyLimit: number;
|
|
11327
12462
|
reason: "new_account";
|
|
12463
|
+
remaining: number;
|
|
11328
12464
|
hourlyLimit: number;
|
|
11329
12465
|
estimatedCompletionAt: string;
|
|
11330
12466
|
} | null | undefined;
|
|
11331
12467
|
}, {
|
|
11332
12468
|
type: string;
|
|
11333
12469
|
status: string;
|
|
11334
|
-
createdAt: string | null;
|
|
11335
12470
|
updatedAt: string | null;
|
|
12471
|
+
createdAt: string | null;
|
|
11336
12472
|
deliverySource: {
|
|
11337
12473
|
type: "organization";
|
|
11338
12474
|
} | {
|
|
@@ -11345,8 +12481,8 @@ declare const routes$4: {
|
|
|
11345
12481
|
entrants: string[];
|
|
11346
12482
|
viewInBrowser: boolean;
|
|
11347
12483
|
emails: {
|
|
11348
|
-
createdAt: string | null;
|
|
11349
12484
|
updatedAt: string | null;
|
|
12485
|
+
createdAt: string | null;
|
|
11350
12486
|
content: {
|
|
11351
12487
|
style: Record<string, any>;
|
|
11352
12488
|
meta: Record<string, any>;
|
|
@@ -11384,9 +12520,9 @@ declare const routes$4: {
|
|
|
11384
12520
|
report?: any;
|
|
11385
12521
|
archivedAt?: string | null | undefined;
|
|
11386
12522
|
pacing?: {
|
|
11387
|
-
remaining: number;
|
|
11388
12523
|
dailyLimit: number;
|
|
11389
12524
|
reason: "new_account";
|
|
12525
|
+
remaining: number;
|
|
11390
12526
|
hourlyLimit: number;
|
|
11391
12527
|
estimatedCompletionAt: string;
|
|
11392
12528
|
} | null | undefined;
|
|
@@ -11410,7 +12546,7 @@ declare const routes$4: {
|
|
|
11410
12546
|
};
|
|
11411
12547
|
start: {
|
|
11412
12548
|
summary: "Start a broadcast or activate a sequence";
|
|
11413
|
-
description: "Requires a
|
|
12549
|
+
description: "Requires a postal address in the team's general settings. On SendLit Cloud, a new organization's first broadcast to 1,000 or more contacts through its own ESP is reviewed once before it can start (400 `broadcast_held_for_review`); start it again once approved.";
|
|
11414
12550
|
metadata: {
|
|
11415
12551
|
tag: string;
|
|
11416
12552
|
};
|
|
@@ -11513,8 +12649,8 @@ declare const routes$4: {
|
|
|
11513
12649
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
11514
12650
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
11515
12651
|
}, "strip", zod.ZodTypeAny, {
|
|
11516
|
-
createdAt: string | null;
|
|
11517
12652
|
updatedAt: string | null;
|
|
12653
|
+
createdAt: string | null;
|
|
11518
12654
|
content: {
|
|
11519
12655
|
style: Record<string, any>;
|
|
11520
12656
|
meta: Record<string, any>;
|
|
@@ -11540,8 +12676,8 @@ declare const routes$4: {
|
|
|
11540
12676
|
contentScanVerdict?: string | null | undefined;
|
|
11541
12677
|
hasUnpublishedChanges?: boolean | undefined;
|
|
11542
12678
|
}, {
|
|
11543
|
-
createdAt: string | null;
|
|
11544
12679
|
updatedAt: string | null;
|
|
12680
|
+
createdAt: string | null;
|
|
11545
12681
|
content: {
|
|
11546
12682
|
style: Record<string, any>;
|
|
11547
12683
|
meta: Record<string, any>;
|
|
@@ -11575,23 +12711,23 @@ declare const routes$4: {
|
|
|
11575
12711
|
remaining: zod.ZodNumber;
|
|
11576
12712
|
estimatedCompletionAt: zod.ZodString;
|
|
11577
12713
|
}, "strip", zod.ZodTypeAny, {
|
|
11578
|
-
remaining: number;
|
|
11579
12714
|
dailyLimit: number;
|
|
11580
12715
|
reason: "new_account";
|
|
12716
|
+
remaining: number;
|
|
11581
12717
|
hourlyLimit: number;
|
|
11582
12718
|
estimatedCompletionAt: string;
|
|
11583
12719
|
}, {
|
|
11584
|
-
remaining: number;
|
|
11585
12720
|
dailyLimit: number;
|
|
11586
12721
|
reason: "new_account";
|
|
12722
|
+
remaining: number;
|
|
11587
12723
|
hourlyLimit: number;
|
|
11588
12724
|
estimatedCompletionAt: string;
|
|
11589
12725
|
}>>>;
|
|
11590
12726
|
}, "strip", zod.ZodTypeAny, {
|
|
11591
12727
|
type: string;
|
|
11592
12728
|
status: string;
|
|
11593
|
-
createdAt: string | null;
|
|
11594
12729
|
updatedAt: string | null;
|
|
12730
|
+
createdAt: string | null;
|
|
11595
12731
|
deliverySource: {
|
|
11596
12732
|
type: "organization";
|
|
11597
12733
|
} | {
|
|
@@ -11604,8 +12740,8 @@ declare const routes$4: {
|
|
|
11604
12740
|
entrants: string[];
|
|
11605
12741
|
viewInBrowser: boolean;
|
|
11606
12742
|
emails: {
|
|
11607
|
-
createdAt: string | null;
|
|
11608
12743
|
updatedAt: string | null;
|
|
12744
|
+
createdAt: string | null;
|
|
11609
12745
|
content: {
|
|
11610
12746
|
style: Record<string, any>;
|
|
11611
12747
|
meta: Record<string, any>;
|
|
@@ -11643,17 +12779,17 @@ declare const routes$4: {
|
|
|
11643
12779
|
report?: any;
|
|
11644
12780
|
archivedAt?: string | null | undefined;
|
|
11645
12781
|
pacing?: {
|
|
11646
|
-
remaining: number;
|
|
11647
12782
|
dailyLimit: number;
|
|
11648
12783
|
reason: "new_account";
|
|
12784
|
+
remaining: number;
|
|
11649
12785
|
hourlyLimit: number;
|
|
11650
12786
|
estimatedCompletionAt: string;
|
|
11651
12787
|
} | null | undefined;
|
|
11652
12788
|
}, {
|
|
11653
12789
|
type: string;
|
|
11654
12790
|
status: string;
|
|
11655
|
-
createdAt: string | null;
|
|
11656
12791
|
updatedAt: string | null;
|
|
12792
|
+
createdAt: string | null;
|
|
11657
12793
|
deliverySource: {
|
|
11658
12794
|
type: "organization";
|
|
11659
12795
|
} | {
|
|
@@ -11666,8 +12802,8 @@ declare const routes$4: {
|
|
|
11666
12802
|
entrants: string[];
|
|
11667
12803
|
viewInBrowser: boolean;
|
|
11668
12804
|
emails: {
|
|
11669
|
-
createdAt: string | null;
|
|
11670
12805
|
updatedAt: string | null;
|
|
12806
|
+
createdAt: string | null;
|
|
11671
12807
|
content: {
|
|
11672
12808
|
style: Record<string, any>;
|
|
11673
12809
|
meta: Record<string, any>;
|
|
@@ -11705,9 +12841,9 @@ declare const routes$4: {
|
|
|
11705
12841
|
report?: any;
|
|
11706
12842
|
archivedAt?: string | null | undefined;
|
|
11707
12843
|
pacing?: {
|
|
11708
|
-
remaining: number;
|
|
11709
12844
|
dailyLimit: number;
|
|
11710
12845
|
reason: "new_account";
|
|
12846
|
+
remaining: number;
|
|
11711
12847
|
hourlyLimit: number;
|
|
11712
12848
|
estimatedCompletionAt: string;
|
|
11713
12849
|
} | null | undefined;
|
|
@@ -11833,8 +12969,8 @@ declare const routes$4: {
|
|
|
11833
12969
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
11834
12970
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
11835
12971
|
}, "strip", zod.ZodTypeAny, {
|
|
11836
|
-
createdAt: string | null;
|
|
11837
12972
|
updatedAt: string | null;
|
|
12973
|
+
createdAt: string | null;
|
|
11838
12974
|
content: {
|
|
11839
12975
|
style: Record<string, any>;
|
|
11840
12976
|
meta: Record<string, any>;
|
|
@@ -11860,8 +12996,8 @@ declare const routes$4: {
|
|
|
11860
12996
|
contentScanVerdict?: string | null | undefined;
|
|
11861
12997
|
hasUnpublishedChanges?: boolean | undefined;
|
|
11862
12998
|
}, {
|
|
11863
|
-
createdAt: string | null;
|
|
11864
12999
|
updatedAt: string | null;
|
|
13000
|
+
createdAt: string | null;
|
|
11865
13001
|
content: {
|
|
11866
13002
|
style: Record<string, any>;
|
|
11867
13003
|
meta: Record<string, any>;
|
|
@@ -11895,23 +13031,23 @@ declare const routes$4: {
|
|
|
11895
13031
|
remaining: zod.ZodNumber;
|
|
11896
13032
|
estimatedCompletionAt: zod.ZodString;
|
|
11897
13033
|
}, "strip", zod.ZodTypeAny, {
|
|
11898
|
-
remaining: number;
|
|
11899
13034
|
dailyLimit: number;
|
|
11900
13035
|
reason: "new_account";
|
|
13036
|
+
remaining: number;
|
|
11901
13037
|
hourlyLimit: number;
|
|
11902
13038
|
estimatedCompletionAt: string;
|
|
11903
13039
|
}, {
|
|
11904
|
-
remaining: number;
|
|
11905
13040
|
dailyLimit: number;
|
|
11906
13041
|
reason: "new_account";
|
|
13042
|
+
remaining: number;
|
|
11907
13043
|
hourlyLimit: number;
|
|
11908
13044
|
estimatedCompletionAt: string;
|
|
11909
13045
|
}>>>;
|
|
11910
13046
|
}, "strip", zod.ZodTypeAny, {
|
|
11911
13047
|
type: string;
|
|
11912
13048
|
status: string;
|
|
11913
|
-
createdAt: string | null;
|
|
11914
13049
|
updatedAt: string | null;
|
|
13050
|
+
createdAt: string | null;
|
|
11915
13051
|
deliverySource: {
|
|
11916
13052
|
type: "organization";
|
|
11917
13053
|
} | {
|
|
@@ -11924,8 +13060,8 @@ declare const routes$4: {
|
|
|
11924
13060
|
entrants: string[];
|
|
11925
13061
|
viewInBrowser: boolean;
|
|
11926
13062
|
emails: {
|
|
11927
|
-
createdAt: string | null;
|
|
11928
13063
|
updatedAt: string | null;
|
|
13064
|
+
createdAt: string | null;
|
|
11929
13065
|
content: {
|
|
11930
13066
|
style: Record<string, any>;
|
|
11931
13067
|
meta: Record<string, any>;
|
|
@@ -11963,17 +13099,17 @@ declare const routes$4: {
|
|
|
11963
13099
|
report?: any;
|
|
11964
13100
|
archivedAt?: string | null | undefined;
|
|
11965
13101
|
pacing?: {
|
|
11966
|
-
remaining: number;
|
|
11967
13102
|
dailyLimit: number;
|
|
11968
13103
|
reason: "new_account";
|
|
13104
|
+
remaining: number;
|
|
11969
13105
|
hourlyLimit: number;
|
|
11970
13106
|
estimatedCompletionAt: string;
|
|
11971
13107
|
} | null | undefined;
|
|
11972
13108
|
}, {
|
|
11973
13109
|
type: string;
|
|
11974
13110
|
status: string;
|
|
11975
|
-
createdAt: string | null;
|
|
11976
13111
|
updatedAt: string | null;
|
|
13112
|
+
createdAt: string | null;
|
|
11977
13113
|
deliverySource: {
|
|
11978
13114
|
type: "organization";
|
|
11979
13115
|
} | {
|
|
@@ -11986,8 +13122,8 @@ declare const routes$4: {
|
|
|
11986
13122
|
entrants: string[];
|
|
11987
13123
|
viewInBrowser: boolean;
|
|
11988
13124
|
emails: {
|
|
11989
|
-
createdAt: string | null;
|
|
11990
13125
|
updatedAt: string | null;
|
|
13126
|
+
createdAt: string | null;
|
|
11991
13127
|
content: {
|
|
11992
13128
|
style: Record<string, any>;
|
|
11993
13129
|
meta: Record<string, any>;
|
|
@@ -12025,9 +13161,9 @@ declare const routes$4: {
|
|
|
12025
13161
|
report?: any;
|
|
12026
13162
|
archivedAt?: string | null | undefined;
|
|
12027
13163
|
pacing?: {
|
|
12028
|
-
remaining: number;
|
|
12029
13164
|
dailyLimit: number;
|
|
12030
13165
|
reason: "new_account";
|
|
13166
|
+
remaining: number;
|
|
12031
13167
|
hourlyLimit: number;
|
|
12032
13168
|
estimatedCompletionAt: string;
|
|
12033
13169
|
} | null | undefined;
|
|
@@ -12223,6 +13359,135 @@ declare const routes$4: {
|
|
|
12223
13359
|
};
|
|
12224
13360
|
path: "/sequences/:sequenceId/stats";
|
|
12225
13361
|
};
|
|
13362
|
+
deliveries: {
|
|
13363
|
+
query: zod.ZodObject<{
|
|
13364
|
+
outcome: zod.ZodOptional<zod.ZodEnum<["bounced", "complained"]>>;
|
|
13365
|
+
offset: zod.ZodOptional<zod.ZodNumber>;
|
|
13366
|
+
itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
|
|
13367
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13368
|
+
offset?: number | undefined;
|
|
13369
|
+
itemsPerPage?: number | undefined;
|
|
13370
|
+
outcome?: "bounced" | "complained" | undefined;
|
|
13371
|
+
}, {
|
|
13372
|
+
offset?: number | undefined;
|
|
13373
|
+
itemsPerPage?: number | undefined;
|
|
13374
|
+
outcome?: "bounced" | "complained" | undefined;
|
|
13375
|
+
}>;
|
|
13376
|
+
summary: "List the sends of a sequence or broadcast and what happened to each";
|
|
13377
|
+
description: "One row per email sent (accepted by the ESP), most recent outcome first, with the recipient, the outcome (sent, delivered, bounced, complained, failed), the bounce type and the ESP's reason when it reported one, and the address's active suppression if any. `outcome=bounced` and `outcome=complained` list exactly the sends counted by the `bounceRate` and `complaintRate` of GET /sequences/{sequenceId}/stats. Pages hold `itemsPerPage` sends (default 10, at most 100); `offset` is the page number. Sends whose contact was deleted are not listed.";
|
|
13378
|
+
metadata: {
|
|
13379
|
+
tag: string;
|
|
13380
|
+
};
|
|
13381
|
+
method: "GET";
|
|
13382
|
+
responses: {
|
|
13383
|
+
200: zod.ZodObject<{
|
|
13384
|
+
items: zod.ZodArray<zod.ZodObject<{
|
|
13385
|
+
messageId: zod.ZodString;
|
|
13386
|
+
contactId: zod.ZodString;
|
|
13387
|
+
email: zod.ZodString;
|
|
13388
|
+
emailId: zod.ZodString;
|
|
13389
|
+
outcome: zod.ZodEnum<["sent", "delivered", "bounced", "complained", "failed"]>;
|
|
13390
|
+
bounceType: zod.ZodNullable<zod.ZodEnum<["hard", "soft"]>>;
|
|
13391
|
+
reason: zod.ZodNullable<zod.ZodString>;
|
|
13392
|
+
smtpCode: zod.ZodNullable<zod.ZodNumber>;
|
|
13393
|
+
enhancedStatusCode: zod.ZodNullable<zod.ZodString>;
|
|
13394
|
+
occurredAt: zod.ZodNullable<zod.ZodString>;
|
|
13395
|
+
suppression: zod.ZodNullable<zod.ZodObject<{
|
|
13396
|
+
suppressionId: zod.ZodString;
|
|
13397
|
+
reason: zod.ZodEnum<["hard_bounce", "complaint", "repeated_soft_bounce", "provider_suppression", "manual"]>;
|
|
13398
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13399
|
+
reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
|
|
13400
|
+
suppressionId: string;
|
|
13401
|
+
}, {
|
|
13402
|
+
reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
|
|
13403
|
+
suppressionId: string;
|
|
13404
|
+
}>>;
|
|
13405
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13406
|
+
email: string;
|
|
13407
|
+
reason: string | null;
|
|
13408
|
+
messageId: string;
|
|
13409
|
+
smtpCode: number | null;
|
|
13410
|
+
enhancedStatusCode: string | null;
|
|
13411
|
+
occurredAt: string | null;
|
|
13412
|
+
contactId: string;
|
|
13413
|
+
emailId: string;
|
|
13414
|
+
outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
|
|
13415
|
+
bounceType: "hard" | "soft" | null;
|
|
13416
|
+
suppression: {
|
|
13417
|
+
reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
|
|
13418
|
+
suppressionId: string;
|
|
13419
|
+
} | null;
|
|
13420
|
+
}, {
|
|
13421
|
+
email: string;
|
|
13422
|
+
reason: string | null;
|
|
13423
|
+
messageId: string;
|
|
13424
|
+
smtpCode: number | null;
|
|
13425
|
+
enhancedStatusCode: string | null;
|
|
13426
|
+
occurredAt: string | null;
|
|
13427
|
+
contactId: string;
|
|
13428
|
+
emailId: string;
|
|
13429
|
+
outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
|
|
13430
|
+
bounceType: "hard" | "soft" | null;
|
|
13431
|
+
suppression: {
|
|
13432
|
+
reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
|
|
13433
|
+
suppressionId: string;
|
|
13434
|
+
} | null;
|
|
13435
|
+
}>, "many">;
|
|
13436
|
+
total: zod.ZodNumber;
|
|
13437
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13438
|
+
items: {
|
|
13439
|
+
email: string;
|
|
13440
|
+
reason: string | null;
|
|
13441
|
+
messageId: string;
|
|
13442
|
+
smtpCode: number | null;
|
|
13443
|
+
enhancedStatusCode: string | null;
|
|
13444
|
+
occurredAt: string | null;
|
|
13445
|
+
contactId: string;
|
|
13446
|
+
emailId: string;
|
|
13447
|
+
outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
|
|
13448
|
+
bounceType: "hard" | "soft" | null;
|
|
13449
|
+
suppression: {
|
|
13450
|
+
reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
|
|
13451
|
+
suppressionId: string;
|
|
13452
|
+
} | null;
|
|
13453
|
+
}[];
|
|
13454
|
+
total: number;
|
|
13455
|
+
}, {
|
|
13456
|
+
items: {
|
|
13457
|
+
email: string;
|
|
13458
|
+
reason: string | null;
|
|
13459
|
+
messageId: string;
|
|
13460
|
+
smtpCode: number | null;
|
|
13461
|
+
enhancedStatusCode: string | null;
|
|
13462
|
+
occurredAt: string | null;
|
|
13463
|
+
contactId: string;
|
|
13464
|
+
emailId: string;
|
|
13465
|
+
outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
|
|
13466
|
+
bounceType: "hard" | "soft" | null;
|
|
13467
|
+
suppression: {
|
|
13468
|
+
reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
|
|
13469
|
+
suppressionId: string;
|
|
13470
|
+
} | null;
|
|
13471
|
+
}[];
|
|
13472
|
+
total: number;
|
|
13473
|
+
}>;
|
|
13474
|
+
400: zod.ZodObject<{
|
|
13475
|
+
error: zod.ZodString;
|
|
13476
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13477
|
+
error: string;
|
|
13478
|
+
}, {
|
|
13479
|
+
error: string;
|
|
13480
|
+
}>;
|
|
13481
|
+
404: zod.ZodObject<{
|
|
13482
|
+
error: zod.ZodString;
|
|
13483
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13484
|
+
error: string;
|
|
13485
|
+
}, {
|
|
13486
|
+
error: string;
|
|
13487
|
+
}>;
|
|
13488
|
+
};
|
|
13489
|
+
path: "/sequences/:sequenceId/deliveries";
|
|
13490
|
+
};
|
|
12226
13491
|
schedule: {
|
|
12227
13492
|
summary: "Contacts waiting for each email of a sequence";
|
|
12228
13493
|
description: "For each email, in send order: how many contacts in the sequence will get it next and the earliest of their due times. A contact counts once, against the email they're waiting for, so emails they've had or will get later don't count them. Each contact's delay counts from their own entry, so their due times differ; list them with `GET /sequences/{sequenceId}/emails/{emailId}/waiting`. Due times are the earliest a contact can get the email; pauses and sending limits can make it later.";
|
|
@@ -12380,6 +13645,8 @@ declare const routes$4: {
|
|
|
12380
13645
|
* `type`. */
|
|
12381
13646
|
type Sequence = Ok<typeof routes$4.get>;
|
|
12382
13647
|
type SequenceStats = Ok<typeof routes$4.stats>;
|
|
13648
|
+
type SequenceDelivery = Ok<typeof routes$4.deliveries>["items"][number];
|
|
13649
|
+
type ListSequenceDeliveriesQuery = Query<typeof routes$4.deliveries>;
|
|
12383
13650
|
type CreateSequenceInput = Body<typeof routes$4.create>;
|
|
12384
13651
|
type UpdateSequenceInput = Body<typeof routes$4.update>;
|
|
12385
13652
|
type AddSequenceEmailInput = Body<typeof routes$4.addEmail>;
|
|
@@ -12419,6 +13686,11 @@ declare class Sequences {
|
|
|
12419
13686
|
start(sequenceId: string): Promise<Sequence>;
|
|
12420
13687
|
pause(sequenceId: string): Promise<Sequence>;
|
|
12421
13688
|
stats(sequenceId: string): Promise<SequenceStats>;
|
|
13689
|
+
/** The emails a broadcast or sequence sent and what happened to each.
|
|
13690
|
+
* `outcome: "bounced"` or `"complained"` lists the recipients behind the
|
|
13691
|
+
* stats' bounce and complaint rates. */
|
|
13692
|
+
deliveries(sequenceId: string, query?: ListSequenceDeliveriesQuery): Promise<Ok<typeof routes$4.deliveries>>;
|
|
13693
|
+
listAllDeliveries(sequenceId: string, query?: Omit<ListSequenceDeliveriesQuery, "offset">): AsyncGenerator<SequenceDelivery, void, undefined>;
|
|
12422
13694
|
/** Sends a test of one broadcast or sequence email, rendered like a real
|
|
12423
13695
|
* send with a `[Test]` subject prefix. Tests count against the team's test
|
|
12424
13696
|
* limits (429 `test_send_limit_reached` / `test_send_email_limit_reached`). */
|
|
@@ -12437,13 +13709,48 @@ declare const routes$3: {
|
|
|
12437
13709
|
method: "GET";
|
|
12438
13710
|
responses: {
|
|
12439
13711
|
200: zod.ZodObject<{
|
|
12440
|
-
|
|
13712
|
+
postalAddress: zod.ZodNullable<zod.ZodObject<{
|
|
13713
|
+
line1: zod.ZodString;
|
|
13714
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
13715
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
13716
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
13717
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
13718
|
+
country: zod.ZodString;
|
|
13719
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13720
|
+
line1: string;
|
|
13721
|
+
country: string;
|
|
13722
|
+
line2?: string | undefined;
|
|
13723
|
+
city?: string | undefined;
|
|
13724
|
+
region?: string | undefined;
|
|
13725
|
+
postalCode?: string | undefined;
|
|
13726
|
+
}, {
|
|
13727
|
+
line1: string;
|
|
13728
|
+
country: string;
|
|
13729
|
+
line2?: string | undefined;
|
|
13730
|
+
city?: string | undefined;
|
|
13731
|
+
region?: string | undefined;
|
|
13732
|
+
postalCode?: string | undefined;
|
|
13733
|
+
}>>;
|
|
12441
13734
|
updatedAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
12442
13735
|
}, "strip", zod.ZodTypeAny, {
|
|
12443
|
-
|
|
13736
|
+
postalAddress: {
|
|
13737
|
+
line1: string;
|
|
13738
|
+
country: string;
|
|
13739
|
+
line2?: string | undefined;
|
|
13740
|
+
city?: string | undefined;
|
|
13741
|
+
region?: string | undefined;
|
|
13742
|
+
postalCode?: string | undefined;
|
|
13743
|
+
} | null;
|
|
12444
13744
|
updatedAt?: string | null | undefined;
|
|
12445
13745
|
}, {
|
|
12446
|
-
|
|
13746
|
+
postalAddress: {
|
|
13747
|
+
line1: string;
|
|
13748
|
+
country: string;
|
|
13749
|
+
line2?: string | undefined;
|
|
13750
|
+
city?: string | undefined;
|
|
13751
|
+
region?: string | undefined;
|
|
13752
|
+
postalCode?: string | undefined;
|
|
13753
|
+
} | null;
|
|
12447
13754
|
updatedAt?: string | null | undefined;
|
|
12448
13755
|
}>;
|
|
12449
13756
|
};
|
|
@@ -12451,29 +13758,106 @@ declare const routes$3: {
|
|
|
12451
13758
|
};
|
|
12452
13759
|
update: {
|
|
12453
13760
|
summary: "Update the team's general settings";
|
|
12454
|
-
description: "
|
|
13761
|
+
description: "Omit `postalAddress` to keep it; `null` clears it. 400 `postal_country_invalid` when its country isn't a current ISO 3166-1 alpha-2 code.";
|
|
12455
13762
|
metadata: {
|
|
12456
13763
|
tag: string;
|
|
12457
13764
|
};
|
|
12458
13765
|
method: "PUT";
|
|
12459
13766
|
body: zod.ZodObject<{
|
|
12460
|
-
|
|
13767
|
+
postalAddress: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
|
|
13768
|
+
line1: zod.ZodString;
|
|
13769
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
13770
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
13771
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
13772
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
13773
|
+
country: zod.ZodString;
|
|
13774
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13775
|
+
line1: string;
|
|
13776
|
+
country: string;
|
|
13777
|
+
line2?: string | undefined;
|
|
13778
|
+
city?: string | undefined;
|
|
13779
|
+
region?: string | undefined;
|
|
13780
|
+
postalCode?: string | undefined;
|
|
13781
|
+
}, {
|
|
13782
|
+
line1: string;
|
|
13783
|
+
country: string;
|
|
13784
|
+
line2?: string | undefined;
|
|
13785
|
+
city?: string | undefined;
|
|
13786
|
+
region?: string | undefined;
|
|
13787
|
+
postalCode?: string | undefined;
|
|
13788
|
+
}>>>;
|
|
12461
13789
|
}, "strip", zod.ZodTypeAny, {
|
|
12462
|
-
|
|
13790
|
+
postalAddress?: {
|
|
13791
|
+
line1: string;
|
|
13792
|
+
country: string;
|
|
13793
|
+
line2?: string | undefined;
|
|
13794
|
+
city?: string | undefined;
|
|
13795
|
+
region?: string | undefined;
|
|
13796
|
+
postalCode?: string | undefined;
|
|
13797
|
+
} | null | undefined;
|
|
12463
13798
|
}, {
|
|
12464
|
-
|
|
13799
|
+
postalAddress?: {
|
|
13800
|
+
line1: string;
|
|
13801
|
+
country: string;
|
|
13802
|
+
line2?: string | undefined;
|
|
13803
|
+
city?: string | undefined;
|
|
13804
|
+
region?: string | undefined;
|
|
13805
|
+
postalCode?: string | undefined;
|
|
13806
|
+
} | null | undefined;
|
|
12465
13807
|
}>;
|
|
12466
13808
|
responses: {
|
|
12467
13809
|
200: zod.ZodObject<{
|
|
12468
|
-
|
|
13810
|
+
postalAddress: zod.ZodNullable<zod.ZodObject<{
|
|
13811
|
+
line1: zod.ZodString;
|
|
13812
|
+
line2: zod.ZodOptional<zod.ZodString>;
|
|
13813
|
+
city: zod.ZodOptional<zod.ZodString>;
|
|
13814
|
+
region: zod.ZodOptional<zod.ZodString>;
|
|
13815
|
+
postalCode: zod.ZodOptional<zod.ZodString>;
|
|
13816
|
+
country: zod.ZodString;
|
|
13817
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13818
|
+
line1: string;
|
|
13819
|
+
country: string;
|
|
13820
|
+
line2?: string | undefined;
|
|
13821
|
+
city?: string | undefined;
|
|
13822
|
+
region?: string | undefined;
|
|
13823
|
+
postalCode?: string | undefined;
|
|
13824
|
+
}, {
|
|
13825
|
+
line1: string;
|
|
13826
|
+
country: string;
|
|
13827
|
+
line2?: string | undefined;
|
|
13828
|
+
city?: string | undefined;
|
|
13829
|
+
region?: string | undefined;
|
|
13830
|
+
postalCode?: string | undefined;
|
|
13831
|
+
}>>;
|
|
12469
13832
|
updatedAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
|
|
12470
13833
|
}, "strip", zod.ZodTypeAny, {
|
|
12471
|
-
|
|
13834
|
+
postalAddress: {
|
|
13835
|
+
line1: string;
|
|
13836
|
+
country: string;
|
|
13837
|
+
line2?: string | undefined;
|
|
13838
|
+
city?: string | undefined;
|
|
13839
|
+
region?: string | undefined;
|
|
13840
|
+
postalCode?: string | undefined;
|
|
13841
|
+
} | null;
|
|
12472
13842
|
updatedAt?: string | null | undefined;
|
|
12473
13843
|
}, {
|
|
12474
|
-
|
|
13844
|
+
postalAddress: {
|
|
13845
|
+
line1: string;
|
|
13846
|
+
country: string;
|
|
13847
|
+
line2?: string | undefined;
|
|
13848
|
+
city?: string | undefined;
|
|
13849
|
+
region?: string | undefined;
|
|
13850
|
+
postalCode?: string | undefined;
|
|
13851
|
+
} | null;
|
|
12475
13852
|
updatedAt?: string | null | undefined;
|
|
12476
13853
|
}>;
|
|
13854
|
+
400: zod.ZodObject<{
|
|
13855
|
+
error: zod.ZodString;
|
|
13856
|
+
}, "strip", zod.ZodTypeAny, {
|
|
13857
|
+
error: string;
|
|
13858
|
+
}, {
|
|
13859
|
+
error: string;
|
|
13860
|
+
}>;
|
|
12477
13861
|
};
|
|
12478
13862
|
path: "/settings/general";
|
|
12479
13863
|
};
|
|
@@ -12482,6 +13866,9 @@ declare const routes$3: {
|
|
|
12482
13866
|
* and sequences need before they can send. */
|
|
12483
13867
|
type GeneralSettings = Ok<typeof routes$3.get>;
|
|
12484
13868
|
type UpdateGeneralSettingsInput = Body<typeof routes$3.update>;
|
|
13869
|
+
/** The team's postal address as separate fields; SendLit formats it into
|
|
13870
|
+
* the marketing email footer. */
|
|
13871
|
+
type PostalAddress = NonNullable<GeneralSettings["postalAddress"]>;
|
|
12485
13872
|
declare class GeneralSettingsResource {
|
|
12486
13873
|
private readonly http;
|
|
12487
13874
|
constructor(http: HttpClient);
|
|
@@ -12502,13 +13889,13 @@ declare const routes$2: {
|
|
|
12502
13889
|
itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
|
|
12503
13890
|
}, "strip", zod.ZodTypeAny, {
|
|
12504
13891
|
active?: boolean | undefined;
|
|
12505
|
-
offset?: number | undefined;
|
|
12506
13892
|
reason?: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression" | undefined;
|
|
13893
|
+
offset?: number | undefined;
|
|
12507
13894
|
itemsPerPage?: number | undefined;
|
|
12508
13895
|
}, {
|
|
12509
13896
|
active?: boolean | undefined;
|
|
12510
|
-
offset?: number | undefined;
|
|
12511
13897
|
reason?: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression" | undefined;
|
|
13898
|
+
offset?: number | undefined;
|
|
12512
13899
|
itemsPerPage?: number | undefined;
|
|
12513
13900
|
}>;
|
|
12514
13901
|
summary: "List the team's suppressed recipients";
|
|
@@ -13152,9 +14539,9 @@ declare const routes: {
|
|
|
13152
14539
|
meta: Record<string, any>;
|
|
13153
14540
|
content: Record<string, any>[];
|
|
13154
14541
|
};
|
|
14542
|
+
purpose: "marketing" | "transactional";
|
|
13155
14543
|
title: string;
|
|
13156
14544
|
templateId: string;
|
|
13157
|
-
purpose: "marketing" | "transactional";
|
|
13158
14545
|
requiredVariables: string[];
|
|
13159
14546
|
variableDefinitions?: {
|
|
13160
14547
|
path: string;
|
|
@@ -13168,9 +14555,9 @@ declare const routes: {
|
|
|
13168
14555
|
meta: Record<string, any>;
|
|
13169
14556
|
content: Record<string, any>[];
|
|
13170
14557
|
};
|
|
14558
|
+
purpose: "marketing" | "transactional";
|
|
13171
14559
|
title: string;
|
|
13172
14560
|
templateId: string;
|
|
13173
|
-
purpose: "marketing" | "transactional";
|
|
13174
14561
|
requiredVariables: string[];
|
|
13175
14562
|
variableDefinitions?: {
|
|
13176
14563
|
path: string;
|
|
@@ -13186,9 +14573,9 @@ declare const routes: {
|
|
|
13186
14573
|
meta: Record<string, any>;
|
|
13187
14574
|
content: Record<string, any>[];
|
|
13188
14575
|
};
|
|
14576
|
+
purpose: "marketing" | "transactional";
|
|
13189
14577
|
title: string;
|
|
13190
14578
|
templateId: string;
|
|
13191
|
-
purpose: "marketing" | "transactional";
|
|
13192
14579
|
requiredVariables: string[];
|
|
13193
14580
|
variableDefinitions?: {
|
|
13194
14581
|
path: string;
|
|
@@ -13204,9 +14591,9 @@ declare const routes: {
|
|
|
13204
14591
|
meta: Record<string, any>;
|
|
13205
14592
|
content: Record<string, any>[];
|
|
13206
14593
|
};
|
|
14594
|
+
purpose: "marketing" | "transactional";
|
|
13207
14595
|
title: string;
|
|
13208
14596
|
templateId: string;
|
|
13209
|
-
purpose: "marketing" | "transactional";
|
|
13210
14597
|
requiredVariables: string[];
|
|
13211
14598
|
variableDefinitions?: {
|
|
13212
14599
|
path: string;
|
|
@@ -14419,8 +15806,8 @@ declare const routes: {
|
|
|
14419
15806
|
id?: string | undefined;
|
|
14420
15807
|
})[];
|
|
14421
15808
|
};
|
|
14422
|
-
title: string;
|
|
14423
15809
|
purpose: "marketing" | "transactional";
|
|
15810
|
+
title: string;
|
|
14424
15811
|
}, {
|
|
14425
15812
|
content: {
|
|
14426
15813
|
style: {
|
|
@@ -14600,29 +15987,29 @@ declare const routes: {
|
|
|
14600
15987
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
14601
15988
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
14602
15989
|
}, "strip", zod.ZodTypeAny, {
|
|
14603
|
-
createdAt: string | null;
|
|
14604
15990
|
updatedAt: string | null;
|
|
15991
|
+
createdAt: string | null;
|
|
14605
15992
|
content: {
|
|
14606
15993
|
style: Record<string, any>;
|
|
14607
15994
|
meta: Record<string, any>;
|
|
14608
15995
|
content: Record<string, any>[];
|
|
14609
15996
|
};
|
|
15997
|
+
purpose: "marketing" | "transactional";
|
|
14610
15998
|
title: string;
|
|
14611
15999
|
templateId: string;
|
|
14612
|
-
purpose: "marketing" | "transactional";
|
|
14613
16000
|
requiredVariables: string[];
|
|
14614
16001
|
validationError?: string | undefined;
|
|
14615
16002
|
}, {
|
|
14616
|
-
createdAt: string | null;
|
|
14617
16003
|
updatedAt: string | null;
|
|
16004
|
+
createdAt: string | null;
|
|
14618
16005
|
content: {
|
|
14619
16006
|
style: Record<string, any>;
|
|
14620
16007
|
meta: Record<string, any>;
|
|
14621
16008
|
content: Record<string, any>[];
|
|
14622
16009
|
};
|
|
16010
|
+
purpose: "marketing" | "transactional";
|
|
14623
16011
|
title: string;
|
|
14624
16012
|
templateId: string;
|
|
14625
|
-
purpose: "marketing" | "transactional";
|
|
14626
16013
|
requiredVariables: string[];
|
|
14627
16014
|
validationError?: string | undefined;
|
|
14628
16015
|
}>;
|
|
@@ -14655,16 +16042,16 @@ declare const routes: {
|
|
|
14655
16042
|
method: "GET";
|
|
14656
16043
|
responses: {
|
|
14657
16044
|
200: _ts_rest_core.ContractPlainType<{
|
|
14658
|
-
createdAt: string | null;
|
|
14659
16045
|
updatedAt: string | null;
|
|
16046
|
+
createdAt: string | null;
|
|
14660
16047
|
content: {
|
|
14661
16048
|
style: Record<string, any>;
|
|
14662
16049
|
meta: Record<string, any>;
|
|
14663
16050
|
content: Record<string, any>[];
|
|
14664
16051
|
};
|
|
16052
|
+
purpose: "marketing" | "transactional";
|
|
14665
16053
|
title: string;
|
|
14666
16054
|
templateId: string;
|
|
14667
|
-
purpose: "marketing" | "transactional";
|
|
14668
16055
|
requiredVariables: string[];
|
|
14669
16056
|
validationError?: string | undefined;
|
|
14670
16057
|
}[]>;
|
|
@@ -14700,29 +16087,29 @@ declare const routes: {
|
|
|
14700
16087
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
14701
16088
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
14702
16089
|
}, "strip", zod.ZodTypeAny, {
|
|
14703
|
-
createdAt: string | null;
|
|
14704
16090
|
updatedAt: string | null;
|
|
16091
|
+
createdAt: string | null;
|
|
14705
16092
|
content: {
|
|
14706
16093
|
style: Record<string, any>;
|
|
14707
16094
|
meta: Record<string, any>;
|
|
14708
16095
|
content: Record<string, any>[];
|
|
14709
16096
|
};
|
|
16097
|
+
purpose: "marketing" | "transactional";
|
|
14710
16098
|
title: string;
|
|
14711
16099
|
templateId: string;
|
|
14712
|
-
purpose: "marketing" | "transactional";
|
|
14713
16100
|
requiredVariables: string[];
|
|
14714
16101
|
validationError?: string | undefined;
|
|
14715
16102
|
}, {
|
|
14716
|
-
createdAt: string | null;
|
|
14717
16103
|
updatedAt: string | null;
|
|
16104
|
+
createdAt: string | null;
|
|
14718
16105
|
content: {
|
|
14719
16106
|
style: Record<string, any>;
|
|
14720
16107
|
meta: Record<string, any>;
|
|
14721
16108
|
content: Record<string, any>[];
|
|
14722
16109
|
};
|
|
16110
|
+
purpose: "marketing" | "transactional";
|
|
14723
16111
|
title: string;
|
|
14724
16112
|
templateId: string;
|
|
14725
|
-
purpose: "marketing" | "transactional";
|
|
14726
16113
|
requiredVariables: string[];
|
|
14727
16114
|
validationError?: string | undefined;
|
|
14728
16115
|
}>;
|
|
@@ -16124,29 +17511,29 @@ declare const routes: {
|
|
|
16124
17511
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
16125
17512
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
16126
17513
|
}, "strip", zod.ZodTypeAny, {
|
|
16127
|
-
createdAt: string | null;
|
|
16128
17514
|
updatedAt: string | null;
|
|
17515
|
+
createdAt: string | null;
|
|
16129
17516
|
content: {
|
|
16130
17517
|
style: Record<string, any>;
|
|
16131
17518
|
meta: Record<string, any>;
|
|
16132
17519
|
content: Record<string, any>[];
|
|
16133
17520
|
};
|
|
17521
|
+
purpose: "marketing" | "transactional";
|
|
16134
17522
|
title: string;
|
|
16135
17523
|
templateId: string;
|
|
16136
|
-
purpose: "marketing" | "transactional";
|
|
16137
17524
|
requiredVariables: string[];
|
|
16138
17525
|
validationError?: string | undefined;
|
|
16139
17526
|
}, {
|
|
16140
|
-
createdAt: string | null;
|
|
16141
17527
|
updatedAt: string | null;
|
|
17528
|
+
createdAt: string | null;
|
|
16142
17529
|
content: {
|
|
16143
17530
|
style: Record<string, any>;
|
|
16144
17531
|
meta: Record<string, any>;
|
|
16145
17532
|
content: Record<string, any>[];
|
|
16146
17533
|
};
|
|
17534
|
+
purpose: "marketing" | "transactional";
|
|
16147
17535
|
title: string;
|
|
16148
17536
|
templateId: string;
|
|
16149
|
-
purpose: "marketing" | "transactional";
|
|
16150
17537
|
requiredVariables: string[];
|
|
16151
17538
|
validationError?: string | undefined;
|
|
16152
17539
|
}>;
|
|
@@ -16214,29 +17601,29 @@ declare const routes: {
|
|
|
16214
17601
|
createdAt: zod.ZodNullable<zod.ZodString>;
|
|
16215
17602
|
updatedAt: zod.ZodNullable<zod.ZodString>;
|
|
16216
17603
|
}, "strip", zod.ZodTypeAny, {
|
|
16217
|
-
createdAt: string | null;
|
|
16218
17604
|
updatedAt: string | null;
|
|
17605
|
+
createdAt: string | null;
|
|
16219
17606
|
content: {
|
|
16220
17607
|
style: Record<string, any>;
|
|
16221
17608
|
meta: Record<string, any>;
|
|
16222
17609
|
content: Record<string, any>[];
|
|
16223
17610
|
};
|
|
17611
|
+
purpose: "marketing" | "transactional";
|
|
16224
17612
|
title: string;
|
|
16225
17613
|
templateId: string;
|
|
16226
|
-
purpose: "marketing" | "transactional";
|
|
16227
17614
|
requiredVariables: string[];
|
|
16228
17615
|
validationError?: string | undefined;
|
|
16229
17616
|
}, {
|
|
16230
|
-
createdAt: string | null;
|
|
16231
17617
|
updatedAt: string | null;
|
|
17618
|
+
createdAt: string | null;
|
|
16232
17619
|
content: {
|
|
16233
17620
|
style: Record<string, any>;
|
|
16234
17621
|
meta: Record<string, any>;
|
|
16235
17622
|
content: Record<string, any>[];
|
|
16236
17623
|
};
|
|
17624
|
+
purpose: "marketing" | "transactional";
|
|
16237
17625
|
title: string;
|
|
16238
17626
|
templateId: string;
|
|
16239
|
-
purpose: "marketing" | "transactional";
|
|
16240
17627
|
requiredVariables: string[];
|
|
16241
17628
|
validationError?: string | undefined;
|
|
16242
17629
|
}>;
|
|
@@ -16328,6 +17715,8 @@ declare class SendLit {
|
|
|
16328
17715
|
readonly emails: Emails;
|
|
16329
17716
|
/** Custom events and the team's event definitions. */
|
|
16330
17717
|
readonly events: Events;
|
|
17718
|
+
/** Public signup forms, with or without double opt-in. */
|
|
17719
|
+
readonly forms: Forms;
|
|
16331
17720
|
readonly provisioning: Provisioning;
|
|
16332
17721
|
readonly suppressions: Suppressions;
|
|
16333
17722
|
readonly deliveryEvents: DeliveryEvents;
|
|
@@ -16363,4 +17752,4 @@ declare class SendLitError extends Error {
|
|
|
16363
17752
|
static fromResponse(status: number, body: unknown, headers?: Headers): SendLitError;
|
|
16364
17753
|
}
|
|
16365
17754
|
|
|
16366
|
-
export { AddSequenceEmailInput, Contact, ContactDelivery, ContactEvent, Contacts, CreateContactInput, CreateEventDefinitionInput, CreateSegmentInput, CreateSequenceInput, CreateTeamKeyInput, CreateTemplateInput, CreatedTeamKey, DEFAULT_ENDPOINT, DeliveryEvent, DeliveryEvents, DiscardSequenceChangesInput, DuplicateTemplateInput, EmailTemplate, Emails, EventDefinition, EventDefinitionDetail, EventDefinitions, Events, GeneralSettings, GeneralSettingsResource, ListContactEventsQuery, ListContactsQuery, ListDeliveryEventsQuery, ListEmailsQuery, ListSequenceSubscribersQuery, ListSequencesQuery, ListSuppressionsQuery, ListTemplatesQuery, Overview, OverviewQuery, OverviewResource, ProvisionTeamInput, ProvisionTeamResponse, ProvisionedTeam, ProvisionedTeamUsage, Provisioning, PublishSequenceChangesInput, ReleaseSuppressionInput, RemoveTagResult, RenameTagInput, RenameTagResult, Segment, Segments, SendEmailInput, SendEmailResponse, SendLit, SendLitError, SendLitOptions, SendSequenceEmailTestInput, Sequence, SequenceEmailTestResult, SequenceEmailVersion, SequenceStats, Sequences, Settings, Suppression, Suppressions, SystemTemplate, Tag, TagReferences, Tags, Templates, TrackEventInput, TrackEventResponse, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateEventDefinitionInput, UpdateGeneralSettingsInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateTemplateInput };
|
|
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 };
|