sendlit 0.0.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -41,11 +41,11 @@ declare class HttpClient {
41
41
 
42
42
  declare const routes$7: {
43
43
  create: {
44
+ summary: "Create a contact";
44
45
  description: "Creates a contact (subscriber). If a contact with the same email already exists for this team, the existing contact is returned.";
45
46
  metadata: {
46
47
  tag: string;
47
48
  };
48
- summary: "Create a contact";
49
49
  method: "POST";
50
50
  body: zod.ZodObject<{
51
51
  email: zod.ZodString;
@@ -55,15 +55,14 @@ declare const routes$7: {
55
55
  }, "strip", zod.ZodTypeAny, {
56
56
  email: string;
57
57
  name?: string | undefined;
58
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
59
58
  tags?: string[] | undefined;
59
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
60
60
  }, {
61
61
  email: string;
62
62
  name?: string | undefined;
63
- customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
64
63
  tags?: string[] | undefined;
64
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
65
65
  }>;
66
- path: "/contacts";
67
66
  responses: {
68
67
  201: zod.ZodObject<{
69
68
  contactId: zod.ZodString;
@@ -76,55 +75,72 @@ declare const routes$7: {
76
75
  createdAt: zod.ZodNullable<zod.ZodString>;
77
76
  updatedAt: zod.ZodNullable<zod.ZodString>;
78
77
  }, "strip", zod.ZodTypeAny, {
79
- updatedAt: string | null;
80
- createdAt: string | null;
81
78
  email: string;
79
+ tags: string[];
82
80
  subscribed: boolean;
81
+ updatedAt: string | null;
82
+ createdAt: string | null;
83
83
  contactId: string;
84
84
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
85
- tags: string[];
86
85
  unsubscribeToken: string;
87
86
  name?: string | null | undefined;
88
87
  }, {
89
- updatedAt: string | null;
90
- createdAt: string | null;
91
88
  email: string;
89
+ tags: string[];
92
90
  subscribed: boolean;
91
+ updatedAt: string | null;
92
+ createdAt: string | null;
93
93
  contactId: string;
94
- tags: string[];
95
94
  unsubscribeToken: string;
96
95
  name?: string | null | undefined;
97
96
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
98
97
  }>;
98
+ 402: zod.ZodObject<{
99
+ error: zod.ZodString;
100
+ }, "strip", zod.ZodTypeAny, {
101
+ error: string;
102
+ }, {
103
+ error: string;
104
+ }>;
105
+ 409: zod.ZodObject<{
106
+ error: zod.ZodString;
107
+ }, "strip", zod.ZodTypeAny, {
108
+ error: string;
109
+ }, {
110
+ error: string;
111
+ }>;
99
112
  };
113
+ path: "/contacts";
100
114
  };
101
115
  list: {
102
- description: "Returns a paginated list of contacts. Pass filter as serialized ContactFilterWithAggregator JSON for inline filtering, or segmentId to only return contacts currently matching that saved segment's filter (404 if the segment doesn't exist). SendLit supports fixed generic contact filters over first-class fields, tags, and custom fields; client-specific concepts should be synced into namespaced tags or customFields. q, filter, and segmentId combine with AND. The response's total reflects the combined filters.";
103
116
  query: zod.ZodObject<{
104
117
  q: zod.ZodOptional<zod.ZodString>;
105
118
  segmentId: zod.ZodOptional<zod.ZodString>;
106
119
  filter: zod.ZodOptional<zod.ZodString>;
120
+ excludeFilter: zod.ZodOptional<zod.ZodString>;
107
121
  offset: zod.ZodOptional<zod.ZodNumber>;
108
122
  rowsPerPage: zod.ZodOptional<zod.ZodNumber>;
109
123
  }, "strip", zod.ZodTypeAny, {
110
124
  filter?: string | undefined;
125
+ excludeFilter?: string | undefined;
111
126
  offset?: number | undefined;
112
127
  q?: string | undefined;
113
128
  segmentId?: string | undefined;
114
129
  rowsPerPage?: number | undefined;
115
130
  }, {
116
131
  filter?: string | undefined;
132
+ excludeFilter?: string | undefined;
117
133
  offset?: number | undefined;
118
134
  q?: string | undefined;
119
135
  segmentId?: string | undefined;
120
136
  rowsPerPage?: number | undefined;
121
137
  }>;
138
+ summary: "List contacts";
139
+ description: "Returns a paginated list of contacts. Pass filter as serialized ContactFilterWithAggregator JSON for inline filtering, or segmentId to only return contacts currently matching that saved segment's filter (404 if the segment doesn't exist). SendLit supports fixed generic contact filters over first-class fields, tags, and custom fields; client-specific concepts should be synced into namespaced tags or customFields. q, filter, and segmentId combine with AND. The response's total reflects the combined filters.";
122
140
  metadata: {
123
141
  tag: string;
124
142
  };
125
- summary: "List contacts";
126
143
  method: "GET";
127
- path: "/contacts";
128
144
  responses: {
129
145
  200: zod.ZodObject<{
130
146
  items: zod.ZodArray<zod.ZodObject<{
@@ -138,22 +154,22 @@ declare const routes$7: {
138
154
  createdAt: zod.ZodNullable<zod.ZodString>;
139
155
  updatedAt: zod.ZodNullable<zod.ZodString>;
140
156
  }, "strip", zod.ZodTypeAny, {
141
- updatedAt: string | null;
142
- createdAt: string | null;
143
157
  email: string;
158
+ tags: string[];
144
159
  subscribed: boolean;
160
+ updatedAt: string | null;
161
+ createdAt: string | null;
145
162
  contactId: string;
146
163
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
147
- tags: string[];
148
164
  unsubscribeToken: string;
149
165
  name?: string | null | undefined;
150
166
  }, {
151
- updatedAt: string | null;
152
- createdAt: string | null;
153
167
  email: string;
168
+ tags: string[];
154
169
  subscribed: boolean;
170
+ updatedAt: string | null;
171
+ createdAt: string | null;
155
172
  contactId: string;
156
- tags: string[];
157
173
  unsubscribeToken: string;
158
174
  name?: string | null | undefined;
159
175
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
@@ -161,25 +177,25 @@ declare const routes$7: {
161
177
  total: zod.ZodNumber;
162
178
  }, "strip", zod.ZodTypeAny, {
163
179
  items: {
164
- updatedAt: string | null;
165
- createdAt: string | null;
166
180
  email: string;
181
+ tags: string[];
167
182
  subscribed: boolean;
183
+ updatedAt: string | null;
184
+ createdAt: string | null;
168
185
  contactId: string;
169
186
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
170
- tags: string[];
171
187
  unsubscribeToken: string;
172
188
  name?: string | null | undefined;
173
189
  }[];
174
190
  total: number;
175
191
  }, {
176
192
  items: {
177
- updatedAt: string | null;
178
- createdAt: string | null;
179
193
  email: string;
194
+ tags: string[];
180
195
  subscribed: boolean;
196
+ updatedAt: string | null;
197
+ createdAt: string | null;
181
198
  contactId: string;
182
- tags: string[];
183
199
  unsubscribeToken: string;
184
200
  name?: string | null | undefined;
185
201
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
@@ -201,14 +217,163 @@ declare const routes$7: {
201
217
  error: string;
202
218
  }>;
203
219
  };
220
+ path: "/contacts";
204
221
  };
205
- get: {
222
+ import: {
223
+ 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`.";
225
+ metadata: {
226
+ tag: string;
227
+ };
228
+ method: "POST";
229
+ body: zod.ZodObject<{
230
+ contacts: zod.ZodArray<zod.ZodObject<{
231
+ email: zod.ZodString;
232
+ name: zod.ZodOptional<zod.ZodString>;
233
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
234
+ status: zod.ZodOptional<zod.ZodString>;
235
+ createdAt: zod.ZodOptional<zod.ZodString>;
236
+ 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
+ row: zod.ZodOptional<zod.ZodNumber>;
238
+ }, "strip", zod.ZodTypeAny, {
239
+ email: string;
240
+ status?: string | undefined;
241
+ name?: string | undefined;
242
+ tags?: string[] | undefined;
243
+ createdAt?: string | undefined;
244
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
245
+ row?: number | undefined;
246
+ }, {
247
+ email: string;
248
+ status?: string | undefined;
249
+ name?: string | undefined;
250
+ tags?: string[] | undefined;
251
+ createdAt?: string | undefined;
252
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
253
+ row?: number | undefined;
254
+ }>, "many">;
255
+ tags: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
256
+ pending: zod.ZodOptional<zod.ZodEnum<["skip", "unsubscribed"]>>;
257
+ source: zod.ZodOptional<zod.ZodString>;
258
+ }, "strip", zod.ZodTypeAny, {
259
+ contacts: {
260
+ email: string;
261
+ status?: string | undefined;
262
+ name?: string | undefined;
263
+ tags?: string[] | undefined;
264
+ createdAt?: string | undefined;
265
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
266
+ row?: number | undefined;
267
+ }[];
268
+ tags?: string[] | undefined;
269
+ pending?: "unsubscribed" | "skip" | undefined;
270
+ source?: string | undefined;
271
+ }, {
272
+ contacts: {
273
+ email: string;
274
+ status?: string | undefined;
275
+ name?: string | undefined;
276
+ tags?: string[] | undefined;
277
+ createdAt?: string | undefined;
278
+ customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
279
+ row?: number | undefined;
280
+ }[];
281
+ tags?: string[] | undefined;
282
+ pending?: "unsubscribed" | "skip" | undefined;
283
+ source?: string | undefined;
284
+ }>;
285
+ responses: {
286
+ 200: zod.ZodObject<{
287
+ created: zod.ZodNumber;
288
+ updated: zod.ZodNumber;
289
+ unchanged: zod.ZodNumber;
290
+ suppressed: zod.ZodNumber;
291
+ skipped: zod.ZodArray<zod.ZodObject<{
292
+ row: zod.ZodOptional<zod.ZodNumber>;
293
+ email: zod.ZodString;
294
+ reason: zod.ZodEnum<["invalid_email", "duplicate", "pending_confirmation", "unknown_status", "plan_limit_reached"]>;
295
+ }, "strip", zod.ZodTypeAny, {
296
+ email: string;
297
+ reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
298
+ row?: number | undefined;
299
+ }, {
300
+ email: string;
301
+ reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
302
+ row?: number | undefined;
303
+ }>, "many">;
304
+ }, "strip", zod.ZodTypeAny, {
305
+ created: number;
306
+ suppressed: number;
307
+ skipped: {
308
+ email: string;
309
+ reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
310
+ row?: number | undefined;
311
+ }[];
312
+ updated: number;
313
+ unchanged: number;
314
+ }, {
315
+ created: number;
316
+ suppressed: number;
317
+ skipped: {
318
+ email: string;
319
+ reason: "pending_confirmation" | "unknown_status" | "invalid_email" | "duplicate" | "plan_limit_reached";
320
+ row?: number | undefined;
321
+ }[];
322
+ updated: number;
323
+ unchanged: number;
324
+ }>;
325
+ 400: zod.ZodObject<{
326
+ error: zod.ZodString;
327
+ }, "strip", zod.ZodTypeAny, {
328
+ error: string;
329
+ }, {
330
+ error: string;
331
+ }>;
332
+ };
333
+ path: "/contacts/import";
334
+ };
335
+ export: {
336
+ query: zod.ZodObject<{
337
+ segmentId: zod.ZodOptional<zod.ZodString>;
338
+ filter: zod.ZodOptional<zod.ZodString>;
339
+ }, "strip", zod.ZodTypeAny, {
340
+ filter?: string | undefined;
341
+ segmentId?: string | undefined;
342
+ }, {
343
+ filter?: string | undefined;
344
+ segmentId?: string | undefined;
345
+ }>;
346
+ 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.";
206
348
  metadata: {
207
349
  tag: string;
208
350
  };
351
+ method: "GET";
352
+ responses: {
353
+ 200: _ts_rest_core.ContractOtherResponse<zod.ZodString>;
354
+ 400: zod.ZodObject<{
355
+ error: zod.ZodString;
356
+ }, "strip", zod.ZodTypeAny, {
357
+ error: string;
358
+ }, {
359
+ error: string;
360
+ }>;
361
+ 404: zod.ZodObject<{
362
+ error: zod.ZodString;
363
+ }, "strip", zod.ZodTypeAny, {
364
+ error: string;
365
+ }, {
366
+ error: string;
367
+ }>;
368
+ };
369
+ path: "/contacts/export";
370
+ };
371
+ get: {
209
372
  summary: "Get a contact";
373
+ metadata: {
374
+ tag: string;
375
+ };
210
376
  method: "GET";
211
- path: "/contacts/:contactId";
212
377
  responses: {
213
378
  200: zod.ZodObject<{
214
379
  contactId: zod.ZodString;
@@ -221,22 +386,22 @@ declare const routes$7: {
221
386
  createdAt: zod.ZodNullable<zod.ZodString>;
222
387
  updatedAt: zod.ZodNullable<zod.ZodString>;
223
388
  }, "strip", zod.ZodTypeAny, {
224
- updatedAt: string | null;
225
- createdAt: string | null;
226
389
  email: string;
390
+ tags: string[];
227
391
  subscribed: boolean;
392
+ updatedAt: string | null;
393
+ createdAt: string | null;
228
394
  contactId: string;
229
395
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
230
- tags: string[];
231
396
  unsubscribeToken: string;
232
397
  name?: string | null | undefined;
233
398
  }, {
234
- updatedAt: string | null;
235
- createdAt: string | null;
236
399
  email: string;
400
+ tags: string[];
237
401
  subscribed: boolean;
402
+ updatedAt: string | null;
403
+ createdAt: string | null;
238
404
  contactId: string;
239
- tags: string[];
240
405
  unsubscribeToken: string;
241
406
  name?: string | null | undefined;
242
407
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
@@ -249,12 +414,13 @@ declare const routes$7: {
249
414
  error: string;
250
415
  }>;
251
416
  };
417
+ path: "/contacts/:contactId";
252
418
  };
253
419
  update: {
420
+ summary: "Update a contact";
254
421
  metadata: {
255
422
  tag: string;
256
423
  };
257
- summary: "Update a contact";
258
424
  method: "PATCH";
259
425
  body: zod.ZodObject<{
260
426
  name: zod.ZodOptional<zod.ZodString>;
@@ -263,16 +429,15 @@ declare const routes$7: {
263
429
  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">]>>>>;
264
430
  }, "strip", zod.ZodTypeAny, {
265
431
  name?: string | undefined;
432
+ tags?: string[] | undefined;
266
433
  subscribed?: boolean | undefined;
267
434
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
268
- tags?: string[] | undefined;
269
435
  }, {
270
436
  name?: string | undefined;
437
+ tags?: string[] | undefined;
271
438
  subscribed?: boolean | undefined;
272
439
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
273
- tags?: string[] | undefined;
274
440
  }>;
275
- path: "/contacts/:contactId";
276
441
  responses: {
277
442
  200: zod.ZodObject<{
278
443
  contactId: zod.ZodString;
@@ -285,26 +450,33 @@ declare const routes$7: {
285
450
  createdAt: zod.ZodNullable<zod.ZodString>;
286
451
  updatedAt: zod.ZodNullable<zod.ZodString>;
287
452
  }, "strip", zod.ZodTypeAny, {
288
- updatedAt: string | null;
289
- createdAt: string | null;
290
453
  email: string;
454
+ tags: string[];
291
455
  subscribed: boolean;
456
+ updatedAt: string | null;
457
+ createdAt: string | null;
292
458
  contactId: string;
293
459
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
294
- tags: string[];
295
460
  unsubscribeToken: string;
296
461
  name?: string | null | undefined;
297
462
  }, {
298
- updatedAt: string | null;
299
- createdAt: string | null;
300
463
  email: string;
464
+ tags: string[];
301
465
  subscribed: boolean;
466
+ updatedAt: string | null;
467
+ createdAt: string | null;
302
468
  contactId: string;
303
- tags: string[];
304
469
  unsubscribeToken: string;
305
470
  name?: string | null | undefined;
306
471
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
307
472
  }>;
473
+ 402: zod.ZodObject<{
474
+ error: zod.ZodString;
475
+ }, "strip", zod.ZodTypeAny, {
476
+ error: string;
477
+ }, {
478
+ error: string;
479
+ }>;
308
480
  404: zod.ZodObject<{
309
481
  error: zod.ZodString;
310
482
  }, "strip", zod.ZodTypeAny, {
@@ -312,16 +484,23 @@ declare const routes$7: {
312
484
  }, {
313
485
  error: string;
314
486
  }>;
487
+ 409: zod.ZodObject<{
488
+ error: zod.ZodString;
489
+ }, "strip", zod.ZodTypeAny, {
490
+ error: string;
491
+ }, {
492
+ error: string;
493
+ }>;
315
494
  };
495
+ path: "/contacts/:contactId";
316
496
  };
317
497
  addTag: {
498
+ summary: "Add a tag to a contact";
318
499
  metadata: {
319
500
  tag: string;
320
501
  };
321
- summary: "Add a tag to a contact";
322
502
  method: "POST";
323
503
  body: typeof _ts_rest_core.ContractNoBody;
324
- path: "/contacts/:contactId/tags/:tag";
325
504
  responses: {
326
505
  200: zod.ZodObject<{
327
506
  contactId: zod.ZodString;
@@ -334,22 +513,22 @@ declare const routes$7: {
334
513
  createdAt: zod.ZodNullable<zod.ZodString>;
335
514
  updatedAt: zod.ZodNullable<zod.ZodString>;
336
515
  }, "strip", zod.ZodTypeAny, {
337
- updatedAt: string | null;
338
- createdAt: string | null;
339
516
  email: string;
517
+ tags: string[];
340
518
  subscribed: boolean;
519
+ updatedAt: string | null;
520
+ createdAt: string | null;
341
521
  contactId: string;
342
522
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
343
- tags: string[];
344
523
  unsubscribeToken: string;
345
524
  name?: string | null | undefined;
346
525
  }, {
347
- updatedAt: string | null;
348
- createdAt: string | null;
349
526
  email: string;
527
+ tags: string[];
350
528
  subscribed: boolean;
529
+ updatedAt: string | null;
530
+ createdAt: string | null;
351
531
  contactId: string;
352
- tags: string[];
353
532
  unsubscribeToken: string;
354
533
  name?: string | null | undefined;
355
534
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
@@ -362,14 +541,14 @@ declare const routes$7: {
362
541
  error: string;
363
542
  }>;
364
543
  };
544
+ path: "/contacts/:contactId/tags/:tag";
365
545
  };
366
546
  removeTag: {
547
+ summary: "Remove a tag from a contact";
367
548
  metadata: {
368
549
  tag: string;
369
550
  };
370
- summary: "Remove a tag from a contact";
371
551
  method: "DELETE";
372
- path: "/contacts/:contactId/tags/:tag";
373
552
  responses: {
374
553
  200: zod.ZodObject<{
375
554
  contactId: zod.ZodString;
@@ -382,22 +561,22 @@ declare const routes$7: {
382
561
  createdAt: zod.ZodNullable<zod.ZodString>;
383
562
  updatedAt: zod.ZodNullable<zod.ZodString>;
384
563
  }, "strip", zod.ZodTypeAny, {
385
- updatedAt: string | null;
386
- createdAt: string | null;
387
564
  email: string;
565
+ tags: string[];
388
566
  subscribed: boolean;
567
+ updatedAt: string | null;
568
+ createdAt: string | null;
389
569
  contactId: string;
390
570
  customFields: Record<string, string | number | boolean | (string | number | boolean)[]>;
391
- tags: string[];
392
571
  unsubscribeToken: string;
393
572
  name?: string | null | undefined;
394
573
  }, {
395
- updatedAt: string | null;
396
- createdAt: string | null;
397
574
  email: string;
575
+ tags: string[];
398
576
  subscribed: boolean;
577
+ updatedAt: string | null;
578
+ createdAt: string | null;
399
579
  contactId: string;
400
- tags: string[];
401
580
  unsubscribeToken: string;
402
581
  name?: string | null | undefined;
403
582
  customFields?: Record<string, string | number | boolean | (string | number | boolean)[]> | undefined;
@@ -410,14 +589,14 @@ declare const routes$7: {
410
589
  error: string;
411
590
  }>;
412
591
  };
592
+ path: "/contacts/:contactId/tags/:tag";
413
593
  };
414
594
  deliveries: {
595
+ summary: "List broadcasts/sequence emails delivered to a contact";
415
596
  metadata: {
416
597
  tag: string;
417
598
  };
418
- summary: "List broadcasts/sequence emails delivered to a contact";
419
599
  method: "GET";
420
- path: "/contacts/:contactId/deliveries";
421
600
  responses: {
422
601
  200: _ts_rest_core.ContractPlainType<{
423
602
  createdAt: string | null;
@@ -434,17 +613,18 @@ declare const routes$7: {
434
613
  error: string;
435
614
  }>;
436
615
  };
616
+ path: "/contacts/:contactId/deliveries";
437
617
  };
438
618
  remove: {
619
+ summary: "Delete a contact";
439
620
  metadata: {
440
621
  tag: string;
441
622
  };
442
- summary: "Delete a contact";
443
623
  method: "DELETE";
444
- path: "/contacts/:contactId";
445
624
  responses: {
446
625
  204: typeof _ts_rest_core.ContractNoBody;
447
626
  };
627
+ path: "/contacts/:contactId";
448
628
  };
449
629
  };
450
630
  type Contact = Ok<typeof routes$7.get>;
@@ -489,25 +669,24 @@ declare const routes$6: {
489
669
  espId?: string | undefined;
490
670
  offset?: number | undefined;
491
671
  itemsPerPage?: number | undefined;
672
+ deliverySourceType?: "organization" | "team" | undefined;
673
+ eventType?: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected" | undefined;
492
674
  createdAfter?: number | undefined;
493
675
  createdBefore?: number | undefined;
494
- deliverySourceType?: "organization" | "team" | undefined;
495
- eventType?: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected" | undefined;
496
676
  }, {
497
677
  espId?: string | undefined;
498
678
  offset?: number | undefined;
499
679
  itemsPerPage?: number | undefined;
680
+ deliverySourceType?: "organization" | "team" | undefined;
681
+ eventType?: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected" | undefined;
500
682
  createdAfter?: number | undefined;
501
683
  createdBefore?: number | undefined;
502
- deliverySourceType?: "organization" | "team" | undefined;
503
- eventType?: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected" | undefined;
504
684
  }>;
685
+ summary: "List normalized delivery events for the team";
505
686
  metadata: {
506
687
  tag: string;
507
688
  };
508
- summary: "List normalized delivery events for the team";
509
689
  method: "GET";
510
- path: "/delivery-events";
511
690
  responses: {
512
691
  200: zod.ZodObject<{
513
692
  items: zod.ZodArray<zod.ZodObject<{
@@ -526,78 +705,78 @@ declare const routes$6: {
526
705
  receivedAt: zod.ZodString;
527
706
  }, "strip", zod.ZodTypeAny, {
528
707
  espId: string | null;
529
- provider: string;
530
708
  eventId: string;
709
+ provider: string;
531
710
  deliverySourceType: "organization" | "team" | null;
532
711
  messageId: string | null;
533
712
  recipientEmail: string | null;
534
- eventType: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected";
713
+ eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
535
714
  occurredAt: string;
536
715
  receivedAt: string;
716
+ reason?: string | null | undefined;
537
717
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
538
718
  smtpCode?: number | null | undefined;
539
719
  enhancedStatusCode?: string | null | undefined;
540
- reason?: string | null | undefined;
541
720
  }, {
542
721
  espId: string | null;
543
- provider: string;
544
722
  eventId: string;
723
+ provider: string;
545
724
  deliverySourceType: "organization" | "team" | null;
546
725
  messageId: string | null;
547
726
  recipientEmail: string | null;
548
- eventType: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected";
727
+ eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
549
728
  occurredAt: string;
550
729
  receivedAt: string;
730
+ reason?: string | null | undefined;
551
731
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
552
732
  smtpCode?: number | null | undefined;
553
733
  enhancedStatusCode?: string | null | undefined;
554
- reason?: string | null | undefined;
555
734
  }>, "many">;
556
735
  total: zod.ZodNumber;
557
736
  }, "strip", zod.ZodTypeAny, {
558
737
  items: {
559
738
  espId: string | null;
560
- provider: string;
561
739
  eventId: string;
740
+ provider: string;
562
741
  deliverySourceType: "organization" | "team" | null;
563
742
  messageId: string | null;
564
743
  recipientEmail: string | null;
565
- eventType: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected";
744
+ eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
566
745
  occurredAt: string;
567
746
  receivedAt: string;
747
+ reason?: string | null | undefined;
568
748
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
569
749
  smtpCode?: number | null | undefined;
570
750
  enhancedStatusCode?: string | null | undefined;
571
- reason?: string | null | undefined;
572
751
  }[];
573
752
  total: number;
574
753
  }, {
575
754
  items: {
576
755
  espId: string | null;
577
- provider: string;
578
756
  eventId: string;
757
+ provider: string;
579
758
  deliverySourceType: "organization" | "team" | null;
580
759
  messageId: string | null;
581
760
  recipientEmail: string | null;
582
- eventType: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected";
761
+ eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
583
762
  occurredAt: string;
584
763
  receivedAt: string;
764
+ reason?: string | null | undefined;
585
765
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
586
766
  smtpCode?: number | null | undefined;
587
767
  enhancedStatusCode?: string | null | undefined;
588
- reason?: string | null | undefined;
589
768
  }[];
590
769
  total: number;
591
770
  }>;
592
771
  };
772
+ path: "/delivery-events";
593
773
  };
594
774
  get: {
775
+ summary: "Get a single normalized delivery event";
595
776
  metadata: {
596
777
  tag: string;
597
778
  };
598
- summary: "Get a single normalized delivery event";
599
779
  method: "GET";
600
- path: "/delivery-events/:eventId";
601
780
  responses: {
602
781
  200: zod.ZodObject<{
603
782
  eventId: zod.ZodString;
@@ -615,32 +794,32 @@ declare const routes$6: {
615
794
  receivedAt: zod.ZodString;
616
795
  }, "strip", zod.ZodTypeAny, {
617
796
  espId: string | null;
618
- provider: string;
619
797
  eventId: string;
798
+ provider: string;
620
799
  deliverySourceType: "organization" | "team" | null;
621
800
  messageId: string | null;
622
801
  recipientEmail: string | null;
623
- eventType: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected";
802
+ eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
624
803
  occurredAt: string;
625
804
  receivedAt: string;
805
+ reason?: string | null | undefined;
626
806
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
627
807
  smtpCode?: number | null | undefined;
628
808
  enhancedStatusCode?: string | null | undefined;
629
- reason?: string | null | undefined;
630
809
  }, {
631
810
  espId: string | null;
632
- provider: string;
633
811
  eventId: string;
812
+ provider: string;
634
813
  deliverySourceType: "organization" | "team" | null;
635
814
  messageId: string | null;
636
815
  recipientEmail: string | null;
637
- eventType: "unknown" | "failed" | "accepted" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "hard_bounce" | "complaint" | "rejected";
816
+ eventType: "hard_bounce" | "complaint" | "unknown" | "accepted" | "failed" | "suppressed" | "delivered" | "delayed" | "soft_bounce" | "rejected";
638
817
  occurredAt: string;
639
818
  receivedAt: string;
819
+ reason?: string | null | undefined;
640
820
  bounceClass?: "permanent" | "transient" | "undetermined" | null | undefined;
641
821
  smtpCode?: number | null | undefined;
642
822
  enhancedStatusCode?: string | null | undefined;
643
- reason?: string | null | undefined;
644
823
  }>;
645
824
  404: zod.ZodObject<{
646
825
  error: zod.ZodString;
@@ -650,6 +829,7 @@ declare const routes$6: {
650
829
  error: string;
651
830
  }>;
652
831
  };
832
+ path: "/delivery-events/:eventId";
653
833
  };
654
834
  };
655
835
  type DeliveryEvent = Ok<typeof routes$6.get>;
@@ -665,17 +845,18 @@ declare class DeliveryEvents {
665
845
 
666
846
  declare const routes$5: {
667
847
  send: {
848
+ summary: "Send a transactional email";
668
849
  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.";
669
850
  metadata: {
670
851
  tag: string;
671
852
  };
672
- summary: "Send a transactional email";
673
853
  method: "POST";
674
854
  body: zod.ZodEffects<zod.ZodEffects<zod.ZodObject<{
675
855
  to: zod.ZodString;
676
856
  subject: zod.ZodString;
677
857
  templateId: zod.ZodOptional<zod.ZodString>;
678
858
  html: zod.ZodOptional<zod.ZodString>;
859
+ text: zod.ZodOptional<zod.ZodString>;
679
860
  variables: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodAny>>;
680
861
  replyTo: zod.ZodOptional<zod.ZodString>;
681
862
  headers: zod.ZodOptional<zod.ZodEffects<zod.ZodRecord<zod.ZodString, zod.ZodString>, Record<string, string>, Record<string, string>>>;
@@ -701,6 +882,9 @@ declare const routes$5: {
701
882
  }, "strip", zod.ZodTypeAny, {
702
883
  subject: string;
703
884
  to: string;
885
+ headers?: Record<string, string> | undefined;
886
+ idempotencyKey?: string | undefined;
887
+ text?: string | undefined;
704
888
  replyTo?: string | undefined;
705
889
  deliverySource?: {
706
890
  type: "organization";
@@ -713,11 +897,12 @@ declare const routes$5: {
713
897
  trackOpens?: boolean | undefined;
714
898
  trackClicks?: boolean | undefined;
715
899
  html?: string | undefined;
716
- headers?: Record<string, string> | undefined;
717
- idempotencyKey?: string | undefined;
718
900
  }, {
719
901
  subject: string;
720
902
  to: string;
903
+ headers?: Record<string, string> | undefined;
904
+ idempotencyKey?: string | undefined;
905
+ text?: string | undefined;
721
906
  replyTo?: string | undefined;
722
907
  deliverySource?: {
723
908
  type: "organization";
@@ -730,11 +915,12 @@ declare const routes$5: {
730
915
  trackOpens?: boolean | undefined;
731
916
  trackClicks?: boolean | undefined;
732
917
  html?: string | undefined;
733
- headers?: Record<string, string> | undefined;
734
- idempotencyKey?: string | undefined;
735
918
  }>, {
736
919
  subject: string;
737
920
  to: string;
921
+ headers?: Record<string, string> | undefined;
922
+ idempotencyKey?: string | undefined;
923
+ text?: string | undefined;
738
924
  replyTo?: string | undefined;
739
925
  deliverySource?: {
740
926
  type: "organization";
@@ -747,11 +933,12 @@ declare const routes$5: {
747
933
  trackOpens?: boolean | undefined;
748
934
  trackClicks?: boolean | undefined;
749
935
  html?: string | undefined;
750
- headers?: Record<string, string> | undefined;
751
- idempotencyKey?: string | undefined;
752
936
  }, {
753
937
  subject: string;
754
938
  to: string;
939
+ headers?: Record<string, string> | undefined;
940
+ idempotencyKey?: string | undefined;
941
+ text?: string | undefined;
755
942
  replyTo?: string | undefined;
756
943
  deliverySource?: {
757
944
  type: "organization";
@@ -764,11 +951,12 @@ declare const routes$5: {
764
951
  trackOpens?: boolean | undefined;
765
952
  trackClicks?: boolean | undefined;
766
953
  html?: string | undefined;
767
- headers?: Record<string, string> | undefined;
768
- idempotencyKey?: string | undefined;
769
954
  }>, {
770
955
  subject: string;
771
956
  to: string;
957
+ headers?: Record<string, string> | undefined;
958
+ idempotencyKey?: string | undefined;
959
+ text?: string | undefined;
772
960
  replyTo?: string | undefined;
773
961
  deliverySource?: {
774
962
  type: "organization";
@@ -781,11 +969,12 @@ declare const routes$5: {
781
969
  trackOpens?: boolean | undefined;
782
970
  trackClicks?: boolean | undefined;
783
971
  html?: string | undefined;
784
- headers?: Record<string, string> | undefined;
785
- idempotencyKey?: string | undefined;
786
972
  }, {
787
973
  subject: string;
788
974
  to: string;
975
+ headers?: Record<string, string> | undefined;
976
+ idempotencyKey?: string | undefined;
977
+ text?: string | undefined;
789
978
  replyTo?: string | undefined;
790
979
  deliverySource?: {
791
980
  type: "organization";
@@ -798,10 +987,7 @@ declare const routes$5: {
798
987
  trackOpens?: boolean | undefined;
799
988
  trackClicks?: boolean | undefined;
800
989
  html?: string | undefined;
801
- headers?: Record<string, string> | undefined;
802
- idempotencyKey?: string | undefined;
803
990
  }>;
804
- path: "/emails";
805
991
  responses: {
806
992
  202: zod.ZodObject<Pick<{
807
993
  txeId: zod.ZodString;
@@ -821,10 +1007,10 @@ declare const routes$5: {
821
1007
  createdAt: zod.ZodNullable<zod.ZodString>;
822
1008
  updatedAt: zod.ZodNullable<zod.ZodString>;
823
1009
  }, "status" | "txeId">, "strip", zod.ZodTypeAny, {
824
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1010
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
825
1011
  txeId: string;
826
1012
  }, {
827
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1013
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
828
1014
  txeId: string;
829
1015
  }>;
830
1016
  400: zod.ZodObject<{
@@ -834,6 +1020,13 @@ declare const routes$5: {
834
1020
  }, {
835
1021
  error: string;
836
1022
  }>;
1023
+ 402: zod.ZodObject<{
1024
+ error: zod.ZodString;
1025
+ }, "strip", zod.ZodTypeAny, {
1026
+ error: string;
1027
+ }, {
1028
+ error: string;
1029
+ }>;
837
1030
  422: zod.ZodUnion<[zod.ZodObject<{
838
1031
  error: zod.ZodLiteral<"missing_template_variables">;
839
1032
  missingVariables: zod.ZodArray<zod.ZodString, "many">;
@@ -856,6 +1049,13 @@ declare const routes$5: {
856
1049
  }, {
857
1050
  error: string;
858
1051
  }>]>;
1052
+ 409: zod.ZodObject<{
1053
+ error: zod.ZodString;
1054
+ }, "strip", zod.ZodTypeAny, {
1055
+ error: string;
1056
+ }, {
1057
+ error: string;
1058
+ }>;
859
1059
  429: zod.ZodObject<{
860
1060
  error: zod.ZodString;
861
1061
  }, "strip", zod.ZodTypeAny, {
@@ -864,14 +1064,14 @@ declare const routes$5: {
864
1064
  error: string;
865
1065
  }>;
866
1066
  };
1067
+ path: "/emails";
867
1068
  };
868
1069
  get: {
1070
+ summary: "Get a transactional email";
869
1071
  metadata: {
870
1072
  tag: string;
871
1073
  };
872
- summary: "Get a transactional email";
873
1074
  method: "GET";
874
- path: "/emails/:txeId";
875
1075
  responses: {
876
1076
  200: zod.ZodObject<{
877
1077
  txeId: zod.ZodString;
@@ -892,17 +1092,18 @@ declare const routes$5: {
892
1092
  updatedAt: zod.ZodNullable<zod.ZodString>;
893
1093
  } & {
894
1094
  html: zod.ZodNullable<zod.ZodString>;
1095
+ text: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
895
1096
  }, "strip", zod.ZodTypeAny, {
896
1097
  error: string | null;
897
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1098
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
898
1099
  updatedAt: string | null;
899
1100
  replyTo: string | null;
900
1101
  createdAt: string | null;
901
1102
  subject: string;
902
1103
  templateId: string | null;
903
1104
  sentAt: string | null;
904
- variables: Record<string, any>;
905
1105
  to: string;
1106
+ variables: Record<string, any>;
906
1107
  txeId: string;
907
1108
  from: string | null;
908
1109
  trackOpens: boolean;
@@ -910,17 +1111,18 @@ declare const routes$5: {
910
1111
  openCount: number;
911
1112
  clickCount: number;
912
1113
  html: string | null;
1114
+ text?: string | null | undefined;
913
1115
  }, {
914
1116
  error: string | null;
915
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1117
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
916
1118
  updatedAt: string | null;
917
1119
  replyTo: string | null;
918
1120
  createdAt: string | null;
919
1121
  subject: string;
920
1122
  templateId: string | null;
921
1123
  sentAt: string | null;
922
- variables: Record<string, any>;
923
1124
  to: string;
1125
+ variables: Record<string, any>;
924
1126
  txeId: string;
925
1127
  from: string | null;
926
1128
  trackOpens: boolean;
@@ -928,6 +1130,7 @@ declare const routes$5: {
928
1130
  openCount: number;
929
1131
  clickCount: number;
930
1132
  html: string | null;
1133
+ text?: string | null | undefined;
931
1134
  }>;
932
1135
  404: zod.ZodObject<{
933
1136
  error: zod.ZodString;
@@ -937,6 +1140,7 @@ declare const routes$5: {
937
1140
  error: string;
938
1141
  }>;
939
1142
  };
1143
+ path: "/emails/:txeId";
940
1144
  };
941
1145
  list: {
942
1146
  query: zod.ZodObject<{
@@ -946,24 +1150,23 @@ declare const routes$5: {
946
1150
  offset: zod.ZodOptional<zod.ZodNumber>;
947
1151
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
948
1152
  }, "strip", zod.ZodTypeAny, {
949
- status?: "failed" | "sent" | "queued" | "bounced" | "suppressed" | undefined;
1153
+ status?: "bounced" | "failed" | "sent" | "suppressed" | "queued" | undefined;
950
1154
  offset?: number | undefined;
951
1155
  itemsPerPage?: number | undefined;
952
1156
  createdAfter?: number | undefined;
953
1157
  createdBefore?: number | undefined;
954
1158
  }, {
955
- status?: "failed" | "sent" | "queued" | "bounced" | "suppressed" | undefined;
1159
+ status?: "bounced" | "failed" | "sent" | "suppressed" | "queued" | undefined;
956
1160
  offset?: number | undefined;
957
1161
  itemsPerPage?: number | undefined;
958
1162
  createdAfter?: number | undefined;
959
1163
  createdBefore?: number | undefined;
960
1164
  }>;
1165
+ summary: "List transactional emails";
961
1166
  metadata: {
962
1167
  tag: string;
963
1168
  };
964
- summary: "List transactional emails";
965
1169
  method: "GET";
966
- path: "/emails";
967
1170
  responses: {
968
1171
  200: zod.ZodObject<{
969
1172
  items: zod.ZodArray<zod.ZodObject<{
@@ -985,15 +1188,15 @@ declare const routes$5: {
985
1188
  updatedAt: zod.ZodNullable<zod.ZodString>;
986
1189
  }, "strip", zod.ZodTypeAny, {
987
1190
  error: string | null;
988
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1191
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
989
1192
  updatedAt: string | null;
990
1193
  replyTo: string | null;
991
1194
  createdAt: string | null;
992
1195
  subject: string;
993
1196
  templateId: string | null;
994
1197
  sentAt: string | null;
995
- variables: Record<string, any>;
996
1198
  to: string;
1199
+ variables: Record<string, any>;
997
1200
  txeId: string;
998
1201
  from: string | null;
999
1202
  trackOpens: boolean;
@@ -1002,15 +1205,15 @@ declare const routes$5: {
1002
1205
  clickCount: number;
1003
1206
  }, {
1004
1207
  error: string | null;
1005
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1208
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1006
1209
  updatedAt: string | null;
1007
1210
  replyTo: string | null;
1008
1211
  createdAt: string | null;
1009
1212
  subject: string;
1010
1213
  templateId: string | null;
1011
1214
  sentAt: string | null;
1012
- variables: Record<string, any>;
1013
1215
  to: string;
1216
+ variables: Record<string, any>;
1014
1217
  txeId: string;
1015
1218
  from: string | null;
1016
1219
  trackOpens: boolean;
@@ -1022,15 +1225,15 @@ declare const routes$5: {
1022
1225
  }, "strip", zod.ZodTypeAny, {
1023
1226
  items: {
1024
1227
  error: string | null;
1025
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1228
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1026
1229
  updatedAt: string | null;
1027
1230
  replyTo: string | null;
1028
1231
  createdAt: string | null;
1029
1232
  subject: string;
1030
1233
  templateId: string | null;
1031
1234
  sentAt: string | null;
1032
- variables: Record<string, any>;
1033
1235
  to: string;
1236
+ variables: Record<string, any>;
1034
1237
  txeId: string;
1035
1238
  from: string | null;
1036
1239
  trackOpens: boolean;
@@ -1042,15 +1245,15 @@ declare const routes$5: {
1042
1245
  }, {
1043
1246
  items: {
1044
1247
  error: string | null;
1045
- status: "failed" | "sent" | "queued" | "bounced" | "suppressed";
1248
+ status: "bounced" | "failed" | "sent" | "suppressed" | "queued";
1046
1249
  updatedAt: string | null;
1047
1250
  replyTo: string | null;
1048
1251
  createdAt: string | null;
1049
1252
  subject: string;
1050
1253
  templateId: string | null;
1051
1254
  sentAt: string | null;
1052
- variables: Record<string, any>;
1053
1255
  to: string;
1256
+ variables: Record<string, any>;
1054
1257
  txeId: string;
1055
1258
  from: string | null;
1056
1259
  trackOpens: boolean;
@@ -1061,6 +1264,7 @@ declare const routes$5: {
1061
1264
  total: number;
1062
1265
  }>;
1063
1266
  };
1267
+ path: "/emails";
1064
1268
  };
1065
1269
  };
1066
1270
  type SendEmailInput = Body<typeof routes$5.send>;
@@ -1084,12 +1288,63 @@ declare class Emails {
1084
1288
  }
1085
1289
 
1086
1290
  declare const routes$4: {
1291
+ getOrganization: {
1292
+ summary: "Get the organization bound to the calling API key";
1293
+ description: "Returns only the organization associated with the authenticated organization API key. Requires the organization:read scope; the organization cannot be selected in the request.";
1294
+ metadata: {
1295
+ tag: string;
1296
+ };
1297
+ method: "GET";
1298
+ responses: {
1299
+ 200: zod.ZodObject<{
1300
+ organizationId: zod.ZodString;
1301
+ name: zod.ZodString;
1302
+ status: zod.ZodEnum<["pending_payment", "active", "suspended", "abandoned", "closed"]>;
1303
+ createdAt: zod.ZodString;
1304
+ updatedAt: zod.ZodString;
1305
+ }, "strip", zod.ZodTypeAny, {
1306
+ status: "active" | "suspended" | "pending_payment" | "abandoned" | "closed";
1307
+ name: string;
1308
+ organizationId: string;
1309
+ updatedAt: string;
1310
+ createdAt: string;
1311
+ }, {
1312
+ status: "active" | "suspended" | "pending_payment" | "abandoned" | "closed";
1313
+ name: string;
1314
+ organizationId: string;
1315
+ updatedAt: string;
1316
+ createdAt: string;
1317
+ }>;
1318
+ 401: zod.ZodObject<{
1319
+ error: zod.ZodString;
1320
+ }, "strip", zod.ZodTypeAny, {
1321
+ error: string;
1322
+ }, {
1323
+ error: string;
1324
+ }>;
1325
+ 403: zod.ZodObject<{
1326
+ error: zod.ZodString;
1327
+ }, "strip", zod.ZodTypeAny, {
1328
+ error: string;
1329
+ }, {
1330
+ error: string;
1331
+ }>;
1332
+ 404: zod.ZodObject<{
1333
+ error: zod.ZodString;
1334
+ }, "strip", zod.ZodTypeAny, {
1335
+ error: string;
1336
+ }, {
1337
+ error: string;
1338
+ }>;
1339
+ };
1340
+ path: "/provisioning/organization";
1341
+ };
1087
1342
  provisionTeam: {
1343
+ summary: "Find-or-create a team for a consumer-supplied tenant id";
1088
1344
  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.";
1089
1345
  metadata: {
1090
1346
  tag: string;
1091
1347
  };
1092
- summary: "Find-or-create a team for a consumer-supplied tenant id";
1093
1348
  method: "POST";
1094
1349
  body: zod.ZodObject<{
1095
1350
  externalId: zod.ZodString;
@@ -1131,6 +1386,10 @@ declare const routes$4: {
1131
1386
  }, "strip", zod.ZodTypeAny, {
1132
1387
  name: string;
1133
1388
  externalId: string;
1389
+ quota?: {
1390
+ dailyLimit?: number | null | undefined;
1391
+ monthlyLimit?: number | null | undefined;
1392
+ } | undefined;
1134
1393
  mailingAddress?: string | undefined;
1135
1394
  sender?: {
1136
1395
  fromName?: string | undefined;
@@ -1141,13 +1400,13 @@ declare const routes$4: {
1141
1400
  teamEspEnabled?: boolean | undefined;
1142
1401
  useOrganizationDefault?: boolean | undefined;
1143
1402
  } | undefined;
1403
+ }, {
1404
+ name: string;
1405
+ externalId: string;
1144
1406
  quota?: {
1145
1407
  dailyLimit?: number | null | undefined;
1146
1408
  monthlyLimit?: number | null | undefined;
1147
1409
  } | undefined;
1148
- }, {
1149
- name: string;
1150
- externalId: string;
1151
1410
  mailingAddress?: string | undefined;
1152
1411
  sender?: {
1153
1412
  fromName?: string | undefined;
@@ -1158,12 +1417,7 @@ declare const routes$4: {
1158
1417
  teamEspEnabled?: boolean | undefined;
1159
1418
  useOrganizationDefault?: boolean | undefined;
1160
1419
  } | undefined;
1161
- quota?: {
1162
- dailyLimit?: number | null | undefined;
1163
- monthlyLimit?: number | null | undefined;
1164
- } | undefined;
1165
1420
  }>;
1166
- path: "/provisioning/teams";
1167
1421
  responses: {
1168
1422
  200: zod.ZodDiscriminatedUnion<"created", [zod.ZodObject<{
1169
1423
  teamId: zod.ZodString;
@@ -1180,22 +1434,22 @@ declare const routes$4: {
1180
1434
  created: zod.ZodLiteral<true>;
1181
1435
  apiKey: zod.ZodString;
1182
1436
  }, "strip", zod.ZodTypeAny, {
1437
+ name: string;
1438
+ created: true;
1183
1439
  teamId: string;
1184
1440
  deliverySource: {
1185
1441
  type: "organization";
1186
1442
  };
1187
- name: string;
1188
1443
  externalId: string;
1189
- created: true;
1190
1444
  apiKey: string;
1191
1445
  }, {
1446
+ name: string;
1447
+ created: true;
1192
1448
  teamId: string;
1193
1449
  deliverySource: {
1194
1450
  type: "organization";
1195
1451
  };
1196
- name: string;
1197
1452
  externalId: string;
1198
- created: true;
1199
1453
  apiKey: string;
1200
1454
  }>, zod.ZodObject<{
1201
1455
  teamId: zod.ZodString;
@@ -1212,22 +1466,22 @@ declare const routes$4: {
1212
1466
  created: zod.ZodLiteral<false>;
1213
1467
  apiKey: zod.ZodNull;
1214
1468
  }, "strip", zod.ZodTypeAny, {
1469
+ name: string;
1470
+ created: false;
1215
1471
  teamId: string;
1216
1472
  deliverySource: {
1217
1473
  type: "organization";
1218
1474
  };
1219
- name: string;
1220
1475
  externalId: string;
1221
- created: false;
1222
1476
  apiKey: null;
1223
1477
  }, {
1478
+ name: string;
1479
+ created: false;
1224
1480
  teamId: string;
1225
1481
  deliverySource: {
1226
1482
  type: "organization";
1227
1483
  };
1228
- name: string;
1229
1484
  externalId: string;
1230
- created: false;
1231
1485
  apiKey: null;
1232
1486
  }>]>;
1233
1487
  400: zod.ZodObject<{
@@ -1244,6 +1498,13 @@ declare const routes$4: {
1244
1498
  }, {
1245
1499
  error: string;
1246
1500
  }>;
1501
+ 402: zod.ZodObject<{
1502
+ error: zod.ZodString;
1503
+ }, "strip", zod.ZodTypeAny, {
1504
+ error: string;
1505
+ }, {
1506
+ error: string;
1507
+ }>;
1247
1508
  403: zod.ZodObject<{
1248
1509
  error: zod.ZodString;
1249
1510
  }, "strip", zod.ZodTypeAny, {
@@ -1266,14 +1527,14 @@ declare const routes$4: {
1266
1527
  error: string;
1267
1528
  }>;
1268
1529
  };
1530
+ path: "/provisioning/teams";
1269
1531
  };
1270
1532
  getTeam: {
1533
+ summary: "Get a provisioned team within the authenticated organization";
1271
1534
  metadata: {
1272
1535
  tag: string;
1273
1536
  };
1274
- summary: "Get a provisioned team within the authenticated organization";
1275
1537
  method: "GET";
1276
- path: "/provisioning/teams/:teamId";
1277
1538
  responses: {
1278
1539
  200: zod.ZodObject<{
1279
1540
  teamId: zod.ZodString;
@@ -1295,6 +1556,7 @@ declare const routes$4: {
1295
1556
  updatedAt: zod.ZodNullable<zod.ZodString>;
1296
1557
  }, "strip", zod.ZodTypeAny, {
1297
1558
  status: "active" | "sending_suspended" | "archived";
1559
+ name: string;
1298
1560
  teamCanChangeDefault: boolean;
1299
1561
  updatedAt: string | null;
1300
1562
  teamId: string;
@@ -1303,11 +1565,11 @@ declare const routes$4: {
1303
1565
  deliverySource: {
1304
1566
  type: "organization";
1305
1567
  };
1306
- name: string;
1307
- mailingAddress: string | null;
1308
1568
  externalId: string;
1569
+ mailingAddress: string | null;
1309
1570
  }, {
1310
1571
  status: "active" | "sending_suspended" | "archived";
1572
+ name: string;
1311
1573
  teamCanChangeDefault: boolean;
1312
1574
  updatedAt: string | null;
1313
1575
  teamId: string;
@@ -1316,9 +1578,8 @@ declare const routes$4: {
1316
1578
  deliverySource: {
1317
1579
  type: "organization";
1318
1580
  };
1319
- name: string;
1320
- mailingAddress: string | null;
1321
1581
  externalId: string;
1582
+ mailingAddress: string | null;
1322
1583
  }>;
1323
1584
  403: zod.ZodObject<{
1324
1585
  error: zod.ZodString;
@@ -1335,12 +1596,13 @@ declare const routes$4: {
1335
1596
  error: string;
1336
1597
  }>;
1337
1598
  };
1599
+ path: "/provisioning/teams/:teamId";
1338
1600
  };
1339
1601
  updateTeam: {
1602
+ summary: "Update a provisioned team's sender, limits, or settings";
1340
1603
  metadata: {
1341
1604
  tag: string;
1342
1605
  };
1343
- summary: "Update a provisioned team's sender, limits, or settings";
1344
1606
  method: "PATCH";
1345
1607
  body: zod.ZodEffects<zod.ZodObject<{
1346
1608
  name: zod.ZodOptional<zod.ZodString>;
@@ -1377,6 +1639,10 @@ declare const routes$4: {
1377
1639
  }>>;
1378
1640
  }, "strip", zod.ZodTypeAny, {
1379
1641
  name?: string | undefined;
1642
+ quota?: {
1643
+ dailyLimit?: number | null | undefined;
1644
+ monthlyLimit?: number | null | undefined;
1645
+ } | undefined;
1380
1646
  mailingAddress?: string | null | undefined;
1381
1647
  sender?: {
1382
1648
  fromName?: string | null | undefined;
@@ -1386,12 +1652,12 @@ declare const routes$4: {
1386
1652
  teamCanChangeDefault?: boolean | undefined;
1387
1653
  teamEspEnabled?: boolean | undefined;
1388
1654
  } | undefined;
1655
+ }, {
1656
+ name?: string | undefined;
1389
1657
  quota?: {
1390
1658
  dailyLimit?: number | null | undefined;
1391
1659
  monthlyLimit?: number | null | undefined;
1392
1660
  } | undefined;
1393
- }, {
1394
- name?: string | undefined;
1395
1661
  mailingAddress?: string | null | undefined;
1396
1662
  sender?: {
1397
1663
  fromName?: string | null | undefined;
@@ -1401,12 +1667,12 @@ declare const routes$4: {
1401
1667
  teamCanChangeDefault?: boolean | undefined;
1402
1668
  teamEspEnabled?: boolean | undefined;
1403
1669
  } | undefined;
1670
+ }>, {
1671
+ name?: string | undefined;
1404
1672
  quota?: {
1405
1673
  dailyLimit?: number | null | undefined;
1406
1674
  monthlyLimit?: number | null | undefined;
1407
1675
  } | undefined;
1408
- }>, {
1409
- name?: string | undefined;
1410
1676
  mailingAddress?: string | null | undefined;
1411
1677
  sender?: {
1412
1678
  fromName?: string | null | undefined;
@@ -1416,12 +1682,12 @@ declare const routes$4: {
1416
1682
  teamCanChangeDefault?: boolean | undefined;
1417
1683
  teamEspEnabled?: boolean | undefined;
1418
1684
  } | undefined;
1685
+ }, {
1686
+ name?: string | undefined;
1419
1687
  quota?: {
1420
1688
  dailyLimit?: number | null | undefined;
1421
1689
  monthlyLimit?: number | null | undefined;
1422
1690
  } | undefined;
1423
- }, {
1424
- name?: string | undefined;
1425
1691
  mailingAddress?: string | null | undefined;
1426
1692
  sender?: {
1427
1693
  fromName?: string | null | undefined;
@@ -1431,12 +1697,7 @@ declare const routes$4: {
1431
1697
  teamCanChangeDefault?: boolean | undefined;
1432
1698
  teamEspEnabled?: boolean | undefined;
1433
1699
  } | undefined;
1434
- quota?: {
1435
- dailyLimit?: number | null | undefined;
1436
- monthlyLimit?: number | null | undefined;
1437
- } | undefined;
1438
1700
  }>;
1439
- path: "/provisioning/teams/:teamId";
1440
1701
  responses: {
1441
1702
  200: zod.ZodObject<{
1442
1703
  teamId: zod.ZodString;
@@ -1458,6 +1719,7 @@ declare const routes$4: {
1458
1719
  updatedAt: zod.ZodNullable<zod.ZodString>;
1459
1720
  }, "strip", zod.ZodTypeAny, {
1460
1721
  status: "active" | "sending_suspended" | "archived";
1722
+ name: string;
1461
1723
  teamCanChangeDefault: boolean;
1462
1724
  updatedAt: string | null;
1463
1725
  teamId: string;
@@ -1466,11 +1728,11 @@ declare const routes$4: {
1466
1728
  deliverySource: {
1467
1729
  type: "organization";
1468
1730
  };
1469
- name: string;
1470
- mailingAddress: string | null;
1471
1731
  externalId: string;
1732
+ mailingAddress: string | null;
1472
1733
  }, {
1473
1734
  status: "active" | "sending_suspended" | "archived";
1735
+ name: string;
1474
1736
  teamCanChangeDefault: boolean;
1475
1737
  updatedAt: string | null;
1476
1738
  teamId: string;
@@ -1478,10 +1740,9 @@ declare const routes$4: {
1478
1740
  teamEspEnabled: boolean;
1479
1741
  deliverySource: {
1480
1742
  type: "organization";
1481
- };
1482
- name: string;
1483
- mailingAddress: string | null;
1743
+ };
1484
1744
  externalId: string;
1745
+ mailingAddress: string | null;
1485
1746
  }>;
1486
1747
  403: zod.ZodObject<{
1487
1748
  error: zod.ZodString;
@@ -1505,12 +1766,13 @@ declare const routes$4: {
1505
1766
  error: string;
1506
1767
  }>;
1507
1768
  };
1769
+ path: "/provisioning/teams/:teamId";
1508
1770
  };
1509
1771
  createTeamKey: {
1772
+ summary: "Replace a provisioned team's integration key";
1510
1773
  metadata: {
1511
1774
  tag: string;
1512
1775
  };
1513
- summary: "Replace a provisioned team's integration key";
1514
1776
  method: "POST";
1515
1777
  body: zod.ZodObject<{
1516
1778
  name: zod.ZodString;
@@ -1519,7 +1781,6 @@ declare const routes$4: {
1519
1781
  }, {
1520
1782
  name: string;
1521
1783
  }>;
1522
- path: "/provisioning/teams/:teamId/keys";
1523
1784
  responses: {
1524
1785
  201: zod.ZodObject<{
1525
1786
  keyId: zod.ZodString;
@@ -1536,8 +1797,8 @@ declare const routes$4: {
1536
1797
  key: string;
1537
1798
  keyId: string;
1538
1799
  keyPrefix: string;
1539
- createdAt?: string | null | undefined;
1540
1800
  expiresAt?: string | null | undefined;
1801
+ createdAt?: string | null | undefined;
1541
1802
  lastUsedAt?: string | null | undefined;
1542
1803
  revokedAt?: string | null | undefined;
1543
1804
  }, {
@@ -1545,8 +1806,8 @@ declare const routes$4: {
1545
1806
  key: string;
1546
1807
  keyId: string;
1547
1808
  keyPrefix: string;
1548
- createdAt?: string | null | undefined;
1549
1809
  expiresAt?: string | null | undefined;
1810
+ createdAt?: string | null | undefined;
1550
1811
  lastUsedAt?: string | null | undefined;
1551
1812
  revokedAt?: string | null | undefined;
1552
1813
  }>;
@@ -1565,15 +1826,15 @@ declare const routes$4: {
1565
1826
  error: string;
1566
1827
  }>;
1567
1828
  };
1829
+ path: "/provisioning/teams/:teamId/keys";
1568
1830
  };
1569
1831
  suspendTeam: {
1832
+ summary: "Suspend new sends for a provisioned team";
1570
1833
  metadata: {
1571
1834
  tag: string;
1572
1835
  };
1573
- summary: "Suspend new sends for a provisioned team";
1574
1836
  method: "POST";
1575
1837
  body: typeof _ts_rest_core.ContractNoBody;
1576
- path: "/provisioning/teams/:teamId/suspend";
1577
1838
  responses: {
1578
1839
  200: zod.ZodObject<{
1579
1840
  teamId: zod.ZodString;
@@ -1595,6 +1856,7 @@ declare const routes$4: {
1595
1856
  updatedAt: zod.ZodNullable<zod.ZodString>;
1596
1857
  }, "strip", zod.ZodTypeAny, {
1597
1858
  status: "active" | "sending_suspended" | "archived";
1859
+ name: string;
1598
1860
  teamCanChangeDefault: boolean;
1599
1861
  updatedAt: string | null;
1600
1862
  teamId: string;
@@ -1603,11 +1865,11 @@ declare const routes$4: {
1603
1865
  deliverySource: {
1604
1866
  type: "organization";
1605
1867
  };
1606
- name: string;
1607
- mailingAddress: string | null;
1608
1868
  externalId: string;
1869
+ mailingAddress: string | null;
1609
1870
  }, {
1610
1871
  status: "active" | "sending_suspended" | "archived";
1872
+ name: string;
1611
1873
  teamCanChangeDefault: boolean;
1612
1874
  updatedAt: string | null;
1613
1875
  teamId: string;
@@ -1616,9 +1878,8 @@ declare const routes$4: {
1616
1878
  deliverySource: {
1617
1879
  type: "organization";
1618
1880
  };
1619
- name: string;
1620
- mailingAddress: string | null;
1621
1881
  externalId: string;
1882
+ mailingAddress: string | null;
1622
1883
  }>;
1623
1884
  403: zod.ZodObject<{
1624
1885
  error: zod.ZodString;
@@ -1642,15 +1903,15 @@ declare const routes$4: {
1642
1903
  error: string;
1643
1904
  }>;
1644
1905
  };
1906
+ path: "/provisioning/teams/:teamId/suspend";
1645
1907
  };
1646
1908
  resumeTeam: {
1909
+ summary: "Resume sends for a provisioned team";
1647
1910
  metadata: {
1648
1911
  tag: string;
1649
1912
  };
1650
- summary: "Resume sends for a provisioned team";
1651
1913
  method: "POST";
1652
1914
  body: typeof _ts_rest_core.ContractNoBody;
1653
- path: "/provisioning/teams/:teamId/resume";
1654
1915
  responses: {
1655
1916
  200: zod.ZodObject<{
1656
1917
  teamId: zod.ZodString;
@@ -1672,6 +1933,7 @@ declare const routes$4: {
1672
1933
  updatedAt: zod.ZodNullable<zod.ZodString>;
1673
1934
  }, "strip", zod.ZodTypeAny, {
1674
1935
  status: "active" | "sending_suspended" | "archived";
1936
+ name: string;
1675
1937
  teamCanChangeDefault: boolean;
1676
1938
  updatedAt: string | null;
1677
1939
  teamId: string;
@@ -1680,11 +1942,11 @@ declare const routes$4: {
1680
1942
  deliverySource: {
1681
1943
  type: "organization";
1682
1944
  };
1683
- name: string;
1684
- mailingAddress: string | null;
1685
1945
  externalId: string;
1946
+ mailingAddress: string | null;
1686
1947
  }, {
1687
1948
  status: "active" | "sending_suspended" | "archived";
1949
+ name: string;
1688
1950
  teamCanChangeDefault: boolean;
1689
1951
  updatedAt: string | null;
1690
1952
  teamId: string;
@@ -1693,9 +1955,8 @@ declare const routes$4: {
1693
1955
  deliverySource: {
1694
1956
  type: "organization";
1695
1957
  };
1696
- name: string;
1697
- mailingAddress: string | null;
1698
1958
  externalId: string;
1959
+ mailingAddress: string | null;
1699
1960
  }>;
1700
1961
  403: zod.ZodObject<{
1701
1962
  error: zod.ZodString;
@@ -1719,14 +1980,14 @@ declare const routes$4: {
1719
1980
  error: string;
1720
1981
  }>;
1721
1982
  };
1983
+ path: "/provisioning/teams/:teamId/resume";
1722
1984
  };
1723
1985
  archiveTeam: {
1986
+ summary: "Archive a provisioned team";
1724
1987
  metadata: {
1725
1988
  tag: string;
1726
1989
  };
1727
- summary: "Archive a provisioned team";
1728
1990
  method: "DELETE";
1729
- path: "/provisioning/teams/:teamId";
1730
1991
  responses: {
1731
1992
  204: typeof _ts_rest_core.ContractNoBody;
1732
1993
  403: zod.ZodObject<{
@@ -1744,14 +2005,14 @@ declare const routes$4: {
1744
2005
  error: string;
1745
2006
  }>;
1746
2007
  };
2008
+ path: "/provisioning/teams/:teamId";
1747
2009
  };
1748
2010
  getTeamUsage: {
2011
+ summary: "Get organization-delivery quota usage for a provisioned team";
1749
2012
  metadata: {
1750
2013
  tag: string;
1751
2014
  };
1752
- summary: "Get organization-delivery quota usage for a provisioned team";
1753
2015
  method: "GET";
1754
- path: "/provisioning/teams/:teamId/usage";
1755
2016
  responses: {
1756
2017
  200: zod.ZodObject<{
1757
2018
  day: zod.ZodObject<{
@@ -1761,16 +2022,16 @@ declare const routes$4: {
1761
2022
  remaining: zod.ZodNullable<zod.ZodNumber>;
1762
2023
  resetsAt: zod.ZodString;
1763
2024
  }, "strip", zod.ZodTypeAny, {
1764
- limit: number | null;
1765
2025
  accepted: number;
1766
- reserved: number;
1767
2026
  remaining: number | null;
2027
+ limit: number | null;
2028
+ reserved: number;
1768
2029
  resetsAt: string;
1769
2030
  }, {
1770
- limit: number | null;
1771
2031
  accepted: number;
1772
- reserved: number;
1773
2032
  remaining: number | null;
2033
+ limit: number | null;
2034
+ reserved: number;
1774
2035
  resetsAt: string;
1775
2036
  }>;
1776
2037
  month: zod.ZodObject<{
@@ -1780,46 +2041,46 @@ declare const routes$4: {
1780
2041
  remaining: zod.ZodNullable<zod.ZodNumber>;
1781
2042
  resetsAt: zod.ZodString;
1782
2043
  }, "strip", zod.ZodTypeAny, {
1783
- limit: number | null;
1784
2044
  accepted: number;
1785
- reserved: number;
1786
2045
  remaining: number | null;
2046
+ limit: number | null;
2047
+ reserved: number;
1787
2048
  resetsAt: string;
1788
2049
  }, {
1789
- limit: number | null;
1790
2050
  accepted: number;
1791
- reserved: number;
1792
2051
  remaining: number | null;
2052
+ limit: number | null;
2053
+ reserved: number;
1793
2054
  resetsAt: string;
1794
2055
  }>;
1795
2056
  }, "strip", zod.ZodTypeAny, {
1796
- day: {
1797
- limit: number | null;
2057
+ month: {
1798
2058
  accepted: number;
1799
- reserved: number;
1800
2059
  remaining: number | null;
1801
- resetsAt: string;
1802
- };
1803
- month: {
1804
2060
  limit: number | null;
1805
- accepted: number;
1806
2061
  reserved: number;
1807
- remaining: number | null;
1808
2062
  resetsAt: string;
1809
2063
  };
1810
- }, {
1811
2064
  day: {
1812
- limit: number | null;
1813
2065
  accepted: number;
1814
- reserved: number;
1815
2066
  remaining: number | null;
2067
+ limit: number | null;
2068
+ reserved: number;
1816
2069
  resetsAt: string;
1817
2070
  };
2071
+ }, {
1818
2072
  month: {
1819
- limit: number | null;
1820
2073
  accepted: number;
2074
+ remaining: number | null;
2075
+ limit: number | null;
1821
2076
  reserved: number;
2077
+ resetsAt: string;
2078
+ };
2079
+ day: {
2080
+ accepted: number;
1822
2081
  remaining: number | null;
2082
+ limit: number | null;
2083
+ reserved: number;
1823
2084
  resetsAt: string;
1824
2085
  };
1825
2086
  }>;
@@ -1838,6 +2099,7 @@ declare const routes$4: {
1838
2099
  error: string;
1839
2100
  }>;
1840
2101
  };
2102
+ path: "/provisioning/teams/:teamId/usage";
1841
2103
  };
1842
2104
  };
1843
2105
  type ProvisionTeamInput = Body<typeof routes$4.provisionTeam>;
@@ -1879,10 +2141,10 @@ declare class Provisioning {
1879
2141
 
1880
2142
  declare const routes$3: {
1881
2143
  create: {
2144
+ summary: "Create a saved segment";
1882
2145
  metadata: {
1883
2146
  tag: string;
1884
2147
  };
1885
- summary: "Create a saved segment";
1886
2148
  method: "POST";
1887
2149
  body: zod.ZodObject<{
1888
2150
  name: zod.ZodString;
@@ -2108,7 +2370,6 @@ declare const routes$3: {
2108
2370
  };
2109
2371
  name: string;
2110
2372
  }>;
2111
- path: "/segments";
2112
2373
  responses: {
2113
2374
  201: zod.ZodObject<{
2114
2375
  segmentId: zod.ZodString;
@@ -2303,9 +2564,9 @@ declare const routes$3: {
2303
2564
  valueLabel?: string | undefined;
2304
2565
  })[];
2305
2566
  };
2567
+ name: string;
2306
2568
  updatedAt: string | null;
2307
2569
  createdAt: string | null;
2308
- name: string;
2309
2570
  segmentId: string;
2310
2571
  }, {
2311
2572
  filter: {
@@ -2338,9 +2599,9 @@ declare const routes$3: {
2338
2599
  valueLabel?: string | undefined;
2339
2600
  })[];
2340
2601
  };
2602
+ name: string;
2341
2603
  updatedAt: string | null;
2342
2604
  createdAt: string | null;
2343
- name: string;
2344
2605
  segmentId: string;
2345
2606
  }>;
2346
2607
  409: zod.ZodObject<{
@@ -2351,14 +2612,14 @@ declare const routes$3: {
2351
2612
  error: string;
2352
2613
  }>;
2353
2614
  };
2615
+ path: "/segments";
2354
2616
  };
2355
2617
  list: {
2618
+ summary: "List saved segments";
2356
2619
  metadata: {
2357
2620
  tag: string;
2358
2621
  };
2359
- summary: "List saved segments";
2360
2622
  method: "GET";
2361
- path: "/segments";
2362
2623
  responses: {
2363
2624
  200: _ts_rest_core.ContractPlainType<{
2364
2625
  filter: {
@@ -2391,20 +2652,20 @@ declare const routes$3: {
2391
2652
  valueLabel?: string | undefined;
2392
2653
  })[];
2393
2654
  };
2655
+ name: string;
2394
2656
  updatedAt: string | null;
2395
2657
  createdAt: string | null;
2396
- name: string;
2397
2658
  segmentId: string;
2398
2659
  }[]>;
2399
2660
  };
2661
+ path: "/segments";
2400
2662
  };
2401
2663
  get: {
2664
+ summary: "Get a saved segment";
2402
2665
  metadata: {
2403
2666
  tag: string;
2404
2667
  };
2405
- summary: "Get a saved segment";
2406
2668
  method: "GET";
2407
- path: "/segments/:segmentId";
2408
2669
  responses: {
2409
2670
  200: zod.ZodObject<{
2410
2671
  segmentId: zod.ZodString;
@@ -2599,9 +2860,9 @@ declare const routes$3: {
2599
2860
  valueLabel?: string | undefined;
2600
2861
  })[];
2601
2862
  };
2863
+ name: string;
2602
2864
  updatedAt: string | null;
2603
2865
  createdAt: string | null;
2604
- name: string;
2605
2866
  segmentId: string;
2606
2867
  }, {
2607
2868
  filter: {
@@ -2634,9 +2895,9 @@ declare const routes$3: {
2634
2895
  valueLabel?: string | undefined;
2635
2896
  })[];
2636
2897
  };
2898
+ name: string;
2637
2899
  updatedAt: string | null;
2638
2900
  createdAt: string | null;
2639
- name: string;
2640
2901
  segmentId: string;
2641
2902
  }>;
2642
2903
  404: zod.ZodObject<{
@@ -2647,12 +2908,13 @@ declare const routes$3: {
2647
2908
  error: string;
2648
2909
  }>;
2649
2910
  };
2911
+ path: "/segments/:segmentId";
2650
2912
  };
2651
2913
  update: {
2914
+ summary: "Update a saved segment";
2652
2915
  metadata: {
2653
2916
  tag: string;
2654
2917
  };
2655
- summary: "Update a saved segment";
2656
2918
  method: "PATCH";
2657
2919
  body: zod.ZodObject<{
2658
2920
  name: zod.ZodOptional<zod.ZodString>;
@@ -2878,7 +3140,6 @@ declare const routes$3: {
2878
3140
  } | undefined;
2879
3141
  name?: string | undefined;
2880
3142
  }>;
2881
- path: "/segments/:segmentId";
2882
3143
  responses: {
2883
3144
  200: zod.ZodObject<{
2884
3145
  segmentId: zod.ZodString;
@@ -3073,9 +3334,9 @@ declare const routes$3: {
3073
3334
  valueLabel?: string | undefined;
3074
3335
  })[];
3075
3336
  };
3337
+ name: string;
3076
3338
  updatedAt: string | null;
3077
3339
  createdAt: string | null;
3078
- name: string;
3079
3340
  segmentId: string;
3080
3341
  }, {
3081
3342
  filter: {
@@ -3108,9 +3369,9 @@ declare const routes$3: {
3108
3369
  valueLabel?: string | undefined;
3109
3370
  })[];
3110
3371
  };
3372
+ name: string;
3111
3373
  updatedAt: string | null;
3112
3374
  createdAt: string | null;
3113
- name: string;
3114
3375
  segmentId: string;
3115
3376
  }>;
3116
3377
  404: zod.ZodObject<{
@@ -3128,17 +3389,18 @@ declare const routes$3: {
3128
3389
  error: string;
3129
3390
  }>;
3130
3391
  };
3392
+ path: "/segments/:segmentId";
3131
3393
  };
3132
3394
  remove: {
3395
+ summary: "Delete a saved segment";
3133
3396
  metadata: {
3134
3397
  tag: string;
3135
3398
  };
3136
- summary: "Delete a saved segment";
3137
3399
  method: "DELETE";
3138
- path: "/segments/:segmentId";
3139
3400
  responses: {
3140
3401
  204: typeof _ts_rest_core.ContractNoBody;
3141
3402
  };
3403
+ path: "/segments/:segmentId";
3142
3404
  };
3143
3405
  };
3144
3406
  type Segment = Ok<typeof routes$3.get>;
@@ -3156,11 +3418,11 @@ declare class Segments {
3156
3418
 
3157
3419
  declare const routes$2: {
3158
3420
  create: {
3421
+ summary: "Create a broadcast or a sequence";
3159
3422
  description: "templateId must identify a marketing team template or marketing system starter. Transactional templates return 422 template_not_marketing.";
3160
3423
  metadata: {
3161
3424
  tag: string;
3162
3425
  };
3163
- summary: "Create a broadcast or a sequence";
3164
3426
  method: "POST";
3165
3427
  body: zod.ZodObject<{
3166
3428
  type: zod.ZodEnum<["broadcast", "sequence"]>;
@@ -3200,7 +3462,6 @@ declare const routes$2: {
3200
3462
  espId?: string | undefined;
3201
3463
  } | undefined;
3202
3464
  }>;
3203
- path: "/sequences";
3204
3465
  responses: {
3205
3466
  201: zod.ZodObject<{
3206
3467
  sequenceId: zod.ZodString;
@@ -3227,6 +3488,7 @@ declare const routes$2: {
3227
3488
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3228
3489
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3229
3490
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3491
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
3230
3492
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
3231
3493
  entrants: zod.ZodArray<zod.ZodString, "many">;
3232
3494
  report: zod.ZodAny;
@@ -3253,6 +3515,8 @@ declare const routes$2: {
3253
3515
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3254
3516
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3255
3517
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
3518
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3519
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3256
3520
  createdAt: zod.ZodNullable<zod.ZodString>;
3257
3521
  updatedAt: zod.ZodNullable<zod.ZodString>;
3258
3522
  }, "strip", zod.ZodTypeAny, {
@@ -3270,6 +3534,8 @@ declare const routes$2: {
3270
3534
  templateId?: string | null | undefined;
3271
3535
  actionType?: string | null | undefined;
3272
3536
  actionData?: Record<string, any> | null | undefined;
3537
+ lastTestSentAt?: string | null | undefined;
3538
+ contentScanVerdict?: string | null | undefined;
3273
3539
  }, {
3274
3540
  content: {
3275
3541
  style: Record<string, any>;
@@ -3285,7 +3551,28 @@ declare const routes$2: {
3285
3551
  templateId?: string | null | undefined;
3286
3552
  actionType?: string | null | undefined;
3287
3553
  actionData?: Record<string, any> | null | undefined;
3554
+ lastTestSentAt?: string | null | undefined;
3555
+ contentScanVerdict?: string | null | undefined;
3288
3556
  }>, "many">;
3557
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
3558
+ reason: zod.ZodEnum<["new_account"]>;
3559
+ hourlyLimit: zod.ZodNumber;
3560
+ dailyLimit: zod.ZodNumber;
3561
+ remaining: zod.ZodNumber;
3562
+ estimatedCompletionAt: zod.ZodString;
3563
+ }, "strip", zod.ZodTypeAny, {
3564
+ dailyLimit: number;
3565
+ reason: "new_account";
3566
+ hourlyLimit: number;
3567
+ remaining: number;
3568
+ estimatedCompletionAt: string;
3569
+ }, {
3570
+ dailyLimit: number;
3571
+ reason: "new_account";
3572
+ hourlyLimit: number;
3573
+ remaining: number;
3574
+ estimatedCompletionAt: string;
3575
+ }>>>;
3289
3576
  }, "strip", zod.ZodTypeAny, {
3290
3577
  type: string;
3291
3578
  status: string;
@@ -3316,12 +3603,22 @@ declare const routes$2: {
3316
3603
  templateId?: string | null | undefined;
3317
3604
  actionType?: string | null | undefined;
3318
3605
  actionData?: Record<string, any> | null | undefined;
3606
+ lastTestSentAt?: string | null | undefined;
3607
+ contentScanVerdict?: string | null | undefined;
3319
3608
  }[];
3320
3609
  filter?: any;
3321
3610
  triggerType?: string | null | undefined;
3322
3611
  triggerData?: string | null | undefined;
3323
3612
  excludeFilter?: any;
3613
+ entrantsCount?: number | undefined;
3324
3614
  report?: any;
3615
+ pacing?: {
3616
+ dailyLimit: number;
3617
+ reason: "new_account";
3618
+ hourlyLimit: number;
3619
+ remaining: number;
3620
+ estimatedCompletionAt: string;
3621
+ } | null | undefined;
3325
3622
  }, {
3326
3623
  type: string;
3327
3624
  status: string;
@@ -3352,12 +3649,22 @@ declare const routes$2: {
3352
3649
  templateId?: string | null | undefined;
3353
3650
  actionType?: string | null | undefined;
3354
3651
  actionData?: Record<string, any> | null | undefined;
3652
+ lastTestSentAt?: string | null | undefined;
3653
+ contentScanVerdict?: string | null | undefined;
3355
3654
  }[];
3356
3655
  filter?: any;
3357
3656
  triggerType?: string | null | undefined;
3358
3657
  triggerData?: string | null | undefined;
3359
3658
  excludeFilter?: any;
3659
+ entrantsCount?: number | undefined;
3360
3660
  report?: any;
3661
+ pacing?: {
3662
+ dailyLimit: number;
3663
+ reason: "new_account";
3664
+ hourlyLimit: number;
3665
+ remaining: number;
3666
+ estimatedCompletionAt: string;
3667
+ } | null | undefined;
3361
3668
  }>;
3362
3669
  400: zod.ZodObject<{
3363
3670
  error: zod.ZodString;
@@ -3374,6 +3681,7 @@ declare const routes$2: {
3374
3681
  error: "template_not_marketing";
3375
3682
  }>;
3376
3683
  };
3684
+ path: "/sequences";
3377
3685
  };
3378
3686
  list: {
3379
3687
  query: zod.ZodObject<{
@@ -3389,12 +3697,11 @@ declare const routes$2: {
3389
3697
  offset?: number | undefined;
3390
3698
  itemsPerPage?: number | undefined;
3391
3699
  }>;
3700
+ summary: "List broadcasts or sequences";
3392
3701
  metadata: {
3393
3702
  tag: string;
3394
3703
  };
3395
- summary: "List broadcasts or sequences";
3396
3704
  method: "GET";
3397
- path: "/sequences";
3398
3705
  responses: {
3399
3706
  200: zod.ZodObject<{
3400
3707
  items: zod.ZodArray<zod.ZodObject<{
@@ -3422,6 +3729,7 @@ declare const routes$2: {
3422
3729
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3423
3730
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3424
3731
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3732
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
3425
3733
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
3426
3734
  entrants: zod.ZodArray<zod.ZodString, "many">;
3427
3735
  report: zod.ZodAny;
@@ -3448,6 +3756,8 @@ declare const routes$2: {
3448
3756
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3449
3757
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3450
3758
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
3759
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3760
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3451
3761
  createdAt: zod.ZodNullable<zod.ZodString>;
3452
3762
  updatedAt: zod.ZodNullable<zod.ZodString>;
3453
3763
  }, "strip", zod.ZodTypeAny, {
@@ -3465,6 +3775,8 @@ declare const routes$2: {
3465
3775
  templateId?: string | null | undefined;
3466
3776
  actionType?: string | null | undefined;
3467
3777
  actionData?: Record<string, any> | null | undefined;
3778
+ lastTestSentAt?: string | null | undefined;
3779
+ contentScanVerdict?: string | null | undefined;
3468
3780
  }, {
3469
3781
  content: {
3470
3782
  style: Record<string, any>;
@@ -3480,7 +3792,28 @@ declare const routes$2: {
3480
3792
  templateId?: string | null | undefined;
3481
3793
  actionType?: string | null | undefined;
3482
3794
  actionData?: Record<string, any> | null | undefined;
3795
+ lastTestSentAt?: string | null | undefined;
3796
+ contentScanVerdict?: string | null | undefined;
3483
3797
  }>, "many">;
3798
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
3799
+ reason: zod.ZodEnum<["new_account"]>;
3800
+ hourlyLimit: zod.ZodNumber;
3801
+ dailyLimit: zod.ZodNumber;
3802
+ remaining: zod.ZodNumber;
3803
+ estimatedCompletionAt: zod.ZodString;
3804
+ }, "strip", zod.ZodTypeAny, {
3805
+ dailyLimit: number;
3806
+ reason: "new_account";
3807
+ hourlyLimit: number;
3808
+ remaining: number;
3809
+ estimatedCompletionAt: string;
3810
+ }, {
3811
+ dailyLimit: number;
3812
+ reason: "new_account";
3813
+ hourlyLimit: number;
3814
+ remaining: number;
3815
+ estimatedCompletionAt: string;
3816
+ }>>>;
3484
3817
  }, "strip", zod.ZodTypeAny, {
3485
3818
  type: string;
3486
3819
  status: string;
@@ -3511,12 +3844,22 @@ declare const routes$2: {
3511
3844
  templateId?: string | null | undefined;
3512
3845
  actionType?: string | null | undefined;
3513
3846
  actionData?: Record<string, any> | null | undefined;
3847
+ lastTestSentAt?: string | null | undefined;
3848
+ contentScanVerdict?: string | null | undefined;
3514
3849
  }[];
3515
3850
  filter?: any;
3516
3851
  triggerType?: string | null | undefined;
3517
3852
  triggerData?: string | null | undefined;
3518
3853
  excludeFilter?: any;
3854
+ entrantsCount?: number | undefined;
3519
3855
  report?: any;
3856
+ pacing?: {
3857
+ dailyLimit: number;
3858
+ reason: "new_account";
3859
+ hourlyLimit: number;
3860
+ remaining: number;
3861
+ estimatedCompletionAt: string;
3862
+ } | null | undefined;
3520
3863
  }, {
3521
3864
  type: string;
3522
3865
  status: string;
@@ -3547,12 +3890,22 @@ declare const routes$2: {
3547
3890
  templateId?: string | null | undefined;
3548
3891
  actionType?: string | null | undefined;
3549
3892
  actionData?: Record<string, any> | null | undefined;
3893
+ lastTestSentAt?: string | null | undefined;
3894
+ contentScanVerdict?: string | null | undefined;
3550
3895
  }[];
3551
3896
  filter?: any;
3552
3897
  triggerType?: string | null | undefined;
3553
3898
  triggerData?: string | null | undefined;
3554
3899
  excludeFilter?: any;
3900
+ entrantsCount?: number | undefined;
3555
3901
  report?: any;
3902
+ pacing?: {
3903
+ dailyLimit: number;
3904
+ reason: "new_account";
3905
+ hourlyLimit: number;
3906
+ remaining: number;
3907
+ estimatedCompletionAt: string;
3908
+ } | null | undefined;
3556
3909
  }>, "many">;
3557
3910
  total: zod.ZodNumber;
3558
3911
  }, "strip", zod.ZodTypeAny, {
@@ -3586,12 +3939,22 @@ declare const routes$2: {
3586
3939
  templateId?: string | null | undefined;
3587
3940
  actionType?: string | null | undefined;
3588
3941
  actionData?: Record<string, any> | null | undefined;
3942
+ lastTestSentAt?: string | null | undefined;
3943
+ contentScanVerdict?: string | null | undefined;
3589
3944
  }[];
3590
3945
  filter?: any;
3591
3946
  triggerType?: string | null | undefined;
3592
3947
  triggerData?: string | null | undefined;
3593
3948
  excludeFilter?: any;
3949
+ entrantsCount?: number | undefined;
3594
3950
  report?: any;
3951
+ pacing?: {
3952
+ dailyLimit: number;
3953
+ reason: "new_account";
3954
+ hourlyLimit: number;
3955
+ remaining: number;
3956
+ estimatedCompletionAt: string;
3957
+ } | null | undefined;
3595
3958
  }[];
3596
3959
  total: number;
3597
3960
  }, {
@@ -3625,24 +3988,34 @@ declare const routes$2: {
3625
3988
  templateId?: string | null | undefined;
3626
3989
  actionType?: string | null | undefined;
3627
3990
  actionData?: Record<string, any> | null | undefined;
3991
+ lastTestSentAt?: string | null | undefined;
3992
+ contentScanVerdict?: string | null | undefined;
3628
3993
  }[];
3629
3994
  filter?: any;
3630
3995
  triggerType?: string | null | undefined;
3631
3996
  triggerData?: string | null | undefined;
3632
3997
  excludeFilter?: any;
3998
+ entrantsCount?: number | undefined;
3633
3999
  report?: any;
4000
+ pacing?: {
4001
+ dailyLimit: number;
4002
+ reason: "new_account";
4003
+ hourlyLimit: number;
4004
+ remaining: number;
4005
+ estimatedCompletionAt: string;
4006
+ } | null | undefined;
3634
4007
  }[];
3635
4008
  total: number;
3636
4009
  }>;
3637
4010
  };
4011
+ path: "/sequences";
3638
4012
  };
3639
4013
  get: {
4014
+ summary: "Get a broadcast or sequence";
3640
4015
  metadata: {
3641
4016
  tag: string;
3642
4017
  };
3643
- summary: "Get a broadcast or sequence";
3644
4018
  method: "GET";
3645
- path: "/sequences/:sequenceId";
3646
4019
  responses: {
3647
4020
  200: zod.ZodObject<{
3648
4021
  sequenceId: zod.ZodString;
@@ -3669,6 +4042,7 @@ declare const routes$2: {
3669
4042
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3670
4043
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
3671
4044
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4045
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
3672
4046
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
3673
4047
  entrants: zod.ZodArray<zod.ZodString, "many">;
3674
4048
  report: zod.ZodAny;
@@ -3695,6 +4069,8 @@ declare const routes$2: {
3695
4069
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3696
4070
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3697
4071
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
4072
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4073
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
3698
4074
  createdAt: zod.ZodNullable<zod.ZodString>;
3699
4075
  updatedAt: zod.ZodNullable<zod.ZodString>;
3700
4076
  }, "strip", zod.ZodTypeAny, {
@@ -3712,6 +4088,8 @@ declare const routes$2: {
3712
4088
  templateId?: string | null | undefined;
3713
4089
  actionType?: string | null | undefined;
3714
4090
  actionData?: Record<string, any> | null | undefined;
4091
+ lastTestSentAt?: string | null | undefined;
4092
+ contentScanVerdict?: string | null | undefined;
3715
4093
  }, {
3716
4094
  content: {
3717
4095
  style: Record<string, any>;
@@ -3727,7 +4105,28 @@ declare const routes$2: {
3727
4105
  templateId?: string | null | undefined;
3728
4106
  actionType?: string | null | undefined;
3729
4107
  actionData?: Record<string, any> | null | undefined;
4108
+ lastTestSentAt?: string | null | undefined;
4109
+ contentScanVerdict?: string | null | undefined;
3730
4110
  }>, "many">;
4111
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
4112
+ reason: zod.ZodEnum<["new_account"]>;
4113
+ hourlyLimit: zod.ZodNumber;
4114
+ dailyLimit: zod.ZodNumber;
4115
+ remaining: zod.ZodNumber;
4116
+ estimatedCompletionAt: zod.ZodString;
4117
+ }, "strip", zod.ZodTypeAny, {
4118
+ dailyLimit: number;
4119
+ reason: "new_account";
4120
+ hourlyLimit: number;
4121
+ remaining: number;
4122
+ estimatedCompletionAt: string;
4123
+ }, {
4124
+ dailyLimit: number;
4125
+ reason: "new_account";
4126
+ hourlyLimit: number;
4127
+ remaining: number;
4128
+ estimatedCompletionAt: string;
4129
+ }>>>;
3731
4130
  }, "strip", zod.ZodTypeAny, {
3732
4131
  type: string;
3733
4132
  status: string;
@@ -3758,12 +4157,22 @@ declare const routes$2: {
3758
4157
  templateId?: string | null | undefined;
3759
4158
  actionType?: string | null | undefined;
3760
4159
  actionData?: Record<string, any> | null | undefined;
4160
+ lastTestSentAt?: string | null | undefined;
4161
+ contentScanVerdict?: string | null | undefined;
3761
4162
  }[];
3762
4163
  filter?: any;
3763
4164
  triggerType?: string | null | undefined;
3764
4165
  triggerData?: string | null | undefined;
3765
4166
  excludeFilter?: any;
4167
+ entrantsCount?: number | undefined;
3766
4168
  report?: any;
4169
+ pacing?: {
4170
+ dailyLimit: number;
4171
+ reason: "new_account";
4172
+ hourlyLimit: number;
4173
+ remaining: number;
4174
+ estimatedCompletionAt: string;
4175
+ } | null | undefined;
3767
4176
  }, {
3768
4177
  type: string;
3769
4178
  status: string;
@@ -3794,12 +4203,22 @@ declare const routes$2: {
3794
4203
  templateId?: string | null | undefined;
3795
4204
  actionType?: string | null | undefined;
3796
4205
  actionData?: Record<string, any> | null | undefined;
4206
+ lastTestSentAt?: string | null | undefined;
4207
+ contentScanVerdict?: string | null | undefined;
3797
4208
  }[];
3798
4209
  filter?: any;
3799
4210
  triggerType?: string | null | undefined;
3800
4211
  triggerData?: string | null | undefined;
3801
4212
  excludeFilter?: any;
4213
+ entrantsCount?: number | undefined;
3802
4214
  report?: any;
4215
+ pacing?: {
4216
+ dailyLimit: number;
4217
+ reason: "new_account";
4218
+ hourlyLimit: number;
4219
+ remaining: number;
4220
+ estimatedCompletionAt: string;
4221
+ } | null | undefined;
3803
4222
  }>;
3804
4223
  404: zod.ZodObject<{
3805
4224
  error: zod.ZodString;
@@ -3809,12 +4228,14 @@ declare const routes$2: {
3809
4228
  error: string;
3810
4229
  }>;
3811
4230
  };
4231
+ path: "/sequences/:sequenceId";
3812
4232
  };
3813
4233
  update: {
4234
+ summary: "Update a broadcast or sequence";
4235
+ description: "A broadcast's title is its email's subject, so once the broadcast has been sent, changing the title returns 400 with the error \"This broadcast has already been sent\".";
3814
4236
  metadata: {
3815
4237
  tag: string;
3816
4238
  };
3817
- summary: "Update a broadcast or sequence";
3818
4239
  method: "PATCH";
3819
4240
  body: zod.ZodObject<{
3820
4241
  title: zod.ZodOptional<zod.ZodString>;
@@ -3976,7 +4397,164 @@ declare const routes$2: {
3976
4397
  value?: string | undefined;
3977
4398
  valueLabel?: string | undefined;
3978
4399
  })[];
3979
- }>>;
4400
+ }>>;
4401
+ excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
4402
+ aggregator: zod.ZodEnum<["and", "or"]>;
4403
+ filters: zod.ZodArray<zod.ZodUnion<[zod.ZodObject<{
4404
+ name: zod.ZodLiteral<"email">;
4405
+ condition: zod.ZodEnum<["is", "contains", "not_contains"]>;
4406
+ value: zod.ZodString;
4407
+ } & {
4408
+ valueLabel: zod.ZodOptional<zod.ZodString>;
4409
+ }, "strip", zod.ZodTypeAny, {
4410
+ value: string;
4411
+ name: "email";
4412
+ condition: "is" | "contains" | "not_contains";
4413
+ valueLabel?: string | undefined;
4414
+ }, {
4415
+ value: string;
4416
+ name: "email";
4417
+ condition: "is" | "contains" | "not_contains";
4418
+ valueLabel?: string | undefined;
4419
+ }>, zod.ZodObject<{
4420
+ name: zod.ZodLiteral<"tag">;
4421
+ condition: zod.ZodEnum<["is", "is_not"]>;
4422
+ value: zod.ZodString;
4423
+ } & {
4424
+ valueLabel: zod.ZodOptional<zod.ZodString>;
4425
+ }, "strip", zod.ZodTypeAny, {
4426
+ value: string;
4427
+ name: "tag";
4428
+ condition: "is" | "is_not";
4429
+ valueLabel?: string | undefined;
4430
+ }, {
4431
+ value: string;
4432
+ name: "tag";
4433
+ condition: "is" | "is_not";
4434
+ valueLabel?: string | undefined;
4435
+ }>, zod.ZodObject<{
4436
+ name: zod.ZodLiteral<"subscription">;
4437
+ condition: zod.ZodLiteral<"is">;
4438
+ value: zod.ZodEnum<["subscribed", "unsubscribed"]>;
4439
+ } & {
4440
+ valueLabel: zod.ZodOptional<zod.ZodString>;
4441
+ }, "strip", zod.ZodTypeAny, {
4442
+ value: "subscribed" | "unsubscribed";
4443
+ name: "subscription";
4444
+ condition: "is";
4445
+ valueLabel?: string | undefined;
4446
+ }, {
4447
+ value: "subscribed" | "unsubscribed";
4448
+ name: "subscription";
4449
+ condition: "is";
4450
+ valueLabel?: string | undefined;
4451
+ }>, zod.ZodObject<{
4452
+ name: zod.ZodLiteral<"signedUp">;
4453
+ condition: zod.ZodEnum<["before", "after", "on"]>;
4454
+ value: zod.ZodEffects<zod.ZodString, string, string>;
4455
+ } & {
4456
+ valueLabel: zod.ZodOptional<zod.ZodString>;
4457
+ }, "strip", zod.ZodTypeAny, {
4458
+ value: string;
4459
+ name: "signedUp";
4460
+ condition: "before" | "after" | "on";
4461
+ valueLabel?: string | undefined;
4462
+ }, {
4463
+ value: string;
4464
+ name: "signedUp";
4465
+ condition: "before" | "after" | "on";
4466
+ valueLabel?: string | undefined;
4467
+ }>, zod.ZodEffects<zod.ZodObject<{
4468
+ name: zod.ZodLiteral<"customField">;
4469
+ key: zod.ZodString;
4470
+ condition: zod.ZodEnum<["is", "is_not", "contains", "not_contains", "has", "not_has", "before", "after", "on", "exists", "not_exists"]>;
4471
+ value: zod.ZodOptional<zod.ZodString>;
4472
+ } & {
4473
+ valueLabel: zod.ZodOptional<zod.ZodString>;
4474
+ }, "strip", zod.ZodTypeAny, {
4475
+ name: "customField";
4476
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4477
+ key: string;
4478
+ value?: string | undefined;
4479
+ valueLabel?: string | undefined;
4480
+ }, {
4481
+ name: "customField";
4482
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4483
+ key: string;
4484
+ value?: string | undefined;
4485
+ valueLabel?: string | undefined;
4486
+ }>, {
4487
+ name: "customField";
4488
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4489
+ key: string;
4490
+ value?: string | undefined;
4491
+ valueLabel?: string | undefined;
4492
+ }, {
4493
+ name: "customField";
4494
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4495
+ key: string;
4496
+ value?: string | undefined;
4497
+ valueLabel?: string | undefined;
4498
+ }>]>, "many">;
4499
+ }, "strip", zod.ZodTypeAny, {
4500
+ aggregator: "and" | "or";
4501
+ filters: ({
4502
+ value: string;
4503
+ name: "email";
4504
+ condition: "is" | "contains" | "not_contains";
4505
+ valueLabel?: string | undefined;
4506
+ } | {
4507
+ value: string;
4508
+ name: "tag";
4509
+ condition: "is" | "is_not";
4510
+ valueLabel?: string | undefined;
4511
+ } | {
4512
+ value: "subscribed" | "unsubscribed";
4513
+ name: "subscription";
4514
+ condition: "is";
4515
+ valueLabel?: string | undefined;
4516
+ } | {
4517
+ value: string;
4518
+ name: "signedUp";
4519
+ condition: "before" | "after" | "on";
4520
+ valueLabel?: string | undefined;
4521
+ } | {
4522
+ name: "customField";
4523
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4524
+ key: string;
4525
+ value?: string | undefined;
4526
+ valueLabel?: string | undefined;
4527
+ })[];
4528
+ }, {
4529
+ aggregator: "and" | "or";
4530
+ filters: ({
4531
+ value: string;
4532
+ name: "email";
4533
+ condition: "is" | "contains" | "not_contains";
4534
+ valueLabel?: string | undefined;
4535
+ } | {
4536
+ value: string;
4537
+ name: "tag";
4538
+ condition: "is" | "is_not";
4539
+ valueLabel?: string | undefined;
4540
+ } | {
4541
+ value: "subscribed" | "unsubscribed";
4542
+ name: "subscription";
4543
+ condition: "is";
4544
+ valueLabel?: string | undefined;
4545
+ } | {
4546
+ value: string;
4547
+ name: "signedUp";
4548
+ condition: "before" | "after" | "on";
4549
+ valueLabel?: string | undefined;
4550
+ } | {
4551
+ name: "customField";
4552
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4553
+ key: string;
4554
+ value?: string | undefined;
4555
+ valueLabel?: string | undefined;
4556
+ })[];
4557
+ }>>>;
3980
4558
  emailsOrder: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
3981
4559
  deliverySource: zod.ZodOptional<zod.ZodNullable<zod.ZodDiscriminatedUnion<"type", [zod.ZodObject<{
3982
4560
  type: zod.ZodLiteral<"organization">;
@@ -4034,6 +4612,36 @@ declare const routes$2: {
4034
4612
  title?: string | undefined;
4035
4613
  triggerType?: string | undefined;
4036
4614
  triggerData?: string | undefined;
4615
+ excludeFilter?: {
4616
+ aggregator: "and" | "or";
4617
+ filters: ({
4618
+ value: string;
4619
+ name: "email";
4620
+ condition: "is" | "contains" | "not_contains";
4621
+ valueLabel?: string | undefined;
4622
+ } | {
4623
+ value: string;
4624
+ name: "tag";
4625
+ condition: "is" | "is_not";
4626
+ valueLabel?: string | undefined;
4627
+ } | {
4628
+ value: "subscribed" | "unsubscribed";
4629
+ name: "subscription";
4630
+ condition: "is";
4631
+ valueLabel?: string | undefined;
4632
+ } | {
4633
+ value: string;
4634
+ name: "signedUp";
4635
+ condition: "before" | "after" | "on";
4636
+ valueLabel?: string | undefined;
4637
+ } | {
4638
+ name: "customField";
4639
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4640
+ key: string;
4641
+ value?: string | undefined;
4642
+ valueLabel?: string | undefined;
4643
+ })[];
4644
+ } | null | undefined;
4037
4645
  emailsOrder?: string[] | undefined;
4038
4646
  }, {
4039
4647
  filter?: {
@@ -4075,9 +4683,38 @@ declare const routes$2: {
4075
4683
  title?: string | undefined;
4076
4684
  triggerType?: string | undefined;
4077
4685
  triggerData?: string | undefined;
4686
+ excludeFilter?: {
4687
+ aggregator: "and" | "or";
4688
+ filters: ({
4689
+ value: string;
4690
+ name: "email";
4691
+ condition: "is" | "contains" | "not_contains";
4692
+ valueLabel?: string | undefined;
4693
+ } | {
4694
+ value: string;
4695
+ name: "tag";
4696
+ condition: "is" | "is_not";
4697
+ valueLabel?: string | undefined;
4698
+ } | {
4699
+ value: "subscribed" | "unsubscribed";
4700
+ name: "subscription";
4701
+ condition: "is";
4702
+ valueLabel?: string | undefined;
4703
+ } | {
4704
+ value: string;
4705
+ name: "signedUp";
4706
+ condition: "before" | "after" | "on";
4707
+ valueLabel?: string | undefined;
4708
+ } | {
4709
+ name: "customField";
4710
+ condition: "is" | "contains" | "not_contains" | "is_not" | "before" | "after" | "on" | "has" | "not_has" | "exists" | "not_exists";
4711
+ key: string;
4712
+ value?: string | undefined;
4713
+ valueLabel?: string | undefined;
4714
+ })[];
4715
+ } | null | undefined;
4078
4716
  emailsOrder?: string[] | undefined;
4079
4717
  }>;
4080
- path: "/sequences/:sequenceId";
4081
4718
  responses: {
4082
4719
  200: zod.ZodObject<{
4083
4720
  sequenceId: zod.ZodString;
@@ -4104,6 +4741,7 @@ declare const routes$2: {
4104
4741
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4105
4742
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4106
4743
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4744
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
4107
4745
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
4108
4746
  entrants: zod.ZodArray<zod.ZodString, "many">;
4109
4747
  report: zod.ZodAny;
@@ -4130,6 +4768,8 @@ declare const routes$2: {
4130
4768
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4131
4769
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4132
4770
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
4771
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4772
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4133
4773
  createdAt: zod.ZodNullable<zod.ZodString>;
4134
4774
  updatedAt: zod.ZodNullable<zod.ZodString>;
4135
4775
  }, "strip", zod.ZodTypeAny, {
@@ -4147,6 +4787,8 @@ declare const routes$2: {
4147
4787
  templateId?: string | null | undefined;
4148
4788
  actionType?: string | null | undefined;
4149
4789
  actionData?: Record<string, any> | null | undefined;
4790
+ lastTestSentAt?: string | null | undefined;
4791
+ contentScanVerdict?: string | null | undefined;
4150
4792
  }, {
4151
4793
  content: {
4152
4794
  style: Record<string, any>;
@@ -4162,7 +4804,28 @@ declare const routes$2: {
4162
4804
  templateId?: string | null | undefined;
4163
4805
  actionType?: string | null | undefined;
4164
4806
  actionData?: Record<string, any> | null | undefined;
4807
+ lastTestSentAt?: string | null | undefined;
4808
+ contentScanVerdict?: string | null | undefined;
4165
4809
  }>, "many">;
4810
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
4811
+ reason: zod.ZodEnum<["new_account"]>;
4812
+ hourlyLimit: zod.ZodNumber;
4813
+ dailyLimit: zod.ZodNumber;
4814
+ remaining: zod.ZodNumber;
4815
+ estimatedCompletionAt: zod.ZodString;
4816
+ }, "strip", zod.ZodTypeAny, {
4817
+ dailyLimit: number;
4818
+ reason: "new_account";
4819
+ hourlyLimit: number;
4820
+ remaining: number;
4821
+ estimatedCompletionAt: string;
4822
+ }, {
4823
+ dailyLimit: number;
4824
+ reason: "new_account";
4825
+ hourlyLimit: number;
4826
+ remaining: number;
4827
+ estimatedCompletionAt: string;
4828
+ }>>>;
4166
4829
  }, "strip", zod.ZodTypeAny, {
4167
4830
  type: string;
4168
4831
  status: string;
@@ -4193,12 +4856,22 @@ declare const routes$2: {
4193
4856
  templateId?: string | null | undefined;
4194
4857
  actionType?: string | null | undefined;
4195
4858
  actionData?: Record<string, any> | null | undefined;
4859
+ lastTestSentAt?: string | null | undefined;
4860
+ contentScanVerdict?: string | null | undefined;
4196
4861
  }[];
4197
4862
  filter?: any;
4198
4863
  triggerType?: string | null | undefined;
4199
4864
  triggerData?: string | null | undefined;
4200
4865
  excludeFilter?: any;
4866
+ entrantsCount?: number | undefined;
4201
4867
  report?: any;
4868
+ pacing?: {
4869
+ dailyLimit: number;
4870
+ reason: "new_account";
4871
+ hourlyLimit: number;
4872
+ remaining: number;
4873
+ estimatedCompletionAt: string;
4874
+ } | null | undefined;
4202
4875
  }, {
4203
4876
  type: string;
4204
4877
  status: string;
@@ -4229,12 +4902,22 @@ declare const routes$2: {
4229
4902
  templateId?: string | null | undefined;
4230
4903
  actionType?: string | null | undefined;
4231
4904
  actionData?: Record<string, any> | null | undefined;
4905
+ lastTestSentAt?: string | null | undefined;
4906
+ contentScanVerdict?: string | null | undefined;
4232
4907
  }[];
4233
4908
  filter?: any;
4234
4909
  triggerType?: string | null | undefined;
4235
4910
  triggerData?: string | null | undefined;
4236
4911
  excludeFilter?: any;
4912
+ entrantsCount?: number | undefined;
4237
4913
  report?: any;
4914
+ pacing?: {
4915
+ dailyLimit: number;
4916
+ reason: "new_account";
4917
+ hourlyLimit: number;
4918
+ remaining: number;
4919
+ estimatedCompletionAt: string;
4920
+ } | null | undefined;
4238
4921
  }>;
4239
4922
  400: zod.ZodObject<{
4240
4923
  error: zod.ZodString;
@@ -4251,14 +4934,14 @@ declare const routes$2: {
4251
4934
  error: string;
4252
4935
  }>;
4253
4936
  };
4937
+ path: "/sequences/:sequenceId";
4254
4938
  };
4255
4939
  remove: {
4940
+ summary: "Delete a broadcast or sequence";
4256
4941
  metadata: {
4257
4942
  tag: string;
4258
4943
  };
4259
- summary: "Delete a broadcast or sequence";
4260
4944
  method: "DELETE";
4261
- path: "/sequences/:sequenceId";
4262
4945
  responses: {
4263
4946
  204: typeof _ts_rest_core.ContractNoBody;
4264
4947
  404: zod.ZodObject<{
@@ -4269,13 +4952,14 @@ declare const routes$2: {
4269
4952
  error: string;
4270
4953
  }>;
4271
4954
  };
4955
+ path: "/sequences/:sequenceId";
4272
4956
  };
4273
4957
  addEmail: {
4958
+ summary: "Add an email to a sequence";
4274
4959
  description: "templateId must identify a marketing template; transactional templates return 422 template_not_marketing.";
4275
4960
  metadata: {
4276
4961
  tag: string;
4277
4962
  };
4278
- summary: "Add an email to a sequence";
4279
4963
  method: "POST";
4280
4964
  body: zod.ZodObject<{
4281
4965
  templateId: zod.ZodString;
@@ -4284,7 +4968,6 @@ declare const routes$2: {
4284
4968
  }, {
4285
4969
  templateId: string;
4286
4970
  }>;
4287
- path: "/sequences/:sequenceId/emails";
4288
4971
  responses: {
4289
4972
  201: zod.ZodObject<{
4290
4973
  sequenceId: zod.ZodString;
@@ -4311,6 +4994,7 @@ declare const routes$2: {
4311
4994
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4312
4995
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4313
4996
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
4997
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
4314
4998
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
4315
4999
  entrants: zod.ZodArray<zod.ZodString, "many">;
4316
5000
  report: zod.ZodAny;
@@ -4337,6 +5021,8 @@ declare const routes$2: {
4337
5021
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4338
5022
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4339
5023
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
5024
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5025
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
4340
5026
  createdAt: zod.ZodNullable<zod.ZodString>;
4341
5027
  updatedAt: zod.ZodNullable<zod.ZodString>;
4342
5028
  }, "strip", zod.ZodTypeAny, {
@@ -4354,6 +5040,8 @@ declare const routes$2: {
4354
5040
  templateId?: string | null | undefined;
4355
5041
  actionType?: string | null | undefined;
4356
5042
  actionData?: Record<string, any> | null | undefined;
5043
+ lastTestSentAt?: string | null | undefined;
5044
+ contentScanVerdict?: string | null | undefined;
4357
5045
  }, {
4358
5046
  content: {
4359
5047
  style: Record<string, any>;
@@ -4369,7 +5057,28 @@ declare const routes$2: {
4369
5057
  templateId?: string | null | undefined;
4370
5058
  actionType?: string | null | undefined;
4371
5059
  actionData?: Record<string, any> | null | undefined;
5060
+ lastTestSentAt?: string | null | undefined;
5061
+ contentScanVerdict?: string | null | undefined;
4372
5062
  }>, "many">;
5063
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
5064
+ reason: zod.ZodEnum<["new_account"]>;
5065
+ hourlyLimit: zod.ZodNumber;
5066
+ dailyLimit: zod.ZodNumber;
5067
+ remaining: zod.ZodNumber;
5068
+ estimatedCompletionAt: zod.ZodString;
5069
+ }, "strip", zod.ZodTypeAny, {
5070
+ dailyLimit: number;
5071
+ reason: "new_account";
5072
+ hourlyLimit: number;
5073
+ remaining: number;
5074
+ estimatedCompletionAt: string;
5075
+ }, {
5076
+ dailyLimit: number;
5077
+ reason: "new_account";
5078
+ hourlyLimit: number;
5079
+ remaining: number;
5080
+ estimatedCompletionAt: string;
5081
+ }>>>;
4373
5082
  }, "strip", zod.ZodTypeAny, {
4374
5083
  type: string;
4375
5084
  status: string;
@@ -4400,12 +5109,22 @@ declare const routes$2: {
4400
5109
  templateId?: string | null | undefined;
4401
5110
  actionType?: string | null | undefined;
4402
5111
  actionData?: Record<string, any> | null | undefined;
5112
+ lastTestSentAt?: string | null | undefined;
5113
+ contentScanVerdict?: string | null | undefined;
4403
5114
  }[];
4404
5115
  filter?: any;
4405
5116
  triggerType?: string | null | undefined;
4406
5117
  triggerData?: string | null | undefined;
4407
5118
  excludeFilter?: any;
5119
+ entrantsCount?: number | undefined;
4408
5120
  report?: any;
5121
+ pacing?: {
5122
+ dailyLimit: number;
5123
+ reason: "new_account";
5124
+ hourlyLimit: number;
5125
+ remaining: number;
5126
+ estimatedCompletionAt: string;
5127
+ } | null | undefined;
4409
5128
  }, {
4410
5129
  type: string;
4411
5130
  status: string;
@@ -4436,12 +5155,22 @@ declare const routes$2: {
4436
5155
  templateId?: string | null | undefined;
4437
5156
  actionType?: string | null | undefined;
4438
5157
  actionData?: Record<string, any> | null | undefined;
5158
+ lastTestSentAt?: string | null | undefined;
5159
+ contentScanVerdict?: string | null | undefined;
4439
5160
  }[];
4440
5161
  filter?: any;
4441
5162
  triggerType?: string | null | undefined;
4442
5163
  triggerData?: string | null | undefined;
4443
5164
  excludeFilter?: any;
5165
+ entrantsCount?: number | undefined;
4444
5166
  report?: any;
5167
+ pacing?: {
5168
+ dailyLimit: number;
5169
+ reason: "new_account";
5170
+ hourlyLimit: number;
5171
+ remaining: number;
5172
+ estimatedCompletionAt: string;
5173
+ } | null | undefined;
4445
5174
  }>;
4446
5175
  400: zod.ZodObject<{
4447
5176
  error: zod.ZodString;
@@ -4465,13 +5194,14 @@ declare const routes$2: {
4465
5194
  error: "template_not_marketing";
4466
5195
  }>;
4467
5196
  };
5197
+ path: "/sequences/:sequenceId/emails";
4468
5198
  };
4469
5199
  updateEmail: {
4470
- description: "When templateId is supplied, it must identify a marketing template; transactional templates return 422 template_not_marketing.";
5200
+ summary: "Update an email within a sequence";
5201
+ description: "When templateId is supplied, it must identify a marketing template; transactional templates return 422 template_not_marketing. Edits to an active sequence's email apply to later sends only: the \"view in browser\" page of an email already sent keeps showing what was sent. A sent broadcast can't be edited; the request returns it unchanged.";
4471
5202
  metadata: {
4472
5203
  tag: string;
4473
5204
  };
4474
- summary: "Update an email within a sequence";
4475
5205
  method: "PATCH";
4476
5206
  body: zod.ZodObject<{
4477
5207
  subject: zod.ZodOptional<zod.ZodString>;
@@ -4501,25 +5231,25 @@ declare const routes$2: {
4501
5231
  text: zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>;
4502
5232
  link: zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>;
4503
5233
  }, "strict", zod.ZodTypeAny, {
5234
+ link: {} & {
5235
+ [k: string]: unknown;
5236
+ };
4504
5237
  header: {} & {
4505
5238
  [k: string]: unknown;
4506
5239
  };
4507
5240
  text: {} & {
4508
5241
  [k: string]: unknown;
4509
5242
  };
5243
+ }, {
4510
5244
  link: {} & {
4511
5245
  [k: string]: unknown;
4512
5246
  };
4513
- }, {
4514
5247
  header: {} & {
4515
5248
  [k: string]: unknown;
4516
5249
  };
4517
5250
  text: {} & {
4518
5251
  [k: string]: unknown;
4519
5252
  };
4520
- link: {} & {
4521
- [k: string]: unknown;
4522
- };
4523
5253
  }>;
4524
5254
  interactives: zod.ZodObject<{
4525
5255
  button: zod.ZodObject<{
@@ -4764,13 +5494,13 @@ declare const routes$2: {
4764
5494
  accentForeground: string;
4765
5495
  };
4766
5496
  typography: {
4767
- header: {} & {
5497
+ link: {} & {
4768
5498
  [k: string]: unknown;
4769
5499
  };
4770
- text: {} & {
5500
+ header: {} & {
4771
5501
  [k: string]: unknown;
4772
5502
  };
4773
- link: {} & {
5503
+ text: {} & {
4774
5504
  [k: string]: unknown;
4775
5505
  };
4776
5506
  };
@@ -4823,13 +5553,13 @@ declare const routes$2: {
4823
5553
  accentForeground: string;
4824
5554
  };
4825
5555
  typography: {
4826
- header: {} & {
5556
+ link: {} & {
4827
5557
  [k: string]: unknown;
4828
5558
  };
4829
- text: {} & {
5559
+ header: {} & {
4830
5560
  [k: string]: unknown;
4831
5561
  };
4832
- link: {} & {
5562
+ text: {} & {
4833
5563
  [k: string]: unknown;
4834
5564
  };
4835
5565
  };
@@ -5027,13 +5757,13 @@ declare const routes$2: {
5027
5757
  accentForeground: string;
5028
5758
  };
5029
5759
  typography: {
5030
- header: {} & {
5760
+ link: {} & {
5031
5761
  [k: string]: unknown;
5032
5762
  };
5033
- text: {} & {
5763
+ header: {} & {
5034
5764
  [k: string]: unknown;
5035
5765
  };
5036
- link: {} & {
5766
+ text: {} & {
5037
5767
  [k: string]: unknown;
5038
5768
  };
5039
5769
  };
@@ -5130,13 +5860,13 @@ declare const routes$2: {
5130
5860
  accentForeground: string;
5131
5861
  };
5132
5862
  typography: {
5133
- header: {} & {
5863
+ link: {} & {
5134
5864
  [k: string]: unknown;
5135
5865
  };
5136
- text: {} & {
5866
+ header: {} & {
5137
5867
  [k: string]: unknown;
5138
5868
  };
5139
- link: {} & {
5869
+ text: {} & {
5140
5870
  [k: string]: unknown;
5141
5871
  };
5142
5872
  };
@@ -5240,13 +5970,13 @@ declare const routes$2: {
5240
5970
  accentForeground: string;
5241
5971
  };
5242
5972
  typography: {
5243
- header: {} & {
5973
+ link: {} & {
5244
5974
  [k: string]: unknown;
5245
5975
  };
5246
- text: {} & {
5976
+ header: {} & {
5247
5977
  [k: string]: unknown;
5248
5978
  };
5249
- link: {} & {
5979
+ text: {} & {
5250
5980
  [k: string]: unknown;
5251
5981
  };
5252
5982
  };
@@ -5351,13 +6081,13 @@ declare const routes$2: {
5351
6081
  accentForeground: string;
5352
6082
  };
5353
6083
  typography: {
5354
- header: {} & {
6084
+ link: {} & {
5355
6085
  [k: string]: unknown;
5356
6086
  };
5357
- text: {} & {
6087
+ header: {} & {
5358
6088
  [k: string]: unknown;
5359
6089
  };
5360
- link: {} & {
6090
+ text: {} & {
5361
6091
  [k: string]: unknown;
5362
6092
  };
5363
6093
  };
@@ -5452,7 +6182,6 @@ declare const routes$2: {
5452
6182
  actionType?: "tag:add" | "tag:remove" | undefined;
5453
6183
  actionData?: Record<string, any> | undefined;
5454
6184
  }>;
5455
- path: "/sequences/:sequenceId/emails/:emailId";
5456
6185
  responses: {
5457
6186
  200: zod.ZodObject<{
5458
6187
  sequenceId: zod.ZodString;
@@ -5479,6 +6208,7 @@ declare const routes$2: {
5479
6208
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5480
6209
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
5481
6210
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6211
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
5482
6212
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
5483
6213
  entrants: zod.ZodArray<zod.ZodString, "many">;
5484
6214
  report: zod.ZodAny;
@@ -5505,6 +6235,8 @@ declare const routes$2: {
5505
6235
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5506
6236
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5507
6237
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
6238
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6239
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5508
6240
  createdAt: zod.ZodNullable<zod.ZodString>;
5509
6241
  updatedAt: zod.ZodNullable<zod.ZodString>;
5510
6242
  }, "strip", zod.ZodTypeAny, {
@@ -5522,6 +6254,8 @@ declare const routes$2: {
5522
6254
  templateId?: string | null | undefined;
5523
6255
  actionType?: string | null | undefined;
5524
6256
  actionData?: Record<string, any> | null | undefined;
6257
+ lastTestSentAt?: string | null | undefined;
6258
+ contentScanVerdict?: string | null | undefined;
5525
6259
  }, {
5526
6260
  content: {
5527
6261
  style: Record<string, any>;
@@ -5537,7 +6271,28 @@ declare const routes$2: {
5537
6271
  templateId?: string | null | undefined;
5538
6272
  actionType?: string | null | undefined;
5539
6273
  actionData?: Record<string, any> | null | undefined;
6274
+ lastTestSentAt?: string | null | undefined;
6275
+ contentScanVerdict?: string | null | undefined;
5540
6276
  }>, "many">;
6277
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
6278
+ reason: zod.ZodEnum<["new_account"]>;
6279
+ hourlyLimit: zod.ZodNumber;
6280
+ dailyLimit: zod.ZodNumber;
6281
+ remaining: zod.ZodNumber;
6282
+ estimatedCompletionAt: zod.ZodString;
6283
+ }, "strip", zod.ZodTypeAny, {
6284
+ dailyLimit: number;
6285
+ reason: "new_account";
6286
+ hourlyLimit: number;
6287
+ remaining: number;
6288
+ estimatedCompletionAt: string;
6289
+ }, {
6290
+ dailyLimit: number;
6291
+ reason: "new_account";
6292
+ hourlyLimit: number;
6293
+ remaining: number;
6294
+ estimatedCompletionAt: string;
6295
+ }>>>;
5541
6296
  }, "strip", zod.ZodTypeAny, {
5542
6297
  type: string;
5543
6298
  status: string;
@@ -5568,12 +6323,22 @@ declare const routes$2: {
5568
6323
  templateId?: string | null | undefined;
5569
6324
  actionType?: string | null | undefined;
5570
6325
  actionData?: Record<string, any> | null | undefined;
6326
+ lastTestSentAt?: string | null | undefined;
6327
+ contentScanVerdict?: string | null | undefined;
5571
6328
  }[];
5572
6329
  filter?: any;
5573
6330
  triggerType?: string | null | undefined;
5574
6331
  triggerData?: string | null | undefined;
5575
6332
  excludeFilter?: any;
6333
+ entrantsCount?: number | undefined;
5576
6334
  report?: any;
6335
+ pacing?: {
6336
+ dailyLimit: number;
6337
+ reason: "new_account";
6338
+ hourlyLimit: number;
6339
+ remaining: number;
6340
+ estimatedCompletionAt: string;
6341
+ } | null | undefined;
5577
6342
  }, {
5578
6343
  type: string;
5579
6344
  status: string;
@@ -5604,12 +6369,22 @@ declare const routes$2: {
5604
6369
  templateId?: string | null | undefined;
5605
6370
  actionType?: string | null | undefined;
5606
6371
  actionData?: Record<string, any> | null | undefined;
6372
+ lastTestSentAt?: string | null | undefined;
6373
+ contentScanVerdict?: string | null | undefined;
5607
6374
  }[];
5608
6375
  filter?: any;
5609
6376
  triggerType?: string | null | undefined;
5610
6377
  triggerData?: string | null | undefined;
5611
6378
  excludeFilter?: any;
6379
+ entrantsCount?: number | undefined;
5612
6380
  report?: any;
6381
+ pacing?: {
6382
+ dailyLimit: number;
6383
+ reason: "new_account";
6384
+ hourlyLimit: number;
6385
+ remaining: number;
6386
+ estimatedCompletionAt: string;
6387
+ } | null | undefined;
5613
6388
  }>;
5614
6389
  400: zod.ZodObject<{
5615
6390
  error: zod.ZodString;
@@ -5633,14 +6408,81 @@ declare const routes$2: {
5633
6408
  error: "template_not_marketing";
5634
6409
  }>;
5635
6410
  };
6411
+ path: "/sequences/:sequenceId/emails/:emailId";
5636
6412
  };
5637
- removeEmail: {
6413
+ sendEmailTest: {
6414
+ summary: "Send a test of a broadcast or sequence email";
6415
+ description: "Renders the email exactly like a real send (merge tags, footer, tracking) and sends it with a `[Test]` subject prefix through the delivery source the real send would use. Its \"view in browser\" link shows the email as it was when tested, not later edits. Merge tags use the recipient's contact data when they are a contact. Opens, clicks and the unsubscribe link in a test change nothing. Suppressed addresses are skipped. Every recipient counts as one test: by default a team can send 100 test emails in any 24 hours (50 in any 3 hours) and 20 per email per 24 hours, after which this returns 429 `test_send_limit_reached` or `test_send_email_limit_reached`. Tests through an organization's shared mailbox also count against the team's shared-delivery quota (429 `organization_team_quota_exhausted` or `organization_quota_exhausted`).";
5638
6416
  metadata: {
5639
6417
  tag: string;
5640
6418
  };
6419
+ method: "POST";
6420
+ body: zod.ZodObject<{
6421
+ to: zod.ZodOptional<zod.ZodArray<zod.ZodString, "many">>;
6422
+ }, "strip", zod.ZodTypeAny, {
6423
+ to?: string[] | undefined;
6424
+ }, {
6425
+ to?: string[] | undefined;
6426
+ }>;
6427
+ responses: {
6428
+ 200: zod.ZodObject<{
6429
+ sent: zod.ZodArray<zod.ZodString, "many">;
6430
+ skipped: zod.ZodArray<zod.ZodObject<{
6431
+ email: zod.ZodString;
6432
+ reason: zod.ZodEnum<["suppressed"]>;
6433
+ }, "strip", zod.ZodTypeAny, {
6434
+ email: string;
6435
+ reason: "suppressed";
6436
+ }, {
6437
+ email: string;
6438
+ reason: "suppressed";
6439
+ }>, "many">;
6440
+ lastTestSentAt: zod.ZodNullable<zod.ZodString>;
6441
+ }, "strip", zod.ZodTypeAny, {
6442
+ lastTestSentAt: string | null;
6443
+ sent: string[];
6444
+ skipped: {
6445
+ email: string;
6446
+ reason: "suppressed";
6447
+ }[];
6448
+ }, {
6449
+ lastTestSentAt: string | null;
6450
+ sent: string[];
6451
+ skipped: {
6452
+ email: string;
6453
+ reason: "suppressed";
6454
+ }[];
6455
+ }>;
6456
+ 400: zod.ZodObject<{
6457
+ error: zod.ZodString;
6458
+ }, "strip", zod.ZodTypeAny, {
6459
+ error: string;
6460
+ }, {
6461
+ error: string;
6462
+ }>;
6463
+ 404: zod.ZodObject<{
6464
+ error: zod.ZodString;
6465
+ }, "strip", zod.ZodTypeAny, {
6466
+ error: string;
6467
+ }, {
6468
+ error: string;
6469
+ }>;
6470
+ 429: zod.ZodObject<{
6471
+ error: zod.ZodString;
6472
+ }, "strip", zod.ZodTypeAny, {
6473
+ error: string;
6474
+ }, {
6475
+ error: string;
6476
+ }>;
6477
+ };
6478
+ path: "/sequences/:sequenceId/emails/:emailId/test";
6479
+ };
6480
+ removeEmail: {
5641
6481
  summary: "Remove an email from a sequence";
6482
+ metadata: {
6483
+ tag: string;
6484
+ };
5642
6485
  method: "DELETE";
5643
- path: "/sequences/:sequenceId/emails/:emailId";
5644
6486
  responses: {
5645
6487
  200: zod.ZodObject<{
5646
6488
  sequenceId: zod.ZodString;
@@ -5667,6 +6509,7 @@ declare const routes$2: {
5667
6509
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5668
6510
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
5669
6511
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6512
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
5670
6513
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
5671
6514
  entrants: zod.ZodArray<zod.ZodString, "many">;
5672
6515
  report: zod.ZodAny;
@@ -5693,6 +6536,8 @@ declare const routes$2: {
5693
6536
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5694
6537
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5695
6538
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
6539
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6540
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5696
6541
  createdAt: zod.ZodNullable<zod.ZodString>;
5697
6542
  updatedAt: zod.ZodNullable<zod.ZodString>;
5698
6543
  }, "strip", zod.ZodTypeAny, {
@@ -5710,6 +6555,8 @@ declare const routes$2: {
5710
6555
  templateId?: string | null | undefined;
5711
6556
  actionType?: string | null | undefined;
5712
6557
  actionData?: Record<string, any> | null | undefined;
6558
+ lastTestSentAt?: string | null | undefined;
6559
+ contentScanVerdict?: string | null | undefined;
5713
6560
  }, {
5714
6561
  content: {
5715
6562
  style: Record<string, any>;
@@ -5725,7 +6572,28 @@ declare const routes$2: {
5725
6572
  templateId?: string | null | undefined;
5726
6573
  actionType?: string | null | undefined;
5727
6574
  actionData?: Record<string, any> | null | undefined;
6575
+ lastTestSentAt?: string | null | undefined;
6576
+ contentScanVerdict?: string | null | undefined;
5728
6577
  }>, "many">;
6578
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
6579
+ reason: zod.ZodEnum<["new_account"]>;
6580
+ hourlyLimit: zod.ZodNumber;
6581
+ dailyLimit: zod.ZodNumber;
6582
+ remaining: zod.ZodNumber;
6583
+ estimatedCompletionAt: zod.ZodString;
6584
+ }, "strip", zod.ZodTypeAny, {
6585
+ dailyLimit: number;
6586
+ reason: "new_account";
6587
+ hourlyLimit: number;
6588
+ remaining: number;
6589
+ estimatedCompletionAt: string;
6590
+ }, {
6591
+ dailyLimit: number;
6592
+ reason: "new_account";
6593
+ hourlyLimit: number;
6594
+ remaining: number;
6595
+ estimatedCompletionAt: string;
6596
+ }>>>;
5729
6597
  }, "strip", zod.ZodTypeAny, {
5730
6598
  type: string;
5731
6599
  status: string;
@@ -5756,12 +6624,22 @@ declare const routes$2: {
5756
6624
  templateId?: string | null | undefined;
5757
6625
  actionType?: string | null | undefined;
5758
6626
  actionData?: Record<string, any> | null | undefined;
6627
+ lastTestSentAt?: string | null | undefined;
6628
+ contentScanVerdict?: string | null | undefined;
5759
6629
  }[];
5760
6630
  filter?: any;
5761
6631
  triggerType?: string | null | undefined;
5762
6632
  triggerData?: string | null | undefined;
5763
6633
  excludeFilter?: any;
6634
+ entrantsCount?: number | undefined;
5764
6635
  report?: any;
6636
+ pacing?: {
6637
+ dailyLimit: number;
6638
+ reason: "new_account";
6639
+ hourlyLimit: number;
6640
+ remaining: number;
6641
+ estimatedCompletionAt: string;
6642
+ } | null | undefined;
5765
6643
  }, {
5766
6644
  type: string;
5767
6645
  status: string;
@@ -5792,12 +6670,22 @@ declare const routes$2: {
5792
6670
  templateId?: string | null | undefined;
5793
6671
  actionType?: string | null | undefined;
5794
6672
  actionData?: Record<string, any> | null | undefined;
6673
+ lastTestSentAt?: string | null | undefined;
6674
+ contentScanVerdict?: string | null | undefined;
5795
6675
  }[];
5796
6676
  filter?: any;
5797
6677
  triggerType?: string | null | undefined;
5798
6678
  triggerData?: string | null | undefined;
5799
6679
  excludeFilter?: any;
6680
+ entrantsCount?: number | undefined;
5800
6681
  report?: any;
6682
+ pacing?: {
6683
+ dailyLimit: number;
6684
+ reason: "new_account";
6685
+ hourlyLimit: number;
6686
+ remaining: number;
6687
+ estimatedCompletionAt: string;
6688
+ } | null | undefined;
5801
6689
  }>;
5802
6690
  400: zod.ZodObject<{
5803
6691
  error: zod.ZodString;
@@ -5814,16 +6702,16 @@ declare const routes$2: {
5814
6702
  error: string;
5815
6703
  }>;
5816
6704
  };
6705
+ path: "/sequences/:sequenceId/emails/:emailId";
5817
6706
  };
5818
6707
  start: {
5819
- description: "Requires a non-empty mailing address in the team's general settings.";
6708
+ summary: "Start a broadcast or activate a sequence";
6709
+ 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.";
5820
6710
  metadata: {
5821
6711
  tag: string;
5822
6712
  };
5823
- summary: "Start a broadcast or activate a sequence";
5824
6713
  method: "POST";
5825
6714
  body: typeof _ts_rest_core.ContractNoBody;
5826
- path: "/sequences/:sequenceId/start";
5827
6715
  responses: {
5828
6716
  200: zod.ZodObject<{
5829
6717
  sequenceId: zod.ZodString;
@@ -5850,6 +6738,7 @@ declare const routes$2: {
5850
6738
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5851
6739
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
5852
6740
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6741
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
5853
6742
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
5854
6743
  entrants: zod.ZodArray<zod.ZodString, "many">;
5855
6744
  report: zod.ZodAny;
@@ -5876,6 +6765,8 @@ declare const routes$2: {
5876
6765
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5877
6766
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5878
6767
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
6768
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6769
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
5879
6770
  createdAt: zod.ZodNullable<zod.ZodString>;
5880
6771
  updatedAt: zod.ZodNullable<zod.ZodString>;
5881
6772
  }, "strip", zod.ZodTypeAny, {
@@ -5893,6 +6784,8 @@ declare const routes$2: {
5893
6784
  templateId?: string | null | undefined;
5894
6785
  actionType?: string | null | undefined;
5895
6786
  actionData?: Record<string, any> | null | undefined;
6787
+ lastTestSentAt?: string | null | undefined;
6788
+ contentScanVerdict?: string | null | undefined;
5896
6789
  }, {
5897
6790
  content: {
5898
6791
  style: Record<string, any>;
@@ -5908,7 +6801,28 @@ declare const routes$2: {
5908
6801
  templateId?: string | null | undefined;
5909
6802
  actionType?: string | null | undefined;
5910
6803
  actionData?: Record<string, any> | null | undefined;
6804
+ lastTestSentAt?: string | null | undefined;
6805
+ contentScanVerdict?: string | null | undefined;
5911
6806
  }>, "many">;
6807
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
6808
+ reason: zod.ZodEnum<["new_account"]>;
6809
+ hourlyLimit: zod.ZodNumber;
6810
+ dailyLimit: zod.ZodNumber;
6811
+ remaining: zod.ZodNumber;
6812
+ estimatedCompletionAt: zod.ZodString;
6813
+ }, "strip", zod.ZodTypeAny, {
6814
+ dailyLimit: number;
6815
+ reason: "new_account";
6816
+ hourlyLimit: number;
6817
+ remaining: number;
6818
+ estimatedCompletionAt: string;
6819
+ }, {
6820
+ dailyLimit: number;
6821
+ reason: "new_account";
6822
+ hourlyLimit: number;
6823
+ remaining: number;
6824
+ estimatedCompletionAt: string;
6825
+ }>>>;
5912
6826
  }, "strip", zod.ZodTypeAny, {
5913
6827
  type: string;
5914
6828
  status: string;
@@ -5939,12 +6853,22 @@ declare const routes$2: {
5939
6853
  templateId?: string | null | undefined;
5940
6854
  actionType?: string | null | undefined;
5941
6855
  actionData?: Record<string, any> | null | undefined;
6856
+ lastTestSentAt?: string | null | undefined;
6857
+ contentScanVerdict?: string | null | undefined;
5942
6858
  }[];
5943
6859
  filter?: any;
5944
6860
  triggerType?: string | null | undefined;
5945
6861
  triggerData?: string | null | undefined;
5946
6862
  excludeFilter?: any;
6863
+ entrantsCount?: number | undefined;
5947
6864
  report?: any;
6865
+ pacing?: {
6866
+ dailyLimit: number;
6867
+ reason: "new_account";
6868
+ hourlyLimit: number;
6869
+ remaining: number;
6870
+ estimatedCompletionAt: string;
6871
+ } | null | undefined;
5948
6872
  }, {
5949
6873
  type: string;
5950
6874
  status: string;
@@ -5975,12 +6899,22 @@ declare const routes$2: {
5975
6899
  templateId?: string | null | undefined;
5976
6900
  actionType?: string | null | undefined;
5977
6901
  actionData?: Record<string, any> | null | undefined;
6902
+ lastTestSentAt?: string | null | undefined;
6903
+ contentScanVerdict?: string | null | undefined;
5978
6904
  }[];
5979
6905
  filter?: any;
5980
6906
  triggerType?: string | null | undefined;
5981
6907
  triggerData?: string | null | undefined;
5982
6908
  excludeFilter?: any;
6909
+ entrantsCount?: number | undefined;
5983
6910
  report?: any;
6911
+ pacing?: {
6912
+ dailyLimit: number;
6913
+ reason: "new_account";
6914
+ hourlyLimit: number;
6915
+ remaining: number;
6916
+ estimatedCompletionAt: string;
6917
+ } | null | undefined;
5984
6918
  }>;
5985
6919
  400: zod.ZodObject<{
5986
6920
  error: zod.ZodString;
@@ -5997,15 +6931,15 @@ declare const routes$2: {
5997
6931
  error: string;
5998
6932
  }>;
5999
6933
  };
6934
+ path: "/sequences/:sequenceId/start";
6000
6935
  };
6001
6936
  pause: {
6937
+ summary: "Pause an active sequence";
6002
6938
  metadata: {
6003
6939
  tag: string;
6004
6940
  };
6005
- summary: "Pause an active sequence";
6006
6941
  method: "POST";
6007
6942
  body: typeof _ts_rest_core.ContractNoBody;
6008
- path: "/sequences/:sequenceId/pause";
6009
6943
  responses: {
6010
6944
  200: zod.ZodObject<{
6011
6945
  sequenceId: zod.ZodString;
@@ -6032,6 +6966,7 @@ declare const routes$2: {
6032
6966
  triggerData: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6033
6967
  filter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6034
6968
  excludeFilter: zod.ZodOptional<zod.ZodNullable<zod.ZodAny>>;
6969
+ entrantsCount: zod.ZodOptional<zod.ZodNumber>;
6035
6970
  emailsOrder: zod.ZodArray<zod.ZodString, "many">;
6036
6971
  entrants: zod.ZodArray<zod.ZodString, "many">;
6037
6972
  report: zod.ZodAny;
@@ -6058,6 +6993,8 @@ declare const routes$2: {
6058
6993
  templateId: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6059
6994
  actionType: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6060
6995
  actionData: zod.ZodOptional<zod.ZodNullable<zod.ZodRecord<zod.ZodString, zod.ZodAny>>>;
6996
+ lastTestSentAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6997
+ contentScanVerdict: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6061
6998
  createdAt: zod.ZodNullable<zod.ZodString>;
6062
6999
  updatedAt: zod.ZodNullable<zod.ZodString>;
6063
7000
  }, "strip", zod.ZodTypeAny, {
@@ -6075,6 +7012,8 @@ declare const routes$2: {
6075
7012
  templateId?: string | null | undefined;
6076
7013
  actionType?: string | null | undefined;
6077
7014
  actionData?: Record<string, any> | null | undefined;
7015
+ lastTestSentAt?: string | null | undefined;
7016
+ contentScanVerdict?: string | null | undefined;
6078
7017
  }, {
6079
7018
  content: {
6080
7019
  style: Record<string, any>;
@@ -6090,7 +7029,28 @@ declare const routes$2: {
6090
7029
  templateId?: string | null | undefined;
6091
7030
  actionType?: string | null | undefined;
6092
7031
  actionData?: Record<string, any> | null | undefined;
7032
+ lastTestSentAt?: string | null | undefined;
7033
+ contentScanVerdict?: string | null | undefined;
6093
7034
  }>, "many">;
7035
+ pacing: zod.ZodOptional<zod.ZodNullable<zod.ZodObject<{
7036
+ reason: zod.ZodEnum<["new_account"]>;
7037
+ hourlyLimit: zod.ZodNumber;
7038
+ dailyLimit: zod.ZodNumber;
7039
+ remaining: zod.ZodNumber;
7040
+ estimatedCompletionAt: zod.ZodString;
7041
+ }, "strip", zod.ZodTypeAny, {
7042
+ dailyLimit: number;
7043
+ reason: "new_account";
7044
+ hourlyLimit: number;
7045
+ remaining: number;
7046
+ estimatedCompletionAt: string;
7047
+ }, {
7048
+ dailyLimit: number;
7049
+ reason: "new_account";
7050
+ hourlyLimit: number;
7051
+ remaining: number;
7052
+ estimatedCompletionAt: string;
7053
+ }>>>;
6094
7054
  }, "strip", zod.ZodTypeAny, {
6095
7055
  type: string;
6096
7056
  status: string;
@@ -6121,12 +7081,22 @@ declare const routes$2: {
6121
7081
  templateId?: string | null | undefined;
6122
7082
  actionType?: string | null | undefined;
6123
7083
  actionData?: Record<string, any> | null | undefined;
7084
+ lastTestSentAt?: string | null | undefined;
7085
+ contentScanVerdict?: string | null | undefined;
6124
7086
  }[];
6125
7087
  filter?: any;
6126
7088
  triggerType?: string | null | undefined;
6127
7089
  triggerData?: string | null | undefined;
6128
7090
  excludeFilter?: any;
7091
+ entrantsCount?: number | undefined;
6129
7092
  report?: any;
7093
+ pacing?: {
7094
+ dailyLimit: number;
7095
+ reason: "new_account";
7096
+ hourlyLimit: number;
7097
+ remaining: number;
7098
+ estimatedCompletionAt: string;
7099
+ } | null | undefined;
6130
7100
  }, {
6131
7101
  type: string;
6132
7102
  status: string;
@@ -6157,12 +7127,150 @@ declare const routes$2: {
6157
7127
  templateId?: string | null | undefined;
6158
7128
  actionType?: string | null | undefined;
6159
7129
  actionData?: Record<string, any> | null | undefined;
7130
+ lastTestSentAt?: string | null | undefined;
7131
+ contentScanVerdict?: string | null | undefined;
6160
7132
  }[];
6161
7133
  filter?: any;
6162
7134
  triggerType?: string | null | undefined;
6163
7135
  triggerData?: string | null | undefined;
6164
7136
  excludeFilter?: any;
7137
+ entrantsCount?: number | undefined;
6165
7138
  report?: any;
7139
+ pacing?: {
7140
+ dailyLimit: number;
7141
+ reason: "new_account";
7142
+ hourlyLimit: number;
7143
+ remaining: number;
7144
+ estimatedCompletionAt: string;
7145
+ } | null | undefined;
7146
+ }>;
7147
+ 400: zod.ZodObject<{
7148
+ error: zod.ZodString;
7149
+ }, "strip", zod.ZodTypeAny, {
7150
+ error: string;
7151
+ }, {
7152
+ error: string;
7153
+ }>;
7154
+ };
7155
+ path: "/sequences/:sequenceId/pause";
7156
+ };
7157
+ getWeb: {
7158
+ summary: "Get a broadcast's web publishing settings";
7159
+ metadata: {
7160
+ tag: string;
7161
+ };
7162
+ method: "GET";
7163
+ responses: {
7164
+ 200: zod.ZodObject<{
7165
+ published: zod.ZodBoolean;
7166
+ slug: zod.ZodNullable<zod.ZodString>;
7167
+ seoTitle: zod.ZodNullable<zod.ZodString>;
7168
+ seoDescription: zod.ZodNullable<zod.ZodString>;
7169
+ ogImage: zod.ZodNullable<zod.ZodString>;
7170
+ noindex: zod.ZodBoolean;
7171
+ canonicalUrl: zod.ZodNullable<zod.ZodString>;
7172
+ live: zod.ZodBoolean;
7173
+ publishedAt: zod.ZodNullable<zod.ZodString>;
7174
+ url: zod.ZodNullable<zod.ZodString>;
7175
+ }, "strip", zod.ZodTypeAny, {
7176
+ url: string | null;
7177
+ published: boolean;
7178
+ slug: string | null;
7179
+ seoTitle: string | null;
7180
+ seoDescription: string | null;
7181
+ ogImage: string | null;
7182
+ noindex: boolean;
7183
+ canonicalUrl: string | null;
7184
+ live: boolean;
7185
+ publishedAt: string | null;
7186
+ }, {
7187
+ url: string | null;
7188
+ published: boolean;
7189
+ slug: string | null;
7190
+ seoTitle: string | null;
7191
+ seoDescription: string | null;
7192
+ ogImage: string | null;
7193
+ noindex: boolean;
7194
+ canonicalUrl: string | null;
7195
+ live: boolean;
7196
+ publishedAt: string | null;
7197
+ }>;
7198
+ 404: zod.ZodObject<{
7199
+ error: zod.ZodString;
7200
+ }, "strip", zod.ZodTypeAny, {
7201
+ error: string;
7202
+ }, {
7203
+ error: string;
7204
+ }>;
7205
+ };
7206
+ path: "/sequences/:sequenceId/web";
7207
+ };
7208
+ updateWeb: {
7209
+ summary: "Publish a broadcast to the web, or change how it's published";
7210
+ description: "Only broadcasts can be published. The page goes live once the broadcast is sent. Publishing without a slug makes one from the title; 409 `slug_taken` when another issue of the team uses the slug.";
7211
+ metadata: {
7212
+ tag: string;
7213
+ };
7214
+ method: "PATCH";
7215
+ body: zod.ZodObject<{
7216
+ published: zod.ZodOptional<zod.ZodBoolean>;
7217
+ slug: zod.ZodOptional<zod.ZodString>;
7218
+ seoTitle: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7219
+ seoDescription: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7220
+ ogImage: zod.ZodOptional<zod.ZodNullable<zod.ZodEffects<zod.ZodString, string, string>>>;
7221
+ noindex: zod.ZodOptional<zod.ZodBoolean>;
7222
+ canonicalUrl: zod.ZodOptional<zod.ZodNullable<zod.ZodEffects<zod.ZodString, string, string>>>;
7223
+ }, "strip", zod.ZodTypeAny, {
7224
+ published?: boolean | undefined;
7225
+ slug?: string | undefined;
7226
+ seoTitle?: string | null | undefined;
7227
+ seoDescription?: string | null | undefined;
7228
+ ogImage?: string | null | undefined;
7229
+ noindex?: boolean | undefined;
7230
+ canonicalUrl?: string | null | undefined;
7231
+ }, {
7232
+ published?: boolean | undefined;
7233
+ slug?: string | undefined;
7234
+ seoTitle?: string | null | undefined;
7235
+ seoDescription?: string | null | undefined;
7236
+ ogImage?: string | null | undefined;
7237
+ noindex?: boolean | undefined;
7238
+ canonicalUrl?: string | null | undefined;
7239
+ }>;
7240
+ responses: {
7241
+ 200: zod.ZodObject<{
7242
+ published: zod.ZodBoolean;
7243
+ slug: zod.ZodNullable<zod.ZodString>;
7244
+ seoTitle: zod.ZodNullable<zod.ZodString>;
7245
+ seoDescription: zod.ZodNullable<zod.ZodString>;
7246
+ ogImage: zod.ZodNullable<zod.ZodString>;
7247
+ noindex: zod.ZodBoolean;
7248
+ canonicalUrl: zod.ZodNullable<zod.ZodString>;
7249
+ live: zod.ZodBoolean;
7250
+ publishedAt: zod.ZodNullable<zod.ZodString>;
7251
+ url: zod.ZodNullable<zod.ZodString>;
7252
+ }, "strip", zod.ZodTypeAny, {
7253
+ url: string | null;
7254
+ published: boolean;
7255
+ slug: string | null;
7256
+ seoTitle: string | null;
7257
+ seoDescription: string | null;
7258
+ ogImage: string | null;
7259
+ noindex: boolean;
7260
+ canonicalUrl: string | null;
7261
+ live: boolean;
7262
+ publishedAt: string | null;
7263
+ }, {
7264
+ url: string | null;
7265
+ published: boolean;
7266
+ slug: string | null;
7267
+ seoTitle: string | null;
7268
+ seoDescription: string | null;
7269
+ ogImage: string | null;
7270
+ noindex: boolean;
7271
+ canonicalUrl: string | null;
7272
+ live: boolean;
7273
+ publishedAt: string | null;
6166
7274
  }>;
6167
7275
  400: zod.ZodObject<{
6168
7276
  error: zod.ZodString;
@@ -6171,33 +7279,61 @@ declare const routes$2: {
6171
7279
  }, {
6172
7280
  error: string;
6173
7281
  }>;
7282
+ 404: zod.ZodObject<{
7283
+ error: zod.ZodString;
7284
+ }, "strip", zod.ZodTypeAny, {
7285
+ error: string;
7286
+ }, {
7287
+ error: string;
7288
+ }>;
7289
+ 409: zod.ZodObject<{
7290
+ error: zod.ZodString;
7291
+ }, "strip", zod.ZodTypeAny, {
7292
+ error: string;
7293
+ }, {
7294
+ error: string;
7295
+ }>;
6174
7296
  };
7297
+ path: "/sequences/:sequenceId/web";
6175
7298
  };
6176
7299
  stats: {
7300
+ summary: "Delivery / open-rate / click-through-rate stats for a sequence";
6177
7301
  metadata: {
6178
7302
  tag: string;
6179
7303
  };
6180
- summary: "Delivery / open-rate / click-through-rate stats for a sequence";
6181
7304
  method: "GET";
6182
- path: "/sequences/:sequenceId/stats";
6183
7305
  responses: {
6184
7306
  200: zod.ZodObject<{
6185
7307
  sent: zod.ZodNumber;
6186
7308
  openRate: zod.ZodNumber;
6187
7309
  clickThroughRate: zod.ZodNumber;
6188
7310
  subscribersCount: zod.ZodNumber;
7311
+ bounceRate: zod.ZodOptional<zod.ZodNumber>;
7312
+ complaintRate: zod.ZodOptional<zod.ZodNumber>;
6189
7313
  }, "strip", zod.ZodTypeAny, {
6190
7314
  sent: number;
6191
7315
  openRate: number;
6192
7316
  clickThroughRate: number;
6193
7317
  subscribersCount: number;
7318
+ bounceRate?: number | undefined;
7319
+ complaintRate?: number | undefined;
6194
7320
  }, {
6195
7321
  sent: number;
6196
7322
  openRate: number;
6197
7323
  clickThroughRate: number;
6198
7324
  subscribersCount: number;
7325
+ bounceRate?: number | undefined;
7326
+ complaintRate?: number | undefined;
7327
+ }>;
7328
+ 404: zod.ZodObject<{
7329
+ error: zod.ZodString;
7330
+ }, "strip", zod.ZodTypeAny, {
7331
+ error: string;
7332
+ }, {
7333
+ error: string;
6199
7334
  }>;
6200
7335
  };
7336
+ path: "/sequences/:sequenceId/stats";
6201
7337
  };
6202
7338
  subscribers: {
6203
7339
  query: zod.ZodObject<{
@@ -6210,15 +7346,22 @@ declare const routes$2: {
6210
7346
  page?: number | undefined;
6211
7347
  limit?: number | undefined;
6212
7348
  }>;
7349
+ summary: "List contact ids that have received this sequence";
6213
7350
  metadata: {
6214
7351
  tag: string;
6215
7352
  };
6216
- summary: "List contact ids that have received this sequence";
6217
7353
  method: "GET";
6218
- path: "/sequences/:sequenceId/subscribers";
6219
7354
  responses: {
6220
7355
  200: _ts_rest_core.ContractPlainType<string[]>;
7356
+ 404: zod.ZodObject<{
7357
+ error: zod.ZodString;
7358
+ }, "strip", zod.ZodTypeAny, {
7359
+ error: string;
7360
+ }, {
7361
+ error: string;
7362
+ }>;
6221
7363
  };
7364
+ path: "/sequences/:sequenceId/subscribers";
6222
7365
  };
6223
7366
  };
6224
7367
  /** A broadcast or a sequence — they share one resource, told apart by
@@ -6261,21 +7404,20 @@ declare const routes$1: {
6261
7404
  itemsPerPage: zod.ZodOptional<zod.ZodNumber>;
6262
7405
  }, "strip", zod.ZodTypeAny, {
6263
7406
  active?: boolean | undefined;
7407
+ reason?: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual" | undefined;
6264
7408
  offset?: number | undefined;
6265
7409
  itemsPerPage?: number | undefined;
6266
- reason?: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual" | undefined;
6267
7410
  }, {
6268
7411
  active?: boolean | undefined;
7412
+ reason?: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual" | undefined;
6269
7413
  offset?: number | undefined;
6270
7414
  itemsPerPage?: number | undefined;
6271
- reason?: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual" | undefined;
6272
7415
  }>;
7416
+ summary: "List the team's suppressed recipients";
6273
7417
  metadata: {
6274
7418
  tag: string;
6275
7419
  };
6276
- summary: "List the team's suppressed recipients";
6277
7420
  method: "GET";
6278
- path: "/suppressions";
6279
7421
  responses: {
6280
7422
  200: zod.ZodObject<{
6281
7423
  items: zod.ZodArray<zod.ZodObject<{
@@ -6289,8 +7431,8 @@ declare const routes$1: {
6289
7431
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6290
7432
  }, "strip", zod.ZodTypeAny, {
6291
7433
  active: boolean;
6292
- recipientEmail: string | null;
6293
7434
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7435
+ recipientEmail: string | null;
6294
7436
  suppressionId: string;
6295
7437
  firstSuppressedAt: string;
6296
7438
  lastSuppressedAt: string;
@@ -6298,8 +7440,8 @@ declare const routes$1: {
6298
7440
  releaseReason?: string | null | undefined;
6299
7441
  }, {
6300
7442
  active: boolean;
6301
- recipientEmail: string | null;
6302
7443
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7444
+ recipientEmail: string | null;
6303
7445
  suppressionId: string;
6304
7446
  firstSuppressedAt: string;
6305
7447
  lastSuppressedAt: string;
@@ -6310,8 +7452,8 @@ declare const routes$1: {
6310
7452
  }, "strip", zod.ZodTypeAny, {
6311
7453
  items: {
6312
7454
  active: boolean;
6313
- recipientEmail: string | null;
6314
7455
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7456
+ recipientEmail: string | null;
6315
7457
  suppressionId: string;
6316
7458
  firstSuppressedAt: string;
6317
7459
  lastSuppressedAt: string;
@@ -6322,8 +7464,8 @@ declare const routes$1: {
6322
7464
  }, {
6323
7465
  items: {
6324
7466
  active: boolean;
6325
- recipientEmail: string | null;
6326
7467
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7468
+ recipientEmail: string | null;
6327
7469
  suppressionId: string;
6328
7470
  firstSuppressedAt: string;
6329
7471
  lastSuppressedAt: string;
@@ -6333,14 +7475,70 @@ declare const routes$1: {
6333
7475
  total: number;
6334
7476
  }>;
6335
7477
  };
7478
+ path: "/suppressions";
6336
7479
  };
6337
- get: {
7480
+ create: {
7481
+ summary: "Suppress an address";
7482
+ description: "Adds a manual suppression: SendLit never mails the address again from this team (broadcasts, sequences or transactional) until the suppression is released. Use it for role accounts, legal requests or known spam traps. An existing stronger suppression (for example a complaint) is kept.";
6338
7483
  metadata: {
6339
7484
  tag: string;
6340
7485
  };
7486
+ method: "POST";
7487
+ body: zod.ZodObject<{
7488
+ email: zod.ZodString;
7489
+ note: zod.ZodOptional<zod.ZodString>;
7490
+ }, "strip", zod.ZodTypeAny, {
7491
+ email: string;
7492
+ note?: string | undefined;
7493
+ }, {
7494
+ email: string;
7495
+ note?: string | undefined;
7496
+ }>;
7497
+ responses: {
7498
+ 201: zod.ZodObject<{
7499
+ suppressionId: zod.ZodString;
7500
+ recipientEmail: zod.ZodNullable<zod.ZodString>;
7501
+ reason: zod.ZodEnum<["hard_bounce", "complaint", "repeated_soft_bounce", "provider_suppression", "manual"]>;
7502
+ active: zod.ZodBoolean;
7503
+ firstSuppressedAt: zod.ZodString;
7504
+ lastSuppressedAt: zod.ZodString;
7505
+ releasedAt: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7506
+ releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
7507
+ }, "strip", zod.ZodTypeAny, {
7508
+ active: boolean;
7509
+ reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7510
+ recipientEmail: string | null;
7511
+ suppressionId: string;
7512
+ firstSuppressedAt: string;
7513
+ lastSuppressedAt: string;
7514
+ releasedAt?: string | null | undefined;
7515
+ releaseReason?: string | null | undefined;
7516
+ }, {
7517
+ active: boolean;
7518
+ reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7519
+ recipientEmail: string | null;
7520
+ suppressionId: string;
7521
+ firstSuppressedAt: string;
7522
+ lastSuppressedAt: string;
7523
+ releasedAt?: string | null | undefined;
7524
+ releaseReason?: string | null | undefined;
7525
+ }>;
7526
+ 400: zod.ZodObject<{
7527
+ error: zod.ZodString;
7528
+ }, "strip", zod.ZodTypeAny, {
7529
+ error: string;
7530
+ }, {
7531
+ error: string;
7532
+ }>;
7533
+ };
7534
+ path: "/suppressions";
7535
+ };
7536
+ get: {
6341
7537
  summary: "Get a single suppression";
7538
+ metadata: {
7539
+ tag: string;
7540
+ };
6342
7541
  method: "GET";
6343
- path: "/suppressions/:suppressionId";
6344
7542
  responses: {
6345
7543
  200: zod.ZodObject<{
6346
7544
  suppressionId: zod.ZodString;
@@ -6353,8 +7551,8 @@ declare const routes$1: {
6353
7551
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6354
7552
  }, "strip", zod.ZodTypeAny, {
6355
7553
  active: boolean;
6356
- recipientEmail: string | null;
6357
7554
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7555
+ recipientEmail: string | null;
6358
7556
  suppressionId: string;
6359
7557
  firstSuppressedAt: string;
6360
7558
  lastSuppressedAt: string;
@@ -6362,8 +7560,8 @@ declare const routes$1: {
6362
7560
  releaseReason?: string | null | undefined;
6363
7561
  }, {
6364
7562
  active: boolean;
6365
- recipientEmail: string | null;
6366
7563
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7564
+ recipientEmail: string | null;
6367
7565
  suppressionId: string;
6368
7566
  firstSuppressedAt: string;
6369
7567
  lastSuppressedAt: string;
@@ -6378,13 +7576,14 @@ declare const routes$1: {
6378
7576
  error: string;
6379
7577
  }>;
6380
7578
  };
7579
+ path: "/suppressions/:suppressionId";
6381
7580
  };
6382
7581
  release: {
6383
- description: "A workspace owner may release hard_bounce, repeated_soft_bounce, and manual suppressions only. Complaint suppressions cannot be released through this endpoint (409 suppression_not_releasable) \u2014 see the PRD's reactivation policy.";
7582
+ summary: "Release an active suppression";
7583
+ description: "A workspace owner may release hard_bounce, repeated_soft_bounce, and manual suppressions only. Complaint suppressions cannot be released through this endpoint (409 suppression_not_releasable) — see the PRD's reactivation policy.";
6384
7584
  metadata: {
6385
7585
  tag: string;
6386
7586
  };
6387
- summary: "Release an active suppression";
6388
7587
  method: "POST";
6389
7588
  body: zod.ZodObject<{
6390
7589
  explanation: zod.ZodOptional<zod.ZodString>;
@@ -6393,7 +7592,6 @@ declare const routes$1: {
6393
7592
  }, {
6394
7593
  explanation?: string | undefined;
6395
7594
  }>;
6396
- path: "/suppressions/:suppressionId/release";
6397
7595
  responses: {
6398
7596
  200: zod.ZodObject<{
6399
7597
  suppressionId: zod.ZodString;
@@ -6406,8 +7604,8 @@ declare const routes$1: {
6406
7604
  releaseReason: zod.ZodOptional<zod.ZodNullable<zod.ZodString>>;
6407
7605
  }, "strip", zod.ZodTypeAny, {
6408
7606
  active: boolean;
6409
- recipientEmail: string | null;
6410
7607
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7608
+ recipientEmail: string | null;
6411
7609
  suppressionId: string;
6412
7610
  firstSuppressedAt: string;
6413
7611
  lastSuppressedAt: string;
@@ -6415,8 +7613,8 @@ declare const routes$1: {
6415
7613
  releaseReason?: string | null | undefined;
6416
7614
  }, {
6417
7615
  active: boolean;
6418
- recipientEmail: string | null;
6419
7616
  reason: "hard_bounce" | "complaint" | "repeated_soft_bounce" | "provider_suppression" | "manual";
7617
+ recipientEmail: string | null;
6420
7618
  suppressionId: string;
6421
7619
  firstSuppressedAt: string;
6422
7620
  lastSuppressedAt: string;
@@ -6438,6 +7636,7 @@ declare const routes$1: {
6438
7636
  error: string;
6439
7637
  }>;
6440
7638
  };
7639
+ path: "/suppressions/:suppressionId/release";
6441
7640
  };
6442
7641
  };
6443
7642
  type Suppression = Ok<typeof routes$1.get>;
@@ -6457,7 +7656,6 @@ declare class Suppressions {
6457
7656
 
6458
7657
  declare const routes: {
6459
7658
  listSystem: {
6460
- description: "Not team-scoped\u2014the same for every team. Filter by purpose. System templates are starters and must be duplicated into a team-owned template before transactional sending.";
6461
7659
  query: zod.ZodObject<{
6462
7660
  purpose: zod.ZodOptional<zod.ZodEnum<["marketing", "transactional"]>>;
6463
7661
  }, "strip", zod.ZodTypeAny, {
@@ -6465,12 +7663,12 @@ declare const routes: {
6465
7663
  }, {
6466
7664
  purpose?: "marketing" | "transactional" | undefined;
6467
7665
  }>;
7666
+ summary: "List built-in starting templates";
7667
+ description: "Not team-scoped—the same for every team. Filter by purpose. System templates are starters and must be duplicated into a team-owned template before transactional sending.";
6468
7668
  metadata: {
6469
7669
  tag: string;
6470
7670
  };
6471
- summary: "List built-in starting templates";
6472
7671
  method: "GET";
6473
- path: "/system-templates";
6474
7672
  responses: {
6475
7673
  200: zod.ZodObject<{
6476
7674
  items: zod.ZodArray<zod.ZodObject<{
@@ -6506,6 +7704,7 @@ declare const routes: {
6506
7704
  example?: any;
6507
7705
  }>, "many">>;
6508
7706
  }, "strip", zod.ZodTypeAny, {
7707
+ description: string;
6509
7708
  content: {
6510
7709
  style: Record<string, any>;
6511
7710
  meta: Record<string, any>;
@@ -6513,7 +7712,6 @@ declare const routes: {
6513
7712
  };
6514
7713
  templateId: string;
6515
7714
  title: string;
6516
- description: string;
6517
7715
  purpose: "marketing" | "transactional";
6518
7716
  requiredVariables: string[];
6519
7717
  variableDefinitions?: {
@@ -6522,6 +7720,7 @@ declare const routes: {
6522
7720
  example?: any;
6523
7721
  }[] | undefined;
6524
7722
  }, {
7723
+ description: string;
6525
7724
  content: {
6526
7725
  style: Record<string, any>;
6527
7726
  meta: Record<string, any>;
@@ -6529,7 +7728,6 @@ declare const routes: {
6529
7728
  };
6530
7729
  templateId: string;
6531
7730
  title: string;
6532
- description: string;
6533
7731
  purpose: "marketing" | "transactional";
6534
7732
  requiredVariables: string[];
6535
7733
  variableDefinitions?: {
@@ -6540,6 +7738,7 @@ declare const routes: {
6540
7738
  }>, "many">;
6541
7739
  }, "strip", zod.ZodTypeAny, {
6542
7740
  items: {
7741
+ description: string;
6543
7742
  content: {
6544
7743
  style: Record<string, any>;
6545
7744
  meta: Record<string, any>;
@@ -6547,7 +7746,6 @@ declare const routes: {
6547
7746
  };
6548
7747
  templateId: string;
6549
7748
  title: string;
6550
- description: string;
6551
7749
  purpose: "marketing" | "transactional";
6552
7750
  requiredVariables: string[];
6553
7751
  variableDefinitions?: {
@@ -6558,6 +7756,7 @@ declare const routes: {
6558
7756
  }[];
6559
7757
  }, {
6560
7758
  items: {
7759
+ description: string;
6561
7760
  content: {
6562
7761
  style: Record<string, any>;
6563
7762
  meta: Record<string, any>;
@@ -6565,7 +7764,6 @@ declare const routes: {
6565
7764
  };
6566
7765
  templateId: string;
6567
7766
  title: string;
6568
- description: string;
6569
7767
  purpose: "marketing" | "transactional";
6570
7768
  requiredVariables: string[];
6571
7769
  variableDefinitions?: {
@@ -6576,13 +7774,14 @@ declare const routes: {
6576
7774
  }[];
6577
7775
  }>;
6578
7776
  };
7777
+ path: "/system-templates";
6579
7778
  };
6580
7779
  create: {
7780
+ summary: "Create an email template";
6581
7781
  description: "Purpose is immutable. Marketing content must contain exactly one final managed footer; transactional content must not contain a footer or marketing-only variables.";
6582
7782
  metadata: {
6583
7783
  tag: string;
6584
7784
  };
6585
- summary: "Create an email template";
6586
7785
  method: "POST";
6587
7786
  body: zod.ZodObject<{
6588
7787
  title: zod.ZodString;
@@ -6613,25 +7812,25 @@ declare const routes: {
6613
7812
  text: zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>;
6614
7813
  link: zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>;
6615
7814
  }, "strict", zod.ZodTypeAny, {
7815
+ link: {} & {
7816
+ [k: string]: unknown;
7817
+ };
6616
7818
  header: {} & {
6617
7819
  [k: string]: unknown;
6618
7820
  };
6619
7821
  text: {} & {
6620
7822
  [k: string]: unknown;
6621
7823
  };
7824
+ }, {
6622
7825
  link: {} & {
6623
7826
  [k: string]: unknown;
6624
7827
  };
6625
- }, {
6626
7828
  header: {} & {
6627
7829
  [k: string]: unknown;
6628
7830
  };
6629
7831
  text: {} & {
6630
7832
  [k: string]: unknown;
6631
7833
  };
6632
- link: {} & {
6633
- [k: string]: unknown;
6634
- };
6635
7834
  }>;
6636
7835
  interactives: zod.ZodObject<{
6637
7836
  button: zod.ZodObject<{
@@ -6876,13 +8075,13 @@ declare const routes: {
6876
8075
  accentForeground: string;
6877
8076
  };
6878
8077
  typography: {
6879
- header: {} & {
8078
+ link: {} & {
6880
8079
  [k: string]: unknown;
6881
8080
  };
6882
- text: {} & {
8081
+ header: {} & {
6883
8082
  [k: string]: unknown;
6884
8083
  };
6885
- link: {} & {
8084
+ text: {} & {
6886
8085
  [k: string]: unknown;
6887
8086
  };
6888
8087
  };
@@ -6935,13 +8134,13 @@ declare const routes: {
6935
8134
  accentForeground: string;
6936
8135
  };
6937
8136
  typography: {
6938
- header: {} & {
8137
+ link: {} & {
6939
8138
  [k: string]: unknown;
6940
8139
  };
6941
- text: {} & {
8140
+ header: {} & {
6942
8141
  [k: string]: unknown;
6943
8142
  };
6944
- link: {} & {
8143
+ text: {} & {
6945
8144
  [k: string]: unknown;
6946
8145
  };
6947
8146
  };
@@ -7139,13 +8338,13 @@ declare const routes: {
7139
8338
  accentForeground: string;
7140
8339
  };
7141
8340
  typography: {
7142
- header: {} & {
8341
+ link: {} & {
7143
8342
  [k: string]: unknown;
7144
8343
  };
7145
- text: {} & {
8344
+ header: {} & {
7146
8345
  [k: string]: unknown;
7147
8346
  };
7148
- link: {} & {
8347
+ text: {} & {
7149
8348
  [k: string]: unknown;
7150
8349
  };
7151
8350
  };
@@ -7242,13 +8441,13 @@ declare const routes: {
7242
8441
  accentForeground: string;
7243
8442
  };
7244
8443
  typography: {
7245
- header: {} & {
8444
+ link: {} & {
7246
8445
  [k: string]: unknown;
7247
8446
  };
7248
- text: {} & {
8447
+ header: {} & {
7249
8448
  [k: string]: unknown;
7250
8449
  };
7251
- link: {} & {
8450
+ text: {} & {
7252
8451
  [k: string]: unknown;
7253
8452
  };
7254
8453
  };
@@ -7347,13 +8546,13 @@ declare const routes: {
7347
8546
  accentForeground: string;
7348
8547
  };
7349
8548
  typography: {
7350
- header: {} & {
8549
+ link: {} & {
7351
8550
  [k: string]: unknown;
7352
8551
  };
7353
- text: {} & {
8552
+ header: {} & {
7354
8553
  [k: string]: unknown;
7355
8554
  };
7356
- link: {} & {
8555
+ text: {} & {
7357
8556
  [k: string]: unknown;
7358
8557
  };
7359
8558
  };
@@ -7454,13 +8653,13 @@ declare const routes: {
7454
8653
  accentForeground: string;
7455
8654
  };
7456
8655
  typography: {
7457
- header: {} & {
8656
+ link: {} & {
7458
8657
  [k: string]: unknown;
7459
8658
  };
7460
- text: {} & {
8659
+ header: {} & {
7461
8660
  [k: string]: unknown;
7462
8661
  };
7463
- link: {} & {
8662
+ text: {} & {
7464
8663
  [k: string]: unknown;
7465
8664
  };
7466
8665
  };
@@ -7551,7 +8750,6 @@ declare const routes: {
7551
8750
  title: string;
7552
8751
  purpose?: "marketing" | "transactional" | undefined;
7553
8752
  }>;
7554
- path: "/templates";
7555
8753
  responses: {
7556
8754
  201: zod.ZodObject<{
7557
8755
  templateId: zod.ZodString;
@@ -7612,9 +8810,9 @@ declare const routes: {
7612
8810
  variables?: string[] | undefined;
7613
8811
  }>;
7614
8812
  };
8813
+ path: "/templates";
7615
8814
  };
7616
8815
  list: {
7617
- description: "Returns team-owned templates with their immutable purpose and server-computed requiredVariables. Optionally filter by purpose.";
7618
8816
  query: zod.ZodObject<{
7619
8817
  purpose: zod.ZodOptional<zod.ZodEnum<["marketing", "transactional"]>>;
7620
8818
  }, "strip", zod.ZodTypeAny, {
@@ -7622,12 +8820,12 @@ declare const routes: {
7622
8820
  }, {
7623
8821
  purpose?: "marketing" | "transactional" | undefined;
7624
8822
  }>;
8823
+ summary: "List email templates";
8824
+ description: "Returns team-owned templates with their immutable purpose and server-computed requiredVariables. Optionally filter by purpose.";
7625
8825
  metadata: {
7626
8826
  tag: string;
7627
8827
  };
7628
- summary: "List email templates";
7629
8828
  method: "GET";
7630
- path: "/templates";
7631
8829
  responses: {
7632
8830
  200: _ts_rest_core.ContractPlainType<{
7633
8831
  content: {
@@ -7644,14 +8842,14 @@ declare const routes: {
7644
8842
  validationError?: string | undefined;
7645
8843
  }[]>;
7646
8844
  };
8845
+ path: "/templates";
7647
8846
  };
7648
8847
  get: {
8848
+ summary: "Get an email template";
7649
8849
  metadata: {
7650
8850
  tag: string;
7651
8851
  };
7652
- summary: "Get an email template";
7653
8852
  method: "GET";
7654
- path: "/templates/:templateId";
7655
8853
  responses: {
7656
8854
  200: zod.ZodObject<{
7657
8855
  templateId: zod.ZodString;
@@ -7719,12 +8917,13 @@ declare const routes: {
7719
8917
  variables?: string[] | undefined;
7720
8918
  }>;
7721
8919
  };
8920
+ path: "/templates/:templateId";
7722
8921
  };
7723
8922
  update: {
8923
+ summary: "Update an email template";
7724
8924
  metadata: {
7725
8925
  tag: string;
7726
8926
  };
7727
- summary: "Update an email template";
7728
8927
  method: "PATCH";
7729
8928
  body: zod.ZodObject<{
7730
8929
  title: zod.ZodOptional<zod.ZodString>;
@@ -7754,25 +8953,25 @@ declare const routes: {
7754
8953
  text: zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>;
7755
8954
  link: zod.ZodObject<{}, "passthrough", zod.ZodTypeAny, zod.objectOutputType<{}, zod.ZodTypeAny, "passthrough">, zod.objectInputType<{}, zod.ZodTypeAny, "passthrough">>;
7756
8955
  }, "strict", zod.ZodTypeAny, {
8956
+ link: {} & {
8957
+ [k: string]: unknown;
8958
+ };
7757
8959
  header: {} & {
7758
8960
  [k: string]: unknown;
7759
8961
  };
7760
8962
  text: {} & {
7761
8963
  [k: string]: unknown;
7762
8964
  };
8965
+ }, {
7763
8966
  link: {} & {
7764
8967
  [k: string]: unknown;
7765
8968
  };
7766
- }, {
7767
8969
  header: {} & {
7768
8970
  [k: string]: unknown;
7769
8971
  };
7770
8972
  text: {} & {
7771
8973
  [k: string]: unknown;
7772
8974
  };
7773
- link: {} & {
7774
- [k: string]: unknown;
7775
- };
7776
8975
  }>;
7777
8976
  interactives: zod.ZodObject<{
7778
8977
  button: zod.ZodObject<{
@@ -8017,13 +9216,13 @@ declare const routes: {
8017
9216
  accentForeground: string;
8018
9217
  };
8019
9218
  typography: {
8020
- header: {} & {
9219
+ link: {} & {
8021
9220
  [k: string]: unknown;
8022
9221
  };
8023
- text: {} & {
9222
+ header: {} & {
8024
9223
  [k: string]: unknown;
8025
9224
  };
8026
- link: {} & {
9225
+ text: {} & {
8027
9226
  [k: string]: unknown;
8028
9227
  };
8029
9228
  };
@@ -8076,13 +9275,13 @@ declare const routes: {
8076
9275
  accentForeground: string;
8077
9276
  };
8078
9277
  typography: {
8079
- header: {} & {
9278
+ link: {} & {
8080
9279
  [k: string]: unknown;
8081
9280
  };
8082
- text: {} & {
9281
+ header: {} & {
8083
9282
  [k: string]: unknown;
8084
9283
  };
8085
- link: {} & {
9284
+ text: {} & {
8086
9285
  [k: string]: unknown;
8087
9286
  };
8088
9287
  };
@@ -8280,13 +9479,13 @@ declare const routes: {
8280
9479
  accentForeground: string;
8281
9480
  };
8282
9481
  typography: {
8283
- header: {} & {
9482
+ link: {} & {
8284
9483
  [k: string]: unknown;
8285
9484
  };
8286
- text: {} & {
9485
+ header: {} & {
8287
9486
  [k: string]: unknown;
8288
9487
  };
8289
- link: {} & {
9488
+ text: {} & {
8290
9489
  [k: string]: unknown;
8291
9490
  };
8292
9491
  };
@@ -8383,13 +9582,13 @@ declare const routes: {
8383
9582
  accentForeground: string;
8384
9583
  };
8385
9584
  typography: {
8386
- header: {} & {
9585
+ link: {} & {
8387
9586
  [k: string]: unknown;
8388
9587
  };
8389
- text: {} & {
9588
+ header: {} & {
8390
9589
  [k: string]: unknown;
8391
9590
  };
8392
- link: {} & {
9591
+ text: {} & {
8393
9592
  [k: string]: unknown;
8394
9593
  };
8395
9594
  };
@@ -8488,13 +9687,13 @@ declare const routes: {
8488
9687
  accentForeground: string;
8489
9688
  };
8490
9689
  typography: {
8491
- header: {} & {
9690
+ link: {} & {
8492
9691
  [k: string]: unknown;
8493
9692
  };
8494
- text: {} & {
9693
+ header: {} & {
8495
9694
  [k: string]: unknown;
8496
9695
  };
8497
- link: {} & {
9696
+ text: {} & {
8498
9697
  [k: string]: unknown;
8499
9698
  };
8500
9699
  };
@@ -8594,13 +9793,13 @@ declare const routes: {
8594
9793
  accentForeground: string;
8595
9794
  };
8596
9795
  typography: {
8597
- header: {} & {
9796
+ link: {} & {
8598
9797
  [k: string]: unknown;
8599
9798
  };
8600
- text: {} & {
9799
+ header: {} & {
8601
9800
  [k: string]: unknown;
8602
9801
  };
8603
- link: {} & {
9802
+ text: {} & {
8604
9803
  [k: string]: unknown;
8605
9804
  };
8606
9805
  };
@@ -8690,7 +9889,6 @@ declare const routes: {
8690
9889
  } | undefined;
8691
9890
  title?: string | undefined;
8692
9891
  }>;
8693
- path: "/templates/:templateId";
8694
9892
  responses: {
8695
9893
  200: zod.ZodObject<{
8696
9894
  templateId: zod.ZodString;
@@ -8765,13 +9963,14 @@ declare const routes: {
8765
9963
  variables?: string[] | undefined;
8766
9964
  }>;
8767
9965
  };
9966
+ path: "/templates/:templateId";
8768
9967
  };
8769
9968
  duplicate: {
9969
+ summary: "Duplicate an email template";
8770
9970
  description: "Creates a new team-owned copy with the same immutable purpose as the source template.";
8771
9971
  metadata: {
8772
9972
  tag: string;
8773
9973
  };
8774
- summary: "Duplicate an email template";
8775
9974
  method: "POST";
8776
9975
  body: zod.ZodObject<{
8777
9976
  title: zod.ZodOptional<zod.ZodString>;
@@ -8780,7 +9979,6 @@ declare const routes: {
8780
9979
  }, {
8781
9980
  title?: string | undefined;
8782
9981
  }>;
8783
- path: "/templates/:templateId/duplicate";
8784
9982
  responses: {
8785
9983
  201: zod.ZodObject<{
8786
9984
  templateId: zod.ZodString;
@@ -8848,17 +10046,18 @@ declare const routes: {
8848
10046
  variables?: string[] | undefined;
8849
10047
  }>;
8850
10048
  };
10049
+ path: "/templates/:templateId/duplicate";
8851
10050
  };
8852
10051
  remove: {
10052
+ summary: "Delete an email template";
8853
10053
  metadata: {
8854
10054
  tag: string;
8855
10055
  };
8856
- summary: "Delete an email template";
8857
10056
  method: "DELETE";
8858
- path: "/templates/:templateId";
8859
10057
  responses: {
8860
10058
  204: typeof _ts_rest_core.ContractNoBody;
8861
10059
  };
10060
+ path: "/templates/:templateId";
8862
10061
  };
8863
10062
  };
8864
10063
  type EmailTemplate = Ok<typeof routes.get>;