sendlit 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -228,6 +228,162 @@ statuses({ skip: "pending_confirmation" }, [
228
228
  "awaiting_confirmation",
229
229
  "not_confirmed"
230
230
  ]);
231
+ var postalAddressSchema = z.object({
232
+ line1: z.string().trim().min(1).max(200).describe("Street address"),
233
+ line2: z.string().trim().max(200).optional().describe("Apartment, suite, building and so on"),
234
+ city: z.string().trim().max(100).optional(),
235
+ region: z.string().trim().max(100).optional().describe("State, province or region"),
236
+ postalCode: z.string().trim().max(20).optional(),
237
+ country: z.string().regex(/^[A-Z]{2}$/).describe("ISO 3166-1 alpha-2 country code, uppercase (for example `GB`)")
238
+ });
239
+ var generalSettingsSchema = z.object({
240
+ /** The physical postal address shown in marketing email footers; required
241
+ * for broadcasts and sequences. `null` until it is set. */
242
+ postalAddress: postalAddressSchema.nullable(),
243
+ updatedAt: z.string().nullable().optional()
244
+ });
245
+ var updateGeneralSettingsBodySchema = z.object({
246
+ /** Omit to keep the address; `null` clears it. */
247
+ postalAddress: postalAddressSchema.nullable().optional()
248
+ });
249
+ var trackingDomainStatuses = ["pending", "verified", "failed"];
250
+ var trackingDomainSchema = z.object({
251
+ domain: z.string().nullable(),
252
+ /** `pending` until the CNAME and HTTPS work; `failed` after the domain
253
+ * stopped working, when links fall back to SendLit's own host. */
254
+ status: z.enum(trackingDomainStatuses).nullable(),
255
+ /** The host the domain's CNAME record must point to. */
256
+ cnameTarget: z.string(),
257
+ /** Why the last check failed: `cname_missing`, `cname_mismatch`,
258
+ * `unreachable` (no HTTPS answer yet) or `dns_error`. */
259
+ error: z.string().nullable(),
260
+ verifiedAt: z.string().nullable(),
261
+ checkedAt: z.string().nullable()
262
+ });
263
+ var updateTrackingDomainBodySchema = z.object({
264
+ /** A subdomain such as `track.example.com`; `null` removes it. */
265
+ domain: z.string().max(253).nullable()
266
+ });
267
+
268
+ // ../api-contract/src/schemas/teams.ts
269
+ var teamSchema = z.object({
270
+ teamId: z.string(),
271
+ /** Public organization identifier. Present when an end user lists the
272
+ * teams they belong to, so the dashboard can keep workspace selection
273
+ * scoped to one organization. */
274
+ organizationId: z.string().optional(),
275
+ organizationName: z.string().optional(),
276
+ name: z.string(),
277
+ status: z.enum(["active", "sending_suspended", "archived"]),
278
+ externalId: z.string().nullable().optional(),
279
+ createdAt: z.string().nullable().optional(),
280
+ updatedAt: z.string().nullable().optional(),
281
+ /** True when the calling human is already a `team_members` row. Always
282
+ * false for organization API keys. Omitted on non-list team payloads. */
283
+ viewerIsMember: z.boolean().optional()
284
+ });
285
+ var apiKeySchema = z.object({
286
+ keyId: z.string(),
287
+ keyPrefix: z.string(),
288
+ name: z.string(),
289
+ expiresAt: z.string().nullable().optional(),
290
+ lastUsedAt: z.string().nullable().optional(),
291
+ revokedAt: z.string().nullable().optional(),
292
+ createdAt: z.string().nullable().optional()
293
+ });
294
+ var createdApiKeySchema = apiKeySchema.extend({
295
+ key: z.string()
296
+ });
297
+ var createTeamBodySchema = z.object({ name: z.string().min(1) });
298
+ var renameTeamBodySchema = z.object({ name: z.string().min(1) });
299
+ var createApiKeyBodySchema = z.object({ name: z.string().min(1) });
300
+ var provisionTeamBodySchema = z.object({
301
+ externalId: z.string().min(1),
302
+ name: z.string().min(1),
303
+ sender: z.object({
304
+ fromName: z.string().min(1).optional(),
305
+ replyTo: z.string().email().optional()
306
+ }).optional(),
307
+ postalAddress: postalAddressSchema.optional(),
308
+ delivery: z.object({
309
+ useOrganizationDefault: z.boolean().optional(),
310
+ teamEspEnabled: z.boolean().optional(),
311
+ teamCanChangeDefault: z.boolean().optional()
312
+ }).optional(),
313
+ quota: z.object({
314
+ dailyLimit: z.number().int().positive().nullable().optional(),
315
+ monthlyLimit: z.number().int().positive().nullable().optional()
316
+ }).optional()
317
+ });
318
+ var provisionedTeamBaseSchema = z.object({
319
+ teamId: z.string(),
320
+ externalId: z.string(),
321
+ name: z.string(),
322
+ deliverySource: z.object({ type: z.literal("organization") })
323
+ });
324
+ var provisionTeamResponseSchema = z.discriminatedUnion("created", [
325
+ provisionedTeamBaseSchema.extend({
326
+ created: z.literal(true),
327
+ apiKey: z.string()
328
+ }),
329
+ provisionedTeamBaseSchema.extend({
330
+ created: z.literal(false),
331
+ apiKey: z.null()
332
+ })
333
+ ]);
334
+ var teamHealthSchema = z.object({
335
+ status: z.enum(["normal", "warned", "marketing_paused", "all_paused"]),
336
+ reason: z.string().nullable(),
337
+ scope: z.enum(["team", "shared_mailbox"]).nullable(),
338
+ last7Days: z.object({
339
+ sent: z.number().int().nonnegative(),
340
+ bounced: z.number().int().nonnegative(),
341
+ complained: z.number().int().nonnegative()
342
+ })
343
+ });
344
+ var provisionedTeamSchema = provisionedTeamBaseSchema.extend({
345
+ status: z.enum(["active", "sending_suspended", "archived"]),
346
+ postalAddress: postalAddressSchema.nullable(),
347
+ teamEspEnabled: z.boolean(),
348
+ teamCanChangeDefault: z.boolean(),
349
+ createdAt: z.string().nullable(),
350
+ updatedAt: z.string().nullable(),
351
+ health: teamHealthSchema
352
+ });
353
+ var updateProvisionedTeamBodySchema = z.object({
354
+ name: z.string().min(1).optional(),
355
+ sender: z.object({
356
+ fromName: z.string().min(1).nullable().optional(),
357
+ replyTo: z.string().email().nullable().optional()
358
+ }).optional(),
359
+ postalAddress: postalAddressSchema.nullable().optional(),
360
+ delivery: z.object({
361
+ teamEspEnabled: z.boolean().optional(),
362
+ teamCanChangeDefault: z.boolean().optional()
363
+ }).optional(),
364
+ quota: z.object({
365
+ dailyLimit: z.number().int().nonnegative().nullable().optional(),
366
+ monthlyLimit: z.number().int().nonnegative().nullable().optional()
367
+ }).optional()
368
+ }).refine((body) => Object.keys(body).length > 0, {
369
+ message: "At least one field is required"
370
+ });
371
+ var usageWindowSchema = z.object({
372
+ limit: z.number().int().nullable(),
373
+ accepted: z.number().int().nonnegative(),
374
+ reserved: z.number().int().nonnegative(),
375
+ remaining: z.number().int().nullable(),
376
+ resetsAt: z.string()
377
+ });
378
+ var teamQuotaUsageSchema = z.object({
379
+ day: usageWindowSchema,
380
+ month: usageWindowSchema
381
+ });
382
+ var provisionedTeamUsageSchema = teamQuotaUsageSchema.extend({
383
+ health: teamHealthSchema
384
+ });
385
+
386
+ // ../api-contract/src/schemas/organizations.ts
231
387
  var organizationRoleSchema = z.enum(["owner", "admin", "member"]);
232
388
  var organizationSchema = z.object({
233
389
  organizationId: z.string(),
@@ -312,14 +468,18 @@ var organizationMailCountsSchema = z.object({
312
468
  sent: z.number().int().nonnegative(),
313
469
  queued: z.number().int().nonnegative(),
314
470
  failed: z.number().int().nonnegative(),
315
- bounced: z.number().int().nonnegative()
471
+ bounced: z.number().int().nonnegative(),
472
+ complained: z.number().int().nonnegative()
316
473
  });
317
474
  var organizationMailActivityTeamSchema = z.object({
318
475
  teamId: z.string(),
319
476
  name: z.string(),
320
477
  status: z.enum(["active", "sending_suspended", "archived"]),
321
478
  externalId: z.string().nullable(),
322
- mail: organizationMailCountsSchema
479
+ mail: organizationMailCountsSchema,
480
+ health: teamHealthSchema,
481
+ /** Shared-mailbox quota; null when the team has no active grant. */
482
+ quota: teamQuotaUsageSchema.nullable()
323
483
  });
324
484
  var organizationMailActivitySchema = z.object({
325
485
  rangeDays: z.union([z.literal(1), z.literal(3), z.literal(7), z.literal(30)]),
@@ -676,6 +836,53 @@ var customFieldValueSchema = z.union([
676
836
  z.array(customFieldScalarSchema)
677
837
  ]);
678
838
  var customFieldsSchema = z.record(customFieldValueSchema).default({});
839
+ var deliveryEventType = [
840
+ "accepted",
841
+ "delivered",
842
+ "delayed",
843
+ "soft_bounce",
844
+ "hard_bounce",
845
+ "failed",
846
+ "complaint",
847
+ "suppressed",
848
+ "rejected",
849
+ "unknown"
850
+ ];
851
+ var bounceClass = ["permanent", "transient", "undetermined"];
852
+ var deliverySourceTypes = ["organization", "team"];
853
+ var deliveryEventSchema = z.object({
854
+ eventId: z.string(),
855
+ provider: z.string(),
856
+ espId: z.string().nullable(),
857
+ deliverySourceType: z.enum(deliverySourceTypes).nullable(),
858
+ /** Public `msg_...` id of the correlated outbound message, when the
859
+ * event was matched to one — see the PRD's correlation section. */
860
+ messageId: z.string().nullable(),
861
+ recipientEmail: z.string().nullable(),
862
+ eventType: z.enum(deliveryEventType),
863
+ bounceClass: z.enum(bounceClass).nullable().optional(),
864
+ smtpCode: z.number().nullable().optional(),
865
+ enhancedStatusCode: z.string().nullable().optional(),
866
+ reason: z.string().nullable().optional(),
867
+ occurredAt: z.string(),
868
+ receivedAt: z.string()
869
+ });
870
+ var listDeliveryEventsQuerySchema = z.object({
871
+ espId: z.string().optional(),
872
+ deliverySourceType: z.enum(deliverySourceTypes).optional(),
873
+ eventType: z.enum(deliveryEventType).optional(),
874
+ createdAfter: z.coerce.number().int().optional(),
875
+ createdBefore: z.coerce.number().int().optional(),
876
+ offset: z.coerce.number().int().min(1).optional(),
877
+ itemsPerPage: z.coerce.number().int().min(1).optional()
878
+ });
879
+ var deliveryOutcome = [
880
+ "sent",
881
+ "delivered",
882
+ "bounced",
883
+ "complained",
884
+ "failed"
885
+ ];
679
886
  var nullableLimit = z.number().int().nonnegative().nullable();
680
887
  var organizationDeliveryPolicySchema = z.object({
681
888
  defaultEspId: z.string().nullable(),
@@ -686,6 +893,12 @@ var organizationDeliveryPolicySchema = z.object({
686
893
  aggregateMonthlyLimit: nullableLimit,
687
894
  teamEspEnabledByDefault: z.boolean(),
688
895
  teamCanChangeDefault: z.boolean(),
896
+ /** Whether teams on a shared ESP must send from their own verified
897
+ * domain: `off` (default), for `marketing` only, or for `all` mail. */
898
+ requireTeamSendingDomain: z.enum(["off", "marketing", "all"]),
899
+ /** Monthly cap on each team's marketing through a shared ESP while it
900
+ * still uses the shared From domain; `null` for none. */
901
+ sharedDomainMonthlyLimit: nullableLimit,
689
902
  updatedAt: z.string()
690
903
  });
691
904
  var updateOrganizationDeliveryPolicyBodySchema = z.object({
@@ -696,7 +909,9 @@ var updateOrganizationDeliveryPolicyBodySchema = z.object({
696
909
  aggregateDailyLimit: nullableLimit.optional(),
697
910
  aggregateMonthlyLimit: nullableLimit.optional(),
698
911
  teamEspEnabledByDefault: z.boolean().optional(),
699
- teamCanChangeDefault: z.boolean().optional()
912
+ teamCanChangeDefault: z.boolean().optional(),
913
+ requireTeamSendingDomain: z.enum(["off", "marketing", "all"]).optional(),
914
+ sharedDomainMonthlyLimit: nullableLimit.optional()
700
915
  }).refine((value) => Object.keys(value).length > 0, {
701
916
  message: "At least one field is required"
702
917
  });
@@ -710,6 +925,15 @@ var espGrantSchema = z.object({
710
925
  replyTo: z.string().nullable(),
711
926
  dailyLimit: nullableLimit,
712
927
  monthlyLimit: nullableLimit,
928
+ /** The team's own From address on this mailbox, when it has one. */
929
+ fromEmail: z.string().nullable(),
930
+ /** The team's own sending domain, when it has one (see
931
+ * `/teams/:teamId/sending-domain`). */
932
+ sendingDomain: z.object({
933
+ domain: z.string(),
934
+ status: z.enum(["pending", "verified", "failing"]),
935
+ inUse: z.boolean()
936
+ }).nullable(),
713
937
  createdAt: z.string(),
714
938
  updatedAt: z.string()
715
939
  });
@@ -775,6 +999,35 @@ var sendingOptionSchema = z.discriminatedUnion("type", [
775
999
  countsAgainstQuota: z.literal(false)
776
1000
  })
777
1001
  ]);
1002
+ var teamSendingDomainRecordSchema = z.object({
1003
+ type: z.enum(["CNAME", "TXT"]),
1004
+ name: z.string(),
1005
+ value: z.string(),
1006
+ purpose: z.enum(["dkim", "dmarc"]),
1007
+ /** Whether the last check found it in place. */
1008
+ present: z.boolean().optional()
1009
+ });
1010
+ var teamSendingDomainSchema = z.object({
1011
+ domain: z.string(),
1012
+ fromEmail: z.string().nullable(),
1013
+ /** `pending` until DKIM and DMARC first pass, `verified` once they have,
1014
+ * `failing` when they stopped passing after that. */
1015
+ status: z.enum(["pending", "verified", "failing"]),
1016
+ dkim: z.enum(["pending", "verified", "failed"]),
1017
+ dmarc: z.enum(["pass", "missing"]),
1018
+ /** Whether the team's mail goes out from this domain right now. */
1019
+ inUse: z.boolean(),
1020
+ records: z.array(teamSendingDomainRecordSchema),
1021
+ verifiedAt: z.string().nullable(),
1022
+ failingSince: z.string().nullable(),
1023
+ /** When the team's marketing pauses if the domain keeps failing. */
1024
+ graceEndsAt: z.string().nullable(),
1025
+ lastCheckedAt: z.string().nullable()
1026
+ });
1027
+ var setTeamSendingDomainBodySchema = z.object({
1028
+ /** The team's From address; its domain is registered with the shared ESP. */
1029
+ fromEmail: z.string().email()
1030
+ });
778
1031
  var EVENT_NAME_MAX_LENGTH = 128;
779
1032
  var EVENT_PROPERTIES_MAX_BYTES = 32 * 1024;
780
1033
  var EVENT_PROPERTIES_MAX_KEYS = 100;
@@ -960,6 +1213,38 @@ var propertyChangeFilterSchema = z.object({
960
1213
  from: filterScalarSchema.nullable().optional(),
961
1214
  to: filterScalarSchema.nullable().optional()
962
1215
  }).strict();
1216
+ var suppressionReason = [
1217
+ "hard_bounce",
1218
+ "complaint",
1219
+ "repeated_soft_bounce",
1220
+ "provider_suppression",
1221
+ "manual"
1222
+ ];
1223
+ var suppressionSchema = z.object({
1224
+ suppressionId: z.string(),
1225
+ recipientEmail: z.string().nullable(),
1226
+ reason: z.enum(suppressionReason),
1227
+ active: z.boolean(),
1228
+ firstSuppressedAt: z.string(),
1229
+ lastSuppressedAt: z.string(),
1230
+ releasedAt: z.string().nullable().optional(),
1231
+ releaseReason: z.string().nullable().optional()
1232
+ });
1233
+ var listSuppressionsQuerySchema = z.object({
1234
+ active: z.coerce.boolean().optional(),
1235
+ reason: z.enum(suppressionReason).optional(),
1236
+ offset: z.coerce.number().int().min(1).optional(),
1237
+ itemsPerPage: z.coerce.number().int().min(1).optional()
1238
+ });
1239
+ var releaseSuppressionBodySchema = z.object({
1240
+ explanation: z.string().min(1).max(2e3).optional()
1241
+ });
1242
+ var createSuppressionBodySchema = z.object({
1243
+ email: z.string().email(),
1244
+ note: z.string().max(2e3).optional().describe(
1245
+ "Why the address is blocked, e.g. a legal request; kept in the audit trail"
1246
+ )
1247
+ });
963
1248
 
964
1249
  // ../api-contract/src/schemas/sequences.ts
965
1250
  var mailTypes = ["broadcast", "sequence"];
@@ -1235,6 +1520,40 @@ var waitingContactsPageSchema = z.object({
1235
1520
  total: z.number().describe("Every waiting contact that matches, across all pages"),
1236
1521
  nextCursor: z.string().nullable().describe("Pass as `after` for the next page; null on the last page")
1237
1522
  });
1523
+ var sequenceDeliveryOutcomeFilter = ["bounced", "complained"];
1524
+ var listSequenceDeliveriesQuerySchema = z.object({
1525
+ outcome: z.enum(sequenceDeliveryOutcomeFilter).optional().describe(
1526
+ "bounced: sends the ESP reported as bounced. complained: sends the recipient marked as spam. Omit for every send."
1527
+ ),
1528
+ offset: z.coerce.number().int().min(1).optional().describe("Page number (default 1)"),
1529
+ itemsPerPage: z.coerce.number().int().min(1).max(100).optional()
1530
+ });
1531
+ var sequenceDeliverySchema = z.object({
1532
+ messageId: z.string().describe("Public `msg_...` id of the send"),
1533
+ contactId: z.string(),
1534
+ email: z.string().describe("The address the email was sent to"),
1535
+ emailId: z.string().describe("Which email of the sequence or broadcast it was"),
1536
+ outcome: z.enum(deliveryOutcome),
1537
+ bounceType: z.enum(["hard", "soft"]).nullable().describe(
1538
+ "hard: permanent (the address doesn't exist or refuses mail). soft: temporary (mailbox full, server down). null when the send didn't bounce or the ESP didn't say"
1539
+ ),
1540
+ reason: z.string().nullable().describe(
1541
+ "The ESP's reason or diagnostic for the bounce or complaint, if it sent one"
1542
+ ),
1543
+ smtpCode: z.number().nullable(),
1544
+ enhancedStatusCode: z.string().nullable().describe("e.g. 5.1.1"),
1545
+ occurredAt: z.string().nullable().describe(
1546
+ "When the outcome happened (ISO 8601): the complaint, bounce, delivery or send"
1547
+ ),
1548
+ suppression: z.object({
1549
+ suppressionId: z.string(),
1550
+ reason: z.enum(suppressionReason)
1551
+ }).nullable().describe("The address's active suppression, if SendLit no longer mails it")
1552
+ });
1553
+ var sequenceDeliveriesPageSchema = z.object({
1554
+ items: z.array(sequenceDeliverySchema),
1555
+ total: z.number().describe("Every matching send, across all pages")
1556
+ });
1238
1557
  var sequenceDeletionPreviewSchema = z.object({
1239
1558
  status: z.string().describe("The broadcast or sequence's current status"),
1240
1559
  blocker: z.enum(["sequence_active", "broadcast_sent"]).nullable().describe(
@@ -1283,15 +1602,21 @@ var listContactsQuerySchema = z.object({
1283
1602
  excludeFilter: z.string().optional().describe(
1284
1603
  "Serialized ContactFilterWithAggregator JSON; contacts matching it are left out"
1285
1604
  ),
1286
- offset: z.coerce.number().int().min(1).optional(),
1287
- rowsPerPage: z.coerce.number().int().min(1).optional()
1605
+ offset: z.coerce.number().int().min(1).optional().describe("Page number, 1-indexed (default: 1)"),
1606
+ rowsPerPage: z.coerce.number().int().min(1).optional().describe("Contacts per page (default: 10)")
1288
1607
  });
1289
1608
  z.object({
1290
1609
  sequenceId: z.string(),
1291
1610
  sequenceTitle: z.string(),
1292
1611
  sequenceType: z.string(),
1293
1612
  emailId: z.string(),
1294
- createdAt: z.string().nullable()
1613
+ createdAt: z.string().nullable(),
1614
+ /** Public `msg_...` id of the send; null for sends from before the
1615
+ * outbound message log. */
1616
+ messageId: z.string().nullable(),
1617
+ outcome: z.enum(deliveryOutcome).nullable().describe(
1618
+ "What happened to the send: sent (accepted by the ESP, no report yet), delivered, bounced, complained (marked as spam) or failed. null for sends from before the outbound message log."
1619
+ )
1295
1620
  });
1296
1621
  var importContactRowSchema = z.object({
1297
1622
  /** Validated per row; an invalid address is reported as skipped. */
@@ -1380,46 +1705,6 @@ var contactDeletionSchema = z.object({
1380
1705
  deleted: z.number().int().describe("Contacts deleted so far"),
1381
1706
  suppressed: z.number().int().describe("Unsubscribed addresses newly added to the suppression list")
1382
1707
  });
1383
- var deliveryEventType = [
1384
- "accepted",
1385
- "delivered",
1386
- "delayed",
1387
- "soft_bounce",
1388
- "hard_bounce",
1389
- "failed",
1390
- "complaint",
1391
- "suppressed",
1392
- "rejected",
1393
- "unknown"
1394
- ];
1395
- var bounceClass = ["permanent", "transient", "undetermined"];
1396
- var deliverySourceTypes = ["organization", "team"];
1397
- var deliveryEventSchema = z.object({
1398
- eventId: z.string(),
1399
- provider: z.string(),
1400
- espId: z.string().nullable(),
1401
- deliverySourceType: z.enum(deliverySourceTypes).nullable(),
1402
- /** Public `msg_...` id of the correlated outbound message, when the
1403
- * event was matched to one — see the PRD's correlation section. */
1404
- messageId: z.string().nullable(),
1405
- recipientEmail: z.string().nullable(),
1406
- eventType: z.enum(deliveryEventType),
1407
- bounceClass: z.enum(bounceClass).nullable().optional(),
1408
- smtpCode: z.number().nullable().optional(),
1409
- enhancedStatusCode: z.string().nullable().optional(),
1410
- reason: z.string().nullable().optional(),
1411
- occurredAt: z.string(),
1412
- receivedAt: z.string()
1413
- });
1414
- var listDeliveryEventsQuerySchema = z.object({
1415
- espId: z.string().optional(),
1416
- deliverySourceType: z.enum(deliverySourceTypes).optional(),
1417
- eventType: z.enum(deliveryEventType).optional(),
1418
- createdAfter: z.coerce.number().int().optional(),
1419
- createdBefore: z.coerce.number().int().optional(),
1420
- offset: z.coerce.number().int().min(1).optional(),
1421
- itemsPerPage: z.coerce.number().int().min(1).optional()
1422
- });
1423
1708
  var espProviders = [
1424
1709
  "smtp",
1425
1710
  "sendgrid",
@@ -1452,6 +1737,9 @@ var espConfigSchema = z.object({
1452
1737
  secure: z.boolean(),
1453
1738
  username: z.string().nullable().optional(),
1454
1739
  hasPassword: z.boolean(),
1740
+ /** Organization ESPs: whether a provider API credential is stored, which
1741
+ * lets teams register their own sending domains (SES only for now). */
1742
+ hasManagementCredentials: z.boolean().optional(),
1455
1743
  fromName: z.string().nullable().optional(),
1456
1744
  fromEmail: z.string().nullable().optional(),
1457
1745
  replyTo: z.string().nullable().optional(),
@@ -1559,6 +1847,12 @@ var domainAuthenticationQuerySchema = z.object({
1559
1847
  "DKIM selector to check (for Amazon SES, one Easy DKIM token). A selector that passes is saved on the ESP and used by later checks that omit it."
1560
1848
  )
1561
1849
  });
1850
+ var espManagementCredentialsBodySchema = z.object({
1851
+ accessKeyId: z.string().min(1),
1852
+ secretAccessKey: z.string().min(1),
1853
+ /** Defaults to the region in the SMTP host. */
1854
+ region: z.string().min(1).optional()
1855
+ });
1562
1856
  var feedbackConnectionStatus = [
1563
1857
  "pending",
1564
1858
  "healthy",
@@ -1633,6 +1927,18 @@ var createSignupFormBodySchema = z.object({
1633
1927
  redirectUrl: z.string().url().refine((value) => /^https?:\/\//i.test(value), "Must be an http(s) URL").nullable().optional().describe("Where to send people after they submit the hosted or embedded form")
1634
1928
  });
1635
1929
  var updateSignupFormBodySchema = createSignupFormBodySchema.partial();
1930
+ var submitSignupFormBodySchema = z.object({
1931
+ email: z.string().trim().min(1).max(254),
1932
+ name: z.string().trim().max(200).optional(),
1933
+ clientIp: z.string().trim().min(1).max(64).optional().describe(
1934
+ "IP address of the person signing up. Per-IP rate limits apply to it; without it they apply to the calling server."
1935
+ )
1936
+ });
1937
+ var signupFormSubmissionSchema = z.object({
1938
+ status: z.enum(["confirmation_sent", "subscribed"]).describe(
1939
+ "`confirmation_sent` for double opt-in forms, `subscribed` for single opt-in. The same for every address, accepted or quietly dropped."
1940
+ )
1941
+ });
1636
1942
  var mediaSchema = z.object({
1637
1943
  mediaId: z.string(),
1638
1944
  url: z.string(),
@@ -1739,96 +2045,36 @@ var reputationSchema = z.object({
1739
2045
  compliance: z.object({
1740
2046
  status: z.enum(["compliant", "needs_work", "unknown"]),
1741
2047
  needsWork: z.array(z.string())
1742
- }).nullable(),
1743
- days: z.array(googleDaySchema)
1744
- })
1745
- )
1746
- }),
1747
- snds: z.object({
1748
- connection: connectionSchema.nullable(),
1749
- ips: z.array(z.object({ ip: z.string(), days: z.array(sndsDaySchema) }))
1750
- }),
1751
- alerts: z.array(reputationAlertSchema)
1752
- });
1753
- var connectSndsBodySchema = z.object({
1754
- dataUrl: z.string().url().describe(
1755
- "The SNDS automated data access link (Automated Data Access page in SNDS). It expires after 30 days; paste the new one when it does."
1756
- )
1757
- });
1758
- var segmentSchema = z.object({
1759
- segmentId: z.string(),
1760
- name: z.string(),
1761
- filter: contactFilterSchema,
1762
- createdAt: z.string().nullable(),
1763
- updatedAt: z.string().nullable()
1764
- });
1765
- var createSegmentBodySchema = z.object({
1766
- name: z.string().min(1),
1767
- filter: contactFilterSchema
1768
- });
1769
- var updateSegmentBodySchema = z.object({
1770
- name: z.string().min(1).optional(),
1771
- filter: contactFilterSchema.optional()
1772
- });
1773
- var generalSettingsSchema = z.object({
1774
- /** Physical postal address rendered in email footers
1775
- * (CAN-SPAM/GDPR requirement). */
1776
- mailingAddress: z.string().nullable(),
1777
- updatedAt: z.string().nullable().optional()
1778
- });
1779
- var updateGeneralSettingsBodySchema = z.object({
1780
- /** Send an empty string to clear the mailing address. */
1781
- mailingAddress: z.string().optional()
1782
- });
1783
- var trackingDomainStatuses = ["pending", "verified", "failed"];
1784
- var trackingDomainSchema = z.object({
1785
- domain: z.string().nullable(),
1786
- /** `pending` until the CNAME and HTTPS work; `failed` after the domain
1787
- * stopped working, when links fall back to SendLit's own host. */
1788
- status: z.enum(trackingDomainStatuses).nullable(),
1789
- /** The host the domain's CNAME record must point to. */
1790
- cnameTarget: z.string(),
1791
- /** Why the last check failed: `cname_missing`, `cname_mismatch`,
1792
- * `unreachable` (no HTTPS answer yet) or `dns_error`. */
1793
- error: z.string().nullable(),
1794
- verifiedAt: z.string().nullable(),
1795
- checkedAt: z.string().nullable()
1796
- });
1797
- var updateTrackingDomainBodySchema = z.object({
1798
- /** A subdomain such as `track.example.com`; `null` removes it. */
1799
- domain: z.string().max(253).nullable()
2048
+ }).nullable(),
2049
+ days: z.array(googleDaySchema)
2050
+ })
2051
+ )
2052
+ }),
2053
+ snds: z.object({
2054
+ connection: connectionSchema.nullable(),
2055
+ ips: z.array(z.object({ ip: z.string(), days: z.array(sndsDaySchema) }))
2056
+ }),
2057
+ alerts: z.array(reputationAlertSchema)
1800
2058
  });
1801
- var suppressionReason = [
1802
- "hard_bounce",
1803
- "complaint",
1804
- "repeated_soft_bounce",
1805
- "provider_suppression",
1806
- "manual"
1807
- ];
1808
- var suppressionSchema = z.object({
1809
- suppressionId: z.string(),
1810
- recipientEmail: z.string().nullable(),
1811
- reason: z.enum(suppressionReason),
1812
- active: z.boolean(),
1813
- firstSuppressedAt: z.string(),
1814
- lastSuppressedAt: z.string(),
1815
- releasedAt: z.string().nullable().optional(),
1816
- releaseReason: z.string().nullable().optional()
2059
+ var connectSndsBodySchema = z.object({
2060
+ dataUrl: z.string().url().describe(
2061
+ "The SNDS automated data access link (Automated Data Access page in SNDS). It expires after 30 days; paste the new one when it does."
2062
+ )
1817
2063
  });
1818
- var listSuppressionsQuerySchema = z.object({
1819
- active: z.coerce.boolean().optional(),
1820
- reason: z.enum(suppressionReason).optional(),
1821
- offset: z.coerce.number().int().min(1).optional(),
1822
- itemsPerPage: z.coerce.number().int().min(1).optional()
2064
+ var segmentSchema = z.object({
2065
+ segmentId: z.string(),
2066
+ name: z.string(),
2067
+ filter: contactFilterSchema,
2068
+ createdAt: z.string().nullable(),
2069
+ updatedAt: z.string().nullable()
1823
2070
  });
1824
- var releaseSuppressionBodySchema = z.object({
1825
- explanation: z.string().min(1).max(2e3).optional()
2071
+ var createSegmentBodySchema = z.object({
2072
+ name: z.string().min(1),
2073
+ filter: contactFilterSchema
1826
2074
  });
1827
- var createSuppressionBodySchema = z.object({
1828
- email: z.string().email(),
1829
- note: z.string().max(2e3).optional().describe(
1830
- "Why the address is blocked, e.g. a legal request; kept in the audit trail"
1831
- )
2075
+ var updateSegmentBodySchema = z.object({
2076
+ name: z.string().min(1).optional(),
2077
+ filter: contactFilterSchema.optional()
1832
2078
  });
1833
2079
  var tagSummarySchema = z.object({
1834
2080
  tag: z.string(),
@@ -1871,108 +2117,6 @@ var deleteTagResultSchema = z.object({
1871
2117
  contactsUpdated: z.number().int(),
1872
2118
  references: tagReferencesSchema
1873
2119
  });
1874
- var teamSchema = z.object({
1875
- teamId: z.string(),
1876
- /** Public organization identifier. Present when an end user lists the
1877
- * teams they belong to, so the dashboard can keep workspace selection
1878
- * scoped to one organization. */
1879
- organizationId: z.string().optional(),
1880
- organizationName: z.string().optional(),
1881
- name: z.string(),
1882
- status: z.enum(["active", "sending_suspended", "archived"]),
1883
- externalId: z.string().nullable().optional(),
1884
- createdAt: z.string().nullable().optional(),
1885
- updatedAt: z.string().nullable().optional(),
1886
- /** True when the calling human is already a `team_members` row. Always
1887
- * false for organization API keys. Omitted on non-list team payloads. */
1888
- viewerIsMember: z.boolean().optional()
1889
- });
1890
- var apiKeySchema = z.object({
1891
- keyId: z.string(),
1892
- keyPrefix: z.string(),
1893
- name: z.string(),
1894
- expiresAt: z.string().nullable().optional(),
1895
- lastUsedAt: z.string().nullable().optional(),
1896
- revokedAt: z.string().nullable().optional(),
1897
- createdAt: z.string().nullable().optional()
1898
- });
1899
- var createdApiKeySchema = apiKeySchema.extend({
1900
- key: z.string()
1901
- });
1902
- var createTeamBodySchema = z.object({ name: z.string().min(1) });
1903
- var renameTeamBodySchema = z.object({ name: z.string().min(1) });
1904
- var createApiKeyBodySchema = z.object({ name: z.string().min(1) });
1905
- var provisionTeamBodySchema = z.object({
1906
- externalId: z.string().min(1),
1907
- name: z.string().min(1),
1908
- sender: z.object({
1909
- fromName: z.string().min(1).optional(),
1910
- replyTo: z.string().email().optional()
1911
- }).optional(),
1912
- mailingAddress: z.string().min(1).optional(),
1913
- delivery: z.object({
1914
- useOrganizationDefault: z.boolean().optional(),
1915
- teamEspEnabled: z.boolean().optional(),
1916
- teamCanChangeDefault: z.boolean().optional()
1917
- }).optional(),
1918
- quota: z.object({
1919
- dailyLimit: z.number().int().positive().nullable().optional(),
1920
- monthlyLimit: z.number().int().positive().nullable().optional()
1921
- }).optional()
1922
- });
1923
- var provisionedTeamBaseSchema = z.object({
1924
- teamId: z.string(),
1925
- externalId: z.string(),
1926
- name: z.string(),
1927
- deliverySource: z.object({ type: z.literal("organization") })
1928
- });
1929
- var provisionTeamResponseSchema = z.discriminatedUnion("created", [
1930
- provisionedTeamBaseSchema.extend({
1931
- created: z.literal(true),
1932
- apiKey: z.string()
1933
- }),
1934
- provisionedTeamBaseSchema.extend({
1935
- created: z.literal(false),
1936
- apiKey: z.null()
1937
- })
1938
- ]);
1939
- var provisionedTeamSchema = provisionedTeamBaseSchema.extend({
1940
- status: z.enum(["active", "sending_suspended", "archived"]),
1941
- mailingAddress: z.string().nullable(),
1942
- teamEspEnabled: z.boolean(),
1943
- teamCanChangeDefault: z.boolean(),
1944
- createdAt: z.string().nullable(),
1945
- updatedAt: z.string().nullable()
1946
- });
1947
- var updateProvisionedTeamBodySchema = z.object({
1948
- name: z.string().min(1).optional(),
1949
- sender: z.object({
1950
- fromName: z.string().min(1).nullable().optional(),
1951
- replyTo: z.string().email().nullable().optional()
1952
- }).optional(),
1953
- mailingAddress: z.string().min(1).nullable().optional(),
1954
- delivery: z.object({
1955
- teamEspEnabled: z.boolean().optional(),
1956
- teamCanChangeDefault: z.boolean().optional()
1957
- }).optional(),
1958
- quota: z.object({
1959
- dailyLimit: z.number().int().nonnegative().nullable().optional(),
1960
- monthlyLimit: z.number().int().nonnegative().nullable().optional()
1961
- }).optional()
1962
- }).refine((body) => Object.keys(body).length > 0, {
1963
- message: "At least one field is required"
1964
- });
1965
- var usageWindowSchema = z.object({
1966
- limit: z.number().int().nullable(),
1967
- accepted: z.number().int().nonnegative(),
1968
- reserved: z.number().int().nonnegative(),
1969
- remaining: z.number().int().nullable(),
1970
- resetsAt: z.string()
1971
- });
1972
- var provisionedTeamUsageSchema = z.object({
1973
- day: usageWindowSchema,
1974
- month: usageWindowSchema
1975
- });
1976
2120
  var templatePurposes = ["marketing", "transactional"];
1977
2121
  var templatePurposeSchema = z.enum(templatePurposes).describe(
1978
2122
  "Immutable sending purpose. Marketing templates require a final managed footer; transactional templates are footer-free and are valid for POST /emails."
@@ -2314,7 +2458,8 @@ var contactsContract = c.router(
2314
2458
  200: c.type(),
2315
2459
  404: errorSchema
2316
2460
  },
2317
- summary: "List broadcasts/sequence emails delivered to a contact"
2461
+ summary: "List broadcasts/sequence emails sent to a contact",
2462
+ description: "Newest first. Each send has its `outcome`: sent (accepted by the ESP, no report yet), delivered, bounced, complained (marked as spam) or failed; null for sends from before the outbound message log."
2318
2463
  },
2319
2464
  events: {
2320
2465
  method: "GET",
@@ -2716,7 +2861,7 @@ var sequencesContract = c.router(
2716
2861
  422: errorSchema
2717
2862
  },
2718
2863
  summary: "Start a broadcast or activate a sequence",
2719
- description: "Requires a non-empty mailing address in the team's general settings. On SendLit Cloud, a new organization's first broadcast to 1,000 or more contacts through its own ESP is reviewed once before it can start (400 `broadcast_held_for_review`); start it again once approved."
2864
+ description: "Requires a postal address in the team's general settings. On SendLit Cloud, a new organization's first broadcast to 1,000 or more contacts through its own ESP is reviewed once before it can start (400 `broadcast_held_for_review`); start it again once approved."
2720
2865
  },
2721
2866
  pause: {
2722
2867
  method: "POST",
@@ -2750,6 +2895,18 @@ var sequencesContract = c.router(
2750
2895
  responses: { 200: sequenceStatsSchema, 404: errorSchema },
2751
2896
  summary: "Delivery / open-rate / click-through-rate stats for a sequence"
2752
2897
  },
2898
+ deliveries: {
2899
+ method: "GET",
2900
+ path: "/sequences/:sequenceId/deliveries",
2901
+ query: listSequenceDeliveriesQuerySchema,
2902
+ responses: {
2903
+ 200: sequenceDeliveriesPageSchema,
2904
+ 400: errorSchema,
2905
+ 404: errorSchema
2906
+ },
2907
+ summary: "List the sends of a sequence or broadcast and what happened to each",
2908
+ description: "One row per email sent (accepted by the ESP), most recent outcome first, with the recipient, the outcome (sent, delivered, bounced, complained, failed), the bounce type and the ESP's reason when it reported one, and the address's active suppression if any. `outcome=bounced` and `outcome=complained` list exactly the sends counted by the `bounceRate` and `complaintRate` of GET /sequences/{sequenceId}/stats. Pages hold `itemsPerPage` sends (default 10, at most 100); `offset` is the page number. Sends whose contact was deleted are not listed."
2909
+ },
2753
2910
  schedule: {
2754
2911
  method: "GET",
2755
2912
  path: "/sequences/:sequenceId/schedule",
@@ -2798,7 +2955,7 @@ var transactionalContract = c.router(
2798
2955
  429: errorSchema
2799
2956
  },
2800
2957
  summary: "Send a transactional email",
2801
- description: "Requires a non-empty mailing address in the team's general settings. `templateId` must identify a team-owned transactional template; marketing templates return 422 template_not_transactional. Unguarded Liquid variables must be supplied in `variables`, or the API returns 422 missing_template_variables without creating a row or queue job. Inline `html` is sent verbatim without Liquid rendering. address, unsubscribe_link, and subscriber are marketing-only server-owned values and are unavailable to transactional templates."
2958
+ 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."
2802
2959
  },
2803
2960
  get: {
2804
2961
  method: "GET",
@@ -2958,7 +3115,7 @@ var espCollectionContract = c.router(
2958
3115
  502: testEspConfigResponseSchema
2959
3116
  },
2960
3117
  summary: "Send a test email through a user-managed ESP",
2961
- description: "Requires a non-empty mailing address in the team's general settings."
3118
+ description: "Requires a postal address in the team's general settings."
2962
3119
  },
2963
3120
  activate: {
2964
3121
  method: "POST",
@@ -3025,9 +3182,9 @@ var generalSettingsContract = c.router(
3025
3182
  method: "PUT",
3026
3183
  path: "/settings/general",
3027
3184
  body: updateGeneralSettingsBodySchema,
3028
- responses: { 200: generalSettingsSchema },
3185
+ responses: { 200: generalSettingsSchema, 400: errorSchema },
3029
3186
  summary: "Update the team's general settings",
3030
- description: "Omitted fields are left unchanged; send an empty string to clear a field."
3187
+ description: "Omit `postalAddress` to keep it; `null` clears it. 400 `postal_country_invalid` when its country isn't a current ISO 3166-1 alpha-2 code."
3031
3188
  }
3032
3189
  },
3033
3190
  { metadata: { tag: "Settings" } }
@@ -3241,7 +3398,7 @@ var provisioningContract = c.router(
3241
3398
  500: errorSchema
3242
3399
  },
3243
3400
  summary: "Find-or-create a team for a consumer-supplied tenant id",
3244
- description: "Server-to-server endpoint for multi-tenant consumers (e.g. CourseLit) to provision one SendLit team per tenant. Requires a scoped organization key as a Bearer token."
3401
+ description: "Server-to-server endpoint for multi-tenant consumers (e.g. CourseLit) to provision one SendLit team per tenant. Requires a scoped organization key as a Bearer token. `postalAddress` sets the team's footer address; 400 `postal_country_invalid` when its country isn't a current ISO 3166-1 alpha-2 code."
3245
3402
  },
3246
3403
  getTeam: {
3247
3404
  method: "GET",
@@ -3251,7 +3408,8 @@ var provisioningContract = c.router(
3251
3408
  403: errorSchema,
3252
3409
  404: errorSchema
3253
3410
  },
3254
- summary: "Get a provisioned team within the authenticated organization"
3411
+ summary: "Get a provisioned team within the authenticated organization",
3412
+ 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."
3255
3413
  },
3256
3414
  updateTeam: {
3257
3415
  method: "PATCH",
@@ -3259,11 +3417,13 @@ var provisioningContract = c.router(
3259
3417
  body: updateProvisionedTeamBodySchema,
3260
3418
  responses: {
3261
3419
  200: provisionedTeamSchema,
3420
+ 400: errorSchema,
3262
3421
  403: errorSchema,
3263
3422
  404: errorSchema,
3264
3423
  409: errorSchema
3265
3424
  },
3266
- summary: "Update a provisioned team's sender, limits, or settings"
3425
+ summary: "Update a provisioned team's sender, limits, or settings",
3426
+ description: "Omitted fields are left unchanged. `postalAddress: null` clears the team's postal address; 400 `postal_country_invalid` when its country isn't a current ISO 3166-1 alpha-2 code."
3267
3427
  },
3268
3428
  createTeamKey: {
3269
3429
  method: "POST",
@@ -3306,6 +3466,39 @@ var provisioningContract = c.router(
3306
3466
  responses: { 204: c.noBody(), 403: errorSchema, 404: errorSchema },
3307
3467
  summary: "Archive a provisioned team"
3308
3468
  },
3469
+ getTeamSendingDomain: {
3470
+ method: "GET",
3471
+ path: "/provisioning/teams/:teamId/sending-domain",
3472
+ responses: {
3473
+ 200: teamSendingDomainSchema.nullable(),
3474
+ 403: errorSchema,
3475
+ 404: errorSchema,
3476
+ 422: errorSchema
3477
+ },
3478
+ summary: "Check a provisioned team's own sending domain",
3479
+ 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."
3480
+ },
3481
+ setTeamSendingDomain: {
3482
+ method: "PUT",
3483
+ path: "/provisioning/teams/:teamId/sending-domain",
3484
+ body: setTeamSendingDomainBodySchema,
3485
+ responses: {
3486
+ 200: teamSendingDomainSchema,
3487
+ 400: errorSchema,
3488
+ 403: errorSchema,
3489
+ 404: errorSchema,
3490
+ 409: errorSchema,
3491
+ 422: errorSchema
3492
+ },
3493
+ summary: "Set a provisioned team's own From address and register its domain",
3494
+ 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."
3495
+ },
3496
+ removeTeamSendingDomain: {
3497
+ method: "DELETE",
3498
+ path: "/provisioning/teams/:teamId/sending-domain",
3499
+ responses: { 204: c.noBody(), 403: errorSchema, 404: errorSchema },
3500
+ summary: "Stop using a provisioned team's own sending domain"
3501
+ },
3309
3502
  getTeamUsage: {
3310
3503
  method: "GET",
3311
3504
  path: "/provisioning/teams/:teamId/usage",
@@ -3314,7 +3507,8 @@ var provisioningContract = c.router(
3314
3507
  403: errorSchema,
3315
3508
  404: errorSchema
3316
3509
  },
3317
- summary: "Get organization-delivery quota usage for a provisioned team"
3510
+ summary: "Get organization-delivery quota usage for a provisioned team",
3511
+ description: "Returns the team's day and month quota on the shared mailbox, plus its `health` (see Get a provisioned team)."
3318
3512
  }
3319
3513
  },
3320
3514
  { metadata: { tag: "Teams" } }
@@ -3628,6 +3822,31 @@ var organizationsContract = c.router(
3628
3822
  summary: "Delete an eligible never-activated organization ESP",
3629
3823
  description: "Only a never-activated draft with no history is deleted. 409 explains a blocked delete: `esp_retire_instead` (it has been activated; retire it instead), `esp_has_delivery_history`, or `delivery_source_in_use`."
3630
3824
  },
3825
+ setEspManagementCredentials: {
3826
+ method: "PUT",
3827
+ path: "/organizations/:organizationId/esps/:espId/management-credentials",
3828
+ body: espManagementCredentialsBodySchema,
3829
+ responses: {
3830
+ 200: espConfigSchema,
3831
+ 403: errorSchema,
3832
+ 404: errorSchema,
3833
+ 422: errorSchema
3834
+ },
3835
+ summary: "Store a shared ESP's provider API credential",
3836
+ description: "Lets teams register their own sending domains on this mailbox. Amazon SES only for now (422 `provider_domain_unsupported` otherwise). The credential is encrypted at rest and never returned; the ESP shows `hasManagementCredentials`."
3837
+ },
3838
+ removeEspManagementCredentials: {
3839
+ method: "DELETE",
3840
+ path: "/organizations/:organizationId/esps/:espId/management-credentials",
3841
+ responses: {
3842
+ 200: espConfigSchema,
3843
+ 403: errorSchema,
3844
+ 404: errorSchema,
3845
+ 409: errorSchema
3846
+ },
3847
+ summary: "Remove a shared ESP's provider API credential",
3848
+ description: "409 `esp_management_credentials_in_use` while teams' own sending domains are registered through the mailbox: remove those first."
3849
+ },
3631
3850
  getEspFeedback: {
3632
3851
  method: "GET",
3633
3852
  path: "/organizations/:organizationId/esps/:espId/feedback",
@@ -3727,8 +3946,8 @@ var organizationsContract = c.router(
3727
3946
  403: errorSchema,
3728
3947
  404: errorSchema
3729
3948
  },
3730
- summary: "Get organization transactional mail activity",
3731
- description: "Returns per-team and organization-total transactional mail counts (`sent`, `queued`, `failed`, `bounced`) for a window of 1, 3, 7, or 30 days (default 7). Includes teams with zero activity. Does not include campaigns, broadcasts, sequences, recipients, subjects, or email bodies. Shared-delivery quota remains on `/usage`."
3949
+ summary: "Get organization mail activity and team health",
3950
+ description: "Returns per-team and organization-total mail counts (`sent`, `queued`, `failed`, `bounced`, `complained`) from the outbound ledger, covering broadcasts, sequences and transactional email, for a window of 1, 3, 7, or 30 days (default 7). Includes teams with zero activity. Each team also carries its `health` (sending status with reason and scope, plus 7-day sent, bounced and complained counts, whatever the window) and its shared-mailbox `quota` (null without an active grant). No recipients, subjects, or email bodies."
3732
3951
  },
3733
3952
  enterTeam: {
3734
3953
  method: "POST",
@@ -3788,6 +4007,40 @@ var organizationsContract = c.router(
3788
4007
  },
3789
4008
  summary: "Transition a team's organization ESP grant; revoking detaches safe campaigns"
3790
4009
  },
4010
+ getTeamSendingDomain: {
4011
+ method: "GET",
4012
+ path: "/organizations/:organizationId/teams/:teamId/sending-domain",
4013
+ responses: {
4014
+ 200: teamSendingDomainSchema.nullable(),
4015
+ 403: errorSchema,
4016
+ 404: errorSchema,
4017
+ 422: errorSchema
4018
+ },
4019
+ summary: "Check a team's own sending domain",
4020
+ description: "Re-checks the domain with the shared ESP and DNS (at most every 30 seconds; calls in between return the last check) and returns its status and the DNS records to publish. `null` when the team has none. The team sends from it once the ESP has verified DKIM and a DMARC record is published."
4021
+ },
4022
+ setTeamSendingDomain: {
4023
+ method: "PUT",
4024
+ path: "/organizations/:organizationId/teams/:teamId/sending-domain",
4025
+ body: setTeamSendingDomainBodySchema,
4026
+ responses: {
4027
+ 200: teamSendingDomainSchema,
4028
+ 400: errorSchema,
4029
+ 403: errorSchema,
4030
+ 404: errorSchema,
4031
+ 409: errorSchema,
4032
+ 422: errorSchema
4033
+ },
4034
+ summary: "Set a team's own From address and register its domain",
4035
+ description: "Registers the From address's domain with the team's shared ESP (Amazon SES for now) and returns the DNS records to publish. Replacing a different domain removes the old one. 422 `esp_management_credentials_required` when the shared ESP has no API credential, `provider_domain_unsupported` for other providers, `organization_delivery_disabled` without an active grant. 409 `domain_in_use` when another team, the organization or the shared mailbox's own From address uses the domain, and `domain_exists_at_provider` when the ESP account already has the domain (SendLit never takes over an identity it did not create). 422 `esp_provider_error` when the provider's API refuses or fails."
4036
+ },
4037
+ removeTeamSendingDomain: {
4038
+ method: "DELETE",
4039
+ path: "/organizations/:organizationId/teams/:teamId/sending-domain",
4040
+ responses: { 204: c.noBody(), 403: errorSchema, 404: errorSchema },
4041
+ summary: "Stop using a team's own sending domain",
4042
+ description: "Removes the domain from the shared ESP. The team goes back to the shared From domain, which the organization's `requireTeamSendingDomain` policy may refuse."
4043
+ },
3791
4044
  listSendingDomains: {
3792
4045
  method: "GET",
3793
4046
  path: "/organizations/:organizationId/sending-domains",
@@ -3998,6 +4251,22 @@ var formsContract = c.router(
3998
4251
  path: "/forms/:formId",
3999
4252
  responses: { 204: c.noBody(), 404: errorSchema },
4000
4253
  summary: "Delete a signup form"
4254
+ },
4255
+ submit: {
4256
+ method: "POST",
4257
+ path: "/forms/:formId/submissions",
4258
+ body: submitSignupFormBodySchema,
4259
+ responses: {
4260
+ 200: signupFormSubmissionSchema,
4261
+ 400: errorSchema,
4262
+ 404: errorSchema,
4263
+ 429: errorSchema,
4264
+ 503: signupFormSenderErrorSchema.extend({
4265
+ error: z.literal("form_unavailable")
4266
+ })
4267
+ },
4268
+ summary: "Submit a signup to a form",
4269
+ description: "Signs someone up through the form from your own server, for a signup page you host yourself. It works like a submission to the form's public URL: double opt-in forms email the confirmation link and subscribe only once it's clicked, single opt-in never resubscribes someone who unsubscribed, and suppressed or disposable addresses are dropped quietly. A double opt-in form doesn't email someone who is already subscribed. Pass `clientIp` so the per-IP rate limit applies to the person, not your server. Fails with 400 `invalid_email`, 429 `too_many_requests`, or 503 `form_unavailable` when the team can't send the confirmation email."
4001
4270
  }
4002
4271
  },
4003
4272
  { metadata: { tag: "Contacts" } }
@@ -4453,19 +4722,62 @@ var Events = class {
4453
4722
  }
4454
4723
  };
4455
4724
 
4725
+ // src/resources/forms.ts
4726
+ var routes5 = contract.forms;
4727
+ var Forms = class {
4728
+ constructor(http) {
4729
+ this.http = http;
4730
+ }
4731
+ async list() {
4732
+ return this.http.request(routes5.list);
4733
+ }
4734
+ /** Double opt-in (the default) needs a sending mailbox: without one this
4735
+ * fails with 422 `confirmation_sender_unavailable`. */
4736
+ async create(input) {
4737
+ return this.http.request(routes5.create, { body: input });
4738
+ }
4739
+ async get(formId) {
4740
+ return this.http.request(routes5.get, {
4741
+ params: { formId: assertId(formId, "formId") }
4742
+ });
4743
+ }
4744
+ async update(formId, input) {
4745
+ return this.http.request(routes5.update, {
4746
+ params: { formId: assertId(formId, "formId") },
4747
+ body: input
4748
+ });
4749
+ }
4750
+ async remove(formId) {
4751
+ await this.http.request(routes5.remove, {
4752
+ params: { formId: assertId(formId, "formId") }
4753
+ });
4754
+ }
4755
+ /**
4756
+ * Signs someone up through the form from your server. A double opt-in
4757
+ * form emails them a confirmation link; pass `clientIp` so the per-IP
4758
+ * rate limit applies to them rather than to your server.
4759
+ */
4760
+ async submit(formId, input) {
4761
+ return this.http.request(routes5.submit, {
4762
+ params: { formId: assertId(formId, "formId") },
4763
+ body: input
4764
+ });
4765
+ }
4766
+ };
4767
+
4456
4768
  // src/resources/overview.ts
4457
- var routes5 = contract.overview;
4769
+ var routes6 = contract.overview;
4458
4770
  var OverviewResource = class {
4459
4771
  constructor(http) {
4460
4772
  this.http = http;
4461
4773
  }
4462
4774
  async get(query = {}) {
4463
- return this.http.request(routes5.get, { query });
4775
+ return this.http.request(routes6.get, { query });
4464
4776
  }
4465
4777
  };
4466
4778
 
4467
4779
  // src/resources/provisioning.ts
4468
- var routes6 = contract.provisioning;
4780
+ var routes7 = contract.provisioning;
4469
4781
  var Provisioning = class {
4470
4782
  constructor(http) {
4471
4783
  this.http = http;
@@ -4476,20 +4788,20 @@ var Provisioning = class {
4476
4788
  * `created: false, apiKey: null`, so it's safe to retry.
4477
4789
  */
4478
4790
  async provisionTeam(input) {
4479
- return this.http.request(routes6.provisionTeam, {
4791
+ return this.http.request(routes7.provisionTeam, {
4480
4792
  body: input,
4481
4793
  retrySafe: true
4482
4794
  });
4483
4795
  }
4484
4796
  /** `teams:read` */
4485
4797
  async getTeam(teamId) {
4486
- return this.http.request(routes6.getTeam, {
4798
+ return this.http.request(routes7.getTeam, {
4487
4799
  params: { teamId: assertId(teamId, "teamId") }
4488
4800
  });
4489
4801
  }
4490
4802
  /** `teams:manage` */
4491
4803
  async updateTeam(teamId, input) {
4492
- return this.http.request(routes6.updateTeam, {
4804
+ return this.http.request(routes7.updateTeam, {
4493
4805
  params: { teamId: assertId(teamId, "teamId") },
4494
4806
  body: input
4495
4807
  });
@@ -4497,106 +4809,106 @@ var Provisioning = class {
4497
4809
  /** Replaces the team's integration key (`teams:keys`); keys previously
4498
4810
  * issued through provisioning are revoked. */
4499
4811
  async createTeamKey(teamId, input) {
4500
- return this.http.request(routes6.createTeamKey, {
4812
+ return this.http.request(routes7.createTeamKey, {
4501
4813
  params: { teamId: assertId(teamId, "teamId") },
4502
4814
  body: input
4503
4815
  });
4504
4816
  }
4505
4817
  /** `teams:manage` */
4506
4818
  async suspendTeam(teamId) {
4507
- return this.http.request(routes6.suspendTeam, {
4819
+ return this.http.request(routes7.suspendTeam, {
4508
4820
  params: { teamId: assertId(teamId, "teamId") }
4509
4821
  });
4510
4822
  }
4511
4823
  /** `teams:manage` */
4512
4824
  async resumeTeam(teamId) {
4513
- return this.http.request(routes6.resumeTeam, {
4825
+ return this.http.request(routes7.resumeTeam, {
4514
4826
  params: { teamId: assertId(teamId, "teamId") }
4515
4827
  });
4516
4828
  }
4517
4829
  /** Soft-deprovisions the team (`teams:manage`). There is no unarchive. */
4518
4830
  async archiveTeam(teamId) {
4519
- await this.http.request(routes6.archiveTeam, {
4831
+ await this.http.request(routes7.archiveTeam, {
4520
4832
  params: { teamId: assertId(teamId, "teamId") }
4521
4833
  });
4522
4834
  }
4523
4835
  /** `usage:read` */
4524
4836
  async getTeamUsage(teamId) {
4525
- return this.http.request(routes6.getTeamUsage, {
4837
+ return this.http.request(routes7.getTeamUsage, {
4526
4838
  params: { teamId: assertId(teamId, "teamId") }
4527
4839
  });
4528
4840
  }
4529
4841
  };
4530
4842
 
4531
4843
  // src/resources/segments.ts
4532
- var routes7 = contract.segments;
4844
+ var routes8 = contract.segments;
4533
4845
  var Segments = class {
4534
4846
  constructor(http) {
4535
4847
  this.http = http;
4536
4848
  }
4537
4849
  async create(input) {
4538
- return this.http.request(routes7.create, { body: input });
4850
+ return this.http.request(routes8.create, { body: input });
4539
4851
  }
4540
4852
  async list() {
4541
- return this.http.request(routes7.list);
4853
+ return this.http.request(routes8.list);
4542
4854
  }
4543
4855
  async get(segmentId) {
4544
- return this.http.request(routes7.get, {
4856
+ return this.http.request(routes8.get, {
4545
4857
  params: { segmentId: assertId(segmentId, "segmentId") }
4546
4858
  });
4547
4859
  }
4548
4860
  async update(segmentId, input) {
4549
- return this.http.request(routes7.update, {
4861
+ return this.http.request(routes8.update, {
4550
4862
  params: { segmentId: assertId(segmentId, "segmentId") },
4551
4863
  body: input
4552
4864
  });
4553
4865
  }
4554
4866
  async remove(segmentId) {
4555
- await this.http.request(routes7.remove, {
4867
+ await this.http.request(routes8.remove, {
4556
4868
  params: { segmentId: assertId(segmentId, "segmentId") }
4557
4869
  });
4558
4870
  }
4559
4871
  };
4560
4872
 
4561
4873
  // src/resources/sequences.ts
4562
- var routes8 = contract.sequences;
4874
+ var routes9 = contract.sequences;
4563
4875
  var Sequences = class {
4564
4876
  constructor(http) {
4565
4877
  this.http = http;
4566
4878
  }
4567
4879
  async create(input) {
4568
- return this.http.request(routes8.create, { body: input });
4880
+ return this.http.request(routes9.create, { body: input });
4569
4881
  }
4570
4882
  async list(query) {
4571
- return this.http.request(routes8.list, { query });
4883
+ return this.http.request(routes9.list, { query });
4572
4884
  }
4573
4885
  listAll(query) {
4574
4886
  return paginate((offset) => this.list({ ...query, offset }));
4575
4887
  }
4576
4888
  async get(sequenceId) {
4577
- return this.http.request(routes8.get, {
4889
+ return this.http.request(routes9.get, {
4578
4890
  params: { sequenceId: assertId(sequenceId, "sequenceId") }
4579
4891
  });
4580
4892
  }
4581
4893
  async update(sequenceId, input) {
4582
- return this.http.request(routes8.update, {
4894
+ return this.http.request(routes9.update, {
4583
4895
  params: { sequenceId: assertId(sequenceId, "sequenceId") },
4584
4896
  body: input
4585
4897
  });
4586
4898
  }
4587
4899
  async remove(sequenceId) {
4588
- await this.http.request(routes8.remove, {
4900
+ await this.http.request(routes9.remove, {
4589
4901
  params: { sequenceId: assertId(sequenceId, "sequenceId") }
4590
4902
  });
4591
4903
  }
4592
4904
  async addEmail(sequenceId, input) {
4593
- return this.http.request(routes8.addEmail, {
4905
+ return this.http.request(routes9.addEmail, {
4594
4906
  params: { sequenceId: assertId(sequenceId, "sequenceId") },
4595
4907
  body: input
4596
4908
  });
4597
4909
  }
4598
4910
  async updateEmail(sequenceId, emailId, input) {
4599
- return this.http.request(routes8.updateEmail, {
4911
+ return this.http.request(routes9.updateEmail, {
4600
4912
  params: {
4601
4913
  sequenceId: assertId(sequenceId, "sequenceId"),
4602
4914
  emailId: assertId(emailId, "emailId")
@@ -4608,21 +4920,21 @@ var Sequences = class {
4608
4920
  * sequence, so sends use them. While it's active, `updateEmail` saves
4609
4921
  * subject and content changes as a draft. */
4610
4922
  async publishChanges(sequenceId, input = {}) {
4611
- return this.http.request(routes8.publishChanges, {
4923
+ return this.http.request(routes9.publishChanges, {
4612
4924
  params: { sequenceId: assertId(sequenceId, "sequenceId") },
4613
4925
  body: input
4614
4926
  });
4615
4927
  }
4616
4928
  /** Throws away unpublished email changes. Sends are not affected. */
4617
4929
  async discardChanges(sequenceId, input = {}) {
4618
- return this.http.request(routes8.discardChanges, {
4930
+ return this.http.request(routes9.discardChanges, {
4619
4931
  params: { sequenceId: assertId(sequenceId, "sequenceId") },
4620
4932
  body: input
4621
4933
  });
4622
4934
  }
4623
4935
  /** The versions an email has been published with, live one first. */
4624
4936
  async emailVersions(sequenceId, emailId) {
4625
- const { items } = await this.http.request(routes8.emailVersions, {
4937
+ const { items } = await this.http.request(routes9.emailVersions, {
4626
4938
  params: {
4627
4939
  sequenceId: assertId(sequenceId, "sequenceId"),
4628
4940
  emailId: assertId(emailId, "emailId")
@@ -4633,7 +4945,7 @@ var Sequences = class {
4633
4945
  /** Loads an earlier published version into the email's draft; publish
4634
4946
  * it with `publishChanges` to roll back. */
4635
4947
  async restoreEmailVersion(sequenceId, emailId, versionId) {
4636
- return this.http.request(routes8.restoreEmailVersion, {
4948
+ return this.http.request(routes9.restoreEmailVersion, {
4637
4949
  params: {
4638
4950
  sequenceId: assertId(sequenceId, "sequenceId"),
4639
4951
  emailId: assertId(emailId, "emailId"),
@@ -4642,7 +4954,7 @@ var Sequences = class {
4642
4954
  });
4643
4955
  }
4644
4956
  async removeEmail(sequenceId, emailId) {
4645
- return this.http.request(routes8.removeEmail, {
4957
+ return this.http.request(routes9.removeEmail, {
4646
4958
  params: {
4647
4959
  sequenceId: assertId(sequenceId, "sequenceId"),
4648
4960
  emailId: assertId(emailId, "emailId")
@@ -4652,25 +4964,37 @@ var Sequences = class {
4652
4964
  /** Sends a broadcast, or activates a sequence so its trigger starts
4653
4965
  * enrolling contacts. Requires a mailing address in general settings. */
4654
4966
  async start(sequenceId) {
4655
- return this.http.request(routes8.start, {
4967
+ return this.http.request(routes9.start, {
4656
4968
  params: { sequenceId: assertId(sequenceId, "sequenceId") }
4657
4969
  });
4658
4970
  }
4659
4971
  async pause(sequenceId) {
4660
- return this.http.request(routes8.pause, {
4972
+ return this.http.request(routes9.pause, {
4661
4973
  params: { sequenceId: assertId(sequenceId, "sequenceId") }
4662
4974
  });
4663
4975
  }
4664
4976
  async stats(sequenceId) {
4665
- return this.http.request(routes8.stats, {
4977
+ return this.http.request(routes9.stats, {
4666
4978
  params: { sequenceId: assertId(sequenceId, "sequenceId") }
4667
4979
  });
4668
4980
  }
4981
+ /** The emails a broadcast or sequence sent and what happened to each.
4982
+ * `outcome: "bounced"` or `"complained"` lists the recipients behind the
4983
+ * stats' bounce and complaint rates. */
4984
+ async deliveries(sequenceId, query = {}) {
4985
+ return this.http.request(routes9.deliveries, {
4986
+ params: { sequenceId: assertId(sequenceId, "sequenceId") },
4987
+ query
4988
+ });
4989
+ }
4990
+ listAllDeliveries(sequenceId, query = {}) {
4991
+ return paginate((offset) => this.deliveries(sequenceId, { ...query, offset }));
4992
+ }
4669
4993
  /** Sends a test of one broadcast or sequence email, rendered like a real
4670
4994
  * send with a `[Test]` subject prefix. Tests count against the team's test
4671
4995
  * limits (429 `test_send_limit_reached` / `test_send_email_limit_reached`). */
4672
4996
  async sendEmailTest(sequenceId, emailId, input) {
4673
- return this.http.request(routes8.sendEmailTest, {
4997
+ return this.http.request(routes9.sendEmailTest, {
4674
4998
  params: {
4675
4999
  sequenceId: assertId(sequenceId, "sequenceId"),
4676
5000
  emailId: assertId(emailId, "emailId")
@@ -4680,7 +5004,7 @@ var Sequences = class {
4680
5004
  }
4681
5005
  /** IDs of contacts that have received this broadcast or sequence. */
4682
5006
  async subscribers(sequenceId, query = {}) {
4683
- return this.http.request(routes8.subscribers, {
5007
+ return this.http.request(routes9.subscribers, {
4684
5008
  params: { sequenceId: assertId(sequenceId, "sequenceId") },
4685
5009
  query
4686
5010
  });
@@ -4688,16 +5012,16 @@ var Sequences = class {
4688
5012
  };
4689
5013
 
4690
5014
  // src/resources/settings.ts
4691
- var routes9 = contract.settings.general;
5015
+ var routes10 = contract.settings.general;
4692
5016
  var GeneralSettingsResource = class {
4693
5017
  constructor(http) {
4694
5018
  this.http = http;
4695
5019
  }
4696
5020
  async get() {
4697
- return this.http.request(routes9.get);
5021
+ return this.http.request(routes10.get);
4698
5022
  }
4699
5023
  async update(input) {
4700
- return this.http.request(routes9.update, { body: input });
5024
+ return this.http.request(routes10.update, { body: input });
4701
5025
  }
4702
5026
  };
4703
5027
  var Settings = class {
@@ -4707,26 +5031,26 @@ var Settings = class {
4707
5031
  };
4708
5032
 
4709
5033
  // src/resources/suppressions.ts
4710
- var routes10 = contract.suppressions;
5034
+ var routes11 = contract.suppressions;
4711
5035
  var Suppressions = class {
4712
5036
  constructor(http) {
4713
5037
  this.http = http;
4714
5038
  }
4715
5039
  async list(query = {}) {
4716
- return this.http.request(routes10.list, { query });
5040
+ return this.http.request(routes11.list, { query });
4717
5041
  }
4718
5042
  listAll(query = {}) {
4719
5043
  return paginate((offset) => this.list({ ...query, offset }));
4720
5044
  }
4721
5045
  async get(suppressionId) {
4722
- return this.http.request(routes10.get, {
5046
+ return this.http.request(routes11.get, {
4723
5047
  params: { suppressionId: assertId(suppressionId, "suppressionId") }
4724
5048
  });
4725
5049
  }
4726
5050
  /** Complaint suppressions can't be released (409
4727
5051
  * `suppression_not_releasable`). */
4728
5052
  async release(suppressionId, input = {}) {
4729
- return this.http.request(routes10.release, {
5053
+ return this.http.request(routes11.release, {
4730
5054
  params: { suppressionId: assertId(suppressionId, "suppressionId") },
4731
5055
  body: input
4732
5056
  });
@@ -4734,70 +5058,70 @@ var Suppressions = class {
4734
5058
  };
4735
5059
 
4736
5060
  // src/resources/tags.ts
4737
- var routes11 = contract.tags;
5061
+ var routes12 = contract.tags;
4738
5062
  var Tags = class {
4739
5063
  constructor(http) {
4740
5064
  this.http = http;
4741
5065
  }
4742
5066
  async list() {
4743
- return this.http.request(routes11.list);
5067
+ return this.http.request(routes12.list);
4744
5068
  }
4745
5069
  async references(tag) {
4746
- return this.http.request(routes11.references, {
5070
+ return this.http.request(routes12.references, {
4747
5071
  params: { tag: encodeSegment(tag, "tag") }
4748
5072
  });
4749
5073
  }
4750
5074
  /** Renames a tag on every contact and everywhere it's referenced. */
4751
5075
  async rename(tag, input) {
4752
- return this.http.request(routes11.rename, {
5076
+ return this.http.request(routes12.rename, {
4753
5077
  params: { tag: encodeSegment(tag, "tag") },
4754
5078
  body: input
4755
5079
  });
4756
5080
  }
4757
5081
  /** Removes a tag from every contact. */
4758
5082
  async remove(tag) {
4759
- return this.http.request(routes11.remove, {
5083
+ return this.http.request(routes12.remove, {
4760
5084
  params: { tag: encodeSegment(tag, "tag") }
4761
5085
  });
4762
5086
  }
4763
5087
  };
4764
5088
 
4765
5089
  // src/resources/templates.ts
4766
- var routes12 = contract.templates;
5090
+ var routes13 = contract.templates;
4767
5091
  var Templates = class {
4768
5092
  constructor(http) {
4769
5093
  this.http = http;
4770
5094
  }
4771
5095
  async list(query = {}) {
4772
- return this.http.request(routes12.list, { query });
5096
+ return this.http.request(routes13.list, { query });
4773
5097
  }
4774
5098
  /** Built-in starters, shared by every team. Duplicate one into the team
4775
5099
  * before using it for transactional sends. */
4776
5100
  async listSystem(query = {}) {
4777
- return this.http.request(routes12.listSystem, { query });
5101
+ return this.http.request(routes13.listSystem, { query });
4778
5102
  }
4779
5103
  async get(templateId) {
4780
- return this.http.request(routes12.get, {
5104
+ return this.http.request(routes13.get, {
4781
5105
  params: { templateId: assertId(templateId, "templateId") }
4782
5106
  });
4783
5107
  }
4784
5108
  async create(input) {
4785
- return this.http.request(routes12.create, { body: input });
5109
+ return this.http.request(routes13.create, { body: input });
4786
5110
  }
4787
5111
  async update(templateId, input) {
4788
- return this.http.request(routes12.update, {
5112
+ return this.http.request(routes13.update, {
4789
5113
  params: { templateId: assertId(templateId, "templateId") },
4790
5114
  body: input
4791
5115
  });
4792
5116
  }
4793
5117
  async duplicate(templateId, input = {}) {
4794
- return this.http.request(routes12.duplicate, {
5118
+ return this.http.request(routes13.duplicate, {
4795
5119
  params: { templateId: assertId(templateId, "templateId") },
4796
5120
  body: input
4797
5121
  });
4798
5122
  }
4799
5123
  async remove(templateId) {
4800
- await this.http.request(routes12.remove, {
5124
+ await this.http.request(routes13.remove, {
4801
5125
  params: { templateId: assertId(templateId, "templateId") }
4802
5126
  });
4803
5127
  }
@@ -4862,6 +5186,7 @@ var SendLit = class {
4862
5186
  this.sequences = new Sequences(http);
4863
5187
  this.emails = new Emails(http);
4864
5188
  this.events = new Events(http);
5189
+ this.forms = new Forms(http);
4865
5190
  this.provisioning = new Provisioning(http);
4866
5191
  this.suppressions = new Suppressions(http);
4867
5192
  this.deliveryEvents = new DeliveryEvents(http);
@@ -4871,4 +5196,4 @@ var SendLit = class {
4871
5196
  }
4872
5197
  };
4873
5198
 
4874
- export { Contacts, DEFAULT_ENDPOINT, DeliveryEvents, Emails, EventDefinitions, Events, GeneralSettingsResource, OverviewResource, Provisioning, Segments, SendLit, SendLitError, Sequences, Settings, Suppressions, Tags, Templates };
5199
+ export { Contacts, DEFAULT_ENDPOINT, DeliveryEvents, Emails, EventDefinitions, Events, Forms, GeneralSettingsResource, OverviewResource, Provisioning, Segments, SendLit, SendLitError, Sequences, Settings, Suppressions, Tags, Templates };