-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.ts
5281 lines (5274 loc) · 141 KB
/
api.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* This file was auto-generated by openapi-typescript.
* Do not make direct changes to the file.
*/
export interface paths {
"/v1/accounts": {
/**
* List accounts
* @description Lists registered accounts
*/
get: operations["getV1Accounts"];
};
"/v1/autoconfig": {
/**
* Discover Email settings
* @description Try to discover IMAP and SMTP settings for an email account
*/
get: operations["getV1Autoconfig"];
};
"/v1/blocklists": {
/**
* List blocklists
* @description List blocklists with blocked addresses
*/
get: operations["getV1Blocklists"];
};
"/v1/changes": {
/**
* Stream state changes
* @description Stream account state changes as an EventSource
*/
get: operations["getV1Changes"];
};
"/v1/gateways": {
/**
* List gateways
* @description Lists registered gateways
*/
get: operations["getV1Gateways"];
};
"/v1/license": {
/**
* Request license info
* @description Get active license information
*/
get: operations["getV1License"];
/**
* Register a license
* @description Set up a license for EmailEngine to unlock all features
*/
post: operations["postV1License"];
/**
* Remove license
* @description Remove registered active license
*/
delete: operations["deleteV1License"];
};
"/v1/oauth2": {
/**
* List OAuth2 applications
* @description Lists registered OAuth2 applications
*/
get: operations["getV1Oauth2"];
/**
* Register OAuth2 application
* @description Registers a new OAuth2 application for a specific provider
*/
post: operations["postV1Oauth2"];
};
"/v1/outbox": {
/**
* List queued messages
* @description Lists messages in the Outbox
*/
get: operations["getV1Outbox"];
};
"/v1/settings": {
/**
* List specific settings
* @description List setting values for specific keys
*/
get: operations["getV1Settings"];
/**
* Set setting values
* @description Set setting values for specific keys
*/
post: operations["postV1Settings"];
};
"/v1/stats": {
/** Return server stats */
get: operations["getV1Stats"];
};
"/v1/templates": {
/**
* List account templates
* @description Lists stored templates for the account
*/
get: operations["getV1Templates"];
};
"/v1/tokens": {
/**
* List root tokens
* @description Lists access tokens registered for root access
*/
get: operations["getV1Tokens"];
};
"/v1/account/{account}": {
/**
* Get account info
* @description Returns stored information about the account. Passwords are not included.
*/
get: operations["getV1AccountAccount"];
/**
* Update account info
* @description Updates account information
*/
put: operations["putV1AccountAccount"];
/**
* Remove synced account
* @description Stop syncing IMAP account and delete cached values
*/
delete: operations["deleteV1AccountAccount"];
};
"/v1/blocklist/{listId}": {
/**
* List blocklist entries
* @description List blocked addresses for a list
*/
get: operations["getV1BlocklistListid"];
/**
* Add to blocklist
* @description Add an email address to a blocklist
*/
post: operations["postV1BlocklistListid"];
/**
* Remove from blocklist
* @description Delete a blocked email address from a list
*/
delete: operations["deleteV1BlocklistListid"];
};
"/v1/gateway/{gateway}": {
/**
* Get gateway info
* @description Returns stored information about the gateway. Passwords are not included.
*/
get: operations["getV1GatewayGateway"];
/**
* Remove SMTP gateway
* @description Delete SMTP gateway data
*/
delete: operations["deleteV1GatewayGateway"];
};
"/v1/logs/{account}": {
/**
* Return IMAP logs for an account
* @description Output is a downloadable text file
*/
get: operations["getV1LogsAccount"];
};
"/v1/oauth2/{app}": {
/**
* Get application info
* @description Returns stored information about an OAuth2 application. Secrets are not included.
*/
get: operations["getV1Oauth2App"];
/**
* Update OAuth2 application
* @description Updates OAuth2 application information
*/
put: operations["putV1Oauth2App"];
/**
* Remove OAuth2 application
* @description Delete OAuth2 application data
*/
delete: operations["deleteV1Oauth2App"];
};
"/v1/account/{account}/messages": {
/**
* List messages in a folder
* @description Lists messages in a mailbox folder
*/
get: operations["getV1AccountAccountMessages"];
/**
* Update messages
* @description Update message information for matching emails
*/
put: operations["putV1AccountAccountMessages"];
};
"/v1/account/{account}/mailboxes": {
/**
* List mailboxes
* @description Lists all available mailboxes
*/
get: operations["getV1AccountAccountMailboxes"];
};
"/v1/account/{account}/oauth-token": {
/**
* Get OAuth2 access token
* @description Get the active OAuth2 access token for an account. NB! This endpoint is disabled by default and needs activation on the Service configuration page.
*/
get: operations["getV1AccountAccountOauthtoken"];
};
"/v1/delivery-test/check/{deliveryTest}": {
/**
* Check test status
* @description Check delivery test status
*/
get: operations["getV1DeliverytestCheckDeliverytest"];
};
"/v1/templates/template/{template}": {
/**
* Get template information
* @description Retrieve template content and information
*/
get: operations["getV1TemplatesTemplateTemplate"];
/**
* Update a template
* @description Update a stored template.
*/
put: operations["putV1TemplatesTemplateTemplate"];
/**
* Remove a template
* @description Delete a stored template
*/
delete: operations["deleteV1TemplatesTemplateTemplate"];
};
"/v1/tokens/account/{account}": {
/**
* List account tokens
* @description Lists access tokens registered for an account
*/
get: operations["getV1TokensAccountAccount"];
};
"/v1/account/{account}/message/{message}": {
/**
* Get message information
* @description Returns details of a specific message. By default text content is not included, use textType value to force retrieving text
*/
get: operations["getV1AccountAccountMessageMessage"];
/**
* Update message
* @description Update message information. Mainly this means changing message flag values
*/
put: operations["putV1AccountAccountMessageMessage"];
/**
* Delete message
* @description Move message to Trash or delete it if already in Trash
*/
delete: operations["deleteV1AccountAccountMessageMessage"];
};
"/v1/account/{account}/attachment/{attachment}": {
/**
* Download attachment
* @description Fetches attachment file as a binary stream
*/
get: operations["getV1AccountAccountAttachmentAttachment"];
};
"/v1/account/{account}/text/{text}": {
/**
* Retrieve message text
* @description Retrieves message text
*/
get: operations["getV1AccountAccountTextText"];
};
"/v1/account/{account}/message/{message}/source": {
/**
* Download raw message
* @description Fetches raw message as a stream
*/
get: operations["getV1AccountAccountMessageMessageSource"];
};
"/v1/account": {
/**
* Register new account
* @description Registers new IMAP account to be synced
*/
post: operations["postV1Account"];
};
"/v1/gateway": {
/**
* Register new gateway
* @description Registers a new SMP gateway
*/
post: operations["postV1Gateway"];
};
"/v1/token": {
/**
* Provision an access token
* @description Provisions a new access token for an account
*/
post: operations["postV1Token"];
};
"/v1/verifyAccount": {
/**
* Verify IMAP and SMTP settings
* @description Checks if can connect and authenticate using provided account info
*/
post: operations["postV1Verifyaccount"];
};
"/v1/authentication/form": {
/**
* Generate authentication link
* @description Generates a redirect link to the hosted authentication form
*/
post: operations["postV1AuthenticationForm"];
};
"/v1/templates/template": {
/**
* Create template
* @description Create a new stored template. Templates can be used when sending emails as the content of the message.
*/
post: operations["postV1TemplatesTemplate"];
};
"/v1/account/{account}/search": {
/**
* Search for messages
* @description Filter messages from a mailbox folder by search options. Search is performed against a specific folder and not for the entire account.
*/
post: operations["postV1AccountAccountSearch"];
};
"/v1/account/{account}/mailbox": {
/**
* Rename mailbox
* @description Rename an existing mailbox folder
*/
put: operations["putV1AccountAccountMailbox"];
/**
* Create mailbox
* @description Create new mailbox folder
*/
post: operations["postV1AccountAccountMailbox"];
/**
* Delete mailbox
* @description Delete existing mailbox folder
*/
delete: operations["deleteV1AccountAccountMailbox"];
};
"/v1/account/{account}/message": {
/**
* Upload message
* @description Upload a message structure, compile it into an EML file and store it into selected mailbox.
*/
post: operations["postV1AccountAccountMessage"];
};
"/v1/account/{account}/submit": {
/**
* Submit message for delivery
* @description Submit message for delivery. If reference message ID is provided then EmailEngine adds all headers and flags required for a reply/forward automatically.
*/
post: operations["postV1AccountAccountSubmit"];
};
"/v1/delivery-test/account/{account}": {
/**
* Create delivery test
* @description Initiate a delivery test
*/
post: operations["postV1DeliverytestAccountAccount"];
};
"/v1/outbox/{queueId}": {
/**
* Remove a message
* @description Remove a message from the outbox
*/
delete: operations["deleteV1OutboxQueueid"];
};
"/v1/token/{token}": {
/**
* Remove a token
* @description Delete an access token
*/
delete: operations["deleteV1TokenToken"];
};
"/v1/templates/account/{account}": {
/**
* Flush templates
* @description Delete all stored templates for an account
*/
delete: operations["deleteV1TemplatesAccountAccount"];
};
"/v1/account/{account}/reconnect": {
/**
* Request reconnect
* @description Requests connection to be reconnected
*/
put: operations["putV1AccountAccountReconnect"];
};
"/v1/account/{account}/sync": {
/**
* Request syncing
* @description Requests account syncing to be run immediatelly
*/
put: operations["putV1AccountAccountSync"];
};
"/v1/gateway/edit/{gateway}": {
/**
* Update gateway info
* @description Updates gateway information
*/
put: operations["putV1GatewayEditGateway"];
};
"/v1/account/{account}/messages/move": {
/**
* Move messages
* @description Move messages matching to a search query to another folder
*/
put: operations["putV1AccountAccountMessagesMove"];
};
"/v1/account/{account}/messages/delete": {
/**
* Delete messages
* @description Move messages to Trash or delete these if already in Trash
*/
put: operations["putV1AccountAccountMessagesDelete"];
};
"/v1/account/{account}/message/{message}/move": {
/**
* Move message
* @description Move message to another folder
*/
put: operations["putV1AccountAccountMessageMessageMove"];
};
}
export type webhooks = Record<string, never>;
export interface components {
schemas: {
/** @description List of requested OAuth2 scopes */
scopes: (string)[];
/**
* @description Server response
* @example {
* "error": "invalid_grant",
* "error_description": "Bad Request"
* }
*/
response: Record<string, never>;
/** @description OAuth2 error info if token request failed */
tokenRequest: {
/**
* @description Requested grant type
* @example refresh_token
* @enum {string}
*/
grant?: "refresh_token" | "authorization_code";
/**
* @description OAuth2 provider
* @example gmail
*/
provider?: string;
/**
* @description HTTP status code for the OAuth2 request
* @example 400
*/
status?: number;
/**
* @description OAuth2 client ID used to authenticate this request
* @example 1023289917884-h3nu00e9cb7h252e24c23sv19l8k57ah.apps.googleusercontent.com
*/
clientId?: string;
scopes?: components["schemas"]["scopes"];
response?: components["schemas"]["response"];
};
AccountErrorEntry: {
/** @example Token request failed */
response?: string;
/** @example OauthRenewError */
serverResponseCode?: string;
tokenRequest?: components["schemas"]["tokenRequest"];
};
AccountResponseItem: {
/**
* @description Account ID
* @example example
*/
account: string;
/**
* @description Display name for the account
* @example My Email Account
*/
name?: string;
/**
* @description Default email address of the account
* @example user@example.com
*/
email?: string;
/**
* @description Account state
* @example connected
* @enum {string}
*/
state: "init" | "syncing" | "connecting" | "connected" | "authenticationError" | "connectError" | "unset" | "disconnected";
/**
* @description Account-specific webhook URL
* @example https://myservice.com/imap/webhooks
*/
webhooks?: string;
/**
* @description Proxy URL
* @example socks://proxy.example.com:1080
*/
proxy?: string;
/**
* Format: date-time
* @description Last sync time
* @example 2021-02-17T13:43:18.86Z
*/
syncTime?: string;
lastError?: components["schemas"]["AccountErrorEntry"];
};
AccountEntries: (components["schemas"]["AccountResponseItem"])[];
AccountsFilterResponse: {
/**
* @description How many matching entries
* @example 120
*/
total?: number;
/**
* @description Current page (0-based index)
* @example 0
*/
page?: number;
/**
* @description Total page count
* @example 24
*/
pages?: number;
accounts?: components["schemas"]["AccountEntries"];
};
DetectedAuthenticationInfo: {
/**
* @description Account username
* @example myuser@gmail.com
*/
user?: string;
};
ResolvedServerSettings: {
auth?: components["schemas"]["DetectedAuthenticationInfo"];
/**
* @description Hostname to connect to
* @example imap.gmail.com
*/
host: string;
/**
* @description Service port number
* @example 993
*/
port: number;
/**
* @description Should connection use TLS. Usually true for port 993
* @default false
* @example true
*/
secure?: boolean;
};
DiscoveredEmailSettings: {
imap?: components["schemas"]["ResolvedServerSettings"];
smtp?: components["schemas"]["ResolvedServerSettings"];
/**
* @description Source for the detected info
* @example srv
*/
_source?: string;
};
BlocklistsResponseItem: {
/**
* @description List ID
* @example example
*/
listId: string;
/**
* @description Count of blocked addresses in this list
* @example 12
*/
count?: number;
};
BlocklistsEntries: (components["schemas"]["BlocklistsResponseItem"])[];
BlocklistsResponse: {
/**
* @description How many matching entries
* @example 120
*/
total?: number;
/**
* @description Current page (0-based index)
* @example 0
*/
page?: number;
/**
* @description Total page count
* @example 24
*/
pages?: number;
blocklists?: components["schemas"]["BlocklistsEntries"];
};
GatewayResponseItem: {
/**
* @description Gateway ID
* @example example
*/
gateway: string;
/**
* @description Display name for the gateway
* @example My Email Gateway
*/
name?: string;
/**
* @description Count of email deliveries using this gateway
* @example 100
*/
deliveries?: number;
/**
* Format: date-time
* @description Last delivery time
* @example 2021-02-17T13:43:18.86Z
*/
lastUse?: string;
lastError?: components["schemas"]["AccountErrorEntry"];
};
GatewayEntries: (components["schemas"]["GatewayResponseItem"])[];
GatewaysFilterResponse: {
/**
* @description How many matching entries
* @example 120
*/
total?: number;
/**
* @description Current page (0-based index)
* @example 0
*/
page?: number;
/**
* @description Total page count
* @example 24
*/
pages?: number;
gateways?: components["schemas"]["GatewayEntries"];
};
/** @enum {object} */
LicenseDetails: false;
LicenseResponse: {
/**
* @description Is there an active license registered
* @example true
*/
active?: boolean;
/**
* @description Active license type
* @example EmailEngine License
*/
type?: string;
details?: components["schemas"]["LicenseDetails"];
/**
* @description Are email connections closed
* @example false
*/
suspended?: boolean;
};
OAuth2ResponseItem: {
/**
* @description OAuth2 application ID
* @example AAABhaBPHscAAAAH
*/
id: string;
/**
* @description Display name for the app
* @example My OAuth2 App
*/
name?: string;
/**
* @description OAuth2 application description
* @example App description
*/
description?: string;
/**
* @description OAuth2 provider
* @example gmail
* @enum {string}
*/
provider: "gmail" | "gmailService" | "outlook" | "mailRu";
/**
* @description Is the application enabled
* @example true
*/
enabled?: boolean;
/**
* @description `true` for older OAuth2 apps set via the settings endpoint
* @example true
*/
legacy?: boolean;
/**
* Format: date-time
* @description The time this entry was added
* @example 2021-02-17T13:43:18.86Z
*/
created: string;
/**
* Format: date-time
* @description The time this entry was updated
* @example 2021-02-17T13:43:18.86Z
*/
updated?: string;
/**
* @description Is the application listed in the hosted authentication form
* @example true
*/
includeInListing?: boolean;
/**
* @description Client or Application ID for 3-legged OAuth2 applications
* @example 4f05f488-d858-4f2c-bd12-1039062612fe
*/
clientId?: string;
/**
* @description Client secret for 3-legged OAuth2 applications. Actual value is not revealed.
* @enum {string}
*/
clientSecret?: "******";
/**
* @description Authorization tenant value for Outlook OAuth2 applications
* @example common
*/
authority?: string;
/**
* @description Redirect URL for 3-legged OAuth2 applications
* @example https://myservice.com/oauth
*/
redirectUrl?: string;
/**
* @description Service client ID for 2-legged OAuth2 applications
* @example 9103965568215821627203
*/
serviceClient?: string;
/**
* @description PEM formatted service secret for 2-legged OAuth2 applications. Actual value is not revealed.
* @enum {string}
*/
serviceKey?: "******";
lastError?: components["schemas"]["AccountErrorEntry"];
};
OAuth2Entries: (components["schemas"]["OAuth2ResponseItem"])[];
OAuth2FilterResponse: {
/**
* @description How many matching entries
* @example 120
*/
total?: number;
/**
* @description Current page (0-based index)
* @example 0
*/
page?: number;
/**
* @description Total page count
* @example 24
*/
pages?: number;
apps?: components["schemas"]["OAuth2Entries"];
};
to: (string)[];
/** @description SMTP envelope */
envelope: {
/** @example sender@example.com */
from?: string;
to?: components["schemas"]["to"];
};
/** @description Error information if state=error */
OutboxListProgressError: {
/**
* @description Error message
* @example Authentication failed
*/
message?: string;
/**
* @description Error code
* @example EAUTH
*/
code?: string;
/**
* @description SMTP response code
* @example 502
*/
statusCode?: string;
};
OutboxListProgress: {
/**
* @description Current state of the sending
* @example queued
* @enum {string}
*/
status?: "queued" | "processing" | "submitted" | "error";
/**
* @description Response from the SMTP server. Only if state=processing
* @example 250 Message Accepted
*/
response?: string;
error?: components["schemas"]["OutboxListProgressError"];
};
OutboxListItem: {
/**
* @description Outbox queue ID
* @example 1869c5692565f756b33
*/
queueId?: string;
/**
* @description Account ID
* @example example
*/
account: string;
/**
* @description How this message was added to the queue
* @example smtp
* @enum {string}
*/
source?: "smtp" | "api";
/**
* @description Message ID
* @example <test123@example.com>
*/
messageId?: string;
envelope?: components["schemas"]["envelope"];
/**
* @description Message subject
* @example What a wonderful message
*/
subject?: string;
/**
* Format: date-time
* @description The time this message was queued
* @example 2021-02-17T13:43:18.86Z
*/
created?: string;
/**
* Format: date-time
* @description When this message is supposed to be delivered
* @example 2021-02-17T13:43:18.86Z
*/
scheduled?: string;
/**
* Format: date-time
* @description Next delivery attempt
* @example 2021-02-17T13:43:18.86Z
*/
nextAttempt?: string;
/**
* @description How many times EmailEngine has tried to deliver this email
* @example 3
*/
attemptsMade?: number;
/**
* @description How many delivery attempts to make until message is considered as failed
* @example 3
*/
attempts?: number;
progress?: components["schemas"]["OutboxListProgress"];
};
OutboxListEntries: (components["schemas"]["OutboxListItem"])[];
OutboxListResponse: {
/**
* @description How many matching entries
* @example 120
*/
total?: number;
/**
* @description Current page (0-based index)
* @example 0
*/
page?: number;
/**
* @description Total page count
* @example 24
*/
pages?: number;
messages?: components["schemas"]["OutboxListEntries"];
};
webhookEvents: (string)[];
WebhooksCustomHeader: {
key: string;
/** @default */
value?: string;
};
WebhooksCustomHeaders: (components["schemas"]["WebhooksCustomHeader"])[];
notifyHeaders: (string)[];
/** @description Gmail OAuth2 Extra Scopes (deprecated) */
gmailExtraScopes: (string)[];
/** @description Outlook OAuth2 Extra Scopes (deprecated) */
outlookExtraScopes: (string)[];
/** @description Mail.ru OAuth2 Extra Scopes (deprecated) */
mailRuExtraScopes: (string)[];
/** @description OAuth2 Service Extra Scopes (deprecated) */
serviceExtraScopes: (string)[];
LogSettings: {
/**
* @description Enable logs for all accounts
* @default false
* @example false
*/
all?: boolean;
maxLogLines?: number;
};
/** @description A list of pooled local IP addresses that can be used for IMAP and SMTP connections */
localAddresses: (string)[];
SettingsQueryResponse: {
/** @description If false then do not emit webhooks */
webhooksEnabled?: boolean;
/**
* @description Webhook URL
* @example https://myservice.com/imap/webhooks
*/
webhooks?: string;
webhookEvents?: components["schemas"]["webhookEvents"];
webhooksCustomHeaders?: components["schemas"]["WebhooksCustomHeaders"];
notifyHeaders?: components["schemas"]["notifyHeaders"];
/**
* @description Base URL of EmailEngine
* @example https://emailengine.example.com
*/
serviceUrl?: string;
/** @description If true, then rewrite html links in sent emails to track opens and clicks */
trackSentMessages?: boolean;
/** @description If true, then resolve the category tab for incoming emails */
resolveGmailCategories?: boolean;
/** @description If true, then send "New Email" webhooks for incoming emails only */
inboxNewOnly?: boolean;
/**
* @description HMAC secret for signing public requests
* @example verysecr8t
*/
serviceSecret?: string;
/**
* @description URL to fetch authentication data from
* @example https://myservice.com/authentication
*/
authServer?: string;
/** @description Is the global proxy enabled or not */
proxyEnabled?: boolean;
/**
* @description Proxy URL
* @example socks://proxy.example.com:1080
*/
proxyUrl?: string;
/** @description Include message text in webhook notification */
notifyText?: boolean;
notifyTextSize?: number;
/** @description If true then do not show Gmail account option (deprecated) */
gmailEnabled?: boolean;
/** @description Gmail OAuth2 Client ID (deprecated) */
gmailClientId?: string;
/** @description Gmail OAuth2 Client Secret (deprecated) */
gmailClientSecret?: string;
/** @description Gmail OAuth2 Callback URL (deprecated) */
gmailRedirectUrl?: string;
gmailExtraScopes?: components["schemas"]["gmailExtraScopes"];
/** @description If true then do not show Outlook account option (deprecated) */
outlookEnabled?: boolean;
/** @description Outlook OAuth2 Client ID (deprecated) */
outlookClientId?: string;
/** @description Outlook OAuth2 Client Secret (deprecated) */
outlookClientSecret?: string;
/** @description Outlook OAuth2 Callback URL (deprecated) */
outlookRedirectUrl?: string;
/**
* @description Outlook OAuth2 authority (deprecated)
* @example consumers
* @enum {string}
*/
outlookAuthority?: "consumers" | "organizations" | "common";
outlookExtraScopes?: components["schemas"]["outlookExtraScopes"];
/** @description If true then do not show Mail.ru account option (deprecated) */
mailRuEnabled?: boolean;
/** @description Mail.ru OAuth2 Client ID (deprecated) */
mailRuClientId?: string;
/** @description Mail.ru OAuth2 Client Secret (deprecated) */
mailRuClientSecret?: string;
/** @description Mail.ru OAuth2 Callback URL (deprecated) */
mailRuRedirectUrl?: string;
mailRuExtraScopes?: components["schemas"]["mailRuExtraScopes"];
/** @description OAuth2 Service Client ID (deprecated) */
serviceClient?: string;
/** @description OAuth2 Secret Service Key (deprecated) */
serviceKey?: string;
serviceExtraScopes?: components["schemas"]["serviceExtraScopes"];
logs?: components["schemas"]["LogSettings"];
/**
* @description How to select local IP address for IMAP connections
* @enum {string}
*/
imapStrategy?: "default" | "dedicated" | "random";
/**
* @description How to select local IP address for SMTP connections
* @enum {string}
*/
smtpStrategy?: "default" | "dedicated" | "random";
localAddresses?: components["schemas"]["localAddresses"];
/** @description Enable SMTP Interface */
smtpServerEnabled?: boolean;
/** @description SMTP Interface Port */
smtpServerPort?: number;
/** @description SMTP Host to bind to */