@earendil-works/mailhook 0.1.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.
@@ -0,0 +1,975 @@
1
+ /**
2
+ * This file is auto-generated. Do not edit manually.
3
+ */
4
+ export interface Pagination<T> {
5
+ items: T[];
6
+ next?: string | null;
7
+ prev?: string | null;
8
+ }
9
+ export interface DNSRecord {
10
+ type: string;
11
+ name: string;
12
+ value: string;
13
+ ttl?: number;
14
+ priority?: number;
15
+ purpose: string;
16
+ required: boolean;
17
+ description?: string;
18
+ }
19
+ export declare class DNSRecord {
20
+ type: string;
21
+ name: string;
22
+ value: string;
23
+ ttl?: number;
24
+ priority?: number;
25
+ purpose: string;
26
+ required: boolean;
27
+ description?: string;
28
+ constructor(data: Partial<DNSRecord>);
29
+ static fromApiDict(data: any): DNSRecord;
30
+ toApiDict(): Record<string, any>;
31
+ }
32
+ export interface ErrorResponse {
33
+ error: Record<string, any>;
34
+ }
35
+ export declare class ErrorResponse {
36
+ error: Record<string, any>;
37
+ constructor(data: Partial<ErrorResponse>);
38
+ static fromApiDict(data: any): ErrorResponse;
39
+ toApiDict(): Record<string, any>;
40
+ }
41
+ export interface Tenant {
42
+ id: string;
43
+ name: string;
44
+ createdAt: Date;
45
+ updatedAt: Date;
46
+ }
47
+ export declare class Tenant {
48
+ id: string;
49
+ name: string;
50
+ createdAt: Date;
51
+ updatedAt: Date;
52
+ constructor(data: Partial<Tenant>);
53
+ static fromApiDict(data: any): Tenant;
54
+ toApiDict(): Record<string, any>;
55
+ }
56
+ export interface TenantCreateRequest {
57
+ name: string;
58
+ }
59
+ export declare class TenantCreateRequest {
60
+ name: string;
61
+ constructor(data: Partial<TenantCreateRequest>);
62
+ static fromApiDict(data: any): TenantCreateRequest;
63
+ toApiDict(): Record<string, any>;
64
+ }
65
+ export interface TenantUpdateRequest {
66
+ name?: string;
67
+ }
68
+ export declare class TenantUpdateRequest {
69
+ name?: string;
70
+ constructor(data: Partial<TenantUpdateRequest>);
71
+ static fromApiDict(data: any): TenantUpdateRequest;
72
+ toApiDict(): Record<string, any>;
73
+ }
74
+ export interface WebhookScheduledDelivery {
75
+ id: string;
76
+ webhookId: string;
77
+ tenantId: string;
78
+ emailId: string;
79
+ payload?: Record<string, any>;
80
+ status: string;
81
+ attempts: number;
82
+ lastAttempt?: Date;
83
+ nextRetry: Date;
84
+ createdAt: Date;
85
+ }
86
+ export declare class WebhookScheduledDelivery {
87
+ id: string;
88
+ webhookId: string;
89
+ tenantId: string;
90
+ emailId: string;
91
+ payload?: Record<string, any>;
92
+ status: string;
93
+ attempts: number;
94
+ lastAttempt?: Date;
95
+ nextRetry: Date;
96
+ createdAt: Date;
97
+ constructor(data: Partial<WebhookScheduledDelivery>);
98
+ static fromApiDict(data: any): WebhookScheduledDelivery;
99
+ toApiDict(): Record<string, any>;
100
+ }
101
+ export interface WebhookDeliveryAttempt {
102
+ id: string;
103
+ deliveryId: string;
104
+ webhookId: string;
105
+ tenantId: string;
106
+ attemptNumber: number;
107
+ status: string;
108
+ responseStatus?: number;
109
+ responseBody?: string;
110
+ payload?: Record<string, any>;
111
+ responseTruncated: boolean;
112
+ errorMessage?: string;
113
+ durationMs?: number;
114
+ createdAt: Date;
115
+ }
116
+ export declare class WebhookDeliveryAttempt {
117
+ id: string;
118
+ deliveryId: string;
119
+ webhookId: string;
120
+ tenantId: string;
121
+ attemptNumber: number;
122
+ status: string;
123
+ responseStatus?: number;
124
+ responseBody?: string;
125
+ payload?: Record<string, any>;
126
+ responseTruncated: boolean;
127
+ errorMessage?: string;
128
+ durationMs?: number;
129
+ createdAt: Date;
130
+ constructor(data: Partial<WebhookDeliveryAttempt>);
131
+ static fromApiDict(data: any): WebhookDeliveryAttempt;
132
+ toApiDict(): Record<string, any>;
133
+ }
134
+ export interface WebhookRedeliverRequest {
135
+ webhookId?: string;
136
+ }
137
+ export declare class WebhookRedeliverRequest {
138
+ webhookId?: string;
139
+ constructor(data: Partial<WebhookRedeliverRequest>);
140
+ static fromApiDict(data: any): WebhookRedeliverRequest;
141
+ toApiDict(): Record<string, any>;
142
+ }
143
+ export interface DeliveryEvent {
144
+ id: string;
145
+ createdAt: Date;
146
+ type?: string;
147
+ timestamp?: Date;
148
+ }
149
+ export declare class DeliveryEvent {
150
+ id: string;
151
+ createdAt: Date;
152
+ type?: string;
153
+ timestamp?: Date;
154
+ constructor(data: Partial<DeliveryEvent>);
155
+ static fromApiDict(data: any): DeliveryEvent;
156
+ toApiDict(): Record<string, any>;
157
+ }
158
+ export interface Domain {
159
+ id: string;
160
+ tenantId: string;
161
+ parentDomainId?: string;
162
+ label: string;
163
+ domain: string;
164
+ unicodeDomain: string;
165
+ isWildcard: boolean;
166
+ active: boolean;
167
+ verificationStatus?: string;
168
+ verificationMethod?: string;
169
+ verifiedAt?: Date;
170
+ dnsRecords: DNSRecord[];
171
+ dmarcEnforcement?: string;
172
+ subaddressing?: string;
173
+ createdAt: Date;
174
+ updatedAt: Date;
175
+ }
176
+ export declare class Domain {
177
+ id: string;
178
+ tenantId: string;
179
+ parentDomainId?: string;
180
+ label: string;
181
+ domain: string;
182
+ unicodeDomain: string;
183
+ isWildcard: boolean;
184
+ active: boolean;
185
+ verificationStatus?: string;
186
+ verificationMethod?: string;
187
+ verifiedAt?: Date;
188
+ dnsRecords: DNSRecord[];
189
+ dmarcEnforcement?: string;
190
+ subaddressing?: string;
191
+ createdAt: Date;
192
+ updatedAt: Date;
193
+ constructor(data: Partial<Domain>);
194
+ static fromApiDict(data: any): Domain;
195
+ toApiDict(): Record<string, any>;
196
+ }
197
+ export interface DomainInput {
198
+ domain?: string;
199
+ parent?: string;
200
+ label?: string;
201
+ isWildcard?: boolean;
202
+ active?: boolean;
203
+ dmarcEnforcement?: string;
204
+ subaddressing?: string;
205
+ }
206
+ export declare class DomainInput {
207
+ domain?: string;
208
+ parent?: string;
209
+ label?: string;
210
+ isWildcard?: boolean;
211
+ active?: boolean;
212
+ dmarcEnforcement?: string;
213
+ subaddressing?: string;
214
+ constructor(data: Partial<DomainInput>);
215
+ static fromApiDict(data: any): DomainInput;
216
+ toApiDict(): Record<string, any>;
217
+ }
218
+ export interface MailboxInput {
219
+ localPart: string;
220
+ extraAliases: string[];
221
+ active?: boolean;
222
+ senderName?: string;
223
+ spamPolicy?: string;
224
+ inboundPolicy?: string;
225
+ dmarcEnforcement?: string;
226
+ subaddressing?: string;
227
+ setAllow: string[];
228
+ addAllow: string[];
229
+ removeAllow: string[];
230
+ setDeny: string[];
231
+ addDeny: string[];
232
+ removeDeny: string[];
233
+ }
234
+ export declare class MailboxInput {
235
+ localPart: string;
236
+ extraAliases: string[];
237
+ active?: boolean;
238
+ senderName?: string;
239
+ spamPolicy?: string;
240
+ inboundPolicy?: string;
241
+ dmarcEnforcement?: string;
242
+ subaddressing?: string;
243
+ setAllow: string[];
244
+ addAllow: string[];
245
+ removeAllow: string[];
246
+ setDeny: string[];
247
+ addDeny: string[];
248
+ removeDeny: string[];
249
+ constructor(data: Partial<MailboxInput>);
250
+ static fromApiDict(data: any): MailboxInput;
251
+ toApiDict(): Record<string, any>;
252
+ }
253
+ export interface MailboxMoveInput {
254
+ targetDomainOrId: string;
255
+ newLocalPart?: string;
256
+ }
257
+ export declare class MailboxMoveInput {
258
+ targetDomainOrId: string;
259
+ newLocalPart?: string;
260
+ constructor(data: Partial<MailboxMoveInput>);
261
+ static fromApiDict(data: any): MailboxMoveInput;
262
+ toApiDict(): Record<string, any>;
263
+ }
264
+ export interface APIKey {
265
+ id: string;
266
+ tenantId?: string;
267
+ secret?: string;
268
+ truncatedSecret?: string;
269
+ keyType: string;
270
+ note?: string;
271
+ expiresAt?: Date;
272
+ createdAt: Date;
273
+ }
274
+ export declare class APIKey {
275
+ id: string;
276
+ tenantId?: string;
277
+ secret?: string;
278
+ truncatedSecret?: string;
279
+ keyType: string;
280
+ note?: string;
281
+ expiresAt?: Date;
282
+ createdAt: Date;
283
+ constructor(data: Partial<APIKey>);
284
+ static fromApiDict(data: any): APIKey;
285
+ toApiDict(): Record<string, any>;
286
+ }
287
+ export interface APIKeyInput {
288
+ note?: string;
289
+ expiresAt?: Date;
290
+ }
291
+ export declare class APIKeyInput {
292
+ note?: string;
293
+ expiresAt?: Date;
294
+ constructor(data: Partial<APIKeyInput>);
295
+ static fromApiDict(data: any): APIKeyInput;
296
+ toApiDict(): Record<string, any>;
297
+ }
298
+ export interface WebhookFilters {
299
+ eventTypes: string[];
300
+ mailboxes: string[];
301
+ domains: string[];
302
+ includeSubdomains?: boolean;
303
+ }
304
+ export declare class WebhookFilters {
305
+ eventTypes: string[];
306
+ mailboxes: string[];
307
+ domains: string[];
308
+ includeSubdomains?: boolean;
309
+ constructor(data: Partial<WebhookFilters>);
310
+ static fromApiDict(data: any): WebhookFilters;
311
+ toApiDict(): Record<string, any>;
312
+ }
313
+ export interface WebhookInput {
314
+ id?: string;
315
+ url?: string;
316
+ secret?: string;
317
+ active?: boolean;
318
+ ephemeral?: boolean;
319
+ filters?: WebhookFilters;
320
+ }
321
+ export declare class WebhookInput {
322
+ id?: string;
323
+ url?: string;
324
+ secret?: string;
325
+ active?: boolean;
326
+ ephemeral?: boolean;
327
+ filters?: WebhookFilters;
328
+ constructor(data: Partial<WebhookInput>);
329
+ static fromApiDict(data: any): WebhookInput;
330
+ toApiDict(): Record<string, any>;
331
+ }
332
+ export interface IncludedLabels {
333
+ labels?: Record<string, any>;
334
+ }
335
+ export declare class IncludedLabels {
336
+ labels?: Record<string, any>;
337
+ constructor(data: Partial<IncludedLabels>);
338
+ static fromApiDict(data: any): IncludedLabels;
339
+ toApiDict(): Record<string, any>;
340
+ }
341
+ export interface Webhook {
342
+ id: string;
343
+ tenantId: string;
344
+ url: string;
345
+ secret: string;
346
+ active: boolean;
347
+ ephemeral: boolean;
348
+ filters?: WebhookFilters;
349
+ included?: IncludedLabels;
350
+ createdAt: Date;
351
+ lastActivityAt?: Date;
352
+ }
353
+ export declare class Webhook {
354
+ id: string;
355
+ tenantId: string;
356
+ url: string;
357
+ secret: string;
358
+ active: boolean;
359
+ ephemeral: boolean;
360
+ filters?: WebhookFilters;
361
+ included?: IncludedLabels;
362
+ createdAt: Date;
363
+ lastActivityAt?: Date;
364
+ constructor(data: Partial<Webhook>);
365
+ static fromApiDict(data: any): Webhook;
366
+ toApiDict(): Record<string, any>;
367
+ }
368
+ export interface SuppressedRecipient {
369
+ tenantId: string;
370
+ email: string;
371
+ reason: string;
372
+ status: string;
373
+ bounceType?: string;
374
+ complaintFeedbackType?: string;
375
+ details?: Record<string, any>;
376
+ firstSeenAt: Date;
377
+ lastSeenAt: Date;
378
+ }
379
+ export declare class SuppressedRecipient {
380
+ tenantId: string;
381
+ email: string;
382
+ reason: string;
383
+ status: string;
384
+ bounceType?: string;
385
+ complaintFeedbackType?: string;
386
+ details?: Record<string, any>;
387
+ firstSeenAt: Date;
388
+ lastSeenAt: Date;
389
+ constructor(data: Partial<SuppressedRecipient>);
390
+ static fromApiDict(data: any): SuppressedRecipient;
391
+ toApiDict(): Record<string, any>;
392
+ }
393
+ export interface SuppressionsUpdateInput {
394
+ set: string[];
395
+ add: string[];
396
+ remove: string[];
397
+ }
398
+ export declare class SuppressionsUpdateInput {
399
+ set: string[];
400
+ add: string[];
401
+ remove: string[];
402
+ constructor(data: Partial<SuppressionsUpdateInput>);
403
+ static fromApiDict(data: any): SuppressionsUpdateInput;
404
+ toApiDict(): Record<string, any>;
405
+ }
406
+ export interface PaginatedSuppressionsResponse {
407
+ items: SuppressedRecipient[];
408
+ next?: string;
409
+ prev?: string;
410
+ }
411
+ export declare class PaginatedSuppressionsResponse {
412
+ items: SuppressedRecipient[];
413
+ next?: string;
414
+ prev?: string;
415
+ constructor(data: Partial<PaginatedSuppressionsResponse>);
416
+ static fromApiDict(data: any): PaginatedSuppressionsResponse;
417
+ toApiDict(): Record<string, any>;
418
+ }
419
+ export interface EmailAddress {
420
+ addr: string;
421
+ name?: string;
422
+ }
423
+ export declare class EmailAddress {
424
+ addr: string;
425
+ name?: string;
426
+ constructor(data: Partial<EmailAddress>);
427
+ static fromApiDict(data: any): EmailAddress;
428
+ toApiDict(): Record<string, any>;
429
+ }
430
+ export interface Attachment {
431
+ id: string;
432
+ filename: string;
433
+ contentType: string;
434
+ charset?: string;
435
+ size: number;
436
+ url?: string;
437
+ contentId?: string;
438
+ inline: boolean;
439
+ customSummary: string;
440
+ }
441
+ export declare class Attachment {
442
+ id: string;
443
+ filename: string;
444
+ contentType: string;
445
+ charset?: string;
446
+ size: number;
447
+ url?: string;
448
+ contentId?: string;
449
+ inline: boolean;
450
+ customSummary: string;
451
+ constructor(data: Partial<Attachment>);
452
+ static fromApiDict(data: any): Attachment;
453
+ toApiDict(): Record<string, any>;
454
+ }
455
+ export type EmailVerdictStatus = 'ok' | 'fail' | 'unknown' | 'failure';
456
+ export interface EmailVerdicts {
457
+ junk: EmailVerdictStatus;
458
+ virus: EmailVerdictStatus;
459
+ spf: EmailVerdictStatus;
460
+ dkim: EmailVerdictStatus;
461
+ dmarc: EmailVerdictStatus;
462
+ tls: EmailVerdictStatus;
463
+ }
464
+ export declare class EmailVerdicts {
465
+ junk: EmailVerdictStatus;
466
+ virus: EmailVerdictStatus;
467
+ spf: EmailVerdictStatus;
468
+ dkim: EmailVerdictStatus;
469
+ dmarc: EmailVerdictStatus;
470
+ tls: EmailVerdictStatus;
471
+ constructor(data: Partial<EmailVerdicts>);
472
+ static fromApiDict(data: any): EmailVerdicts;
473
+ toApiDict(): Record<string, any>;
474
+ }
475
+ export interface UserData {
476
+ }
477
+ export declare class UserData {
478
+ constructor(_data: Partial<UserData>);
479
+ static fromApiDict(_data: any): UserData;
480
+ toApiDict(): Record<string, any>;
481
+ }
482
+ export interface Email {
483
+ id: string;
484
+ mailboxId: string;
485
+ threadId?: string;
486
+ messageId: string;
487
+ from: EmailAddress;
488
+ to: EmailAddress[];
489
+ cc: EmailAddress[];
490
+ bcc: EmailAddress[];
491
+ subject?: string;
492
+ text?: string;
493
+ html?: string;
494
+ originalText?: string;
495
+ originalHtml?: string;
496
+ headers: any[];
497
+ attachments: Attachment[];
498
+ customSummary: string;
499
+ labels: string[];
500
+ verdicts?: EmailVerdicts;
501
+ userData?: UserData;
502
+ receivedAt: Date;
503
+ }
504
+ export declare class Email {
505
+ id: string;
506
+ mailboxId: string;
507
+ threadId?: string;
508
+ messageId: string;
509
+ from: EmailAddress;
510
+ to: EmailAddress[];
511
+ cc: EmailAddress[];
512
+ bcc: EmailAddress[];
513
+ subject?: string;
514
+ text?: string;
515
+ html?: string;
516
+ originalText?: string;
517
+ originalHtml?: string;
518
+ headers: any[];
519
+ attachments: Attachment[];
520
+ customSummary: string;
521
+ labels: string[];
522
+ verdicts?: EmailVerdicts;
523
+ userData?: UserData;
524
+ receivedAt: Date;
525
+ constructor(data: Partial<Email>);
526
+ static fromApiDict(data: any): Email;
527
+ toApiDict(): Record<string, any>;
528
+ }
529
+ export interface Thread {
530
+ id: string;
531
+ mailboxId: string;
532
+ subject: string;
533
+ messageCount: number;
534
+ firstMessageAt: Date;
535
+ lastMessageAt: Date;
536
+ participants: EmailAddress[];
537
+ preview?: string;
538
+ customSummary: string;
539
+ hasAttachments?: boolean;
540
+ hasHiddenMessages?: boolean;
541
+ userData?: UserData;
542
+ labels: string[];
543
+ }
544
+ export declare class Thread {
545
+ id: string;
546
+ mailboxId: string;
547
+ subject: string;
548
+ messageCount: number;
549
+ firstMessageAt: Date;
550
+ lastMessageAt: Date;
551
+ participants: EmailAddress[];
552
+ preview?: string;
553
+ customSummary: string;
554
+ hasAttachments?: boolean;
555
+ hasHiddenMessages?: boolean;
556
+ userData?: UserData;
557
+ labels: string[];
558
+ constructor(data: Partial<Thread>);
559
+ static fromApiDict(data: any): Thread;
560
+ toApiDict(): Record<string, any>;
561
+ }
562
+ export interface ThreadWithMessages {
563
+ id: string;
564
+ mailboxId: string;
565
+ subject: string;
566
+ messageCount: number;
567
+ firstMessageAt: Date;
568
+ lastMessageAt: Date;
569
+ participants: EmailAddress[];
570
+ preview?: string;
571
+ customSummary: string;
572
+ hasAttachments?: boolean;
573
+ hasHiddenMessages?: boolean;
574
+ userData?: UserData;
575
+ labels: string[];
576
+ messages: Email[];
577
+ }
578
+ export declare class ThreadWithMessages {
579
+ id: string;
580
+ mailboxId: string;
581
+ subject: string;
582
+ messageCount: number;
583
+ firstMessageAt: Date;
584
+ lastMessageAt: Date;
585
+ participants: EmailAddress[];
586
+ preview?: string;
587
+ customSummary: string;
588
+ hasAttachments?: boolean;
589
+ hasHiddenMessages?: boolean;
590
+ userData?: UserData;
591
+ labels: string[];
592
+ messages: Email[];
593
+ constructor(data: Partial<ThreadWithMessages>);
594
+ static fromApiDict(data: any): ThreadWithMessages;
595
+ toApiDict(): Record<string, any>;
596
+ }
597
+ export interface ThreadUpdateRequest {
598
+ userData?: UserData;
599
+ customSummary?: string;
600
+ setLabels: string[];
601
+ addLabels: string[];
602
+ removeLabels: string[];
603
+ }
604
+ export declare class ThreadUpdateRequest {
605
+ userData?: UserData;
606
+ customSummary?: string;
607
+ setLabels: string[];
608
+ addLabels: string[];
609
+ removeLabels: string[];
610
+ constructor(data: Partial<ThreadUpdateRequest>);
611
+ static fromApiDict(data: any): ThreadUpdateRequest;
612
+ toApiDict(): Record<string, any>;
613
+ }
614
+ export interface ThreadMoveInput {
615
+ targetMailboxAliasOrId: string;
616
+ targetDomainOrId?: string;
617
+ all?: boolean;
618
+ threadIds: string[];
619
+ q?: string;
620
+ labels: string[];
621
+ includeHidden?: boolean;
622
+ }
623
+ export declare class ThreadMoveInput {
624
+ targetMailboxAliasOrId: string;
625
+ targetDomainOrId?: string;
626
+ all?: boolean;
627
+ threadIds: string[];
628
+ q?: string;
629
+ labels: string[];
630
+ includeHidden?: boolean;
631
+ constructor(data: Partial<ThreadMoveInput>);
632
+ static fromApiDict(data: any): ThreadMoveInput;
633
+ toApiDict(): Record<string, any>;
634
+ }
635
+ export interface ThreadMoveResult {
636
+ status: string;
637
+ threadCount: number;
638
+ emailCount: number;
639
+ }
640
+ export declare class ThreadMoveResult {
641
+ status: string;
642
+ threadCount: number;
643
+ emailCount: number;
644
+ constructor(data: Partial<ThreadMoveResult>);
645
+ static fromApiDict(data: any): ThreadMoveResult;
646
+ toApiDict(): Record<string, any>;
647
+ }
648
+ export interface EmailUpdateRequest {
649
+ userData?: UserData;
650
+ customSummary?: string;
651
+ setLabels: string[];
652
+ addLabels: string[];
653
+ removeLabels: string[];
654
+ }
655
+ export declare class EmailUpdateRequest {
656
+ userData?: UserData;
657
+ customSummary?: string;
658
+ setLabels: string[];
659
+ addLabels: string[];
660
+ removeLabels: string[];
661
+ constructor(data: Partial<EmailUpdateRequest>);
662
+ static fromApiDict(data: any): EmailUpdateRequest;
663
+ toApiDict(): Record<string, any>;
664
+ }
665
+ export interface AttachmentUpdateRequest {
666
+ filename?: string;
667
+ contentType?: string;
668
+ charset?: string;
669
+ customSummary?: string;
670
+ }
671
+ export declare class AttachmentUpdateRequest {
672
+ filename?: string;
673
+ contentType?: string;
674
+ charset?: string;
675
+ customSummary?: string;
676
+ constructor(data: Partial<AttachmentUpdateRequest>);
677
+ static fromApiDict(data: any): AttachmentUpdateRequest;
678
+ toApiDict(): Record<string, any>;
679
+ }
680
+ export interface ThreadReplyAttachment {
681
+ filename: string;
682
+ contentType?: string;
683
+ data?: string;
684
+ url?: string;
685
+ inline?: boolean;
686
+ contentId?: string;
687
+ }
688
+ export declare class ThreadReplyAttachment {
689
+ filename: string;
690
+ contentType?: string;
691
+ data?: string;
692
+ url?: string;
693
+ inline?: boolean;
694
+ contentId?: string;
695
+ constructor(data: Partial<ThreadReplyAttachment>);
696
+ static fromApiDict(data: any): ThreadReplyAttachment;
697
+ toApiDict(): Record<string, any>;
698
+ }
699
+ export interface NewThreadRequest {
700
+ to: string[];
701
+ cc: string[];
702
+ bcc: string[];
703
+ subject: string;
704
+ from?: string;
705
+ text?: string;
706
+ html?: string;
707
+ markdown?: string;
708
+ replyTo?: string;
709
+ senderName?: string;
710
+ attachments: ThreadReplyAttachment[];
711
+ headers: any[];
712
+ addAutoReplyHeaders?: boolean;
713
+ processHtml?: boolean;
714
+ css?: string;
715
+ }
716
+ export declare class NewThreadRequest {
717
+ to: string[];
718
+ cc: string[];
719
+ bcc: string[];
720
+ subject: string;
721
+ from?: string;
722
+ text?: string;
723
+ html?: string;
724
+ markdown?: string;
725
+ replyTo?: string;
726
+ senderName?: string;
727
+ attachments: ThreadReplyAttachment[];
728
+ headers: any[];
729
+ addAutoReplyHeaders?: boolean;
730
+ processHtml?: boolean;
731
+ css?: string;
732
+ constructor(data: Partial<NewThreadRequest>);
733
+ static fromApiDict(data: any): NewThreadRequest;
734
+ toApiDict(): Record<string, any>;
735
+ }
736
+ export interface ThreadReplyRequest {
737
+ emailId?: string;
738
+ replyPolicy?: string;
739
+ replyTo?: string;
740
+ to: string[];
741
+ cc: string[];
742
+ bcc: string[];
743
+ subject?: string;
744
+ from?: string;
745
+ text?: string;
746
+ html?: string;
747
+ markdown?: string;
748
+ senderName?: string;
749
+ attachments: ThreadReplyAttachment[];
750
+ headers: any[];
751
+ addAutoReplyHeaders?: boolean;
752
+ processHtml?: boolean;
753
+ css?: string;
754
+ quoteReply?: boolean;
755
+ }
756
+ export declare class ThreadReplyRequest {
757
+ emailId?: string;
758
+ replyPolicy?: string;
759
+ replyTo?: string;
760
+ to: string[];
761
+ cc: string[];
762
+ bcc: string[];
763
+ subject?: string;
764
+ from?: string;
765
+ text?: string;
766
+ html?: string;
767
+ markdown?: string;
768
+ senderName?: string;
769
+ attachments: ThreadReplyAttachment[];
770
+ headers: any[];
771
+ addAutoReplyHeaders?: boolean;
772
+ processHtml?: boolean;
773
+ css?: string;
774
+ quoteReply?: boolean;
775
+ constructor(data: Partial<ThreadReplyRequest>);
776
+ static fromApiDict(data: any): ThreadReplyRequest;
777
+ toApiDict(): Record<string, any>;
778
+ }
779
+ export interface InjectInboundRequest {
780
+ from: string;
781
+ to: string[];
782
+ cc: string[];
783
+ bcc: string[];
784
+ subject: string;
785
+ text?: string;
786
+ html?: string;
787
+ markdown?: string;
788
+ replyTo?: string;
789
+ date?: Date;
790
+ attachments: ThreadReplyAttachment[];
791
+ headers: any[];
792
+ userData?: UserData;
793
+ triggerWebhook?: boolean;
794
+ }
795
+ export declare class InjectInboundRequest {
796
+ from: string;
797
+ to: string[];
798
+ cc: string[];
799
+ bcc: string[];
800
+ subject: string;
801
+ text?: string;
802
+ html?: string;
803
+ markdown?: string;
804
+ replyTo?: string;
805
+ date?: Date;
806
+ attachments: ThreadReplyAttachment[];
807
+ headers: any[];
808
+ userData?: UserData;
809
+ triggerWebhook?: boolean;
810
+ constructor(data: Partial<InjectInboundRequest>);
811
+ static fromApiDict(data: any): InjectInboundRequest;
812
+ toApiDict(): Record<string, any>;
813
+ }
814
+ export interface ThreadReplyResponse {
815
+ status: string;
816
+ emailId: string;
817
+ messageId: string;
818
+ }
819
+ export declare class ThreadReplyResponse {
820
+ status: string;
821
+ emailId: string;
822
+ messageId: string;
823
+ constructor(data: Partial<ThreadReplyResponse>);
824
+ static fromApiDict(data: any): ThreadReplyResponse;
825
+ toApiDict(): Record<string, any>;
826
+ }
827
+ export interface MailboxFilters {
828
+ allow: string[];
829
+ deny: string[];
830
+ }
831
+ export declare class MailboxFilters {
832
+ allow: string[];
833
+ deny: string[];
834
+ constructor(data: Partial<MailboxFilters>);
835
+ static fromApiDict(data: any): MailboxFilters;
836
+ toApiDict(): Record<string, any>;
837
+ }
838
+ export interface Mailbox {
839
+ id: string;
840
+ tenantId: string;
841
+ domainId: string;
842
+ localPart: string;
843
+ extraAliases: string[];
844
+ email?: string;
845
+ active: boolean;
846
+ senderName: string;
847
+ spamPolicy: string;
848
+ inboundPolicy: string;
849
+ dmarcEnforcement?: string;
850
+ subaddressing?: string;
851
+ filters?: MailboxFilters;
852
+ createdAt: Date;
853
+ updatedAt: Date;
854
+ }
855
+ export declare class Mailbox {
856
+ id: string;
857
+ tenantId: string;
858
+ domainId: string;
859
+ localPart: string;
860
+ extraAliases: string[];
861
+ email?: string;
862
+ active: boolean;
863
+ senderName: string;
864
+ spamPolicy: string;
865
+ inboundPolicy: string;
866
+ dmarcEnforcement?: string;
867
+ subaddressing?: string;
868
+ filters?: MailboxFilters;
869
+ createdAt: Date;
870
+ updatedAt: Date;
871
+ constructor(data: Partial<Mailbox>);
872
+ static fromApiDict(data: any): Mailbox;
873
+ toApiDict(): Record<string, any>;
874
+ }
875
+ export interface WebhookEvent {
876
+ type: string;
877
+ timestamp: Date;
878
+ data: any;
879
+ }
880
+ export declare class WebhookEvent {
881
+ type: string;
882
+ timestamp: Date;
883
+ data: any;
884
+ constructor(data: Partial<WebhookEvent>);
885
+ static fromApiDict(data: any): WebhookEvent;
886
+ toApiDict(): Record<string, any>;
887
+ }
888
+ export interface EmailReceivedEventData {
889
+ emailId: string;
890
+ mailboxId?: string;
891
+ domainId?: string;
892
+ from: string;
893
+ to: string[];
894
+ subject?: string;
895
+ receivedAt: Date;
896
+ messageId?: string;
897
+ threadId?: string;
898
+ text?: string;
899
+ cc: string[];
900
+ labels: string[];
901
+ }
902
+ export declare class EmailReceivedEventData {
903
+ emailId: string;
904
+ mailboxId?: string;
905
+ domainId?: string;
906
+ from: string;
907
+ to: string[];
908
+ subject?: string;
909
+ receivedAt: Date;
910
+ messageId?: string;
911
+ threadId?: string;
912
+ text?: string;
913
+ cc: string[];
914
+ labels: string[];
915
+ constructor(data: Partial<EmailReceivedEventData>);
916
+ static fromApiDict(data: any): EmailReceivedEventData;
917
+ toApiDict(): Record<string, any>;
918
+ }
919
+ export interface DeliverySuccessEventData {
920
+ messageId: string;
921
+ recipient: string;
922
+ from: string;
923
+ provider: string;
924
+ emailId?: string;
925
+ mailboxId?: string;
926
+ domainId?: string;
927
+ deliveredAt?: Date;
928
+ reportingMta?: string;
929
+ smtpResponse?: string;
930
+ }
931
+ export declare class DeliverySuccessEventData {
932
+ messageId: string;
933
+ recipient: string;
934
+ from: string;
935
+ provider: string;
936
+ emailId?: string;
937
+ mailboxId?: string;
938
+ domainId?: string;
939
+ deliveredAt?: Date;
940
+ reportingMta?: string;
941
+ smtpResponse?: string;
942
+ constructor(data: Partial<DeliverySuccessEventData>);
943
+ static fromApiDict(data: any): DeliverySuccessEventData;
944
+ toApiDict(): Record<string, any>;
945
+ }
946
+ export interface DeliveryFailedEventData {
947
+ messageId: string;
948
+ recipient: string;
949
+ from: string;
950
+ provider: string;
951
+ failureType: string;
952
+ severity: string;
953
+ emailId?: string;
954
+ mailboxId?: string;
955
+ domainId?: string;
956
+ failedAt?: Date;
957
+ bounce?: Record<string, any>;
958
+ }
959
+ export declare class DeliveryFailedEventData {
960
+ messageId: string;
961
+ recipient: string;
962
+ from: string;
963
+ provider: string;
964
+ failureType: string;
965
+ severity: string;
966
+ emailId?: string;
967
+ mailboxId?: string;
968
+ domainId?: string;
969
+ failedAt?: Date;
970
+ bounce?: Record<string, any>;
971
+ constructor(data: Partial<DeliveryFailedEventData>);
972
+ static fromApiDict(data: any): DeliveryFailedEventData;
973
+ toApiDict(): Record<string, any>;
974
+ }
975
+ //# sourceMappingURL=types.d.ts.map