@sudobility/types 1.9.32 → 1.9.33

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 (61) hide show
  1. package/dist/index.cjs +2 -10
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +2 -10
  5. package/dist/index.js.map +1 -1
  6. package/dist/types/business/enums.cjs +17 -4
  7. package/dist/types/business/enums.d.ts +13 -1
  8. package/dist/types/business/enums.d.ts.map +1 -1
  9. package/dist/types/business/enums.js +17 -4
  10. package/dist/types/business/enums.js.map +1 -1
  11. package/dist/types/business/index.cjs +2 -1
  12. package/dist/types/business/index.d.ts +1 -1
  13. package/dist/types/business/index.d.ts.map +1 -1
  14. package/dist/types/business/index.js +2 -1
  15. package/dist/types/business/index.js.map +1 -1
  16. package/dist/types/index.cjs +0 -6
  17. package/dist/types/index.d.ts +0 -3
  18. package/dist/types/index.d.ts.map +1 -1
  19. package/dist/types/index.js +0 -6
  20. package/dist/types/index.js.map +1 -1
  21. package/package.json +1 -1
  22. package/dist/types/indexer/index.cjs +0 -31
  23. package/dist/types/indexer/index.d.ts +0 -3
  24. package/dist/types/indexer/index.d.ts.map +0 -1
  25. package/dist/types/indexer/index.js +0 -31
  26. package/dist/types/indexer/index.js.map +0 -1
  27. package/dist/types/indexer/indexer-guards.cjs +0 -304
  28. package/dist/types/indexer/indexer-guards.d.ts +0 -38
  29. package/dist/types/indexer/indexer-guards.d.ts.map +0 -1
  30. package/dist/types/indexer/indexer-guards.js +0 -304
  31. package/dist/types/indexer/indexer-guards.js.map +0 -1
  32. package/dist/types/indexer/indexer-responses.cjs +0 -8
  33. package/dist/types/indexer/indexer-responses.d.ts +0 -215
  34. package/dist/types/indexer/indexer-responses.d.ts.map +0 -1
  35. package/dist/types/indexer/indexer-responses.js +0 -8
  36. package/dist/types/indexer/indexer-responses.js.map +0 -1
  37. package/dist/types/kyc/index.cjs +0 -19
  38. package/dist/types/kyc/index.d.ts +0 -2
  39. package/dist/types/kyc/index.d.ts.map +0 -1
  40. package/dist/types/kyc/index.js +0 -19
  41. package/dist/types/kyc/index.js.map +0 -1
  42. package/dist/types/kyc/kyc-types.cjs +0 -85
  43. package/dist/types/kyc/kyc-types.d.ts +0 -307
  44. package/dist/types/kyc/kyc-types.d.ts.map +0 -1
  45. package/dist/types/kyc/kyc-types.js +0 -85
  46. package/dist/types/kyc/kyc-types.js.map +0 -1
  47. package/dist/types/wildduck/index.cjs +0 -20
  48. package/dist/types/wildduck/index.d.ts +0 -3
  49. package/dist/types/wildduck/index.d.ts.map +0 -1
  50. package/dist/types/wildduck/index.js +0 -20
  51. package/dist/types/wildduck/index.js.map +0 -1
  52. package/dist/types/wildduck/wildduck-types.cjs +0 -65
  53. package/dist/types/wildduck/wildduck-types.d.ts +0 -1223
  54. package/dist/types/wildduck/wildduck-types.d.ts.map +0 -1
  55. package/dist/types/wildduck/wildduck-types.js +0 -65
  56. package/dist/types/wildduck/wildduck-types.js.map +0 -1
  57. package/dist/types/wildduck/wildduck-websocket-types.cjs +0 -135
  58. package/dist/types/wildduck/wildduck-websocket-types.d.ts +0 -381
  59. package/dist/types/wildduck/wildduck-websocket-types.d.ts.map +0 -1
  60. package/dist/types/wildduck/wildduck-websocket-types.js +0 -135
  61. package/dist/types/wildduck/wildduck-websocket-types.js.map +0 -1
@@ -1,1223 +0,0 @@
1
- /**
2
- * Comprehensive WildDuck API Type Definitions
3
- * Generated based on WildDuck API specification
4
- */
5
- export type WildduckObjectId = string;
6
- /**
7
- * Wildduck Configuration
8
- */
9
- export interface WildduckConfig {
10
- backendUrl: string;
11
- apiToken: string;
12
- cloudflareWorkerUrl?: string;
13
- }
14
- export interface WildduckAddress {
15
- id: string;
16
- address: string;
17
- name?: string;
18
- main: boolean;
19
- created?: string;
20
- metaData?: Record<string, unknown>;
21
- tags?: string[];
22
- }
23
- export interface WildduckMessageAddress {
24
- name?: string;
25
- address: string;
26
- }
27
- export interface WildduckAttachment {
28
- id: string;
29
- hash?: string;
30
- filename: string;
31
- contentType: string;
32
- disposition: string;
33
- transferEncoding: string;
34
- related: boolean;
35
- sizeKb: number;
36
- }
37
- export interface WildduckContentType {
38
- value: string;
39
- params: Record<string, unknown>;
40
- }
41
- export interface WildduckBimiInfo {
42
- certified: boolean;
43
- url: string;
44
- image: string;
45
- type?: 'VMC' | 'CMC';
46
- }
47
- export interface WildduckLimitUsage {
48
- allowed: number;
49
- used: number;
50
- }
51
- export interface WildduckLimitUsageWithTtl extends WildduckLimitUsage {
52
- ttl: number | false;
53
- }
54
- export interface WildduckSingleLimit {
55
- allowed: number;
56
- }
57
- export interface WildduckLimits {
58
- quota: WildduckLimitUsage;
59
- recipients?: WildduckLimitUsageWithTtl;
60
- forwards?: WildduckLimitUsageWithTtl;
61
- received?: WildduckLimitUsageWithTtl;
62
- filters?: WildduckLimitUsage;
63
- imapUpload?: WildduckLimitUsageWithTtl;
64
- imapDownload?: WildduckLimitUsageWithTtl;
65
- pop3Download?: WildduckLimitUsageWithTtl;
66
- pop3MaxMessages?: WildduckSingleLimit;
67
- imapMaxConnections?: WildduckLimitUsage;
68
- }
69
- export interface WildduckKeyInfo {
70
- name: string;
71
- address: string;
72
- fingerprint: string;
73
- }
74
- export interface WildduckUserAuth {
75
- username: string;
76
- userId: string;
77
- accessToken: string;
78
- }
79
- export interface WildduckPreAuthRequest {
80
- username: string;
81
- scope?: string;
82
- sess?: string;
83
- ip?: string;
84
- }
85
- export interface WildduckPreAuthResponse {
86
- success: boolean;
87
- id?: string;
88
- username?: string;
89
- address?: string;
90
- scope?: string;
91
- require2fa?: string[];
92
- error?: string;
93
- code?: string;
94
- message?: string;
95
- }
96
- export interface WildduckAuthenticateRequest {
97
- username: string;
98
- password?: string;
99
- emailDomain?: string;
100
- signature?: string;
101
- message?: string;
102
- signer?: string;
103
- referralCode?: string;
104
- protocol?: string;
105
- scope?: string;
106
- appId?: string;
107
- token?: boolean;
108
- sess?: string;
109
- ip?: string;
110
- }
111
- export interface WildduckAuthResponse {
112
- success: boolean;
113
- id?: string;
114
- username?: string;
115
- address?: string;
116
- scope?: string;
117
- token?: string;
118
- require2fa?: string[];
119
- requirePasswordChange?: boolean;
120
- error?: string;
121
- code?: string;
122
- message?: string;
123
- }
124
- export declare function createPreAuthRequest(username: string, options?: Partial<WildduckPreAuthRequest>): WildduckPreAuthRequest;
125
- export declare function createAuthenticateRequest(username: string, signature?: string, message?: string, options?: Partial<WildduckAuthenticateRequest>): WildduckAuthenticateRequest;
126
- /**
127
- * Simplified Wildduck User type (from @johnqh/types pattern)
128
- */
129
- export interface WildduckUser {
130
- id: string;
131
- username: string;
132
- name?: string;
133
- address?: string;
134
- language?: string;
135
- retention?: number;
136
- quota?: {
137
- allowed: number;
138
- used: number;
139
- };
140
- disabled: boolean;
141
- suspended: boolean;
142
- tags?: string[];
143
- hasPasswordSet?: boolean;
144
- activated?: boolean;
145
- created?: string;
146
- }
147
- export interface WildduckUserResponse {
148
- success: boolean;
149
- id: string;
150
- username: string;
151
- name: string;
152
- address: string;
153
- language?: string;
154
- retention?: number;
155
- uploadSentMessages?: boolean;
156
- enabled2fa: string[];
157
- autoreply: boolean;
158
- encryptMessages: boolean;
159
- encryptForwarded: boolean;
160
- pubKey: string;
161
- spamLevel: number;
162
- keyInfo: WildduckKeyInfo;
163
- metaData: Record<string, unknown>;
164
- internalData: Record<string, unknown>;
165
- targets: string[];
166
- mtaRelay?: string;
167
- limits: WildduckLimits;
168
- fromWhitelist: string[];
169
- featureFlags?: Record<string, unknown>;
170
- disabledScopes: string[];
171
- hasPasswordSet: boolean;
172
- activated: boolean;
173
- disabled: boolean;
174
- suspended: boolean;
175
- tags: string[];
176
- }
177
- export interface WildduckSimpleUserResponse {
178
- success: boolean;
179
- id?: string;
180
- error?: string;
181
- }
182
- export interface WildduckCreateUserRequest {
183
- username: string;
184
- password?: string;
185
- hashedPassword?: boolean;
186
- allowUnsafe?: boolean;
187
- address?: string;
188
- emptyAddress?: boolean;
189
- language?: string;
190
- retention?: number;
191
- name?: string;
192
- targets?: string[];
193
- spamLevel?: number;
194
- quota?: number;
195
- recipients?: number;
196
- forwards?: number;
197
- imapMaxUpload?: number;
198
- imapMaxDownload?: number;
199
- pop3MaxDownload?: number;
200
- pop3MaxMessages?: number;
201
- imapMaxConnections?: number;
202
- receivedMax?: number;
203
- fromWhitelist?: string[];
204
- tags?: string[];
205
- addTagsToAddress?: boolean;
206
- uploadSentMessages?: boolean;
207
- mailboxes?: Record<string, string>;
208
- disabledScopes?: string[];
209
- metaData?: Record<string, unknown> | string;
210
- internalData?: Record<string, unknown> | string;
211
- pubKey?: string;
212
- encryptMessages?: boolean;
213
- encryptForwarded?: boolean;
214
- sess?: string;
215
- ip?: string;
216
- [key: string]: unknown;
217
- }
218
- export interface WildduckCreateUserResponse {
219
- success: boolean;
220
- id: string;
221
- }
222
- export interface WildduckUpdateUserRequest {
223
- existingPassword?: string;
224
- password?: string;
225
- hashedPassword?: boolean;
226
- allowUnsafe?: boolean;
227
- language?: string;
228
- name?: string;
229
- targets?: string[];
230
- spamLevel?: number;
231
- quota?: number;
232
- recipients?: number;
233
- forwards?: number;
234
- imapMaxUpload?: number;
235
- imapMaxDownload?: number;
236
- pop3MaxDownload?: number;
237
- pop3MaxMessages?: number;
238
- imapMaxConnections?: number;
239
- receivedMax?: number;
240
- fromWhitelist?: string[];
241
- tags?: string[];
242
- retention?: number;
243
- uploadSentMessages?: boolean;
244
- disabledScopes?: string[];
245
- disabled?: boolean;
246
- suspended?: boolean;
247
- metaData?: Record<string, unknown> | string;
248
- internalData?: Record<string, unknown> | string;
249
- pubKey?: string;
250
- encryptMessages?: boolean;
251
- encryptForwarded?: boolean;
252
- sess?: string;
253
- ip?: string;
254
- [key: string]: unknown;
255
- }
256
- export interface WildduckUserListItem {
257
- id: string;
258
- username: string;
259
- name: string;
260
- address: string;
261
- tags: string[];
262
- targets: string[];
263
- enabled2fa: string[];
264
- autoreply: boolean;
265
- encryptMessages: boolean;
266
- encryptForwarded: boolean;
267
- quota: {
268
- allowed: number;
269
- used: number;
270
- };
271
- metaData?: Record<string, unknown>;
272
- internalData?: Record<string, unknown>;
273
- hasPasswordSet: boolean;
274
- activated: boolean;
275
- disabled: boolean;
276
- suspended: boolean;
277
- }
278
- export interface WildduckUserListResponse {
279
- success: boolean;
280
- query: string;
281
- total: number;
282
- page: number;
283
- previousCursor: string | false;
284
- nextCursor: string | false;
285
- results: WildduckUserListItem[];
286
- }
287
- export interface WildduckResolveUserResponse {
288
- success: boolean;
289
- id: string;
290
- }
291
- export interface WildduckLogoutUserRequest {
292
- reason?: string;
293
- sess?: string;
294
- ip?: string;
295
- }
296
- export interface WildduckQuotaResetResponse {
297
- success: boolean;
298
- storageUsed: number;
299
- previousStorageUsed: number;
300
- }
301
- export interface WildduckPasswordResetRequest {
302
- validAfter?: string;
303
- sess?: string;
304
- ip?: string;
305
- }
306
- export interface WildduckPasswordResetResponse {
307
- success: boolean;
308
- password: string;
309
- validAfter: string;
310
- }
311
- /**
312
- * Special mailbox types (IMAP special-use flags)
313
- * These correspond to standard IMAP mailbox flags
314
- */
315
- export declare enum MailboxSpecialUse {
316
- Inbox = "\\Inbox",
317
- Sent = "\\Sent",
318
- Trash = "\\Trash",
319
- Drafts = "\\Drafts",
320
- Junk = "\\Junk",
321
- Settings = "\\App.Settings",
322
- Developer = "\\App.Developer"
323
- }
324
- /**
325
- * Simplified Wildduck Mailbox type (from @johnqh/types pattern)
326
- */
327
- export interface WildduckMailbox {
328
- id: string;
329
- name: string;
330
- path: string;
331
- specialUse?: MailboxSpecialUse;
332
- modifyIndex: number;
333
- subscribed: boolean;
334
- hidden: boolean;
335
- total?: number;
336
- unseen?: number;
337
- size?: number;
338
- }
339
- export interface WildduckMailboxResponse {
340
- success: boolean;
341
- results: WildduckMailbox[];
342
- error?: string;
343
- }
344
- /** Get mailboxes request */
345
- export interface GetMailboxesRequest {
346
- sess?: string;
347
- ip?: string;
348
- specialUse?: boolean;
349
- showHidden?: boolean;
350
- counters?: boolean;
351
- sizes?: boolean;
352
- }
353
- /** Get messages request */
354
- export interface GetMessagesRequest {
355
- sess?: string;
356
- ip?: string;
357
- limit?: number;
358
- page?: number;
359
- next?: string;
360
- previous?: string;
361
- order?: 'asc' | 'desc';
362
- unseen?: boolean;
363
- flagged?: boolean;
364
- thread?: string;
365
- includeHeaders?: string[];
366
- uid?: boolean;
367
- }
368
- /** Create new mailbox request */
369
- export interface CreateMailboxRequest {
370
- path: string;
371
- hidden?: boolean;
372
- retention?: number;
373
- encryptMessages?: boolean;
374
- sess?: string;
375
- ip?: string;
376
- }
377
- /** Update existing mailbox request */
378
- export interface UpdateMailboxRequest {
379
- path?: string;
380
- retention?: number;
381
- subscribed?: boolean;
382
- encryptMessages?: boolean;
383
- hidden?: boolean;
384
- sess?: string;
385
- ip?: string;
386
- }
387
- export interface WildduckMailboxListItem {
388
- id: string;
389
- name: string;
390
- path: string;
391
- specialUse: string | false;
392
- modifyIndex: number;
393
- subscribed: boolean;
394
- hidden: boolean;
395
- total?: number;
396
- unseen?: number;
397
- size?: number;
398
- }
399
- export interface WildduckMailboxListResponse {
400
- success: boolean;
401
- results: WildduckMailboxListItem[];
402
- }
403
- export interface WildduckCreateMailboxRequest {
404
- path: string;
405
- hidden?: boolean;
406
- retention?: number;
407
- sess?: string;
408
- ip?: string;
409
- }
410
- export interface WildduckCreateMailboxResponse {
411
- success: boolean;
412
- id: string;
413
- }
414
- export interface WildduckDetailedMailboxResponse {
415
- success: boolean;
416
- id: string;
417
- name: string;
418
- path: string;
419
- specialUse: string | false;
420
- modifyIndex: number;
421
- subscribed: boolean;
422
- hidden: boolean;
423
- total: number;
424
- unseen: number;
425
- }
426
- export interface WildduckUpdateMailboxRequest {
427
- path?: string;
428
- retention?: number;
429
- subscribed?: boolean;
430
- hidden?: boolean;
431
- sess?: string;
432
- ip?: string;
433
- [key: string]: unknown;
434
- }
435
- export interface WildduckMessageAttachment {
436
- id: string;
437
- filename: string;
438
- contentType: string;
439
- hash?: string;
440
- disposition?: string;
441
- transferEncoding?: string;
442
- related?: boolean;
443
- size?: number;
444
- sizeKb?: number;
445
- }
446
- export interface WildduckMessageListItem {
447
- id: number;
448
- mailbox: string;
449
- thread: string;
450
- threadMessageCount?: number;
451
- from?: WildduckMessageAddress;
452
- to: WildduckMessageAddress[];
453
- cc: WildduckMessageAddress[];
454
- bcc: WildduckMessageAddress[];
455
- messageId: string;
456
- subject: string;
457
- date: string;
458
- idate?: string;
459
- intro: string;
460
- attachments: boolean;
461
- attachmentsList?: WildduckAttachment[];
462
- size: number;
463
- seen: boolean;
464
- deleted: boolean;
465
- flagged: boolean;
466
- draft: boolean;
467
- answered: boolean;
468
- forwarded: boolean;
469
- references: string[];
470
- bimi?: WildduckBimiInfo;
471
- contentType: WildduckContentType;
472
- encrypted?: boolean;
473
- metaData?: Record<string, unknown>;
474
- headers?: Record<string, string>;
475
- }
476
- export type WildduckMessage = WildduckMessageListItem;
477
- export interface WildduckMessagesResponse {
478
- success: boolean;
479
- total: number;
480
- page: number;
481
- previousCursor: string | false;
482
- nextCursor: string | false;
483
- specialUse: string;
484
- results: WildduckMessageListItem[];
485
- error?: string;
486
- }
487
- export interface WildduckMessageListResponse {
488
- success: boolean;
489
- total: number;
490
- page: number;
491
- previousCursor: string | false;
492
- nextCursor: string | false;
493
- specialUse: string;
494
- results: WildduckMessageListItem[];
495
- }
496
- export interface WildduckEnvelopeRecipient {
497
- value: string;
498
- formatted: string;
499
- }
500
- export interface WildduckMessageEnvelope {
501
- from: string;
502
- rcpt: WildduckEnvelopeRecipient[];
503
- }
504
- export interface WildduckVerificationResults {
505
- tls?: {
506
- name: Record<string, unknown>;
507
- version: Record<string, unknown>;
508
- } | false;
509
- spf?: Record<string, unknown> | false;
510
- dkim?: Record<string, unknown> | false;
511
- }
512
- export interface WildduckMessageDetail {
513
- id: number;
514
- mailbox: string;
515
- user: string;
516
- envelope?: WildduckMessageEnvelope;
517
- thread: string;
518
- from?: WildduckMessageAddress;
519
- replyTo?: WildduckMessageAddress;
520
- to: WildduckMessageAddress[];
521
- cc: WildduckMessageAddress[];
522
- bcc: WildduckMessageAddress[];
523
- subject: string;
524
- messageId: string;
525
- date: string;
526
- idate?: string;
527
- list?: {
528
- id: string;
529
- unsubscribe: string;
530
- };
531
- size: number;
532
- expires?: string;
533
- seen: boolean;
534
- deleted: boolean;
535
- flagged: boolean;
536
- draft: boolean;
537
- answered: boolean;
538
- forwarded: boolean;
539
- html?: string[];
540
- text?: string;
541
- intro?: string;
542
- attachments: WildduckMessageAttachment[];
543
- verificationResults?: WildduckVerificationResults;
544
- bimi?: WildduckBimiInfo;
545
- contentType: WildduckContentType;
546
- metaData?: Record<string, unknown>;
547
- references: string[];
548
- files?: Record<string, unknown>;
549
- outbound?: unknown[];
550
- forwardTargets?: Record<string, unknown>;
551
- reference?: Record<string, unknown>;
552
- encrypted?: boolean;
553
- headers?: Record<string, string | string[]>;
554
- }
555
- export interface WildduckMessageResponse extends WildduckMessageDetail {
556
- success: boolean;
557
- error?: string;
558
- }
559
- export type WildduckDetailedMessageResponse = WildduckMessageResponse;
560
- export interface WildduckSearchMessagesRequest {
561
- q?: string;
562
- mailbox?: string;
563
- id?: string;
564
- thread?: string;
565
- or?: {
566
- query?: string;
567
- from?: string;
568
- to?: string;
569
- subject?: string;
570
- };
571
- query?: string;
572
- datestart?: string;
573
- dateend?: string;
574
- from?: string;
575
- to?: string;
576
- subject?: string;
577
- minSize?: number;
578
- maxSize?: number;
579
- attachments?: boolean;
580
- flagged?: boolean;
581
- unseen?: boolean;
582
- includeHeaders?: string[];
583
- searchable?: boolean;
584
- threadCounters?: boolean;
585
- limit?: number;
586
- order?: 'asc' | 'desc';
587
- next?: string;
588
- previous?: string;
589
- sess?: string;
590
- ip?: string;
591
- }
592
- export interface WildduckSearchMessagesResponse {
593
- success: boolean;
594
- query: string;
595
- total: number;
596
- page: number;
597
- previousCursor: string | false;
598
- nextCursor: string | false;
599
- results: WildduckMessageListItem[];
600
- }
601
- export interface WildduckSearchApplyRequest extends WildduckSearchMessagesRequest {
602
- action: {
603
- moveTo?: string;
604
- seen?: boolean;
605
- flagged?: boolean;
606
- };
607
- }
608
- export interface WildduckSearchApplyResponse {
609
- success: boolean;
610
- scheduled: string;
611
- existing: boolean;
612
- }
613
- export interface WildduckUpdateMessageRequest {
614
- message?: string;
615
- moveTo?: string;
616
- seen?: boolean;
617
- deleted?: boolean;
618
- flagged?: boolean;
619
- draft?: boolean;
620
- expires?: string | false;
621
- metaData?: Record<string, unknown> | string;
622
- sess?: string;
623
- ip?: string;
624
- [key: string]: unknown;
625
- }
626
- export interface WildduckUpdateMessageResponse {
627
- success: boolean;
628
- id?: Array<[number, number]>;
629
- mailbox?: string;
630
- updated?: number;
631
- }
632
- export interface WildduckUploadMessageRequest {
633
- date?: string;
634
- unseen?: boolean;
635
- flagged?: boolean;
636
- draft?: boolean;
637
- raw?: string;
638
- from?: WildduckAddress;
639
- replyTo?: WildduckAddress;
640
- to?: WildduckAddress[];
641
- cc?: WildduckAddress[];
642
- bcc?: WildduckAddress[];
643
- headers?: Array<{
644
- key: string;
645
- value: string;
646
- }>;
647
- subject?: string;
648
- text?: string;
649
- html?: string;
650
- files?: string[];
651
- attachments?: Array<{
652
- filename: string;
653
- content: string;
654
- contentType: string;
655
- cid?: string;
656
- }>;
657
- metaData?: Record<string, unknown> | string;
658
- reference?: {
659
- mailbox: string;
660
- id: number;
661
- action: 'reply' | 'replyAll' | 'forward';
662
- attachments?: boolean | string[];
663
- };
664
- replacePrevious?: {
665
- mailbox: string;
666
- id: number;
667
- };
668
- bimi?: {
669
- domain: string;
670
- selector?: string;
671
- };
672
- sess?: string;
673
- ip?: string;
674
- [key: string]: unknown;
675
- }
676
- export interface WildduckUploadMessageResponse {
677
- success: boolean;
678
- message: {
679
- id: number;
680
- mailbox: string;
681
- size?: number;
682
- };
683
- }
684
- export interface WildduckForwardMessageRequest {
685
- target: number;
686
- sess?: string;
687
- ip?: string;
688
- [key: string]: unknown;
689
- }
690
- export interface WildduckSubmitMessageRequest {
691
- from?: WildduckAddress;
692
- to: WildduckAddress[];
693
- cc?: WildduckAddress[];
694
- bcc?: WildduckAddress[];
695
- subject?: string;
696
- text?: string;
697
- html?: string;
698
- headers?: Array<{
699
- key: string;
700
- value: string;
701
- }>;
702
- files?: string[];
703
- attachments?: Array<{
704
- filename: string;
705
- content: string;
706
- contentType: string;
707
- cid?: string;
708
- }>;
709
- sess?: string;
710
- ip?: string;
711
- [key: string]: unknown;
712
- }
713
- export interface WildduckSubmitMessageResponse {
714
- success: boolean;
715
- message: {
716
- id: number;
717
- mailbox: string;
718
- queueId: string;
719
- };
720
- }
721
- export interface WildduckAddressResponse {
722
- success: boolean;
723
- results?: WildduckAddress[];
724
- error?: string;
725
- }
726
- export interface WildduckAddressListItem {
727
- id: string;
728
- name: string;
729
- address: string;
730
- tags: string[];
731
- main: boolean;
732
- created: string;
733
- }
734
- export interface WildduckAddressListResponse {
735
- success: boolean;
736
- results: WildduckAddressListItem[];
737
- }
738
- export interface WildduckCreateAddressRequest {
739
- address: string;
740
- name?: string;
741
- main?: boolean;
742
- tags?: string[];
743
- sess?: string;
744
- ip?: string;
745
- }
746
- export interface WildduckCreateAddressResponse {
747
- success: boolean;
748
- id: string;
749
- }
750
- export interface WildduckUpdateAddressRequest {
751
- name?: string;
752
- main?: boolean;
753
- tags?: string[];
754
- sess?: string;
755
- ip?: string;
756
- }
757
- export interface WildduckForwardedAddressListItem {
758
- id: string;
759
- address: string;
760
- name: string;
761
- targets: string[];
762
- forwards: number;
763
- forwardedDisabled: boolean;
764
- tags: string[];
765
- created: string;
766
- }
767
- export interface WildduckForwardedAddressListResponse {
768
- success: boolean;
769
- results: WildduckForwardedAddressListItem[];
770
- }
771
- export interface WildduckCreateForwardedAddressRequest {
772
- address: string;
773
- name?: string;
774
- targets: string[];
775
- forwards?: number;
776
- forwardedDisabled?: boolean;
777
- tags?: string[];
778
- sess?: string;
779
- ip?: string;
780
- }
781
- export interface WildduckUpdateForwardedAddressRequest {
782
- name?: string;
783
- targets?: string[];
784
- forwards?: number;
785
- forwardedDisabled?: boolean;
786
- tags?: string[];
787
- sess?: string;
788
- ip?: string;
789
- }
790
- export interface WildduckResolveAddressResponse {
791
- success: boolean;
792
- id: string;
793
- }
794
- /** Message filter query conditions */
795
- export interface FilterQuery {
796
- from?: string;
797
- to?: string;
798
- subject?: string;
799
- listId?: string;
800
- text?: string;
801
- ha?: boolean;
802
- size?: number;
803
- }
804
- /** Actions to take on filtered messages */
805
- export interface FilterAction {
806
- seen?: boolean;
807
- flag?: boolean;
808
- delete?: boolean;
809
- spam?: boolean;
810
- mailbox?: string;
811
- targets?: string[];
812
- }
813
- export interface WildduckFilterQuery {
814
- from?: string;
815
- to?: string;
816
- subject?: string;
817
- text?: string;
818
- ha?: boolean;
819
- size?: number;
820
- }
821
- export interface WildduckFilterAction {
822
- seen?: boolean;
823
- flag?: boolean;
824
- delete?: boolean;
825
- spam?: boolean;
826
- mailbox?: string;
827
- targets?: string[];
828
- forward?: string;
829
- }
830
- export interface WildduckFilterListItem {
831
- id: string;
832
- name: string;
833
- query: WildduckFilterQuery;
834
- action: WildduckFilterAction;
835
- disabled: boolean;
836
- created: string;
837
- }
838
- export interface WildduckFilterListResponse {
839
- success: boolean;
840
- results: WildduckFilterListItem[];
841
- }
842
- export interface WildduckCreateFilterRequest {
843
- name: string;
844
- query: WildduckFilterQuery;
845
- action: WildduckFilterAction;
846
- disabled?: boolean;
847
- sess?: string;
848
- ip?: string;
849
- }
850
- export interface WildduckCreateFilterResponse {
851
- success: boolean;
852
- id: string;
853
- }
854
- export interface WildduckUpdateFilterRequest {
855
- name?: string;
856
- query?: WildduckFilterQuery;
857
- action?: WildduckFilterAction;
858
- disabled?: boolean;
859
- sess?: string;
860
- ip?: string;
861
- }
862
- export interface WildduckFilterResponse {
863
- success: boolean;
864
- id: string;
865
- name: string;
866
- query: WildduckFilterQuery;
867
- action: WildduckFilterAction;
868
- disabled: boolean;
869
- created: string;
870
- }
871
- /** Email filter */
872
- export interface EmailFilter {
873
- id: string;
874
- name: string;
875
- query: FilterQuery;
876
- action: FilterAction;
877
- disabled?: boolean;
878
- }
879
- /** Response from filter operations */
880
- export interface FilterResponse {
881
- success: boolean;
882
- id?: string;
883
- }
884
- export interface WildduckAutoreplyRequest {
885
- status?: boolean;
886
- name?: string;
887
- subject?: string;
888
- text?: string;
889
- html?: string;
890
- start?: string;
891
- end?: string;
892
- sess?: string;
893
- ip?: string;
894
- [key: string]: unknown;
895
- }
896
- export interface WildduckAutoreplyResponse {
897
- success: boolean;
898
- status: boolean;
899
- name: string;
900
- subject: string;
901
- text: string;
902
- html: string;
903
- start: string | false;
904
- end: string | false;
905
- }
906
- export interface WildduckASPListItem {
907
- id: string;
908
- description: string;
909
- scopes: string[];
910
- lastUse: {
911
- time: string;
912
- event: string;
913
- } | false;
914
- created: string;
915
- }
916
- export interface WildduckASPListResponse {
917
- success: boolean;
918
- results: WildduckASPListItem[];
919
- }
920
- export interface WildduckCreateASPRequest {
921
- description: string;
922
- scopes: string[];
923
- generateMobileconfig?: boolean;
924
- sess?: string;
925
- ip?: string;
926
- }
927
- export interface WildduckCreateASPResponse {
928
- success: boolean;
929
- id: string;
930
- password: string;
931
- mobileconfig?: string;
932
- }
933
- export interface WildduckASPResponse {
934
- success: boolean;
935
- id: string;
936
- description: string;
937
- scopes: string[];
938
- lastUse: {
939
- time: string;
940
- event: string;
941
- } | false;
942
- created: string;
943
- }
944
- export interface WildduckStorageUploadRequest {
945
- filename: string;
946
- contentType: string;
947
- encoding?: string;
948
- content: string;
949
- sess?: string;
950
- ip?: string;
951
- }
952
- export interface WildduckStorageUploadResponse {
953
- success: boolean;
954
- id: string;
955
- }
956
- export interface WildduckStorageListItem {
957
- id: string;
958
- filename: string;
959
- contentType: string;
960
- size: number;
961
- created: string;
962
- }
963
- export interface WildduckStorageListResponse {
964
- success: boolean;
965
- results: WildduckStorageListItem[];
966
- }
967
- export interface WildduckSettingItem {
968
- key: string;
969
- value: unknown;
970
- description: string;
971
- }
972
- export interface WildduckSettingsListResponse {
973
- success: boolean;
974
- results: WildduckSettingItem[];
975
- }
976
- export interface WildduckSettingResponse {
977
- success: boolean;
978
- key: string;
979
- value: unknown;
980
- }
981
- export interface WildduckUpdateSettingRequest {
982
- value: unknown;
983
- }
984
- /**
985
- * User information response (detailed)
986
- */
987
- export interface UserInfo {
988
- success: boolean;
989
- id: string;
990
- username: string;
991
- name?: string;
992
- address: string;
993
- retention?: number;
994
- enabled2fa?: string[];
995
- autoreply?: boolean;
996
- encryptMessages?: boolean;
997
- encryptForwarded?: boolean;
998
- pubKey?: string;
999
- metaData?: Record<string, unknown>;
1000
- internalData?: Record<string, unknown>;
1001
- hasPasswordSet?: boolean;
1002
- activated?: boolean;
1003
- disabled?: boolean;
1004
- suspended?: boolean;
1005
- quota: {
1006
- allowed: number;
1007
- used: number;
1008
- };
1009
- targets?: string[];
1010
- spamLevel?: number;
1011
- uploadSentMessages?: boolean;
1012
- mtaRelay?: string;
1013
- limits: {
1014
- quota: {
1015
- allowed: number;
1016
- used: number;
1017
- };
1018
- recipients?: {
1019
- allowed: number;
1020
- used: number;
1021
- ttl: number;
1022
- };
1023
- forwards?: {
1024
- allowed: number;
1025
- used: number;
1026
- ttl: number;
1027
- };
1028
- received?: {
1029
- allowed: number;
1030
- used: number;
1031
- ttl: number;
1032
- };
1033
- imapUpload?: {
1034
- allowed: number;
1035
- used: number;
1036
- ttl: number;
1037
- };
1038
- imapDownload?: {
1039
- allowed: number;
1040
- used: number;
1041
- ttl: number;
1042
- };
1043
- pop3Download?: {
1044
- allowed: number;
1045
- used: number;
1046
- ttl: number;
1047
- };
1048
- imapMaxConnections?: {
1049
- allowed: number;
1050
- };
1051
- };
1052
- tags?: string[];
1053
- disabledScopes?: string[];
1054
- fromWhitelist?: string[];
1055
- }
1056
- /**
1057
- * Auto-reply (out of office) settings response
1058
- */
1059
- export interface AutoReplySettings {
1060
- success: boolean;
1061
- status?: boolean;
1062
- name?: string;
1063
- subject?: string;
1064
- text?: string;
1065
- html?: string;
1066
- start?: string;
1067
- end?: string;
1068
- }
1069
- /**
1070
- * Forwarding target response types
1071
- * Forwarding target - can be email, SMTP relay, or HTTP webhook
1072
- */
1073
- export type ForwardingTarget = string;
1074
- /**
1075
- * Spam settings response
1076
- */
1077
- export interface SpamSettings {
1078
- success: boolean;
1079
- spamLevel?: number;
1080
- fromWhitelist?: string[];
1081
- }
1082
- /**
1083
- * SMTP relay configuration
1084
- */
1085
- export interface SMTPRelay {
1086
- enabled: boolean;
1087
- host?: string;
1088
- port?: number;
1089
- secure?: boolean;
1090
- auth?: {
1091
- user: string;
1092
- pass: string;
1093
- };
1094
- }
1095
- /**
1096
- * Advanced settings response
1097
- */
1098
- export interface AdvancedSettings {
1099
- success: boolean;
1100
- uploadSentMessages?: boolean;
1101
- smtpRelay?: SMTPRelay;
1102
- }
1103
- export interface WildduckHealthResponse {
1104
- success: boolean;
1105
- version: string;
1106
- mongodb: {
1107
- status: string;
1108
- responseTime: string;
1109
- };
1110
- redis: {
1111
- status: string;
1112
- responseTime: string;
1113
- };
1114
- imap: {
1115
- status: string;
1116
- };
1117
- smtp: {
1118
- status: string;
1119
- };
1120
- }
1121
- export interface WildduckWebhookListItem {
1122
- id: string;
1123
- type: string;
1124
- user: string;
1125
- url: string;
1126
- created: string;
1127
- }
1128
- export interface WildduckWebhookListResponse {
1129
- success: boolean;
1130
- results: WildduckWebhookListItem[];
1131
- }
1132
- export interface WildduckCreateWebhookRequest {
1133
- type: string;
1134
- user: string;
1135
- url: string;
1136
- sess?: string;
1137
- ip?: string;
1138
- }
1139
- export interface WildduckCreateWebhookResponse {
1140
- success: boolean;
1141
- id: string;
1142
- }
1143
- export interface WildduckCreateAuditRequest {
1144
- user: string;
1145
- start: string;
1146
- end: string;
1147
- expires?: string;
1148
- sess?: string;
1149
- ip?: string;
1150
- }
1151
- export interface WildduckCreateAuditResponse {
1152
- success: boolean;
1153
- id: string;
1154
- }
1155
- export interface WildduckAuditResponse {
1156
- success: boolean;
1157
- id: string;
1158
- user: string;
1159
- start: string;
1160
- end: string;
1161
- expires: string;
1162
- import: {
1163
- status: string;
1164
- failed: number;
1165
- copied: number;
1166
- };
1167
- }
1168
- export interface WildduckDKIMListItem {
1169
- id: string;
1170
- domain: string;
1171
- selector: string;
1172
- description: string;
1173
- fingerprint: string;
1174
- created: string;
1175
- }
1176
- export interface WildduckDKIMListResponse {
1177
- success: boolean;
1178
- results: WildduckDKIMListItem[];
1179
- }
1180
- export interface WildduckCreateDKIMRequest {
1181
- domain: string;
1182
- selector: string;
1183
- description?: string;
1184
- privateKey?: string;
1185
- sess?: string;
1186
- ip?: string;
1187
- }
1188
- export interface WildduckCreateDKIMResponse {
1189
- success: boolean;
1190
- id: string;
1191
- domain: string;
1192
- selector: string;
1193
- dnsTxt: {
1194
- name: string;
1195
- value: string;
1196
- };
1197
- }
1198
- export interface WildduckSuccessResponse {
1199
- success: boolean;
1200
- }
1201
- export interface WildduckDeleteResponse {
1202
- success: boolean;
1203
- }
1204
- export interface WildduckErrorResponse {
1205
- error: string;
1206
- code: string;
1207
- details?: unknown;
1208
- }
1209
- export interface WildduckPaginationParams {
1210
- limit?: number;
1211
- next?: string;
1212
- previous?: string;
1213
- page?: number;
1214
- sess?: string;
1215
- ip?: string;
1216
- }
1217
- export interface WildduckSessionParams {
1218
- sess?: string;
1219
- ip?: string;
1220
- }
1221
- export declare const isWildduckAuthResponse: (obj: unknown) => obj is WildduckAuthResponse;
1222
- export declare const isWildduckMessage: (obj: unknown) => obj is WildduckMessage;
1223
- //# sourceMappingURL=wildduck-types.d.ts.map