hostinger-mail-api-sdk 1.0.2

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 (77) hide show
  1. package/.github/workflows/build-release.yaml +91 -0
  2. package/CODEOWNERS +1 -0
  3. package/README.md +9 -0
  4. package/api.ts +3760 -0
  5. package/base.ts +83 -0
  6. package/common.ts +111 -0
  7. package/configuration.ts +72 -0
  8. package/dist/api.d.ts +2426 -0
  9. package/dist/api.js +2484 -0
  10. package/dist/base.d.ts +63 -0
  11. package/dist/base.js +62 -0
  12. package/dist/common.d.ts +47 -0
  13. package/dist/common.js +118 -0
  14. package/dist/configuration.d.ts +51 -0
  15. package/dist/configuration.js +37 -0
  16. package/dist/esm/api.d.ts +2426 -0
  17. package/dist/esm/api.js +2457 -0
  18. package/dist/esm/base.d.ts +63 -0
  19. package/dist/esm/base.js +57 -0
  20. package/dist/esm/common.d.ts +47 -0
  21. package/dist/esm/common.js +109 -0
  22. package/dist/esm/configuration.d.ts +51 -0
  23. package/dist/esm/configuration.js +33 -0
  24. package/dist/esm/index.d.ts +10 -0
  25. package/dist/esm/index.js +12 -0
  26. package/dist/index.d.ts +10 -0
  27. package/dist/index.js +28 -0
  28. package/docs/AccountApi.md +55 -0
  29. package/docs/Error.md +25 -0
  30. package/docs/FoldersApi.md +259 -0
  31. package/docs/MessagesApi.md +860 -0
  32. package/docs/Pagination.md +27 -0
  33. package/docs/QuotaApi.md +63 -0
  34. package/docs/SendApi.md +68 -0
  35. package/docs/V1FolderMessagesCollection.md +23 -0
  36. package/docs/V1FolderMessagesDeleteBulkRequest.md +21 -0
  37. package/docs/V1FolderMessagesFlagsBulkRequest.md +25 -0
  38. package/docs/V1FolderMessagesFlagsRequest.md +23 -0
  39. package/docs/V1FolderMessagesMessage.md +47 -0
  40. package/docs/V1FolderMessagesMessageAddress.md +23 -0
  41. package/docs/V1FolderMessagesMessageAttachment.md +31 -0
  42. package/docs/V1FolderMessagesMessageText.md +23 -0
  43. package/docs/V1FolderMessagesMessageTextResource.md +21 -0
  44. package/docs/V1FolderMessagesMoveBulkRequest.md +23 -0
  45. package/docs/V1FolderMessagesMoveRequest.md +21 -0
  46. package/docs/V1FolderMessagesResource.md +21 -0
  47. package/docs/V1FolderMessagesSearchRequest.md +45 -0
  48. package/docs/V1FolderMessagesUpdateFlagsResult.md +21 -0
  49. package/docs/V1FolderMessagesUpdateFlagsResultData.md +22 -0
  50. package/docs/V1FolderMessagesUpdateFlagsResultDataFailedInner.md +22 -0
  51. package/docs/V1FoldersCollection.md +23 -0
  52. package/docs/V1FoldersCreateRequest.md +21 -0
  53. package/docs/V1FoldersFolder.md +31 -0
  54. package/docs/V1FoldersResource.md +21 -0
  55. package/docs/V1FoldersUpdateRequest.md +21 -0
  56. package/docs/V1MeMailbox.md +23 -0
  57. package/docs/V1MeResource.md +21 -0
  58. package/docs/V1MeResourceData.md +22 -0
  59. package/docs/V1QuotaQuota.md +29 -0
  60. package/docs/V1QuotaQuotaResource.md +27 -0
  61. package/docs/V1QuotaResource.md +21 -0
  62. package/docs/V1SendAttachment.md +29 -0
  63. package/docs/V1SendRequest.md +35 -0
  64. package/docs/V1WebhooksCollection.md +23 -0
  65. package/docs/V1WebhooksCreateRequest.md +29 -0
  66. package/docs/V1WebhooksResource.md +21 -0
  67. package/docs/V1WebhooksResourceWithSecret.md +21 -0
  68. package/docs/V1WebhooksTestResult.md +21 -0
  69. package/docs/V1WebhooksTestResultData.md +24 -0
  70. package/docs/V1WebhooksUpdateRequest.md +29 -0
  71. package/docs/V1WebhooksWebhook.md +39 -0
  72. package/docs/V1WebhooksWebhookWithSecret.md +41 -0
  73. package/docs/WebhooksApi.md +439 -0
  74. package/index.ts +15 -0
  75. package/package.json +34 -0
  76. package/tsconfig.esm.json +7 -0
  77. package/tsconfig.json +18 -0
package/dist/api.d.ts ADDED
@@ -0,0 +1,2426 @@
1
+ /**
2
+ * Hostinger Email API
3
+ *
4
+ * API Version: 1.0.0
5
+ *
6
+ * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
+ * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
8
+ */
9
+ import type { Configuration } from './configuration';
10
+ import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
11
+ import type { RequestArgs } from './base';
12
+ import { BaseAPI } from './base';
13
+ /**
14
+ * Standard error envelope. Frontend translations key off `code`, never off `error`.
15
+ * @export
16
+ * @interface ModelError
17
+ */
18
+ export interface ModelError {
19
+ /**
20
+ * Human-readable error message.
21
+ * @type {string}
22
+ * @memberof ModelError
23
+ */
24
+ 'error': string;
25
+ /**
26
+ * Machine-readable error code in SCREAMING_SNAKE_CASE.
27
+ * @type {string}
28
+ * @memberof ModelError
29
+ */
30
+ 'code': string;
31
+ /**
32
+ * Additional structured context for the error. May be omitted.
33
+ * @type {{ [key: string]: any; }}
34
+ * @memberof ModelError
35
+ */
36
+ 'params': {
37
+ [key: string]: any;
38
+ };
39
+ }
40
+ /**
41
+ * Pagination metadata for paginated collections.
42
+ * @export
43
+ * @interface Pagination
44
+ */
45
+ export interface Pagination {
46
+ /**
47
+ * Current page number (1-based).
48
+ * @type {number}
49
+ * @memberof Pagination
50
+ */
51
+ 'page': number;
52
+ /**
53
+ * Items per page.
54
+ * @type {number}
55
+ * @memberof Pagination
56
+ */
57
+ 'perPage': number;
58
+ /**
59
+ * Total number of items across all pages.
60
+ * @type {number}
61
+ * @memberof Pagination
62
+ */
63
+ 'total': number;
64
+ /**
65
+ * Total number of pages.
66
+ * @type {number}
67
+ * @memberof Pagination
68
+ */
69
+ 'totalPages': number;
70
+ }
71
+ /**
72
+ * Paginated list of messages.
73
+ * @export
74
+ * @interface V1FolderMessagesCollection
75
+ */
76
+ export interface V1FolderMessagesCollection {
77
+ /**
78
+ *
79
+ * @type {Array<V1FolderMessagesMessage>}
80
+ * @memberof V1FolderMessagesCollection
81
+ */
82
+ 'data': Array<V1FolderMessagesMessage>;
83
+ /**
84
+ *
85
+ * @type {Pagination}
86
+ * @memberof V1FolderMessagesCollection
87
+ */
88
+ 'pagination': Pagination;
89
+ }
90
+ /**
91
+ * Body for permanently deleting multiple messages.
92
+ * @export
93
+ * @interface V1FolderMessagesDeleteBulkRequest
94
+ */
95
+ export interface V1FolderMessagesDeleteBulkRequest {
96
+ /**
97
+ * Message UIDs to delete. 1-100 entries, each > 0.
98
+ * @type {Array<number>}
99
+ * @memberof V1FolderMessagesDeleteBulkRequest
100
+ */
101
+ 'uids': Array<number>;
102
+ }
103
+ /**
104
+ * Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
105
+ * @export
106
+ * @interface V1FolderMessagesFlagsBulkRequest
107
+ */
108
+ export interface V1FolderMessagesFlagsBulkRequest {
109
+ /**
110
+ * Message UIDs to update. 1-100 entries, each > 0.
111
+ * @type {Array<number>}
112
+ * @memberof V1FolderMessagesFlagsBulkRequest
113
+ */
114
+ 'uids': Array<number>;
115
+ /**
116
+ *
117
+ * @type {Array<string>}
118
+ * @memberof V1FolderMessagesFlagsBulkRequest
119
+ */
120
+ 'addFlags': Array<string>;
121
+ /**
122
+ *
123
+ * @type {Array<string>}
124
+ * @memberof V1FolderMessagesFlagsBulkRequest
125
+ */
126
+ 'removeFlags': Array<string>;
127
+ }
128
+ /**
129
+ * Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
130
+ * @export
131
+ * @interface V1FolderMessagesFlagsRequest
132
+ */
133
+ export interface V1FolderMessagesFlagsRequest {
134
+ /**
135
+ *
136
+ * @type {Array<string>}
137
+ * @memberof V1FolderMessagesFlagsRequest
138
+ */
139
+ 'addFlags': Array<string>;
140
+ /**
141
+ *
142
+ * @type {Array<string>}
143
+ * @memberof V1FolderMessagesFlagsRequest
144
+ */
145
+ 'removeFlags': Array<string>;
146
+ }
147
+ /**
148
+ * A message in a folder of the managed mailbox.
149
+ * @export
150
+ * @interface V1FolderMessagesMessage
151
+ */
152
+ export interface V1FolderMessagesMessage {
153
+ /**
154
+ *
155
+ * @type {number}
156
+ * @memberof V1FolderMessagesMessage
157
+ */
158
+ 'uid': number;
159
+ /**
160
+ *
161
+ * @type {string}
162
+ * @memberof V1FolderMessagesMessage
163
+ */
164
+ 'path': string;
165
+ /**
166
+ *
167
+ * @type {string}
168
+ * @memberof V1FolderMessagesMessage
169
+ */
170
+ 'date': string;
171
+ /**
172
+ *
173
+ * @type {Array<string>}
174
+ * @memberof V1FolderMessagesMessage
175
+ */
176
+ 'flags': Array<string>;
177
+ /**
178
+ *
179
+ * @type {boolean}
180
+ * @memberof V1FolderMessagesMessage
181
+ */
182
+ 'unseen': boolean;
183
+ /**
184
+ *
185
+ * @type {number}
186
+ * @memberof V1FolderMessagesMessage
187
+ */
188
+ 'size': number;
189
+ /**
190
+ *
191
+ * @type {string}
192
+ * @memberof V1FolderMessagesMessage
193
+ */
194
+ 'subject': string | null;
195
+ /**
196
+ *
197
+ * @type {V1FolderMessagesMessageAddress}
198
+ * @memberof V1FolderMessagesMessage
199
+ */
200
+ 'from': V1FolderMessagesMessageAddress | null;
201
+ /**
202
+ *
203
+ * @type {Array<V1FolderMessagesMessageAddress>}
204
+ * @memberof V1FolderMessagesMessage
205
+ */
206
+ 'to': Array<V1FolderMessagesMessageAddress>;
207
+ /**
208
+ *
209
+ * @type {Array<V1FolderMessagesMessageAddress>}
210
+ * @memberof V1FolderMessagesMessage
211
+ */
212
+ 'cc': Array<V1FolderMessagesMessageAddress>;
213
+ /**
214
+ *
215
+ * @type {Array<V1FolderMessagesMessageAddress>}
216
+ * @memberof V1FolderMessagesMessage
217
+ */
218
+ 'bcc': Array<V1FolderMessagesMessageAddress>;
219
+ /**
220
+ *
221
+ * @type {string}
222
+ * @memberof V1FolderMessagesMessage
223
+ */
224
+ 'messageId': string | null;
225
+ /**
226
+ *
227
+ * @type {string}
228
+ * @memberof V1FolderMessagesMessage
229
+ */
230
+ 'inReplyTo': string | null;
231
+ /**
232
+ *
233
+ * @type {Array<V1FolderMessagesMessageAttachment>}
234
+ * @memberof V1FolderMessagesMessage
235
+ */
236
+ 'attachments': Array<V1FolderMessagesMessageAttachment>;
237
+ }
238
+ /**
239
+ * A single email address with optional display name.
240
+ * @export
241
+ * @interface V1FolderMessagesMessageAddress
242
+ */
243
+ export interface V1FolderMessagesMessageAddress {
244
+ /**
245
+ *
246
+ * @type {string}
247
+ * @memberof V1FolderMessagesMessageAddress
248
+ */
249
+ 'name': string;
250
+ /**
251
+ *
252
+ * @type {string}
253
+ * @memberof V1FolderMessagesMessageAddress
254
+ */
255
+ 'address': string;
256
+ }
257
+ /**
258
+ * Attachment metadata attached to a message.
259
+ * @export
260
+ * @interface V1FolderMessagesMessageAttachment
261
+ */
262
+ export interface V1FolderMessagesMessageAttachment {
263
+ /**
264
+ * Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint.
265
+ * @type {string}
266
+ * @memberof V1FolderMessagesMessageAttachment
267
+ */
268
+ 'id': string;
269
+ /**
270
+ *
271
+ * @type {string}
272
+ * @memberof V1FolderMessagesMessageAttachment
273
+ */
274
+ 'contentType': string;
275
+ /**
276
+ *
277
+ * @type {number}
278
+ * @memberof V1FolderMessagesMessageAttachment
279
+ */
280
+ 'sizeBytes': number;
281
+ /**
282
+ *
283
+ * @type {boolean}
284
+ * @memberof V1FolderMessagesMessageAttachment
285
+ */
286
+ 'inline': boolean;
287
+ /**
288
+ *
289
+ * @type {string}
290
+ * @memberof V1FolderMessagesMessageAttachment
291
+ */
292
+ 'filename': string | null;
293
+ /**
294
+ *
295
+ * @type {string}
296
+ * @memberof V1FolderMessagesMessageAttachment
297
+ */
298
+ 'contentId': string | null;
299
+ }
300
+ /**
301
+ * Rendered text and HTML parts of a message.
302
+ * @export
303
+ * @interface V1FolderMessagesMessageText
304
+ */
305
+ export interface V1FolderMessagesMessageText {
306
+ /**
307
+ *
308
+ * @type {string}
309
+ * @memberof V1FolderMessagesMessageText
310
+ */
311
+ 'text': string;
312
+ /**
313
+ *
314
+ * @type {string}
315
+ * @memberof V1FolderMessagesMessageText
316
+ */
317
+ 'html': string;
318
+ }
319
+ /**
320
+ * Single message text payload.
321
+ * @export
322
+ * @interface V1FolderMessagesMessageTextResource
323
+ */
324
+ export interface V1FolderMessagesMessageTextResource {
325
+ /**
326
+ *
327
+ * @type {V1FolderMessagesMessageText}
328
+ * @memberof V1FolderMessagesMessageTextResource
329
+ */
330
+ 'data': V1FolderMessagesMessageText;
331
+ }
332
+ /**
333
+ * Body for moving multiple messages to a target folder.
334
+ * @export
335
+ * @interface V1FolderMessagesMoveBulkRequest
336
+ */
337
+ export interface V1FolderMessagesMoveBulkRequest {
338
+ /**
339
+ * Message UIDs to move. 1-100 entries, each > 0.
340
+ * @type {Array<number>}
341
+ * @memberof V1FolderMessagesMoveBulkRequest
342
+ */
343
+ 'uids': Array<number>;
344
+ /**
345
+ * Destination folder path.
346
+ * @type {string}
347
+ * @memberof V1FolderMessagesMoveBulkRequest
348
+ */
349
+ 'targetFolder': string;
350
+ }
351
+ /**
352
+ * Body for moving a single message to a target folder.
353
+ * @export
354
+ * @interface V1FolderMessagesMoveRequest
355
+ */
356
+ export interface V1FolderMessagesMoveRequest {
357
+ /**
358
+ * Destination folder path.
359
+ * @type {string}
360
+ * @memberof V1FolderMessagesMoveRequest
361
+ */
362
+ 'targetFolder': string;
363
+ }
364
+ /**
365
+ * Single message payload.
366
+ * @export
367
+ * @interface V1FolderMessagesResource
368
+ */
369
+ export interface V1FolderMessagesResource {
370
+ /**
371
+ *
372
+ * @type {V1FolderMessagesMessage}
373
+ * @memberof V1FolderMessagesResource
374
+ */
375
+ 'data': V1FolderMessagesMessage;
376
+ }
377
+ /**
378
+ * Search criteria. All fields optional; combine to narrow results.
379
+ * @export
380
+ * @interface V1FolderMessagesSearchRequest
381
+ */
382
+ export interface V1FolderMessagesSearchRequest {
383
+ /**
384
+ *
385
+ * @type {string}
386
+ * @memberof V1FolderMessagesSearchRequest
387
+ */
388
+ 'since': string;
389
+ /**
390
+ *
391
+ * @type {string}
392
+ * @memberof V1FolderMessagesSearchRequest
393
+ */
394
+ 'before': string;
395
+ /**
396
+ *
397
+ * @type {Array<string>}
398
+ * @memberof V1FolderMessagesSearchRequest
399
+ */
400
+ 'flags': Array<string>;
401
+ /**
402
+ *
403
+ * @type {string}
404
+ * @memberof V1FolderMessagesSearchRequest
405
+ */
406
+ 'uid': string;
407
+ /**
408
+ *
409
+ * @type {string}
410
+ * @memberof V1FolderMessagesSearchRequest
411
+ */
412
+ 'subject': string;
413
+ /**
414
+ *
415
+ * @type {string}
416
+ * @memberof V1FolderMessagesSearchRequest
417
+ */
418
+ 'from': string;
419
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof V1FolderMessagesSearchRequest
423
+ */
424
+ 'to': string;
425
+ /**
426
+ *
427
+ * @type {string}
428
+ * @memberof V1FolderMessagesSearchRequest
429
+ */
430
+ 'cc': string;
431
+ /**
432
+ *
433
+ * @type {string}
434
+ * @memberof V1FolderMessagesSearchRequest
435
+ */
436
+ 'body': string;
437
+ /**
438
+ *
439
+ * @type {string}
440
+ * @memberof V1FolderMessagesSearchRequest
441
+ */
442
+ 'header': string;
443
+ /**
444
+ *
445
+ * @type {number}
446
+ * @memberof V1FolderMessagesSearchRequest
447
+ */
448
+ 'larger': number;
449
+ /**
450
+ *
451
+ * @type {number}
452
+ * @memberof V1FolderMessagesSearchRequest
453
+ */
454
+ 'smaller': number;
455
+ /**
456
+ *
457
+ * @type {string}
458
+ * @memberof V1FolderMessagesSearchRequest
459
+ */
460
+ 'text': string;
461
+ }
462
+ /**
463
+ * Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
464
+ * @export
465
+ * @interface V1FolderMessagesUpdateFlagsResult
466
+ */
467
+ export interface V1FolderMessagesUpdateFlagsResult {
468
+ /**
469
+ *
470
+ * @type {V1FolderMessagesUpdateFlagsResultData}
471
+ * @memberof V1FolderMessagesUpdateFlagsResult
472
+ */
473
+ 'data': V1FolderMessagesUpdateFlagsResultData;
474
+ }
475
+ /**
476
+ *
477
+ * @export
478
+ * @interface V1FolderMessagesUpdateFlagsResultData
479
+ */
480
+ export interface V1FolderMessagesUpdateFlagsResultData {
481
+ /**
482
+ *
483
+ * @type {Array<number>}
484
+ * @memberof V1FolderMessagesUpdateFlagsResultData
485
+ */
486
+ 'successful': Array<number>;
487
+ /**
488
+ *
489
+ * @type {Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>}
490
+ * @memberof V1FolderMessagesUpdateFlagsResultData
491
+ */
492
+ 'failed': Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>;
493
+ }
494
+ /**
495
+ *
496
+ * @export
497
+ * @interface V1FolderMessagesUpdateFlagsResultDataFailedInner
498
+ */
499
+ export interface V1FolderMessagesUpdateFlagsResultDataFailedInner {
500
+ /**
501
+ *
502
+ * @type {number}
503
+ * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
504
+ */
505
+ 'uid': number;
506
+ /**
507
+ *
508
+ * @type {string}
509
+ * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
510
+ */
511
+ 'reason': string;
512
+ }
513
+ /**
514
+ * Paginated list of folders.
515
+ * @export
516
+ * @interface V1FoldersCollection
517
+ */
518
+ export interface V1FoldersCollection {
519
+ /**
520
+ *
521
+ * @type {Array<V1FoldersFolder>}
522
+ * @memberof V1FoldersCollection
523
+ */
524
+ 'data': Array<V1FoldersFolder>;
525
+ /**
526
+ *
527
+ * @type {Pagination}
528
+ * @memberof V1FoldersCollection
529
+ */
530
+ 'pagination': Pagination;
531
+ }
532
+ /**
533
+ * Body for creating a folder.
534
+ * @export
535
+ * @interface V1FoldersCreateRequest
536
+ */
537
+ export interface V1FoldersCreateRequest {
538
+ /**
539
+ * Folder name. Length 1-100 after trimming.
540
+ * @type {string}
541
+ * @memberof V1FoldersCreateRequest
542
+ */
543
+ 'name': string;
544
+ }
545
+ /**
546
+ * A folder (IMAP mailbox) in the managed mailbox.
547
+ * @export
548
+ * @interface V1FoldersFolder
549
+ */
550
+ export interface V1FoldersFolder {
551
+ /**
552
+ * Full hierarchical folder path including the delimiter.
553
+ * @type {string}
554
+ * @memberof V1FoldersFolder
555
+ */
556
+ 'path': string;
557
+ /**
558
+ * Leaf name of the folder.
559
+ * @type {string}
560
+ * @memberof V1FoldersFolder
561
+ */
562
+ 'name': string;
563
+ /**
564
+ * Hierarchy delimiter used by the IMAP server.
565
+ * @type {string}
566
+ * @memberof V1FoldersFolder
567
+ */
568
+ 'delimiter': string;
569
+ /**
570
+ * IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders.
571
+ * @type {string}
572
+ * @memberof V1FoldersFolder
573
+ */
574
+ 'specialUse': string | null;
575
+ /**
576
+ * Total number of messages in the folder.
577
+ * @type {number}
578
+ * @memberof V1FoldersFolder
579
+ */
580
+ 'messageCount': number;
581
+ /**
582
+ * Number of unread messages in the folder.
583
+ * @type {number}
584
+ * @memberof V1FoldersFolder
585
+ */
586
+ 'unreadCount': number;
587
+ }
588
+ /**
589
+ * Single folder payload.
590
+ * @export
591
+ * @interface V1FoldersResource
592
+ */
593
+ export interface V1FoldersResource {
594
+ /**
595
+ *
596
+ * @type {V1FoldersFolder}
597
+ * @memberof V1FoldersResource
598
+ */
599
+ 'data': V1FoldersFolder;
600
+ }
601
+ /**
602
+ * Body for renaming a folder.
603
+ * @export
604
+ * @interface V1FoldersUpdateRequest
605
+ */
606
+ export interface V1FoldersUpdateRequest {
607
+ /**
608
+ * New folder name. Length 1-100 after trimming.
609
+ * @type {string}
610
+ * @memberof V1FoldersUpdateRequest
611
+ */
612
+ 'name': string;
613
+ }
614
+ /**
615
+ * A mailbox the authenticated API token can manage.
616
+ * @export
617
+ * @interface V1MeMailbox
618
+ */
619
+ export interface V1MeMailbox {
620
+ /**
621
+ * Unique identifier of the mailbox.
622
+ * @type {string}
623
+ * @memberof V1MeMailbox
624
+ */
625
+ 'resourceId': string;
626
+ /**
627
+ * Email address of the mailbox.
628
+ * @type {string}
629
+ * @memberof V1MeMailbox
630
+ */
631
+ 'address': string;
632
+ }
633
+ /**
634
+ * Authenticated account payload.
635
+ * @export
636
+ * @interface V1MeResource
637
+ */
638
+ export interface V1MeResource {
639
+ /**
640
+ *
641
+ * @type {V1MeResourceData}
642
+ * @memberof V1MeResource
643
+ */
644
+ 'data': V1MeResourceData;
645
+ }
646
+ /**
647
+ *
648
+ * @export
649
+ * @interface V1MeResourceData
650
+ */
651
+ export interface V1MeResourceData {
652
+ /**
653
+ * Identifier of the order this API token is scoped to.
654
+ * @type {string}
655
+ * @memberof V1MeResourceData
656
+ */
657
+ 'orderResourceId': string;
658
+ /**
659
+ * Mailboxes that the authenticated API token can manage.
660
+ * @type {Array<V1MeMailbox>}
661
+ * @memberof V1MeResourceData
662
+ */
663
+ 'mailboxes': Array<V1MeMailbox>;
664
+ }
665
+ /**
666
+ * Storage and message quota usage for the managed mailbox.
667
+ * @export
668
+ * @interface V1QuotaQuota
669
+ */
670
+ export interface V1QuotaQuota {
671
+ /**
672
+ * Per-resource quota breakdown reported by the IMAP server.
673
+ * @type {Array<V1QuotaQuotaResource>}
674
+ * @memberof V1QuotaQuota
675
+ */
676
+ 'quotas': Array<V1QuotaQuotaResource>;
677
+ /**
678
+ * Aggregate storage usage across all resources, in bytes.
679
+ * @type {number}
680
+ * @memberof V1QuotaQuota
681
+ */
682
+ 'totalUsage': number;
683
+ /**
684
+ * Aggregate storage limit across all resources, in bytes.
685
+ * @type {number}
686
+ * @memberof V1QuotaQuota
687
+ */
688
+ 'totalLimit': number;
689
+ /**
690
+ * Aggregate storage usage as a percentage of the total limit.
691
+ * @type {number}
692
+ * @memberof V1QuotaQuota
693
+ */
694
+ 'totalPercentage': number;
695
+ /**
696
+ * Whether the IMAP server reports quota information for this mailbox.
697
+ * @type {boolean}
698
+ * @memberof V1QuotaQuota
699
+ */
700
+ 'supported': boolean;
701
+ }
702
+ /**
703
+ * Usage and limit for a single IMAP quota resource.
704
+ * @export
705
+ * @interface V1QuotaQuotaResource
706
+ */
707
+ export interface V1QuotaQuotaResource {
708
+ /**
709
+ * Name of the quota resource as reported by the IMAP server.
710
+ * @type {string}
711
+ * @memberof V1QuotaQuotaResource
712
+ */
713
+ 'resourceName': string;
714
+ /**
715
+ * Current usage of the resource (bytes for STORAGE, count for MESSAGE).
716
+ * @type {number}
717
+ * @memberof V1QuotaQuotaResource
718
+ */
719
+ 'usage': number;
720
+ /**
721
+ * Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE).
722
+ * @type {number}
723
+ * @memberof V1QuotaQuotaResource
724
+ */
725
+ 'limit': number;
726
+ /**
727
+ * Usage as a percentage of the limit.
728
+ * @type {number}
729
+ * @memberof V1QuotaQuotaResource
730
+ */
731
+ 'percentage': number;
732
+ }
733
+ /**
734
+ * Mailbox quota payload.
735
+ * @export
736
+ * @interface V1QuotaResource
737
+ */
738
+ export interface V1QuotaResource {
739
+ /**
740
+ *
741
+ * @type {V1QuotaQuota}
742
+ * @memberof V1QuotaResource
743
+ */
744
+ 'data': V1QuotaQuota;
745
+ }
746
+ /**
747
+ * Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
748
+ * @export
749
+ * @interface V1SendAttachment
750
+ */
751
+ export interface V1SendAttachment {
752
+ /**
753
+ *
754
+ * @type {string}
755
+ * @memberof V1SendAttachment
756
+ */
757
+ 'filename': string;
758
+ /**
759
+ * Attachment body. Base64-encoded by default; set encoding to switch.
760
+ * @type {string}
761
+ * @memberof V1SendAttachment
762
+ */
763
+ 'content': string;
764
+ /**
765
+ *
766
+ * @type {string}
767
+ * @memberof V1SendAttachment
768
+ */
769
+ 'contentType': string;
770
+ /**
771
+ * Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">.
772
+ * @type {string}
773
+ * @memberof V1SendAttachment
774
+ */
775
+ 'cid': string;
776
+ /**
777
+ * Encoding of content. Defaults to base64.
778
+ * @type {string}
779
+ * @memberof V1SendAttachment
780
+ */
781
+ 'encoding': string;
782
+ }
783
+ /**
784
+ * Outgoing message payload. At least one of to, cc, or bcc must be present.
785
+ * @export
786
+ * @interface V1SendRequest
787
+ */
788
+ export interface V1SendRequest {
789
+ /**
790
+ *
791
+ * @type {Array<string>}
792
+ * @memberof V1SendRequest
793
+ */
794
+ 'to': Array<string>;
795
+ /**
796
+ *
797
+ * @type {string}
798
+ * @memberof V1SendRequest
799
+ */
800
+ 'displayName': string;
801
+ /**
802
+ *
803
+ * @type {Array<string>}
804
+ * @memberof V1SendRequest
805
+ */
806
+ 'cc': Array<string>;
807
+ /**
808
+ *
809
+ * @type {Array<string>}
810
+ * @memberof V1SendRequest
811
+ */
812
+ 'bcc': Array<string>;
813
+ /**
814
+ *
815
+ * @type {string}
816
+ * @memberof V1SendRequest
817
+ */
818
+ 'subject': string;
819
+ /**
820
+ *
821
+ * @type {string}
822
+ * @memberof V1SendRequest
823
+ */
824
+ 'text': string;
825
+ /**
826
+ *
827
+ * @type {string}
828
+ * @memberof V1SendRequest
829
+ */
830
+ 'html': string;
831
+ /**
832
+ *
833
+ * @type {Array<V1SendAttachment>}
834
+ * @memberof V1SendRequest
835
+ */
836
+ 'attachments': Array<V1SendAttachment>;
837
+ }
838
+ /**
839
+ * Paginated list of webhooks.
840
+ * @export
841
+ * @interface V1WebhooksCollection
842
+ */
843
+ export interface V1WebhooksCollection {
844
+ /**
845
+ *
846
+ * @type {Array<V1WebhooksWebhook>}
847
+ * @memberof V1WebhooksCollection
848
+ */
849
+ 'data': Array<V1WebhooksWebhook>;
850
+ /**
851
+ *
852
+ * @type {Pagination}
853
+ * @memberof V1WebhooksCollection
854
+ */
855
+ 'pagination': Pagination;
856
+ }
857
+ /**
858
+ * Body for creating a webhook.
859
+ * @export
860
+ * @interface V1WebhooksCreateRequest
861
+ */
862
+ export interface V1WebhooksCreateRequest {
863
+ /**
864
+ *
865
+ * @type {string}
866
+ * @memberof V1WebhooksCreateRequest
867
+ */
868
+ 'name': string;
869
+ /**
870
+ *
871
+ * @type {string}
872
+ * @memberof V1WebhooksCreateRequest
873
+ */
874
+ 'description': string | null;
875
+ /**
876
+ *
877
+ * @type {Array<string>}
878
+ * @memberof V1WebhooksCreateRequest
879
+ */
880
+ 'events': Array<V1WebhooksCreateRequestEventsEnum>;
881
+ /**
882
+ *
883
+ * @type {string}
884
+ * @memberof V1WebhooksCreateRequest
885
+ */
886
+ 'status': V1WebhooksCreateRequestStatusEnum;
887
+ /**
888
+ *
889
+ * @type {string}
890
+ * @memberof V1WebhooksCreateRequest
891
+ */
892
+ 'url': string;
893
+ }
894
+ export declare const V1WebhooksCreateRequestEventsEnum: {
895
+ readonly MessageReceived: "message.received";
896
+ };
897
+ export type V1WebhooksCreateRequestEventsEnum = typeof V1WebhooksCreateRequestEventsEnum[keyof typeof V1WebhooksCreateRequestEventsEnum];
898
+ export declare const V1WebhooksCreateRequestStatusEnum: {
899
+ readonly Active: "active";
900
+ readonly Paused: "paused";
901
+ readonly Disabled: "disabled";
902
+ };
903
+ export type V1WebhooksCreateRequestStatusEnum = typeof V1WebhooksCreateRequestStatusEnum[keyof typeof V1WebhooksCreateRequestStatusEnum];
904
+ /**
905
+ * Single webhook payload.
906
+ * @export
907
+ * @interface V1WebhooksResource
908
+ */
909
+ export interface V1WebhooksResource {
910
+ /**
911
+ *
912
+ * @type {V1WebhooksWebhook}
913
+ * @memberof V1WebhooksResource
914
+ */
915
+ 'data': V1WebhooksWebhook;
916
+ }
917
+ /**
918
+ * Single webhook payload including the one-time secret.
919
+ * @export
920
+ * @interface V1WebhooksResourceWithSecret
921
+ */
922
+ export interface V1WebhooksResourceWithSecret {
923
+ /**
924
+ *
925
+ * @type {V1WebhooksWebhookWithSecret}
926
+ * @memberof V1WebhooksResourceWithSecret
927
+ */
928
+ 'data': V1WebhooksWebhookWithSecret;
929
+ }
930
+ /**
931
+ * Result of a webhook test delivery.
932
+ * @export
933
+ * @interface V1WebhooksTestResult
934
+ */
935
+ export interface V1WebhooksTestResult {
936
+ /**
937
+ *
938
+ * @type {V1WebhooksTestResultData}
939
+ * @memberof V1WebhooksTestResult
940
+ */
941
+ 'data': V1WebhooksTestResultData;
942
+ }
943
+ /**
944
+ *
945
+ * @export
946
+ * @interface V1WebhooksTestResultData
947
+ */
948
+ export interface V1WebhooksTestResultData {
949
+ /**
950
+ *
951
+ * @type {number}
952
+ * @memberof V1WebhooksTestResultData
953
+ */
954
+ 'httpStatus': number;
955
+ /**
956
+ *
957
+ * @type {boolean}
958
+ * @memberof V1WebhooksTestResultData
959
+ */
960
+ 'success': boolean;
961
+ /**
962
+ *
963
+ * @type {string}
964
+ * @memberof V1WebhooksTestResultData
965
+ */
966
+ 'error': string | null;
967
+ }
968
+ /**
969
+ * Body for partially updating a webhook. All fields optional; only present fields are applied.
970
+ * @export
971
+ * @interface V1WebhooksUpdateRequest
972
+ */
973
+ export interface V1WebhooksUpdateRequest {
974
+ /**
975
+ *
976
+ * @type {string}
977
+ * @memberof V1WebhooksUpdateRequest
978
+ */
979
+ 'name': string;
980
+ /**
981
+ *
982
+ * @type {string}
983
+ * @memberof V1WebhooksUpdateRequest
984
+ */
985
+ 'description': string | null;
986
+ /**
987
+ *
988
+ * @type {Array<string>}
989
+ * @memberof V1WebhooksUpdateRequest
990
+ */
991
+ 'events': Array<V1WebhooksUpdateRequestEventsEnum>;
992
+ /**
993
+ *
994
+ * @type {string}
995
+ * @memberof V1WebhooksUpdateRequest
996
+ */
997
+ 'status': V1WebhooksUpdateRequestStatusEnum;
998
+ /**
999
+ *
1000
+ * @type {string}
1001
+ * @memberof V1WebhooksUpdateRequest
1002
+ */
1003
+ 'url': string;
1004
+ }
1005
+ export declare const V1WebhooksUpdateRequestEventsEnum: {
1006
+ readonly MessageReceived: "message.received";
1007
+ };
1008
+ export type V1WebhooksUpdateRequestEventsEnum = typeof V1WebhooksUpdateRequestEventsEnum[keyof typeof V1WebhooksUpdateRequestEventsEnum];
1009
+ export declare const V1WebhooksUpdateRequestStatusEnum: {
1010
+ readonly Active: "active";
1011
+ readonly Paused: "paused";
1012
+ readonly Disabled: "disabled";
1013
+ };
1014
+ export type V1WebhooksUpdateRequestStatusEnum = typeof V1WebhooksUpdateRequestStatusEnum[keyof typeof V1WebhooksUpdateRequestStatusEnum];
1015
+ /**
1016
+ * Webhook configured for a managed mailbox.
1017
+ * @export
1018
+ * @interface V1WebhooksWebhook
1019
+ */
1020
+ export interface V1WebhooksWebhook {
1021
+ /**
1022
+ * Unique webhook identifier (UUID v7).
1023
+ * @type {string}
1024
+ * @memberof V1WebhooksWebhook
1025
+ */
1026
+ 'id': string;
1027
+ /**
1028
+ * Resource ID of the mailbox this webhook is attached to.
1029
+ * @type {string}
1030
+ * @memberof V1WebhooksWebhook
1031
+ */
1032
+ 'accountResourceId': string;
1033
+ /**
1034
+ * Email address of the mailbox.
1035
+ * @type {string}
1036
+ * @memberof V1WebhooksWebhook
1037
+ */
1038
+ 'mailbox': string;
1039
+ /**
1040
+ *
1041
+ * @type {string}
1042
+ * @memberof V1WebhooksWebhook
1043
+ */
1044
+ 'name': string;
1045
+ /**
1046
+ *
1047
+ * @type {string}
1048
+ * @memberof V1WebhooksWebhook
1049
+ */
1050
+ 'description': string | null;
1051
+ /**
1052
+ *
1053
+ * @type {Array<string>}
1054
+ * @memberof V1WebhooksWebhook
1055
+ */
1056
+ 'events': Array<V1WebhooksWebhookEventsEnum>;
1057
+ /**
1058
+ *
1059
+ * @type {string}
1060
+ * @memberof V1WebhooksWebhook
1061
+ */
1062
+ 'status': V1WebhooksWebhookStatusEnum;
1063
+ /**
1064
+ *
1065
+ * @type {string}
1066
+ * @memberof V1WebhooksWebhook
1067
+ */
1068
+ 'url': string;
1069
+ /**
1070
+ *
1071
+ * @type {string}
1072
+ * @memberof V1WebhooksWebhook
1073
+ */
1074
+ 'createdAt': string;
1075
+ /**
1076
+ *
1077
+ * @type {string}
1078
+ * @memberof V1WebhooksWebhook
1079
+ */
1080
+ 'updatedAt': string;
1081
+ }
1082
+ export declare const V1WebhooksWebhookEventsEnum: {
1083
+ readonly MessageReceived: "message.received";
1084
+ };
1085
+ export type V1WebhooksWebhookEventsEnum = typeof V1WebhooksWebhookEventsEnum[keyof typeof V1WebhooksWebhookEventsEnum];
1086
+ export declare const V1WebhooksWebhookStatusEnum: {
1087
+ readonly Active: "active";
1088
+ readonly Paused: "paused";
1089
+ readonly Disabled: "disabled";
1090
+ };
1091
+ export type V1WebhooksWebhookStatusEnum = typeof V1WebhooksWebhookStatusEnum[keyof typeof V1WebhooksWebhookStatusEnum];
1092
+ /**
1093
+ * Webhook payload that includes the one-time `secret`. Returned at creation and after secret regeneration. The secret is delivered as a bearer token on every webhook request (`Authorization: Bearer <secret>`); store it securely as it is not returned again.
1094
+ * @export
1095
+ * @interface V1WebhooksWebhookWithSecret
1096
+ */
1097
+ export interface V1WebhooksWebhookWithSecret {
1098
+ /**
1099
+ * Unique webhook identifier (UUID v7).
1100
+ * @type {string}
1101
+ * @memberof V1WebhooksWebhookWithSecret
1102
+ */
1103
+ 'id': string;
1104
+ /**
1105
+ * Resource ID of the mailbox this webhook is attached to.
1106
+ * @type {string}
1107
+ * @memberof V1WebhooksWebhookWithSecret
1108
+ */
1109
+ 'accountResourceId': string;
1110
+ /**
1111
+ * Email address of the mailbox.
1112
+ * @type {string}
1113
+ * @memberof V1WebhooksWebhookWithSecret
1114
+ */
1115
+ 'mailbox': string;
1116
+ /**
1117
+ *
1118
+ * @type {string}
1119
+ * @memberof V1WebhooksWebhookWithSecret
1120
+ */
1121
+ 'name': string;
1122
+ /**
1123
+ *
1124
+ * @type {string}
1125
+ * @memberof V1WebhooksWebhookWithSecret
1126
+ */
1127
+ 'description': string | null;
1128
+ /**
1129
+ *
1130
+ * @type {Array<string>}
1131
+ * @memberof V1WebhooksWebhookWithSecret
1132
+ */
1133
+ 'events': Array<V1WebhooksWebhookWithSecretEventsEnum>;
1134
+ /**
1135
+ *
1136
+ * @type {string}
1137
+ * @memberof V1WebhooksWebhookWithSecret
1138
+ */
1139
+ 'status': V1WebhooksWebhookWithSecretStatusEnum;
1140
+ /**
1141
+ *
1142
+ * @type {string}
1143
+ * @memberof V1WebhooksWebhookWithSecret
1144
+ */
1145
+ 'url': string;
1146
+ /**
1147
+ *
1148
+ * @type {string}
1149
+ * @memberof V1WebhooksWebhookWithSecret
1150
+ */
1151
+ 'createdAt': string;
1152
+ /**
1153
+ *
1154
+ * @type {string}
1155
+ * @memberof V1WebhooksWebhookWithSecret
1156
+ */
1157
+ 'updatedAt': string;
1158
+ /**
1159
+ *
1160
+ * @type {string}
1161
+ * @memberof V1WebhooksWebhookWithSecret
1162
+ */
1163
+ 'secret': string;
1164
+ }
1165
+ export declare const V1WebhooksWebhookWithSecretEventsEnum: {
1166
+ readonly MessageReceived: "message.received";
1167
+ };
1168
+ export type V1WebhooksWebhookWithSecretEventsEnum = typeof V1WebhooksWebhookWithSecretEventsEnum[keyof typeof V1WebhooksWebhookWithSecretEventsEnum];
1169
+ export declare const V1WebhooksWebhookWithSecretStatusEnum: {
1170
+ readonly Active: "active";
1171
+ readonly Paused: "paused";
1172
+ readonly Disabled: "disabled";
1173
+ };
1174
+ export type V1WebhooksWebhookWithSecretStatusEnum = typeof V1WebhooksWebhookWithSecretStatusEnum[keyof typeof V1WebhooksWebhookWithSecretStatusEnum];
1175
+ /**
1176
+ * AccountApi - axios parameter creator
1177
+ * @export
1178
+ */
1179
+ export declare const AccountApiAxiosParamCreator: (configuration?: Configuration) => {
1180
+ /**
1181
+ * Returns the authenticated account and the mailboxes it can manage.
1182
+ * @summary Get the authenticated account
1183
+ * @param {*} [options] Override http request option.
1184
+ * @throws {RequiredError}
1185
+ */
1186
+ getCurrentAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1187
+ };
1188
+ /**
1189
+ * AccountApi - functional programming interface
1190
+ * @export
1191
+ */
1192
+ export declare const AccountApiFp: (configuration?: Configuration) => {
1193
+ /**
1194
+ * Returns the authenticated account and the mailboxes it can manage.
1195
+ * @summary Get the authenticated account
1196
+ * @param {*} [options] Override http request option.
1197
+ * @throws {RequiredError}
1198
+ */
1199
+ getCurrentAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1MeResource>>;
1200
+ };
1201
+ /**
1202
+ * AccountApi - factory interface
1203
+ * @export
1204
+ */
1205
+ export declare const AccountApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1206
+ /**
1207
+ * Returns the authenticated account and the mailboxes it can manage.
1208
+ * @summary Get the authenticated account
1209
+ * @param {*} [options] Override http request option.
1210
+ * @throws {RequiredError}
1211
+ */
1212
+ getCurrentAccount(options?: RawAxiosRequestConfig): AxiosPromise<V1MeResource>;
1213
+ };
1214
+ /**
1215
+ * AccountApi - object-oriented interface
1216
+ * @export
1217
+ * @class AccountApi
1218
+ * @extends {BaseAPI}
1219
+ */
1220
+ export declare class AccountApi extends BaseAPI {
1221
+ /**
1222
+ * Returns the authenticated account and the mailboxes it can manage.
1223
+ * @summary Get the authenticated account
1224
+ * @param {*} [options] Override http request option.
1225
+ * @throws {RequiredError}
1226
+ * @memberof AccountApi
1227
+ */
1228
+ getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}>>;
1229
+ }
1230
+ /**
1231
+ * FoldersApi - axios parameter creator
1232
+ * @export
1233
+ */
1234
+ export declare const FoldersApiAxiosParamCreator: (configuration?: Configuration) => {
1235
+ /**
1236
+ * Create a new folder in the managed mailbox.
1237
+ * @summary Create folder
1238
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1239
+ * @param {V1FoldersCreateRequest} v1FoldersCreateRequest
1240
+ * @param {*} [options] Override http request option.
1241
+ * @throws {RequiredError}
1242
+ */
1243
+ createFolder: (mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1244
+ /**
1245
+ * Delete a folder and all of its subfolders.
1246
+ * @summary Delete folder
1247
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1248
+ * @param {string} folder Folder path to delete (URL-encoded).
1249
+ * @param {*} [options] Override http request option.
1250
+ * @throws {RequiredError}
1251
+ */
1252
+ deleteFolder: (mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1253
+ /**
1254
+ * Retrieve a paginated list of folders in the managed mailbox.
1255
+ * @summary List folders
1256
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1257
+ * @param {number} [page] Page number (1-based).
1258
+ * @param {number} [perPage] Items per page (max 100).
1259
+ * @param {*} [options] Override http request option.
1260
+ * @throws {RequiredError}
1261
+ */
1262
+ listFolders: (mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1263
+ /**
1264
+ * Rename an existing folder.
1265
+ * @summary Update folder
1266
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1267
+ * @param {string} folder Current folder path (URL-encoded).
1268
+ * @param {V1FoldersUpdateRequest} v1FoldersUpdateRequest
1269
+ * @param {*} [options] Override http request option.
1270
+ * @throws {RequiredError}
1271
+ */
1272
+ updateFolder: (mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1273
+ };
1274
+ /**
1275
+ * FoldersApi - functional programming interface
1276
+ * @export
1277
+ */
1278
+ export declare const FoldersApiFp: (configuration?: Configuration) => {
1279
+ /**
1280
+ * Create a new folder in the managed mailbox.
1281
+ * @summary Create folder
1282
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1283
+ * @param {V1FoldersCreateRequest} v1FoldersCreateRequest
1284
+ * @param {*} [options] Override http request option.
1285
+ * @throws {RequiredError}
1286
+ */
1287
+ createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FoldersResource>>;
1288
+ /**
1289
+ * Delete a folder and all of its subfolders.
1290
+ * @summary Delete folder
1291
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1292
+ * @param {string} folder Folder path to delete (URL-encoded).
1293
+ * @param {*} [options] Override http request option.
1294
+ * @throws {RequiredError}
1295
+ */
1296
+ deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1297
+ /**
1298
+ * Retrieve a paginated list of folders in the managed mailbox.
1299
+ * @summary List folders
1300
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1301
+ * @param {number} [page] Page number (1-based).
1302
+ * @param {number} [perPage] Items per page (max 100).
1303
+ * @param {*} [options] Override http request option.
1304
+ * @throws {RequiredError}
1305
+ */
1306
+ listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FoldersCollection>>;
1307
+ /**
1308
+ * Rename an existing folder.
1309
+ * @summary Update folder
1310
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1311
+ * @param {string} folder Current folder path (URL-encoded).
1312
+ * @param {V1FoldersUpdateRequest} v1FoldersUpdateRequest
1313
+ * @param {*} [options] Override http request option.
1314
+ * @throws {RequiredError}
1315
+ */
1316
+ updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FoldersResource>>;
1317
+ };
1318
+ /**
1319
+ * FoldersApi - factory interface
1320
+ * @export
1321
+ */
1322
+ export declare const FoldersApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1323
+ /**
1324
+ * Create a new folder in the managed mailbox.
1325
+ * @summary Create folder
1326
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1327
+ * @param {V1FoldersCreateRequest} v1FoldersCreateRequest
1328
+ * @param {*} [options] Override http request option.
1329
+ * @throws {RequiredError}
1330
+ */
1331
+ createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1FoldersResource>;
1332
+ /**
1333
+ * Delete a folder and all of its subfolders.
1334
+ * @summary Delete folder
1335
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1336
+ * @param {string} folder Folder path to delete (URL-encoded).
1337
+ * @param {*} [options] Override http request option.
1338
+ * @throws {RequiredError}
1339
+ */
1340
+ deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1341
+ /**
1342
+ * Retrieve a paginated list of folders in the managed mailbox.
1343
+ * @summary List folders
1344
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1345
+ * @param {number} [page] Page number (1-based).
1346
+ * @param {number} [perPage] Items per page (max 100).
1347
+ * @param {*} [options] Override http request option.
1348
+ * @throws {RequiredError}
1349
+ */
1350
+ listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<V1FoldersCollection>;
1351
+ /**
1352
+ * Rename an existing folder.
1353
+ * @summary Update folder
1354
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1355
+ * @param {string} folder Current folder path (URL-encoded).
1356
+ * @param {V1FoldersUpdateRequest} v1FoldersUpdateRequest
1357
+ * @param {*} [options] Override http request option.
1358
+ * @throws {RequiredError}
1359
+ */
1360
+ updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1FoldersResource>;
1361
+ };
1362
+ /**
1363
+ * FoldersApi - object-oriented interface
1364
+ * @export
1365
+ * @class FoldersApi
1366
+ * @extends {BaseAPI}
1367
+ */
1368
+ export declare class FoldersApi extends BaseAPI {
1369
+ /**
1370
+ * Create a new folder in the managed mailbox.
1371
+ * @summary Create folder
1372
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1373
+ * @param {V1FoldersCreateRequest} v1FoldersCreateRequest
1374
+ * @param {*} [options] Override http request option.
1375
+ * @throws {RequiredError}
1376
+ * @memberof FoldersApi
1377
+ */
1378
+ createFolder(mailboxResourceId: string, v1FoldersCreateRequest: V1FoldersCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}>>;
1379
+ /**
1380
+ * Delete a folder and all of its subfolders.
1381
+ * @summary Delete folder
1382
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1383
+ * @param {string} folder Folder path to delete (URL-encoded).
1384
+ * @param {*} [options] Override http request option.
1385
+ * @throws {RequiredError}
1386
+ * @memberof FoldersApi
1387
+ */
1388
+ deleteFolder(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1389
+ /**
1390
+ * Retrieve a paginated list of folders in the managed mailbox.
1391
+ * @summary List folders
1392
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1393
+ * @param {number} [page] Page number (1-based).
1394
+ * @param {number} [perPage] Items per page (max 100).
1395
+ * @param {*} [options] Override http request option.
1396
+ * @throws {RequiredError}
1397
+ * @memberof FoldersApi
1398
+ */
1399
+ listFolders(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersCollection, any, {}>>;
1400
+ /**
1401
+ * Rename an existing folder.
1402
+ * @summary Update folder
1403
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1404
+ * @param {string} folder Current folder path (URL-encoded).
1405
+ * @param {V1FoldersUpdateRequest} v1FoldersUpdateRequest
1406
+ * @param {*} [options] Override http request option.
1407
+ * @throws {RequiredError}
1408
+ * @memberof FoldersApi
1409
+ */
1410
+ updateFolder(mailboxResourceId: string, folder: string, v1FoldersUpdateRequest: V1FoldersUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FoldersResource, any, {}>>;
1411
+ }
1412
+ /**
1413
+ * MessagesApi - axios parameter creator
1414
+ * @export
1415
+ */
1416
+ export declare const MessagesApiAxiosParamCreator: (configuration?: Configuration) => {
1417
+ /**
1418
+ * Permanently delete every message in a folder (empty the folder).
1419
+ * @summary Delete all messages
1420
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1421
+ * @param {string} folder Folder path (URL-encoded).
1422
+ * @param {*} [options] Override http request option.
1423
+ * @throws {RequiredError}
1424
+ */
1425
+ deleteAllMessages: (mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1426
+ /**
1427
+ * Permanently delete a single message.
1428
+ * @summary Delete message
1429
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1430
+ * @param {string} folder Folder path (URL-encoded).
1431
+ * @param {number} uid Message UID.
1432
+ * @param {*} [options] Override http request option.
1433
+ * @throws {RequiredError}
1434
+ */
1435
+ deleteMessage: (mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1436
+ /**
1437
+ * Permanently delete multiple messages from a folder.
1438
+ * @summary Delete messages
1439
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1440
+ * @param {string} folder Folder path (URL-encoded).
1441
+ * @param {V1FolderMessagesDeleteBulkRequest} v1FolderMessagesDeleteBulkRequest
1442
+ * @param {*} [options] Override http request option.
1443
+ * @throws {RequiredError}
1444
+ */
1445
+ deleteMessages: (mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1446
+ /**
1447
+ * Retrieve a single message by UID.
1448
+ * @summary Get message
1449
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1450
+ * @param {string} folder Folder path (URL-encoded).
1451
+ * @param {number} uid Message UID.
1452
+ * @param {*} [options] Override http request option.
1453
+ * @throws {RequiredError}
1454
+ */
1455
+ getMessage: (mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1456
+ /**
1457
+ * Download a message attachment as `application/octet-stream`.
1458
+ * @summary Download message attachment
1459
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1460
+ * @param {string} folder Folder path (URL-encoded).
1461
+ * @param {number} uid Message UID.
1462
+ * @param {string} attachmentId Attachment ID (opaque, returned by GET message).
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ getMessageAttachment: (mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1467
+ /**
1468
+ * Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
1469
+ * @summary Get message source
1470
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1471
+ * @param {string} folder Folder path (URL-encoded).
1472
+ * @param {number} uid Message UID.
1473
+ * @param {*} [options] Override http request option.
1474
+ * @throws {RequiredError}
1475
+ */
1476
+ getMessageSource: (mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1477
+ /**
1478
+ * Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
1479
+ * @summary Get message text content
1480
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1481
+ * @param {string} folder Folder path (URL-encoded).
1482
+ * @param {number} uid Message UID.
1483
+ * @param {*} [options] Override http request option.
1484
+ * @throws {RequiredError}
1485
+ */
1486
+ getMessageText: (mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1487
+ /**
1488
+ * List messages in a folder. Use POST /search for filtering. Sort fields: uid, date, size (prefix with `-` for descending). Default `-uid`.
1489
+ * @summary List messages
1490
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1491
+ * @param {string} folder Folder path (URL-encoded).
1492
+ * @param {number} [page] Page number (1-based).
1493
+ * @param {number} [perPage] Items per page (max 100).
1494
+ * @param {string} [sort] Sort field with optional &#x60;-&#x60; prefix for descending. Allowed: uid, date, size.
1495
+ * @param {*} [options] Override http request option.
1496
+ * @throws {RequiredError}
1497
+ */
1498
+ listMessages: (mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1499
+ /**
1500
+ * Move a single message to a target folder.
1501
+ * @summary Move message
1502
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1503
+ * @param {string} folder Source folder path (URL-encoded).
1504
+ * @param {number} uid Message UID.
1505
+ * @param {V1FolderMessagesMoveRequest} v1FolderMessagesMoveRequest
1506
+ * @param {*} [options] Override http request option.
1507
+ * @throws {RequiredError}
1508
+ */
1509
+ moveMessage: (mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1510
+ /**
1511
+ * Move multiple messages from a source folder to a target folder.
1512
+ * @summary Move messages
1513
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1514
+ * @param {string} folder Source folder path (URL-encoded).
1515
+ * @param {V1FolderMessagesMoveBulkRequest} v1FolderMessagesMoveBulkRequest
1516
+ * @param {*} [options] Override http request option.
1517
+ * @throws {RequiredError}
1518
+ */
1519
+ moveMessages: (mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1520
+ /**
1521
+ * Add and/or remove flags on a single message. Returns the updated message.
1522
+ * @summary Update message flags
1523
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1524
+ * @param {string} folder Folder path (URL-encoded).
1525
+ * @param {number} uid Message UID.
1526
+ * @param {V1FolderMessagesFlagsRequest} v1FolderMessagesFlagsRequest
1527
+ * @param {*} [options] Override http request option.
1528
+ * @throws {RequiredError}
1529
+ */
1530
+ patchMessage: (mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1531
+ /**
1532
+ * Search messages in a folder. Filters in body; pagination and sort via query (`page`, `perPage`, `sort`).
1533
+ * @summary Search messages
1534
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1535
+ * @param {string} folder Folder path (URL-encoded).
1536
+ * @param {number} [page]
1537
+ * @param {number} [perPage]
1538
+ * @param {string} [sort]
1539
+ * @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
1540
+ * @param {*} [options] Override http request option.
1541
+ * @throws {RequiredError}
1542
+ */
1543
+ searchMessages: (mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1544
+ /**
1545
+ * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1546
+ * @summary Update message flags
1547
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1548
+ * @param {string} folder Folder path (URL-encoded).
1549
+ * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
1550
+ * @param {*} [options] Override http request option.
1551
+ * @throws {RequiredError}
1552
+ */
1553
+ updateMessageFlags: (mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1554
+ };
1555
+ /**
1556
+ * MessagesApi - functional programming interface
1557
+ * @export
1558
+ */
1559
+ export declare const MessagesApiFp: (configuration?: Configuration) => {
1560
+ /**
1561
+ * Permanently delete every message in a folder (empty the folder).
1562
+ * @summary Delete all messages
1563
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1564
+ * @param {string} folder Folder path (URL-encoded).
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1569
+ /**
1570
+ * Permanently delete a single message.
1571
+ * @summary Delete message
1572
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1573
+ * @param {string} folder Folder path (URL-encoded).
1574
+ * @param {number} uid Message UID.
1575
+ * @param {*} [options] Override http request option.
1576
+ * @throws {RequiredError}
1577
+ */
1578
+ deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1579
+ /**
1580
+ * Permanently delete multiple messages from a folder.
1581
+ * @summary Delete messages
1582
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1583
+ * @param {string} folder Folder path (URL-encoded).
1584
+ * @param {V1FolderMessagesDeleteBulkRequest} v1FolderMessagesDeleteBulkRequest
1585
+ * @param {*} [options] Override http request option.
1586
+ * @throws {RequiredError}
1587
+ */
1588
+ deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1589
+ /**
1590
+ * Retrieve a single message by UID.
1591
+ * @summary Get message
1592
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1593
+ * @param {string} folder Folder path (URL-encoded).
1594
+ * @param {number} uid Message UID.
1595
+ * @param {*} [options] Override http request option.
1596
+ * @throws {RequiredError}
1597
+ */
1598
+ getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FolderMessagesResource>>;
1599
+ /**
1600
+ * Download a message attachment as `application/octet-stream`.
1601
+ * @summary Download message attachment
1602
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1603
+ * @param {string} folder Folder path (URL-encoded).
1604
+ * @param {number} uid Message UID.
1605
+ * @param {string} attachmentId Attachment ID (opaque, returned by GET message).
1606
+ * @param {*} [options] Override http request option.
1607
+ * @throws {RequiredError}
1608
+ */
1609
+ getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
1610
+ /**
1611
+ * Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
1612
+ * @summary Get message source
1613
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1614
+ * @param {string} folder Folder path (URL-encoded).
1615
+ * @param {number} uid Message UID.
1616
+ * @param {*} [options] Override http request option.
1617
+ * @throws {RequiredError}
1618
+ */
1619
+ getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
1620
+ /**
1621
+ * Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
1622
+ * @summary Get message text content
1623
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1624
+ * @param {string} folder Folder path (URL-encoded).
1625
+ * @param {number} uid Message UID.
1626
+ * @param {*} [options] Override http request option.
1627
+ * @throws {RequiredError}
1628
+ */
1629
+ getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FolderMessagesMessageTextResource>>;
1630
+ /**
1631
+ * List messages in a folder. Use POST /search for filtering. Sort fields: uid, date, size (prefix with `-` for descending). Default `-uid`.
1632
+ * @summary List messages
1633
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1634
+ * @param {string} folder Folder path (URL-encoded).
1635
+ * @param {number} [page] Page number (1-based).
1636
+ * @param {number} [perPage] Items per page (max 100).
1637
+ * @param {string} [sort] Sort field with optional &#x60;-&#x60; prefix for descending. Allowed: uid, date, size.
1638
+ * @param {*} [options] Override http request option.
1639
+ * @throws {RequiredError}
1640
+ */
1641
+ listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FolderMessagesCollection>>;
1642
+ /**
1643
+ * Move a single message to a target folder.
1644
+ * @summary Move message
1645
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1646
+ * @param {string} folder Source folder path (URL-encoded).
1647
+ * @param {number} uid Message UID.
1648
+ * @param {V1FolderMessagesMoveRequest} v1FolderMessagesMoveRequest
1649
+ * @param {*} [options] Override http request option.
1650
+ * @throws {RequiredError}
1651
+ */
1652
+ moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1653
+ /**
1654
+ * Move multiple messages from a source folder to a target folder.
1655
+ * @summary Move messages
1656
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1657
+ * @param {string} folder Source folder path (URL-encoded).
1658
+ * @param {V1FolderMessagesMoveBulkRequest} v1FolderMessagesMoveBulkRequest
1659
+ * @param {*} [options] Override http request option.
1660
+ * @throws {RequiredError}
1661
+ */
1662
+ moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
1663
+ /**
1664
+ * Add and/or remove flags on a single message. Returns the updated message.
1665
+ * @summary Update message flags
1666
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1667
+ * @param {string} folder Folder path (URL-encoded).
1668
+ * @param {number} uid Message UID.
1669
+ * @param {V1FolderMessagesFlagsRequest} v1FolderMessagesFlagsRequest
1670
+ * @param {*} [options] Override http request option.
1671
+ * @throws {RequiredError}
1672
+ */
1673
+ patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FolderMessagesResource>>;
1674
+ /**
1675
+ * Search messages in a folder. Filters in body; pagination and sort via query (`page`, `perPage`, `sort`).
1676
+ * @summary Search messages
1677
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1678
+ * @param {string} folder Folder path (URL-encoded).
1679
+ * @param {number} [page]
1680
+ * @param {number} [perPage]
1681
+ * @param {string} [sort]
1682
+ * @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
1683
+ * @param {*} [options] Override http request option.
1684
+ * @throws {RequiredError}
1685
+ */
1686
+ searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FolderMessagesCollection>>;
1687
+ /**
1688
+ * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1689
+ * @summary Update message flags
1690
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1691
+ * @param {string} folder Folder path (URL-encoded).
1692
+ * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1FolderMessagesUpdateFlagsResult>>;
1697
+ };
1698
+ /**
1699
+ * MessagesApi - factory interface
1700
+ * @export
1701
+ */
1702
+ export declare const MessagesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1703
+ /**
1704
+ * Permanently delete every message in a folder (empty the folder).
1705
+ * @summary Delete all messages
1706
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1707
+ * @param {string} folder Folder path (URL-encoded).
1708
+ * @param {*} [options] Override http request option.
1709
+ * @throws {RequiredError}
1710
+ */
1711
+ deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1712
+ /**
1713
+ * Permanently delete a single message.
1714
+ * @summary Delete message
1715
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1716
+ * @param {string} folder Folder path (URL-encoded).
1717
+ * @param {number} uid Message UID.
1718
+ * @param {*} [options] Override http request option.
1719
+ * @throws {RequiredError}
1720
+ */
1721
+ deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1722
+ /**
1723
+ * Permanently delete multiple messages from a folder.
1724
+ * @summary Delete messages
1725
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1726
+ * @param {string} folder Folder path (URL-encoded).
1727
+ * @param {V1FolderMessagesDeleteBulkRequest} v1FolderMessagesDeleteBulkRequest
1728
+ * @param {*} [options] Override http request option.
1729
+ * @throws {RequiredError}
1730
+ */
1731
+ deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1732
+ /**
1733
+ * Retrieve a single message by UID.
1734
+ * @summary Get message
1735
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1736
+ * @param {string} folder Folder path (URL-encoded).
1737
+ * @param {number} uid Message UID.
1738
+ * @param {*} [options] Override http request option.
1739
+ * @throws {RequiredError}
1740
+ */
1741
+ getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): AxiosPromise<V1FolderMessagesResource>;
1742
+ /**
1743
+ * Download a message attachment as `application/octet-stream`.
1744
+ * @summary Download message attachment
1745
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1746
+ * @param {string} folder Folder path (URL-encoded).
1747
+ * @param {number} uid Message UID.
1748
+ * @param {string} attachmentId Attachment ID (opaque, returned by GET message).
1749
+ * @param {*} [options] Override http request option.
1750
+ * @throws {RequiredError}
1751
+ */
1752
+ getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): AxiosPromise<File>;
1753
+ /**
1754
+ * Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
1755
+ * @summary Get message source
1756
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1757
+ * @param {string} folder Folder path (URL-encoded).
1758
+ * @param {number} uid Message UID.
1759
+ * @param {*} [options] Override http request option.
1760
+ * @throws {RequiredError}
1761
+ */
1762
+ getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): AxiosPromise<File>;
1763
+ /**
1764
+ * Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
1765
+ * @summary Get message text content
1766
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1767
+ * @param {string} folder Folder path (URL-encoded).
1768
+ * @param {number} uid Message UID.
1769
+ * @param {*} [options] Override http request option.
1770
+ * @throws {RequiredError}
1771
+ */
1772
+ getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): AxiosPromise<V1FolderMessagesMessageTextResource>;
1773
+ /**
1774
+ * List messages in a folder. Use POST /search for filtering. Sort fields: uid, date, size (prefix with `-` for descending). Default `-uid`.
1775
+ * @summary List messages
1776
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1777
+ * @param {string} folder Folder path (URL-encoded).
1778
+ * @param {number} [page] Page number (1-based).
1779
+ * @param {number} [perPage] Items per page (max 100).
1780
+ * @param {string} [sort] Sort field with optional &#x60;-&#x60; prefix for descending. Allowed: uid, date, size.
1781
+ * @param {*} [options] Override http request option.
1782
+ * @throws {RequiredError}
1783
+ */
1784
+ listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1FolderMessagesCollection>;
1785
+ /**
1786
+ * Move a single message to a target folder.
1787
+ * @summary Move message
1788
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1789
+ * @param {string} folder Source folder path (URL-encoded).
1790
+ * @param {number} uid Message UID.
1791
+ * @param {V1FolderMessagesMoveRequest} v1FolderMessagesMoveRequest
1792
+ * @param {*} [options] Override http request option.
1793
+ * @throws {RequiredError}
1794
+ */
1795
+ moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1796
+ /**
1797
+ * Move multiple messages from a source folder to a target folder.
1798
+ * @summary Move messages
1799
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1800
+ * @param {string} folder Source folder path (URL-encoded).
1801
+ * @param {V1FolderMessagesMoveBulkRequest} v1FolderMessagesMoveBulkRequest
1802
+ * @param {*} [options] Override http request option.
1803
+ * @throws {RequiredError}
1804
+ */
1805
+ moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1806
+ /**
1807
+ * Add and/or remove flags on a single message. Returns the updated message.
1808
+ * @summary Update message flags
1809
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1810
+ * @param {string} folder Folder path (URL-encoded).
1811
+ * @param {number} uid Message UID.
1812
+ * @param {V1FolderMessagesFlagsRequest} v1FolderMessagesFlagsRequest
1813
+ * @param {*} [options] Override http request option.
1814
+ * @throws {RequiredError}
1815
+ */
1816
+ patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1FolderMessagesResource>;
1817
+ /**
1818
+ * Search messages in a folder. Filters in body; pagination and sort via query (`page`, `perPage`, `sort`).
1819
+ * @summary Search messages
1820
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1821
+ * @param {string} folder Folder path (URL-encoded).
1822
+ * @param {number} [page]
1823
+ * @param {number} [perPage]
1824
+ * @param {string} [sort]
1825
+ * @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
1826
+ * @param {*} [options] Override http request option.
1827
+ * @throws {RequiredError}
1828
+ */
1829
+ searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1FolderMessagesCollection>;
1830
+ /**
1831
+ * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1832
+ * @summary Update message flags
1833
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1834
+ * @param {string} folder Folder path (URL-encoded).
1835
+ * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
1836
+ * @param {*} [options] Override http request option.
1837
+ * @throws {RequiredError}
1838
+ */
1839
+ updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1FolderMessagesUpdateFlagsResult>;
1840
+ };
1841
+ /**
1842
+ * MessagesApi - object-oriented interface
1843
+ * @export
1844
+ * @class MessagesApi
1845
+ * @extends {BaseAPI}
1846
+ */
1847
+ export declare class MessagesApi extends BaseAPI {
1848
+ /**
1849
+ * Permanently delete every message in a folder (empty the folder).
1850
+ * @summary Delete all messages
1851
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1852
+ * @param {string} folder Folder path (URL-encoded).
1853
+ * @param {*} [options] Override http request option.
1854
+ * @throws {RequiredError}
1855
+ * @memberof MessagesApi
1856
+ */
1857
+ deleteAllMessages(mailboxResourceId: string, folder: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1858
+ /**
1859
+ * Permanently delete a single message.
1860
+ * @summary Delete message
1861
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1862
+ * @param {string} folder Folder path (URL-encoded).
1863
+ * @param {number} uid Message UID.
1864
+ * @param {*} [options] Override http request option.
1865
+ * @throws {RequiredError}
1866
+ * @memberof MessagesApi
1867
+ */
1868
+ deleteMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1869
+ /**
1870
+ * Permanently delete multiple messages from a folder.
1871
+ * @summary Delete messages
1872
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1873
+ * @param {string} folder Folder path (URL-encoded).
1874
+ * @param {V1FolderMessagesDeleteBulkRequest} v1FolderMessagesDeleteBulkRequest
1875
+ * @param {*} [options] Override http request option.
1876
+ * @throws {RequiredError}
1877
+ * @memberof MessagesApi
1878
+ */
1879
+ deleteMessages(mailboxResourceId: string, folder: string, v1FolderMessagesDeleteBulkRequest: V1FolderMessagesDeleteBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1880
+ /**
1881
+ * Retrieve a single message by UID.
1882
+ * @summary Get message
1883
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1884
+ * @param {string} folder Folder path (URL-encoded).
1885
+ * @param {number} uid Message UID.
1886
+ * @param {*} [options] Override http request option.
1887
+ * @throws {RequiredError}
1888
+ * @memberof MessagesApi
1889
+ */
1890
+ getMessage(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}>>;
1891
+ /**
1892
+ * Download a message attachment as `application/octet-stream`.
1893
+ * @summary Download message attachment
1894
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1895
+ * @param {string} folder Folder path (URL-encoded).
1896
+ * @param {number} uid Message UID.
1897
+ * @param {string} attachmentId Attachment ID (opaque, returned by GET message).
1898
+ * @param {*} [options] Override http request option.
1899
+ * @throws {RequiredError}
1900
+ * @memberof MessagesApi
1901
+ */
1902
+ getMessageAttachment(mailboxResourceId: string, folder: string, uid: number, attachmentId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
1903
+ /**
1904
+ * Retrieve raw RFC822 source of a message as `message/rfc822` attachment.
1905
+ * @summary Get message source
1906
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1907
+ * @param {string} folder Folder path (URL-encoded).
1908
+ * @param {number} uid Message UID.
1909
+ * @param {*} [options] Override http request option.
1910
+ * @throws {RequiredError}
1911
+ * @memberof MessagesApi
1912
+ */
1913
+ getMessageSource(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
1914
+ /**
1915
+ * Retrieve rendered text (plain + HTML) of a message. Marks message as `\\Seen`.
1916
+ * @summary Get message text content
1917
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1918
+ * @param {string} folder Folder path (URL-encoded).
1919
+ * @param {number} uid Message UID.
1920
+ * @param {*} [options] Override http request option.
1921
+ * @throws {RequiredError}
1922
+ * @memberof MessagesApi
1923
+ */
1924
+ getMessageText(mailboxResourceId: string, folder: string, uid: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesMessageTextResource, any, {}>>;
1925
+ /**
1926
+ * List messages in a folder. Use POST /search for filtering. Sort fields: uid, date, size (prefix with `-` for descending). Default `-uid`.
1927
+ * @summary List messages
1928
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1929
+ * @param {string} folder Folder path (URL-encoded).
1930
+ * @param {number} [page] Page number (1-based).
1931
+ * @param {number} [perPage] Items per page (max 100).
1932
+ * @param {string} [sort] Sort field with optional &#x60;-&#x60; prefix for descending. Allowed: uid, date, size.
1933
+ * @param {*} [options] Override http request option.
1934
+ * @throws {RequiredError}
1935
+ * @memberof MessagesApi
1936
+ */
1937
+ listMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}>>;
1938
+ /**
1939
+ * Move a single message to a target folder.
1940
+ * @summary Move message
1941
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1942
+ * @param {string} folder Source folder path (URL-encoded).
1943
+ * @param {number} uid Message UID.
1944
+ * @param {V1FolderMessagesMoveRequest} v1FolderMessagesMoveRequest
1945
+ * @param {*} [options] Override http request option.
1946
+ * @throws {RequiredError}
1947
+ * @memberof MessagesApi
1948
+ */
1949
+ moveMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesMoveRequest: V1FolderMessagesMoveRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1950
+ /**
1951
+ * Move multiple messages from a source folder to a target folder.
1952
+ * @summary Move messages
1953
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1954
+ * @param {string} folder Source folder path (URL-encoded).
1955
+ * @param {V1FolderMessagesMoveBulkRequest} v1FolderMessagesMoveBulkRequest
1956
+ * @param {*} [options] Override http request option.
1957
+ * @throws {RequiredError}
1958
+ * @memberof MessagesApi
1959
+ */
1960
+ moveMessages(mailboxResourceId: string, folder: string, v1FolderMessagesMoveBulkRequest: V1FolderMessagesMoveBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1961
+ /**
1962
+ * Add and/or remove flags on a single message. Returns the updated message.
1963
+ * @summary Update message flags
1964
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1965
+ * @param {string} folder Folder path (URL-encoded).
1966
+ * @param {number} uid Message UID.
1967
+ * @param {V1FolderMessagesFlagsRequest} v1FolderMessagesFlagsRequest
1968
+ * @param {*} [options] Override http request option.
1969
+ * @throws {RequiredError}
1970
+ * @memberof MessagesApi
1971
+ */
1972
+ patchMessage(mailboxResourceId: string, folder: string, uid: number, v1FolderMessagesFlagsRequest: V1FolderMessagesFlagsRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesResource, any, {}>>;
1973
+ /**
1974
+ * Search messages in a folder. Filters in body; pagination and sort via query (`page`, `perPage`, `sort`).
1975
+ * @summary Search messages
1976
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1977
+ * @param {string} folder Folder path (URL-encoded).
1978
+ * @param {number} [page]
1979
+ * @param {number} [perPage]
1980
+ * @param {string} [sort]
1981
+ * @param {V1FolderMessagesSearchRequest} [v1FolderMessagesSearchRequest]
1982
+ * @param {*} [options] Override http request option.
1983
+ * @throws {RequiredError}
1984
+ * @memberof MessagesApi
1985
+ */
1986
+ searchMessages(mailboxResourceId: string, folder: string, page?: number, perPage?: number, sort?: string, v1FolderMessagesSearchRequest?: V1FolderMessagesSearchRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesCollection, any, {}>>;
1987
+ /**
1988
+ * Add and/or remove flags on multiple messages. Returns 200 when all UIDs succeed, 207 with per-UID outcome when some fail.
1989
+ * @summary Update message flags
1990
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
1991
+ * @param {string} folder Folder path (URL-encoded).
1992
+ * @param {V1FolderMessagesFlagsBulkRequest} v1FolderMessagesFlagsBulkRequest
1993
+ * @param {*} [options] Override http request option.
1994
+ * @throws {RequiredError}
1995
+ * @memberof MessagesApi
1996
+ */
1997
+ updateMessageFlags(mailboxResourceId: string, folder: string, v1FolderMessagesFlagsBulkRequest: V1FolderMessagesFlagsBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1FolderMessagesUpdateFlagsResult, any, {}>>;
1998
+ }
1999
+ /**
2000
+ * QuotaApi - axios parameter creator
2001
+ * @export
2002
+ */
2003
+ export declare const QuotaApiAxiosParamCreator: (configuration?: Configuration) => {
2004
+ /**
2005
+ * Retrieve storage and message quota usage for the managed mailbox.
2006
+ * @summary Get mailbox quota
2007
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2008
+ * @param {*} [options] Override http request option.
2009
+ * @throws {RequiredError}
2010
+ */
2011
+ getQuota: (mailboxResourceId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2012
+ };
2013
+ /**
2014
+ * QuotaApi - functional programming interface
2015
+ * @export
2016
+ */
2017
+ export declare const QuotaApiFp: (configuration?: Configuration) => {
2018
+ /**
2019
+ * Retrieve storage and message quota usage for the managed mailbox.
2020
+ * @summary Get mailbox quota
2021
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2022
+ * @param {*} [options] Override http request option.
2023
+ * @throws {RequiredError}
2024
+ */
2025
+ getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1QuotaResource>>;
2026
+ };
2027
+ /**
2028
+ * QuotaApi - factory interface
2029
+ * @export
2030
+ */
2031
+ export declare const QuotaApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2032
+ /**
2033
+ * Retrieve storage and message quota usage for the managed mailbox.
2034
+ * @summary Get mailbox quota
2035
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2036
+ * @param {*} [options] Override http request option.
2037
+ * @throws {RequiredError}
2038
+ */
2039
+ getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): AxiosPromise<V1QuotaResource>;
2040
+ };
2041
+ /**
2042
+ * QuotaApi - object-oriented interface
2043
+ * @export
2044
+ * @class QuotaApi
2045
+ * @extends {BaseAPI}
2046
+ */
2047
+ export declare class QuotaApi extends BaseAPI {
2048
+ /**
2049
+ * Retrieve storage and message quota usage for the managed mailbox.
2050
+ * @summary Get mailbox quota
2051
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ * @memberof QuotaApi
2055
+ */
2056
+ getQuota(mailboxResourceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1QuotaResource, any, {}>>;
2057
+ }
2058
+ /**
2059
+ * SendApi - axios parameter creator
2060
+ * @export
2061
+ */
2062
+ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) => {
2063
+ /**
2064
+ * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
2065
+ * @summary Send email
2066
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2067
+ * @param {V1SendRequest | null} v1SendRequest
2068
+ * @param {*} [options] Override http request option.
2069
+ * @throws {RequiredError}
2070
+ */
2071
+ sendEmail: (mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2072
+ };
2073
+ /**
2074
+ * SendApi - functional programming interface
2075
+ * @export
2076
+ */
2077
+ export declare const SendApiFp: (configuration?: Configuration) => {
2078
+ /**
2079
+ * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
2080
+ * @summary Send email
2081
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2082
+ * @param {V1SendRequest | null} v1SendRequest
2083
+ * @param {*} [options] Override http request option.
2084
+ * @throws {RequiredError}
2085
+ */
2086
+ sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2087
+ };
2088
+ /**
2089
+ * SendApi - factory interface
2090
+ * @export
2091
+ */
2092
+ export declare const SendApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2093
+ /**
2094
+ * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
2095
+ * @summary Send email
2096
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2097
+ * @param {V1SendRequest | null} v1SendRequest
2098
+ * @param {*} [options] Override http request option.
2099
+ * @throws {RequiredError}
2100
+ */
2101
+ sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2102
+ };
2103
+ /**
2104
+ * SendApi - object-oriented interface
2105
+ * @export
2106
+ * @class SendApi
2107
+ * @extends {BaseAPI}
2108
+ */
2109
+ export declare class SendApi extends BaseAPI {
2110
+ /**
2111
+ * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
2112
+ * @summary Send email
2113
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2114
+ * @param {V1SendRequest | null} v1SendRequest
2115
+ * @param {*} [options] Override http request option.
2116
+ * @throws {RequiredError}
2117
+ * @memberof SendApi
2118
+ */
2119
+ sendEmail(mailboxResourceId: string, v1SendRequest: V1SendRequest | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
2120
+ }
2121
+ /**
2122
+ * WebhooksApi - axios parameter creator
2123
+ * @export
2124
+ */
2125
+ export declare const WebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
2126
+ /**
2127
+ * Create a webhook. The response includes the one-time `secret` — store it securely as it is never returned again.
2128
+ * @summary Create webhook
2129
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2130
+ * @param {V1WebhooksCreateRequest} v1WebhooksCreateRequest
2131
+ * @param {*} [options] Override http request option.
2132
+ * @throws {RequiredError}
2133
+ */
2134
+ createWebhook: (mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2135
+ /**
2136
+ * Delete a webhook.
2137
+ * @summary Delete webhook
2138
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2139
+ * @param {string} webhook Webhook identifier (UUID v7).
2140
+ * @param {*} [options] Override http request option.
2141
+ * @throws {RequiredError}
2142
+ */
2143
+ deleteWebhook: (mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2144
+ /**
2145
+ * Retrieve a single webhook by id.
2146
+ * @summary Get webhook
2147
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2148
+ * @param {string} webhook Webhook identifier (UUID v7).
2149
+ * @param {*} [options] Override http request option.
2150
+ * @throws {RequiredError}
2151
+ */
2152
+ getWebhook: (mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2153
+ /**
2154
+ * List webhooks for a mailbox.
2155
+ * @summary List webhooks
2156
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2157
+ * @param {ListWebhooksStatusEnum} [status]
2158
+ * @param {number} [page]
2159
+ * @param {number} [perPage]
2160
+ * @param {*} [options] Override http request option.
2161
+ * @throws {RequiredError}
2162
+ */
2163
+ listWebhooks: (mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2164
+ /**
2165
+ * Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
2166
+ * @summary Regenerate webhook secret
2167
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2168
+ * @param {string} webhook Webhook identifier (UUID v7).
2169
+ * @param {*} [options] Override http request option.
2170
+ * @throws {RequiredError}
2171
+ */
2172
+ regenerateWebhookSecret: (mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2173
+ /**
2174
+ * Send a test delivery to the webhook URL and return the upstream response.
2175
+ * @summary Test webhook
2176
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2177
+ * @param {string} webhook Webhook identifier (UUID v7).
2178
+ * @param {*} [options] Override http request option.
2179
+ * @throws {RequiredError}
2180
+ */
2181
+ testWebhook: (mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2182
+ /**
2183
+ * Partially update a webhook.
2184
+ * @summary Update webhook
2185
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2186
+ * @param {string} webhook Webhook identifier (UUID v7).
2187
+ * @param {V1WebhooksUpdateRequest} v1WebhooksUpdateRequest
2188
+ * @param {*} [options] Override http request option.
2189
+ * @throws {RequiredError}
2190
+ */
2191
+ updateWebhook: (mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2192
+ };
2193
+ /**
2194
+ * WebhooksApi - functional programming interface
2195
+ * @export
2196
+ */
2197
+ export declare const WebhooksApiFp: (configuration?: Configuration) => {
2198
+ /**
2199
+ * Create a webhook. The response includes the one-time `secret` — store it securely as it is never returned again.
2200
+ * @summary Create webhook
2201
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2202
+ * @param {V1WebhooksCreateRequest} v1WebhooksCreateRequest
2203
+ * @param {*} [options] Override http request option.
2204
+ * @throws {RequiredError}
2205
+ */
2206
+ createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1WebhooksResourceWithSecret>>;
2207
+ /**
2208
+ * Delete a webhook.
2209
+ * @summary Delete webhook
2210
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2211
+ * @param {string} webhook Webhook identifier (UUID v7).
2212
+ * @param {*} [options] Override http request option.
2213
+ * @throws {RequiredError}
2214
+ */
2215
+ deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2216
+ /**
2217
+ * Retrieve a single webhook by id.
2218
+ * @summary Get webhook
2219
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2220
+ * @param {string} webhook Webhook identifier (UUID v7).
2221
+ * @param {*} [options] Override http request option.
2222
+ * @throws {RequiredError}
2223
+ */
2224
+ getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1WebhooksResource>>;
2225
+ /**
2226
+ * List webhooks for a mailbox.
2227
+ * @summary List webhooks
2228
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2229
+ * @param {ListWebhooksStatusEnum} [status]
2230
+ * @param {number} [page]
2231
+ * @param {number} [perPage]
2232
+ * @param {*} [options] Override http request option.
2233
+ * @throws {RequiredError}
2234
+ */
2235
+ listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1WebhooksCollection>>;
2236
+ /**
2237
+ * Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
2238
+ * @summary Regenerate webhook secret
2239
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2240
+ * @param {string} webhook Webhook identifier (UUID v7).
2241
+ * @param {*} [options] Override http request option.
2242
+ * @throws {RequiredError}
2243
+ */
2244
+ regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1WebhooksResourceWithSecret>>;
2245
+ /**
2246
+ * Send a test delivery to the webhook URL and return the upstream response.
2247
+ * @summary Test webhook
2248
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2249
+ * @param {string} webhook Webhook identifier (UUID v7).
2250
+ * @param {*} [options] Override http request option.
2251
+ * @throws {RequiredError}
2252
+ */
2253
+ testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1WebhooksTestResult>>;
2254
+ /**
2255
+ * Partially update a webhook.
2256
+ * @summary Update webhook
2257
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2258
+ * @param {string} webhook Webhook identifier (UUID v7).
2259
+ * @param {V1WebhooksUpdateRequest} v1WebhooksUpdateRequest
2260
+ * @param {*} [options] Override http request option.
2261
+ * @throws {RequiredError}
2262
+ */
2263
+ updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1WebhooksResource>>;
2264
+ };
2265
+ /**
2266
+ * WebhooksApi - factory interface
2267
+ * @export
2268
+ */
2269
+ export declare const WebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2270
+ /**
2271
+ * Create a webhook. The response includes the one-time `secret` — store it securely as it is never returned again.
2272
+ * @summary Create webhook
2273
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2274
+ * @param {V1WebhooksCreateRequest} v1WebhooksCreateRequest
2275
+ * @param {*} [options] Override http request option.
2276
+ * @throws {RequiredError}
2277
+ */
2278
+ createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1WebhooksResourceWithSecret>;
2279
+ /**
2280
+ * Delete a webhook.
2281
+ * @summary Delete webhook
2282
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2283
+ * @param {string} webhook Webhook identifier (UUID v7).
2284
+ * @param {*} [options] Override http request option.
2285
+ * @throws {RequiredError}
2286
+ */
2287
+ deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2288
+ /**
2289
+ * Retrieve a single webhook by id.
2290
+ * @summary Get webhook
2291
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2292
+ * @param {string} webhook Webhook identifier (UUID v7).
2293
+ * @param {*} [options] Override http request option.
2294
+ * @throws {RequiredError}
2295
+ */
2296
+ getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): AxiosPromise<V1WebhooksResource>;
2297
+ /**
2298
+ * List webhooks for a mailbox.
2299
+ * @summary List webhooks
2300
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2301
+ * @param {ListWebhooksStatusEnum} [status]
2302
+ * @param {number} [page]
2303
+ * @param {number} [perPage]
2304
+ * @param {*} [options] Override http request option.
2305
+ * @throws {RequiredError}
2306
+ */
2307
+ listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<V1WebhooksCollection>;
2308
+ /**
2309
+ * Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
2310
+ * @summary Regenerate webhook secret
2311
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2312
+ * @param {string} webhook Webhook identifier (UUID v7).
2313
+ * @param {*} [options] Override http request option.
2314
+ * @throws {RequiredError}
2315
+ */
2316
+ regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): AxiosPromise<V1WebhooksResourceWithSecret>;
2317
+ /**
2318
+ * Send a test delivery to the webhook URL and return the upstream response.
2319
+ * @summary Test webhook
2320
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2321
+ * @param {string} webhook Webhook identifier (UUID v7).
2322
+ * @param {*} [options] Override http request option.
2323
+ * @throws {RequiredError}
2324
+ */
2325
+ testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): AxiosPromise<V1WebhooksTestResult>;
2326
+ /**
2327
+ * Partially update a webhook.
2328
+ * @summary Update webhook
2329
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2330
+ * @param {string} webhook Webhook identifier (UUID v7).
2331
+ * @param {V1WebhooksUpdateRequest} v1WebhooksUpdateRequest
2332
+ * @param {*} [options] Override http request option.
2333
+ * @throws {RequiredError}
2334
+ */
2335
+ updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1WebhooksResource>;
2336
+ };
2337
+ /**
2338
+ * WebhooksApi - object-oriented interface
2339
+ * @export
2340
+ * @class WebhooksApi
2341
+ * @extends {BaseAPI}
2342
+ */
2343
+ export declare class WebhooksApi extends BaseAPI {
2344
+ /**
2345
+ * Create a webhook. The response includes the one-time `secret` — store it securely as it is never returned again.
2346
+ * @summary Create webhook
2347
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2348
+ * @param {V1WebhooksCreateRequest} v1WebhooksCreateRequest
2349
+ * @param {*} [options] Override http request option.
2350
+ * @throws {RequiredError}
2351
+ * @memberof WebhooksApi
2352
+ */
2353
+ createWebhook(mailboxResourceId: string, v1WebhooksCreateRequest: V1WebhooksCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}>>;
2354
+ /**
2355
+ * Delete a webhook.
2356
+ * @summary Delete webhook
2357
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2358
+ * @param {string} webhook Webhook identifier (UUID v7).
2359
+ * @param {*} [options] Override http request option.
2360
+ * @throws {RequiredError}
2361
+ * @memberof WebhooksApi
2362
+ */
2363
+ deleteWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
2364
+ /**
2365
+ * Retrieve a single webhook by id.
2366
+ * @summary Get webhook
2367
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2368
+ * @param {string} webhook Webhook identifier (UUID v7).
2369
+ * @param {*} [options] Override http request option.
2370
+ * @throws {RequiredError}
2371
+ * @memberof WebhooksApi
2372
+ */
2373
+ getWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}>>;
2374
+ /**
2375
+ * List webhooks for a mailbox.
2376
+ * @summary List webhooks
2377
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2378
+ * @param {ListWebhooksStatusEnum} [status]
2379
+ * @param {number} [page]
2380
+ * @param {number} [perPage]
2381
+ * @param {*} [options] Override http request option.
2382
+ * @throws {RequiredError}
2383
+ * @memberof WebhooksApi
2384
+ */
2385
+ listWebhooks(mailboxResourceId: string, status?: ListWebhooksStatusEnum, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksCollection, any, {}>>;
2386
+ /**
2387
+ * Regenerate the webhook secret. The previous secret is immediately invalidated. The new secret is returned once.
2388
+ * @summary Regenerate webhook secret
2389
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2390
+ * @param {string} webhook Webhook identifier (UUID v7).
2391
+ * @param {*} [options] Override http request option.
2392
+ * @throws {RequiredError}
2393
+ * @memberof WebhooksApi
2394
+ */
2395
+ regenerateWebhookSecret(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResourceWithSecret, any, {}>>;
2396
+ /**
2397
+ * Send a test delivery to the webhook URL and return the upstream response.
2398
+ * @summary Test webhook
2399
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2400
+ * @param {string} webhook Webhook identifier (UUID v7).
2401
+ * @param {*} [options] Override http request option.
2402
+ * @throws {RequiredError}
2403
+ * @memberof WebhooksApi
2404
+ */
2405
+ testWebhook(mailboxResourceId: string, webhook: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksTestResult, any, {}>>;
2406
+ /**
2407
+ * Partially update a webhook.
2408
+ * @summary Update webhook
2409
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox.
2410
+ * @param {string} webhook Webhook identifier (UUID v7).
2411
+ * @param {V1WebhooksUpdateRequest} v1WebhooksUpdateRequest
2412
+ * @param {*} [options] Override http request option.
2413
+ * @throws {RequiredError}
2414
+ * @memberof WebhooksApi
2415
+ */
2416
+ updateWebhook(mailboxResourceId: string, webhook: string, v1WebhooksUpdateRequest: V1WebhooksUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1WebhooksResource, any, {}>>;
2417
+ }
2418
+ /**
2419
+ * @export
2420
+ */
2421
+ export declare const ListWebhooksStatusEnum: {
2422
+ readonly Active: "active";
2423
+ readonly Paused: "paused";
2424
+ readonly Disabled: "disabled";
2425
+ };
2426
+ export type ListWebhooksStatusEnum = typeof ListWebhooksStatusEnum[keyof typeof ListWebhooksStatusEnum];