sendlit 0.6.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -39,7 +39,7 @@ declare class HttpClient {
39
39
  private send;
40
40
  }
41
41
 
42
- declare const routes$b: {
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.";
@@ -52,16 +52,59 @@ declare const routes$b: {
52
52
  name: zod.ZodOptional<zod.ZodString>;
53
53
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
54
54
  customFields: zod.ZodOptional<zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, "many">]>>>>;
55
+ consent: zod.ZodOptional<zod.ZodObject<{
56
+ source: zod.ZodOptional<zod.ZodString>;
57
+ wording: zod.ZodOptional<zod.ZodString>;
58
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
59
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
60
+ externalActorId: zod.ZodOptional<zod.ZodString>;
61
+ ipAddress: zod.ZodOptional<zod.ZodString>;
62
+ userAgent: zod.ZodOptional<zod.ZodString>;
63
+ }, "strip", zod.ZodTypeAny, {
64
+ source?: string | undefined;
65
+ wording?: string | undefined;
66
+ consentedAt?: string | undefined;
67
+ actor?: "contact" | "app" | undefined;
68
+ externalActorId?: string | undefined;
69
+ ipAddress?: string | undefined;
70
+ userAgent?: string | undefined;
71
+ }, {
72
+ source?: string | undefined;
73
+ wording?: string | undefined;
74
+ consentedAt?: string | undefined;
75
+ actor?: "contact" | "app" | undefined;
76
+ externalActorId?: string | undefined;
77
+ ipAddress?: string | undefined;
78
+ userAgent?: string | undefined;
79
+ }>>;
55
80
  }, "strip", zod.ZodTypeAny, {
56
81
  email: string;
57
82
  name?: string | undefined;
58
83
  tags?: string[] | undefined;
59
84
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
85
+ consent?: {
86
+ source?: string | undefined;
87
+ wording?: string | undefined;
88
+ consentedAt?: string | undefined;
89
+ actor?: "contact" | "app" | undefined;
90
+ externalActorId?: string | undefined;
91
+ ipAddress?: string | undefined;
92
+ userAgent?: string | undefined;
93
+ } | undefined;
60
94
  }, {
61
95
  email: string;
62
96
  name?: string | undefined;
63
97
  tags?: string[] | undefined;
64
98
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
99
+ consent?: {
100
+ source?: string | undefined;
101
+ wording?: string | undefined;
102
+ consentedAt?: string | undefined;
103
+ actor?: "contact" | "app" | undefined;
104
+ externalActorId?: string | undefined;
105
+ ipAddress?: string | undefined;
106
+ userAgent?: string | undefined;
107
+ } | undefined;
65
108
  }>;
66
109
  responses: {
67
110
  201: zod.ZodObject<{
@@ -78,8 +121,8 @@ declare const routes$b: {
78
121
  email: string;
79
122
  tags: string[];
80
123
  subscribed: boolean;
81
- createdAt: string | null;
82
124
  updatedAt: string | null;
125
+ createdAt: string | null;
83
126
  contactId: string;
84
127
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
85
128
  unsubscribeToken: string;
@@ -88,8 +131,8 @@ declare const routes$b: {
88
131
  email: string;
89
132
  tags: string[];
90
133
  subscribed: boolean;
91
- createdAt: string | null;
92
134
  updatedAt: string | null;
135
+ createdAt: string | null;
93
136
  contactId: string;
94
137
  unsubscribeToken: string;
95
138
  name?: string | null | undefined;
@@ -157,8 +200,8 @@ declare const routes$b: {
157
200
  email: string;
158
201
  tags: string[];
159
202
  subscribed: boolean;
160
- createdAt: string | null;
161
203
  updatedAt: string | null;
204
+ createdAt: string | null;
162
205
  contactId: string;
163
206
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
164
207
  unsubscribeToken: string;
@@ -167,8 +210,8 @@ declare const routes$b: {
167
210
  email: string;
168
211
  tags: string[];
169
212
  subscribed: boolean;
170
- createdAt: string | null;
171
213
  updatedAt: string | null;
214
+ createdAt: string | null;
172
215
  contactId: string;
173
216
  unsubscribeToken: string;
174
217
  name?: string | null | undefined;
@@ -180,8 +223,8 @@ declare const routes$b: {
180
223
  email: string;
181
224
  tags: string[];
182
225
  subscribed: boolean;
183
- createdAt: string | null;
184
226
  updatedAt: string | null;
227
+ createdAt: string | null;
185
228
  contactId: string;
186
229
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
187
230
  unsubscribeToken: string;
@@ -193,8 +236,8 @@ declare const routes$b: {
193
236
  email: string;
194
237
  tags: string[];
195
238
  subscribed: boolean;
196
- createdAt: string | null;
197
239
  updatedAt: string | null;
240
+ createdAt: string | null;
198
241
  contactId: string;
199
242
  unsubscribeToken: string;
200
243
  name?: string | null | undefined;
@@ -221,7 +264,7 @@ declare const routes$b: {
221
264
  };
222
265
  import: {
223
266
  summary: "Import contacts";
224
- description: "Creates or updates up to 1000 contacts per request, matched by email. A status can only get stricter (subscribed < unsubscribed < bounced < complained): an import never re-subscribes an unsubscribed or suppressed contact, and bounced or complained rows are imported unsubscribed and added to the suppression list. Paused contacts stay subscribed with the `paused` tag. Tags and custom fields are merged into existing contacts, and an earlier createdAt replaces a later one. Imports don't trigger sequences. Subscribed contacts over the plan's limit are skipped with `plan_limit_reached`.";
267
+ description: "Creates or updates up to 1000 contacts per request, matched by email. A status can only get stricter (subscribed < unsubscribed < bounced < complained): an import never re-subscribes an unsubscribed or suppressed contact, and bounced or complained rows are imported unsubscribed and added to the suppression list. Paused contacts stay subscribed with the `paused` tag. Tags and custom fields are merged into existing contacts, and an earlier createdAt replaces a later one. Imports don't trigger sequences. Subscribed contacts over the plan's limit are skipped with `plan_limit_reached`. When any row would be imported subscribed, `consentConfirmed: true` is required (400 `consent_confirmation_required` otherwise): you confirm these people agreed to receive marketing email from you. Each imported contact gets a consent event with the returned `importId`, the confirmation, who imported, and the row's `optedInAt` as a claimed time.";
225
268
  metadata: {
226
269
  tag: string;
227
270
  };
@@ -233,6 +276,7 @@ declare const routes$b: {
233
276
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
234
277
  status: zod.ZodOptional<zod.ZodString>;
235
278
  createdAt: zod.ZodOptional<zod.ZodString>;
279
+ optedInAt: zod.ZodOptional<zod.ZodString>;
236
280
  customFields: zod.ZodOptional<zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, "many">]>>>>;
237
281
  row: zod.ZodOptional<zod.ZodNumber>;
238
282
  }, "strip", zod.ZodTypeAny, {
@@ -242,6 +286,7 @@ declare const routes$b: {
242
286
  tags?: string[] | undefined;
243
287
  createdAt?: string | undefined;
244
288
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
289
+ optedInAt?: string | undefined;
245
290
  row?: number | undefined;
246
291
  }, {
247
292
  email: string;
@@ -250,11 +295,28 @@ declare const routes$b: {
250
295
  tags?: string[] | undefined;
251
296
  createdAt?: string | undefined;
252
297
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
298
+ optedInAt?: string | undefined;
253
299
  row?: number | undefined;
254
300
  }>, "many">;
255
301
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
256
302
  pending: zod.ZodOptional<zod.ZodEnum<["skip", "unsubscribed"]>>;
257
303
  source: zod.ZodOptional<zod.ZodString>;
304
+ consentConfirmed: zod.ZodOptional<zod.ZodBoolean>;
305
+ consent: zod.ZodOptional<zod.ZodObject<Pick<{
306
+ source: zod.ZodOptional<zod.ZodString>;
307
+ wording: zod.ZodOptional<zod.ZodString>;
308
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
309
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
310
+ externalActorId: zod.ZodOptional<zod.ZodString>;
311
+ ipAddress: zod.ZodOptional<zod.ZodString>;
312
+ userAgent: zod.ZodOptional<zod.ZodString>;
313
+ }, "source" | "wording">, "strip", zod.ZodTypeAny, {
314
+ source?: string | undefined;
315
+ wording?: string | undefined;
316
+ }, {
317
+ source?: string | undefined;
318
+ wording?: string | undefined;
319
+ }>>;
258
320
  }, "strip", zod.ZodTypeAny, {
259
321
  contacts: {
260
322
  email: string;
@@ -263,11 +325,17 @@ declare const routes$b: {
263
325
  tags?: string[] | undefined;
264
326
  createdAt?: string | undefined;
265
327
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
328
+ optedInAt?: string | undefined;
266
329
  row?: number | undefined;
267
330
  }[];
268
331
  tags?: string[] | undefined;
269
332
  pending?: "unsubscribed" | "skip" | undefined;
270
333
  source?: string | undefined;
334
+ consent?: {
335
+ source?: string | undefined;
336
+ wording?: string | undefined;
337
+ } | undefined;
338
+ consentConfirmed?: boolean | undefined;
271
339
  }, {
272
340
  contacts: {
273
341
  email: string;
@@ -276,14 +344,21 @@ declare const routes$b: {
276
344
  tags?: string[] | undefined;
277
345
  createdAt?: string | undefined;
278
346
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
347
+ optedInAt?: string | undefined;
279
348
  row?: number | undefined;
280
349
  }[];
281
350
  tags?: string[] | undefined;
282
351
  pending?: "unsubscribed" | "skip" | undefined;
283
352
  source?: string | undefined;
353
+ consent?: {
354
+ source?: string | undefined;
355
+ wording?: string | undefined;
356
+ } | undefined;
357
+ consentConfirmed?: boolean | undefined;
284
358
  }>;
285
359
  responses: {
286
360
  200: zod.ZodObject<{
361
+ importId: zod.ZodString;
287
362
  created: zod.ZodNumber;
288
363
  updated: zod.ZodNumber;
289
364
  unchanged: zod.ZodNumber;
@@ -304,6 +379,7 @@ declare const routes$b: {
304
379
  }, "strip", zod.ZodTypeAny, {
305
380
  created: number;
306
381
  suppressed: number;
382
+ importId: string;
307
383
  skipped: {
308
384
  email: string;
309
385
  reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
@@ -314,6 +390,7 @@ declare const routes$b: {
314
390
  }, {
315
391
  created: number;
316
392
  suppressed: number;
393
+ importId: string;
317
394
  skipped: {
318
395
  email: string;
319
396
  reason: "pending_confirmation" | "unknown_status" | "duplicate" | "invalid_email" | "plan_limit_reached";
@@ -344,7 +421,7 @@ declare const routes$b: {
344
421
  segmentId?: string | undefined;
345
422
  }>;
346
423
  summary: "Export contacts as CSV";
347
- description: "Returns every contact, or those matching segmentId and/or filter, as CSV: email, name, status (subscribed, unsubscribed, bounced or complained), tags, created_at, suppression_reason, then one column per custom field.";
424
+ description: "Returns every contact, or those matching segmentId and/or filter, as CSV: email, name, status (subscribed, unsubscribed, bounced or complained), tags, created_at, suppression_reason, the latest opt-in's opted_in_at, consent_channel, consent_source and consent_wording, then one column per custom field.";
348
425
  metadata: {
349
426
  tag: string;
350
427
  };
@@ -1246,13 +1323,13 @@ declare const routes$b: {
1246
1323
  deleted: zod.ZodNumber;
1247
1324
  suppressed: zod.ZodNumber;
1248
1325
  }, "strip", zod.ZodTypeAny, {
1249
- status: "queued" | "failed" | "completed" | "running";
1326
+ status: "failed" | "queued" | "completed" | "running";
1250
1327
  suppressed: number;
1251
1328
  count: number;
1252
1329
  deletionId: string | null;
1253
1330
  deleted: number;
1254
1331
  }, {
1255
- status: "queued" | "failed" | "completed" | "running";
1332
+ status: "failed" | "queued" | "completed" | "running";
1256
1333
  suppressed: number;
1257
1334
  count: number;
1258
1335
  deletionId: string | null;
@@ -1265,13 +1342,13 @@ declare const routes$b: {
1265
1342
  deleted: zod.ZodNumber;
1266
1343
  suppressed: zod.ZodNumber;
1267
1344
  }, "strip", zod.ZodTypeAny, {
1268
- status: "queued" | "failed" | "completed" | "running";
1345
+ status: "failed" | "queued" | "completed" | "running";
1269
1346
  suppressed: number;
1270
1347
  count: number;
1271
1348
  deletionId: string | null;
1272
1349
  deleted: number;
1273
1350
  }, {
1274
- status: "queued" | "failed" | "completed" | "running";
1351
+ status: "failed" | "queued" | "completed" | "running";
1275
1352
  suppressed: number;
1276
1353
  count: number;
1277
1354
  deletionId: string | null;
@@ -1320,13 +1397,13 @@ declare const routes$b: {
1320
1397
  deleted: zod.ZodNumber;
1321
1398
  suppressed: zod.ZodNumber;
1322
1399
  }, "strip", zod.ZodTypeAny, {
1323
- status: "queued" | "failed" | "completed" | "running";
1400
+ status: "failed" | "queued" | "completed" | "running";
1324
1401
  suppressed: number;
1325
1402
  count: number;
1326
1403
  deletionId: string | null;
1327
1404
  deleted: number;
1328
1405
  }, {
1329
- status: "queued" | "failed" | "completed" | "running";
1406
+ status: "failed" | "queued" | "completed" | "running";
1330
1407
  suppressed: number;
1331
1408
  count: number;
1332
1409
  deletionId: string | null;
@@ -1363,8 +1440,8 @@ declare const routes$b: {
1363
1440
  email: string;
1364
1441
  tags: string[];
1365
1442
  subscribed: boolean;
1366
- createdAt: string | null;
1367
1443
  updatedAt: string | null;
1444
+ createdAt: string | null;
1368
1445
  contactId: string;
1369
1446
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
1370
1447
  unsubscribeToken: string;
@@ -1373,8 +1450,8 @@ declare const routes$b: {
1373
1450
  email: string;
1374
1451
  tags: string[];
1375
1452
  subscribed: boolean;
1376
- createdAt: string | null;
1377
1453
  updatedAt: string | null;
1454
+ createdAt: string | null;
1378
1455
  contactId: string;
1379
1456
  unsubscribeToken: string;
1380
1457
  name?: string | null | undefined;
@@ -1401,16 +1478,59 @@ declare const routes$b: {
1401
1478
  subscribed: zod.ZodOptional<zod.ZodBoolean>;
1402
1479
  tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
1403
1480
  customFields: zod.ZodOptional<zod.ZodDefault<zod.ZodRecord<zod.ZodString, zod.ZodUnion<[zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, zod.ZodArray<zod.ZodUnion<[zod.ZodString, zod.ZodNumber, zod.ZodBoolean]>, "many">]>>>>;
1481
+ consent: zod.ZodOptional<zod.ZodObject<{
1482
+ source: zod.ZodOptional<zod.ZodString>;
1483
+ wording: zod.ZodOptional<zod.ZodString>;
1484
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
1485
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
1486
+ externalActorId: zod.ZodOptional<zod.ZodString>;
1487
+ ipAddress: zod.ZodOptional<zod.ZodString>;
1488
+ userAgent: zod.ZodOptional<zod.ZodString>;
1489
+ }, "strip", zod.ZodTypeAny, {
1490
+ source?: string | undefined;
1491
+ wording?: string | undefined;
1492
+ consentedAt?: string | undefined;
1493
+ actor?: "contact" | "app" | undefined;
1494
+ externalActorId?: string | undefined;
1495
+ ipAddress?: string | undefined;
1496
+ userAgent?: string | undefined;
1497
+ }, {
1498
+ source?: string | undefined;
1499
+ wording?: string | undefined;
1500
+ consentedAt?: string | undefined;
1501
+ actor?: "contact" | "app" | undefined;
1502
+ externalActorId?: string | undefined;
1503
+ ipAddress?: string | undefined;
1504
+ userAgent?: string | undefined;
1505
+ }>>;
1404
1506
  }, "strip", zod.ZodTypeAny, {
1405
1507
  name?: string | undefined;
1406
1508
  tags?: string[] | undefined;
1407
1509
  subscribed?: boolean | undefined;
1408
1510
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1511
+ consent?: {
1512
+ source?: string | undefined;
1513
+ wording?: string | undefined;
1514
+ consentedAt?: string | undefined;
1515
+ actor?: "contact" | "app" | undefined;
1516
+ externalActorId?: string | undefined;
1517
+ ipAddress?: string | undefined;
1518
+ userAgent?: string | undefined;
1519
+ } | undefined;
1409
1520
  }, {
1410
1521
  name?: string | undefined;
1411
1522
  tags?: string[] | undefined;
1412
1523
  subscribed?: boolean | undefined;
1413
1524
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
1525
+ consent?: {
1526
+ source?: string | undefined;
1527
+ wording?: string | undefined;
1528
+ consentedAt?: string | undefined;
1529
+ actor?: "contact" | "app" | undefined;
1530
+ externalActorId?: string | undefined;
1531
+ ipAddress?: string | undefined;
1532
+ userAgent?: string | undefined;
1533
+ } | undefined;
1414
1534
  }>;
1415
1535
  responses: {
1416
1536
  200: zod.ZodObject<{
@@ -1427,8 +1547,8 @@ declare const routes$b: {
1427
1547
  email: string;
1428
1548
  tags: string[];
1429
1549
  subscribed: boolean;
1430
- createdAt: string | null;
1431
1550
  updatedAt: string | null;
1551
+ createdAt: string | null;
1432
1552
  contactId: string;
1433
1553
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
1434
1554
  unsubscribeToken: string;
@@ -1437,8 +1557,8 @@ declare const routes$b: {
1437
1557
  email: string;
1438
1558
  tags: string[];
1439
1559
  subscribed: boolean;
1440
- createdAt: string | null;
1441
1560
  updatedAt: string | null;
1561
+ createdAt: string | null;
1442
1562
  contactId: string;
1443
1563
  unsubscribeToken: string;
1444
1564
  name?: string | null | undefined;
@@ -1490,8 +1610,8 @@ declare const routes$b: {
1490
1610
  email: string;
1491
1611
  tags: string[];
1492
1612
  subscribed: boolean;
1493
- createdAt: string | null;
1494
1613
  updatedAt: string | null;
1614
+ createdAt: string | null;
1495
1615
  contactId: string;
1496
1616
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
1497
1617
  unsubscribeToken: string;
@@ -1500,8 +1620,8 @@ declare const routes$b: {
1500
1620
  email: string;
1501
1621
  tags: string[];
1502
1622
  subscribed: boolean;
1503
- createdAt: string | null;
1504
1623
  updatedAt: string | null;
1624
+ createdAt: string | null;
1505
1625
  contactId: string;
1506
1626
  unsubscribeToken: string;
1507
1627
  name?: string | null | undefined;
@@ -1538,8 +1658,8 @@ declare const routes$b: {
1538
1658
  email: string;
1539
1659
  tags: string[];
1540
1660
  subscribed: boolean;
1541
- createdAt: string | null;
1542
1661
  updatedAt: string | null;
1662
+ createdAt: string | null;
1543
1663
  contactId: string;
1544
1664
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
1545
1665
  unsubscribeToken: string;
@@ -1548,8 +1668,8 @@ declare const routes$b: {
1548
1668
  email: string;
1549
1669
  tags: string[];
1550
1670
  subscribed: boolean;
1551
- createdAt: string | null;
1552
1671
  updatedAt: string | null;
1672
+ createdAt: string | null;
1553
1673
  contactId: string;
1554
1674
  unsubscribeToken: string;
1555
1675
  name?: string | null | undefined;
@@ -1578,7 +1698,7 @@ declare const routes$b: {
1578
1698
  messageId: string | null;
1579
1699
  sequenceId: string;
1580
1700
  emailId: string;
1581
- outcome: "bounced" | "complained" | "sent" | "failed" | "delivered" | null;
1701
+ outcome: "bounced" | "complained" | "failed" | "sent" | "delivered" | null;
1582
1702
  sequenceTitle: string;
1583
1703
  sequenceType: string;
1584
1704
  }[]>;
@@ -1635,7 +1755,7 @@ declare const routes$b: {
1635
1755
  }>, "many">;
1636
1756
  }, "strip", zod.ZodTypeAny, {
1637
1757
  name: string;
1638
- source: "api" | "session" | "mcp";
1758
+ source: "api" | "mcp" | "session";
1639
1759
  eventId: string;
1640
1760
  occurredAt: string;
1641
1761
  receivedAt: string;
@@ -1648,7 +1768,7 @@ declare const routes$b: {
1648
1768
  }[];
1649
1769
  }, {
1650
1770
  name: string;
1651
- source: "api" | "session" | "mcp";
1771
+ source: "api" | "mcp" | "session";
1652
1772
  eventId: string;
1653
1773
  occurredAt: string;
1654
1774
  receivedAt: string;
@@ -1664,7 +1784,7 @@ declare const routes$b: {
1664
1784
  }, "strip", zod.ZodTypeAny, {
1665
1785
  items: {
1666
1786
  name: string;
1667
- source: "api" | "session" | "mcp";
1787
+ source: "api" | "mcp" | "session";
1668
1788
  eventId: string;
1669
1789
  occurredAt: string;
1670
1790
  receivedAt: string;
@@ -1680,7 +1800,7 @@ declare const routes$b: {
1680
1800
  }, {
1681
1801
  items: {
1682
1802
  name: string;
1683
- source: "api" | "session" | "mcp";
1803
+ source: "api" | "mcp" | "session";
1684
1804
  eventId: string;
1685
1805
  occurredAt: string;
1686
1806
  receivedAt: string;
@@ -1704,8 +1824,124 @@ declare const routes$b: {
1704
1824
  };
1705
1825
  path: "/contacts/:contactId/events";
1706
1826
  };
1827
+ consent: {
1828
+ summary: "List a contact's consent history";
1829
+ description: "Every opt-in, opt-out and suppression recorded for the contact, newest first: how it reached SendLit (`channel`), where it was collected (`source`), the wording the person agreed to, who made it, and for forms and imports the IP address, user agent, double opt-in and import confirmation. Contacts that existed before consent records start with one `pre_tracking` event holding their state at that time. The history is deleted with the contact.";
1830
+ metadata: {
1831
+ tag: string;
1832
+ };
1833
+ method: "GET";
1834
+ responses: {
1835
+ 200: zod.ZodObject<{
1836
+ items: zod.ZodArray<zod.ZodObject<{
1837
+ consentEventId: zod.ZodString;
1838
+ action: zod.ZodEnum<["opt_in", "opt_out", "suppressed"]>;
1839
+ channel: zod.ZodEnum<["form", "import", "api", "mcp", "dashboard", "unsubscribe_link", "list_unsubscribe", "suppression", "pre_tracking"]>;
1840
+ source: zod.ZodNullable<zod.ZodString>;
1841
+ wording: zod.ZodNullable<zod.ZodString>;
1842
+ recordedAt: zod.ZodString;
1843
+ consentedAt: zod.ZodNullable<zod.ZodString>;
1844
+ actorType: zod.ZodEnum<["contact", "member", "api_key", "system"]>;
1845
+ actorUserId: zod.ZodNullable<zod.ZodString>;
1846
+ apiKeyId: zod.ZodNullable<zod.ZodString>;
1847
+ externalActorId: zod.ZodNullable<zod.ZodString>;
1848
+ ipAddress: zod.ZodNullable<zod.ZodString>;
1849
+ userAgent: zod.ZodNullable<zod.ZodString>;
1850
+ formId: zod.ZodNullable<zod.ZodString>;
1851
+ doubleOptIn: zod.ZodNullable<zod.ZodBoolean>;
1852
+ importId: zod.ZodNullable<zod.ZodString>;
1853
+ importConfirmed: zod.ZodNullable<zod.ZodBoolean>;
1854
+ }, "strip", zod.ZodTypeAny, {
1855
+ action: "opt_in" | "opt_out" | "suppressed";
1856
+ actorType: "member" | "system" | "contact" | "api_key";
1857
+ source: string | null;
1858
+ wording: string | null;
1859
+ consentedAt: string | null;
1860
+ externalActorId: string | null;
1861
+ ipAddress: string | null;
1862
+ userAgent: string | null;
1863
+ consentEventId: string;
1864
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1865
+ recordedAt: string;
1866
+ actorUserId: string | null;
1867
+ apiKeyId: string | null;
1868
+ formId: string | null;
1869
+ doubleOptIn: boolean | null;
1870
+ importId: string | null;
1871
+ importConfirmed: boolean | null;
1872
+ }, {
1873
+ action: "opt_in" | "opt_out" | "suppressed";
1874
+ actorType: "member" | "system" | "contact" | "api_key";
1875
+ source: string | null;
1876
+ wording: string | null;
1877
+ consentedAt: string | null;
1878
+ externalActorId: string | null;
1879
+ ipAddress: string | null;
1880
+ userAgent: string | null;
1881
+ consentEventId: string;
1882
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1883
+ recordedAt: string;
1884
+ actorUserId: string | null;
1885
+ apiKeyId: string | null;
1886
+ formId: string | null;
1887
+ doubleOptIn: boolean | null;
1888
+ importId: string | null;
1889
+ importConfirmed: boolean | null;
1890
+ }>, "many">;
1891
+ }, "strip", zod.ZodTypeAny, {
1892
+ items: {
1893
+ action: "opt_in" | "opt_out" | "suppressed";
1894
+ actorType: "member" | "system" | "contact" | "api_key";
1895
+ source: string | null;
1896
+ wording: string | null;
1897
+ consentedAt: string | null;
1898
+ externalActorId: string | null;
1899
+ ipAddress: string | null;
1900
+ userAgent: string | null;
1901
+ consentEventId: string;
1902
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1903
+ recordedAt: string;
1904
+ actorUserId: string | null;
1905
+ apiKeyId: string | null;
1906
+ formId: string | null;
1907
+ doubleOptIn: boolean | null;
1908
+ importId: string | null;
1909
+ importConfirmed: boolean | null;
1910
+ }[];
1911
+ }, {
1912
+ items: {
1913
+ action: "opt_in" | "opt_out" | "suppressed";
1914
+ actorType: "member" | "system" | "contact" | "api_key";
1915
+ source: string | null;
1916
+ wording: string | null;
1917
+ consentedAt: string | null;
1918
+ externalActorId: string | null;
1919
+ ipAddress: string | null;
1920
+ userAgent: string | null;
1921
+ consentEventId: string;
1922
+ channel: "api" | "form" | "import" | "mcp" | "dashboard" | "unsubscribe_link" | "list_unsubscribe" | "suppression" | "pre_tracking";
1923
+ recordedAt: string;
1924
+ actorUserId: string | null;
1925
+ apiKeyId: string | null;
1926
+ formId: string | null;
1927
+ doubleOptIn: boolean | null;
1928
+ importId: string | null;
1929
+ importConfirmed: boolean | null;
1930
+ }[];
1931
+ }>;
1932
+ 404: zod.ZodObject<{
1933
+ error: zod.ZodString;
1934
+ }, "strip", zod.ZodTypeAny, {
1935
+ error: string;
1936
+ }, {
1937
+ error: string;
1938
+ }>;
1939
+ };
1940
+ path: "/contacts/:contactId/consent";
1941
+ };
1707
1942
  remove: {
1708
1943
  summary: "Delete a contact";
1944
+ description: "Deletes the contact with its consent history, custom field values, events and delivery records.";
1709
1945
  metadata: {
1710
1946
  tag: string;
1711
1947
  };
@@ -1716,13 +1952,18 @@ declare const routes$b: {
1716
1952
  path: "/contacts/:contactId";
1717
1953
  };
1718
1954
  };
1719
- type Contact = Ok<typeof routes$b.get>;
1720
- type CreateContactInput = Body<typeof routes$b.create>;
1721
- type UpdateContactInput = Body<typeof routes$b.update>;
1722
- type ListContactsQuery = Query<typeof routes$b.list>;
1723
- type ContactDelivery = Ok<typeof routes$b.deliveries>[number];
1724
- type ContactEvent = Ok<typeof routes$b.events>["items"][number];
1725
- type ListContactEventsQuery = Query<typeof routes$b.events>;
1955
+ type Contact = Ok<typeof routes$c.get>;
1956
+ type CreateContactInput = Body<typeof routes$c.create>;
1957
+ type UpdateContactInput = Body<typeof routes$c.update>;
1958
+ type ListContactsQuery = Query<typeof routes$c.list>;
1959
+ type ContactDelivery = Ok<typeof routes$c.deliveries>[number];
1960
+ type ContactEvent = Ok<typeof routes$c.events>["items"][number];
1961
+ type ListContactEventsQuery = Query<typeof routes$c.events>;
1962
+ type ConsentEvent = Ok<typeof routes$c.consent>["items"][number];
1963
+ /** Consent details to pass with `create` or `update`. */
1964
+ type ConsentInput = NonNullable<CreateContactInput["consent"]>;
1965
+ type ImportContactsInput = Body<typeof routes$c.import>;
1966
+ type ImportContactsResult = Ok<typeof routes$c.import>;
1726
1967
  declare class Contacts {
1727
1968
  private readonly http;
1728
1969
  constructor(http: HttpClient);
@@ -1734,7 +1975,7 @@ declare class Contacts {
1734
1975
  * here don't fire `tag:added`.
1735
1976
  */
1736
1977
  create(input: CreateContactInput): Promise<Contact>;
1737
- list(query?: ListContactsQuery): Promise<Ok<typeof routes$b.list>>;
1978
+ list(query?: ListContactsQuery): Promise<Ok<typeof routes$c.list>>;
1738
1979
  /** Iterates every contact matching `query`, fetching pages lazily. */
1739
1980
  listAll(query?: Omit<ListContactsQuery, "offset">): AsyncGenerator<Contact, void, undefined>;
1740
1981
  get(contactId: string): Promise<Contact>;
@@ -1744,12 +1985,21 @@ declare class Contacts {
1744
1985
  removeTag(contactId: string, tag: string): Promise<Contact>;
1745
1986
  /** Broadcast and sequence emails delivered to this contact. */
1746
1987
  deliveries(contactId: string): Promise<ContactDelivery[]>;
1988
+ /** The contact's consent history, newest first: every opt-in, opt-out
1989
+ * and suppression with its channel, source, wording, actor, and for forms
1990
+ * and imports the IP address, user agent, double opt-in and import
1991
+ * confirmation. Keep it as proof of consent. */
1992
+ consent(contactId: string): Promise<ConsentEvent[]>;
1993
+ /** Imports up to 1000 contacts, matched by email. Importing anyone as
1994
+ * subscribed requires `consentConfirmed: true`: you confirm they agreed
1995
+ * to receive marketing email from you. */
1996
+ import(input: ImportContactsInput): Promise<ImportContactsResult>;
1747
1997
  /** Custom events received for this contact, newest first, with the
1748
1998
  * sequences each one started. */
1749
- events(contactId: string, query?: ListContactEventsQuery): Promise<Ok<typeof routes$b.events>>;
1999
+ events(contactId: string, query?: ListContactEventsQuery): Promise<Ok<typeof routes$c.events>>;
1750
2000
  }
1751
2001
 
1752
- declare const routes$a: {
2002
+ declare const routes$b: {
1753
2003
  list: {
1754
2004
  query: zod.ZodObject<{
1755
2005
  espId: zod.ZodOptional<zod.ZodString>;
@@ -1761,19 +2011,19 @@ declare const routes$a: {
1761
2011
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
1762
2012
  }, "strip", zod.ZodTypeAny, {
1763
2013
  espId?: string | undefined;
2014
+ offset?: number | undefined;
1764
2015
  deliverySourceType?: "organization" | "team" | undefined;
1765
- eventType?: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected" | undefined;
2016
+ eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected" | undefined;
1766
2017
  createdAfter?: number | undefined;
1767
2018
  createdBefore?: number | undefined;
1768
- offset?: number | undefined;
1769
2019
  itemsPerPage?: number | undefined;
1770
2020
  }, {
1771
2021
  espId?: string | undefined;
2022
+ offset?: number | undefined;
1772
2023
  deliverySourceType?: "organization" | "team" | undefined;
1773
- eventType?: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected" | undefined;
2024
+ eventType?: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected" | undefined;
1774
2025
  createdAfter?: number | undefined;
1775
2026
  createdBefore?: number | undefined;
1776
- offset?: number | undefined;
1777
2027
  itemsPerPage?: number | undefined;
1778
2028
  }>;
1779
2029
  summary: "List normalized delivery events for the team";
@@ -1804,13 +2054,13 @@ declare const routes$a: {
1804
2054
  deliverySourceType: "organization" | "team" | null;
1805
2055
  messageId: string | null;
1806
2056
  recipientEmail: string | null;
1807
- eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2057
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1808
2058
  occurredAt: string;
1809
2059
  receivedAt: string;
2060
+ reason?: string | null | undefined;
1810
2061
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
1811
2062
  smtpCode?: number | null | undefined;
1812
2063
  enhancedStatusCode?: string | null | undefined;
1813
- reason?: string | null | undefined;
1814
2064
  }, {
1815
2065
  espId: string | null;
1816
2066
  eventId: string;
@@ -1818,13 +2068,13 @@ declare const routes$a: {
1818
2068
  deliverySourceType: "organization" | "team" | null;
1819
2069
  messageId: string | null;
1820
2070
  recipientEmail: string | null;
1821
- eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2071
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1822
2072
  occurredAt: string;
1823
2073
  receivedAt: string;
2074
+ reason?: string | null | undefined;
1824
2075
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
1825
2076
  smtpCode?: number | null | undefined;
1826
2077
  enhancedStatusCode?: string | null | undefined;
1827
- reason?: string | null | undefined;
1828
2078
  }>, "many">;
1829
2079
  total: zod.ZodNumber;
1830
2080
  }, "strip", zod.ZodTypeAny, {
@@ -1835,13 +2085,13 @@ declare const routes$a: {
1835
2085
  deliverySourceType: "organization" | "team" | null;
1836
2086
  messageId: string | null;
1837
2087
  recipientEmail: string | null;
1838
- eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2088
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1839
2089
  occurredAt: string;
1840
2090
  receivedAt: string;
2091
+ reason?: string | null | undefined;
1841
2092
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
1842
2093
  smtpCode?: number | null | undefined;
1843
2094
  enhancedStatusCode?: string | null | undefined;
1844
- reason?: string | null | undefined;
1845
2095
  }[];
1846
2096
  total: number;
1847
2097
  }, {
@@ -1852,13 +2102,13 @@ declare const routes$a: {
1852
2102
  deliverySourceType: "organization" | "team" | null;
1853
2103
  messageId: string | null;
1854
2104
  recipientEmail: string | null;
1855
- eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2105
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1856
2106
  occurredAt: string;
1857
2107
  receivedAt: string;
2108
+ reason?: string | null | undefined;
1858
2109
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
1859
2110
  smtpCode?: number | null | undefined;
1860
2111
  enhancedStatusCode?: string | null | undefined;
1861
- reason?: string | null | undefined;
1862
2112
  }[];
1863
2113
  total: number;
1864
2114
  }>;
@@ -1893,13 +2143,13 @@ declare const routes$a: {
1893
2143
  deliverySourceType: "organization" | "team" | null;
1894
2144
  messageId: string | null;
1895
2145
  recipientEmail: string | null;
1896
- eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2146
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1897
2147
  occurredAt: string;
1898
2148
  receivedAt: string;
2149
+ reason?: string | null | undefined;
1899
2150
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
1900
2151
  smtpCode?: number | null | undefined;
1901
2152
  enhancedStatusCode?: string | null | undefined;
1902
- reason?: string | null | undefined;
1903
2153
  }, {
1904
2154
  espId: string | null;
1905
2155
  eventId: string;
@@ -1907,13 +2157,13 @@ declare const routes$a: {
1907
2157
  deliverySourceType: "organization" | "team" | null;
1908
2158
  messageId: string | null;
1909
2159
  recipientEmail: string | null;
1910
- eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "delivered" | "delayed" | "soft_bounce" | "suppressed" | "rejected";
2160
+ eventType: "hard_bounce" | "complaint" | "failed" | "unknown" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
1911
2161
  occurredAt: string;
1912
2162
  receivedAt: string;
2163
+ reason?: string | null | undefined;
1913
2164
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
1914
2165
  smtpCode?: number | null | undefined;
1915
2166
  enhancedStatusCode?: string | null | undefined;
1916
- reason?: string | null | undefined;
1917
2167
  }>;
1918
2168
  404: zod.ZodObject<{
1919
2169
  error: zod.ZodString;
@@ -1926,18 +2176,18 @@ declare const routes$a: {
1926
2176
  path: "/delivery-events/:eventId";
1927
2177
  };
1928
2178
  };
1929
- type DeliveryEvent = Ok<typeof routes$a.get>;
1930
- type ListDeliveryEventsQuery = Query<typeof routes$a.list>;
2179
+ type DeliveryEvent = Ok<typeof routes$b.get>;
2180
+ type ListDeliveryEventsQuery = Query<typeof routes$b.list>;
1931
2181
  /** Normalized delivery history (delivered, bounced, complained, …). */
1932
2182
  declare class DeliveryEvents {
1933
2183
  private readonly http;
1934
2184
  constructor(http: HttpClient);
1935
- list(query?: ListDeliveryEventsQuery): Promise<Ok<typeof routes$a.list>>;
2185
+ list(query?: ListDeliveryEventsQuery): Promise<Ok<typeof routes$b.list>>;
1936
2186
  listAll(query?: Omit<ListDeliveryEventsQuery, "offset">): AsyncGenerator<DeliveryEvent, void, undefined>;
1937
2187
  get(eventId: string): Promise<DeliveryEvent>;
1938
2188
  }
1939
2189
 
1940
- declare const routes$9: {
2190
+ declare const routes$a: {
1941
2191
  send: {
1942
2192
  summary: "Send a transactional email";
1943
2193
  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.";
@@ -1978,9 +2228,6 @@ declare const routes$9: {
1978
2228
  to: string;
1979
2229
  subject: string;
1980
2230
  headers?: Record<string, string> | undefined;
1981
- idempotencyKey?: string | undefined;
1982
- text?: string | undefined;
1983
- html?: string | undefined;
1984
2231
  fromName?: string | undefined;
1985
2232
  replyTo?: string | undefined;
1986
2233
  deliverySource?: {
@@ -1989,6 +2236,9 @@ declare const routes$9: {
1989
2236
  type: "team";
1990
2237
  espId?: string | undefined;
1991
2238
  } | undefined;
2239
+ idempotencyKey?: string | undefined;
2240
+ text?: string | undefined;
2241
+ html?: string | undefined;
1992
2242
  templateId?: string | undefined;
1993
2243
  variables?: Record<string, any> | undefined;
1994
2244
  trackOpens?: boolean | undefined;
@@ -1997,9 +2247,6 @@ declare const routes$9: {
1997
2247
  to: string;
1998
2248
  subject: string;
1999
2249
  headers?: Record<string, string> | undefined;
2000
- idempotencyKey?: string | undefined;
2001
- text?: string | undefined;
2002
- html?: string | undefined;
2003
2250
  fromName?: string | undefined;
2004
2251
  replyTo?: string | undefined;
2005
2252
  deliverySource?: {
@@ -2008,6 +2255,9 @@ declare const routes$9: {
2008
2255
  type: "team";
2009
2256
  espId?: string | undefined;
2010
2257
  } | undefined;
2258
+ idempotencyKey?: string | undefined;
2259
+ text?: string | undefined;
2260
+ html?: string | undefined;
2011
2261
  templateId?: string | undefined;
2012
2262
  variables?: Record<string, any> | undefined;
2013
2263
  trackOpens?: boolean | undefined;
@@ -2016,9 +2266,6 @@ declare const routes$9: {
2016
2266
  to: string;
2017
2267
  subject: string;
2018
2268
  headers?: Record<string, string> | undefined;
2019
- idempotencyKey?: string | undefined;
2020
- text?: string | undefined;
2021
- html?: string | undefined;
2022
2269
  fromName?: string | undefined;
2023
2270
  replyTo?: string | undefined;
2024
2271
  deliverySource?: {
@@ -2027,6 +2274,9 @@ declare const routes$9: {
2027
2274
  type: "team";
2028
2275
  espId?: string | undefined;
2029
2276
  } | undefined;
2277
+ idempotencyKey?: string | undefined;
2278
+ text?: string | undefined;
2279
+ html?: string | undefined;
2030
2280
  templateId?: string | undefined;
2031
2281
  variables?: Record<string, any> | undefined;
2032
2282
  trackOpens?: boolean | undefined;
@@ -2035,9 +2285,6 @@ declare const routes$9: {
2035
2285
  to: string;
2036
2286
  subject: string;
2037
2287
  headers?: Record<string, string> | undefined;
2038
- idempotencyKey?: string | undefined;
2039
- text?: string | undefined;
2040
- html?: string | undefined;
2041
2288
  fromName?: string | undefined;
2042
2289
  replyTo?: string | undefined;
2043
2290
  deliverySource?: {
@@ -2046,6 +2293,9 @@ declare const routes$9: {
2046
2293
  type: "team";
2047
2294
  espId?: string | undefined;
2048
2295
  } | undefined;
2296
+ idempotencyKey?: string | undefined;
2297
+ text?: string | undefined;
2298
+ html?: string | undefined;
2049
2299
  templateId?: string | undefined;
2050
2300
  variables?: Record<string, any> | undefined;
2051
2301
  trackOpens?: boolean | undefined;
@@ -2054,9 +2304,6 @@ declare const routes$9: {
2054
2304
  to: string;
2055
2305
  subject: string;
2056
2306
  headers?: Record<string, string> | undefined;
2057
- idempotencyKey?: string | undefined;
2058
- text?: string | undefined;
2059
- html?: string | undefined;
2060
2307
  fromName?: string | undefined;
2061
2308
  replyTo?: string | undefined;
2062
2309
  deliverySource?: {
@@ -2065,6 +2312,9 @@ declare const routes$9: {
2065
2312
  type: "team";
2066
2313
  espId?: string | undefined;
2067
2314
  } | undefined;
2315
+ idempotencyKey?: string | undefined;
2316
+ text?: string | undefined;
2317
+ html?: string | undefined;
2068
2318
  templateId?: string | undefined;
2069
2319
  variables?: Record<string, any> | undefined;
2070
2320
  trackOpens?: boolean | undefined;
@@ -2073,9 +2323,6 @@ declare const routes$9: {
2073
2323
  to: string;
2074
2324
  subject: string;
2075
2325
  headers?: Record<string, string> | undefined;
2076
- idempotencyKey?: string | undefined;
2077
- text?: string | undefined;
2078
- html?: string | undefined;
2079
2326
  fromName?: string | undefined;
2080
2327
  replyTo?: string | undefined;
2081
2328
  deliverySource?: {
@@ -2084,6 +2331,9 @@ declare const routes$9: {
2084
2331
  type: "team";
2085
2332
  espId?: string | undefined;
2086
2333
  } | undefined;
2334
+ idempotencyKey?: string | undefined;
2335
+ text?: string | undefined;
2336
+ html?: string | undefined;
2087
2337
  templateId?: string | undefined;
2088
2338
  variables?: Record<string, any> | undefined;
2089
2339
  trackOpens?: boolean | undefined;
@@ -2108,10 +2358,10 @@ declare const routes$9: {
2108
2358
  createdAt: zod.ZodNullable<zod.ZodString>;
2109
2359
  updatedAt: zod.ZodNullable<zod.ZodString>;
2110
2360
  }, "status" | "txeId">, "strip", zod.ZodTypeAny, {
2111
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2361
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2112
2362
  txeId: string;
2113
2363
  }, {
2114
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2364
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2115
2365
  txeId: string;
2116
2366
  }>;
2117
2367
  400: zod.ZodObject<{
@@ -2196,11 +2446,11 @@ declare const routes$9: {
2196
2446
  text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
2197
2447
  }, "strip", zod.ZodTypeAny, {
2198
2448
  error: string | null;
2199
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2200
- createdAt: string | null;
2449
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2201
2450
  updatedAt: string | null;
2202
- html: string | null;
2451
+ createdAt: string | null;
2203
2452
  replyTo: string | null;
2453
+ html: string | null;
2204
2454
  from: string | null;
2205
2455
  to: string;
2206
2456
  subject: string;
@@ -2215,11 +2465,11 @@ declare const routes$9: {
2215
2465
  text?: string | null | undefined;
2216
2466
  }, {
2217
2467
  error: string | null;
2218
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2219
- createdAt: string | null;
2468
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2220
2469
  updatedAt: string | null;
2221
- html: string | null;
2470
+ createdAt: string | null;
2222
2471
  replyTo: string | null;
2472
+ html: string | null;
2223
2473
  from: string | null;
2224
2474
  to: string;
2225
2475
  subject: string;
@@ -2251,16 +2501,16 @@ declare const routes$9: {
2251
2501
  offset: zod.ZodOptional<zod.ZodNumber>;
2252
2502
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
2253
2503
  }, "strip", zod.ZodTypeAny, {
2254
- status?: "bounced" | "sent" | "queued" | "failed" | "suppressed" | undefined;
2504
+ status?: "bounced" | "failed" | "sent" | "queued" | "suppressed" | undefined;
2505
+ offset?: number | undefined;
2255
2506
  createdAfter?: number | undefined;
2256
2507
  createdBefore?: number | undefined;
2257
- offset?: number | undefined;
2258
2508
  itemsPerPage?: number | undefined;
2259
2509
  }, {
2260
- status?: "bounced" | "sent" | "queued" | "failed" | "suppressed" | undefined;
2510
+ status?: "bounced" | "failed" | "sent" | "queued" | "suppressed" | undefined;
2511
+ offset?: number | undefined;
2261
2512
  createdAfter?: number | undefined;
2262
2513
  createdBefore?: number | undefined;
2263
- offset?: number | undefined;
2264
2514
  itemsPerPage?: number | undefined;
2265
2515
  }>;
2266
2516
  summary: "List transactional emails";
@@ -2289,9 +2539,9 @@ declare const routes$9: {
2289
2539
  updatedAt: zod.ZodNullable<zod.ZodString>;
2290
2540
  }, "strip", zod.ZodTypeAny, {
2291
2541
  error: string | null;
2292
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2293
- createdAt: string | null;
2542
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2294
2543
  updatedAt: string | null;
2544
+ createdAt: string | null;
2295
2545
  replyTo: string | null;
2296
2546
  from: string | null;
2297
2547
  to: string;
@@ -2306,9 +2556,9 @@ declare const routes$9: {
2306
2556
  clickCount: number;
2307
2557
  }, {
2308
2558
  error: string | null;
2309
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2310
- createdAt: string | null;
2559
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2311
2560
  updatedAt: string | null;
2561
+ createdAt: string | null;
2312
2562
  replyTo: string | null;
2313
2563
  from: string | null;
2314
2564
  to: string;
@@ -2326,9 +2576,9 @@ declare const routes$9: {
2326
2576
  }, "strip", zod.ZodTypeAny, {
2327
2577
  items: {
2328
2578
  error: string | null;
2329
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2330
- createdAt: string | null;
2579
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2331
2580
  updatedAt: string | null;
2581
+ createdAt: string | null;
2332
2582
  replyTo: string | null;
2333
2583
  from: string | null;
2334
2584
  to: string;
@@ -2346,9 +2596,9 @@ declare const routes$9: {
2346
2596
  }, {
2347
2597
  items: {
2348
2598
  error: string | null;
2349
- status: "bounced" | "sent" | "queued" | "failed" | "suppressed";
2350
- createdAt: string | null;
2599
+ status: "bounced" | "failed" | "sent" | "queued" | "suppressed";
2351
2600
  updatedAt: string | null;
2601
+ createdAt: string | null;
2352
2602
  replyTo: string | null;
2353
2603
  from: string | null;
2354
2604
  to: string;
@@ -2368,11 +2618,11 @@ declare const routes$9: {
2368
2618
  path: "/emails";
2369
2619
  };
2370
2620
  };
2371
- type SendEmailInput = Body<typeof routes$9.send>;
2372
- type SendEmailResponse = Ok<typeof routes$9.send>;
2373
- type TransactionalEmail = Ok<typeof routes$9.list>["items"][number];
2374
- type TransactionalEmailDetail = Ok<typeof routes$9.get>;
2375
- type ListEmailsQuery = Query<typeof routes$9.list>;
2621
+ type SendEmailInput = Body<typeof routes$a.send>;
2622
+ type SendEmailResponse = Ok<typeof routes$a.send>;
2623
+ type TransactionalEmail = Ok<typeof routes$a.list>["items"][number];
2624
+ type TransactionalEmailDetail = Ok<typeof routes$a.get>;
2625
+ type ListEmailsQuery = Query<typeof routes$a.list>;
2376
2626
  /** Transactional (single, API-triggered) emails. */
2377
2627
  declare class Emails {
2378
2628
  private readonly http;
@@ -2384,11 +2634,11 @@ declare class Emails {
2384
2634
  */
2385
2635
  send(input: SendEmailInput): Promise<SendEmailResponse>;
2386
2636
  get(txeId: string): Promise<TransactionalEmailDetail>;
2387
- list(query?: ListEmailsQuery): Promise<Ok<typeof routes$9.list>>;
2637
+ list(query?: ListEmailsQuery): Promise<Ok<typeof routes$a.list>>;
2388
2638
  listAll(query?: Omit<ListEmailsQuery, "offset">): AsyncGenerator<TransactionalEmail, void, undefined>;
2389
2639
  }
2390
2640
 
2391
- declare const routes$8: {
2641
+ declare const routes$9: {
2392
2642
  track: {
2393
2643
  summary: "Track a custom event";
2394
2644
  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.";
@@ -2419,80 +2669,80 @@ declare const routes$8: {
2419
2669
  eventName: string;
2420
2670
  email?: string | undefined;
2421
2671
  idempotencyKey?: string | undefined;
2672
+ contact?: {
2673
+ name?: string | undefined;
2674
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2675
+ } | undefined;
2422
2676
  occurredAt?: string | undefined;
2423
2677
  contactId?: string | undefined;
2424
2678
  properties?: Record<string, unknown> | undefined;
2425
2679
  backfill?: boolean | undefined;
2426
2680
  createContact?: boolean | undefined;
2427
- contact?: {
2428
- name?: string | undefined;
2429
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2430
- } | undefined;
2431
2681
  }, {
2432
2682
  eventName: string;
2433
2683
  email?: string | undefined;
2434
2684
  idempotencyKey?: string | undefined;
2685
+ contact?: {
2686
+ name?: string | undefined;
2687
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2688
+ } | undefined;
2435
2689
  occurredAt?: string | undefined;
2436
2690
  contactId?: string | undefined;
2437
2691
  properties?: Record<string, unknown> | undefined;
2438
2692
  backfill?: boolean | undefined;
2439
2693
  createContact?: boolean | undefined;
2440
- contact?: {
2441
- name?: string | undefined;
2442
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2443
- } | undefined;
2444
2694
  }>, {
2445
2695
  eventName: string;
2446
2696
  email?: string | undefined;
2447
2697
  idempotencyKey?: string | undefined;
2698
+ contact?: {
2699
+ name?: string | undefined;
2700
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2701
+ } | undefined;
2448
2702
  occurredAt?: string | undefined;
2449
2703
  contactId?: string | undefined;
2450
2704
  properties?: Record<string, unknown> | undefined;
2451
2705
  backfill?: boolean | undefined;
2452
2706
  createContact?: boolean | undefined;
2453
- contact?: {
2454
- name?: string | undefined;
2455
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2456
- } | undefined;
2457
2707
  }, {
2458
2708
  eventName: string;
2459
2709
  email?: string | undefined;
2460
2710
  idempotencyKey?: string | undefined;
2711
+ contact?: {
2712
+ name?: string | undefined;
2713
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2714
+ } | undefined;
2461
2715
  occurredAt?: string | undefined;
2462
2716
  contactId?: string | undefined;
2463
2717
  properties?: Record<string, unknown> | undefined;
2464
2718
  backfill?: boolean | undefined;
2465
2719
  createContact?: boolean | undefined;
2466
- contact?: {
2467
- name?: string | undefined;
2468
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2469
- } | undefined;
2470
2720
  }>, {
2471
2721
  eventName: string;
2472
2722
  email?: string | undefined;
2473
2723
  idempotencyKey?: string | undefined;
2724
+ contact?: {
2725
+ name?: string | undefined;
2726
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2727
+ } | undefined;
2474
2728
  occurredAt?: string | undefined;
2475
2729
  contactId?: string | undefined;
2476
2730
  properties?: Record<string, unknown> | undefined;
2477
2731
  backfill?: boolean | undefined;
2478
2732
  createContact?: boolean | undefined;
2479
- contact?: {
2480
- name?: string | undefined;
2481
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2482
- } | undefined;
2483
2733
  }, {
2484
2734
  eventName: string;
2485
2735
  email?: string | undefined;
2486
2736
  idempotencyKey?: string | undefined;
2737
+ contact?: {
2738
+ name?: string | undefined;
2739
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2740
+ } | undefined;
2487
2741
  occurredAt?: string | undefined;
2488
2742
  contactId?: string | undefined;
2489
2743
  properties?: Record<string, unknown> | undefined;
2490
2744
  backfill?: boolean | undefined;
2491
2745
  createContact?: boolean | undefined;
2492
- contact?: {
2493
- name?: string | undefined;
2494
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
2495
- } | undefined;
2496
2746
  }>;
2497
2747
  responses: {
2498
2748
  202: zod.ZodObject<{
@@ -2967,18 +3217,18 @@ declare const routes$8: {
2967
3217
  path: "/events/definitions/:name";
2968
3218
  };
2969
3219
  };
2970
- type TrackEventInput = Body<typeof routes$8.track>;
2971
- type TrackEventResponse = Ok<typeof routes$8.track>;
2972
- type EventDefinition = Ok<typeof routes$8.definitions>["items"][number];
2973
- type EventDefinitionDetail = Ok<typeof routes$8.definition>;
2974
- type CreateEventDefinitionInput = Body<typeof routes$8.createDefinition>;
2975
- type UpdateEventDefinitionInput = Body<typeof routes$8.updateDefinition>;
3220
+ type TrackEventInput = Body<typeof routes$9.track>;
3221
+ type TrackEventResponse = Ok<typeof routes$9.track>;
3222
+ type EventDefinition = Ok<typeof routes$9.definitions>["items"][number];
3223
+ type EventDefinitionDetail = Ok<typeof routes$9.definition>;
3224
+ type CreateEventDefinitionInput = Body<typeof routes$9.createDefinition>;
3225
+ type UpdateEventDefinitionInput = Body<typeof routes$9.updateDefinition>;
2976
3226
  /** The team's list of events: registered on first receipt, or by hand so
2977
3227
  * sequences can be built before the first event is sent. */
2978
3228
  declare class EventDefinitions {
2979
3229
  private readonly http;
2980
3230
  constructor(http: HttpClient);
2981
- list(): Promise<Ok<typeof routes$8.definitions>>;
3231
+ list(): Promise<Ok<typeof routes$9.definitions>>;
2982
3232
  /** One event with its last received payload. Names are case-sensitive. */
2983
3233
  get(name: string): Promise<EventDefinitionDetail>;
2984
3234
  create(input: CreateEventDefinitionInput): Promise<EventDefinitionDetail>;
@@ -3010,90 +3260,589 @@ declare class Events {
3010
3260
  track(input: TrackEventInput): Promise<TrackEventResponse>;
3011
3261
  }
3012
3262
 
3013
- declare const routes$7: {
3014
- get: {
3015
- query: zod.ZodObject<{
3016
- rangeDays: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, number>>;
3017
- }, "strip", zod.ZodTypeAny, {
3018
- rangeDays?: number | undefined;
3019
- }, {
3020
- rangeDays?: number | undefined;
3021
- }>;
3022
- summary: "Get team overview metrics for a delivery activity window";
3023
- description: "Use `rangeDays` (1, 3, 7, or 30; default 7) to filter transactional delivery activity and scheduled broadcasts.";
3263
+ declare const routes$8: {
3264
+ list: {
3265
+ summary: "List signup forms";
3024
3266
  metadata: {
3025
3267
  tag: string;
3026
3268
  };
3027
3269
  method: "GET";
3028
3270
  responses: {
3029
3271
  200: zod.ZodObject<{
3030
- activeSequences: zod.ZodNumber;
3031
- ongoingContacts: zod.ZodNumber;
3032
- scheduledBroadcasts: zod.ZodNumber;
3033
- mail: zod.ZodObject<{
3034
- sent: zod.ZodNumber;
3035
- queued: zod.ZodNumber;
3036
- failed: zod.ZodNumber;
3037
- bounced: zod.ZodNumber;
3038
- }, "strip", zod.ZodTypeAny, {
3039
- bounced: number;
3040
- sent: number;
3041
- queued: number;
3042
- failed: number;
3043
- }, {
3044
- bounced: number;
3045
- sent: number;
3046
- queued: number;
3047
- failed: number;
3048
- }>;
3049
- quota: zod.ZodObject<{
3050
- dailyUsed: zod.ZodNumber;
3051
- dailyLimit: zod.ZodNumber;
3052
- monthlyUsed: zod.ZodNumber;
3053
- monthlyLimit: zod.ZodNumber;
3272
+ items: zod.ZodArray<zod.ZodObject<{
3273
+ formId: zod.ZodString;
3274
+ name: zod.ZodString;
3275
+ tags: zod.ZodArray<zod.ZodString, "many">;
3276
+ doubleOptIn: zod.ZodBoolean;
3277
+ redirectUrl: zod.ZodNullable<zod.ZodString>;
3278
+ url: zod.ZodString;
3279
+ sendingIssue: zod.ZodNullable<zod.ZodString>;
3280
+ createdAt: zod.ZodString;
3281
+ updatedAt: zod.ZodString;
3054
3282
  }, "strip", zod.ZodTypeAny, {
3055
- dailyLimit: number;
3056
- monthlyLimit: number;
3057
- dailyUsed: number;
3058
- monthlyUsed: number;
3283
+ name: string;
3284
+ tags: string[];
3285
+ updatedAt: string;
3286
+ createdAt: string;
3287
+ url: string;
3288
+ formId: string;
3289
+ doubleOptIn: boolean;
3290
+ redirectUrl: string | null;
3291
+ sendingIssue: string | null;
3059
3292
  }, {
3060
- dailyLimit: number;
3061
- monthlyLimit: number;
3062
- dailyUsed: number;
3063
- monthlyUsed: number;
3064
- }>;
3293
+ name: string;
3294
+ tags: string[];
3295
+ updatedAt: string;
3296
+ createdAt: string;
3297
+ url: string;
3298
+ formId: string;
3299
+ doubleOptIn: boolean;
3300
+ redirectUrl: string | null;
3301
+ sendingIssue: string | null;
3302
+ }>, "many">;
3065
3303
  }, "strip", zod.ZodTypeAny, {
3066
- mail: {
3304
+ items: {
3305
+ name: string;
3306
+ tags: string[];
3307
+ updatedAt: string;
3308
+ createdAt: string;
3309
+ url: string;
3310
+ formId: string;
3311
+ doubleOptIn: boolean;
3312
+ redirectUrl: string | null;
3313
+ sendingIssue: string | null;
3314
+ }[];
3315
+ }, {
3316
+ items: {
3317
+ name: string;
3318
+ tags: string[];
3319
+ updatedAt: string;
3320
+ createdAt: string;
3321
+ url: string;
3322
+ formId: string;
3323
+ doubleOptIn: boolean;
3324
+ redirectUrl: string | null;
3325
+ sendingIssue: string | null;
3326
+ }[];
3327
+ }>;
3328
+ };
3329
+ path: "/forms";
3330
+ };
3331
+ create: {
3332
+ summary: "Create a signup form";
3333
+ 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.";
3334
+ metadata: {
3335
+ tag: string;
3336
+ };
3337
+ method: "POST";
3338
+ body: zod.ZodObject<{
3339
+ name: zod.ZodString;
3340
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
3341
+ doubleOptIn: zod.ZodOptional<zod.ZodBoolean>;
3342
+ redirectUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodEffects<zod.ZodString, string, string>>>;
3343
+ }, "strip", zod.ZodTypeAny, {
3344
+ name: string;
3345
+ tags?: string[] | undefined;
3346
+ doubleOptIn?: boolean | undefined;
3347
+ redirectUrl?: string | null | undefined;
3348
+ }, {
3349
+ name: string;
3350
+ tags?: string[] | undefined;
3351
+ doubleOptIn?: boolean | undefined;
3352
+ redirectUrl?: string | null | undefined;
3353
+ }>;
3354
+ responses: {
3355
+ 201: zod.ZodObject<{
3356
+ formId: zod.ZodString;
3357
+ name: zod.ZodString;
3358
+ tags: zod.ZodArray<zod.ZodString, "many">;
3359
+ doubleOptIn: zod.ZodBoolean;
3360
+ redirectUrl: zod.ZodNullable<zod.ZodString>;
3361
+ url: zod.ZodString;
3362
+ sendingIssue: zod.ZodNullable<zod.ZodString>;
3363
+ createdAt: zod.ZodString;
3364
+ updatedAt: zod.ZodString;
3365
+ }, "strip", zod.ZodTypeAny, {
3366
+ name: string;
3367
+ tags: string[];
3368
+ updatedAt: string;
3369
+ createdAt: string;
3370
+ url: string;
3371
+ formId: string;
3372
+ doubleOptIn: boolean;
3373
+ redirectUrl: string | null;
3374
+ sendingIssue: string | null;
3375
+ }, {
3376
+ name: string;
3377
+ tags: string[];
3378
+ updatedAt: string;
3379
+ createdAt: string;
3380
+ url: string;
3381
+ formId: string;
3382
+ doubleOptIn: boolean;
3383
+ redirectUrl: string | null;
3384
+ sendingIssue: string | null;
3385
+ }>;
3386
+ 400: zod.ZodObject<{
3387
+ error: zod.ZodString;
3388
+ }, "strip", zod.ZodTypeAny, {
3389
+ error: string;
3390
+ }, {
3391
+ error: string;
3392
+ }>;
3393
+ 422: zod.ZodObject<{
3394
+ error: zod.ZodLiteral<"confirmation_sender_unavailable">;
3395
+ message: zod.ZodString;
3396
+ }, "strip", zod.ZodTypeAny, {
3397
+ error: "confirmation_sender_unavailable";
3398
+ message: string;
3399
+ }, {
3400
+ error: "confirmation_sender_unavailable";
3401
+ message: string;
3402
+ }>;
3403
+ };
3404
+ path: "/forms";
3405
+ };
3406
+ get: {
3407
+ summary: "Get a signup form";
3408
+ metadata: {
3409
+ tag: string;
3410
+ };
3411
+ method: "GET";
3412
+ responses: {
3413
+ 200: zod.ZodObject<{
3414
+ formId: zod.ZodString;
3415
+ name: zod.ZodString;
3416
+ tags: zod.ZodArray<zod.ZodString, "many">;
3417
+ doubleOptIn: zod.ZodBoolean;
3418
+ redirectUrl: zod.ZodNullable<zod.ZodString>;
3419
+ url: zod.ZodString;
3420
+ sendingIssue: zod.ZodNullable<zod.ZodString>;
3421
+ createdAt: zod.ZodString;
3422
+ updatedAt: zod.ZodString;
3423
+ }, "strip", zod.ZodTypeAny, {
3424
+ name: string;
3425
+ tags: string[];
3426
+ updatedAt: string;
3427
+ createdAt: string;
3428
+ url: string;
3429
+ formId: string;
3430
+ doubleOptIn: boolean;
3431
+ redirectUrl: string | null;
3432
+ sendingIssue: string | null;
3433
+ }, {
3434
+ name: string;
3435
+ tags: string[];
3436
+ updatedAt: string;
3437
+ createdAt: string;
3438
+ url: string;
3439
+ formId: string;
3440
+ doubleOptIn: boolean;
3441
+ redirectUrl: string | null;
3442
+ sendingIssue: string | null;
3443
+ }>;
3444
+ 404: zod.ZodObject<{
3445
+ error: zod.ZodString;
3446
+ }, "strip", zod.ZodTypeAny, {
3447
+ error: string;
3448
+ }, {
3449
+ error: string;
3450
+ }>;
3451
+ };
3452
+ path: "/forms/:formId";
3453
+ };
3454
+ update: {
3455
+ summary: "Update a signup form";
3456
+ description: "Turning double opt-in on fails with 422 `confirmation_sender_unavailable` when the team can't send the confirmation email.";
3457
+ metadata: {
3458
+ tag: string;
3459
+ };
3460
+ method: "PATCH";
3461
+ body: zod.ZodObject<{
3462
+ name: zod.ZodOptional<zod.ZodString>;
3463
+ tags: zod.ZodOptional<zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>>;
3464
+ doubleOptIn: zod.ZodOptional<zod.ZodOptional<zod.ZodBoolean>>;
3465
+ redirectUrl: zod.ZodOptional<zod.ZodOptional<zod.ZodNullable<zod.ZodEffects<zod.ZodString, string, string>>>>;
3466
+ }, "strip", zod.ZodTypeAny, {
3467
+ name?: string | undefined;
3468
+ tags?: string[] | undefined;
3469
+ doubleOptIn?: boolean | undefined;
3470
+ redirectUrl?: string | null | undefined;
3471
+ }, {
3472
+ name?: string | undefined;
3473
+ tags?: string[] | undefined;
3474
+ doubleOptIn?: boolean | undefined;
3475
+ redirectUrl?: string | null | undefined;
3476
+ }>;
3477
+ responses: {
3478
+ 200: zod.ZodObject<{
3479
+ formId: zod.ZodString;
3480
+ name: zod.ZodString;
3481
+ tags: zod.ZodArray<zod.ZodString, "many">;
3482
+ doubleOptIn: zod.ZodBoolean;
3483
+ redirectUrl: zod.ZodNullable<zod.ZodString>;
3484
+ url: zod.ZodString;
3485
+ sendingIssue: zod.ZodNullable<zod.ZodString>;
3486
+ createdAt: zod.ZodString;
3487
+ updatedAt: zod.ZodString;
3488
+ }, "strip", zod.ZodTypeAny, {
3489
+ name: string;
3490
+ tags: string[];
3491
+ updatedAt: string;
3492
+ createdAt: string;
3493
+ url: string;
3494
+ formId: string;
3495
+ doubleOptIn: boolean;
3496
+ redirectUrl: string | null;
3497
+ sendingIssue: string | null;
3498
+ }, {
3499
+ name: string;
3500
+ tags: string[];
3501
+ updatedAt: string;
3502
+ createdAt: string;
3503
+ url: string;
3504
+ formId: string;
3505
+ doubleOptIn: boolean;
3506
+ redirectUrl: string | null;
3507
+ sendingIssue: string | null;
3508
+ }>;
3509
+ 404: zod.ZodObject<{
3510
+ error: zod.ZodString;
3511
+ }, "strip", zod.ZodTypeAny, {
3512
+ error: string;
3513
+ }, {
3514
+ error: string;
3515
+ }>;
3516
+ 422: zod.ZodObject<{
3517
+ error: zod.ZodLiteral<"confirmation_sender_unavailable">;
3518
+ message: zod.ZodString;
3519
+ }, "strip", zod.ZodTypeAny, {
3520
+ error: "confirmation_sender_unavailable";
3521
+ message: string;
3522
+ }, {
3523
+ error: "confirmation_sender_unavailable";
3524
+ message: string;
3525
+ }>;
3526
+ };
3527
+ path: "/forms/:formId";
3528
+ };
3529
+ remove: {
3530
+ summary: "Delete a signup form";
3531
+ metadata: {
3532
+ tag: string;
3533
+ };
3534
+ method: "DELETE";
3535
+ responses: {
3536
+ 204: typeof _ts_rest_core.ContractNoBody;
3537
+ 404: zod.ZodObject<{
3538
+ error: zod.ZodString;
3539
+ }, "strip", zod.ZodTypeAny, {
3540
+ error: string;
3541
+ }, {
3542
+ error: string;
3543
+ }>;
3544
+ };
3545
+ path: "/forms/:formId";
3546
+ };
3547
+ submit: {
3548
+ summary: "Submit a signup to a form";
3549
+ description: "Signs someone up through the form from your own server, for a signup page you host yourself. It works like a submission to the form's public URL: double opt-in forms email the confirmation link and subscribe only once it's clicked, single opt-in never resubscribes someone who unsubscribed, and suppressed or disposable addresses are dropped quietly. A double opt-in form doesn't email someone who is already subscribed. Pass `clientIp` so the per-IP rate limit applies to the person, not your server. For double opt-in, `confirmation` replaces the email and points its link at your own page (for example to match your site's language); that page confirms the token with POST /forms/{formId}/confirmations. Fails with 400 `invalid_email`, 429 `too_many_requests`, or 503 `form_unavailable` when the team can't send the confirmation email.";
3550
+ metadata: {
3551
+ tag: string;
3552
+ };
3553
+ method: "POST";
3554
+ body: zod.ZodObject<{
3555
+ email: zod.ZodString;
3556
+ name: zod.ZodOptional<zod.ZodString>;
3557
+ clientIp: zod.ZodOptional<zod.ZodString>;
3558
+ confirmation: zod.ZodOptional<zod.ZodObject<{
3559
+ url: zod.ZodOptional<zod.ZodEffects<zod.ZodEffects<zod.ZodString, string, string>, string, string>>;
3560
+ email: zod.ZodOptional<zod.ZodObject<{
3561
+ subject: zod.ZodString;
3562
+ html: zod.ZodEffects<zod.ZodString, string, string>;
3563
+ text: zod.ZodEffects<zod.ZodString, string, string>;
3564
+ }, "strip", zod.ZodTypeAny, {
3565
+ text: string;
3566
+ html: string;
3567
+ subject: string;
3568
+ }, {
3569
+ text: string;
3570
+ html: string;
3571
+ subject: string;
3572
+ }>>;
3573
+ }, "strip", zod.ZodTypeAny, {
3574
+ email?: {
3575
+ text: string;
3576
+ html: string;
3577
+ subject: string;
3578
+ } | undefined;
3579
+ url?: string | undefined;
3580
+ }, {
3581
+ email?: {
3582
+ text: string;
3583
+ html: string;
3584
+ subject: string;
3585
+ } | undefined;
3586
+ url?: string | undefined;
3587
+ }>>;
3588
+ consent: zod.ZodOptional<zod.ZodObject<Pick<{
3589
+ source: zod.ZodOptional<zod.ZodString>;
3590
+ wording: zod.ZodOptional<zod.ZodString>;
3591
+ consentedAt: zod.ZodOptional<zod.ZodEffects<zod.ZodString, string, string>>;
3592
+ actor: zod.ZodOptional<zod.ZodEnum<["contact", "app"]>>;
3593
+ externalActorId: zod.ZodOptional<zod.ZodString>;
3594
+ ipAddress: zod.ZodOptional<zod.ZodString>;
3595
+ userAgent: zod.ZodOptional<zod.ZodString>;
3596
+ }, "source" | "wording" | "userAgent">, "strip", zod.ZodTypeAny, {
3597
+ source?: string | undefined;
3598
+ wording?: string | undefined;
3599
+ userAgent?: string | undefined;
3600
+ }, {
3601
+ source?: string | undefined;
3602
+ wording?: string | undefined;
3603
+ userAgent?: string | undefined;
3604
+ }>>;
3605
+ }, "strip", zod.ZodTypeAny, {
3606
+ email: string;
3607
+ name?: string | undefined;
3608
+ consent?: {
3609
+ source?: string | undefined;
3610
+ wording?: string | undefined;
3611
+ userAgent?: string | undefined;
3612
+ } | undefined;
3613
+ clientIp?: string | undefined;
3614
+ confirmation?: {
3615
+ email?: {
3616
+ text: string;
3617
+ html: string;
3618
+ subject: string;
3619
+ } | undefined;
3620
+ url?: string | undefined;
3621
+ } | undefined;
3622
+ }, {
3623
+ email: string;
3624
+ name?: string | undefined;
3625
+ consent?: {
3626
+ source?: string | undefined;
3627
+ wording?: string | undefined;
3628
+ userAgent?: string | undefined;
3629
+ } | undefined;
3630
+ clientIp?: string | undefined;
3631
+ confirmation?: {
3632
+ email?: {
3633
+ text: string;
3634
+ html: string;
3635
+ subject: string;
3636
+ } | undefined;
3637
+ url?: string | undefined;
3638
+ } | undefined;
3639
+ }>;
3640
+ responses: {
3641
+ 200: zod.ZodObject<{
3642
+ status: zod.ZodEnum<["confirmation_sent", "subscribed"]>;
3643
+ }, "strip", zod.ZodTypeAny, {
3644
+ status: "subscribed" | "confirmation_sent";
3645
+ }, {
3646
+ status: "subscribed" | "confirmation_sent";
3647
+ }>;
3648
+ 400: zod.ZodObject<{
3649
+ error: zod.ZodString;
3650
+ }, "strip", zod.ZodTypeAny, {
3651
+ error: string;
3652
+ }, {
3653
+ error: string;
3654
+ }>;
3655
+ 404: zod.ZodObject<{
3656
+ error: zod.ZodString;
3657
+ }, "strip", zod.ZodTypeAny, {
3658
+ error: string;
3659
+ }, {
3660
+ error: string;
3661
+ }>;
3662
+ 429: zod.ZodObject<{
3663
+ error: zod.ZodString;
3664
+ }, "strip", zod.ZodTypeAny, {
3665
+ error: string;
3666
+ }, {
3667
+ error: string;
3668
+ }>;
3669
+ 503: zod.ZodObject<{
3670
+ message: zod.ZodString;
3671
+ } & {
3672
+ error: zod.ZodLiteral<"form_unavailable">;
3673
+ }, "strip", zod.ZodTypeAny, {
3674
+ error: "form_unavailable";
3675
+ message: string;
3676
+ }, {
3677
+ error: "form_unavailable";
3678
+ message: string;
3679
+ }>;
3680
+ };
3681
+ path: "/forms/:formId/submissions";
3682
+ };
3683
+ confirm: {
3684
+ summary: "Confirm a double opt-in signup";
3685
+ description: "Confirms a signup from the token in its confirmation link, for a confirmation page you host yourself (see `confirmation.url` on submit). Subscribes the person with the form's tags; confirming again is harmless. Only call it when the person presses a button on your page: link scanners open emailed links too. Fails with 400 `invalid_token` when the token is unknown, expired, or belongs to another form.";
3686
+ metadata: {
3687
+ tag: string;
3688
+ };
3689
+ method: "POST";
3690
+ body: zod.ZodObject<{
3691
+ token: zod.ZodString;
3692
+ clientIp: zod.ZodOptional<zod.ZodString>;
3693
+ userAgent: zod.ZodOptional<zod.ZodString>;
3694
+ }, "strip", zod.ZodTypeAny, {
3695
+ token: string;
3696
+ userAgent?: string | undefined;
3697
+ clientIp?: string | undefined;
3698
+ }, {
3699
+ token: string;
3700
+ userAgent?: string | undefined;
3701
+ clientIp?: string | undefined;
3702
+ }>;
3703
+ responses: {
3704
+ 200: zod.ZodObject<{
3705
+ status: zod.ZodLiteral<"confirmed">;
3706
+ }, "strip", zod.ZodTypeAny, {
3707
+ status: "confirmed";
3708
+ }, {
3709
+ status: "confirmed";
3710
+ }>;
3711
+ 400: zod.ZodObject<{
3712
+ error: zod.ZodString;
3713
+ }, "strip", zod.ZodTypeAny, {
3714
+ error: string;
3715
+ }, {
3716
+ error: string;
3717
+ }>;
3718
+ 404: zod.ZodObject<{
3719
+ error: zod.ZodString;
3720
+ }, "strip", zod.ZodTypeAny, {
3721
+ error: string;
3722
+ }, {
3723
+ error: string;
3724
+ }>;
3725
+ };
3726
+ path: "/forms/:formId/confirmations";
3727
+ };
3728
+ };
3729
+ /** A public signup form, with its hosted page `url`. */
3730
+ type SignupForm = Ok<typeof routes$8.get>;
3731
+ type CreateSignupFormInput = Body<typeof routes$8.create>;
3732
+ type UpdateSignupFormInput = Body<typeof routes$8.update>;
3733
+ type SubmitSignupFormInput = Body<typeof routes$8.submit>;
3734
+ type SignupFormSubmission = Ok<typeof routes$8.submit>;
3735
+ type SignupConfirmation = Ok<typeof routes$8.confirm>;
3736
+ /** Signup forms: people subscribe on the hosted page, through an HTML form
3737
+ * posting to it, or through `submit` from your own server. */
3738
+ declare class Forms {
3739
+ private readonly http;
3740
+ constructor(http: HttpClient);
3741
+ list(): Promise<Ok<typeof routes$8.list>>;
3742
+ /** Double opt-in (the default) needs a sending mailbox: without one this
3743
+ * fails with 422 `confirmation_sender_unavailable`. */
3744
+ create(input: CreateSignupFormInput): Promise<SignupForm>;
3745
+ get(formId: string): Promise<SignupForm>;
3746
+ update(formId: string, input: UpdateSignupFormInput): Promise<SignupForm>;
3747
+ remove(formId: string): Promise<void>;
3748
+ /**
3749
+ * Signs someone up through the form from your server. A double opt-in
3750
+ * form emails them a confirmation link; pass `clientIp` so the per-IP
3751
+ * rate limit applies to them rather than to your server.
3752
+ */
3753
+ submit(formId: string, input: SubmitSignupFormInput): Promise<SignupFormSubmission>;
3754
+ /**
3755
+ * Confirms a double opt-in signup from the token in its link, for a
3756
+ * confirmation page you host (`confirmation.url` on `submit`). Call it only
3757
+ * when the person presses a button there: link scanners open links too.
3758
+ */
3759
+ confirm(formId: string, token: string): Promise<SignupConfirmation>;
3760
+ }
3761
+
3762
+ declare const routes$7: {
3763
+ get: {
3764
+ query: zod.ZodObject<{
3765
+ rangeDays: zod.ZodOptional<zod.ZodEffects<zod.ZodNumber, number, number>>;
3766
+ }, "strip", zod.ZodTypeAny, {
3767
+ rangeDays?: number | undefined;
3768
+ }, {
3769
+ rangeDays?: number | undefined;
3770
+ }>;
3771
+ summary: "Get team overview metrics for a delivery activity window";
3772
+ description: "Use `rangeDays` (1, 3, 7, or 30; default 7) to filter transactional delivery activity and scheduled broadcasts.";
3773
+ metadata: {
3774
+ tag: string;
3775
+ };
3776
+ method: "GET";
3777
+ responses: {
3778
+ 200: zod.ZodObject<{
3779
+ activeSequences: zod.ZodNumber;
3780
+ ongoingContacts: zod.ZodNumber;
3781
+ scheduledBroadcasts: zod.ZodNumber;
3782
+ mail: zod.ZodObject<{
3783
+ sent: zod.ZodNumber;
3784
+ queued: zod.ZodNumber;
3785
+ failed: zod.ZodNumber;
3786
+ bounced: zod.ZodNumber;
3787
+ }, "strip", zod.ZodTypeAny, {
3067
3788
  bounced: number;
3789
+ failed: number;
3068
3790
  sent: number;
3069
3791
  queued: number;
3792
+ }, {
3793
+ bounced: number;
3070
3794
  failed: number;
3795
+ sent: number;
3796
+ queued: number;
3797
+ }>;
3798
+ quota: zod.ZodObject<{
3799
+ dailyUsed: zod.ZodNumber;
3800
+ dailyLimit: zod.ZodNumber;
3801
+ monthlyUsed: zod.ZodNumber;
3802
+ monthlyLimit: zod.ZodNumber;
3803
+ }, "strip", zod.ZodTypeAny, {
3804
+ dailyLimit: number;
3805
+ monthlyLimit: number;
3806
+ dailyUsed: number;
3807
+ monthlyUsed: number;
3808
+ }, {
3809
+ dailyLimit: number;
3810
+ monthlyLimit: number;
3811
+ dailyUsed: number;
3812
+ monthlyUsed: number;
3813
+ }>;
3814
+ }, "strip", zod.ZodTypeAny, {
3815
+ mail: {
3816
+ bounced: number;
3817
+ failed: number;
3818
+ sent: number;
3819
+ queued: number;
3071
3820
  };
3072
- activeSequences: number;
3073
- ongoingContacts: number;
3074
- scheduledBroadcasts: number;
3075
3821
  quota: {
3076
3822
  dailyLimit: number;
3077
3823
  monthlyLimit: number;
3078
3824
  dailyUsed: number;
3079
3825
  monthlyUsed: number;
3080
3826
  };
3827
+ activeSequences: number;
3828
+ ongoingContacts: number;
3829
+ scheduledBroadcasts: number;
3081
3830
  }, {
3082
3831
  mail: {
3083
3832
  bounced: number;
3833
+ failed: number;
3084
3834
  sent: number;
3085
3835
  queued: number;
3086
- failed: number;
3087
3836
  };
3088
- activeSequences: number;
3089
- ongoingContacts: number;
3090
- scheduledBroadcasts: number;
3091
3837
  quota: {
3092
3838
  dailyLimit: number;
3093
3839
  monthlyLimit: number;
3094
3840
  dailyUsed: number;
3095
3841
  monthlyUsed: number;
3096
3842
  };
3843
+ activeSequences: number;
3844
+ ongoingContacts: number;
3845
+ scheduledBroadcasts: number;
3097
3846
  }>;
3098
3847
  };
3099
3848
  path: "/overview";
@@ -3127,15 +3876,15 @@ declare const routes$6: {
3127
3876
  }, "strip", zod.ZodTypeAny, {
3128
3877
  status: "active" | "pending_payment" | "suspended" | "abandoned" | "closed";
3129
3878
  name: string;
3879
+ updatedAt: string;
3130
3880
  organizationId: string;
3131
3881
  createdAt: string;
3132
- updatedAt: string;
3133
3882
  }, {
3134
3883
  status: "active" | "pending_payment" | "suspended" | "abandoned" | "closed";
3135
3884
  name: string;
3885
+ updatedAt: string;
3136
3886
  organizationId: string;
3137
3887
  createdAt: string;
3138
- updatedAt: string;
3139
3888
  }>;
3140
3889
  401: zod.ZodObject<{
3141
3890
  error: zod.ZodString;
@@ -3208,13 +3957,13 @@ declare const routes$6: {
3208
3957
  teamEspEnabled: zod.ZodOptional<zod.ZodBoolean>;
3209
3958
  teamCanChangeDefault: zod.ZodOptional<zod.ZodBoolean>;
3210
3959
  }, "strip", zod.ZodTypeAny, {
3211
- teamCanChangeDefault?: boolean | undefined;
3212
- teamEspEnabled?: boolean | undefined;
3213
3960
  useOrganizationDefault?: boolean | undefined;
3214
- }, {
3215
- teamCanChangeDefault?: boolean | undefined;
3216
3961
  teamEspEnabled?: boolean | undefined;
3962
+ teamCanChangeDefault?: boolean | undefined;
3963
+ }, {
3217
3964
  useOrganizationDefault?: boolean | undefined;
3965
+ teamEspEnabled?: boolean | undefined;
3966
+ teamCanChangeDefault?: boolean | undefined;
3218
3967
  }>>;
3219
3968
  quota: zod.ZodOptional<zod.ZodObject<{
3220
3969
  dailyLimit: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
@@ -3229,10 +3978,6 @@ declare const routes$6: {
3229
3978
  }, "strip", zod.ZodTypeAny, {
3230
3979
  name: string;
3231
3980
  externalId: string;
3232
- quota?: {
3233
- dailyLimit?: number | null | undefined;
3234
- monthlyLimit?: number | null | undefined;
3235
- } | undefined;
3236
3981
  postalAddress?: {
3237
3982
  line1: string;
3238
3983
  country: string;
@@ -3246,17 +3991,17 @@ declare const routes$6: {
3246
3991
  replyTo?: string | undefined;
3247
3992
  } | undefined;
3248
3993
  delivery?: {
3249
- teamCanChangeDefault?: boolean | undefined;
3250
- teamEspEnabled?: boolean | undefined;
3251
3994
  useOrganizationDefault?: boolean | undefined;
3995
+ teamEspEnabled?: boolean | undefined;
3996
+ teamCanChangeDefault?: boolean | undefined;
3252
3997
  } | undefined;
3253
- }, {
3254
- name: string;
3255
- externalId: string;
3256
3998
  quota?: {
3257
3999
  dailyLimit?: number | null | undefined;
3258
4000
  monthlyLimit?: number | null | undefined;
3259
4001
  } | undefined;
4002
+ }, {
4003
+ name: string;
4004
+ externalId: string;
3260
4005
  postalAddress?: {
3261
4006
  line1: string;
3262
4007
  country: string;
@@ -3270,9 +4015,13 @@ declare const routes$6: {
3270
4015
  replyTo?: string | undefined;
3271
4016
  } | undefined;
3272
4017
  delivery?: {
3273
- teamCanChangeDefault?: boolean | undefined;
3274
- teamEspEnabled?: boolean | undefined;
3275
4018
  useOrganizationDefault?: boolean | undefined;
4019
+ teamEspEnabled?: boolean | undefined;
4020
+ teamCanChangeDefault?: boolean | undefined;
4021
+ } | undefined;
4022
+ quota?: {
4023
+ dailyLimit?: number | null | undefined;
4024
+ monthlyLimit?: number | null | undefined;
3276
4025
  } | undefined;
3277
4026
  }>;
3278
4027
  responses: {
@@ -3388,6 +4137,7 @@ declare const routes$6: {
3388
4137
  };
3389
4138
  getTeam: {
3390
4139
  summary: "Get a provisioned team within the authenticated organization";
4140
+ 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.";
3391
4141
  metadata: {
3392
4142
  tag: string;
3393
4143
  };
@@ -3432,18 +4182,45 @@ declare const routes$6: {
3432
4182
  teamCanChangeDefault: zod.ZodBoolean;
3433
4183
  createdAt: zod.ZodNullable<zod.ZodString>;
3434
4184
  updatedAt: zod.ZodNullable<zod.ZodString>;
4185
+ health: zod.ZodObject<{
4186
+ status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
4187
+ reason: zod.ZodNullable<zod.ZodString>;
4188
+ scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
4189
+ last7Days: zod.ZodObject<{
4190
+ sent: zod.ZodNumber;
4191
+ bounced: zod.ZodNumber;
4192
+ complained: zod.ZodNumber;
4193
+ }, "strip", zod.ZodTypeAny, {
4194
+ bounced: number;
4195
+ complained: number;
4196
+ sent: number;
4197
+ }, {
4198
+ bounced: number;
4199
+ complained: number;
4200
+ sent: number;
4201
+ }>;
4202
+ }, "strip", zod.ZodTypeAny, {
4203
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4204
+ reason: string | null;
4205
+ scope: "team" | "shared_mailbox" | null;
4206
+ last7Days: {
4207
+ bounced: number;
4208
+ complained: number;
4209
+ sent: number;
4210
+ };
4211
+ }, {
4212
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4213
+ reason: string | null;
4214
+ scope: "team" | "shared_mailbox" | null;
4215
+ last7Days: {
4216
+ bounced: number;
4217
+ complained: number;
4218
+ sent: number;
4219
+ };
4220
+ }>;
3435
4221
  }, "strip", zod.ZodTypeAny, {
3436
4222
  status: "active" | "sending_suspended" | "archived";
3437
4223
  name: string;
3438
- createdAt: string | null;
3439
- updatedAt: string | null;
3440
- teamId: string;
3441
- externalId: string;
3442
- teamCanChangeDefault: boolean;
3443
- teamEspEnabled: boolean;
3444
- deliverySource: {
3445
- type: "organization";
3446
- };
3447
4224
  postalAddress: {
3448
4225
  line1: string;
3449
4226
  country: string;
@@ -3452,18 +4229,28 @@ declare const routes$6: {
3452
4229
  region?: string | undefined;
3453
4230
  postalCode?: string | undefined;
3454
4231
  } | null;
3455
- }, {
3456
- status: "active" | "sending_suspended" | "archived";
3457
- name: string;
3458
- createdAt: string | null;
3459
4232
  updatedAt: string | null;
3460
4233
  teamId: string;
3461
4234
  externalId: string;
3462
- teamCanChangeDefault: boolean;
4235
+ createdAt: string | null;
3463
4236
  teamEspEnabled: boolean;
4237
+ teamCanChangeDefault: boolean;
3464
4238
  deliverySource: {
3465
4239
  type: "organization";
3466
4240
  };
4241
+ health: {
4242
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4243
+ reason: string | null;
4244
+ scope: "team" | "shared_mailbox" | null;
4245
+ last7Days: {
4246
+ bounced: number;
4247
+ complained: number;
4248
+ sent: number;
4249
+ };
4250
+ };
4251
+ }, {
4252
+ status: "active" | "sending_suspended" | "archived";
4253
+ name: string;
3467
4254
  postalAddress: {
3468
4255
  line1: string;
3469
4256
  country: string;
@@ -3472,6 +4259,25 @@ declare const routes$6: {
3472
4259
  region?: string | undefined;
3473
4260
  postalCode?: string | undefined;
3474
4261
  } | null;
4262
+ updatedAt: string | null;
4263
+ teamId: string;
4264
+ externalId: string;
4265
+ createdAt: string | null;
4266
+ teamEspEnabled: boolean;
4267
+ teamCanChangeDefault: boolean;
4268
+ deliverySource: {
4269
+ type: "organization";
4270
+ };
4271
+ health: {
4272
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4273
+ reason: string | null;
4274
+ scope: "team" | "shared_mailbox" | null;
4275
+ last7Days: {
4276
+ bounced: number;
4277
+ complained: number;
4278
+ sent: number;
4279
+ };
4280
+ };
3475
4281
  }>;
3476
4282
  403: zod.ZodObject<{
3477
4283
  error: zod.ZodString;
@@ -3535,11 +4341,11 @@ declare const routes$6: {
3535
4341
  teamEspEnabled: zod.ZodOptional<zod.ZodBoolean>;
3536
4342
  teamCanChangeDefault: zod.ZodOptional<zod.ZodBoolean>;
3537
4343
  }, "strip", zod.ZodTypeAny, {
3538
- teamCanChangeDefault?: boolean | undefined;
3539
4344
  teamEspEnabled?: boolean | undefined;
3540
- }, {
3541
4345
  teamCanChangeDefault?: boolean | undefined;
4346
+ }, {
3542
4347
  teamEspEnabled?: boolean | undefined;
4348
+ teamCanChangeDefault?: boolean | undefined;
3543
4349
  }>>;
3544
4350
  quota: zod.ZodOptional<zod.ZodObject<{
3545
4351
  dailyLimit: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
@@ -3553,10 +4359,6 @@ declare const routes$6: {
3553
4359
  }>>;
3554
4360
  }, "strip", zod.ZodTypeAny, {
3555
4361
  name?: string | undefined;
3556
- quota?: {
3557
- dailyLimit?: number | null | undefined;
3558
- monthlyLimit?: number | null | undefined;
3559
- } | undefined;
3560
4362
  postalAddress?: {
3561
4363
  line1: string;
3562
4364
  country: string;
@@ -3570,15 +4372,15 @@ declare const routes$6: {
3570
4372
  replyTo?: string | null | undefined;
3571
4373
  } | undefined;
3572
4374
  delivery?: {
3573
- teamCanChangeDefault?: boolean | undefined;
3574
4375
  teamEspEnabled?: boolean | undefined;
4376
+ teamCanChangeDefault?: boolean | undefined;
3575
4377
  } | undefined;
3576
- }, {
3577
- name?: string | undefined;
3578
4378
  quota?: {
3579
4379
  dailyLimit?: number | null | undefined;
3580
4380
  monthlyLimit?: number | null | undefined;
3581
4381
  } | undefined;
4382
+ }, {
4383
+ name?: string | undefined;
3582
4384
  postalAddress?: {
3583
4385
  line1: string;
3584
4386
  country: string;
@@ -3592,15 +4394,15 @@ declare const routes$6: {
3592
4394
  replyTo?: string | null | undefined;
3593
4395
  } | undefined;
3594
4396
  delivery?: {
3595
- teamCanChangeDefault?: boolean | undefined;
3596
4397
  teamEspEnabled?: boolean | undefined;
4398
+ teamCanChangeDefault?: boolean | undefined;
3597
4399
  } | undefined;
3598
- }>, {
3599
- name?: string | undefined;
3600
4400
  quota?: {
3601
4401
  dailyLimit?: number | null | undefined;
3602
4402
  monthlyLimit?: number | null | undefined;
3603
4403
  } | undefined;
4404
+ }>, {
4405
+ name?: string | undefined;
3604
4406
  postalAddress?: {
3605
4407
  line1: string;
3606
4408
  country: string;
@@ -3614,15 +4416,15 @@ declare const routes$6: {
3614
4416
  replyTo?: string | null | undefined;
3615
4417
  } | undefined;
3616
4418
  delivery?: {
3617
- teamCanChangeDefault?: boolean | undefined;
3618
4419
  teamEspEnabled?: boolean | undefined;
4420
+ teamCanChangeDefault?: boolean | undefined;
3619
4421
  } | undefined;
3620
- }, {
3621
- name?: string | undefined;
3622
4422
  quota?: {
3623
4423
  dailyLimit?: number | null | undefined;
3624
4424
  monthlyLimit?: number | null | undefined;
3625
4425
  } | undefined;
4426
+ }, {
4427
+ name?: string | undefined;
3626
4428
  postalAddress?: {
3627
4429
  line1: string;
3628
4430
  country: string;
@@ -3636,8 +4438,12 @@ declare const routes$6: {
3636
4438
  replyTo?: string | null | undefined;
3637
4439
  } | undefined;
3638
4440
  delivery?: {
3639
- teamCanChangeDefault?: boolean | undefined;
3640
4441
  teamEspEnabled?: boolean | undefined;
4442
+ teamCanChangeDefault?: boolean | undefined;
4443
+ } | undefined;
4444
+ quota?: {
4445
+ dailyLimit?: number | null | undefined;
4446
+ monthlyLimit?: number | null | undefined;
3641
4447
  } | undefined;
3642
4448
  }>;
3643
4449
  responses: {
@@ -3680,18 +4486,45 @@ declare const routes$6: {
3680
4486
  teamCanChangeDefault: zod.ZodBoolean;
3681
4487
  createdAt: zod.ZodNullable<zod.ZodString>;
3682
4488
  updatedAt: zod.ZodNullable<zod.ZodString>;
4489
+ health: zod.ZodObject<{
4490
+ status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
4491
+ reason: zod.ZodNullable<zod.ZodString>;
4492
+ scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
4493
+ last7Days: zod.ZodObject<{
4494
+ sent: zod.ZodNumber;
4495
+ bounced: zod.ZodNumber;
4496
+ complained: zod.ZodNumber;
4497
+ }, "strip", zod.ZodTypeAny, {
4498
+ bounced: number;
4499
+ complained: number;
4500
+ sent: number;
4501
+ }, {
4502
+ bounced: number;
4503
+ complained: number;
4504
+ sent: number;
4505
+ }>;
4506
+ }, "strip", zod.ZodTypeAny, {
4507
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4508
+ reason: string | null;
4509
+ scope: "team" | "shared_mailbox" | null;
4510
+ last7Days: {
4511
+ bounced: number;
4512
+ complained: number;
4513
+ sent: number;
4514
+ };
4515
+ }, {
4516
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4517
+ reason: string | null;
4518
+ scope: "team" | "shared_mailbox" | null;
4519
+ last7Days: {
4520
+ bounced: number;
4521
+ complained: number;
4522
+ sent: number;
4523
+ };
4524
+ }>;
3683
4525
  }, "strip", zod.ZodTypeAny, {
3684
4526
  status: "active" | "sending_suspended" | "archived";
3685
4527
  name: string;
3686
- createdAt: string | null;
3687
- updatedAt: string | null;
3688
- teamId: string;
3689
- externalId: string;
3690
- teamCanChangeDefault: boolean;
3691
- teamEspEnabled: boolean;
3692
- deliverySource: {
3693
- type: "organization";
3694
- };
3695
4528
  postalAddress: {
3696
4529
  line1: string;
3697
4530
  country: string;
@@ -3700,18 +4533,28 @@ declare const routes$6: {
3700
4533
  region?: string | undefined;
3701
4534
  postalCode?: string | undefined;
3702
4535
  } | null;
3703
- }, {
3704
- status: "active" | "sending_suspended" | "archived";
3705
- name: string;
3706
- createdAt: string | null;
3707
4536
  updatedAt: string | null;
3708
4537
  teamId: string;
3709
4538
  externalId: string;
3710
- teamCanChangeDefault: boolean;
4539
+ createdAt: string | null;
3711
4540
  teamEspEnabled: boolean;
4541
+ teamCanChangeDefault: boolean;
3712
4542
  deliverySource: {
3713
4543
  type: "organization";
3714
4544
  };
4545
+ health: {
4546
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4547
+ reason: string | null;
4548
+ scope: "team" | "shared_mailbox" | null;
4549
+ last7Days: {
4550
+ bounced: number;
4551
+ complained: number;
4552
+ sent: number;
4553
+ };
4554
+ };
4555
+ }, {
4556
+ status: "active" | "sending_suspended" | "archived";
4557
+ name: string;
3715
4558
  postalAddress: {
3716
4559
  line1: string;
3717
4560
  country: string;
@@ -3720,6 +4563,25 @@ declare const routes$6: {
3720
4563
  region?: string | undefined;
3721
4564
  postalCode?: string | undefined;
3722
4565
  } | null;
4566
+ updatedAt: string | null;
4567
+ teamId: string;
4568
+ externalId: string;
4569
+ createdAt: string | null;
4570
+ teamEspEnabled: boolean;
4571
+ teamCanChangeDefault: boolean;
4572
+ deliverySource: {
4573
+ type: "organization";
4574
+ };
4575
+ health: {
4576
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4577
+ reason: string | null;
4578
+ scope: "team" | "shared_mailbox" | null;
4579
+ last7Days: {
4580
+ bounced: number;
4581
+ complained: number;
4582
+ sent: number;
4583
+ };
4584
+ };
3723
4585
  }>;
3724
4586
  400: zod.ZodObject<{
3725
4587
  error: zod.ZodString;
@@ -3854,23 +4716,80 @@ declare const routes$6: {
3854
4716
  city?: string | undefined;
3855
4717
  region?: string | undefined;
3856
4718
  postalCode?: string | undefined;
3857
- }>>;
3858
- teamEspEnabled: zod.ZodBoolean;
3859
- teamCanChangeDefault: zod.ZodBoolean;
3860
- createdAt: zod.ZodNullable<zod.ZodString>;
3861
- updatedAt: zod.ZodNullable<zod.ZodString>;
3862
- }, "strip", zod.ZodTypeAny, {
3863
- status: "active" | "sending_suspended" | "archived";
3864
- name: string;
3865
- createdAt: string | null;
4719
+ }>>;
4720
+ teamEspEnabled: zod.ZodBoolean;
4721
+ teamCanChangeDefault: zod.ZodBoolean;
4722
+ createdAt: zod.ZodNullable<zod.ZodString>;
4723
+ updatedAt: zod.ZodNullable<zod.ZodString>;
4724
+ health: zod.ZodObject<{
4725
+ status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
4726
+ reason: zod.ZodNullable<zod.ZodString>;
4727
+ scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
4728
+ last7Days: zod.ZodObject<{
4729
+ sent: zod.ZodNumber;
4730
+ bounced: zod.ZodNumber;
4731
+ complained: zod.ZodNumber;
4732
+ }, "strip", zod.ZodTypeAny, {
4733
+ bounced: number;
4734
+ complained: number;
4735
+ sent: number;
4736
+ }, {
4737
+ bounced: number;
4738
+ complained: number;
4739
+ sent: number;
4740
+ }>;
4741
+ }, "strip", zod.ZodTypeAny, {
4742
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4743
+ reason: string | null;
4744
+ scope: "team" | "shared_mailbox" | null;
4745
+ last7Days: {
4746
+ bounced: number;
4747
+ complained: number;
4748
+ sent: number;
4749
+ };
4750
+ }, {
4751
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4752
+ reason: string | null;
4753
+ scope: "team" | "shared_mailbox" | null;
4754
+ last7Days: {
4755
+ bounced: number;
4756
+ complained: number;
4757
+ sent: number;
4758
+ };
4759
+ }>;
4760
+ }, "strip", zod.ZodTypeAny, {
4761
+ status: "active" | "sending_suspended" | "archived";
4762
+ name: string;
4763
+ postalAddress: {
4764
+ line1: string;
4765
+ country: string;
4766
+ line2?: string | undefined;
4767
+ city?: string | undefined;
4768
+ region?: string | undefined;
4769
+ postalCode?: string | undefined;
4770
+ } | null;
3866
4771
  updatedAt: string | null;
3867
4772
  teamId: string;
3868
4773
  externalId: string;
3869
- teamCanChangeDefault: boolean;
4774
+ createdAt: string | null;
3870
4775
  teamEspEnabled: boolean;
4776
+ teamCanChangeDefault: boolean;
3871
4777
  deliverySource: {
3872
4778
  type: "organization";
3873
4779
  };
4780
+ health: {
4781
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4782
+ reason: string | null;
4783
+ scope: "team" | "shared_mailbox" | null;
4784
+ last7Days: {
4785
+ bounced: number;
4786
+ complained: number;
4787
+ sent: number;
4788
+ };
4789
+ };
4790
+ }, {
4791
+ status: "active" | "sending_suspended" | "archived";
4792
+ name: string;
3874
4793
  postalAddress: {
3875
4794
  line1: string;
3876
4795
  country: string;
@@ -3879,26 +4798,25 @@ declare const routes$6: {
3879
4798
  region?: string | undefined;
3880
4799
  postalCode?: string | undefined;
3881
4800
  } | null;
3882
- }, {
3883
- status: "active" | "sending_suspended" | "archived";
3884
- name: string;
3885
- createdAt: string | null;
3886
4801
  updatedAt: string | null;
3887
4802
  teamId: string;
3888
4803
  externalId: string;
3889
- teamCanChangeDefault: boolean;
4804
+ createdAt: string | null;
3890
4805
  teamEspEnabled: boolean;
4806
+ teamCanChangeDefault: boolean;
3891
4807
  deliverySource: {
3892
4808
  type: "organization";
3893
4809
  };
3894
- postalAddress: {
3895
- line1: string;
3896
- country: string;
3897
- line2?: string | undefined;
3898
- city?: string | undefined;
3899
- region?: string | undefined;
3900
- postalCode?: string | undefined;
3901
- } | null;
4810
+ health: {
4811
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4812
+ reason: string | null;
4813
+ scope: "team" | "shared_mailbox" | null;
4814
+ last7Days: {
4815
+ bounced: number;
4816
+ complained: number;
4817
+ sent: number;
4818
+ };
4819
+ };
3902
4820
  }>;
3903
4821
  403: zod.ZodObject<{
3904
4822
  error: zod.ZodString;
@@ -3971,18 +4889,45 @@ declare const routes$6: {
3971
4889
  teamCanChangeDefault: zod.ZodBoolean;
3972
4890
  createdAt: zod.ZodNullable<zod.ZodString>;
3973
4891
  updatedAt: zod.ZodNullable<zod.ZodString>;
4892
+ health: zod.ZodObject<{
4893
+ status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
4894
+ reason: zod.ZodNullable<zod.ZodString>;
4895
+ scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
4896
+ last7Days: zod.ZodObject<{
4897
+ sent: zod.ZodNumber;
4898
+ bounced: zod.ZodNumber;
4899
+ complained: zod.ZodNumber;
4900
+ }, "strip", zod.ZodTypeAny, {
4901
+ bounced: number;
4902
+ complained: number;
4903
+ sent: number;
4904
+ }, {
4905
+ bounced: number;
4906
+ complained: number;
4907
+ sent: number;
4908
+ }>;
4909
+ }, "strip", zod.ZodTypeAny, {
4910
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4911
+ reason: string | null;
4912
+ scope: "team" | "shared_mailbox" | null;
4913
+ last7Days: {
4914
+ bounced: number;
4915
+ complained: number;
4916
+ sent: number;
4917
+ };
4918
+ }, {
4919
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4920
+ reason: string | null;
4921
+ scope: "team" | "shared_mailbox" | null;
4922
+ last7Days: {
4923
+ bounced: number;
4924
+ complained: number;
4925
+ sent: number;
4926
+ };
4927
+ }>;
3974
4928
  }, "strip", zod.ZodTypeAny, {
3975
4929
  status: "active" | "sending_suspended" | "archived";
3976
4930
  name: string;
3977
- createdAt: string | null;
3978
- updatedAt: string | null;
3979
- teamId: string;
3980
- externalId: string;
3981
- teamCanChangeDefault: boolean;
3982
- teamEspEnabled: boolean;
3983
- deliverySource: {
3984
- type: "organization";
3985
- };
3986
4931
  postalAddress: {
3987
4932
  line1: string;
3988
4933
  country: string;
@@ -3991,18 +4936,28 @@ declare const routes$6: {
3991
4936
  region?: string | undefined;
3992
4937
  postalCode?: string | undefined;
3993
4938
  } | null;
3994
- }, {
3995
- status: "active" | "sending_suspended" | "archived";
3996
- name: string;
3997
- createdAt: string | null;
3998
4939
  updatedAt: string | null;
3999
4940
  teamId: string;
4000
4941
  externalId: string;
4001
- teamCanChangeDefault: boolean;
4942
+ createdAt: string | null;
4002
4943
  teamEspEnabled: boolean;
4944
+ teamCanChangeDefault: boolean;
4003
4945
  deliverySource: {
4004
4946
  type: "organization";
4005
4947
  };
4948
+ health: {
4949
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4950
+ reason: string | null;
4951
+ scope: "team" | "shared_mailbox" | null;
4952
+ last7Days: {
4953
+ bounced: number;
4954
+ complained: number;
4955
+ sent: number;
4956
+ };
4957
+ };
4958
+ }, {
4959
+ status: "active" | "sending_suspended" | "archived";
4960
+ name: string;
4006
4961
  postalAddress: {
4007
4962
  line1: string;
4008
4963
  country: string;
@@ -4011,6 +4966,25 @@ declare const routes$6: {
4011
4966
  region?: string | undefined;
4012
4967
  postalCode?: string | undefined;
4013
4968
  } | null;
4969
+ updatedAt: string | null;
4970
+ teamId: string;
4971
+ externalId: string;
4972
+ createdAt: string | null;
4973
+ teamEspEnabled: boolean;
4974
+ teamCanChangeDefault: boolean;
4975
+ deliverySource: {
4976
+ type: "organization";
4977
+ };
4978
+ health: {
4979
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
4980
+ reason: string | null;
4981
+ scope: "team" | "shared_mailbox" | null;
4982
+ last7Days: {
4983
+ bounced: number;
4984
+ complained: number;
4985
+ sent: number;
4986
+ };
4987
+ };
4014
4988
  }>;
4015
4989
  403: zod.ZodObject<{
4016
4990
  error: zod.ZodString;
@@ -4061,8 +5035,253 @@ declare const routes$6: {
4061
5035
  };
4062
5036
  path: "/provisioning/teams/:teamId";
4063
5037
  };
5038
+ getTeamSendingDomain: {
5039
+ summary: "Check a provisioned team's own sending domain";
5040
+ 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.";
5041
+ metadata: {
5042
+ tag: string;
5043
+ };
5044
+ method: "GET";
5045
+ responses: {
5046
+ 200: zod.ZodNullable<zod.ZodObject<{
5047
+ domain: zod.ZodString;
5048
+ fromEmail: zod.ZodNullable<zod.ZodString>;
5049
+ status: zod.ZodEnum<["pending", "verified", "failing"]>;
5050
+ dkim: zod.ZodEnum<["pending", "verified", "failed"]>;
5051
+ dmarc: zod.ZodEnum<["pass", "missing"]>;
5052
+ inUse: zod.ZodBoolean;
5053
+ records: zod.ZodArray<zod.ZodObject<{
5054
+ type: zod.ZodEnum<["CNAME", "TXT"]>;
5055
+ name: zod.ZodString;
5056
+ value: zod.ZodString;
5057
+ purpose: zod.ZodEnum<["dkim", "dmarc"]>;
5058
+ present: zod.ZodOptional<zod.ZodBoolean>;
5059
+ }, "strip", zod.ZodTypeAny, {
5060
+ value: string;
5061
+ type: "CNAME" | "TXT";
5062
+ name: string;
5063
+ purpose: "dkim" | "dmarc";
5064
+ present?: boolean | undefined;
5065
+ }, {
5066
+ value: string;
5067
+ type: "CNAME" | "TXT";
5068
+ name: string;
5069
+ purpose: "dkim" | "dmarc";
5070
+ present?: boolean | undefined;
5071
+ }>, "many">;
5072
+ verifiedAt: zod.ZodNullable<zod.ZodString>;
5073
+ failingSince: zod.ZodNullable<zod.ZodString>;
5074
+ graceEndsAt: zod.ZodNullable<zod.ZodString>;
5075
+ lastCheckedAt: zod.ZodNullable<zod.ZodString>;
5076
+ }, "strip", zod.ZodTypeAny, {
5077
+ status: "pending" | "verified" | "failing";
5078
+ domain: string;
5079
+ verifiedAt: string | null;
5080
+ graceEndsAt: string | null;
5081
+ lastCheckedAt: string | null;
5082
+ fromEmail: string | null;
5083
+ inUse: boolean;
5084
+ dkim: "pending" | "verified" | "failed";
5085
+ dmarc: "pass" | "missing";
5086
+ records: {
5087
+ value: string;
5088
+ type: "CNAME" | "TXT";
5089
+ name: string;
5090
+ purpose: "dkim" | "dmarc";
5091
+ present?: boolean | undefined;
5092
+ }[];
5093
+ failingSince: string | null;
5094
+ }, {
5095
+ status: "pending" | "verified" | "failing";
5096
+ domain: string;
5097
+ verifiedAt: string | null;
5098
+ graceEndsAt: string | null;
5099
+ lastCheckedAt: string | null;
5100
+ fromEmail: string | null;
5101
+ inUse: boolean;
5102
+ dkim: "pending" | "verified" | "failed";
5103
+ dmarc: "pass" | "missing";
5104
+ records: {
5105
+ value: string;
5106
+ type: "CNAME" | "TXT";
5107
+ name: string;
5108
+ purpose: "dkim" | "dmarc";
5109
+ present?: boolean | undefined;
5110
+ }[];
5111
+ failingSince: string | null;
5112
+ }>>;
5113
+ 403: zod.ZodObject<{
5114
+ error: zod.ZodString;
5115
+ }, "strip", zod.ZodTypeAny, {
5116
+ error: string;
5117
+ }, {
5118
+ error: string;
5119
+ }>;
5120
+ 404: zod.ZodObject<{
5121
+ error: zod.ZodString;
5122
+ }, "strip", zod.ZodTypeAny, {
5123
+ error: string;
5124
+ }, {
5125
+ error: string;
5126
+ }>;
5127
+ 422: zod.ZodObject<{
5128
+ error: zod.ZodString;
5129
+ }, "strip", zod.ZodTypeAny, {
5130
+ error: string;
5131
+ }, {
5132
+ error: string;
5133
+ }>;
5134
+ };
5135
+ path: "/provisioning/teams/:teamId/sending-domain";
5136
+ };
5137
+ setTeamSendingDomain: {
5138
+ summary: "Set a provisioned team's own From address and register its domain";
5139
+ 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.";
5140
+ metadata: {
5141
+ tag: string;
5142
+ };
5143
+ method: "PUT";
5144
+ body: zod.ZodObject<{
5145
+ fromEmail: zod.ZodString;
5146
+ }, "strip", zod.ZodTypeAny, {
5147
+ fromEmail: string;
5148
+ }, {
5149
+ fromEmail: string;
5150
+ }>;
5151
+ responses: {
5152
+ 200: zod.ZodObject<{
5153
+ domain: zod.ZodString;
5154
+ fromEmail: zod.ZodNullable<zod.ZodString>;
5155
+ status: zod.ZodEnum<["pending", "verified", "failing"]>;
5156
+ dkim: zod.ZodEnum<["pending", "verified", "failed"]>;
5157
+ dmarc: zod.ZodEnum<["pass", "missing"]>;
5158
+ inUse: zod.ZodBoolean;
5159
+ records: zod.ZodArray<zod.ZodObject<{
5160
+ type: zod.ZodEnum<["CNAME", "TXT"]>;
5161
+ name: zod.ZodString;
5162
+ value: zod.ZodString;
5163
+ purpose: zod.ZodEnum<["dkim", "dmarc"]>;
5164
+ present: zod.ZodOptional<zod.ZodBoolean>;
5165
+ }, "strip", zod.ZodTypeAny, {
5166
+ value: string;
5167
+ type: "CNAME" | "TXT";
5168
+ name: string;
5169
+ purpose: "dkim" | "dmarc";
5170
+ present?: boolean | undefined;
5171
+ }, {
5172
+ value: string;
5173
+ type: "CNAME" | "TXT";
5174
+ name: string;
5175
+ purpose: "dkim" | "dmarc";
5176
+ present?: boolean | undefined;
5177
+ }>, "many">;
5178
+ verifiedAt: zod.ZodNullable<zod.ZodString>;
5179
+ failingSince: zod.ZodNullable<zod.ZodString>;
5180
+ graceEndsAt: zod.ZodNullable<zod.ZodString>;
5181
+ lastCheckedAt: zod.ZodNullable<zod.ZodString>;
5182
+ }, "strip", zod.ZodTypeAny, {
5183
+ status: "pending" | "verified" | "failing";
5184
+ domain: string;
5185
+ verifiedAt: string | null;
5186
+ graceEndsAt: string | null;
5187
+ lastCheckedAt: string | null;
5188
+ fromEmail: string | null;
5189
+ inUse: boolean;
5190
+ dkim: "pending" | "verified" | "failed";
5191
+ dmarc: "pass" | "missing";
5192
+ records: {
5193
+ value: string;
5194
+ type: "CNAME" | "TXT";
5195
+ name: string;
5196
+ purpose: "dkim" | "dmarc";
5197
+ present?: boolean | undefined;
5198
+ }[];
5199
+ failingSince: string | null;
5200
+ }, {
5201
+ status: "pending" | "verified" | "failing";
5202
+ domain: string;
5203
+ verifiedAt: string | null;
5204
+ graceEndsAt: string | null;
5205
+ lastCheckedAt: string | null;
5206
+ fromEmail: string | null;
5207
+ inUse: boolean;
5208
+ dkim: "pending" | "verified" | "failed";
5209
+ dmarc: "pass" | "missing";
5210
+ records: {
5211
+ value: string;
5212
+ type: "CNAME" | "TXT";
5213
+ name: string;
5214
+ purpose: "dkim" | "dmarc";
5215
+ present?: boolean | undefined;
5216
+ }[];
5217
+ failingSince: string | null;
5218
+ }>;
5219
+ 400: zod.ZodObject<{
5220
+ error: zod.ZodString;
5221
+ }, "strip", zod.ZodTypeAny, {
5222
+ error: string;
5223
+ }, {
5224
+ error: string;
5225
+ }>;
5226
+ 403: zod.ZodObject<{
5227
+ error: zod.ZodString;
5228
+ }, "strip", zod.ZodTypeAny, {
5229
+ error: string;
5230
+ }, {
5231
+ error: string;
5232
+ }>;
5233
+ 404: zod.ZodObject<{
5234
+ error: zod.ZodString;
5235
+ }, "strip", zod.ZodTypeAny, {
5236
+ error: string;
5237
+ }, {
5238
+ error: string;
5239
+ }>;
5240
+ 409: zod.ZodObject<{
5241
+ error: zod.ZodString;
5242
+ }, "strip", zod.ZodTypeAny, {
5243
+ error: string;
5244
+ }, {
5245
+ error: string;
5246
+ }>;
5247
+ 422: zod.ZodObject<{
5248
+ error: zod.ZodString;
5249
+ }, "strip", zod.ZodTypeAny, {
5250
+ error: string;
5251
+ }, {
5252
+ error: string;
5253
+ }>;
5254
+ };
5255
+ path: "/provisioning/teams/:teamId/sending-domain";
5256
+ };
5257
+ removeTeamSendingDomain: {
5258
+ summary: "Stop using a provisioned team's own sending domain";
5259
+ metadata: {
5260
+ tag: string;
5261
+ };
5262
+ method: "DELETE";
5263
+ responses: {
5264
+ 204: typeof _ts_rest_core.ContractNoBody;
5265
+ 403: zod.ZodObject<{
5266
+ error: zod.ZodString;
5267
+ }, "strip", zod.ZodTypeAny, {
5268
+ error: string;
5269
+ }, {
5270
+ error: string;
5271
+ }>;
5272
+ 404: zod.ZodObject<{
5273
+ error: zod.ZodString;
5274
+ }, "strip", zod.ZodTypeAny, {
5275
+ error: string;
5276
+ }, {
5277
+ error: string;
5278
+ }>;
5279
+ };
5280
+ path: "/provisioning/teams/:teamId/sending-domain";
5281
+ };
4064
5282
  getTeamUsage: {
4065
5283
  summary: "Get organization-delivery quota usage for a provisioned team";
5284
+ description: "Returns the team's day and month quota on the shared mailbox, plus its `health` (see Get a provisioned team).";
4066
5285
  metadata: {
4067
5286
  tag: string;
4068
5287
  };
@@ -4107,7 +5326,54 @@ declare const routes$6: {
4107
5326
  remaining: number | null;
4108
5327
  resetsAt: string;
4109
5328
  }>;
5329
+ } & {
5330
+ health: zod.ZodObject<{
5331
+ status: zod.ZodEnum<["normal", "warned", "marketing_paused", "all_paused"]>;
5332
+ reason: zod.ZodNullable<zod.ZodString>;
5333
+ scope: zod.ZodNullable<zod.ZodEnum<["team", "shared_mailbox"]>>;
5334
+ last7Days: zod.ZodObject<{
5335
+ sent: zod.ZodNumber;
5336
+ bounced: zod.ZodNumber;
5337
+ complained: zod.ZodNumber;
5338
+ }, "strip", zod.ZodTypeAny, {
5339
+ bounced: number;
5340
+ complained: number;
5341
+ sent: number;
5342
+ }, {
5343
+ bounced: number;
5344
+ complained: number;
5345
+ sent: number;
5346
+ }>;
5347
+ }, "strip", zod.ZodTypeAny, {
5348
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
5349
+ reason: string | null;
5350
+ scope: "team" | "shared_mailbox" | null;
5351
+ last7Days: {
5352
+ bounced: number;
5353
+ complained: number;
5354
+ sent: number;
5355
+ };
5356
+ }, {
5357
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
5358
+ reason: string | null;
5359
+ scope: "team" | "shared_mailbox" | null;
5360
+ last7Days: {
5361
+ bounced: number;
5362
+ complained: number;
5363
+ sent: number;
5364
+ };
5365
+ }>;
4110
5366
  }, "strip", zod.ZodTypeAny, {
5367
+ health: {
5368
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
5369
+ reason: string | null;
5370
+ scope: "team" | "shared_mailbox" | null;
5371
+ last7Days: {
5372
+ bounced: number;
5373
+ complained: number;
5374
+ sent: number;
5375
+ };
5376
+ };
4111
5377
  day: {
4112
5378
  limit: number | null;
4113
5379
  accepted: number;
@@ -4123,6 +5389,16 @@ declare const routes$6: {
4123
5389
  resetsAt: string;
4124
5390
  };
4125
5391
  }, {
5392
+ health: {
5393
+ status: "normal" | "warned" | "marketing_paused" | "all_paused";
5394
+ reason: string | null;
5395
+ scope: "team" | "shared_mailbox" | null;
5396
+ last7Days: {
5397
+ bounced: number;
5398
+ complained: number;
5399
+ sent: number;
5400
+ };
5401
+ };
4126
5402
  day: {
4127
5403
  limit: number | null;
4128
5404
  accepted: number;
@@ -4619,8 +5895,8 @@ declare const routes$5: {
4619
5895
  })[];
4620
5896
  };
4621
5897
  name: string;
4622
- createdAt: string | null;
4623
5898
  updatedAt: string | null;
5899
+ createdAt: string | null;
4624
5900
  segmentId: string;
4625
5901
  }, {
4626
5902
  filter: {
@@ -4654,8 +5930,8 @@ declare const routes$5: {
4654
5930
  })[];
4655
5931
  };
4656
5932
  name: string;
4657
- createdAt: string | null;
4658
5933
  updatedAt: string | null;
5934
+ createdAt: string | null;
4659
5935
  segmentId: string;
4660
5936
  }>;
4661
5937
  409: zod.ZodObject<{
@@ -4707,8 +5983,8 @@ declare const routes$5: {
4707
5983
  })[];
4708
5984
  };
4709
5985
  name: string;
4710
- createdAt: string | null;
4711
5986
  updatedAt: string | null;
5987
+ createdAt: string | null;
4712
5988
  segmentId: string;
4713
5989
  }[]>;
4714
5990
  };
@@ -4915,8 +6191,8 @@ declare const routes$5: {
4915
6191
  })[];
4916
6192
  };
4917
6193
  name: string;
4918
- createdAt: string | null;
4919
6194
  updatedAt: string | null;
6195
+ createdAt: string | null;
4920
6196
  segmentId: string;
4921
6197
  }, {
4922
6198
  filter: {
@@ -4950,8 +6226,8 @@ declare const routes$5: {
4950
6226
  })[];
4951
6227
  };
4952
6228
  name: string;
4953
- createdAt: string | null;
4954
6229
  updatedAt: string | null;
6230
+ createdAt: string | null;
4955
6231
  segmentId: string;
4956
6232
  }>;
4957
6233
  404: zod.ZodObject<{
@@ -5389,8 +6665,8 @@ declare const routes$5: {
5389
6665
  })[];
5390
6666
  };
5391
6667
  name: string;
5392
- createdAt: string | null;
5393
6668
  updatedAt: string | null;
6669
+ createdAt: string | null;
5394
6670
  segmentId: string;
5395
6671
  }, {
5396
6672
  filter: {
@@ -5424,8 +6700,8 @@ declare const routes$5: {
5424
6700
  })[];
5425
6701
  };
5426
6702
  name: string;
5427
- createdAt: string | null;
5428
6703
  updatedAt: string | null;
6704
+ createdAt: string | null;
5429
6705
  segmentId: string;
5430
6706
  }>;
5431
6707
  404: zod.ZodObject<{
@@ -5613,8 +6889,8 @@ declare const routes$4: {
5613
6889
  createdAt: zod.ZodNullable<zod.ZodString>;
5614
6890
  updatedAt: zod.ZodNullable<zod.ZodString>;
5615
6891
  }, "strip", zod.ZodTypeAny, {
5616
- createdAt: string | null;
5617
6892
  updatedAt: string | null;
6893
+ createdAt: string | null;
5618
6894
  content: {
5619
6895
  style: Record<string, any>;
5620
6896
  meta: Record<string, any>;
@@ -5640,8 +6916,8 @@ declare const routes$4: {
5640
6916
  contentScanVerdict?: string | null | undefined;
5641
6917
  hasUnpublishedChanges?: boolean | undefined;
5642
6918
  }, {
5643
- createdAt: string | null;
5644
6919
  updatedAt: string | null;
6920
+ createdAt: string | null;
5645
6921
  content: {
5646
6922
  style: Record<string, any>;
5647
6923
  meta: Record<string, any>;
@@ -5675,23 +6951,23 @@ declare const routes$4: {
5675
6951
  remaining: zod.ZodNumber;
5676
6952
  estimatedCompletionAt: zod.ZodString;
5677
6953
  }, "strip", zod.ZodTypeAny, {
5678
- remaining: number;
5679
- reason: "new_account";
5680
6954
  dailyLimit: number;
6955
+ reason: "new_account";
6956
+ remaining: number;
5681
6957
  hourlyLimit: number;
5682
6958
  estimatedCompletionAt: string;
5683
6959
  }, {
5684
- remaining: number;
5685
- reason: "new_account";
5686
6960
  dailyLimit: number;
6961
+ reason: "new_account";
6962
+ remaining: number;
5687
6963
  hourlyLimit: number;
5688
6964
  estimatedCompletionAt: string;
5689
6965
  }>>>;
5690
6966
  }, "strip", zod.ZodTypeAny, {
5691
6967
  type: string;
5692
6968
  status: string;
5693
- createdAt: string | null;
5694
6969
  updatedAt: string | null;
6970
+ createdAt: string | null;
5695
6971
  deliverySource: {
5696
6972
  type: "organization";
5697
6973
  } | {
@@ -5704,8 +6980,8 @@ declare const routes$4: {
5704
6980
  entrants: string[];
5705
6981
  viewInBrowser: boolean;
5706
6982
  emails: {
5707
- createdAt: string | null;
5708
6983
  updatedAt: string | null;
6984
+ createdAt: string | null;
5709
6985
  content: {
5710
6986
  style: Record<string, any>;
5711
6987
  meta: Record<string, any>;
@@ -5743,17 +7019,17 @@ declare const routes$4: {
5743
7019
  report?: any;
5744
7020
  archivedAt?: string | null | undefined;
5745
7021
  pacing?: {
5746
- remaining: number;
5747
- reason: "new_account";
5748
7022
  dailyLimit: number;
7023
+ reason: "new_account";
7024
+ remaining: number;
5749
7025
  hourlyLimit: number;
5750
7026
  estimatedCompletionAt: string;
5751
7027
  } | null | undefined;
5752
7028
  }, {
5753
7029
  type: string;
5754
7030
  status: string;
5755
- createdAt: string | null;
5756
7031
  updatedAt: string | null;
7032
+ createdAt: string | null;
5757
7033
  deliverySource: {
5758
7034
  type: "organization";
5759
7035
  } | {
@@ -5766,8 +7042,8 @@ declare const routes$4: {
5766
7042
  entrants: string[];
5767
7043
  viewInBrowser: boolean;
5768
7044
  emails: {
5769
- createdAt: string | null;
5770
7045
  updatedAt: string | null;
7046
+ createdAt: string | null;
5771
7047
  content: {
5772
7048
  style: Record<string, any>;
5773
7049
  meta: Record<string, any>;
@@ -5805,9 +7081,9 @@ declare const routes$4: {
5805
7081
  report?: any;
5806
7082
  archivedAt?: string | null | undefined;
5807
7083
  pacing?: {
5808
- remaining: number;
5809
- reason: "new_account";
5810
7084
  dailyLimit: number;
7085
+ reason: "new_account";
7086
+ remaining: number;
5811
7087
  hourlyLimit: number;
5812
7088
  estimatedCompletionAt: string;
5813
7089
  } | null | undefined;
@@ -5950,8 +7226,8 @@ declare const routes$4: {
5950
7226
  createdAt: zod.ZodNullable<zod.ZodString>;
5951
7227
  updatedAt: zod.ZodNullable<zod.ZodString>;
5952
7228
  }, "strip", zod.ZodTypeAny, {
5953
- createdAt: string | null;
5954
7229
  updatedAt: string | null;
7230
+ createdAt: string | null;
5955
7231
  content: {
5956
7232
  style: Record<string, any>;
5957
7233
  meta: Record<string, any>;
@@ -5977,8 +7253,8 @@ declare const routes$4: {
5977
7253
  contentScanVerdict?: string | null | undefined;
5978
7254
  hasUnpublishedChanges?: boolean | undefined;
5979
7255
  }, {
5980
- createdAt: string | null;
5981
7256
  updatedAt: string | null;
7257
+ createdAt: string | null;
5982
7258
  content: {
5983
7259
  style: Record<string, any>;
5984
7260
  meta: Record<string, any>;
@@ -6012,23 +7288,23 @@ declare const routes$4: {
6012
7288
  remaining: zod.ZodNumber;
6013
7289
  estimatedCompletionAt: zod.ZodString;
6014
7290
  }, "strip", zod.ZodTypeAny, {
6015
- remaining: number;
6016
- reason: "new_account";
6017
7291
  dailyLimit: number;
7292
+ reason: "new_account";
7293
+ remaining: number;
6018
7294
  hourlyLimit: number;
6019
7295
  estimatedCompletionAt: string;
6020
7296
  }, {
6021
- remaining: number;
6022
- reason: "new_account";
6023
7297
  dailyLimit: number;
7298
+ reason: "new_account";
7299
+ remaining: number;
6024
7300
  hourlyLimit: number;
6025
7301
  estimatedCompletionAt: string;
6026
7302
  }>>>;
6027
7303
  }, "strip", zod.ZodTypeAny, {
6028
7304
  type: string;
6029
7305
  status: string;
6030
- createdAt: string | null;
6031
7306
  updatedAt: string | null;
7307
+ createdAt: string | null;
6032
7308
  deliverySource: {
6033
7309
  type: "organization";
6034
7310
  } | {
@@ -6041,8 +7317,8 @@ declare const routes$4: {
6041
7317
  entrants: string[];
6042
7318
  viewInBrowser: boolean;
6043
7319
  emails: {
6044
- createdAt: string | null;
6045
7320
  updatedAt: string | null;
7321
+ createdAt: string | null;
6046
7322
  content: {
6047
7323
  style: Record<string, any>;
6048
7324
  meta: Record<string, any>;
@@ -6080,17 +7356,17 @@ declare const routes$4: {
6080
7356
  report?: any;
6081
7357
  archivedAt?: string | null | undefined;
6082
7358
  pacing?: {
6083
- remaining: number;
6084
- reason: "new_account";
6085
7359
  dailyLimit: number;
7360
+ reason: "new_account";
7361
+ remaining: number;
6086
7362
  hourlyLimit: number;
6087
7363
  estimatedCompletionAt: string;
6088
7364
  } | null | undefined;
6089
7365
  }, {
6090
7366
  type: string;
6091
7367
  status: string;
6092
- createdAt: string | null;
6093
7368
  updatedAt: string | null;
7369
+ createdAt: string | null;
6094
7370
  deliverySource: {
6095
7371
  type: "organization";
6096
7372
  } | {
@@ -6103,8 +7379,8 @@ declare const routes$4: {
6103
7379
  entrants: string[];
6104
7380
  viewInBrowser: boolean;
6105
7381
  emails: {
6106
- createdAt: string | null;
6107
7382
  updatedAt: string | null;
7383
+ createdAt: string | null;
6108
7384
  content: {
6109
7385
  style: Record<string, any>;
6110
7386
  meta: Record<string, any>;
@@ -6142,9 +7418,9 @@ declare const routes$4: {
6142
7418
  report?: any;
6143
7419
  archivedAt?: string | null | undefined;
6144
7420
  pacing?: {
6145
- remaining: number;
6146
- reason: "new_account";
6147
7421
  dailyLimit: number;
7422
+ reason: "new_account";
7423
+ remaining: number;
6148
7424
  hourlyLimit: number;
6149
7425
  estimatedCompletionAt: string;
6150
7426
  } | null | undefined;
@@ -6154,8 +7430,8 @@ declare const routes$4: {
6154
7430
  items: {
6155
7431
  type: string;
6156
7432
  status: string;
6157
- createdAt: string | null;
6158
7433
  updatedAt: string | null;
7434
+ createdAt: string | null;
6159
7435
  deliverySource: {
6160
7436
  type: "organization";
6161
7437
  } | {
@@ -6168,8 +7444,8 @@ declare const routes$4: {
6168
7444
  entrants: string[];
6169
7445
  viewInBrowser: boolean;
6170
7446
  emails: {
6171
- createdAt: string | null;
6172
7447
  updatedAt: string | null;
7448
+ createdAt: string | null;
6173
7449
  content: {
6174
7450
  style: Record<string, any>;
6175
7451
  meta: Record<string, any>;
@@ -6207,9 +7483,9 @@ declare const routes$4: {
6207
7483
  report?: any;
6208
7484
  archivedAt?: string | null | undefined;
6209
7485
  pacing?: {
6210
- remaining: number;
6211
- reason: "new_account";
6212
7486
  dailyLimit: number;
7487
+ reason: "new_account";
7488
+ remaining: number;
6213
7489
  hourlyLimit: number;
6214
7490
  estimatedCompletionAt: string;
6215
7491
  } | null | undefined;
@@ -6219,8 +7495,8 @@ declare const routes$4: {
6219
7495
  items: {
6220
7496
  type: string;
6221
7497
  status: string;
6222
- createdAt: string | null;
6223
7498
  updatedAt: string | null;
7499
+ createdAt: string | null;
6224
7500
  deliverySource: {
6225
7501
  type: "organization";
6226
7502
  } | {
@@ -6233,8 +7509,8 @@ declare const routes$4: {
6233
7509
  entrants: string[];
6234
7510
  viewInBrowser: boolean;
6235
7511
  emails: {
6236
- createdAt: string | null;
6237
7512
  updatedAt: string | null;
7513
+ createdAt: string | null;
6238
7514
  content: {
6239
7515
  style: Record<string, any>;
6240
7516
  meta: Record<string, any>;
@@ -6272,9 +7548,9 @@ declare const routes$4: {
6272
7548
  report?: any;
6273
7549
  archivedAt?: string | null | undefined;
6274
7550
  pacing?: {
6275
- remaining: number;
6276
- reason: "new_account";
6277
7551
  dailyLimit: number;
7552
+ reason: "new_account";
7553
+ remaining: number;
6278
7554
  hourlyLimit: number;
6279
7555
  estimatedCompletionAt: string;
6280
7556
  } | null | undefined;
@@ -6387,8 +7663,8 @@ declare const routes$4: {
6387
7663
  createdAt: zod.ZodNullable<zod.ZodString>;
6388
7664
  updatedAt: zod.ZodNullable<zod.ZodString>;
6389
7665
  }, "strip", zod.ZodTypeAny, {
6390
- createdAt: string | null;
6391
7666
  updatedAt: string | null;
7667
+ createdAt: string | null;
6392
7668
  content: {
6393
7669
  style: Record<string, any>;
6394
7670
  meta: Record<string, any>;
@@ -6414,8 +7690,8 @@ declare const routes$4: {
6414
7690
  contentScanVerdict?: string | null | undefined;
6415
7691
  hasUnpublishedChanges?: boolean | undefined;
6416
7692
  }, {
6417
- createdAt: string | null;
6418
7693
  updatedAt: string | null;
7694
+ createdAt: string | null;
6419
7695
  content: {
6420
7696
  style: Record<string, any>;
6421
7697
  meta: Record<string, any>;
@@ -6449,23 +7725,23 @@ declare const routes$4: {
6449
7725
  remaining: zod.ZodNumber;
6450
7726
  estimatedCompletionAt: zod.ZodString;
6451
7727
  }, "strip", zod.ZodTypeAny, {
6452
- remaining: number;
6453
- reason: "new_account";
6454
7728
  dailyLimit: number;
7729
+ reason: "new_account";
7730
+ remaining: number;
6455
7731
  hourlyLimit: number;
6456
7732
  estimatedCompletionAt: string;
6457
7733
  }, {
6458
- remaining: number;
6459
- reason: "new_account";
6460
7734
  dailyLimit: number;
7735
+ reason: "new_account";
7736
+ remaining: number;
6461
7737
  hourlyLimit: number;
6462
7738
  estimatedCompletionAt: string;
6463
7739
  }>>>;
6464
7740
  }, "strip", zod.ZodTypeAny, {
6465
7741
  type: string;
6466
7742
  status: string;
6467
- createdAt: string | null;
6468
7743
  updatedAt: string | null;
7744
+ createdAt: string | null;
6469
7745
  deliverySource: {
6470
7746
  type: "organization";
6471
7747
  } | {
@@ -6478,8 +7754,8 @@ declare const routes$4: {
6478
7754
  entrants: string[];
6479
7755
  viewInBrowser: boolean;
6480
7756
  emails: {
6481
- createdAt: string | null;
6482
7757
  updatedAt: string | null;
7758
+ createdAt: string | null;
6483
7759
  content: {
6484
7760
  style: Record<string, any>;
6485
7761
  meta: Record<string, any>;
@@ -6517,17 +7793,17 @@ declare const routes$4: {
6517
7793
  report?: any;
6518
7794
  archivedAt?: string | null | undefined;
6519
7795
  pacing?: {
6520
- remaining: number;
6521
- reason: "new_account";
6522
7796
  dailyLimit: number;
7797
+ reason: "new_account";
7798
+ remaining: number;
6523
7799
  hourlyLimit: number;
6524
7800
  estimatedCompletionAt: string;
6525
7801
  } | null | undefined;
6526
7802
  }, {
6527
7803
  type: string;
6528
7804
  status: string;
6529
- createdAt: string | null;
6530
7805
  updatedAt: string | null;
7806
+ createdAt: string | null;
6531
7807
  deliverySource: {
6532
7808
  type: "organization";
6533
7809
  } | {
@@ -6540,8 +7816,8 @@ declare const routes$4: {
6540
7816
  entrants: string[];
6541
7817
  viewInBrowser: boolean;
6542
7818
  emails: {
6543
- createdAt: string | null;
6544
7819
  updatedAt: string | null;
7820
+ createdAt: string | null;
6545
7821
  content: {
6546
7822
  style: Record<string, any>;
6547
7823
  meta: Record<string, any>;
@@ -6579,9 +7855,9 @@ declare const routes$4: {
6579
7855
  report?: any;
6580
7856
  archivedAt?: string | null | undefined;
6581
7857
  pacing?: {
6582
- remaining: number;
6583
- reason: "new_account";
6584
7858
  dailyLimit: number;
7859
+ reason: "new_account";
7860
+ remaining: number;
6585
7861
  hourlyLimit: number;
6586
7862
  estimatedCompletionAt: string;
6587
7863
  } | null | undefined;
@@ -7256,8 +8532,8 @@ declare const routes$4: {
7256
8532
  createdAt: zod.ZodNullable<zod.ZodString>;
7257
8533
  updatedAt: zod.ZodNullable<zod.ZodString>;
7258
8534
  }, "strip", zod.ZodTypeAny, {
7259
- createdAt: string | null;
7260
8535
  updatedAt: string | null;
8536
+ createdAt: string | null;
7261
8537
  content: {
7262
8538
  style: Record<string, any>;
7263
8539
  meta: Record<string, any>;
@@ -7283,8 +8559,8 @@ declare const routes$4: {
7283
8559
  contentScanVerdict?: string | null | undefined;
7284
8560
  hasUnpublishedChanges?: boolean | undefined;
7285
8561
  }, {
7286
- createdAt: string | null;
7287
8562
  updatedAt: string | null;
8563
+ createdAt: string | null;
7288
8564
  content: {
7289
8565
  style: Record<string, any>;
7290
8566
  meta: Record<string, any>;
@@ -7318,23 +8594,23 @@ declare const routes$4: {
7318
8594
  remaining: zod.ZodNumber;
7319
8595
  estimatedCompletionAt: zod.ZodString;
7320
8596
  }, "strip", zod.ZodTypeAny, {
7321
- remaining: number;
7322
- reason: "new_account";
7323
8597
  dailyLimit: number;
8598
+ reason: "new_account";
8599
+ remaining: number;
7324
8600
  hourlyLimit: number;
7325
8601
  estimatedCompletionAt: string;
7326
8602
  }, {
7327
- remaining: number;
7328
- reason: "new_account";
7329
8603
  dailyLimit: number;
8604
+ reason: "new_account";
8605
+ remaining: number;
7330
8606
  hourlyLimit: number;
7331
8607
  estimatedCompletionAt: string;
7332
8608
  }>>>;
7333
8609
  }, "strip", zod.ZodTypeAny, {
7334
8610
  type: string;
7335
8611
  status: string;
7336
- createdAt: string | null;
7337
8612
  updatedAt: string | null;
8613
+ createdAt: string | null;
7338
8614
  deliverySource: {
7339
8615
  type: "organization";
7340
8616
  } | {
@@ -7347,8 +8623,8 @@ declare const routes$4: {
7347
8623
  entrants: string[];
7348
8624
  viewInBrowser: boolean;
7349
8625
  emails: {
7350
- createdAt: string | null;
7351
8626
  updatedAt: string | null;
8627
+ createdAt: string | null;
7352
8628
  content: {
7353
8629
  style: Record<string, any>;
7354
8630
  meta: Record<string, any>;
@@ -7386,17 +8662,17 @@ declare const routes$4: {
7386
8662
  report?: any;
7387
8663
  archivedAt?: string | null | undefined;
7388
8664
  pacing?: {
7389
- remaining: number;
7390
- reason: "new_account";
7391
8665
  dailyLimit: number;
8666
+ reason: "new_account";
8667
+ remaining: number;
7392
8668
  hourlyLimit: number;
7393
8669
  estimatedCompletionAt: string;
7394
8670
  } | null | undefined;
7395
8671
  }, {
7396
8672
  type: string;
7397
8673
  status: string;
7398
- createdAt: string | null;
7399
8674
  updatedAt: string | null;
8675
+ createdAt: string | null;
7400
8676
  deliverySource: {
7401
8677
  type: "organization";
7402
8678
  } | {
@@ -7409,8 +8685,8 @@ declare const routes$4: {
7409
8685
  entrants: string[];
7410
8686
  viewInBrowser: boolean;
7411
8687
  emails: {
7412
- createdAt: string | null;
7413
8688
  updatedAt: string | null;
8689
+ createdAt: string | null;
7414
8690
  content: {
7415
8691
  style: Record<string, any>;
7416
8692
  meta: Record<string, any>;
@@ -7448,9 +8724,9 @@ declare const routes$4: {
7448
8724
  report?: any;
7449
8725
  archivedAt?: string | null | undefined;
7450
8726
  pacing?: {
7451
- remaining: number;
7452
- reason: "new_account";
7453
8727
  dailyLimit: number;
8728
+ reason: "new_account";
8729
+ remaining: number;
7454
8730
  hourlyLimit: number;
7455
8731
  estimatedCompletionAt: string;
7456
8732
  } | null | undefined;
@@ -7637,8 +8913,8 @@ declare const routes$4: {
7637
8913
  createdAt: zod.ZodNullable<zod.ZodString>;
7638
8914
  updatedAt: zod.ZodNullable<zod.ZodString>;
7639
8915
  }, "strip", zod.ZodTypeAny, {
7640
- createdAt: string | null;
7641
8916
  updatedAt: string | null;
8917
+ createdAt: string | null;
7642
8918
  content: {
7643
8919
  style: Record<string, any>;
7644
8920
  meta: Record<string, any>;
@@ -7664,8 +8940,8 @@ declare const routes$4: {
7664
8940
  contentScanVerdict?: string | null | undefined;
7665
8941
  hasUnpublishedChanges?: boolean | undefined;
7666
8942
  }, {
7667
- createdAt: string | null;
7668
8943
  updatedAt: string | null;
8944
+ createdAt: string | null;
7669
8945
  content: {
7670
8946
  style: Record<string, any>;
7671
8947
  meta: Record<string, any>;
@@ -7699,23 +8975,23 @@ declare const routes$4: {
7699
8975
  remaining: zod.ZodNumber;
7700
8976
  estimatedCompletionAt: zod.ZodString;
7701
8977
  }, "strip", zod.ZodTypeAny, {
7702
- remaining: number;
7703
- reason: "new_account";
7704
8978
  dailyLimit: number;
8979
+ reason: "new_account";
8980
+ remaining: number;
7705
8981
  hourlyLimit: number;
7706
8982
  estimatedCompletionAt: string;
7707
8983
  }, {
7708
- remaining: number;
7709
- reason: "new_account";
7710
8984
  dailyLimit: number;
8985
+ reason: "new_account";
8986
+ remaining: number;
7711
8987
  hourlyLimit: number;
7712
8988
  estimatedCompletionAt: string;
7713
8989
  }>>>;
7714
8990
  }, "strip", zod.ZodTypeAny, {
7715
8991
  type: string;
7716
8992
  status: string;
7717
- createdAt: string | null;
7718
8993
  updatedAt: string | null;
8994
+ createdAt: string | null;
7719
8995
  deliverySource: {
7720
8996
  type: "organization";
7721
8997
  } | {
@@ -7728,8 +9004,8 @@ declare const routes$4: {
7728
9004
  entrants: string[];
7729
9005
  viewInBrowser: boolean;
7730
9006
  emails: {
7731
- createdAt: string | null;
7732
9007
  updatedAt: string | null;
9008
+ createdAt: string | null;
7733
9009
  content: {
7734
9010
  style: Record<string, any>;
7735
9011
  meta: Record<string, any>;
@@ -7767,17 +9043,17 @@ declare const routes$4: {
7767
9043
  report?: any;
7768
9044
  archivedAt?: string | null | undefined;
7769
9045
  pacing?: {
7770
- remaining: number;
7771
- reason: "new_account";
7772
9046
  dailyLimit: number;
9047
+ reason: "new_account";
9048
+ remaining: number;
7773
9049
  hourlyLimit: number;
7774
9050
  estimatedCompletionAt: string;
7775
9051
  } | null | undefined;
7776
9052
  }, {
7777
9053
  type: string;
7778
9054
  status: string;
7779
- createdAt: string | null;
7780
9055
  updatedAt: string | null;
9056
+ createdAt: string | null;
7781
9057
  deliverySource: {
7782
9058
  type: "organization";
7783
9059
  } | {
@@ -7790,8 +9066,8 @@ declare const routes$4: {
7790
9066
  entrants: string[];
7791
9067
  viewInBrowser: boolean;
7792
9068
  emails: {
7793
- createdAt: string | null;
7794
9069
  updatedAt: string | null;
9070
+ createdAt: string | null;
7795
9071
  content: {
7796
9072
  style: Record<string, any>;
7797
9073
  meta: Record<string, any>;
@@ -7829,9 +9105,9 @@ declare const routes$4: {
7829
9105
  report?: any;
7830
9106
  archivedAt?: string | null | undefined;
7831
9107
  pacing?: {
7832
- remaining: number;
7833
- reason: "new_account";
7834
9108
  dailyLimit: number;
9109
+ reason: "new_account";
9110
+ remaining: number;
7835
9111
  hourlyLimit: number;
7836
9112
  estimatedCompletionAt: string;
7837
9113
  } | null | undefined;
@@ -7958,8 +9234,8 @@ declare const routes$4: {
7958
9234
  createdAt: zod.ZodNullable<zod.ZodString>;
7959
9235
  updatedAt: zod.ZodNullable<zod.ZodString>;
7960
9236
  }, "strip", zod.ZodTypeAny, {
7961
- createdAt: string | null;
7962
9237
  updatedAt: string | null;
9238
+ createdAt: string | null;
7963
9239
  content: {
7964
9240
  style: Record<string, any>;
7965
9241
  meta: Record<string, any>;
@@ -7985,8 +9261,8 @@ declare const routes$4: {
7985
9261
  contentScanVerdict?: string | null | undefined;
7986
9262
  hasUnpublishedChanges?: boolean | undefined;
7987
9263
  }, {
7988
- createdAt: string | null;
7989
9264
  updatedAt: string | null;
9265
+ createdAt: string | null;
7990
9266
  content: {
7991
9267
  style: Record<string, any>;
7992
9268
  meta: Record<string, any>;
@@ -8020,23 +9296,23 @@ declare const routes$4: {
8020
9296
  remaining: zod.ZodNumber;
8021
9297
  estimatedCompletionAt: zod.ZodString;
8022
9298
  }, "strip", zod.ZodTypeAny, {
8023
- remaining: number;
8024
- reason: "new_account";
8025
9299
  dailyLimit: number;
9300
+ reason: "new_account";
9301
+ remaining: number;
8026
9302
  hourlyLimit: number;
8027
9303
  estimatedCompletionAt: string;
8028
9304
  }, {
8029
- remaining: number;
8030
- reason: "new_account";
8031
9305
  dailyLimit: number;
9306
+ reason: "new_account";
9307
+ remaining: number;
8032
9308
  hourlyLimit: number;
8033
9309
  estimatedCompletionAt: string;
8034
9310
  }>>>;
8035
9311
  }, "strip", zod.ZodTypeAny, {
8036
9312
  type: string;
8037
9313
  status: string;
8038
- createdAt: string | null;
8039
9314
  updatedAt: string | null;
9315
+ createdAt: string | null;
8040
9316
  deliverySource: {
8041
9317
  type: "organization";
8042
9318
  } | {
@@ -8049,8 +9325,8 @@ declare const routes$4: {
8049
9325
  entrants: string[];
8050
9326
  viewInBrowser: boolean;
8051
9327
  emails: {
8052
- createdAt: string | null;
8053
9328
  updatedAt: string | null;
9329
+ createdAt: string | null;
8054
9330
  content: {
8055
9331
  style: Record<string, any>;
8056
9332
  meta: Record<string, any>;
@@ -8088,17 +9364,17 @@ declare const routes$4: {
8088
9364
  report?: any;
8089
9365
  archivedAt?: string | null | undefined;
8090
9366
  pacing?: {
8091
- remaining: number;
8092
- reason: "new_account";
8093
9367
  dailyLimit: number;
9368
+ reason: "new_account";
9369
+ remaining: number;
8094
9370
  hourlyLimit: number;
8095
9371
  estimatedCompletionAt: string;
8096
9372
  } | null | undefined;
8097
9373
  }, {
8098
9374
  type: string;
8099
9375
  status: string;
8100
- createdAt: string | null;
8101
9376
  updatedAt: string | null;
9377
+ createdAt: string | null;
8102
9378
  deliverySource: {
8103
9379
  type: "organization";
8104
9380
  } | {
@@ -8111,8 +9387,8 @@ declare const routes$4: {
8111
9387
  entrants: string[];
8112
9388
  viewInBrowser: boolean;
8113
9389
  emails: {
8114
- createdAt: string | null;
8115
9390
  updatedAt: string | null;
9391
+ createdAt: string | null;
8116
9392
  content: {
8117
9393
  style: Record<string, any>;
8118
9394
  meta: Record<string, any>;
@@ -8150,9 +9426,9 @@ declare const routes$4: {
8150
9426
  report?: any;
8151
9427
  archivedAt?: string | null | undefined;
8152
9428
  pacing?: {
8153
- remaining: number;
8154
- reason: "new_account";
8155
9429
  dailyLimit: number;
9430
+ reason: "new_account";
9431
+ remaining: number;
8156
9432
  hourlyLimit: number;
8157
9433
  estimatedCompletionAt: string;
8158
9434
  } | null | undefined;
@@ -8278,8 +9554,8 @@ declare const routes$4: {
8278
9554
  createdAt: zod.ZodNullable<zod.ZodString>;
8279
9555
  updatedAt: zod.ZodNullable<zod.ZodString>;
8280
9556
  }, "strip", zod.ZodTypeAny, {
8281
- createdAt: string | null;
8282
9557
  updatedAt: string | null;
9558
+ createdAt: string | null;
8283
9559
  content: {
8284
9560
  style: Record<string, any>;
8285
9561
  meta: Record<string, any>;
@@ -8305,8 +9581,8 @@ declare const routes$4: {
8305
9581
  contentScanVerdict?: string | null | undefined;
8306
9582
  hasUnpublishedChanges?: boolean | undefined;
8307
9583
  }, {
8308
- createdAt: string | null;
8309
9584
  updatedAt: string | null;
9585
+ createdAt: string | null;
8310
9586
  content: {
8311
9587
  style: Record<string, any>;
8312
9588
  meta: Record<string, any>;
@@ -8340,23 +9616,23 @@ declare const routes$4: {
8340
9616
  remaining: zod.ZodNumber;
8341
9617
  estimatedCompletionAt: zod.ZodString;
8342
9618
  }, "strip", zod.ZodTypeAny, {
8343
- remaining: number;
8344
- reason: "new_account";
8345
9619
  dailyLimit: number;
9620
+ reason: "new_account";
9621
+ remaining: number;
8346
9622
  hourlyLimit: number;
8347
9623
  estimatedCompletionAt: string;
8348
9624
  }, {
8349
- remaining: number;
8350
- reason: "new_account";
8351
9625
  dailyLimit: number;
9626
+ reason: "new_account";
9627
+ remaining: number;
8352
9628
  hourlyLimit: number;
8353
9629
  estimatedCompletionAt: string;
8354
9630
  }>>>;
8355
9631
  }, "strip", zod.ZodTypeAny, {
8356
9632
  type: string;
8357
9633
  status: string;
8358
- createdAt: string | null;
8359
9634
  updatedAt: string | null;
9635
+ createdAt: string | null;
8360
9636
  deliverySource: {
8361
9637
  type: "organization";
8362
9638
  } | {
@@ -8369,8 +9645,8 @@ declare const routes$4: {
8369
9645
  entrants: string[];
8370
9646
  viewInBrowser: boolean;
8371
9647
  emails: {
8372
- createdAt: string | null;
8373
9648
  updatedAt: string | null;
9649
+ createdAt: string | null;
8374
9650
  content: {
8375
9651
  style: Record<string, any>;
8376
9652
  meta: Record<string, any>;
@@ -8408,17 +9684,17 @@ declare const routes$4: {
8408
9684
  report?: any;
8409
9685
  archivedAt?: string | null | undefined;
8410
9686
  pacing?: {
8411
- remaining: number;
8412
- reason: "new_account";
8413
9687
  dailyLimit: number;
9688
+ reason: "new_account";
9689
+ remaining: number;
8414
9690
  hourlyLimit: number;
8415
9691
  estimatedCompletionAt: string;
8416
9692
  } | null | undefined;
8417
9693
  }, {
8418
9694
  type: string;
8419
9695
  status: string;
8420
- createdAt: string | null;
8421
9696
  updatedAt: string | null;
9697
+ createdAt: string | null;
8422
9698
  deliverySource: {
8423
9699
  type: "organization";
8424
9700
  } | {
@@ -8431,8 +9707,8 @@ declare const routes$4: {
8431
9707
  entrants: string[];
8432
9708
  viewInBrowser: boolean;
8433
9709
  emails: {
8434
- createdAt: string | null;
8435
9710
  updatedAt: string | null;
9711
+ createdAt: string | null;
8436
9712
  content: {
8437
9713
  style: Record<string, any>;
8438
9714
  meta: Record<string, any>;
@@ -8470,9 +9746,9 @@ declare const routes$4: {
8470
9746
  report?: any;
8471
9747
  archivedAt?: string | null | undefined;
8472
9748
  pacing?: {
8473
- remaining: number;
8474
- reason: "new_account";
8475
9749
  dailyLimit: number;
9750
+ reason: "new_account";
9751
+ remaining: number;
8476
9752
  hourlyLimit: number;
8477
9753
  estimatedCompletionAt: string;
8478
9754
  } | null | undefined;
@@ -9969,8 +11245,8 @@ declare const routes$4: {
9969
11245
  createdAt: zod.ZodNullable<zod.ZodString>;
9970
11246
  updatedAt: zod.ZodNullable<zod.ZodString>;
9971
11247
  }, "strip", zod.ZodTypeAny, {
9972
- createdAt: string | null;
9973
11248
  updatedAt: string | null;
11249
+ createdAt: string | null;
9974
11250
  content: {
9975
11251
  style: Record<string, any>;
9976
11252
  meta: Record<string, any>;
@@ -9996,8 +11272,8 @@ declare const routes$4: {
9996
11272
  contentScanVerdict?: string | null | undefined;
9997
11273
  hasUnpublishedChanges?: boolean | undefined;
9998
11274
  }, {
9999
- createdAt: string | null;
10000
11275
  updatedAt: string | null;
11276
+ createdAt: string | null;
10001
11277
  content: {
10002
11278
  style: Record<string, any>;
10003
11279
  meta: Record<string, any>;
@@ -10031,23 +11307,23 @@ declare const routes$4: {
10031
11307
  remaining: zod.ZodNumber;
10032
11308
  estimatedCompletionAt: zod.ZodString;
10033
11309
  }, "strip", zod.ZodTypeAny, {
10034
- remaining: number;
10035
- reason: "new_account";
10036
11310
  dailyLimit: number;
11311
+ reason: "new_account";
11312
+ remaining: number;
10037
11313
  hourlyLimit: number;
10038
11314
  estimatedCompletionAt: string;
10039
11315
  }, {
10040
- remaining: number;
10041
- reason: "new_account";
10042
11316
  dailyLimit: number;
11317
+ reason: "new_account";
11318
+ remaining: number;
10043
11319
  hourlyLimit: number;
10044
11320
  estimatedCompletionAt: string;
10045
11321
  }>>>;
10046
11322
  }, "strip", zod.ZodTypeAny, {
10047
11323
  type: string;
10048
11324
  status: string;
10049
- createdAt: string | null;
10050
11325
  updatedAt: string | null;
11326
+ createdAt: string | null;
10051
11327
  deliverySource: {
10052
11328
  type: "organization";
10053
11329
  } | {
@@ -10060,8 +11336,8 @@ declare const routes$4: {
10060
11336
  entrants: string[];
10061
11337
  viewInBrowser: boolean;
10062
11338
  emails: {
10063
- createdAt: string | null;
10064
11339
  updatedAt: string | null;
11340
+ createdAt: string | null;
10065
11341
  content: {
10066
11342
  style: Record<string, any>;
10067
11343
  meta: Record<string, any>;
@@ -10099,17 +11375,17 @@ declare const routes$4: {
10099
11375
  report?: any;
10100
11376
  archivedAt?: string | null | undefined;
10101
11377
  pacing?: {
10102
- remaining: number;
10103
- reason: "new_account";
10104
11378
  dailyLimit: number;
11379
+ reason: "new_account";
11380
+ remaining: number;
10105
11381
  hourlyLimit: number;
10106
11382
  estimatedCompletionAt: string;
10107
11383
  } | null | undefined;
10108
11384
  }, {
10109
11385
  type: string;
10110
11386
  status: string;
10111
- createdAt: string | null;
10112
11387
  updatedAt: string | null;
11388
+ createdAt: string | null;
10113
11389
  deliverySource: {
10114
11390
  type: "organization";
10115
11391
  } | {
@@ -10122,8 +11398,8 @@ declare const routes$4: {
10122
11398
  entrants: string[];
10123
11399
  viewInBrowser: boolean;
10124
11400
  emails: {
10125
- createdAt: string | null;
10126
11401
  updatedAt: string | null;
11402
+ createdAt: string | null;
10127
11403
  content: {
10128
11404
  style: Record<string, any>;
10129
11405
  meta: Record<string, any>;
@@ -10161,9 +11437,9 @@ declare const routes$4: {
10161
11437
  report?: any;
10162
11438
  archivedAt?: string | null | undefined;
10163
11439
  pacing?: {
10164
- remaining: number;
10165
- reason: "new_account";
10166
11440
  dailyLimit: number;
11441
+ reason: "new_account";
11442
+ remaining: number;
10167
11443
  hourlyLimit: number;
10168
11444
  estimatedCompletionAt: string;
10169
11445
  } | null | undefined;
@@ -10203,11 +11479,11 @@ declare const routes$4: {
10203
11479
  emailIds: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
10204
11480
  scope: zod.ZodOptional<zod.ZodEnum<["in_flight", "new_entrants"]>>;
10205
11481
  }, "strip", zod.ZodTypeAny, {
10206
- emailIds?: string[] | undefined;
10207
11482
  scope?: "in_flight" | "new_entrants" | undefined;
10208
- }, {
10209
11483
  emailIds?: string[] | undefined;
11484
+ }, {
10210
11485
  scope?: "in_flight" | "new_entrants" | undefined;
11486
+ emailIds?: string[] | undefined;
10211
11487
  }>;
10212
11488
  responses: {
10213
11489
  200: zod.ZodObject<{
@@ -10306,8 +11582,8 @@ declare const routes$4: {
10306
11582
  createdAt: zod.ZodNullable<zod.ZodString>;
10307
11583
  updatedAt: zod.ZodNullable<zod.ZodString>;
10308
11584
  }, "strip", zod.ZodTypeAny, {
10309
- createdAt: string | null;
10310
11585
  updatedAt: string | null;
11586
+ createdAt: string | null;
10311
11587
  content: {
10312
11588
  style: Record<string, any>;
10313
11589
  meta: Record<string, any>;
@@ -10333,8 +11609,8 @@ declare const routes$4: {
10333
11609
  contentScanVerdict?: string | null | undefined;
10334
11610
  hasUnpublishedChanges?: boolean | undefined;
10335
11611
  }, {
10336
- createdAt: string | null;
10337
11612
  updatedAt: string | null;
11613
+ createdAt: string | null;
10338
11614
  content: {
10339
11615
  style: Record<string, any>;
10340
11616
  meta: Record<string, any>;
@@ -10368,23 +11644,23 @@ declare const routes$4: {
10368
11644
  remaining: zod.ZodNumber;
10369
11645
  estimatedCompletionAt: zod.ZodString;
10370
11646
  }, "strip", zod.ZodTypeAny, {
10371
- remaining: number;
10372
- reason: "new_account";
10373
11647
  dailyLimit: number;
11648
+ reason: "new_account";
11649
+ remaining: number;
10374
11650
  hourlyLimit: number;
10375
11651
  estimatedCompletionAt: string;
10376
11652
  }, {
10377
- remaining: number;
10378
- reason: "new_account";
10379
11653
  dailyLimit: number;
11654
+ reason: "new_account";
11655
+ remaining: number;
10380
11656
  hourlyLimit: number;
10381
11657
  estimatedCompletionAt: string;
10382
11658
  }>>>;
10383
11659
  }, "strip", zod.ZodTypeAny, {
10384
11660
  type: string;
10385
11661
  status: string;
10386
- createdAt: string | null;
10387
11662
  updatedAt: string | null;
11663
+ createdAt: string | null;
10388
11664
  deliverySource: {
10389
11665
  type: "organization";
10390
11666
  } | {
@@ -10397,8 +11673,8 @@ declare const routes$4: {
10397
11673
  entrants: string[];
10398
11674
  viewInBrowser: boolean;
10399
11675
  emails: {
10400
- createdAt: string | null;
10401
11676
  updatedAt: string | null;
11677
+ createdAt: string | null;
10402
11678
  content: {
10403
11679
  style: Record<string, any>;
10404
11680
  meta: Record<string, any>;
@@ -10436,17 +11712,17 @@ declare const routes$4: {
10436
11712
  report?: any;
10437
11713
  archivedAt?: string | null | undefined;
10438
11714
  pacing?: {
10439
- remaining: number;
10440
- reason: "new_account";
10441
11715
  dailyLimit: number;
11716
+ reason: "new_account";
11717
+ remaining: number;
10442
11718
  hourlyLimit: number;
10443
11719
  estimatedCompletionAt: string;
10444
11720
  } | null | undefined;
10445
11721
  }, {
10446
11722
  type: string;
10447
11723
  status: string;
10448
- createdAt: string | null;
10449
11724
  updatedAt: string | null;
11725
+ createdAt: string | null;
10450
11726
  deliverySource: {
10451
11727
  type: "organization";
10452
11728
  } | {
@@ -10459,8 +11735,8 @@ declare const routes$4: {
10459
11735
  entrants: string[];
10460
11736
  viewInBrowser: boolean;
10461
11737
  emails: {
10462
- createdAt: string | null;
10463
11738
  updatedAt: string | null;
11739
+ createdAt: string | null;
10464
11740
  content: {
10465
11741
  style: Record<string, any>;
10466
11742
  meta: Record<string, any>;
@@ -10498,9 +11774,9 @@ declare const routes$4: {
10498
11774
  report?: any;
10499
11775
  archivedAt?: string | null | undefined;
10500
11776
  pacing?: {
10501
- remaining: number;
10502
- reason: "new_account";
10503
11777
  dailyLimit: number;
11778
+ reason: "new_account";
11779
+ remaining: number;
10504
11780
  hourlyLimit: number;
10505
11781
  estimatedCompletionAt: string;
10506
11782
  } | null | undefined;
@@ -10640,8 +11916,8 @@ declare const routes$4: {
10640
11916
  createdAt: zod.ZodNullable<zod.ZodString>;
10641
11917
  updatedAt: zod.ZodNullable<zod.ZodString>;
10642
11918
  }, "strip", zod.ZodTypeAny, {
10643
- createdAt: string | null;
10644
11919
  updatedAt: string | null;
11920
+ createdAt: string | null;
10645
11921
  content: {
10646
11922
  style: Record<string, any>;
10647
11923
  meta: Record<string, any>;
@@ -10667,8 +11943,8 @@ declare const routes$4: {
10667
11943
  contentScanVerdict?: string | null | undefined;
10668
11944
  hasUnpublishedChanges?: boolean | undefined;
10669
11945
  }, {
10670
- createdAt: string | null;
10671
11946
  updatedAt: string | null;
11947
+ createdAt: string | null;
10672
11948
  content: {
10673
11949
  style: Record<string, any>;
10674
11950
  meta: Record<string, any>;
@@ -10702,23 +11978,23 @@ declare const routes$4: {
10702
11978
  remaining: zod.ZodNumber;
10703
11979
  estimatedCompletionAt: zod.ZodString;
10704
11980
  }, "strip", zod.ZodTypeAny, {
10705
- remaining: number;
10706
- reason: "new_account";
10707
11981
  dailyLimit: number;
11982
+ reason: "new_account";
11983
+ remaining: number;
10708
11984
  hourlyLimit: number;
10709
11985
  estimatedCompletionAt: string;
10710
11986
  }, {
10711
- remaining: number;
10712
- reason: "new_account";
10713
11987
  dailyLimit: number;
11988
+ reason: "new_account";
11989
+ remaining: number;
10714
11990
  hourlyLimit: number;
10715
11991
  estimatedCompletionAt: string;
10716
11992
  }>>>;
10717
11993
  }, "strip", zod.ZodTypeAny, {
10718
11994
  type: string;
10719
11995
  status: string;
10720
- createdAt: string | null;
10721
11996
  updatedAt: string | null;
11997
+ createdAt: string | null;
10722
11998
  deliverySource: {
10723
11999
  type: "organization";
10724
12000
  } | {
@@ -10731,8 +12007,8 @@ declare const routes$4: {
10731
12007
  entrants: string[];
10732
12008
  viewInBrowser: boolean;
10733
12009
  emails: {
10734
- createdAt: string | null;
10735
12010
  updatedAt: string | null;
12011
+ createdAt: string | null;
10736
12012
  content: {
10737
12013
  style: Record<string, any>;
10738
12014
  meta: Record<string, any>;
@@ -10770,17 +12046,17 @@ declare const routes$4: {
10770
12046
  report?: any;
10771
12047
  archivedAt?: string | null | undefined;
10772
12048
  pacing?: {
10773
- remaining: number;
10774
- reason: "new_account";
10775
12049
  dailyLimit: number;
12050
+ reason: "new_account";
12051
+ remaining: number;
10776
12052
  hourlyLimit: number;
10777
12053
  estimatedCompletionAt: string;
10778
12054
  } | null | undefined;
10779
12055
  }, {
10780
12056
  type: string;
10781
12057
  status: string;
10782
- createdAt: string | null;
10783
12058
  updatedAt: string | null;
12059
+ createdAt: string | null;
10784
12060
  deliverySource: {
10785
12061
  type: "organization";
10786
12062
  } | {
@@ -10793,8 +12069,8 @@ declare const routes$4: {
10793
12069
  entrants: string[];
10794
12070
  viewInBrowser: boolean;
10795
12071
  emails: {
10796
- createdAt: string | null;
10797
12072
  updatedAt: string | null;
12073
+ createdAt: string | null;
10798
12074
  content: {
10799
12075
  style: Record<string, any>;
10800
12076
  meta: Record<string, any>;
@@ -10832,9 +12108,9 @@ declare const routes$4: {
10832
12108
  report?: any;
10833
12109
  archivedAt?: string | null | undefined;
10834
12110
  pacing?: {
10835
- remaining: number;
10836
- reason: "new_account";
10837
12111
  dailyLimit: number;
12112
+ reason: "new_account";
12113
+ remaining: number;
10838
12114
  hourlyLimit: number;
10839
12115
  estimatedCompletionAt: string;
10840
12116
  } | null | undefined;
@@ -11037,8 +12313,8 @@ declare const routes$4: {
11037
12313
  createdAt: zod.ZodNullable<zod.ZodString>;
11038
12314
  updatedAt: zod.ZodNullable<zod.ZodString>;
11039
12315
  }, "strip", zod.ZodTypeAny, {
11040
- createdAt: string | null;
11041
12316
  updatedAt: string | null;
12317
+ createdAt: string | null;
11042
12318
  content: {
11043
12319
  style: Record<string, any>;
11044
12320
  meta: Record<string, any>;
@@ -11064,8 +12340,8 @@ declare const routes$4: {
11064
12340
  contentScanVerdict?: string | null | undefined;
11065
12341
  hasUnpublishedChanges?: boolean | undefined;
11066
12342
  }, {
11067
- createdAt: string | null;
11068
12343
  updatedAt: string | null;
12344
+ createdAt: string | null;
11069
12345
  content: {
11070
12346
  style: Record<string, any>;
11071
12347
  meta: Record<string, any>;
@@ -11099,23 +12375,23 @@ declare const routes$4: {
11099
12375
  remaining: zod.ZodNumber;
11100
12376
  estimatedCompletionAt: zod.ZodString;
11101
12377
  }, "strip", zod.ZodTypeAny, {
11102
- remaining: number;
11103
- reason: "new_account";
11104
12378
  dailyLimit: number;
12379
+ reason: "new_account";
12380
+ remaining: number;
11105
12381
  hourlyLimit: number;
11106
12382
  estimatedCompletionAt: string;
11107
12383
  }, {
11108
- remaining: number;
11109
- reason: "new_account";
11110
12384
  dailyLimit: number;
12385
+ reason: "new_account";
12386
+ remaining: number;
11111
12387
  hourlyLimit: number;
11112
12388
  estimatedCompletionAt: string;
11113
12389
  }>>>;
11114
12390
  }, "strip", zod.ZodTypeAny, {
11115
12391
  type: string;
11116
12392
  status: string;
11117
- createdAt: string | null;
11118
12393
  updatedAt: string | null;
12394
+ createdAt: string | null;
11119
12395
  deliverySource: {
11120
12396
  type: "organization";
11121
12397
  } | {
@@ -11128,8 +12404,8 @@ declare const routes$4: {
11128
12404
  entrants: string[];
11129
12405
  viewInBrowser: boolean;
11130
12406
  emails: {
11131
- createdAt: string | null;
11132
12407
  updatedAt: string | null;
12408
+ createdAt: string | null;
11133
12409
  content: {
11134
12410
  style: Record<string, any>;
11135
12411
  meta: Record<string, any>;
@@ -11167,17 +12443,17 @@ declare const routes$4: {
11167
12443
  report?: any;
11168
12444
  archivedAt?: string | null | undefined;
11169
12445
  pacing?: {
11170
- remaining: number;
11171
- reason: "new_account";
11172
12446
  dailyLimit: number;
12447
+ reason: "new_account";
12448
+ remaining: number;
11173
12449
  hourlyLimit: number;
11174
12450
  estimatedCompletionAt: string;
11175
12451
  } | null | undefined;
11176
12452
  }, {
11177
12453
  type: string;
11178
12454
  status: string;
11179
- createdAt: string | null;
11180
12455
  updatedAt: string | null;
12456
+ createdAt: string | null;
11181
12457
  deliverySource: {
11182
12458
  type: "organization";
11183
12459
  } | {
@@ -11190,8 +12466,8 @@ declare const routes$4: {
11190
12466
  entrants: string[];
11191
12467
  viewInBrowser: boolean;
11192
12468
  emails: {
11193
- createdAt: string | null;
11194
12469
  updatedAt: string | null;
12470
+ createdAt: string | null;
11195
12471
  content: {
11196
12472
  style: Record<string, any>;
11197
12473
  meta: Record<string, any>;
@@ -11229,9 +12505,9 @@ declare const routes$4: {
11229
12505
  report?: any;
11230
12506
  archivedAt?: string | null | undefined;
11231
12507
  pacing?: {
11232
- remaining: number;
11233
- reason: "new_account";
11234
12508
  dailyLimit: number;
12509
+ reason: "new_account";
12510
+ remaining: number;
11235
12511
  hourlyLimit: number;
11236
12512
  estimatedCompletionAt: string;
11237
12513
  } | null | undefined;
@@ -11427,8 +12703,8 @@ declare const routes$4: {
11427
12703
  createdAt: zod.ZodNullable<zod.ZodString>;
11428
12704
  updatedAt: zod.ZodNullable<zod.ZodString>;
11429
12705
  }, "strip", zod.ZodTypeAny, {
11430
- createdAt: string | null;
11431
12706
  updatedAt: string | null;
12707
+ createdAt: string | null;
11432
12708
  content: {
11433
12709
  style: Record<string, any>;
11434
12710
  meta: Record<string, any>;
@@ -11454,8 +12730,8 @@ declare const routes$4: {
11454
12730
  contentScanVerdict?: string | null | undefined;
11455
12731
  hasUnpublishedChanges?: boolean | undefined;
11456
12732
  }, {
11457
- createdAt: string | null;
11458
12733
  updatedAt: string | null;
12734
+ createdAt: string | null;
11459
12735
  content: {
11460
12736
  style: Record<string, any>;
11461
12737
  meta: Record<string, any>;
@@ -11489,23 +12765,23 @@ declare const routes$4: {
11489
12765
  remaining: zod.ZodNumber;
11490
12766
  estimatedCompletionAt: zod.ZodString;
11491
12767
  }, "strip", zod.ZodTypeAny, {
11492
- remaining: number;
11493
- reason: "new_account";
11494
12768
  dailyLimit: number;
12769
+ reason: "new_account";
12770
+ remaining: number;
11495
12771
  hourlyLimit: number;
11496
12772
  estimatedCompletionAt: string;
11497
12773
  }, {
11498
- remaining: number;
11499
- reason: "new_account";
11500
12774
  dailyLimit: number;
12775
+ reason: "new_account";
12776
+ remaining: number;
11501
12777
  hourlyLimit: number;
11502
12778
  estimatedCompletionAt: string;
11503
12779
  }>>>;
11504
12780
  }, "strip", zod.ZodTypeAny, {
11505
12781
  type: string;
11506
12782
  status: string;
11507
- createdAt: string | null;
11508
12783
  updatedAt: string | null;
12784
+ createdAt: string | null;
11509
12785
  deliverySource: {
11510
12786
  type: "organization";
11511
12787
  } | {
@@ -11518,8 +12794,8 @@ declare const routes$4: {
11518
12794
  entrants: string[];
11519
12795
  viewInBrowser: boolean;
11520
12796
  emails: {
11521
- createdAt: string | null;
11522
12797
  updatedAt: string | null;
12798
+ createdAt: string | null;
11523
12799
  content: {
11524
12800
  style: Record<string, any>;
11525
12801
  meta: Record<string, any>;
@@ -11557,17 +12833,17 @@ declare const routes$4: {
11557
12833
  report?: any;
11558
12834
  archivedAt?: string | null | undefined;
11559
12835
  pacing?: {
11560
- remaining: number;
11561
- reason: "new_account";
11562
12836
  dailyLimit: number;
12837
+ reason: "new_account";
12838
+ remaining: number;
11563
12839
  hourlyLimit: number;
11564
12840
  estimatedCompletionAt: string;
11565
12841
  } | null | undefined;
11566
12842
  }, {
11567
12843
  type: string;
11568
12844
  status: string;
11569
- createdAt: string | null;
11570
12845
  updatedAt: string | null;
12846
+ createdAt: string | null;
11571
12847
  deliverySource: {
11572
12848
  type: "organization";
11573
12849
  } | {
@@ -11580,8 +12856,8 @@ declare const routes$4: {
11580
12856
  entrants: string[];
11581
12857
  viewInBrowser: boolean;
11582
12858
  emails: {
11583
- createdAt: string | null;
11584
12859
  updatedAt: string | null;
12860
+ createdAt: string | null;
11585
12861
  content: {
11586
12862
  style: Record<string, any>;
11587
12863
  meta: Record<string, any>;
@@ -11619,9 +12895,9 @@ declare const routes$4: {
11619
12895
  report?: any;
11620
12896
  archivedAt?: string | null | undefined;
11621
12897
  pacing?: {
11622
- remaining: number;
11623
- reason: "new_account";
11624
12898
  dailyLimit: number;
12899
+ reason: "new_account";
12900
+ remaining: number;
11625
12901
  hourlyLimit: number;
11626
12902
  estimatedCompletionAt: string;
11627
12903
  } | null | undefined;
@@ -11748,8 +13024,8 @@ declare const routes$4: {
11748
13024
  createdAt: zod.ZodNullable<zod.ZodString>;
11749
13025
  updatedAt: zod.ZodNullable<zod.ZodString>;
11750
13026
  }, "strip", zod.ZodTypeAny, {
11751
- createdAt: string | null;
11752
13027
  updatedAt: string | null;
13028
+ createdAt: string | null;
11753
13029
  content: {
11754
13030
  style: Record<string, any>;
11755
13031
  meta: Record<string, any>;
@@ -11775,8 +13051,8 @@ declare const routes$4: {
11775
13051
  contentScanVerdict?: string | null | undefined;
11776
13052
  hasUnpublishedChanges?: boolean | undefined;
11777
13053
  }, {
11778
- createdAt: string | null;
11779
13054
  updatedAt: string | null;
13055
+ createdAt: string | null;
11780
13056
  content: {
11781
13057
  style: Record<string, any>;
11782
13058
  meta: Record<string, any>;
@@ -11810,23 +13086,23 @@ declare const routes$4: {
11810
13086
  remaining: zod.ZodNumber;
11811
13087
  estimatedCompletionAt: zod.ZodString;
11812
13088
  }, "strip", zod.ZodTypeAny, {
11813
- remaining: number;
11814
- reason: "new_account";
11815
13089
  dailyLimit: number;
13090
+ reason: "new_account";
13091
+ remaining: number;
11816
13092
  hourlyLimit: number;
11817
13093
  estimatedCompletionAt: string;
11818
13094
  }, {
11819
- remaining: number;
11820
- reason: "new_account";
11821
13095
  dailyLimit: number;
13096
+ reason: "new_account";
13097
+ remaining: number;
11822
13098
  hourlyLimit: number;
11823
13099
  estimatedCompletionAt: string;
11824
13100
  }>>>;
11825
13101
  }, "strip", zod.ZodTypeAny, {
11826
13102
  type: string;
11827
13103
  status: string;
11828
- createdAt: string | null;
11829
13104
  updatedAt: string | null;
13105
+ createdAt: string | null;
11830
13106
  deliverySource: {
11831
13107
  type: "organization";
11832
13108
  } | {
@@ -11839,8 +13115,8 @@ declare const routes$4: {
11839
13115
  entrants: string[];
11840
13116
  viewInBrowser: boolean;
11841
13117
  emails: {
11842
- createdAt: string | null;
11843
13118
  updatedAt: string | null;
13119
+ createdAt: string | null;
11844
13120
  content: {
11845
13121
  style: Record<string, any>;
11846
13122
  meta: Record<string, any>;
@@ -11878,17 +13154,17 @@ declare const routes$4: {
11878
13154
  report?: any;
11879
13155
  archivedAt?: string | null | undefined;
11880
13156
  pacing?: {
11881
- remaining: number;
11882
- reason: "new_account";
11883
13157
  dailyLimit: number;
13158
+ reason: "new_account";
13159
+ remaining: number;
11884
13160
  hourlyLimit: number;
11885
13161
  estimatedCompletionAt: string;
11886
13162
  } | null | undefined;
11887
13163
  }, {
11888
13164
  type: string;
11889
13165
  status: string;
11890
- createdAt: string | null;
11891
13166
  updatedAt: string | null;
13167
+ createdAt: string | null;
11892
13168
  deliverySource: {
11893
13169
  type: "organization";
11894
13170
  } | {
@@ -11901,8 +13177,8 @@ declare const routes$4: {
11901
13177
  entrants: string[];
11902
13178
  viewInBrowser: boolean;
11903
13179
  emails: {
11904
- createdAt: string | null;
11905
13180
  updatedAt: string | null;
13181
+ createdAt: string | null;
11906
13182
  content: {
11907
13183
  style: Record<string, any>;
11908
13184
  meta: Record<string, any>;
@@ -11940,9 +13216,9 @@ declare const routes$4: {
11940
13216
  report?: any;
11941
13217
  archivedAt?: string | null | undefined;
11942
13218
  pacing?: {
11943
- remaining: number;
11944
- reason: "new_account";
11945
13219
  dailyLimit: number;
13220
+ reason: "new_account";
13221
+ remaining: number;
11946
13222
  hourlyLimit: number;
11947
13223
  estimatedCompletionAt: string;
11948
13224
  } | null | undefined;
@@ -12068,8 +13344,8 @@ declare const routes$4: {
12068
13344
  createdAt: zod.ZodNullable<zod.ZodString>;
12069
13345
  updatedAt: zod.ZodNullable<zod.ZodString>;
12070
13346
  }, "strip", zod.ZodTypeAny, {
12071
- createdAt: string | null;
12072
13347
  updatedAt: string | null;
13348
+ createdAt: string | null;
12073
13349
  content: {
12074
13350
  style: Record<string, any>;
12075
13351
  meta: Record<string, any>;
@@ -12095,8 +13371,8 @@ declare const routes$4: {
12095
13371
  contentScanVerdict?: string | null | undefined;
12096
13372
  hasUnpublishedChanges?: boolean | undefined;
12097
13373
  }, {
12098
- createdAt: string | null;
12099
13374
  updatedAt: string | null;
13375
+ createdAt: string | null;
12100
13376
  content: {
12101
13377
  style: Record<string, any>;
12102
13378
  meta: Record<string, any>;
@@ -12130,23 +13406,23 @@ declare const routes$4: {
12130
13406
  remaining: zod.ZodNumber;
12131
13407
  estimatedCompletionAt: zod.ZodString;
12132
13408
  }, "strip", zod.ZodTypeAny, {
12133
- remaining: number;
12134
- reason: "new_account";
12135
13409
  dailyLimit: number;
13410
+ reason: "new_account";
13411
+ remaining: number;
12136
13412
  hourlyLimit: number;
12137
13413
  estimatedCompletionAt: string;
12138
13414
  }, {
12139
- remaining: number;
12140
- reason: "new_account";
12141
13415
  dailyLimit: number;
13416
+ reason: "new_account";
13417
+ remaining: number;
12142
13418
  hourlyLimit: number;
12143
13419
  estimatedCompletionAt: string;
12144
13420
  }>>>;
12145
13421
  }, "strip", zod.ZodTypeAny, {
12146
13422
  type: string;
12147
13423
  status: string;
12148
- createdAt: string | null;
12149
13424
  updatedAt: string | null;
13425
+ createdAt: string | null;
12150
13426
  deliverySource: {
12151
13427
  type: "organization";
12152
13428
  } | {
@@ -12159,8 +13435,8 @@ declare const routes$4: {
12159
13435
  entrants: string[];
12160
13436
  viewInBrowser: boolean;
12161
13437
  emails: {
12162
- createdAt: string | null;
12163
13438
  updatedAt: string | null;
13439
+ createdAt: string | null;
12164
13440
  content: {
12165
13441
  style: Record<string, any>;
12166
13442
  meta: Record<string, any>;
@@ -12198,17 +13474,17 @@ declare const routes$4: {
12198
13474
  report?: any;
12199
13475
  archivedAt?: string | null | undefined;
12200
13476
  pacing?: {
12201
- remaining: number;
12202
- reason: "new_account";
12203
13477
  dailyLimit: number;
13478
+ reason: "new_account";
13479
+ remaining: number;
12204
13480
  hourlyLimit: number;
12205
13481
  estimatedCompletionAt: string;
12206
13482
  } | null | undefined;
12207
13483
  }, {
12208
13484
  type: string;
12209
13485
  status: string;
12210
- createdAt: string | null;
12211
13486
  updatedAt: string | null;
13487
+ createdAt: string | null;
12212
13488
  deliverySource: {
12213
13489
  type: "organization";
12214
13490
  } | {
@@ -12221,8 +13497,8 @@ declare const routes$4: {
12221
13497
  entrants: string[];
12222
13498
  viewInBrowser: boolean;
12223
13499
  emails: {
12224
- createdAt: string | null;
12225
13500
  updatedAt: string | null;
13501
+ createdAt: string | null;
12226
13502
  content: {
12227
13503
  style: Record<string, any>;
12228
13504
  meta: Record<string, any>;
@@ -12260,9 +13536,9 @@ declare const routes$4: {
12260
13536
  report?: any;
12261
13537
  archivedAt?: string | null | undefined;
12262
13538
  pacing?: {
12263
- remaining: number;
12264
- reason: "new_account";
12265
13539
  dailyLimit: number;
13540
+ reason: "new_account";
13541
+ remaining: number;
12266
13542
  hourlyLimit: number;
12267
13543
  estimatedCompletionAt: string;
12268
13544
  } | null | undefined;
@@ -12503,70 +13779,70 @@ declare const routes$4: {
12503
13779
  }>>;
12504
13780
  }, "strip", zod.ZodTypeAny, {
12505
13781
  email: string;
13782
+ reason: string | null;
13783
+ suppression: {
13784
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13785
+ suppressionId: string;
13786
+ } | null;
12506
13787
  messageId: string;
12507
13788
  smtpCode: number | null;
12508
13789
  enhancedStatusCode: string | null;
12509
- reason: string | null;
12510
13790
  occurredAt: string | null;
12511
13791
  contactId: string;
12512
13792
  emailId: string;
12513
- outcome: "bounced" | "complained" | "sent" | "failed" | "delivered";
13793
+ outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
12514
13794
  bounceType: "hard" | "soft" | null;
13795
+ }, {
13796
+ email: string;
13797
+ reason: string | null;
12515
13798
  suppression: {
12516
13799
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
12517
13800
  suppressionId: string;
12518
13801
  } | null;
12519
- }, {
12520
- email: string;
12521
13802
  messageId: string;
12522
13803
  smtpCode: number | null;
12523
13804
  enhancedStatusCode: string | null;
12524
- reason: string | null;
12525
13805
  occurredAt: string | null;
12526
13806
  contactId: string;
12527
13807
  emailId: string;
12528
- outcome: "bounced" | "complained" | "sent" | "failed" | "delivered";
13808
+ outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
12529
13809
  bounceType: "hard" | "soft" | null;
12530
- suppression: {
12531
- reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
12532
- suppressionId: string;
12533
- } | null;
12534
13810
  }>, "many">;
12535
13811
  total: zod.ZodNumber;
12536
13812
  }, "strip", zod.ZodTypeAny, {
12537
13813
  items: {
12538
13814
  email: string;
13815
+ reason: string | null;
13816
+ suppression: {
13817
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13818
+ suppressionId: string;
13819
+ } | null;
12539
13820
  messageId: string;
12540
13821
  smtpCode: number | null;
12541
13822
  enhancedStatusCode: string | null;
12542
- reason: string | null;
12543
13823
  occurredAt: string | null;
12544
13824
  contactId: string;
12545
13825
  emailId: string;
12546
- outcome: "bounced" | "complained" | "sent" | "failed" | "delivered";
13826
+ outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
12547
13827
  bounceType: "hard" | "soft" | null;
12548
- suppression: {
12549
- reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
12550
- suppressionId: string;
12551
- } | null;
12552
13828
  }[];
12553
13829
  total: number;
12554
13830
  }, {
12555
13831
  items: {
12556
13832
  email: string;
13833
+ reason: string | null;
13834
+ suppression: {
13835
+ reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
13836
+ suppressionId: string;
13837
+ } | null;
12557
13838
  messageId: string;
12558
13839
  smtpCode: number | null;
12559
13840
  enhancedStatusCode: string | null;
12560
- reason: string | null;
12561
13841
  occurredAt: string | null;
12562
13842
  contactId: string;
12563
13843
  emailId: string;
12564
- outcome: "bounced" | "complained" | "sent" | "failed" | "delivered";
13844
+ outcome: "bounced" | "complained" | "failed" | "sent" | "delivered";
12565
13845
  bounceType: "hard" | "soft" | null;
12566
- suppression: {
12567
- reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
12568
- suppressionId: string;
12569
- } | null;
12570
13846
  }[];
12571
13847
  total: number;
12572
13848
  }>;
@@ -13015,8 +14291,8 @@ declare const routes$2: {
13015
14291
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
13016
14292
  }, "strip", zod.ZodTypeAny, {
13017
14293
  active: boolean;
13018
- recipientEmail: string | null;
13019
14294
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14295
+ recipientEmail: string | null;
13020
14296
  suppressionId: string;
13021
14297
  firstSuppressedAt: string;
13022
14298
  lastSuppressedAt: string;
@@ -13024,8 +14300,8 @@ declare const routes$2: {
13024
14300
  releaseReason?: string | null | undefined;
13025
14301
  }, {
13026
14302
  active: boolean;
13027
- recipientEmail: string | null;
13028
14303
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14304
+ recipientEmail: string | null;
13029
14305
  suppressionId: string;
13030
14306
  firstSuppressedAt: string;
13031
14307
  lastSuppressedAt: string;
@@ -13036,8 +14312,8 @@ declare const routes$2: {
13036
14312
  }, "strip", zod.ZodTypeAny, {
13037
14313
  items: {
13038
14314
  active: boolean;
13039
- recipientEmail: string | null;
13040
14315
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14316
+ recipientEmail: string | null;
13041
14317
  suppressionId: string;
13042
14318
  firstSuppressedAt: string;
13043
14319
  lastSuppressedAt: string;
@@ -13048,8 +14324,8 @@ declare const routes$2: {
13048
14324
  }, {
13049
14325
  items: {
13050
14326
  active: boolean;
13051
- recipientEmail: string | null;
13052
14327
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14328
+ recipientEmail: string | null;
13053
14329
  suppressionId: string;
13054
14330
  firstSuppressedAt: string;
13055
14331
  lastSuppressedAt: string;
@@ -13090,8 +14366,8 @@ declare const routes$2: {
13090
14366
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
13091
14367
  }, "strip", zod.ZodTypeAny, {
13092
14368
  active: boolean;
13093
- recipientEmail: string | null;
13094
14369
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14370
+ recipientEmail: string | null;
13095
14371
  suppressionId: string;
13096
14372
  firstSuppressedAt: string;
13097
14373
  lastSuppressedAt: string;
@@ -13099,8 +14375,8 @@ declare const routes$2: {
13099
14375
  releaseReason?: string | null | undefined;
13100
14376
  }, {
13101
14377
  active: boolean;
13102
- recipientEmail: string | null;
13103
14378
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14379
+ recipientEmail: string | null;
13104
14380
  suppressionId: string;
13105
14381
  firstSuppressedAt: string;
13106
14382
  lastSuppressedAt: string;
@@ -13135,8 +14411,8 @@ declare const routes$2: {
13135
14411
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
13136
14412
  }, "strip", zod.ZodTypeAny, {
13137
14413
  active: boolean;
13138
- recipientEmail: string | null;
13139
14414
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14415
+ recipientEmail: string | null;
13140
14416
  suppressionId: string;
13141
14417
  firstSuppressedAt: string;
13142
14418
  lastSuppressedAt: string;
@@ -13144,8 +14420,8 @@ declare const routes$2: {
13144
14420
  releaseReason?: string | null | undefined;
13145
14421
  }, {
13146
14422
  active: boolean;
13147
- recipientEmail: string | null;
13148
14423
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14424
+ recipientEmail: string | null;
13149
14425
  suppressionId: string;
13150
14426
  firstSuppressedAt: string;
13151
14427
  lastSuppressedAt: string;
@@ -13188,8 +14464,8 @@ declare const routes$2: {
13188
14464
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
13189
14465
  }, "strip", zod.ZodTypeAny, {
13190
14466
  active: boolean;
13191
- recipientEmail: string | null;
13192
14467
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14468
+ recipientEmail: string | null;
13193
14469
  suppressionId: string;
13194
14470
  firstSuppressedAt: string;
13195
14471
  lastSuppressedAt: string;
@@ -13197,8 +14473,8 @@ declare const routes$2: {
13197
14473
  releaseReason?: string | null | undefined;
13198
14474
  }, {
13199
14475
  active: boolean;
13200
- recipientEmail: string | null;
13201
14476
  reason: "hard_bounce" | "complaint" | "manual" | "repeated_soft_bounce" | "provider_suppression";
14477
+ recipientEmail: string | null;
13202
14478
  suppressionId: string;
13203
14479
  firstSuppressedAt: string;
13204
14480
  lastSuppressedAt: string;
@@ -13638,9 +14914,9 @@ declare const routes: {
13638
14914
  meta: Record<string, any>;
13639
14915
  content: Record<string, any>[];
13640
14916
  };
14917
+ purpose: "marketing" | "transactional";
13641
14918
  title: string;
13642
14919
  templateId: string;
13643
- purpose: "marketing" | "transactional";
13644
14920
  requiredVariables: string[];
13645
14921
  variableDefinitions?: {
13646
14922
  path: string;
@@ -13654,9 +14930,9 @@ declare const routes: {
13654
14930
  meta: Record<string, any>;
13655
14931
  content: Record<string, any>[];
13656
14932
  };
14933
+ purpose: "marketing" | "transactional";
13657
14934
  title: string;
13658
14935
  templateId: string;
13659
- purpose: "marketing" | "transactional";
13660
14936
  requiredVariables: string[];
13661
14937
  variableDefinitions?: {
13662
14938
  path: string;
@@ -13672,9 +14948,9 @@ declare const routes: {
13672
14948
  meta: Record<string, any>;
13673
14949
  content: Record<string, any>[];
13674
14950
  };
14951
+ purpose: "marketing" | "transactional";
13675
14952
  title: string;
13676
14953
  templateId: string;
13677
- purpose: "marketing" | "transactional";
13678
14954
  requiredVariables: string[];
13679
14955
  variableDefinitions?: {
13680
14956
  path: string;
@@ -13690,9 +14966,9 @@ declare const routes: {
13690
14966
  meta: Record<string, any>;
13691
14967
  content: Record<string, any>[];
13692
14968
  };
14969
+ purpose: "marketing" | "transactional";
13693
14970
  title: string;
13694
14971
  templateId: string;
13695
- purpose: "marketing" | "transactional";
13696
14972
  requiredVariables: string[];
13697
14973
  variableDefinitions?: {
13698
14974
  path: string;
@@ -14905,8 +16181,8 @@ declare const routes: {
14905
16181
  id?: string | undefined;
14906
16182
  })[];
14907
16183
  };
14908
- title: string;
14909
16184
  purpose: "marketing" | "transactional";
16185
+ title: string;
14910
16186
  }, {
14911
16187
  content: {
14912
16188
  style: {
@@ -15086,29 +16362,29 @@ declare const routes: {
15086
16362
  createdAt: zod.ZodNullable<zod.ZodString>;
15087
16363
  updatedAt: zod.ZodNullable<zod.ZodString>;
15088
16364
  }, "strip", zod.ZodTypeAny, {
15089
- createdAt: string | null;
15090
16365
  updatedAt: string | null;
16366
+ createdAt: string | null;
15091
16367
  content: {
15092
16368
  style: Record<string, any>;
15093
16369
  meta: Record<string, any>;
15094
16370
  content: Record<string, any>[];
15095
16371
  };
16372
+ purpose: "marketing" | "transactional";
15096
16373
  title: string;
15097
16374
  templateId: string;
15098
- purpose: "marketing" | "transactional";
15099
16375
  requiredVariables: string[];
15100
16376
  validationError?: string | undefined;
15101
16377
  }, {
15102
- createdAt: string | null;
15103
16378
  updatedAt: string | null;
16379
+ createdAt: string | null;
15104
16380
  content: {
15105
16381
  style: Record<string, any>;
15106
16382
  meta: Record<string, any>;
15107
16383
  content: Record<string, any>[];
15108
16384
  };
16385
+ purpose: "marketing" | "transactional";
15109
16386
  title: string;
15110
16387
  templateId: string;
15111
- purpose: "marketing" | "transactional";
15112
16388
  requiredVariables: string[];
15113
16389
  validationError?: string | undefined;
15114
16390
  }>;
@@ -15141,16 +16417,16 @@ declare const routes: {
15141
16417
  method: "GET";
15142
16418
  responses: {
15143
16419
  200: _ts_rest_core.ContractPlainType<{
15144
- createdAt: string | null;
15145
16420
  updatedAt: string | null;
16421
+ createdAt: string | null;
15146
16422
  content: {
15147
16423
  style: Record<string, any>;
15148
16424
  meta: Record<string, any>;
15149
16425
  content: Record<string, any>[];
15150
16426
  };
16427
+ purpose: "marketing" | "transactional";
15151
16428
  title: string;
15152
16429
  templateId: string;
15153
- purpose: "marketing" | "transactional";
15154
16430
  requiredVariables: string[];
15155
16431
  validationError?: string | undefined;
15156
16432
  }[]>;
@@ -15186,29 +16462,29 @@ declare const routes: {
15186
16462
  createdAt: zod.ZodNullable<zod.ZodString>;
15187
16463
  updatedAt: zod.ZodNullable<zod.ZodString>;
15188
16464
  }, "strip", zod.ZodTypeAny, {
15189
- createdAt: string | null;
15190
16465
  updatedAt: string | null;
16466
+ createdAt: string | null;
15191
16467
  content: {
15192
16468
  style: Record<string, any>;
15193
16469
  meta: Record<string, any>;
15194
16470
  content: Record<string, any>[];
15195
16471
  };
16472
+ purpose: "marketing" | "transactional";
15196
16473
  title: string;
15197
16474
  templateId: string;
15198
- purpose: "marketing" | "transactional";
15199
16475
  requiredVariables: string[];
15200
16476
  validationError?: string | undefined;
15201
16477
  }, {
15202
- createdAt: string | null;
15203
16478
  updatedAt: string | null;
16479
+ createdAt: string | null;
15204
16480
  content: {
15205
16481
  style: Record<string, any>;
15206
16482
  meta: Record<string, any>;
15207
16483
  content: Record<string, any>[];
15208
16484
  };
16485
+ purpose: "marketing" | "transactional";
15209
16486
  title: string;
15210
16487
  templateId: string;
15211
- purpose: "marketing" | "transactional";
15212
16488
  requiredVariables: string[];
15213
16489
  validationError?: string | undefined;
15214
16490
  }>;
@@ -16610,29 +17886,29 @@ declare const routes: {
16610
17886
  createdAt: zod.ZodNullable<zod.ZodString>;
16611
17887
  updatedAt: zod.ZodNullable<zod.ZodString>;
16612
17888
  }, "strip", zod.ZodTypeAny, {
16613
- createdAt: string | null;
16614
17889
  updatedAt: string | null;
17890
+ createdAt: string | null;
16615
17891
  content: {
16616
17892
  style: Record<string, any>;
16617
17893
  meta: Record<string, any>;
16618
17894
  content: Record<string, any>[];
16619
17895
  };
17896
+ purpose: "marketing" | "transactional";
16620
17897
  title: string;
16621
17898
  templateId: string;
16622
- purpose: "marketing" | "transactional";
16623
17899
  requiredVariables: string[];
16624
17900
  validationError?: string | undefined;
16625
17901
  }, {
16626
- createdAt: string | null;
16627
17902
  updatedAt: string | null;
17903
+ createdAt: string | null;
16628
17904
  content: {
16629
17905
  style: Record<string, any>;
16630
17906
  meta: Record<string, any>;
16631
17907
  content: Record<string, any>[];
16632
17908
  };
17909
+ purpose: "marketing" | "transactional";
16633
17910
  title: string;
16634
17911
  templateId: string;
16635
- purpose: "marketing" | "transactional";
16636
17912
  requiredVariables: string[];
16637
17913
  validationError?: string | undefined;
16638
17914
  }>;
@@ -16700,29 +17976,29 @@ declare const routes: {
16700
17976
  createdAt: zod.ZodNullable<zod.ZodString>;
16701
17977
  updatedAt: zod.ZodNullable<zod.ZodString>;
16702
17978
  }, "strip", zod.ZodTypeAny, {
16703
- createdAt: string | null;
16704
17979
  updatedAt: string | null;
17980
+ createdAt: string | null;
16705
17981
  content: {
16706
17982
  style: Record<string, any>;
16707
17983
  meta: Record<string, any>;
16708
17984
  content: Record<string, any>[];
16709
17985
  };
17986
+ purpose: "marketing" | "transactional";
16710
17987
  title: string;
16711
17988
  templateId: string;
16712
- purpose: "marketing" | "transactional";
16713
17989
  requiredVariables: string[];
16714
17990
  validationError?: string | undefined;
16715
17991
  }, {
16716
- createdAt: string | null;
16717
17992
  updatedAt: string | null;
17993
+ createdAt: string | null;
16718
17994
  content: {
16719
17995
  style: Record<string, any>;
16720
17996
  meta: Record<string, any>;
16721
17997
  content: Record<string, any>[];
16722
17998
  };
17999
+ purpose: "marketing" | "transactional";
16723
18000
  title: string;
16724
18001
  templateId: string;
16725
- purpose: "marketing" | "transactional";
16726
18002
  requiredVariables: string[];
16727
18003
  validationError?: string | undefined;
16728
18004
  }>;
@@ -16814,6 +18090,8 @@ declare class SendLit {
16814
18090
  readonly emails: Emails;
16815
18091
  /** Custom events and the team's event definitions. */
16816
18092
  readonly events: Events;
18093
+ /** Public signup forms, with or without double opt-in. */
18094
+ readonly forms: Forms;
16817
18095
  readonly provisioning: Provisioning;
16818
18096
  readonly suppressions: Suppressions;
16819
18097
  readonly deliveryEvents: DeliveryEvents;
@@ -16849,4 +18127,4 @@ declare class SendLitError extends Error {
16849
18127
  static fromResponse(status: number, body: unknown, headers?: Headers): SendLitError;
16850
18128
  }
16851
18129
 
16852
- 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, 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, Suppression, Suppressions, SystemTemplate, Tag, TagReferences, Tags, Templates, TrackEventInput, TrackEventResponse, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateEventDefinitionInput, UpdateGeneralSettingsInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateTemplateInput };
18130
+ export { AddSequenceEmailInput, ConsentEvent, ConsentInput, Contact, ContactDelivery, ContactEvent, Contacts, CreateContactInput, CreateEventDefinitionInput, CreateSegmentInput, CreateSequenceInput, CreateSignupFormInput, CreateTeamKeyInput, CreateTemplateInput, CreatedTeamKey, DEFAULT_ENDPOINT, DeliveryEvent, DeliveryEvents, DiscardSequenceChangesInput, DuplicateTemplateInput, EmailTemplate, Emails, EventDefinition, EventDefinitionDetail, EventDefinitions, Events, Forms, GeneralSettings, GeneralSettingsResource, ImportContactsInput, ImportContactsResult, ListContactEventsQuery, ListContactsQuery, ListDeliveryEventsQuery, ListEmailsQuery, ListSequenceDeliveriesQuery, ListSequenceSubscribersQuery, ListSequencesQuery, ListSuppressionsQuery, ListTemplatesQuery, Overview, OverviewQuery, OverviewResource, PostalAddress, ProvisionTeamInput, ProvisionTeamResponse, ProvisionedTeam, ProvisionedTeamUsage, Provisioning, PublishSequenceChangesInput, ReleaseSuppressionInput, RemoveTagResult, RenameTagInput, RenameTagResult, Segment, Segments, SendEmailInput, SendEmailResponse, SendLit, SendLitError, SendLitOptions, SendSequenceEmailTestInput, Sequence, SequenceDelivery, SequenceEmailTestResult, SequenceEmailVersion, SequenceStats, Sequences, Settings, SignupConfirmation, SignupForm, SignupFormSubmission, SubmitSignupFormInput, Suppression, Suppressions, SystemTemplate, Tag, TagReferences, Tags, Templates, TrackEventInput, TrackEventResponse, TransactionalEmail, TransactionalEmailDetail, UpdateContactInput, UpdateEventDefinitionInput, UpdateGeneralSettingsInput, UpdateProvisionedTeamInput, UpdateSegmentInput, UpdateSequenceEmailInput, UpdateSequenceInput, UpdateSignupFormInput, UpdateTemplateInput };