@workwae/sdk 0.0.0-stage → 0.1.0-alpha.1

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.
Files changed (56) hide show
  1. package/README.md +233 -2
  2. package/client.d.ts +36 -0
  3. package/contract/accounts/models.d.ts +726 -0
  4. package/contract/accounts/routes.d.ts +1318 -0
  5. package/contract/ai/models.d.ts +30 -0
  6. package/contract/ai/routes.d.ts +89 -0
  7. package/contract/audit-log/models.d.ts +107 -0
  8. package/contract/audit-log/routes.d.ts +72 -0
  9. package/contract/calendar/models.d.ts +837 -0
  10. package/contract/calendar/routes.d.ts +1299 -0
  11. package/contract/connect/models.d.ts +272 -0
  12. package/contract/connect/routes.d.ts +531 -0
  13. package/contract/contacts/models.d.ts +269 -0
  14. package/contract/contacts/routes.d.ts +634 -0
  15. package/contract/errors.d.ts +108 -0
  16. package/contract/events/models.d.ts +2364 -0
  17. package/contract/events/routes.d.ts +107 -0
  18. package/contract/exports/models.d.ts +67 -0
  19. package/contract/exports/routes.d.ts +196 -0
  20. package/contract/identities/models.d.ts +100 -0
  21. package/contract/identities/routes.d.ts +249 -0
  22. package/contract/limits.d.ts +170 -0
  23. package/contract/mail/models.d.ts +528 -0
  24. package/contract/mail/routes.d.ts +749 -0
  25. package/contract/meetings/models.d.ts +232 -0
  26. package/contract/meetings/routes.d.ts +386 -0
  27. package/contract/oauth-apps/models.d.ts +92 -0
  28. package/contract/oauth-apps/routes.d.ts +187 -0
  29. package/contract/org-connections/models.d.ts +383 -0
  30. package/contract/org-connections/routes.d.ts +830 -0
  31. package/contract/primitives.d.ts +140 -0
  32. package/contract/public.d.ts +26 -0
  33. package/contract/reasons.d.ts +711 -0
  34. package/contract/router.d.ts +9773 -0
  35. package/contract/send/models.d.ts +750 -0
  36. package/contract/send/routes.d.ts +1239 -0
  37. package/contract/settings/models.d.ts +103 -0
  38. package/contract/settings/routes.d.ts +110 -0
  39. package/contract/suppressions/models.d.ts +231 -0
  40. package/contract/suppressions/routes.d.ts +317 -0
  41. package/contract/templates/models.d.ts +169 -0
  42. package/contract/templates/routes.d.ts +281 -0
  43. package/contract/threads/models.d.ts +117 -0
  44. package/contract/threads/routes.d.ts +336 -0
  45. package/contract/usage/models.d.ts +213 -0
  46. package/contract/usage/routes.d.ts +81 -0
  47. package/contract/webhooks/models.d.ts +879 -0
  48. package/contract/webhooks/routes.d.ts +839 -0
  49. package/contract/webhooks/signing.d.ts +35 -0
  50. package/errors.d.ts +15 -0
  51. package/index.d.ts +6 -0
  52. package/index.js +4334 -0
  53. package/index.js.map +59 -0
  54. package/package.json +45 -4
  55. package/pagination.d.ts +40 -0
  56. package/webhooks.d.ts +28 -0
@@ -0,0 +1,750 @@
1
+ import * as z from "zod";
2
+ export declare const AttachmentInput: z.ZodObject<{
3
+ filename: z.ZodString;
4
+ contentType: z.ZodString;
5
+ content: z.ZodBase64;
6
+ contentId: z.ZodOptional<z.ZodString>;
7
+ }, z.core.$strip>;
8
+ export type AttachmentInput = z.infer<typeof AttachmentInput>;
9
+ export declare const Compose: z.ZodObject<{
10
+ to: z.ZodDefault<z.ZodArray<z.ZodObject<{
11
+ name: z.ZodOptional<z.ZodString>;
12
+ address: z.ZodEmail;
13
+ }, z.core.$strip>>>;
14
+ cc: z.ZodDefault<z.ZodArray<z.ZodObject<{
15
+ name: z.ZodOptional<z.ZodString>;
16
+ address: z.ZodEmail;
17
+ }, z.core.$strip>>>;
18
+ bcc: z.ZodDefault<z.ZodArray<z.ZodObject<{
19
+ name: z.ZodOptional<z.ZodString>;
20
+ address: z.ZodEmail;
21
+ }, z.core.$strip>>>;
22
+ replyTo: z.ZodDefault<z.ZodArray<z.ZodObject<{
23
+ name: z.ZodOptional<z.ZodString>;
24
+ address: z.ZodEmail;
25
+ }, z.core.$strip>>>;
26
+ subject: z.ZodOptional<z.ZodString>;
27
+ text: z.ZodOptional<z.ZodString>;
28
+ html: z.ZodOptional<z.ZodString>;
29
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
30
+ filename: z.ZodString;
31
+ contentType: z.ZodString;
32
+ content: z.ZodBase64;
33
+ contentId: z.ZodOptional<z.ZodString>;
34
+ }, z.core.$strip>>>;
35
+ inReplyToMessageId: z.ZodOptional<z.ZodUUID>;
36
+ from: z.ZodOptional<z.ZodObject<{
37
+ name: z.ZodOptional<z.ZodString>;
38
+ address: z.ZodEmail;
39
+ }, z.core.$strip>>;
40
+ signature: z.ZodOptional<z.ZodBoolean>;
41
+ priority: z.ZodDefault<z.ZodEnum<{
42
+ normal: "normal";
43
+ high: "high";
44
+ low: "low";
45
+ }>>;
46
+ }, z.core.$strip>;
47
+ export type Compose = z.infer<typeof Compose>;
48
+ /** What composing with templates adds to a draft or a send. */
49
+ export declare const ComposeWithTemplate: z.ZodObject<{
50
+ to: z.ZodDefault<z.ZodArray<z.ZodObject<{
51
+ name: z.ZodOptional<z.ZodString>;
52
+ address: z.ZodEmail;
53
+ }, z.core.$strip>>>;
54
+ cc: z.ZodDefault<z.ZodArray<z.ZodObject<{
55
+ name: z.ZodOptional<z.ZodString>;
56
+ address: z.ZodEmail;
57
+ }, z.core.$strip>>>;
58
+ bcc: z.ZodDefault<z.ZodArray<z.ZodObject<{
59
+ name: z.ZodOptional<z.ZodString>;
60
+ address: z.ZodEmail;
61
+ }, z.core.$strip>>>;
62
+ replyTo: z.ZodDefault<z.ZodArray<z.ZodObject<{
63
+ name: z.ZodOptional<z.ZodString>;
64
+ address: z.ZodEmail;
65
+ }, z.core.$strip>>>;
66
+ subject: z.ZodOptional<z.ZodString>;
67
+ text: z.ZodOptional<z.ZodString>;
68
+ html: z.ZodOptional<z.ZodString>;
69
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
70
+ filename: z.ZodString;
71
+ contentType: z.ZodString;
72
+ content: z.ZodBase64;
73
+ contentId: z.ZodOptional<z.ZodString>;
74
+ }, z.core.$strip>>>;
75
+ inReplyToMessageId: z.ZodOptional<z.ZodUUID>;
76
+ from: z.ZodOptional<z.ZodObject<{
77
+ name: z.ZodOptional<z.ZodString>;
78
+ address: z.ZodEmail;
79
+ }, z.core.$strip>>;
80
+ signature: z.ZodOptional<z.ZodBoolean>;
81
+ priority: z.ZodDefault<z.ZodEnum<{
82
+ normal: "normal";
83
+ high: "high";
84
+ low: "low";
85
+ }>>;
86
+ template: z.ZodOptional<z.ZodUUID>;
87
+ render: z.ZodOptional<z.ZodObject<{
88
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
89
+ }, z.core.$strip>>;
90
+ previewText: z.ZodOptional<z.ZodString>;
91
+ format: z.ZodOptional<z.ZodEnum<{
92
+ markdown: "markdown";
93
+ html: "html";
94
+ }>>;
95
+ }, z.core.$strip>;
96
+ export type ComposeWithTemplate = z.infer<typeof ComposeWithTemplate>;
97
+ export declare const OutboxStatus: z.ZodEnum<{
98
+ failed: "failed";
99
+ cancelled: "cancelled";
100
+ sent: "sent";
101
+ queued: "queued";
102
+ sending: "sending";
103
+ }>;
104
+ export type OutboxStatus = z.infer<typeof OutboxStatus>;
105
+ export declare const OutboxEntry: z.ZodObject<{
106
+ id: z.ZodUUID;
107
+ accountId: z.ZodUUID;
108
+ status: z.ZodEnum<{
109
+ failed: "failed";
110
+ cancelled: "cancelled";
111
+ sent: "sent";
112
+ queued: "queued";
113
+ sending: "sending";
114
+ }>;
115
+ reference: z.ZodNullable<z.ZodString>;
116
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
117
+ attempt: z.ZodNumber;
118
+ lastError: z.ZodNullable<z.ZodString>;
119
+ providerMessageId: z.ZodNullable<z.ZodString>;
120
+ internetMessageId: z.ZodNullable<z.ZodString>;
121
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
122
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
123
+ trackOpens: z.ZodBoolean;
124
+ trackClicks: z.ZodBoolean;
125
+ trackHoneypot: z.ZodBoolean;
126
+ humanOpenCount: z.ZodNumber;
127
+ machineOpenCount: z.ZodNumber;
128
+ humanClickCount: z.ZodNumber;
129
+ machineClickCount: z.ZodNumber;
130
+ firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
131
+ lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
132
+ }, z.core.$strip>;
133
+ export type OutboxEntry = z.infer<typeof OutboxEntry>;
134
+ /** What queueing a send answers: the entry, and until when cancelling it undoes the send. */
135
+ export declare const QueuedSend: z.ZodObject<{
136
+ id: z.ZodUUID;
137
+ accountId: z.ZodUUID;
138
+ status: z.ZodEnum<{
139
+ failed: "failed";
140
+ cancelled: "cancelled";
141
+ sent: "sent";
142
+ queued: "queued";
143
+ sending: "sending";
144
+ }>;
145
+ reference: z.ZodNullable<z.ZodString>;
146
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
147
+ attempt: z.ZodNumber;
148
+ lastError: z.ZodNullable<z.ZodString>;
149
+ providerMessageId: z.ZodNullable<z.ZodString>;
150
+ internetMessageId: z.ZodNullable<z.ZodString>;
151
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
152
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
153
+ trackOpens: z.ZodBoolean;
154
+ trackClicks: z.ZodBoolean;
155
+ trackHoneypot: z.ZodBoolean;
156
+ humanOpenCount: z.ZodNumber;
157
+ machineOpenCount: z.ZodNumber;
158
+ humanClickCount: z.ZodNumber;
159
+ machineClickCount: z.ZodNumber;
160
+ firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
161
+ lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
162
+ undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
163
+ }, z.core.$strip>;
164
+ export type QueuedSend = z.infer<typeof QueuedSend>;
165
+ /** Per-send tracking; an omitted key follows the account's trackOpens / trackClicks /
166
+ * trackingHoneypot. `honeypot` only comes with click tracking: true with clicks off is refused. */
167
+ export declare const SendTracking: z.ZodObject<{
168
+ opens: z.ZodOptional<z.ZodBoolean>;
169
+ clicks: z.ZodOptional<z.ZodBoolean>;
170
+ honeypot: z.ZodOptional<z.ZodBoolean>;
171
+ }, z.core.$strip>;
172
+ export type SendTracking = z.infer<typeof SendTracking>;
173
+ /** How and when a send or draft-send goes out. */
174
+ export declare const SendOptions: z.ZodObject<{
175
+ sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
176
+ reference: z.ZodOptional<z.ZodString>;
177
+ tracking: z.ZodOptional<z.ZodObject<{
178
+ opens: z.ZodOptional<z.ZodBoolean>;
179
+ clicks: z.ZodOptional<z.ZodBoolean>;
180
+ honeypot: z.ZodOptional<z.ZodBoolean>;
181
+ }, z.core.$strip>>;
182
+ }, z.core.$strip>;
183
+ export type SendOptions = z.infer<typeof SendOptions>;
184
+ /** One recipient of a mail merge. Checked one by one, so a bad entry fails alone (see
185
+ * MailMergeResult); `to.address` and `messageId` are therefore not refused by the schema. */
186
+ export declare const MailMergeEntry: z.ZodObject<{
187
+ to: z.ZodObject<{
188
+ name: z.ZodOptional<z.ZodString>;
189
+ address: z.ZodString;
190
+ }, z.core.$strip>;
191
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
192
+ messageId: z.ZodOptional<z.ZodString>;
193
+ sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
194
+ }, z.core.$strip>;
195
+ export type MailMergeEntry = z.infer<typeof MailMergeEntry>;
196
+ export declare const SendMessageRequest: z.ZodObject<{
197
+ to: z.ZodDefault<z.ZodArray<z.ZodObject<{
198
+ name: z.ZodOptional<z.ZodString>;
199
+ address: z.ZodEmail;
200
+ }, z.core.$strip>>>;
201
+ cc: z.ZodDefault<z.ZodArray<z.ZodObject<{
202
+ name: z.ZodOptional<z.ZodString>;
203
+ address: z.ZodEmail;
204
+ }, z.core.$strip>>>;
205
+ bcc: z.ZodDefault<z.ZodArray<z.ZodObject<{
206
+ name: z.ZodOptional<z.ZodString>;
207
+ address: z.ZodEmail;
208
+ }, z.core.$strip>>>;
209
+ replyTo: z.ZodDefault<z.ZodArray<z.ZodObject<{
210
+ name: z.ZodOptional<z.ZodString>;
211
+ address: z.ZodEmail;
212
+ }, z.core.$strip>>>;
213
+ subject: z.ZodOptional<z.ZodString>;
214
+ text: z.ZodOptional<z.ZodString>;
215
+ html: z.ZodOptional<z.ZodString>;
216
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
217
+ filename: z.ZodString;
218
+ contentType: z.ZodString;
219
+ content: z.ZodBase64;
220
+ contentId: z.ZodOptional<z.ZodString>;
221
+ }, z.core.$strip>>>;
222
+ inReplyToMessageId: z.ZodOptional<z.ZodUUID>;
223
+ from: z.ZodOptional<z.ZodObject<{
224
+ name: z.ZodOptional<z.ZodString>;
225
+ address: z.ZodEmail;
226
+ }, z.core.$strip>>;
227
+ signature: z.ZodOptional<z.ZodBoolean>;
228
+ priority: z.ZodDefault<z.ZodEnum<{
229
+ normal: "normal";
230
+ high: "high";
231
+ low: "low";
232
+ }>>;
233
+ template: z.ZodOptional<z.ZodUUID>;
234
+ render: z.ZodOptional<z.ZodObject<{
235
+ params: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
236
+ }, z.core.$strip>>;
237
+ previewText: z.ZodOptional<z.ZodString>;
238
+ format: z.ZodOptional<z.ZodEnum<{
239
+ markdown: "markdown";
240
+ html: "html";
241
+ }>>;
242
+ sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
243
+ reference: z.ZodOptional<z.ZodString>;
244
+ tracking: z.ZodOptional<z.ZodObject<{
245
+ opens: z.ZodOptional<z.ZodBoolean>;
246
+ clicks: z.ZodOptional<z.ZodBoolean>;
247
+ honeypot: z.ZodOptional<z.ZodBoolean>;
248
+ }, z.core.$strip>>;
249
+ listId: z.ZodOptional<z.ZodString>;
250
+ }, z.core.$strip>;
251
+ export type SendMessageRequest = z.infer<typeof SendMessageRequest>;
252
+ /** The send body without to, cc, bcc and render: an unknown field is refused. */
253
+ export declare const MailMergeRequest: z.ZodObject<{
254
+ format: z.ZodOptional<z.ZodEnum<{
255
+ markdown: "markdown";
256
+ html: "html";
257
+ }>>;
258
+ text: z.ZodOptional<z.ZodString>;
259
+ from: z.ZodOptional<z.ZodObject<{
260
+ name: z.ZodOptional<z.ZodString>;
261
+ address: z.ZodEmail;
262
+ }, z.core.$strip>>;
263
+ subject: z.ZodOptional<z.ZodString>;
264
+ html: z.ZodOptional<z.ZodString>;
265
+ previewText: z.ZodOptional<z.ZodString>;
266
+ replyTo: z.ZodDefault<z.ZodArray<z.ZodObject<{
267
+ name: z.ZodOptional<z.ZodString>;
268
+ address: z.ZodEmail;
269
+ }, z.core.$strip>>>;
270
+ attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
271
+ filename: z.ZodString;
272
+ contentType: z.ZodString;
273
+ content: z.ZodBase64;
274
+ contentId: z.ZodOptional<z.ZodString>;
275
+ }, z.core.$strip>>>;
276
+ inReplyToMessageId: z.ZodOptional<z.ZodUUID>;
277
+ signature: z.ZodOptional<z.ZodBoolean>;
278
+ priority: z.ZodDefault<z.ZodEnum<{
279
+ normal: "normal";
280
+ high: "high";
281
+ low: "low";
282
+ }>>;
283
+ template: z.ZodOptional<z.ZodUUID>;
284
+ sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
285
+ reference: z.ZodOptional<z.ZodString>;
286
+ tracking: z.ZodOptional<z.ZodObject<{
287
+ opens: z.ZodOptional<z.ZodBoolean>;
288
+ clicks: z.ZodOptional<z.ZodBoolean>;
289
+ honeypot: z.ZodOptional<z.ZodBoolean>;
290
+ }, z.core.$strip>>;
291
+ entries: z.ZodArray<z.ZodObject<{
292
+ to: z.ZodObject<{
293
+ name: z.ZodOptional<z.ZodString>;
294
+ address: z.ZodString;
295
+ }, z.core.$strip>;
296
+ params: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
297
+ messageId: z.ZodOptional<z.ZodString>;
298
+ sendAt: z.ZodOptional<z.ZodPreprocess<z.ZodDate, string | Date>>;
299
+ }, z.core.$strip>>;
300
+ listId: z.ZodOptional<z.ZodString>;
301
+ }, z.core.$strict>;
302
+ export type MailMergeRequest = z.infer<typeof MailMergeRequest>;
303
+ export declare const MailMergeSuccess: z.ZodObject<{
304
+ success: z.ZodLiteral<true>;
305
+ to: z.ZodObject<{
306
+ name: z.ZodNullable<z.ZodString>;
307
+ address: z.ZodString;
308
+ }, z.core.$strip>;
309
+ outboxId: z.ZodUUID;
310
+ messageId: z.ZodString;
311
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
312
+ undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
313
+ }, z.core.$strip>;
314
+ export type MailMergeSuccess = z.infer<typeof MailMergeSuccess>;
315
+ export declare const MailMergeFailure: z.ZodObject<{
316
+ success: z.ZodLiteral<false>;
317
+ to: z.ZodObject<{
318
+ name: z.ZodNullable<z.ZodString>;
319
+ address: z.ZodString;
320
+ }, z.core.$strip>;
321
+ reason: z.ZodString;
322
+ error: z.ZodString;
323
+ status: z.ZodNumber;
324
+ }, z.core.$strip>;
325
+ export type MailMergeFailure = z.infer<typeof MailMergeFailure>;
326
+ export declare const MailMergeResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
327
+ success: z.ZodLiteral<true>;
328
+ to: z.ZodObject<{
329
+ name: z.ZodNullable<z.ZodString>;
330
+ address: z.ZodString;
331
+ }, z.core.$strip>;
332
+ outboxId: z.ZodUUID;
333
+ messageId: z.ZodString;
334
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
335
+ undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
336
+ }, z.core.$strip>, z.ZodObject<{
337
+ success: z.ZodLiteral<false>;
338
+ to: z.ZodObject<{
339
+ name: z.ZodNullable<z.ZodString>;
340
+ address: z.ZodString;
341
+ }, z.core.$strip>;
342
+ reason: z.ZodString;
343
+ error: z.ZodString;
344
+ status: z.ZodNumber;
345
+ }, z.core.$strip>], "success">;
346
+ export type MailMergeResult = z.infer<typeof MailMergeResult>;
347
+ /** What a mail merge answers: one result per entry, in the order given. */
348
+ export declare const MailMergeResultList: z.ZodObject<{
349
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
350
+ success: z.ZodLiteral<true>;
351
+ to: z.ZodObject<{
352
+ name: z.ZodNullable<z.ZodString>;
353
+ address: z.ZodString;
354
+ }, z.core.$strip>;
355
+ outboxId: z.ZodUUID;
356
+ messageId: z.ZodString;
357
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
358
+ undoUntil: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
359
+ }, z.core.$strip>, z.ZodObject<{
360
+ success: z.ZodLiteral<false>;
361
+ to: z.ZodObject<{
362
+ name: z.ZodNullable<z.ZodString>;
363
+ address: z.ZodString;
364
+ }, z.core.$strip>;
365
+ reason: z.ZodString;
366
+ error: z.ZodString;
367
+ status: z.ZodNumber;
368
+ }, z.core.$strip>], "success">>;
369
+ }, z.core.$strip>;
370
+ export type MailMergeResultList = z.infer<typeof MailMergeResultList>;
371
+ export declare const OutboxIdInput: z.ZodObject<{
372
+ accountId: z.ZodUUID;
373
+ outboxId: z.ZodUUID;
374
+ }, z.core.$strip>;
375
+ export type OutboxIdInput = z.infer<typeof OutboxIdInput>;
376
+ export declare const OutboxEntryPage: z.ZodObject<{
377
+ items: z.ZodArray<z.ZodObject<{
378
+ id: z.ZodUUID;
379
+ accountId: z.ZodUUID;
380
+ status: z.ZodEnum<{
381
+ failed: "failed";
382
+ cancelled: "cancelled";
383
+ sent: "sent";
384
+ queued: "queued";
385
+ sending: "sending";
386
+ }>;
387
+ reference: z.ZodNullable<z.ZodString>;
388
+ sendAt: z.ZodPreprocess<z.ZodDate, Date>;
389
+ attempt: z.ZodNumber;
390
+ lastError: z.ZodNullable<z.ZodString>;
391
+ providerMessageId: z.ZodNullable<z.ZodString>;
392
+ internetMessageId: z.ZodNullable<z.ZodString>;
393
+ sentAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
394
+ createdAt: z.ZodPreprocess<z.ZodDate, Date>;
395
+ trackOpens: z.ZodBoolean;
396
+ trackClicks: z.ZodBoolean;
397
+ trackHoneypot: z.ZodBoolean;
398
+ humanOpenCount: z.ZodNumber;
399
+ machineOpenCount: z.ZodNumber;
400
+ humanClickCount: z.ZodNumber;
401
+ machineClickCount: z.ZodNumber;
402
+ firstOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
403
+ lastOpenedAt: z.ZodNullable<z.ZodPreprocess<z.ZodDate, Date>>;
404
+ }, z.core.$strip>>;
405
+ nextCursor: z.ZodNullable<z.ZodString>;
406
+ }, z.core.$strip>;
407
+ export type OutboxEntryPage = z.infer<typeof OutboxEntryPage>;
408
+ export declare const ListOutboxQuery: z.ZodObject<{
409
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
410
+ cursor: z.ZodOptional<z.ZodString>;
411
+ status: z.ZodOptional<z.ZodEnum<{
412
+ failed: "failed";
413
+ cancelled: "cancelled";
414
+ sent: "sent";
415
+ queued: "queued";
416
+ sending: "sending";
417
+ }>>;
418
+ }, z.core.$strip>;
419
+ export type ListOutboxQuery = z.infer<typeof ListOutboxQuery>;
420
+ export declare const RescheduleSendRequest: z.ZodObject<{
421
+ sendAt: z.ZodPreprocess<z.ZodDate, string | Date>;
422
+ }, z.core.$strip>;
423
+ export type RescheduleSendRequest = z.infer<typeof RescheduleSendRequest>;
424
+ export declare const ListTrackingEventsQuery: z.ZodObject<{
425
+ limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
426
+ cursor: z.ZodOptional<z.ZodString>;
427
+ }, z.core.$strip>;
428
+ export type ListTrackingEventsQuery = z.infer<typeof ListTrackingEventsQuery>;
429
+ export declare const TrackingEventKind: z.ZodEnum<{
430
+ open: "open";
431
+ click: "click";
432
+ }>;
433
+ export type TrackingEventKind = z.infer<typeof TrackingEventKind>;
434
+ /** Who is behind a hit. proxy: fetches for a person who opened the message (Gmail's image
435
+ * proxy); prefetch: fetches whether or not anyone reads it (Apple Mail Privacy Protection);
436
+ * scanner: a security gateway or bot; unknown: some signal against a person, not enough to say. */
437
+ export declare const TrackingActor: z.ZodEnum<{
438
+ unknown: "unknown";
439
+ human: "human";
440
+ proxy: "proxy";
441
+ prefetch: "prefetch";
442
+ scanner: "scanner";
443
+ }>;
444
+ export type TrackingActor = z.infer<typeof TrackingActor>;
445
+ /** The mail client behind a hit, from its user agent, the Referer / Origin host it came from and
446
+ * the fingerprint rules it matched. gmail_proxy: Gmail's image proxy (the reader's own device is
447
+ * hidden); apple_mail_privacy: Apple Mail loading through Mail Privacy Protection's relay;
448
+ * webmail: a self-hosted webmail (Roundcube, SOGo, Horde, a webmail.* host). */
449
+ export declare const TrackingClient: z.ZodEnum<{
450
+ unknown: "unknown";
451
+ gmail_proxy: "gmail_proxy";
452
+ gmail_web: "gmail_web";
453
+ gmail_app: "gmail_app";
454
+ outlook_web: "outlook_web";
455
+ outlook_desktop: "outlook_desktop";
456
+ outlook_mobile: "outlook_mobile";
457
+ apple_mail: "apple_mail";
458
+ apple_mail_privacy: "apple_mail_privacy";
459
+ yahoo: "yahoo";
460
+ aol: "aol";
461
+ thunderbird: "thunderbird";
462
+ proton: "proton";
463
+ fastmail: "fastmail";
464
+ zoho: "zoho";
465
+ icloud_web: "icloud_web";
466
+ webmail: "webmail";
467
+ }>;
468
+ export type TrackingClient = z.infer<typeof TrackingClient>;
469
+ export declare const TrackingDevice: z.ZodEnum<{
470
+ unknown: "unknown";
471
+ mobile: "mobile";
472
+ desktop: "desktop";
473
+ tablet: "tablet";
474
+ bot: "bot";
475
+ }>;
476
+ export type TrackingDevice = z.infer<typeof TrackingDevice>;
477
+ export declare const TrackingOs: z.ZodEnum<{
478
+ windows: "windows";
479
+ macos: "macos";
480
+ ios: "ios";
481
+ ipados: "ipados";
482
+ android: "android";
483
+ linux: "linux";
484
+ chromeos: "chromeos";
485
+ }>;
486
+ export type TrackingOs = z.infer<typeof TrackingOs>;
487
+ export declare const TrackingBrowser: z.ZodEnum<{
488
+ chrome: "chrome";
489
+ edge: "edge";
490
+ firefox: "firefox";
491
+ safari: "safari";
492
+ opera: "opera";
493
+ samsung: "samsung";
494
+ }>;
495
+ export type TrackingBrowser = z.infer<typeof TrackingBrowser>;
496
+ /** Fetch metadata the browser sent (sec-fetch-*), lower-cased; null where absent. */
497
+ export declare const TrackingSecFetch: z.ZodObject<{
498
+ dest: z.ZodNullable<z.ZodString>;
499
+ mode: z.ZodNullable<z.ZodString>;
500
+ site: z.ZodNullable<z.ZodString>;
501
+ user: z.ZodNullable<z.ZodBoolean>;
502
+ }, z.core.$strip>;
503
+ export type TrackingSecFetch = z.infer<typeof TrackingSecFetch>;
504
+ /** What a hit's request showed, derived when it was recorded; carried by the list API and by
505
+ * message.opened / message.clicked. */
506
+ export declare const TrackingSignals: z.ZodObject<{
507
+ method: z.ZodString;
508
+ refererHost: z.ZodNullable<z.ZodString>;
509
+ originHost: z.ZodNullable<z.ZodString>;
510
+ client: z.ZodEnum<{
511
+ unknown: "unknown";
512
+ gmail_proxy: "gmail_proxy";
513
+ gmail_web: "gmail_web";
514
+ gmail_app: "gmail_app";
515
+ outlook_web: "outlook_web";
516
+ outlook_desktop: "outlook_desktop";
517
+ outlook_mobile: "outlook_mobile";
518
+ apple_mail: "apple_mail";
519
+ apple_mail_privacy: "apple_mail_privacy";
520
+ yahoo: "yahoo";
521
+ aol: "aol";
522
+ thunderbird: "thunderbird";
523
+ proton: "proton";
524
+ fastmail: "fastmail";
525
+ zoho: "zoho";
526
+ icloud_web: "icloud_web";
527
+ webmail: "webmail";
528
+ }>;
529
+ device: z.ZodEnum<{
530
+ unknown: "unknown";
531
+ mobile: "mobile";
532
+ desktop: "desktop";
533
+ tablet: "tablet";
534
+ bot: "bot";
535
+ }>;
536
+ os: z.ZodNullable<z.ZodEnum<{
537
+ windows: "windows";
538
+ macos: "macos";
539
+ ios: "ios";
540
+ ipados: "ipados";
541
+ android: "android";
542
+ linux: "linux";
543
+ chromeos: "chromeos";
544
+ }>>;
545
+ browser: z.ZodNullable<z.ZodEnum<{
546
+ chrome: "chrome";
547
+ edge: "edge";
548
+ firefox: "firefox";
549
+ safari: "safari";
550
+ opera: "opera";
551
+ samsung: "samsung";
552
+ }>>;
553
+ country: z.ZodNullable<z.ZodString>;
554
+ region: z.ZodNullable<z.ZodString>;
555
+ city: z.ZodNullable<z.ZodString>;
556
+ timezone: z.ZodNullable<z.ZodString>;
557
+ latitude: z.ZodNullable<z.ZodNumber>;
558
+ longitude: z.ZodNullable<z.ZodNumber>;
559
+ secondsAfterSend: z.ZodNullable<z.ZodNumber>;
560
+ secondsSincePrevious: z.ZodNullable<z.ZodNumber>;
561
+ sequence: z.ZodNumber;
562
+ isConditional: z.ZodBoolean;
563
+ isRange: z.ZodBoolean;
564
+ isPrefetch: z.ZodBoolean;
565
+ secFetch: z.ZodObject<{
566
+ dest: z.ZodNullable<z.ZodString>;
567
+ mode: z.ZodNullable<z.ZodString>;
568
+ site: z.ZodNullable<z.ZodString>;
569
+ user: z.ZodNullable<z.ZodBoolean>;
570
+ }, z.core.$strip>;
571
+ }, z.core.$strip>;
572
+ export type TrackingSignals = z.infer<typeof TrackingSignals>;
573
+ /** One pixel load or link follow of a tracked send. */
574
+ export declare const TrackingEvent: z.ZodObject<{
575
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
576
+ method: z.ZodString;
577
+ refererHost: z.ZodNullable<z.ZodString>;
578
+ originHost: z.ZodNullable<z.ZodString>;
579
+ client: z.ZodEnum<{
580
+ unknown: "unknown";
581
+ gmail_proxy: "gmail_proxy";
582
+ gmail_web: "gmail_web";
583
+ gmail_app: "gmail_app";
584
+ outlook_web: "outlook_web";
585
+ outlook_desktop: "outlook_desktop";
586
+ outlook_mobile: "outlook_mobile";
587
+ apple_mail: "apple_mail";
588
+ apple_mail_privacy: "apple_mail_privacy";
589
+ yahoo: "yahoo";
590
+ aol: "aol";
591
+ thunderbird: "thunderbird";
592
+ proton: "proton";
593
+ fastmail: "fastmail";
594
+ zoho: "zoho";
595
+ icloud_web: "icloud_web";
596
+ webmail: "webmail";
597
+ }>;
598
+ device: z.ZodEnum<{
599
+ unknown: "unknown";
600
+ mobile: "mobile";
601
+ desktop: "desktop";
602
+ tablet: "tablet";
603
+ bot: "bot";
604
+ }>;
605
+ os: z.ZodNullable<z.ZodEnum<{
606
+ windows: "windows";
607
+ macos: "macos";
608
+ ios: "ios";
609
+ ipados: "ipados";
610
+ android: "android";
611
+ linux: "linux";
612
+ chromeos: "chromeos";
613
+ }>>;
614
+ browser: z.ZodNullable<z.ZodEnum<{
615
+ chrome: "chrome";
616
+ edge: "edge";
617
+ firefox: "firefox";
618
+ safari: "safari";
619
+ opera: "opera";
620
+ samsung: "samsung";
621
+ }>>;
622
+ country: z.ZodNullable<z.ZodString>;
623
+ region: z.ZodNullable<z.ZodString>;
624
+ city: z.ZodNullable<z.ZodString>;
625
+ timezone: z.ZodNullable<z.ZodString>;
626
+ latitude: z.ZodNullable<z.ZodNumber>;
627
+ longitude: z.ZodNullable<z.ZodNumber>;
628
+ secondsAfterSend: z.ZodNullable<z.ZodNumber>;
629
+ secondsSincePrevious: z.ZodNullable<z.ZodNumber>;
630
+ sequence: z.ZodNumber;
631
+ isConditional: z.ZodBoolean;
632
+ isRange: z.ZodBoolean;
633
+ isPrefetch: z.ZodBoolean;
634
+ secFetch: z.ZodObject<{
635
+ dest: z.ZodNullable<z.ZodString>;
636
+ mode: z.ZodNullable<z.ZodString>;
637
+ site: z.ZodNullable<z.ZodString>;
638
+ user: z.ZodNullable<z.ZodBoolean>;
639
+ }, z.core.$strip>;
640
+ id: z.ZodUUID;
641
+ kind: z.ZodEnum<{
642
+ open: "open";
643
+ click: "click";
644
+ }>;
645
+ linkIndex: z.ZodNullable<z.ZodNumber>;
646
+ url: z.ZodNullable<z.ZodString>;
647
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
648
+ userAgent: z.ZodNullable<z.ZodString>;
649
+ ip: z.ZodNullable<z.ZodString>;
650
+ actor: z.ZodEnum<{
651
+ unknown: "unknown";
652
+ human: "human";
653
+ proxy: "proxy";
654
+ prefetch: "prefetch";
655
+ scanner: "scanner";
656
+ }>;
657
+ reasons: z.ZodArray<z.ZodString>;
658
+ isMachine: z.ZodBoolean;
659
+ }, z.core.$strip>;
660
+ export type TrackingEvent = z.infer<typeof TrackingEvent>;
661
+ export declare const TrackingEventPage: z.ZodObject<{
662
+ items: z.ZodArray<z.ZodObject<{
663
+ headers: z.ZodRecord<z.ZodString, z.ZodString>;
664
+ method: z.ZodString;
665
+ refererHost: z.ZodNullable<z.ZodString>;
666
+ originHost: z.ZodNullable<z.ZodString>;
667
+ client: z.ZodEnum<{
668
+ unknown: "unknown";
669
+ gmail_proxy: "gmail_proxy";
670
+ gmail_web: "gmail_web";
671
+ gmail_app: "gmail_app";
672
+ outlook_web: "outlook_web";
673
+ outlook_desktop: "outlook_desktop";
674
+ outlook_mobile: "outlook_mobile";
675
+ apple_mail: "apple_mail";
676
+ apple_mail_privacy: "apple_mail_privacy";
677
+ yahoo: "yahoo";
678
+ aol: "aol";
679
+ thunderbird: "thunderbird";
680
+ proton: "proton";
681
+ fastmail: "fastmail";
682
+ zoho: "zoho";
683
+ icloud_web: "icloud_web";
684
+ webmail: "webmail";
685
+ }>;
686
+ device: z.ZodEnum<{
687
+ unknown: "unknown";
688
+ mobile: "mobile";
689
+ desktop: "desktop";
690
+ tablet: "tablet";
691
+ bot: "bot";
692
+ }>;
693
+ os: z.ZodNullable<z.ZodEnum<{
694
+ windows: "windows";
695
+ macos: "macos";
696
+ ios: "ios";
697
+ ipados: "ipados";
698
+ android: "android";
699
+ linux: "linux";
700
+ chromeos: "chromeos";
701
+ }>>;
702
+ browser: z.ZodNullable<z.ZodEnum<{
703
+ chrome: "chrome";
704
+ edge: "edge";
705
+ firefox: "firefox";
706
+ safari: "safari";
707
+ opera: "opera";
708
+ samsung: "samsung";
709
+ }>>;
710
+ country: z.ZodNullable<z.ZodString>;
711
+ region: z.ZodNullable<z.ZodString>;
712
+ city: z.ZodNullable<z.ZodString>;
713
+ timezone: z.ZodNullable<z.ZodString>;
714
+ latitude: z.ZodNullable<z.ZodNumber>;
715
+ longitude: z.ZodNullable<z.ZodNumber>;
716
+ secondsAfterSend: z.ZodNullable<z.ZodNumber>;
717
+ secondsSincePrevious: z.ZodNullable<z.ZodNumber>;
718
+ sequence: z.ZodNumber;
719
+ isConditional: z.ZodBoolean;
720
+ isRange: z.ZodBoolean;
721
+ isPrefetch: z.ZodBoolean;
722
+ secFetch: z.ZodObject<{
723
+ dest: z.ZodNullable<z.ZodString>;
724
+ mode: z.ZodNullable<z.ZodString>;
725
+ site: z.ZodNullable<z.ZodString>;
726
+ user: z.ZodNullable<z.ZodBoolean>;
727
+ }, z.core.$strip>;
728
+ id: z.ZodUUID;
729
+ kind: z.ZodEnum<{
730
+ open: "open";
731
+ click: "click";
732
+ }>;
733
+ linkIndex: z.ZodNullable<z.ZodNumber>;
734
+ url: z.ZodNullable<z.ZodString>;
735
+ occurredAt: z.ZodPreprocess<z.ZodDate, Date>;
736
+ userAgent: z.ZodNullable<z.ZodString>;
737
+ ip: z.ZodNullable<z.ZodString>;
738
+ actor: z.ZodEnum<{
739
+ unknown: "unknown";
740
+ human: "human";
741
+ proxy: "proxy";
742
+ prefetch: "prefetch";
743
+ scanner: "scanner";
744
+ }>;
745
+ reasons: z.ZodArray<z.ZodString>;
746
+ isMachine: z.ZodBoolean;
747
+ }, z.core.$strip>>;
748
+ nextCursor: z.ZodNullable<z.ZodString>;
749
+ }, z.core.$strip>;
750
+ export type TrackingEventPage = z.infer<typeof TrackingEventPage>;