@hostinger/mail-sdk 1.19.9 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2905 -760
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +2206 -720
  7. package/dist/api.js +1249 -6
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +2206 -720
  15. package/dist/esm/api.js +1239 -5
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/CalendarEventsApi.md +505 -0
  27. package/docs/CalendarsApi.md +317 -0
  28. package/docs/MessagesApi.md +3 -0
  29. package/docs/SendApi.md +2 -2
  30. package/docs/V1CalendarEventsAttendee.md +25 -0
  31. package/docs/V1CalendarEventsAttendeeInput.md +23 -0
  32. package/docs/V1CalendarEventsCollection.md +23 -0
  33. package/docs/V1CalendarEventsCollectionMeta.md +20 -0
  34. package/docs/V1CalendarEventsCreateRequest.md +43 -0
  35. package/docs/V1CalendarEventsEvent.md +61 -0
  36. package/docs/V1CalendarEventsEventListItem.md +43 -0
  37. package/docs/V1CalendarEventsOrganizer.md +23 -0
  38. package/docs/V1CalendarEventsRecurrenceDay.md +23 -0
  39. package/docs/V1CalendarEventsRecurrenceRule.md +35 -0
  40. package/docs/V1CalendarEventsReminder.md +23 -0
  41. package/docs/V1CalendarEventsReplyRequest.md +23 -0
  42. package/docs/V1CalendarEventsRescheduleRequest.md +33 -0
  43. package/docs/V1CalendarEventsResource.md +21 -0
  44. package/docs/V1CalendarEventsUpdateRequest.md +49 -0
  45. package/docs/V1CalendarsCalendar.md +31 -0
  46. package/docs/V1CalendarsCollection.md +23 -0
  47. package/docs/V1CalendarsCreateRequest.md +27 -0
  48. package/docs/V1CalendarsResource.md +21 -0
  49. package/docs/V1CalendarsUpdateRequest.md +27 -0
  50. package/index.ts +1 -1
  51. package/package.json +2 -2
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger Mail API
3
3
  *
4
- * API Version: 1.3.0
4
+ * API Version: 1.4.0
5
5
  *
6
6
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
7
7
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -69,1038 +69,1921 @@ export interface Pagination {
69
69
  'totalPages': number;
70
70
  }
71
71
  /**
72
- * Feedback the user wants to send to the Hostinger mail team. The message is scrubbed of tokens, JWTs and key/secret/password values before validation and storage, so the length limit applies to the scrubbed text.
72
+ * Attendee of an event with their answer to the invitation.
73
73
  * @export
74
- * @interface V1FeedbackSubmitRequest
74
+ * @interface V1CalendarEventsAttendee
75
75
  */
76
- export interface V1FeedbackSubmitRequest {
76
+ export interface V1CalendarEventsAttendee {
77
77
  /**
78
- * The user\'s rating of the Hostinger Email API: 1 (poor) to 10 (excellent).
79
- * @type {number}
80
- * @memberof V1FeedbackSubmitRequest
78
+ *
79
+ * @type {string}
80
+ * @memberof V1CalendarEventsAttendee
81
81
  */
82
- 'score': number;
82
+ 'name': string | null;
83
83
  /**
84
- * The user\'s feedback in their own words. Never include tokens, passwords or email contents.
84
+ *
85
85
  * @type {string}
86
- * @memberof V1FeedbackSubmitRequest
86
+ * @memberof V1CalendarEventsAttendee
87
87
  */
88
- 'message': string;
88
+ 'email': string;
89
+ /**
90
+ * Answer of the attendee. NEEDS-ACTION means no answer yet.
91
+ * @type {string}
92
+ * @memberof V1CalendarEventsAttendee
93
+ */
94
+ 'participationStatus': V1CalendarEventsAttendeeParticipationStatusEnum;
89
95
  }
96
+ export declare const V1CalendarEventsAttendeeParticipationStatusEnum: {
97
+ readonly NeedsAction: "NEEDS-ACTION";
98
+ readonly Accepted: "ACCEPTED";
99
+ readonly Declined: "DECLINED";
100
+ readonly Tentative: "TENTATIVE";
101
+ readonly Delegated: "DELEGATED";
102
+ };
103
+ export type V1CalendarEventsAttendeeParticipationStatusEnum = typeof V1CalendarEventsAttendeeParticipationStatusEnum[keyof typeof V1CalendarEventsAttendeeParticipationStatusEnum];
90
104
  /**
91
- * Paginated list of messages.
105
+ * Person to invite to an event.
92
106
  * @export
93
- * @interface V1FolderMessagesCollection
107
+ * @interface V1CalendarEventsAttendeeInput
94
108
  */
95
- export interface V1FolderMessagesCollection {
109
+ export interface V1CalendarEventsAttendeeInput {
110
+ /**
111
+ * Display name of the attendee, null when unknown.
112
+ * @type {string}
113
+ * @memberof V1CalendarEventsAttendeeInput
114
+ */
115
+ 'name': string | null;
116
+ /**
117
+ * Email address of the attendee.
118
+ * @type {string}
119
+ * @memberof V1CalendarEventsAttendeeInput
120
+ */
121
+ 'email': string;
122
+ }
123
+ /**
124
+ * Calendar events overlapping the requested time range. Not paginated.
125
+ * @export
126
+ * @interface V1CalendarEventsCollection
127
+ */
128
+ export interface V1CalendarEventsCollection {
96
129
  /**
97
130
  *
98
- * @type {Array<V1FolderMessagesMessage>}
99
- * @memberof V1FolderMessagesCollection
131
+ * @type {Array<V1CalendarEventsEventListItem>}
132
+ * @memberof V1CalendarEventsCollection
100
133
  */
101
- 'data': Array<V1FolderMessagesMessage>;
134
+ 'data': Array<V1CalendarEventsEventListItem>;
102
135
  /**
103
136
  *
104
- * @type {Pagination}
105
- * @memberof V1FolderMessagesCollection
137
+ * @type {V1CalendarEventsCollectionMeta}
138
+ * @memberof V1CalendarEventsCollection
106
139
  */
107
- 'pagination': Pagination;
140
+ 'meta': V1CalendarEventsCollectionMeta;
108
141
  }
109
142
  /**
110
- * Body for permanently deleting multiple messages.
143
+ *
111
144
  * @export
112
- * @interface V1FolderMessagesDeleteBulkRequest
145
+ * @interface V1CalendarEventsCollectionMeta
113
146
  */
114
- export interface V1FolderMessagesDeleteBulkRequest {
147
+ export interface V1CalendarEventsCollectionMeta {
115
148
  /**
116
- * Message UIDs to delete. 1-100 entries, each > 0.
117
- * @type {Array<number>}
118
- * @memberof V1FolderMessagesDeleteBulkRequest
149
+ * Whether some events were left out because the calendar holds too many to list in one request.
150
+ * @type {boolean}
151
+ * @memberof V1CalendarEventsCollectionMeta
119
152
  */
120
- 'uids': Array<number>;
153
+ 'truncated': boolean;
121
154
  }
122
155
  /**
123
- * Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
156
+ * Body for creating a calendar event.
124
157
  * @export
125
- * @interface V1FolderMessagesFlagsBulkRequest
158
+ * @interface V1CalendarEventsCreateRequest
126
159
  */
127
- export interface V1FolderMessagesFlagsBulkRequest {
160
+ export interface V1CalendarEventsCreateRequest {
128
161
  /**
129
- * Message UIDs to update. 1-100 entries, each > 0.
130
- * @type {Array<number>}
131
- * @memberof V1FolderMessagesFlagsBulkRequest
162
+ * Title of the event.
163
+ * @type {string}
164
+ * @memberof V1CalendarEventsCreateRequest
132
165
  */
133
- 'uids': Array<number>;
166
+ 'title': string;
134
167
  /**
135
- * IMAP flags to set on every listed message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
136
- * @type {Array<string>}
137
- * @memberof V1FolderMessagesFlagsBulkRequest
168
+ * ISO 8601 date-time with offset; without an offset it is read as UTC. For an all-day event a date is enough (2026-09-28).
169
+ * @type {string}
170
+ * @memberof V1CalendarEventsCreateRequest
138
171
  */
139
- 'addFlags': Array<string>;
172
+ 'start': string;
140
173
  /**
141
- * IMAP flags to clear from every listed message.
142
- * @type {Array<string>}
143
- * @memberof V1FolderMessagesFlagsBulkRequest
174
+ * Exclusive end, same format as `start`. Required for a timed event and not before `start`. For an all-day event the day after the last day (2026-09-29 for one day on 2026-09-28); omitted means one day.
175
+ * @type {string}
176
+ * @memberof V1CalendarEventsCreateRequest
144
177
  */
145
- 'removeFlags': Array<string>;
146
- }
147
- /**
148
- * Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
149
- * @export
150
- * @interface V1FolderMessagesFlagsRequest
151
- */
152
- export interface V1FolderMessagesFlagsRequest {
178
+ 'end': string | null;
153
179
  /**
154
- * IMAP flags to set on the message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
155
- * @type {Array<string>}
156
- * @memberof V1FolderMessagesFlagsRequest
180
+ * `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day.
181
+ * @type {boolean}
182
+ * @memberof V1CalendarEventsCreateRequest
157
183
  */
158
- 'addFlags': Array<string>;
184
+ 'allDay': boolean;
159
185
  /**
160
- * IMAP flags to clear from the message.
161
- * @type {Array<string>}
162
- * @memberof V1FolderMessagesFlagsRequest
186
+ * IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true.
187
+ * @type {string}
188
+ * @memberof V1CalendarEventsCreateRequest
163
189
  */
164
- 'removeFlags': Array<string>;
190
+ 'timeZone': string | null;
191
+ /**
192
+ * Notes of the event. Omitted or null for none.
193
+ * @type {string}
194
+ * @memberof V1CalendarEventsCreateRequest
195
+ */
196
+ 'description': string | null;
197
+ /**
198
+ * Place of the event. Omitted or null for none.
199
+ * @type {string}
200
+ * @memberof V1CalendarEventsCreateRequest
201
+ */
202
+ 'location': string | null;
203
+ /**
204
+ * http or https URL of the online meeting. Omitted or null for none.
205
+ * @type {string}
206
+ * @memberof V1CalendarEventsCreateRequest
207
+ */
208
+ 'meetingLink': string | null;
209
+ /**
210
+ * Color of the event as #RRGGBB or #RRGGBBAA. Omitted or null uses the calendar color.
211
+ * @type {string}
212
+ * @memberof V1CalendarEventsCreateRequest
213
+ */
214
+ 'color': string | null;
215
+ /**
216
+ * Omitted or null for a one-off event. A repeating event sends every field of the rule, null when unused: `frequency` DAILY, WEEKLY, MONTHLY or YEARLY, `interval` 1 to 1000, and `count` or `until` to end it, not both.
217
+ * @type {V1CalendarEventsRecurrenceRule}
218
+ * @memberof V1CalendarEventsCreateRequest
219
+ */
220
+ 'recurrenceRule': V1CalendarEventsRecurrenceRule | null;
221
+ /**
222
+ * Alarm before the start: `value` 0 to 1000 and `unit`. Omitted or null for none.
223
+ * @type {V1CalendarEventsReminder}
224
+ * @memberof V1CalendarEventsCreateRequest
225
+ */
226
+ 'reminder': V1CalendarEventsReminder | null;
227
+ /**
228
+ * People to invite; each receives an email invitation. Unique addresses, at most 100 not counting the mailbox itself, across all occurrences. The own address of the mailbox is stored as accepted and not invited. Omitted, null or empty for none.
229
+ * @type {Array<V1CalendarEventsAttendeeInput>}
230
+ * @memberof V1CalendarEventsCreateRequest
231
+ */
232
+ 'attendees': Array<V1CalendarEventsAttendeeInput> | null;
165
233
  }
166
234
  /**
167
- * A message in a folder of the managed mailbox.
235
+ * Full details of one calendar event. Requested without `recurrenceId`, a recurring event is the series itself and `recurrenceId` is null; with it, one occurrence of the series.
168
236
  * @export
169
- * @interface V1FolderMessagesMessage
237
+ * @interface V1CalendarEventsEvent
170
238
  */
171
- export interface V1FolderMessagesMessage {
239
+ export interface V1CalendarEventsEvent {
172
240
  /**
173
- *
174
- * @type {number}
175
- * @memberof V1FolderMessagesMessage
241
+ * Event identifier, the `eventUuid` of the calendar event endpoints. Every occurrence of a recurring event has the same uuid.
242
+ * @type {string}
243
+ * @memberof V1CalendarEventsEvent
176
244
  */
177
- 'uid': number;
245
+ 'uuid': string;
178
246
  /**
179
- *
247
+ * Identifier of the calendar the event is stored in.
180
248
  * @type {string}
181
- * @memberof V1FolderMessagesMessage
249
+ * @memberof V1CalendarEventsEvent
182
250
  */
183
- 'path': string;
251
+ 'calendarUuid': string;
184
252
  /**
185
- *
253
+ * Identifies one occurrence of a recurring event. Null for a one-off event or for the series itself.
186
254
  * @type {string}
187
- * @memberof V1FolderMessagesMessage
255
+ * @memberof V1CalendarEventsEvent
188
256
  */
189
- 'date': string;
257
+ 'recurrenceId': string | null;
190
258
  /**
191
259
  *
192
- * @type {Array<string>}
193
- * @memberof V1FolderMessagesMessage
260
+ * @type {string}
261
+ * @memberof V1CalendarEventsEvent
194
262
  */
195
- 'flags': Array<string>;
263
+ 'title': string;
264
+ /**
265
+ * Start in UTC. When `allDay` is true, the date at midnight (2026-09-29T00:00:00.000000Z). An event stored without a time zone keeps its wall-clock time (09:00 is 09:00:00.000000Z).
266
+ * @type {string}
267
+ * @memberof V1CalendarEventsEvent
268
+ */
269
+ 'start': string;
270
+ /**
271
+ * Exclusive end, same form as `start`. When `allDay` is true, midnight of the day after the last day of the event (2026-09-30T00:00:00.000000Z for a one-day event on 2026-09-29).
272
+ * @type {string}
273
+ * @memberof V1CalendarEventsEvent
274
+ */
275
+ 'end': string;
196
276
  /**
197
277
  *
198
278
  * @type {boolean}
199
- * @memberof V1FolderMessagesMessage
279
+ * @memberof V1CalendarEventsEvent
200
280
  */
201
- 'unseen': boolean;
281
+ 'allDay': boolean;
202
282
  /**
203
- *
204
- * @type {number}
205
- * @memberof V1FolderMessagesMessage
283
+ * IANA time zone the event is stored in. Null when it has none.
284
+ * @type {string}
285
+ * @memberof V1CalendarEventsEvent
206
286
  */
207
- 'size': number;
287
+ 'timeZone': string | null;
208
288
  /**
209
- *
289
+ * Whether `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent` can change the event.
290
+ * @type {boolean}
291
+ * @memberof V1CalendarEventsEvent
292
+ */
293
+ 'editable': boolean;
294
+ /**
295
+ * Color of the event. The calendar color when the event has none or is an invitation from someone else.
210
296
  * @type {string}
211
- * @memberof V1FolderMessagesMessage
297
+ * @memberof V1CalendarEventsEvent
212
298
  */
213
- 'subject': string | null;
299
+ 'color': string | null;
214
300
  /**
215
- *
216
- * @type {V1FolderMessagesMessageAddress}
217
- * @memberof V1FolderMessagesMessage
301
+ * Answer of the mailbox to an invitation from someone else. Null for its own events.
302
+ * @type {string}
303
+ * @memberof V1CalendarEventsEvent
218
304
  */
219
- 'from': V1FolderMessagesMessageAddress | null;
305
+ 'participationStatus': V1CalendarEventsEventParticipationStatusEnum | null;
220
306
  /**
221
- *
222
- * @type {Array<V1FolderMessagesMessageAddress>}
223
- * @memberof V1FolderMessagesMessage
307
+ * CANCELLED when the organizer cancelled the event, CONFIRMED otherwise.
308
+ * @type {string}
309
+ * @memberof V1CalendarEventsEvent
224
310
  */
225
- 'to': Array<V1FolderMessagesMessageAddress>;
311
+ 'status': V1CalendarEventsEventStatusEnum;
226
312
  /**
227
- *
228
- * @type {Array<V1FolderMessagesMessageAddress>}
229
- * @memberof V1FolderMessagesMessage
313
+ * Version of the event. Send it as `If-Match` on a write to fail instead of overwriting a newer version.
314
+ * @type {string}
315
+ * @memberof V1CalendarEventsEvent
230
316
  */
231
- 'cc': Array<V1FolderMessagesMessageAddress>;
317
+ 'etag': string;
318
+ /**
319
+ * Whether the mailbox is invited by someone else and the event is not cancelled, so `replyToCalendarEvent` can answer it.
320
+ * @type {boolean}
321
+ * @memberof V1CalendarEventsEvent
322
+ */
323
+ 'replyable': boolean;
232
324
  /**
233
325
  *
234
- * @type {Array<V1FolderMessagesMessageAddress>}
235
- * @memberof V1FolderMessagesMessage
326
+ * @type {string}
327
+ * @memberof V1CalendarEventsEvent
236
328
  */
237
- 'bcc': Array<V1FolderMessagesMessageAddress>;
329
+ 'description': string | null;
238
330
  /**
239
331
  *
240
332
  * @type {string}
241
- * @memberof V1FolderMessagesMessage
333
+ * @memberof V1CalendarEventsEvent
242
334
  */
243
- 'messageId': string | null;
335
+ 'location': string | null;
244
336
  /**
245
337
  *
246
338
  * @type {string}
247
- * @memberof V1FolderMessagesMessage
339
+ * @memberof V1CalendarEventsEvent
248
340
  */
249
- 'inReplyTo': string | null;
341
+ 'meetingLink': string | null;
342
+ /**
343
+ * How the event repeats. Null for a one-off event.
344
+ * @type {V1CalendarEventsRecurrenceRule}
345
+ * @memberof V1CalendarEventsEvent
346
+ */
347
+ 'recurrenceRule': V1CalendarEventsRecurrenceRule | null;
348
+ /**
349
+ * Alarm before the start. Null for none.
350
+ * @type {V1CalendarEventsReminder}
351
+ * @memberof V1CalendarEventsEvent
352
+ */
353
+ 'reminder': V1CalendarEventsReminder | null;
354
+ /**
355
+ * Who organizes the event. Null when the event has no organizer.
356
+ * @type {V1CalendarEventsOrganizer}
357
+ * @memberof V1CalendarEventsEvent
358
+ */
359
+ 'organizer': V1CalendarEventsOrganizer | null;
250
360
  /**
251
361
  *
252
- * @type {Array<V1FolderMessagesMessageAttachment>}
253
- * @memberof V1FolderMessagesMessage
362
+ * @type {Array<V1CalendarEventsAttendee>}
363
+ * @memberof V1CalendarEventsEvent
254
364
  */
255
- 'attachments': Array<V1FolderMessagesMessageAttachment>;
365
+ 'attendees': Array<V1CalendarEventsAttendee>;
256
366
  }
367
+ export declare const V1CalendarEventsEventParticipationStatusEnum: {
368
+ readonly NeedsAction: "NEEDS-ACTION";
369
+ readonly Accepted: "ACCEPTED";
370
+ readonly Declined: "DECLINED";
371
+ readonly Tentative: "TENTATIVE";
372
+ readonly Delegated: "DELEGATED";
373
+ };
374
+ export type V1CalendarEventsEventParticipationStatusEnum = typeof V1CalendarEventsEventParticipationStatusEnum[keyof typeof V1CalendarEventsEventParticipationStatusEnum];
375
+ export declare const V1CalendarEventsEventStatusEnum: {
376
+ readonly Confirmed: "CONFIRMED";
377
+ readonly Cancelled: "CANCELLED";
378
+ };
379
+ export type V1CalendarEventsEventStatusEnum = typeof V1CalendarEventsEventStatusEnum[keyof typeof V1CalendarEventsEventStatusEnum];
257
380
  /**
258
- * A single email address with optional display name.
381
+ * Summary of one calendar event or of one occurrence of a recurring event.
259
382
  * @export
260
- * @interface V1FolderMessagesMessageAddress
383
+ * @interface V1CalendarEventsEventListItem
261
384
  */
262
- export interface V1FolderMessagesMessageAddress {
385
+ export interface V1CalendarEventsEventListItem {
263
386
  /**
264
- *
387
+ * Event identifier, the `eventUuid` of the calendar event endpoints. Every occurrence of a recurring event has the same uuid.
265
388
  * @type {string}
266
- * @memberof V1FolderMessagesMessageAddress
389
+ * @memberof V1CalendarEventsEventListItem
267
390
  */
268
- 'name': string;
391
+ 'uuid': string;
269
392
  /**
270
- *
393
+ * Identifier of the calendar the event is stored in.
271
394
  * @type {string}
272
- * @memberof V1FolderMessagesMessageAddress
395
+ * @memberof V1CalendarEventsEventListItem
273
396
  */
274
- 'address': string;
275
- }
276
- /**
277
- * Attachment metadata attached to a message.
278
- * @export
279
- * @interface V1FolderMessagesMessageAttachment
280
- */
281
- export interface V1FolderMessagesMessageAttachment {
397
+ 'calendarUuid': string;
282
398
  /**
283
- * Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint.
399
+ * Identifies one occurrence of a recurring event. Null for a one-off event or for the series itself.
284
400
  * @type {string}
285
- * @memberof V1FolderMessagesMessageAttachment
401
+ * @memberof V1CalendarEventsEventListItem
286
402
  */
287
- 'id': string;
403
+ 'recurrenceId': string | null;
288
404
  /**
289
405
  *
290
406
  * @type {string}
291
- * @memberof V1FolderMessagesMessageAttachment
407
+ * @memberof V1CalendarEventsEventListItem
292
408
  */
293
- 'contentType': string;
409
+ 'title': string;
294
410
  /**
295
- *
296
- * @type {number}
297
- * @memberof V1FolderMessagesMessageAttachment
411
+ * Start in UTC. When `allDay` is true, the date at midnight (2026-09-29T00:00:00.000000Z). An event stored without a time zone keeps its wall-clock time (09:00 is 09:00:00.000000Z).
412
+ * @type {string}
413
+ * @memberof V1CalendarEventsEventListItem
298
414
  */
299
- 'sizeBytes': number;
415
+ 'start': string;
416
+ /**
417
+ * Exclusive end, same form as `start`. When `allDay` is true, midnight of the day after the last day of the event (2026-09-30T00:00:00.000000Z for a one-day event on 2026-09-29).
418
+ * @type {string}
419
+ * @memberof V1CalendarEventsEventListItem
420
+ */
421
+ 'end': string;
300
422
  /**
301
423
  *
302
424
  * @type {boolean}
303
- * @memberof V1FolderMessagesMessageAttachment
425
+ * @memberof V1CalendarEventsEventListItem
304
426
  */
305
- 'inline': boolean;
427
+ 'allDay': boolean;
306
428
  /**
307
- *
429
+ * IANA time zone the event is stored in. Null when it has none.
308
430
  * @type {string}
309
- * @memberof V1FolderMessagesMessageAttachment
431
+ * @memberof V1CalendarEventsEventListItem
310
432
  */
311
- 'filename': string | null;
433
+ 'timeZone': string | null;
312
434
  /**
313
- *
435
+ * Whether `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent` can change the event.
436
+ * @type {boolean}
437
+ * @memberof V1CalendarEventsEventListItem
438
+ */
439
+ 'editable': boolean;
440
+ /**
441
+ * Color of the event. The calendar color when the event has none or is an invitation from someone else.
314
442
  * @type {string}
315
- * @memberof V1FolderMessagesMessageAttachment
443
+ * @memberof V1CalendarEventsEventListItem
316
444
  */
317
- 'contentId': string | null;
445
+ 'color': string | null;
446
+ /**
447
+ * Answer of the mailbox to an invitation from someone else. Null for its own events.
448
+ * @type {string}
449
+ * @memberof V1CalendarEventsEventListItem
450
+ */
451
+ 'participationStatus': V1CalendarEventsEventListItemParticipationStatusEnum | null;
452
+ /**
453
+ * CANCELLED when the organizer cancelled the event, CONFIRMED otherwise.
454
+ * @type {string}
455
+ * @memberof V1CalendarEventsEventListItem
456
+ */
457
+ 'status': V1CalendarEventsEventListItemStatusEnum;
318
458
  }
459
+ export declare const V1CalendarEventsEventListItemParticipationStatusEnum: {
460
+ readonly NeedsAction: "NEEDS-ACTION";
461
+ readonly Accepted: "ACCEPTED";
462
+ readonly Declined: "DECLINED";
463
+ readonly Tentative: "TENTATIVE";
464
+ readonly Delegated: "DELEGATED";
465
+ };
466
+ export type V1CalendarEventsEventListItemParticipationStatusEnum = typeof V1CalendarEventsEventListItemParticipationStatusEnum[keyof typeof V1CalendarEventsEventListItemParticipationStatusEnum];
467
+ export declare const V1CalendarEventsEventListItemStatusEnum: {
468
+ readonly Confirmed: "CONFIRMED";
469
+ readonly Cancelled: "CANCELLED";
470
+ };
471
+ export type V1CalendarEventsEventListItemStatusEnum = typeof V1CalendarEventsEventListItemStatusEnum[keyof typeof V1CalendarEventsEventListItemStatusEnum];
319
472
  /**
320
- * Rendered text and HTML parts of a message.
473
+ * Organizer of an event.
321
474
  * @export
322
- * @interface V1FolderMessagesMessageText
475
+ * @interface V1CalendarEventsOrganizer
323
476
  */
324
- export interface V1FolderMessagesMessageText {
477
+ export interface V1CalendarEventsOrganizer {
325
478
  /**
326
479
  *
327
480
  * @type {string}
328
- * @memberof V1FolderMessagesMessageText
481
+ * @memberof V1CalendarEventsOrganizer
329
482
  */
330
- 'text': string;
483
+ 'name': string | null;
331
484
  /**
332
485
  *
333
486
  * @type {string}
334
- * @memberof V1FolderMessagesMessageText
487
+ * @memberof V1CalendarEventsOrganizer
335
488
  */
336
- 'html': string;
489
+ 'email': string;
337
490
  }
338
491
  /**
339
- * Single message text payload.
492
+ * One weekday of a recurrence rule.
340
493
  * @export
341
- * @interface V1FolderMessagesMessageTextResource
494
+ * @interface V1CalendarEventsRecurrenceDay
342
495
  */
343
- export interface V1FolderMessagesMessageTextResource {
496
+ export interface V1CalendarEventsRecurrenceDay {
344
497
  /**
345
498
  *
346
- * @type {V1FolderMessagesMessageText}
347
- * @memberof V1FolderMessagesMessageTextResource
499
+ * @type {string}
500
+ * @memberof V1CalendarEventsRecurrenceDay
348
501
  */
349
- 'data': V1FolderMessagesMessageText;
502
+ 'day': V1CalendarEventsRecurrenceDayDayEnum;
503
+ /**
504
+ * Which such weekday in the month or year, for a MONTHLY or YEARLY rule only: 1 is the first, -1 the last, never 0. Null means every such weekday and is the only value allowed for other frequencies.
505
+ * @type {number}
506
+ * @memberof V1CalendarEventsRecurrenceDay
507
+ */
508
+ 'position': number | null;
350
509
  }
510
+ export declare const V1CalendarEventsRecurrenceDayDayEnum: {
511
+ readonly Monday: "monday";
512
+ readonly Tuesday: "tuesday";
513
+ readonly Wednesday: "wednesday";
514
+ readonly Thursday: "thursday";
515
+ readonly Friday: "friday";
516
+ readonly Saturday: "saturday";
517
+ readonly Sunday: "sunday";
518
+ };
519
+ export type V1CalendarEventsRecurrenceDayDayEnum = typeof V1CalendarEventsRecurrenceDayDayEnum[keyof typeof V1CalendarEventsRecurrenceDayDayEnum];
351
520
  /**
352
- * Body for moving multiple messages to a target folder.
521
+ * How an event repeats. Every field is always present, null when unused.
353
522
  * @export
354
- * @interface V1FolderMessagesMoveBulkRequest
523
+ * @interface V1CalendarEventsRecurrenceRule
355
524
  */
356
- export interface V1FolderMessagesMoveBulkRequest {
525
+ export interface V1CalendarEventsRecurrenceRule {
357
526
  /**
358
- * Message UIDs to move. 1-100 entries, each > 0.
359
- * @type {Array<number>}
360
- * @memberof V1FolderMessagesMoveBulkRequest
527
+ * Unit of repetition. Only DAILY, WEEKLY, MONTHLY and YEARLY can be written; SECONDLY, MINUTELY and HOURLY appear only on events created by other calendar applications.
528
+ * @type {string}
529
+ * @memberof V1CalendarEventsRecurrenceRule
361
530
  */
362
- 'uids': Array<number>;
531
+ 'frequency': V1CalendarEventsRecurrenceRuleFrequencyEnum;
363
532
  /**
364
- * Destination folder path.
365
- * @type {string}
366
- * @memberof V1FolderMessagesMoveBulkRequest
533
+ * Repeat every this many units of `frequency`. 1 to 1000 when writing.
534
+ * @type {number}
535
+ * @memberof V1CalendarEventsRecurrenceRule
367
536
  */
368
- 'targetFolder': string;
369
- }
370
- /**
371
- * Body for moving a single message to a target folder.
372
- * @export
373
- * @interface V1FolderMessagesMoveRequest
374
- */
375
- export interface V1FolderMessagesMoveRequest {
537
+ 'interval': number;
376
538
  /**
377
- * Destination folder path.
539
+ * Weekdays the event repeats on. Null when unused.
540
+ * @type {Array<V1CalendarEventsRecurrenceDay>}
541
+ * @memberof V1CalendarEventsRecurrenceRule
542
+ */
543
+ 'byDay': Array<V1CalendarEventsRecurrenceDay> | null;
544
+ /**
545
+ * Days of the month, 1 to 31. Negative values count from the end of the month: -1 is the last day. Always null for a WEEKLY rule.
546
+ * @type {Array<number>}
547
+ * @memberof V1CalendarEventsRecurrenceRule
548
+ */
549
+ 'byMonthDay': Array<number> | null;
550
+ /**
551
+ * Months, 1 is January. Null when unused.
552
+ * @type {Array<number>}
553
+ * @memberof V1CalendarEventsRecurrenceRule
554
+ */
555
+ 'byMonth': Array<number> | null;
556
+ /**
557
+ * Number of occurrences after which the series ends, at most 1000 when writing. Never set together with `until`.
558
+ * @type {number}
559
+ * @memberof V1CalendarEventsRecurrenceRule
560
+ */
561
+ 'count': number | null;
562
+ /**
563
+ * Moment after which the series ends, not before the start of the event. Never set together with `count`.
378
564
  * @type {string}
379
- * @memberof V1FolderMessagesMoveRequest
565
+ * @memberof V1CalendarEventsRecurrenceRule
380
566
  */
381
- 'targetFolder': string;
567
+ 'until': string | null;
568
+ /**
569
+ * First day of the week used by the rule. Null when not set.
570
+ * @type {string}
571
+ * @memberof V1CalendarEventsRecurrenceRule
572
+ */
573
+ 'weekStart': V1CalendarEventsRecurrenceRuleWeekStartEnum | null;
382
574
  }
575
+ export declare const V1CalendarEventsRecurrenceRuleFrequencyEnum: {
576
+ readonly Secondly: "SECONDLY";
577
+ readonly Minutely: "MINUTELY";
578
+ readonly Hourly: "HOURLY";
579
+ readonly Daily: "DAILY";
580
+ readonly Weekly: "WEEKLY";
581
+ readonly Monthly: "MONTHLY";
582
+ readonly Yearly: "YEARLY";
583
+ };
584
+ export type V1CalendarEventsRecurrenceRuleFrequencyEnum = typeof V1CalendarEventsRecurrenceRuleFrequencyEnum[keyof typeof V1CalendarEventsRecurrenceRuleFrequencyEnum];
585
+ export declare const V1CalendarEventsRecurrenceRuleWeekStartEnum: {
586
+ readonly Monday: "monday";
587
+ readonly Tuesday: "tuesday";
588
+ readonly Wednesday: "wednesday";
589
+ readonly Thursday: "thursday";
590
+ readonly Friday: "friday";
591
+ readonly Saturday: "saturday";
592
+ readonly Sunday: "sunday";
593
+ };
594
+ export type V1CalendarEventsRecurrenceRuleWeekStartEnum = typeof V1CalendarEventsRecurrenceRuleWeekStartEnum[keyof typeof V1CalendarEventsRecurrenceRuleWeekStartEnum];
383
595
  /**
384
- * Single message payload.
596
+ * Alarm of an event: how long before the start it fires.
385
597
  * @export
386
- * @interface V1FolderMessagesResource
598
+ * @interface V1CalendarEventsReminder
387
599
  */
388
- export interface V1FolderMessagesResource {
600
+ export interface V1CalendarEventsReminder {
601
+ /**
602
+ * How many units before the start. 0 is at the start time. At most 1000 when writing.
603
+ * @type {number}
604
+ * @memberof V1CalendarEventsReminder
605
+ */
606
+ 'value': number;
389
607
  /**
390
608
  *
391
- * @type {V1FolderMessagesMessage}
392
- * @memberof V1FolderMessagesResource
609
+ * @type {string}
610
+ * @memberof V1CalendarEventsReminder
393
611
  */
394
- 'data': V1FolderMessagesMessage;
612
+ 'unit': V1CalendarEventsReminderUnitEnum;
395
613
  }
614
+ export declare const V1CalendarEventsReminderUnitEnum: {
615
+ readonly Minutes: "minutes";
616
+ readonly Hours: "hours";
617
+ readonly Days: "days";
618
+ readonly Weeks: "weeks";
619
+ };
620
+ export type V1CalendarEventsReminderUnitEnum = typeof V1CalendarEventsReminderUnitEnum[keyof typeof V1CalendarEventsReminderUnitEnum];
396
621
  /**
397
- * Search criteria. All fields optional. subject, from, to, cc and body are alternatives (a message matching any one of them qualifies); all other fields are combined with AND.
622
+ * Body for answering an invitation.
398
623
  * @export
399
- * @interface V1FolderMessagesSearchRequest
624
+ * @interface V1CalendarEventsReplyRequest
400
625
  */
401
- export interface V1FolderMessagesSearchRequest {
626
+ export interface V1CalendarEventsReplyRequest {
402
627
  /**
403
- * Only messages received on or after this date (YYYY-MM-DD).
628
+ * The answer to the invitation.
404
629
  * @type {string}
405
- * @memberof V1FolderMessagesSearchRequest
630
+ * @memberof V1CalendarEventsReplyRequest
406
631
  */
407
- 'since': string;
632
+ 'participationStatus': V1CalendarEventsReplyRequestParticipationStatusEnum;
408
633
  /**
409
- * Only messages received before this date (YYYY-MM-DD).
634
+ * `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item, to answer only that occurrence. Omitted or null answers the whole event.
410
635
  * @type {string}
411
- * @memberof V1FolderMessagesSearchRequest
636
+ * @memberof V1CalendarEventsReplyRequest
412
637
  */
413
- 'before': string;
638
+ 'recurrenceId': string | null;
639
+ }
640
+ export declare const V1CalendarEventsReplyRequestParticipationStatusEnum: {
641
+ readonly Accepted: "ACCEPTED";
642
+ readonly Declined: "DECLINED";
643
+ readonly Tentative: "TENTATIVE";
644
+ };
645
+ export type V1CalendarEventsReplyRequestParticipationStatusEnum = typeof V1CalendarEventsReplyRequestParticipationStatusEnum[keyof typeof V1CalendarEventsReplyRequestParticipationStatusEnum];
646
+ /**
647
+ * Body for moving a calendar event to another time or changing its length.
648
+ * @export
649
+ * @interface V1CalendarEventsRescheduleRequest
650
+ */
651
+ export interface V1CalendarEventsRescheduleRequest {
414
652
  /**
415
- * Only messages carrying all of these IMAP flags, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
416
- * @type {Array<string>}
417
- * @memberof V1FolderMessagesSearchRequest
653
+ * ISO 8601 date-time with offset; without an offset it is read as UTC. For an all-day event a date is enough (2026-09-28).
654
+ * @type {string}
655
+ * @memberof V1CalendarEventsRescheduleRequest
418
656
  */
419
- 'flags': Array<string>;
657
+ 'start': string;
420
658
  /**
421
- * IMAP UID set: single UID, range (1:100), open range (100:*), or comma-separated list.
659
+ * Exclusive end, same format as `start`. Required for a timed event and not before `start`. For an all-day event the day after the last day (2026-09-29 for one day on 2026-09-28); omitted means one day.
422
660
  * @type {string}
423
- * @memberof V1FolderMessagesSearchRequest
661
+ * @memberof V1CalendarEventsRescheduleRequest
424
662
  */
425
- 'uid': string;
663
+ 'end': string | null;
426
664
  /**
427
- * Case-insensitive substring match on the Subject header. OR-combined with from/to/cc/body.
665
+ * `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day.
666
+ * @type {boolean}
667
+ * @memberof V1CalendarEventsRescheduleRequest
668
+ */
669
+ 'allDay': boolean;
670
+ /**
671
+ * IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true.
428
672
  * @type {string}
429
- * @memberof V1FolderMessagesSearchRequest
673
+ * @memberof V1CalendarEventsRescheduleRequest
430
674
  */
431
- 'subject': string;
675
+ 'timeZone': string | null;
432
676
  /**
433
- * Case-insensitive substring match on the From header. OR-combined with subject/to/cc/body.
677
+ * For a recurring event: `this` moves the occurrence at `recurrenceId`, `future` moves it and every later one, `all` moves the whole series. Omitted or null means `all`. Required when `recurrenceId` is sent.
434
678
  * @type {string}
435
- * @memberof V1FolderMessagesSearchRequest
679
+ * @memberof V1CalendarEventsRescheduleRequest
436
680
  */
437
- 'from': string;
681
+ 'scope': V1CalendarEventsRescheduleRequestScopeEnum | null;
438
682
  /**
439
- * Case-insensitive substring match on the To header. OR-combined with subject/from/cc/body.
683
+ * `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item. Required when `scope` is `this` or `future`, ignored for `all`.
440
684
  * @type {string}
441
- * @memberof V1FolderMessagesSearchRequest
685
+ * @memberof V1CalendarEventsRescheduleRequest
442
686
  */
443
- 'to': string;
687
+ 'recurrenceId': string | null;
444
688
  /**
445
- * Case-insensitive substring match on the Cc header. OR-combined with subject/from/to/body.
689
+ * `false` saves the change without emailing attendees, and copies of the event in the calendars of other Hostinger mailboxes are not updated. Omitted or null means `true`.
690
+ * @type {boolean}
691
+ * @memberof V1CalendarEventsRescheduleRequest
692
+ */
693
+ 'notifyAttendees': boolean | null;
694
+ }
695
+ export declare const V1CalendarEventsRescheduleRequestScopeEnum: {
696
+ readonly This: "this";
697
+ readonly Future: "future";
698
+ readonly All: "all";
699
+ };
700
+ export type V1CalendarEventsRescheduleRequestScopeEnum = typeof V1CalendarEventsRescheduleRequestScopeEnum[keyof typeof V1CalendarEventsRescheduleRequestScopeEnum];
701
+ /**
702
+ * Single calendar event payload.
703
+ * @export
704
+ * @interface V1CalendarEventsResource
705
+ */
706
+ export interface V1CalendarEventsResource {
707
+ /**
708
+ *
709
+ * @type {V1CalendarEventsEvent}
710
+ * @memberof V1CalendarEventsResource
711
+ */
712
+ 'data': V1CalendarEventsEvent;
713
+ }
714
+ /**
715
+ * Body for updating a calendar event. Every field replaces the stored value and an omitted optional field is cleared.
716
+ * @export
717
+ * @interface V1CalendarEventsUpdateRequest
718
+ */
719
+ export interface V1CalendarEventsUpdateRequest {
720
+ /**
721
+ * Title of the event.
446
722
  * @type {string}
447
- * @memberof V1FolderMessagesSearchRequest
723
+ * @memberof V1CalendarEventsUpdateRequest
448
724
  */
449
- 'cc': string;
725
+ 'title': string;
450
726
  /**
451
- * Case-insensitive substring match on the message body only (headers excluded). OR-combined with subject/from/to/cc.
727
+ * ISO 8601 date-time with offset; without an offset it is read as UTC. For an all-day event a date is enough (2026-09-28).
452
728
  * @type {string}
453
- * @memberof V1FolderMessagesSearchRequest
729
+ * @memberof V1CalendarEventsUpdateRequest
454
730
  */
455
- 'body': string;
731
+ 'start': string;
456
732
  /**
457
- * Match a specific header as Name:value, e.g. X-Custom-Header:value. Value match is a substring.
733
+ * Exclusive end, same format as `start`. Required for a timed event and not before `start`. For an all-day event the day after the last day (2026-09-29 for one day on 2026-09-28); omitted means one day.
458
734
  * @type {string}
459
- * @memberof V1FolderMessagesSearchRequest
735
+ * @memberof V1CalendarEventsUpdateRequest
460
736
  */
461
- 'header': string;
737
+ 'end': string | null;
462
738
  /**
463
- * Only messages larger than this size in bytes.
464
- * @type {number}
465
- * @memberof V1FolderMessagesSearchRequest
739
+ * `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day.
740
+ * @type {boolean}
741
+ * @memberof V1CalendarEventsUpdateRequest
466
742
  */
467
- 'larger': number;
743
+ 'allDay': boolean;
468
744
  /**
469
- * Only messages smaller than this size in bytes.
470
- * @type {number}
471
- * @memberof V1FolderMessagesSearchRequest
745
+ * IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true.
746
+ * @type {string}
747
+ * @memberof V1CalendarEventsUpdateRequest
472
748
  */
473
- 'smaller': number;
749
+ 'timeZone': string | null;
474
750
  /**
475
- * Case-insensitive substring match across headers and body.
751
+ * Notes of the event. Omitted or null clears it.
476
752
  * @type {string}
477
- * @memberof V1FolderMessagesSearchRequest
753
+ * @memberof V1CalendarEventsUpdateRequest
478
754
  */
479
- 'text': string;
480
- }
481
- /**
482
- * Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
483
- * @export
484
- * @interface V1FolderMessagesUpdateFlagsResult
485
- */
486
- export interface V1FolderMessagesUpdateFlagsResult {
755
+ 'description': string | null;
487
756
  /**
488
- *
489
- * @type {V1FolderMessagesUpdateFlagsResultData}
490
- * @memberof V1FolderMessagesUpdateFlagsResult
757
+ * Place of the event. Omitted or null clears it.
758
+ * @type {string}
759
+ * @memberof V1CalendarEventsUpdateRequest
491
760
  */
492
- 'data': V1FolderMessagesUpdateFlagsResultData;
493
- }
494
- /**
495
- *
496
- * @export
497
- * @interface V1FolderMessagesUpdateFlagsResultData
498
- */
499
- export interface V1FolderMessagesUpdateFlagsResultData {
761
+ 'location': string | null;
500
762
  /**
501
- *
502
- * @type {Array<number>}
503
- * @memberof V1FolderMessagesUpdateFlagsResultData
763
+ * http or https URL of the online meeting. Omitted or null clears it.
764
+ * @type {string}
765
+ * @memberof V1CalendarEventsUpdateRequest
504
766
  */
505
- 'successful': Array<number>;
767
+ 'meetingLink': string | null;
506
768
  /**
507
- *
508
- * @type {Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>}
509
- * @memberof V1FolderMessagesUpdateFlagsResultData
769
+ * Color of the event as #RRGGBB or #RRGGBBAA. Omitted or null uses the calendar color.
770
+ * @type {string}
771
+ * @memberof V1CalendarEventsUpdateRequest
510
772
  */
511
- 'failed': Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>;
512
- }
513
- /**
514
- *
515
- * @export
516
- * @interface V1FolderMessagesUpdateFlagsResultDataFailedInner
517
- */
518
- export interface V1FolderMessagesUpdateFlagsResultDataFailedInner {
773
+ 'color': string | null;
519
774
  /**
520
- *
521
- * @type {number}
522
- * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
775
+ * Omitted or null makes it a one-off event. A repeating event sends every field of the rule, null when unused: `frequency` DAILY, WEEKLY, MONTHLY or YEARLY, `interval` 1 to 1000, and `count` or `until` to end it, not both.
776
+ * @type {V1CalendarEventsRecurrenceRule}
777
+ * @memberof V1CalendarEventsUpdateRequest
523
778
  */
524
- 'uid': number;
779
+ 'recurrenceRule': V1CalendarEventsRecurrenceRule | null;
525
780
  /**
526
- *
527
- * @type {string}
528
- * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
781
+ * Alarm before the start: `value` 0 to 1000 and `unit`. Omitted or null clears it.
782
+ * @type {V1CalendarEventsReminder}
783
+ * @memberof V1CalendarEventsUpdateRequest
529
784
  */
530
- 'reason': string;
531
- }
532
- /**
533
- * Paginated list of folders.
534
- * @export
535
- * @interface V1FoldersCollection
536
- */
537
- export interface V1FoldersCollection {
785
+ 'reminder': V1CalendarEventsReminder | null;
538
786
  /**
539
- *
540
- * @type {Array<V1FoldersFolder>}
541
- * @memberof V1FoldersCollection
787
+ * Full list of invited people. Added addresses receive an invitation and removed ones a cancellation. Unique addresses, at most 100 not counting the mailbox itself, across all occurrences. The own address of the mailbox is stored as accepted and not invited. Omitted, null or empty for none.
788
+ * @type {Array<V1CalendarEventsAttendeeInput>}
789
+ * @memberof V1CalendarEventsUpdateRequest
542
790
  */
543
- 'data': Array<V1FoldersFolder>;
791
+ 'attendees': Array<V1CalendarEventsAttendeeInput> | null;
544
792
  /**
545
- *
546
- * @type {Pagination}
547
- * @memberof V1FoldersCollection
793
+ * For a recurring event: `this` changes the occurrence at `recurrenceId`, `future` changes it and every later one, `all` changes the whole series. Omitted or null means `all`. Required when `recurrenceId` is sent.
794
+ * @type {string}
795
+ * @memberof V1CalendarEventsUpdateRequest
548
796
  */
549
- 'pagination': Pagination;
550
- }
551
- /**
552
- * Body for creating a folder.
553
- * @export
554
- * @interface V1FoldersCreateRequest
555
- */
556
- export interface V1FoldersCreateRequest {
797
+ 'scope': V1CalendarEventsUpdateRequestScopeEnum | null;
557
798
  /**
558
- * Folder name. Length 1-100 after trimming.
799
+ * `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item. Required when `scope` is `this` or `future`, ignored for `all`.
559
800
  * @type {string}
560
- * @memberof V1FoldersCreateRequest
801
+ * @memberof V1CalendarEventsUpdateRequest
561
802
  */
562
- 'name': string;
803
+ 'recurrenceId': string | null;
804
+ /**
805
+ * `false` saves the change without emailing attendees, and copies of the event in the calendars of other Hostinger mailboxes are not updated. Omitted or null means `true`.
806
+ * @type {boolean}
807
+ * @memberof V1CalendarEventsUpdateRequest
808
+ */
809
+ 'notifyAttendees': boolean | null;
563
810
  }
811
+ export declare const V1CalendarEventsUpdateRequestScopeEnum: {
812
+ readonly This: "this";
813
+ readonly Future: "future";
814
+ readonly All: "all";
815
+ };
816
+ export type V1CalendarEventsUpdateRequestScopeEnum = typeof V1CalendarEventsUpdateRequestScopeEnum[keyof typeof V1CalendarEventsUpdateRequestScopeEnum];
564
817
  /**
565
- * A folder (IMAP mailbox) in the managed mailbox.
818
+ * Calendar of a managed mailbox: one it owns or one shared with it.
566
819
  * @export
567
- * @interface V1FoldersFolder
820
+ * @interface V1CalendarsCalendar
568
821
  */
569
- export interface V1FoldersFolder {
822
+ export interface V1CalendarsCalendar {
570
823
  /**
571
- * Full hierarchical folder path including the delimiter.
824
+ * Calendar identifier, the `calendarUuid` of the calendar and calendar event endpoints.
572
825
  * @type {string}
573
- * @memberof V1FoldersFolder
826
+ * @memberof V1CalendarsCalendar
574
827
  */
575
- 'path': string;
828
+ 'uuid': string;
576
829
  /**
577
- * Leaf name of the folder.
830
+ *
578
831
  * @type {string}
579
- * @memberof V1FoldersFolder
832
+ * @memberof V1CalendarsCalendar
580
833
  */
581
- 'name': string;
834
+ 'displayName': string | null;
582
835
  /**
583
- * Hierarchy delimiter used by the IMAP server.
836
+ *
584
837
  * @type {string}
585
- * @memberof V1FoldersFolder
838
+ * @memberof V1CalendarsCalendar
586
839
  */
587
- 'delimiter': string;
840
+ 'description': string | null;
588
841
  /**
589
- * IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders.
842
+ * Hex color as #RRGGBB or #RRGGBBAA.
590
843
  * @type {string}
591
- * @memberof V1FoldersFolder
844
+ * @memberof V1CalendarsCalendar
592
845
  */
593
- 'specialUse': string | null;
846
+ 'color': string | null;
594
847
  /**
595
- * Total number of messages in the folder.
596
- * @type {number}
597
- * @memberof V1FoldersFolder
848
+ * Whether this is the default calendar of the mailbox. New events go here unless another calendar is named.
849
+ * @type {boolean}
850
+ * @memberof V1CalendarsCalendar
598
851
  */
599
- 'messageCount': number;
852
+ 'default': boolean;
600
853
  /**
601
- * Number of unread messages in the folder.
602
- * @type {number}
603
- * @memberof V1FoldersFolder
854
+ * Whether the mailbox shows the calendar in its calendar view. A preference of this mailbox, not shared with other users of the calendar. Events of a hidden calendar still exist.
855
+ * @type {boolean}
856
+ * @memberof V1CalendarsCalendar
604
857
  */
605
- 'unreadCount': number;
858
+ 'visible': boolean;
606
859
  }
607
860
  /**
608
- * Single folder payload.
861
+ * Paginated list of calendars.
609
862
  * @export
610
- * @interface V1FoldersResource
863
+ * @interface V1CalendarsCollection
611
864
  */
612
- export interface V1FoldersResource {
865
+ export interface V1CalendarsCollection {
613
866
  /**
614
867
  *
615
- * @type {V1FoldersFolder}
616
- * @memberof V1FoldersResource
868
+ * @type {Array<V1CalendarsCalendar>}
869
+ * @memberof V1CalendarsCollection
617
870
  */
618
- 'data': V1FoldersFolder;
871
+ 'data': Array<V1CalendarsCalendar>;
872
+ /**
873
+ *
874
+ * @type {Pagination}
875
+ * @memberof V1CalendarsCollection
876
+ */
877
+ 'pagination': Pagination;
619
878
  }
620
879
  /**
621
- * Body for renaming a folder.
880
+ * Body for creating a calendar.
622
881
  * @export
623
- * @interface V1FoldersUpdateRequest
882
+ * @interface V1CalendarsCreateRequest
624
883
  */
625
- export interface V1FoldersUpdateRequest {
884
+ export interface V1CalendarsCreateRequest {
626
885
  /**
627
- * New folder name. Length 1-100 after trimming.
886
+ * Name of the calendar.
628
887
  * @type {string}
629
- * @memberof V1FoldersUpdateRequest
888
+ * @memberof V1CalendarsCreateRequest
630
889
  */
631
- 'name': string;
632
- }
633
- /**
634
- * A mailbox the authenticated API token can manage.
635
- * @export
636
- * @interface V1MeMailbox
637
- */
638
- export interface V1MeMailbox {
890
+ 'displayName': string;
639
891
  /**
640
- * Unique identifier of the mailbox.
892
+ * Optional free-text note about the calendar.
641
893
  * @type {string}
642
- * @memberof V1MeMailbox
894
+ * @memberof V1CalendarsCreateRequest
643
895
  */
644
- 'resourceId': string;
896
+ 'description': string | null;
645
897
  /**
646
- * Email address of the mailbox.
898
+ * Hex color as #RRGGBB or #RRGGBBAA. Omitted or null uses the default color.
647
899
  * @type {string}
648
- * @memberof V1MeMailbox
900
+ * @memberof V1CalendarsCreateRequest
649
901
  */
650
- 'address': string;
902
+ 'color': string | null;
903
+ /**
904
+ * Whether the mailbox shows the calendar in its calendar view. Omitted or null means true.
905
+ * @type {boolean}
906
+ * @memberof V1CalendarsCreateRequest
907
+ */
908
+ 'visible': boolean | null;
651
909
  }
652
910
  /**
653
- * Authenticated account payload.
911
+ * Single calendar payload.
654
912
  * @export
655
- * @interface V1MeResource
913
+ * @interface V1CalendarsResource
656
914
  */
657
- export interface V1MeResource {
915
+ export interface V1CalendarsResource {
658
916
  /**
659
917
  *
660
- * @type {V1MeResourceData}
661
- * @memberof V1MeResource
918
+ * @type {V1CalendarsCalendar}
919
+ * @memberof V1CalendarsResource
662
920
  */
663
- 'data': V1MeResourceData;
921
+ 'data': V1CalendarsCalendar;
664
922
  }
665
923
  /**
666
- *
924
+ * Body for updating a calendar. Name, description and color replace the stored values.
667
925
  * @export
668
- * @interface V1MeResourceData
926
+ * @interface V1CalendarsUpdateRequest
669
927
  */
670
- export interface V1MeResourceData {
928
+ export interface V1CalendarsUpdateRequest {
671
929
  /**
672
- * Identifier of the order this API token is scoped to.
930
+ * Name of the calendar.
673
931
  * @type {string}
674
- * @memberof V1MeResourceData
932
+ * @memberof V1CalendarsUpdateRequest
675
933
  */
676
- 'orderResourceId': string;
934
+ 'displayName': string;
677
935
  /**
678
- * Mailboxes that the authenticated API token can manage.
679
- * @type {Array<V1MeMailbox>}
680
- * @memberof V1MeResourceData
681
- */
682
- 'mailboxes': Array<V1MeMailbox>;
683
- }
684
- /**
685
- * Storage and message quota usage for the managed mailbox.
686
- * @export
687
- * @interface V1QuotaQuota
688
- */
689
- export interface V1QuotaQuota {
690
- /**
691
- * Per-resource quota breakdown reported by the IMAP server.
692
- * @type {Array<V1QuotaQuotaResource>}
693
- * @memberof V1QuotaQuota
694
- */
695
- 'quotas': Array<V1QuotaQuotaResource>;
696
- /**
697
- * Aggregate storage usage across all resources, in bytes.
698
- * @type {number}
699
- * @memberof V1QuotaQuota
700
- */
701
- 'totalUsage': number;
702
- /**
703
- * Aggregate storage limit across all resources, in bytes.
704
- * @type {number}
705
- * @memberof V1QuotaQuota
936
+ * Free-text note about the calendar. Omitted or null clears it.
937
+ * @type {string}
938
+ * @memberof V1CalendarsUpdateRequest
706
939
  */
707
- 'totalLimit': number;
940
+ 'description': string | null;
708
941
  /**
709
- * Aggregate storage usage as a percentage of the total limit.
710
- * @type {number}
711
- * @memberof V1QuotaQuota
942
+ * Hex color as #RRGGBB or #RRGGBBAA. Omitted or null resets it to the default color.
943
+ * @type {string}
944
+ * @memberof V1CalendarsUpdateRequest
712
945
  */
713
- 'totalPercentage': number;
946
+ 'color': string | null;
714
947
  /**
715
- * Whether the IMAP server reports quota information for this mailbox.
948
+ * Whether the mailbox shows the calendar in its calendar view. Omitted or null keeps the current value.
716
949
  * @type {boolean}
717
- * @memberof V1QuotaQuota
950
+ * @memberof V1CalendarsUpdateRequest
718
951
  */
719
- 'supported': boolean;
952
+ 'visible': boolean | null;
720
953
  }
721
954
  /**
722
- * Usage and limit for a single IMAP quota resource.
955
+ * Feedback the user wants to send to the Hostinger mail team. The message is scrubbed of tokens, JWTs and key/secret/password values before validation and storage, so the length limit applies to the scrubbed text.
723
956
  * @export
724
- * @interface V1QuotaQuotaResource
957
+ * @interface V1FeedbackSubmitRequest
725
958
  */
726
- export interface V1QuotaQuotaResource {
727
- /**
728
- * Name of the quota resource as reported by the IMAP server.
729
- * @type {string}
730
- * @memberof V1QuotaQuotaResource
731
- */
732
- 'resourceName': string;
733
- /**
734
- * Current usage of the resource (bytes for STORAGE, count for MESSAGE).
735
- * @type {number}
736
- * @memberof V1QuotaQuotaResource
737
- */
738
- 'usage': number;
959
+ export interface V1FeedbackSubmitRequest {
739
960
  /**
740
- * Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE).
961
+ * The user\'s rating of the Hostinger Email API: 1 (poor) to 10 (excellent).
741
962
  * @type {number}
742
- * @memberof V1QuotaQuotaResource
963
+ * @memberof V1FeedbackSubmitRequest
743
964
  */
744
- 'limit': number;
965
+ 'score': number;
745
966
  /**
746
- * Usage as a percentage of the limit.
747
- * @type {number}
748
- * @memberof V1QuotaQuotaResource
967
+ * The user\'s feedback in their own words. Never include tokens, passwords or email contents.
968
+ * @type {string}
969
+ * @memberof V1FeedbackSubmitRequest
749
970
  */
750
- 'percentage': number;
971
+ 'message': string;
751
972
  }
752
973
  /**
753
- * Mailbox quota payload.
974
+ * Paginated list of messages.
754
975
  * @export
755
- * @interface V1QuotaResource
976
+ * @interface V1FolderMessagesCollection
756
977
  */
757
- export interface V1QuotaResource {
978
+ export interface V1FolderMessagesCollection {
758
979
  /**
759
980
  *
760
- * @type {V1QuotaQuota}
761
- * @memberof V1QuotaResource
981
+ * @type {Array<V1FolderMessagesMessage>}
982
+ * @memberof V1FolderMessagesCollection
762
983
  */
763
- 'data': V1QuotaQuota;
984
+ 'data': Array<V1FolderMessagesMessage>;
985
+ /**
986
+ *
987
+ * @type {Pagination}
988
+ * @memberof V1FolderMessagesCollection
989
+ */
990
+ 'pagination': Pagination;
764
991
  }
765
992
  /**
766
- * Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
993
+ * Body for permanently deleting multiple messages.
767
994
  * @export
768
- * @interface V1SendAttachment
995
+ * @interface V1FolderMessagesDeleteBulkRequest
769
996
  */
770
- export interface V1SendAttachment {
771
- /**
772
- * File name shown to the recipient, including extension.
773
- * @type {string}
774
- * @memberof V1SendAttachment
775
- */
776
- 'filename': string;
997
+ export interface V1FolderMessagesDeleteBulkRequest {
777
998
  /**
778
- * Attachment body. Base64-encoded by default; set encoding to switch.
779
- * @type {string}
780
- * @memberof V1SendAttachment
999
+ * Message UIDs to delete. 1-100 entries, each > 0.
1000
+ * @type {Array<number>}
1001
+ * @memberof V1FolderMessagesDeleteBulkRequest
781
1002
  */
782
- 'content': string;
1003
+ 'uids': Array<number>;
1004
+ }
1005
+ /**
1006
+ * Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
1007
+ * @export
1008
+ * @interface V1FolderMessagesFlagsBulkRequest
1009
+ */
1010
+ export interface V1FolderMessagesFlagsBulkRequest {
783
1011
  /**
784
- * MIME type of the attachment, e.g. application/pdf. Not inferred from filename; set it explicitly so clients render the attachment correctly.
785
- * @type {string}
786
- * @memberof V1SendAttachment
1012
+ * Message UIDs to update. 1-100 entries, each > 0.
1013
+ * @type {Array<number>}
1014
+ * @memberof V1FolderMessagesFlagsBulkRequest
787
1015
  */
788
- 'contentType': string;
1016
+ 'uids': Array<number>;
789
1017
  /**
790
- * Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">.
791
- * @type {string}
792
- * @memberof V1SendAttachment
1018
+ * IMAP flags to set on every listed message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
1019
+ * @type {Array<string>}
1020
+ * @memberof V1FolderMessagesFlagsBulkRequest
793
1021
  */
794
- 'cid': string;
1022
+ 'addFlags': Array<string>;
795
1023
  /**
796
- * Encoding of content. Defaults to base64.
797
- * @type {string}
798
- * @memberof V1SendAttachment
1024
+ * IMAP flags to clear from every listed message.
1025
+ * @type {Array<string>}
1026
+ * @memberof V1FolderMessagesFlagsBulkRequest
799
1027
  */
800
- 'encoding': string;
1028
+ 'removeFlags': Array<string>;
801
1029
  }
802
1030
  /**
803
- * Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
1031
+ * Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
804
1032
  * @export
805
- * @interface V1SendMessageRef
1033
+ * @interface V1FolderMessagesFlagsRequest
806
1034
  */
807
- export interface V1SendMessageRef {
1035
+ export interface V1FolderMessagesFlagsRequest {
808
1036
  /**
809
- * UID of the source message.
810
- * @type {number}
811
- * @memberof V1SendMessageRef
1037
+ * IMAP flags to set on the message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
1038
+ * @type {Array<string>}
1039
+ * @memberof V1FolderMessagesFlagsRequest
812
1040
  */
813
- 'uid': number;
1041
+ 'addFlags': Array<string>;
814
1042
  /**
815
- * Folder containing the source message.
816
- * @type {string}
817
- * @memberof V1SendMessageRef
1043
+ * IMAP flags to clear from the message.
1044
+ * @type {Array<string>}
1045
+ * @memberof V1FolderMessagesFlagsRequest
818
1046
  */
819
- 'folder': string;
1047
+ 'removeFlags': Array<string>;
820
1048
  }
821
1049
  /**
822
- * Outgoing message payload. At least one of to, cc, or bcc must be present.
1050
+ * A message in a folder of the managed mailbox.
823
1051
  * @export
824
- * @interface V1SendRequest
1052
+ * @interface V1FolderMessagesMessage
825
1053
  */
826
- export interface V1SendRequest {
1054
+ export interface V1FolderMessagesMessage {
827
1055
  /**
828
- * Primary recipient email addresses.
829
- * @type {Array<string>}
830
- * @memberof V1SendRequest
1056
+ *
1057
+ * @type {number}
1058
+ * @memberof V1FolderMessagesMessage
831
1059
  */
832
- 'to': Array<string>;
1060
+ 'uid': number;
833
1061
  /**
834
- * Sender display name shown in the From header alongside the mailbox address.
1062
+ *
835
1063
  * @type {string}
836
- * @memberof V1SendRequest
1064
+ * @memberof V1FolderMessagesMessage
837
1065
  */
838
- 'displayName': string;
1066
+ 'path': string;
839
1067
  /**
840
- * Carbon-copy recipient email addresses.
841
- * @type {Array<string>}
842
- * @memberof V1SendRequest
1068
+ *
1069
+ * @type {string}
1070
+ * @memberof V1FolderMessagesMessage
843
1071
  */
844
- 'cc': Array<string>;
1072
+ 'date': string;
845
1073
  /**
846
- * Blind-carbon-copy recipient email addresses. Not visible to other recipients.
1074
+ *
847
1075
  * @type {Array<string>}
848
- * @memberof V1SendRequest
1076
+ * @memberof V1FolderMessagesMessage
849
1077
  */
850
- 'bcc': Array<string>;
1078
+ 'flags': Array<string>;
851
1079
  /**
852
- * Message subject line.
853
- * @type {string}
854
- * @memberof V1SendRequest
1080
+ *
1081
+ * @type {boolean}
1082
+ * @memberof V1FolderMessagesMessage
855
1083
  */
856
- 'subject': string;
1084
+ 'unseen': boolean;
857
1085
  /**
858
- * Plain-text body. Optional; if both text and html are omitted the message is sent without a body.
859
- * @type {string}
860
- * @memberof V1SendRequest
1086
+ *
1087
+ * @type {number}
1088
+ * @memberof V1FolderMessagesMessage
861
1089
  */
862
- 'text': string;
1090
+ 'size': number;
863
1091
  /**
864
- * HTML body. Optional; if both text and html are omitted the message is sent without a body. Inline images are referenced via cid: URLs matching attachment cid values.
1092
+ *
865
1093
  * @type {string}
866
- * @memberof V1SendRequest
1094
+ * @memberof V1FolderMessagesMessage
867
1095
  */
868
- 'html': string;
1096
+ 'subject': string | null;
869
1097
  /**
870
- * Files to attach. Inline images set cid; regular attachments omit it.
871
- * @type {Array<V1SendAttachment>}
872
- * @memberof V1SendRequest
1098
+ *
1099
+ * @type {V1FolderMessagesMessageAddress}
1100
+ * @memberof V1FolderMessagesMessage
873
1101
  */
874
- 'attachments': Array<V1SendAttachment>;
1102
+ 'from': V1FolderMessagesMessageAddress | null;
875
1103
  /**
876
- * Source message this is a reply to, as an object {uid, folder} — not the Message-ID header string. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf.
877
- * @type {V1SendMessageRef}
878
- * @memberof V1SendRequest
1104
+ *
1105
+ * @type {Array<V1FolderMessagesMessageAddress>}
1106
+ * @memberof V1FolderMessagesMessage
879
1107
  */
880
- 'inReplyTo': V1SendMessageRef;
1108
+ 'to': Array<V1FolderMessagesMessageAddress>;
881
1109
  /**
882
- * Source message this forwards, as an object {uid, folder} — not the Message-ID header string. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
883
- * @type {V1SendMessageRef}
884
- * @memberof V1SendRequest
1110
+ *
1111
+ * @type {Array<V1FolderMessagesMessageAddress>}
1112
+ * @memberof V1FolderMessagesMessage
885
1113
  */
886
- 'forwardOf': V1SendMessageRef;
887
- }
888
- /**
889
- * Paginated list of webhooks.
890
- * @export
891
- * @interface V1WebhooksCollection
892
- */
893
- export interface V1WebhooksCollection {
1114
+ 'cc': Array<V1FolderMessagesMessageAddress>;
894
1115
  /**
895
1116
  *
896
- * @type {Array<V1WebhooksWebhook>}
897
- * @memberof V1WebhooksCollection
1117
+ * @type {Array<V1FolderMessagesMessageAddress>}
1118
+ * @memberof V1FolderMessagesMessage
898
1119
  */
899
- 'data': Array<V1WebhooksWebhook>;
1120
+ 'bcc': Array<V1FolderMessagesMessageAddress>;
900
1121
  /**
901
1122
  *
902
- * @type {Pagination}
903
- * @memberof V1WebhooksCollection
1123
+ * @type {string}
1124
+ * @memberof V1FolderMessagesMessage
904
1125
  */
905
- 'pagination': Pagination;
1126
+ 'messageId': string | null;
1127
+ /**
1128
+ *
1129
+ * @type {string}
1130
+ * @memberof V1FolderMessagesMessage
1131
+ */
1132
+ 'inReplyTo': string | null;
1133
+ /**
1134
+ *
1135
+ * @type {Array<V1FolderMessagesMessageAttachment>}
1136
+ * @memberof V1FolderMessagesMessage
1137
+ */
1138
+ 'attachments': Array<V1FolderMessagesMessageAttachment>;
906
1139
  }
907
1140
  /**
908
- * Body for creating a webhook.
1141
+ * A single email address with optional display name.
909
1142
  * @export
910
- * @interface V1WebhooksCreateRequest
1143
+ * @interface V1FolderMessagesMessageAddress
911
1144
  */
912
- export interface V1WebhooksCreateRequest {
1145
+ export interface V1FolderMessagesMessageAddress {
913
1146
  /**
914
- * Human-readable webhook name.
1147
+ *
915
1148
  * @type {string}
916
- * @memberof V1WebhooksCreateRequest
1149
+ * @memberof V1FolderMessagesMessageAddress
917
1150
  */
918
1151
  'name': string;
919
1152
  /**
920
- * Optional free-text note about the webhook purpose.
1153
+ *
921
1154
  * @type {string}
922
- * @memberof V1WebhooksCreateRequest
1155
+ * @memberof V1FolderMessagesMessageAddress
923
1156
  */
924
- 'description': string | null;
1157
+ 'address': string;
1158
+ }
1159
+ /**
1160
+ * Attachment metadata attached to a message.
1161
+ * @export
1162
+ * @interface V1FolderMessagesMessageAttachment
1163
+ */
1164
+ export interface V1FolderMessagesMessageAttachment {
925
1165
  /**
926
- * Event types that trigger a delivery.
927
- * @type {Array<string>}
928
- * @memberof V1WebhooksCreateRequest
1166
+ * Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint.
1167
+ * @type {string}
1168
+ * @memberof V1FolderMessagesMessageAttachment
929
1169
  */
930
- 'events': Array<V1WebhooksCreateRequestEventsEnum>;
1170
+ 'id': string;
931
1171
  /**
932
- * Initial delivery state. Only active webhooks receive events.
1172
+ *
933
1173
  * @type {string}
934
- * @memberof V1WebhooksCreateRequest
1174
+ * @memberof V1FolderMessagesMessageAttachment
935
1175
  */
936
- 'status': V1WebhooksCreateRequestStatusEnum;
1176
+ 'contentType': string;
937
1177
  /**
938
- * HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts).
1178
+ *
1179
+ * @type {number}
1180
+ * @memberof V1FolderMessagesMessageAttachment
1181
+ */
1182
+ 'sizeBytes': number;
1183
+ /**
1184
+ *
1185
+ * @type {boolean}
1186
+ * @memberof V1FolderMessagesMessageAttachment
1187
+ */
1188
+ 'inline': boolean;
1189
+ /**
1190
+ *
939
1191
  * @type {string}
940
- * @memberof V1WebhooksCreateRequest
1192
+ * @memberof V1FolderMessagesMessageAttachment
941
1193
  */
942
- 'url': string;
1194
+ 'filename': string | null;
1195
+ /**
1196
+ *
1197
+ * @type {string}
1198
+ * @memberof V1FolderMessagesMessageAttachment
1199
+ */
1200
+ 'contentId': string | null;
943
1201
  }
944
- export declare const V1WebhooksCreateRequestEventsEnum: {
945
- readonly MessageReceived: "message.received";
946
- };
947
- export type V1WebhooksCreateRequestEventsEnum = typeof V1WebhooksCreateRequestEventsEnum[keyof typeof V1WebhooksCreateRequestEventsEnum];
948
- export declare const V1WebhooksCreateRequestStatusEnum: {
949
- readonly Active: "active";
950
- readonly Paused: "paused";
951
- readonly Disabled: "disabled";
952
- };
953
- export type V1WebhooksCreateRequestStatusEnum = typeof V1WebhooksCreateRequestStatusEnum[keyof typeof V1WebhooksCreateRequestStatusEnum];
954
1202
  /**
955
- * Single webhook payload.
1203
+ * Rendered text and HTML parts of a message.
956
1204
  * @export
957
- * @interface V1WebhooksResource
1205
+ * @interface V1FolderMessagesMessageText
958
1206
  */
959
- export interface V1WebhooksResource {
1207
+ export interface V1FolderMessagesMessageText {
960
1208
  /**
961
1209
  *
962
- * @type {V1WebhooksWebhook}
963
- * @memberof V1WebhooksResource
1210
+ * @type {string}
1211
+ * @memberof V1FolderMessagesMessageText
964
1212
  */
965
- 'data': V1WebhooksWebhook;
1213
+ 'text': string;
1214
+ /**
1215
+ *
1216
+ * @type {string}
1217
+ * @memberof V1FolderMessagesMessageText
1218
+ */
1219
+ 'html': string;
966
1220
  }
967
1221
  /**
968
- * Single webhook payload including the one-time secret.
1222
+ * Single message text payload.
969
1223
  * @export
970
- * @interface V1WebhooksResourceWithSecret
1224
+ * @interface V1FolderMessagesMessageTextResource
971
1225
  */
972
- export interface V1WebhooksResourceWithSecret {
1226
+ export interface V1FolderMessagesMessageTextResource {
973
1227
  /**
974
1228
  *
975
- * @type {V1WebhooksWebhookWithSecret}
976
- * @memberof V1WebhooksResourceWithSecret
1229
+ * @type {V1FolderMessagesMessageText}
1230
+ * @memberof V1FolderMessagesMessageTextResource
977
1231
  */
978
- 'data': V1WebhooksWebhookWithSecret;
1232
+ 'data': V1FolderMessagesMessageText;
979
1233
  }
980
1234
  /**
981
- * Result of a webhook test delivery.
1235
+ * Body for moving multiple messages to a target folder.
982
1236
  * @export
983
- * @interface V1WebhooksTestResult
1237
+ * @interface V1FolderMessagesMoveBulkRequest
984
1238
  */
985
- export interface V1WebhooksTestResult {
1239
+ export interface V1FolderMessagesMoveBulkRequest {
986
1240
  /**
987
- *
988
- * @type {V1WebhooksTestResultData}
989
- * @memberof V1WebhooksTestResult
1241
+ * Message UIDs to move. 1-100 entries, each > 0.
1242
+ * @type {Array<number>}
1243
+ * @memberof V1FolderMessagesMoveBulkRequest
990
1244
  */
991
- 'data': V1WebhooksTestResultData;
1245
+ 'uids': Array<number>;
1246
+ /**
1247
+ * Destination folder path.
1248
+ * @type {string}
1249
+ * @memberof V1FolderMessagesMoveBulkRequest
1250
+ */
1251
+ 'targetFolder': string;
992
1252
  }
993
1253
  /**
994
- *
1254
+ * Body for moving a single message to a target folder.
995
1255
  * @export
996
- * @interface V1WebhooksTestResultData
1256
+ * @interface V1FolderMessagesMoveRequest
997
1257
  */
998
- export interface V1WebhooksTestResultData {
999
- /**
1000
- *
1001
- * @type {number}
1002
- * @memberof V1WebhooksTestResultData
1003
- */
1004
- 'httpStatus': number;
1258
+ export interface V1FolderMessagesMoveRequest {
1005
1259
  /**
1006
- *
1007
- * @type {boolean}
1008
- * @memberof V1WebhooksTestResultData
1260
+ * Destination folder path.
1261
+ * @type {string}
1262
+ * @memberof V1FolderMessagesMoveRequest
1009
1263
  */
1010
- 'success': boolean;
1264
+ 'targetFolder': string;
1265
+ }
1266
+ /**
1267
+ * Single message payload.
1268
+ * @export
1269
+ * @interface V1FolderMessagesResource
1270
+ */
1271
+ export interface V1FolderMessagesResource {
1011
1272
  /**
1012
1273
  *
1013
- * @type {string}
1014
- * @memberof V1WebhooksTestResultData
1274
+ * @type {V1FolderMessagesMessage}
1275
+ * @memberof V1FolderMessagesResource
1015
1276
  */
1016
- 'error': string | null;
1277
+ 'data': V1FolderMessagesMessage;
1017
1278
  }
1018
1279
  /**
1019
- * Body for partially updating a webhook. All fields optional; only present fields are applied.
1280
+ * Search criteria. All fields optional. subject, from, to, cc and body are alternatives (a message matching any one of them qualifies); all other fields are combined with AND.
1020
1281
  * @export
1021
- * @interface V1WebhooksUpdateRequest
1282
+ * @interface V1FolderMessagesSearchRequest
1022
1283
  */
1023
- export interface V1WebhooksUpdateRequest {
1284
+ export interface V1FolderMessagesSearchRequest {
1024
1285
  /**
1025
- * Human-readable webhook name.
1286
+ * Only messages received on or after this date (YYYY-MM-DD).
1026
1287
  * @type {string}
1027
- * @memberof V1WebhooksUpdateRequest
1288
+ * @memberof V1FolderMessagesSearchRequest
1028
1289
  */
1029
- 'name': string;
1290
+ 'since': string;
1030
1291
  /**
1031
- * Free-text note about the webhook purpose. Send null to clear.
1292
+ * Only messages received before this date (YYYY-MM-DD).
1032
1293
  * @type {string}
1033
- * @memberof V1WebhooksUpdateRequest
1294
+ * @memberof V1FolderMessagesSearchRequest
1034
1295
  */
1035
- 'description': string | null;
1296
+ 'before': string;
1036
1297
  /**
1037
- * Event types that trigger a delivery. Replaces the current list.
1298
+ * Only messages carrying all of these IMAP flags, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
1038
1299
  * @type {Array<string>}
1039
- * @memberof V1WebhooksUpdateRequest
1300
+ * @memberof V1FolderMessagesSearchRequest
1040
1301
  */
1041
- 'events': Array<V1WebhooksUpdateRequestEventsEnum>;
1302
+ 'flags': Array<string>;
1042
1303
  /**
1043
- * Delivery state. Only active webhooks receive events; paused keeps config but stops deliveries.
1304
+ * IMAP UID set: single UID, range (1:100), open range (100:*), or comma-separated list.
1044
1305
  * @type {string}
1045
- * @memberof V1WebhooksUpdateRequest
1306
+ * @memberof V1FolderMessagesSearchRequest
1046
1307
  */
1047
- 'status': V1WebhooksUpdateRequestStatusEnum;
1308
+ 'uid': string;
1048
1309
  /**
1049
- * HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts).
1310
+ * Case-insensitive substring match on the Subject header. OR-combined with from/to/cc/body.
1050
1311
  * @type {string}
1051
- * @memberof V1WebhooksUpdateRequest
1312
+ * @memberof V1FolderMessagesSearchRequest
1052
1313
  */
1053
- 'url': string;
1054
- }
1055
- export declare const V1WebhooksUpdateRequestEventsEnum: {
1056
- readonly MessageReceived: "message.received";
1057
- };
1058
- export type V1WebhooksUpdateRequestEventsEnum = typeof V1WebhooksUpdateRequestEventsEnum[keyof typeof V1WebhooksUpdateRequestEventsEnum];
1059
- export declare const V1WebhooksUpdateRequestStatusEnum: {
1060
- readonly Active: "active";
1061
- readonly Paused: "paused";
1062
- readonly Disabled: "disabled";
1063
- };
1064
- export type V1WebhooksUpdateRequestStatusEnum = typeof V1WebhooksUpdateRequestStatusEnum[keyof typeof V1WebhooksUpdateRequestStatusEnum];
1065
- /**
1066
- * Webhook configured for a managed mailbox.
1067
- * @export
1068
- * @interface V1WebhooksWebhook
1069
- */
1070
- export interface V1WebhooksWebhook {
1314
+ 'subject': string;
1071
1315
  /**
1072
- * Unique webhook identifier (UUID v7).
1316
+ * Case-insensitive substring match on the From header. OR-combined with subject/to/cc/body.
1073
1317
  * @type {string}
1074
- * @memberof V1WebhooksWebhook
1318
+ * @memberof V1FolderMessagesSearchRequest
1075
1319
  */
1076
- 'id': string;
1320
+ 'from': string;
1077
1321
  /**
1078
- * Resource ID of the mailbox this webhook is attached to.
1322
+ * Case-insensitive substring match on the To header. OR-combined with subject/from/cc/body.
1079
1323
  * @type {string}
1080
- * @memberof V1WebhooksWebhook
1324
+ * @memberof V1FolderMessagesSearchRequest
1081
1325
  */
1082
- 'accountResourceId': string;
1326
+ 'to': string;
1083
1327
  /**
1084
- * Email address of the mailbox.
1328
+ * Case-insensitive substring match on the Cc header. OR-combined with subject/from/to/body.
1085
1329
  * @type {string}
1086
- * @memberof V1WebhooksWebhook
1330
+ * @memberof V1FolderMessagesSearchRequest
1087
1331
  */
1088
- 'mailbox': string;
1332
+ 'cc': string;
1089
1333
  /**
1090
- *
1334
+ * Case-insensitive substring match on the message body only (headers excluded). OR-combined with subject/from/to/cc.
1091
1335
  * @type {string}
1092
- * @memberof V1WebhooksWebhook
1336
+ * @memberof V1FolderMessagesSearchRequest
1093
1337
  */
1094
- 'name': string;
1338
+ 'body': string;
1095
1339
  /**
1096
- *
1340
+ * Match a specific header as Name:value, e.g. X-Custom-Header:value. Value match is a substring.
1097
1341
  * @type {string}
1098
- * @memberof V1WebhooksWebhook
1342
+ * @memberof V1FolderMessagesSearchRequest
1099
1343
  */
1100
- 'description': string | null;
1344
+ 'header': string;
1101
1345
  /**
1102
- *
1103
- * @type {Array<string>}
1346
+ * Only messages larger than this size in bytes.
1347
+ * @type {number}
1348
+ * @memberof V1FolderMessagesSearchRequest
1349
+ */
1350
+ 'larger': number;
1351
+ /**
1352
+ * Only messages smaller than this size in bytes.
1353
+ * @type {number}
1354
+ * @memberof V1FolderMessagesSearchRequest
1355
+ */
1356
+ 'smaller': number;
1357
+ /**
1358
+ * Case-insensitive substring match across headers and body.
1359
+ * @type {string}
1360
+ * @memberof V1FolderMessagesSearchRequest
1361
+ */
1362
+ 'text': string;
1363
+ }
1364
+ /**
1365
+ * Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
1366
+ * @export
1367
+ * @interface V1FolderMessagesUpdateFlagsResult
1368
+ */
1369
+ export interface V1FolderMessagesUpdateFlagsResult {
1370
+ /**
1371
+ *
1372
+ * @type {V1FolderMessagesUpdateFlagsResultData}
1373
+ * @memberof V1FolderMessagesUpdateFlagsResult
1374
+ */
1375
+ 'data': V1FolderMessagesUpdateFlagsResultData;
1376
+ }
1377
+ /**
1378
+ *
1379
+ * @export
1380
+ * @interface V1FolderMessagesUpdateFlagsResultData
1381
+ */
1382
+ export interface V1FolderMessagesUpdateFlagsResultData {
1383
+ /**
1384
+ *
1385
+ * @type {Array<number>}
1386
+ * @memberof V1FolderMessagesUpdateFlagsResultData
1387
+ */
1388
+ 'successful': Array<number>;
1389
+ /**
1390
+ *
1391
+ * @type {Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>}
1392
+ * @memberof V1FolderMessagesUpdateFlagsResultData
1393
+ */
1394
+ 'failed': Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>;
1395
+ }
1396
+ /**
1397
+ *
1398
+ * @export
1399
+ * @interface V1FolderMessagesUpdateFlagsResultDataFailedInner
1400
+ */
1401
+ export interface V1FolderMessagesUpdateFlagsResultDataFailedInner {
1402
+ /**
1403
+ *
1404
+ * @type {number}
1405
+ * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
1406
+ */
1407
+ 'uid': number;
1408
+ /**
1409
+ *
1410
+ * @type {string}
1411
+ * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
1412
+ */
1413
+ 'reason': string;
1414
+ }
1415
+ /**
1416
+ * Paginated list of folders.
1417
+ * @export
1418
+ * @interface V1FoldersCollection
1419
+ */
1420
+ export interface V1FoldersCollection {
1421
+ /**
1422
+ *
1423
+ * @type {Array<V1FoldersFolder>}
1424
+ * @memberof V1FoldersCollection
1425
+ */
1426
+ 'data': Array<V1FoldersFolder>;
1427
+ /**
1428
+ *
1429
+ * @type {Pagination}
1430
+ * @memberof V1FoldersCollection
1431
+ */
1432
+ 'pagination': Pagination;
1433
+ }
1434
+ /**
1435
+ * Body for creating a folder.
1436
+ * @export
1437
+ * @interface V1FoldersCreateRequest
1438
+ */
1439
+ export interface V1FoldersCreateRequest {
1440
+ /**
1441
+ * Folder name. Length 1-100 after trimming.
1442
+ * @type {string}
1443
+ * @memberof V1FoldersCreateRequest
1444
+ */
1445
+ 'name': string;
1446
+ }
1447
+ /**
1448
+ * A folder (IMAP mailbox) in the managed mailbox.
1449
+ * @export
1450
+ * @interface V1FoldersFolder
1451
+ */
1452
+ export interface V1FoldersFolder {
1453
+ /**
1454
+ * Full hierarchical folder path including the delimiter.
1455
+ * @type {string}
1456
+ * @memberof V1FoldersFolder
1457
+ */
1458
+ 'path': string;
1459
+ /**
1460
+ * Leaf name of the folder.
1461
+ * @type {string}
1462
+ * @memberof V1FoldersFolder
1463
+ */
1464
+ 'name': string;
1465
+ /**
1466
+ * Hierarchy delimiter used by the IMAP server.
1467
+ * @type {string}
1468
+ * @memberof V1FoldersFolder
1469
+ */
1470
+ 'delimiter': string;
1471
+ /**
1472
+ * IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders.
1473
+ * @type {string}
1474
+ * @memberof V1FoldersFolder
1475
+ */
1476
+ 'specialUse': string | null;
1477
+ /**
1478
+ * Total number of messages in the folder.
1479
+ * @type {number}
1480
+ * @memberof V1FoldersFolder
1481
+ */
1482
+ 'messageCount': number;
1483
+ /**
1484
+ * Number of unread messages in the folder.
1485
+ * @type {number}
1486
+ * @memberof V1FoldersFolder
1487
+ */
1488
+ 'unreadCount': number;
1489
+ }
1490
+ /**
1491
+ * Single folder payload.
1492
+ * @export
1493
+ * @interface V1FoldersResource
1494
+ */
1495
+ export interface V1FoldersResource {
1496
+ /**
1497
+ *
1498
+ * @type {V1FoldersFolder}
1499
+ * @memberof V1FoldersResource
1500
+ */
1501
+ 'data': V1FoldersFolder;
1502
+ }
1503
+ /**
1504
+ * Body for renaming a folder.
1505
+ * @export
1506
+ * @interface V1FoldersUpdateRequest
1507
+ */
1508
+ export interface V1FoldersUpdateRequest {
1509
+ /**
1510
+ * New folder name. Length 1-100 after trimming.
1511
+ * @type {string}
1512
+ * @memberof V1FoldersUpdateRequest
1513
+ */
1514
+ 'name': string;
1515
+ }
1516
+ /**
1517
+ * A mailbox the authenticated API token can manage.
1518
+ * @export
1519
+ * @interface V1MeMailbox
1520
+ */
1521
+ export interface V1MeMailbox {
1522
+ /**
1523
+ * Unique identifier of the mailbox.
1524
+ * @type {string}
1525
+ * @memberof V1MeMailbox
1526
+ */
1527
+ 'resourceId': string;
1528
+ /**
1529
+ * Email address of the mailbox.
1530
+ * @type {string}
1531
+ * @memberof V1MeMailbox
1532
+ */
1533
+ 'address': string;
1534
+ }
1535
+ /**
1536
+ * Authenticated account payload.
1537
+ * @export
1538
+ * @interface V1MeResource
1539
+ */
1540
+ export interface V1MeResource {
1541
+ /**
1542
+ *
1543
+ * @type {V1MeResourceData}
1544
+ * @memberof V1MeResource
1545
+ */
1546
+ 'data': V1MeResourceData;
1547
+ }
1548
+ /**
1549
+ *
1550
+ * @export
1551
+ * @interface V1MeResourceData
1552
+ */
1553
+ export interface V1MeResourceData {
1554
+ /**
1555
+ * Identifier of the order this API token is scoped to.
1556
+ * @type {string}
1557
+ * @memberof V1MeResourceData
1558
+ */
1559
+ 'orderResourceId': string;
1560
+ /**
1561
+ * Mailboxes that the authenticated API token can manage.
1562
+ * @type {Array<V1MeMailbox>}
1563
+ * @memberof V1MeResourceData
1564
+ */
1565
+ 'mailboxes': Array<V1MeMailbox>;
1566
+ }
1567
+ /**
1568
+ * Storage and message quota usage for the managed mailbox.
1569
+ * @export
1570
+ * @interface V1QuotaQuota
1571
+ */
1572
+ export interface V1QuotaQuota {
1573
+ /**
1574
+ * Per-resource quota breakdown reported by the IMAP server.
1575
+ * @type {Array<V1QuotaQuotaResource>}
1576
+ * @memberof V1QuotaQuota
1577
+ */
1578
+ 'quotas': Array<V1QuotaQuotaResource>;
1579
+ /**
1580
+ * Aggregate storage usage across all resources, in bytes.
1581
+ * @type {number}
1582
+ * @memberof V1QuotaQuota
1583
+ */
1584
+ 'totalUsage': number;
1585
+ /**
1586
+ * Aggregate storage limit across all resources, in bytes.
1587
+ * @type {number}
1588
+ * @memberof V1QuotaQuota
1589
+ */
1590
+ 'totalLimit': number;
1591
+ /**
1592
+ * Aggregate storage usage as a percentage of the total limit.
1593
+ * @type {number}
1594
+ * @memberof V1QuotaQuota
1595
+ */
1596
+ 'totalPercentage': number;
1597
+ /**
1598
+ * Whether the IMAP server reports quota information for this mailbox.
1599
+ * @type {boolean}
1600
+ * @memberof V1QuotaQuota
1601
+ */
1602
+ 'supported': boolean;
1603
+ }
1604
+ /**
1605
+ * Usage and limit for a single IMAP quota resource.
1606
+ * @export
1607
+ * @interface V1QuotaQuotaResource
1608
+ */
1609
+ export interface V1QuotaQuotaResource {
1610
+ /**
1611
+ * Name of the quota resource as reported by the IMAP server.
1612
+ * @type {string}
1613
+ * @memberof V1QuotaQuotaResource
1614
+ */
1615
+ 'resourceName': string;
1616
+ /**
1617
+ * Current usage of the resource (bytes for STORAGE, count for MESSAGE).
1618
+ * @type {number}
1619
+ * @memberof V1QuotaQuotaResource
1620
+ */
1621
+ 'usage': number;
1622
+ /**
1623
+ * Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE).
1624
+ * @type {number}
1625
+ * @memberof V1QuotaQuotaResource
1626
+ */
1627
+ 'limit': number;
1628
+ /**
1629
+ * Usage as a percentage of the limit.
1630
+ * @type {number}
1631
+ * @memberof V1QuotaQuotaResource
1632
+ */
1633
+ 'percentage': number;
1634
+ }
1635
+ /**
1636
+ * Mailbox quota payload.
1637
+ * @export
1638
+ * @interface V1QuotaResource
1639
+ */
1640
+ export interface V1QuotaResource {
1641
+ /**
1642
+ *
1643
+ * @type {V1QuotaQuota}
1644
+ * @memberof V1QuotaResource
1645
+ */
1646
+ 'data': V1QuotaQuota;
1647
+ }
1648
+ /**
1649
+ * Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
1650
+ * @export
1651
+ * @interface V1SendAttachment
1652
+ */
1653
+ export interface V1SendAttachment {
1654
+ /**
1655
+ * File name shown to the recipient, including extension.
1656
+ * @type {string}
1657
+ * @memberof V1SendAttachment
1658
+ */
1659
+ 'filename': string;
1660
+ /**
1661
+ * Attachment body. Base64-encoded by default; set encoding to switch.
1662
+ * @type {string}
1663
+ * @memberof V1SendAttachment
1664
+ */
1665
+ 'content': string;
1666
+ /**
1667
+ * MIME type of the attachment, e.g. application/pdf. Not inferred from filename; set it explicitly so clients render the attachment correctly.
1668
+ * @type {string}
1669
+ * @memberof V1SendAttachment
1670
+ */
1671
+ 'contentType': string;
1672
+ /**
1673
+ * Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">.
1674
+ * @type {string}
1675
+ * @memberof V1SendAttachment
1676
+ */
1677
+ 'cid': string;
1678
+ /**
1679
+ * Encoding of content. Defaults to base64.
1680
+ * @type {string}
1681
+ * @memberof V1SendAttachment
1682
+ */
1683
+ 'encoding': string;
1684
+ }
1685
+ /**
1686
+ * Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
1687
+ * @export
1688
+ * @interface V1SendMessageRef
1689
+ */
1690
+ export interface V1SendMessageRef {
1691
+ /**
1692
+ * UID of the source message.
1693
+ * @type {number}
1694
+ * @memberof V1SendMessageRef
1695
+ */
1696
+ 'uid': number;
1697
+ /**
1698
+ * Folder containing the source message.
1699
+ * @type {string}
1700
+ * @memberof V1SendMessageRef
1701
+ */
1702
+ 'folder': string;
1703
+ }
1704
+ /**
1705
+ * Outgoing message payload. At least one of to, cc, or bcc must be present.
1706
+ * @export
1707
+ * @interface V1SendRequest
1708
+ */
1709
+ export interface V1SendRequest {
1710
+ /**
1711
+ * Primary recipient email addresses.
1712
+ * @type {Array<string>}
1713
+ * @memberof V1SendRequest
1714
+ */
1715
+ 'to': Array<string>;
1716
+ /**
1717
+ * Sender display name shown in the From header alongside the mailbox address.
1718
+ * @type {string}
1719
+ * @memberof V1SendRequest
1720
+ */
1721
+ 'displayName': string;
1722
+ /**
1723
+ * Carbon-copy recipient email addresses.
1724
+ * @type {Array<string>}
1725
+ * @memberof V1SendRequest
1726
+ */
1727
+ 'cc': Array<string>;
1728
+ /**
1729
+ * Blind-carbon-copy recipient email addresses. Not visible to other recipients.
1730
+ * @type {Array<string>}
1731
+ * @memberof V1SendRequest
1732
+ */
1733
+ 'bcc': Array<string>;
1734
+ /**
1735
+ * Message subject line.
1736
+ * @type {string}
1737
+ * @memberof V1SendRequest
1738
+ */
1739
+ 'subject': string;
1740
+ /**
1741
+ * Plain-text body. Optional; if both text and html are omitted the message is sent without a body.
1742
+ * @type {string}
1743
+ * @memberof V1SendRequest
1744
+ */
1745
+ 'text': string;
1746
+ /**
1747
+ * HTML body. Optional; if both text and html are omitted the message is sent without a body. Inline images are referenced via cid: URLs matching attachment cid values.
1748
+ * @type {string}
1749
+ * @memberof V1SendRequest
1750
+ */
1751
+ 'html': string;
1752
+ /**
1753
+ * Files to attach. Inline images set cid; regular attachments omit it.
1754
+ * @type {Array<V1SendAttachment>}
1755
+ * @memberof V1SendRequest
1756
+ */
1757
+ 'attachments': Array<V1SendAttachment>;
1758
+ /**
1759
+ * Source message this is a reply to, as an object {uid, folder} — not the Message-ID header string. Copies its Message-Id/References into In-Reply-To/References and flags it \\Answered. Mutually exclusive with forwardOf.
1760
+ * @type {V1SendMessageRef}
1761
+ * @memberof V1SendRequest
1762
+ */
1763
+ 'inReplyTo': V1SendMessageRef;
1764
+ /**
1765
+ * Source message this forwards, as an object {uid, folder} — not the Message-ID header string. Copies its Message-Id/References into In-Reply-To/References and flags it $forwarded. Mutually exclusive with inReplyTo.
1766
+ * @type {V1SendMessageRef}
1767
+ * @memberof V1SendRequest
1768
+ */
1769
+ 'forwardOf': V1SendMessageRef;
1770
+ }
1771
+ /**
1772
+ * Paginated list of webhooks.
1773
+ * @export
1774
+ * @interface V1WebhooksCollection
1775
+ */
1776
+ export interface V1WebhooksCollection {
1777
+ /**
1778
+ *
1779
+ * @type {Array<V1WebhooksWebhook>}
1780
+ * @memberof V1WebhooksCollection
1781
+ */
1782
+ 'data': Array<V1WebhooksWebhook>;
1783
+ /**
1784
+ *
1785
+ * @type {Pagination}
1786
+ * @memberof V1WebhooksCollection
1787
+ */
1788
+ 'pagination': Pagination;
1789
+ }
1790
+ /**
1791
+ * Body for creating a webhook.
1792
+ * @export
1793
+ * @interface V1WebhooksCreateRequest
1794
+ */
1795
+ export interface V1WebhooksCreateRequest {
1796
+ /**
1797
+ * Human-readable webhook name.
1798
+ * @type {string}
1799
+ * @memberof V1WebhooksCreateRequest
1800
+ */
1801
+ 'name': string;
1802
+ /**
1803
+ * Optional free-text note about the webhook purpose.
1804
+ * @type {string}
1805
+ * @memberof V1WebhooksCreateRequest
1806
+ */
1807
+ 'description': string | null;
1808
+ /**
1809
+ * Event types that trigger a delivery.
1810
+ * @type {Array<string>}
1811
+ * @memberof V1WebhooksCreateRequest
1812
+ */
1813
+ 'events': Array<V1WebhooksCreateRequestEventsEnum>;
1814
+ /**
1815
+ * Initial delivery state. Only active webhooks receive events.
1816
+ * @type {string}
1817
+ * @memberof V1WebhooksCreateRequest
1818
+ */
1819
+ 'status': V1WebhooksCreateRequestStatusEnum;
1820
+ /**
1821
+ * HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts).
1822
+ * @type {string}
1823
+ * @memberof V1WebhooksCreateRequest
1824
+ */
1825
+ 'url': string;
1826
+ }
1827
+ export declare const V1WebhooksCreateRequestEventsEnum: {
1828
+ readonly MessageReceived: "message.received";
1829
+ };
1830
+ export type V1WebhooksCreateRequestEventsEnum = typeof V1WebhooksCreateRequestEventsEnum[keyof typeof V1WebhooksCreateRequestEventsEnum];
1831
+ export declare const V1WebhooksCreateRequestStatusEnum: {
1832
+ readonly Active: "active";
1833
+ readonly Paused: "paused";
1834
+ readonly Disabled: "disabled";
1835
+ };
1836
+ export type V1WebhooksCreateRequestStatusEnum = typeof V1WebhooksCreateRequestStatusEnum[keyof typeof V1WebhooksCreateRequestStatusEnum];
1837
+ /**
1838
+ * Single webhook payload.
1839
+ * @export
1840
+ * @interface V1WebhooksResource
1841
+ */
1842
+ export interface V1WebhooksResource {
1843
+ /**
1844
+ *
1845
+ * @type {V1WebhooksWebhook}
1846
+ * @memberof V1WebhooksResource
1847
+ */
1848
+ 'data': V1WebhooksWebhook;
1849
+ }
1850
+ /**
1851
+ * Single webhook payload including the one-time secret.
1852
+ * @export
1853
+ * @interface V1WebhooksResourceWithSecret
1854
+ */
1855
+ export interface V1WebhooksResourceWithSecret {
1856
+ /**
1857
+ *
1858
+ * @type {V1WebhooksWebhookWithSecret}
1859
+ * @memberof V1WebhooksResourceWithSecret
1860
+ */
1861
+ 'data': V1WebhooksWebhookWithSecret;
1862
+ }
1863
+ /**
1864
+ * Result of a webhook test delivery.
1865
+ * @export
1866
+ * @interface V1WebhooksTestResult
1867
+ */
1868
+ export interface V1WebhooksTestResult {
1869
+ /**
1870
+ *
1871
+ * @type {V1WebhooksTestResultData}
1872
+ * @memberof V1WebhooksTestResult
1873
+ */
1874
+ 'data': V1WebhooksTestResultData;
1875
+ }
1876
+ /**
1877
+ *
1878
+ * @export
1879
+ * @interface V1WebhooksTestResultData
1880
+ */
1881
+ export interface V1WebhooksTestResultData {
1882
+ /**
1883
+ *
1884
+ * @type {number}
1885
+ * @memberof V1WebhooksTestResultData
1886
+ */
1887
+ 'httpStatus': number;
1888
+ /**
1889
+ *
1890
+ * @type {boolean}
1891
+ * @memberof V1WebhooksTestResultData
1892
+ */
1893
+ 'success': boolean;
1894
+ /**
1895
+ *
1896
+ * @type {string}
1897
+ * @memberof V1WebhooksTestResultData
1898
+ */
1899
+ 'error': string | null;
1900
+ }
1901
+ /**
1902
+ * Body for partially updating a webhook. All fields optional; only present fields are applied.
1903
+ * @export
1904
+ * @interface V1WebhooksUpdateRequest
1905
+ */
1906
+ export interface V1WebhooksUpdateRequest {
1907
+ /**
1908
+ * Human-readable webhook name.
1909
+ * @type {string}
1910
+ * @memberof V1WebhooksUpdateRequest
1911
+ */
1912
+ 'name': string;
1913
+ /**
1914
+ * Free-text note about the webhook purpose. Send null to clear.
1915
+ * @type {string}
1916
+ * @memberof V1WebhooksUpdateRequest
1917
+ */
1918
+ 'description': string | null;
1919
+ /**
1920
+ * Event types that trigger a delivery. Replaces the current list.
1921
+ * @type {Array<string>}
1922
+ * @memberof V1WebhooksUpdateRequest
1923
+ */
1924
+ 'events': Array<V1WebhooksUpdateRequestEventsEnum>;
1925
+ /**
1926
+ * Delivery state. Only active webhooks receive events; paused keeps config but stops deliveries.
1927
+ * @type {string}
1928
+ * @memberof V1WebhooksUpdateRequest
1929
+ */
1930
+ 'status': V1WebhooksUpdateRequestStatusEnum;
1931
+ /**
1932
+ * HTTPS endpoint that receives POST deliveries, authenticated with the webhook secret as `Authorization: Bearer <secret>`. Must be a public domain name (no IPs or internal hosts).
1933
+ * @type {string}
1934
+ * @memberof V1WebhooksUpdateRequest
1935
+ */
1936
+ 'url': string;
1937
+ }
1938
+ export declare const V1WebhooksUpdateRequestEventsEnum: {
1939
+ readonly MessageReceived: "message.received";
1940
+ };
1941
+ export type V1WebhooksUpdateRequestEventsEnum = typeof V1WebhooksUpdateRequestEventsEnum[keyof typeof V1WebhooksUpdateRequestEventsEnum];
1942
+ export declare const V1WebhooksUpdateRequestStatusEnum: {
1943
+ readonly Active: "active";
1944
+ readonly Paused: "paused";
1945
+ readonly Disabled: "disabled";
1946
+ };
1947
+ export type V1WebhooksUpdateRequestStatusEnum = typeof V1WebhooksUpdateRequestStatusEnum[keyof typeof V1WebhooksUpdateRequestStatusEnum];
1948
+ /**
1949
+ * Webhook configured for a managed mailbox.
1950
+ * @export
1951
+ * @interface V1WebhooksWebhook
1952
+ */
1953
+ export interface V1WebhooksWebhook {
1954
+ /**
1955
+ * Unique webhook identifier (UUID v7).
1956
+ * @type {string}
1957
+ * @memberof V1WebhooksWebhook
1958
+ */
1959
+ 'id': string;
1960
+ /**
1961
+ * Resource ID of the mailbox this webhook is attached to.
1962
+ * @type {string}
1963
+ * @memberof V1WebhooksWebhook
1964
+ */
1965
+ 'accountResourceId': string;
1966
+ /**
1967
+ * Email address of the mailbox.
1968
+ * @type {string}
1969
+ * @memberof V1WebhooksWebhook
1970
+ */
1971
+ 'mailbox': string;
1972
+ /**
1973
+ *
1974
+ * @type {string}
1975
+ * @memberof V1WebhooksWebhook
1976
+ */
1977
+ 'name': string;
1978
+ /**
1979
+ *
1980
+ * @type {string}
1981
+ * @memberof V1WebhooksWebhook
1982
+ */
1983
+ 'description': string | null;
1984
+ /**
1985
+ *
1986
+ * @type {Array<string>}
1104
1987
  * @memberof V1WebhooksWebhook
1105
1988
  */
1106
1989
  'events': Array<V1WebhooksWebhookEventsEnum>;
@@ -1109,173 +1992,776 @@ export interface V1WebhooksWebhook {
1109
1992
  * @type {string}
1110
1993
  * @memberof V1WebhooksWebhook
1111
1994
  */
1112
- 'status': V1WebhooksWebhookStatusEnum;
1995
+ 'status': V1WebhooksWebhookStatusEnum;
1996
+ /**
1997
+ *
1998
+ * @type {string}
1999
+ * @memberof V1WebhooksWebhook
2000
+ */
2001
+ 'url': string;
2002
+ /**
2003
+ *
2004
+ * @type {string}
2005
+ * @memberof V1WebhooksWebhook
2006
+ */
2007
+ 'createdAt': string;
2008
+ /**
2009
+ *
2010
+ * @type {string}
2011
+ * @memberof V1WebhooksWebhook
2012
+ */
2013
+ 'updatedAt': string;
2014
+ }
2015
+ export declare const V1WebhooksWebhookEventsEnum: {
2016
+ readonly MessageReceived: "message.received";
2017
+ };
2018
+ export type V1WebhooksWebhookEventsEnum = typeof V1WebhooksWebhookEventsEnum[keyof typeof V1WebhooksWebhookEventsEnum];
2019
+ export declare const V1WebhooksWebhookStatusEnum: {
2020
+ readonly Active: "active";
2021
+ readonly Paused: "paused";
2022
+ readonly Disabled: "disabled";
2023
+ };
2024
+ export type V1WebhooksWebhookStatusEnum = typeof V1WebhooksWebhookStatusEnum[keyof typeof V1WebhooksWebhookStatusEnum];
2025
+ /**
2026
+ * 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.
2027
+ * @export
2028
+ * @interface V1WebhooksWebhookWithSecret
2029
+ */
2030
+ export interface V1WebhooksWebhookWithSecret {
2031
+ /**
2032
+ * Unique webhook identifier (UUID v7).
2033
+ * @type {string}
2034
+ * @memberof V1WebhooksWebhookWithSecret
2035
+ */
2036
+ 'id': string;
2037
+ /**
2038
+ * Resource ID of the mailbox this webhook is attached to.
2039
+ * @type {string}
2040
+ * @memberof V1WebhooksWebhookWithSecret
2041
+ */
2042
+ 'accountResourceId': string;
2043
+ /**
2044
+ * Email address of the mailbox.
2045
+ * @type {string}
2046
+ * @memberof V1WebhooksWebhookWithSecret
2047
+ */
2048
+ 'mailbox': string;
2049
+ /**
2050
+ *
2051
+ * @type {string}
2052
+ * @memberof V1WebhooksWebhookWithSecret
2053
+ */
2054
+ 'name': string;
2055
+ /**
2056
+ *
2057
+ * @type {string}
2058
+ * @memberof V1WebhooksWebhookWithSecret
2059
+ */
2060
+ 'description': string | null;
2061
+ /**
2062
+ *
2063
+ * @type {Array<string>}
2064
+ * @memberof V1WebhooksWebhookWithSecret
2065
+ */
2066
+ 'events': Array<V1WebhooksWebhookWithSecretEventsEnum>;
2067
+ /**
2068
+ *
2069
+ * @type {string}
2070
+ * @memberof V1WebhooksWebhookWithSecret
2071
+ */
2072
+ 'status': V1WebhooksWebhookWithSecretStatusEnum;
2073
+ /**
2074
+ *
2075
+ * @type {string}
2076
+ * @memberof V1WebhooksWebhookWithSecret
2077
+ */
2078
+ 'url': string;
2079
+ /**
2080
+ *
2081
+ * @type {string}
2082
+ * @memberof V1WebhooksWebhookWithSecret
2083
+ */
2084
+ 'createdAt': string;
2085
+ /**
2086
+ *
2087
+ * @type {string}
2088
+ * @memberof V1WebhooksWebhookWithSecret
2089
+ */
2090
+ 'updatedAt': string;
2091
+ /**
2092
+ *
2093
+ * @type {string}
2094
+ * @memberof V1WebhooksWebhookWithSecret
2095
+ */
2096
+ 'secret': string;
2097
+ }
2098
+ export declare const V1WebhooksWebhookWithSecretEventsEnum: {
2099
+ readonly MessageReceived: "message.received";
2100
+ };
2101
+ export type V1WebhooksWebhookWithSecretEventsEnum = typeof V1WebhooksWebhookWithSecretEventsEnum[keyof typeof V1WebhooksWebhookWithSecretEventsEnum];
2102
+ export declare const V1WebhooksWebhookWithSecretStatusEnum: {
2103
+ readonly Active: "active";
2104
+ readonly Paused: "paused";
2105
+ readonly Disabled: "disabled";
2106
+ };
2107
+ export type V1WebhooksWebhookWithSecretStatusEnum = typeof V1WebhooksWebhookWithSecretStatusEnum[keyof typeof V1WebhooksWebhookWithSecretStatusEnum];
2108
+ /**
2109
+ * AccountApi - axios parameter creator
2110
+ * @export
2111
+ */
2112
+ export declare const AccountApiAxiosParamCreator: (configuration?: Configuration) => {
2113
+ /**
2114
+ * Returns the authenticated account and the mailboxes it can manage.
2115
+ * @summary Get the authenticated account
2116
+ * @param {*} [options] Override http request option.
2117
+ * @throws {RequiredError}
2118
+ */
2119
+ getCurrentAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2120
+ };
2121
+ /**
2122
+ * AccountApi - functional programming interface
2123
+ * @export
2124
+ */
2125
+ export declare const AccountApiFp: (configuration?: Configuration) => {
2126
+ /**
2127
+ * Returns the authenticated account and the mailboxes it can manage.
2128
+ * @summary Get the authenticated account
2129
+ * @param {*} [options] Override http request option.
2130
+ * @throws {RequiredError}
2131
+ */
2132
+ getCurrentAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1MeResource>>;
2133
+ };
2134
+ /**
2135
+ * AccountApi - factory interface
2136
+ * @export
2137
+ */
2138
+ export declare const AccountApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2139
+ /**
2140
+ * Returns the authenticated account and the mailboxes it can manage.
2141
+ * @summary Get the authenticated account
2142
+ * @param {*} [options] Override http request option.
2143
+ * @throws {RequiredError}
2144
+ */
2145
+ getCurrentAccount(options?: RawAxiosRequestConfig): AxiosPromise<V1MeResource>;
2146
+ };
2147
+ /**
2148
+ * AccountApi - object-oriented interface
2149
+ * @export
2150
+ * @class AccountApi
2151
+ * @extends {BaseAPI}
2152
+ */
2153
+ export declare class AccountApi extends BaseAPI {
2154
+ /**
2155
+ * Returns the authenticated account and the mailboxes it can manage.
2156
+ * @summary Get the authenticated account
2157
+ * @param {*} [options] Override http request option.
2158
+ * @throws {RequiredError}
2159
+ * @memberof AccountApi
2160
+ */
2161
+ getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}, any>>;
2162
+ }
2163
+ /**
2164
+ * CalendarEventsApi - axios parameter creator
2165
+ * @export
2166
+ */
2167
+ export declare const CalendarEventsApiAxiosParamCreator: (configuration?: Configuration) => {
2168
+ /**
2169
+ * Create an event in one calendar of the mailbox. `calendarUuid` comes from `listCalendars`: use the calendar with `default` true unless another one is named. A calendar the mailbox can only read is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. The mailbox becomes the organizer and every address in `attendees` immediately receives an email invitation, which cannot be recalled. Without attendees no email is sent. A timed event needs `allDay` false, `start`, `end` and `timeZone`. An all-day event needs `allDay` true and a `start` date; `end` is optional. Set `recurrenceRule` for a repeating event and `reminder` for an alarm. Returns the created event. Its `uuid` is the `eventUuid` for `getCalendarEvent`, `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent`.
2170
+ * @summary Create calendar event
2171
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2172
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2173
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2174
+ * @param {*} [options] Override http request option.
2175
+ * @throws {RequiredError}
2176
+ */
2177
+ createCalendarEvent: (mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2178
+ /**
2179
+ * Delete an event, one occurrence of a recurring event, or a recurring event from one occurrence on. This cannot be undone. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. For a one-off event omit `scope` and `recurrenceId`. For a recurring event, `scope` `this` removes only the occurrence at `recurrenceId`, `future` removes it and every later one, `all` (the default) deletes the whole series. An event with `editable` true can be deleted with any scope, and its attendees receive a cancellation or the updated series by email. An invitation from someone else on the own calendar of the mailbox can be deleted with `all` or `this`: the organizer receives a decline for the removed occurrences. Any other event is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. `notifyAttendees` false deletes without sending any email.
2180
+ * @summary Delete calendar event
2181
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2182
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2183
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2184
+ * @param {DeleteCalendarEventScopeEnum} [scope] For a recurring event: &#x60;this&#x60; removes the occurrence at &#x60;recurrenceId&#x60;, &#x60;future&#x60; removes it and every later one, &#x60;all&#x60; deletes the whole series. Omitted means &#x60;all&#x60;. Required when &#x60;recurrenceId&#x60; is sent.
2185
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Required when &#x60;scope&#x60; is &#x60;this&#x60; or &#x60;future&#x60;. A value that matches no occurrence, or any value on a one-off event, returns &#x60;404&#x60;.
2186
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2187
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is deleted and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2188
+ * @param {*} [options] Override http request option.
2189
+ * @throws {RequiredError}
2190
+ */
2191
+ deleteCalendarEvent: (mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2192
+ /**
2193
+ * Retrieve the full details of one event: title, times, description, location, meeting link, recurrence rule, reminder, organizer, attendees with their answers, and its `etag`. `calendarUuid` and `eventUuid` come from `listCalendarEvents` (the `calendarUuid` and `uuid` of an item). For one occurrence of a recurring event pass the `recurrenceId` of the item; without it the whole series is returned and `recurrenceId` is null. A `recurrenceId` that matches no occurrence returns `404`. Call it before `updateCalendarEvent`, which replaces every field, so the values that should stay can be sent back. `replyable` true means the mailbox was invited by someone else and can answer with `replyToCalendarEvent`. `editable` true means the event can be changed or moved.
2194
+ * @summary Get calendar event
2195
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2196
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2197
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2198
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Omit it for a one-off event or for the whole series.
2199
+ * @param {*} [options] Override http request option.
2200
+ * @throws {RequiredError}
2201
+ */
2202
+ getCalendarEvent: (mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2203
+ /**
2204
+ * List the events of one calendar that overlap a time range. It covers one calendar only: get the calendars from `listCalendars` and call it for each. The range runs from `start` (inclusive) to `end` (exclusive), at most 32 days; for a longer period call it again with the next range. Recurring events are expanded: each occurrence is a separate item with the same `uuid` and its own `recurrenceId`. Results are not paginated. Items hold summary fields only. For description, location, attendees and organizer call `getCalendarEvent` with the `calendarUuid`, `uuid` (as `eventUuid`) and `recurrenceId` of the item. Times are in UTC; `timeZone` is the zone the event was created in. `participationStatus` is the answer of the mailbox to an invitation from someone else, null for its own events. `status` CANCELLED means the organizer cancelled the event.
2205
+ * @summary List calendar events
2206
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2207
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2208
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2209
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2210
+ * @param {string} [timeZone] IANA time zone used to place all-day events and events without a time zone on days, also across a daylight saving change. Defaults to the fixed offset of &#x60;start&#x60;.
2211
+ * @param {*} [options] Override http request option.
2212
+ * @throws {RequiredError}
2213
+ */
2214
+ listCalendarEvents: (mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2215
+ /**
2216
+ * Answer an invitation from someone else: accept, decline or tentatively accept. It saves the answer on the event and emails it to the organizer, which cannot be recalled. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. It works only when `getCalendarEvent` returns `replyable` true. An event the mailbox organizes or is not invited to is rejected with `403` and code `ERR_EVENT_NOT_REPLYABLE`, an event the organizer cancelled with `409` and code `ERR_EVENT_CANCELLED`. Send the `recurrenceId` of an item to answer one occurrence of a recurring event, or omit it to answer the whole series. Returns the event with the new `participationStatus`.
2217
+ * @summary Reply to calendar event
2218
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2219
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2220
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2221
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2222
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, the answer is not saved and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2223
+ * @param {*} [options] Override http request option.
2224
+ * @throws {RequiredError}
2225
+ */
2226
+ replyToCalendarEvent: (mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2227
+ /**
2228
+ * Move an event to another time or change its length, keeping everything else (title, attendees, description and so on) as stored, so the event does not have to be fetched first. To change other fields use `updateCalendarEvent`. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. Only an event with `editable` true can be moved; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` moves only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) moves the whole series: only the time of day and the length apply and the series keeps the date of its first occurrence. Attendees receive an email update unless `notifyAttendees` is false. Returns the moved event, or the moved occurrence for `scope` `this`.
2229
+ * @summary Reschedule calendar event
2230
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2231
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2232
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2233
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2234
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2235
+ * @param {*} [options] Override http request option.
2236
+ * @throws {RequiredError}
2237
+ */
2238
+ rescheduleCalendarEvent: (mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2239
+ /**
2240
+ * Change the details of an event: title, times, description, location, attendees, recurrence and so on. Every field replaces the stored value and an omitted optional field is cleared, so call `getCalendarEvent` first and send back the values that should stay. To only move an event in time, use `rescheduleCalendarEvent`. Only an event with `editable` true can be changed; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` changes only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) changes the whole series, keeping the date of its first occurrence. Attendees receive an email update, added attendees an invitation and removed ones a cancellation, unless `notifyAttendees` is false. Returns the changed event, or the changed occurrence for `scope` `this`.
2241
+ * @summary Update calendar event
2242
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2243
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2244
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2245
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2246
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2247
+ * @param {*} [options] Override http request option.
2248
+ * @throws {RequiredError}
2249
+ */
2250
+ updateCalendarEvent: (mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2251
+ };
2252
+ /**
2253
+ * CalendarEventsApi - functional programming interface
2254
+ * @export
2255
+ */
2256
+ export declare const CalendarEventsApiFp: (configuration?: Configuration) => {
2257
+ /**
2258
+ * Create an event in one calendar of the mailbox. `calendarUuid` comes from `listCalendars`: use the calendar with `default` true unless another one is named. A calendar the mailbox can only read is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. The mailbox becomes the organizer and every address in `attendees` immediately receives an email invitation, which cannot be recalled. Without attendees no email is sent. A timed event needs `allDay` false, `start`, `end` and `timeZone`. An all-day event needs `allDay` true and a `start` date; `end` is optional. Set `recurrenceRule` for a repeating event and `reminder` for an alarm. Returns the created event. Its `uuid` is the `eventUuid` for `getCalendarEvent`, `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent`.
2259
+ * @summary Create calendar event
2260
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2261
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2262
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2263
+ * @param {*} [options] Override http request option.
2264
+ * @throws {RequiredError}
2265
+ */
2266
+ createCalendarEvent(mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>>;
2267
+ /**
2268
+ * Delete an event, one occurrence of a recurring event, or a recurring event from one occurrence on. This cannot be undone. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. For a one-off event omit `scope` and `recurrenceId`. For a recurring event, `scope` `this` removes only the occurrence at `recurrenceId`, `future` removes it and every later one, `all` (the default) deletes the whole series. An event with `editable` true can be deleted with any scope, and its attendees receive a cancellation or the updated series by email. An invitation from someone else on the own calendar of the mailbox can be deleted with `all` or `this`: the organizer receives a decline for the removed occurrences. Any other event is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. `notifyAttendees` false deletes without sending any email.
2269
+ * @summary Delete calendar event
2270
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2271
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2272
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2273
+ * @param {DeleteCalendarEventScopeEnum} [scope] For a recurring event: &#x60;this&#x60; removes the occurrence at &#x60;recurrenceId&#x60;, &#x60;future&#x60; removes it and every later one, &#x60;all&#x60; deletes the whole series. Omitted means &#x60;all&#x60;. Required when &#x60;recurrenceId&#x60; is sent.
2274
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Required when &#x60;scope&#x60; is &#x60;this&#x60; or &#x60;future&#x60;. A value that matches no occurrence, or any value on a one-off event, returns &#x60;404&#x60;.
2275
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2276
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is deleted and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2277
+ * @param {*} [options] Override http request option.
2278
+ * @throws {RequiredError}
2279
+ */
2280
+ deleteCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2281
+ /**
2282
+ * Retrieve the full details of one event: title, times, description, location, meeting link, recurrence rule, reminder, organizer, attendees with their answers, and its `etag`. `calendarUuid` and `eventUuid` come from `listCalendarEvents` (the `calendarUuid` and `uuid` of an item). For one occurrence of a recurring event pass the `recurrenceId` of the item; without it the whole series is returned and `recurrenceId` is null. A `recurrenceId` that matches no occurrence returns `404`. Call it before `updateCalendarEvent`, which replaces every field, so the values that should stay can be sent back. `replyable` true means the mailbox was invited by someone else and can answer with `replyToCalendarEvent`. `editable` true means the event can be changed or moved.
2283
+ * @summary Get calendar event
2284
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2285
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2286
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2287
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Omit it for a one-off event or for the whole series.
2288
+ * @param {*} [options] Override http request option.
2289
+ * @throws {RequiredError}
2290
+ */
2291
+ getCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>>;
2292
+ /**
2293
+ * List the events of one calendar that overlap a time range. It covers one calendar only: get the calendars from `listCalendars` and call it for each. The range runs from `start` (inclusive) to `end` (exclusive), at most 32 days; for a longer period call it again with the next range. Recurring events are expanded: each occurrence is a separate item with the same `uuid` and its own `recurrenceId`. Results are not paginated. Items hold summary fields only. For description, location, attendees and organizer call `getCalendarEvent` with the `calendarUuid`, `uuid` (as `eventUuid`) and `recurrenceId` of the item. Times are in UTC; `timeZone` is the zone the event was created in. `participationStatus` is the answer of the mailbox to an invitation from someone else, null for its own events. `status` CANCELLED means the organizer cancelled the event.
2294
+ * @summary List calendar events
2295
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2296
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2297
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2298
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2299
+ * @param {string} [timeZone] IANA time zone used to place all-day events and events without a time zone on days, also across a daylight saving change. Defaults to the fixed offset of &#x60;start&#x60;.
2300
+ * @param {*} [options] Override http request option.
2301
+ * @throws {RequiredError}
2302
+ */
2303
+ listCalendarEvents(mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsCollection>>;
1113
2304
  /**
1114
- *
1115
- * @type {string}
1116
- * @memberof V1WebhooksWebhook
2305
+ * Answer an invitation from someone else: accept, decline or tentatively accept. It saves the answer on the event and emails it to the organizer, which cannot be recalled. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. It works only when `getCalendarEvent` returns `replyable` true. An event the mailbox organizes or is not invited to is rejected with `403` and code `ERR_EVENT_NOT_REPLYABLE`, an event the organizer cancelled with `409` and code `ERR_EVENT_CANCELLED`. Send the `recurrenceId` of an item to answer one occurrence of a recurring event, or omit it to answer the whole series. Returns the event with the new `participationStatus`.
2306
+ * @summary Reply to calendar event
2307
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2308
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2309
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2310
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2311
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, the answer is not saved and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2312
+ * @param {*} [options] Override http request option.
2313
+ * @throws {RequiredError}
1117
2314
  */
1118
- 'url': string;
2315
+ replyToCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>>;
1119
2316
  /**
1120
- *
1121
- * @type {string}
1122
- * @memberof V1WebhooksWebhook
2317
+ * Move an event to another time or change its length, keeping everything else (title, attendees, description and so on) as stored, so the event does not have to be fetched first. To change other fields use `updateCalendarEvent`. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. Only an event with `editable` true can be moved; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` moves only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) moves the whole series: only the time of day and the length apply and the series keeps the date of its first occurrence. Attendees receive an email update unless `notifyAttendees` is false. Returns the moved event, or the moved occurrence for `scope` `this`.
2318
+ * @summary Reschedule calendar event
2319
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2320
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2321
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2322
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2323
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2324
+ * @param {*} [options] Override http request option.
2325
+ * @throws {RequiredError}
1123
2326
  */
1124
- 'createdAt': string;
2327
+ rescheduleCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>>;
1125
2328
  /**
1126
- *
1127
- * @type {string}
1128
- * @memberof V1WebhooksWebhook
2329
+ * Change the details of an event: title, times, description, location, attendees, recurrence and so on. Every field replaces the stored value and an omitted optional field is cleared, so call `getCalendarEvent` first and send back the values that should stay. To only move an event in time, use `rescheduleCalendarEvent`. Only an event with `editable` true can be changed; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` changes only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) changes the whole series, keeping the date of its first occurrence. Attendees receive an email update, added attendees an invitation and removed ones a cancellation, unless `notifyAttendees` is false. Returns the changed event, or the changed occurrence for `scope` `this`.
2330
+ * @summary Update calendar event
2331
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2332
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2333
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2334
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2335
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2336
+ * @param {*} [options] Override http request option.
2337
+ * @throws {RequiredError}
1129
2338
  */
1130
- 'updatedAt': string;
1131
- }
1132
- export declare const V1WebhooksWebhookEventsEnum: {
1133
- readonly MessageReceived: "message.received";
1134
- };
1135
- export type V1WebhooksWebhookEventsEnum = typeof V1WebhooksWebhookEventsEnum[keyof typeof V1WebhooksWebhookEventsEnum];
1136
- export declare const V1WebhooksWebhookStatusEnum: {
1137
- readonly Active: "active";
1138
- readonly Paused: "paused";
1139
- readonly Disabled: "disabled";
2339
+ updateCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>>;
1140
2340
  };
1141
- export type V1WebhooksWebhookStatusEnum = typeof V1WebhooksWebhookStatusEnum[keyof typeof V1WebhooksWebhookStatusEnum];
1142
2341
  /**
1143
- * 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.
2342
+ * CalendarEventsApi - factory interface
1144
2343
  * @export
1145
- * @interface V1WebhooksWebhookWithSecret
1146
2344
  */
1147
- export interface V1WebhooksWebhookWithSecret {
2345
+ export declare const CalendarEventsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1148
2346
  /**
1149
- * Unique webhook identifier (UUID v7).
1150
- * @type {string}
1151
- * @memberof V1WebhooksWebhookWithSecret
2347
+ * Create an event in one calendar of the mailbox. `calendarUuid` comes from `listCalendars`: use the calendar with `default` true unless another one is named. A calendar the mailbox can only read is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. The mailbox becomes the organizer and every address in `attendees` immediately receives an email invitation, which cannot be recalled. Without attendees no email is sent. A timed event needs `allDay` false, `start`, `end` and `timeZone`. An all-day event needs `allDay` true and a `start` date; `end` is optional. Set `recurrenceRule` for a repeating event and `reminder` for an alarm. Returns the created event. Its `uuid` is the `eventUuid` for `getCalendarEvent`, `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent`.
2348
+ * @summary Create calendar event
2349
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2350
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2351
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2352
+ * @param {*} [options] Override http request option.
2353
+ * @throws {RequiredError}
1152
2354
  */
1153
- 'id': string;
2355
+ createCalendarEvent(mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource>;
1154
2356
  /**
1155
- * Resource ID of the mailbox this webhook is attached to.
1156
- * @type {string}
1157
- * @memberof V1WebhooksWebhookWithSecret
2357
+ * Delete an event, one occurrence of a recurring event, or a recurring event from one occurrence on. This cannot be undone. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. For a one-off event omit `scope` and `recurrenceId`. For a recurring event, `scope` `this` removes only the occurrence at `recurrenceId`, `future` removes it and every later one, `all` (the default) deletes the whole series. An event with `editable` true can be deleted with any scope, and its attendees receive a cancellation or the updated series by email. An invitation from someone else on the own calendar of the mailbox can be deleted with `all` or `this`: the organizer receives a decline for the removed occurrences. Any other event is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. `notifyAttendees` false deletes without sending any email.
2358
+ * @summary Delete calendar event
2359
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2360
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2361
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2362
+ * @param {DeleteCalendarEventScopeEnum} [scope] For a recurring event: &#x60;this&#x60; removes the occurrence at &#x60;recurrenceId&#x60;, &#x60;future&#x60; removes it and every later one, &#x60;all&#x60; deletes the whole series. Omitted means &#x60;all&#x60;. Required when &#x60;recurrenceId&#x60; is sent.
2363
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Required when &#x60;scope&#x60; is &#x60;this&#x60; or &#x60;future&#x60;. A value that matches no occurrence, or any value on a one-off event, returns &#x60;404&#x60;.
2364
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2365
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is deleted and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2366
+ * @param {*} [options] Override http request option.
2367
+ * @throws {RequiredError}
1158
2368
  */
1159
- 'accountResourceId': string;
2369
+ deleteCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
1160
2370
  /**
1161
- * Email address of the mailbox.
1162
- * @type {string}
1163
- * @memberof V1WebhooksWebhookWithSecret
2371
+ * Retrieve the full details of one event: title, times, description, location, meeting link, recurrence rule, reminder, organizer, attendees with their answers, and its `etag`. `calendarUuid` and `eventUuid` come from `listCalendarEvents` (the `calendarUuid` and `uuid` of an item). For one occurrence of a recurring event pass the `recurrenceId` of the item; without it the whole series is returned and `recurrenceId` is null. A `recurrenceId` that matches no occurrence returns `404`. Call it before `updateCalendarEvent`, which replaces every field, so the values that should stay can be sent back. `replyable` true means the mailbox was invited by someone else and can answer with `replyToCalendarEvent`. `editable` true means the event can be changed or moved.
2372
+ * @summary Get calendar event
2373
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2374
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2375
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2376
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Omit it for a one-off event or for the whole series.
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
1164
2379
  */
1165
- 'mailbox': string;
2380
+ getCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource>;
1166
2381
  /**
1167
- *
1168
- * @type {string}
1169
- * @memberof V1WebhooksWebhookWithSecret
2382
+ * List the events of one calendar that overlap a time range. It covers one calendar only: get the calendars from `listCalendars` and call it for each. The range runs from `start` (inclusive) to `end` (exclusive), at most 32 days; for a longer period call it again with the next range. Recurring events are expanded: each occurrence is a separate item with the same `uuid` and its own `recurrenceId`. Results are not paginated. Items hold summary fields only. For description, location, attendees and organizer call `getCalendarEvent` with the `calendarUuid`, `uuid` (as `eventUuid`) and `recurrenceId` of the item. Times are in UTC; `timeZone` is the zone the event was created in. `participationStatus` is the answer of the mailbox to an invitation from someone else, null for its own events. `status` CANCELLED means the organizer cancelled the event.
2383
+ * @summary List calendar events
2384
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2385
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2386
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2387
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2388
+ * @param {string} [timeZone] IANA time zone used to place all-day events and events without a time zone on days, also across a daylight saving change. Defaults to the fixed offset of &#x60;start&#x60;.
2389
+ * @param {*} [options] Override http request option.
2390
+ * @throws {RequiredError}
1170
2391
  */
1171
- 'name': string;
2392
+ listCalendarEvents(mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsCollection>;
1172
2393
  /**
1173
- *
1174
- * @type {string}
1175
- * @memberof V1WebhooksWebhookWithSecret
2394
+ * Answer an invitation from someone else: accept, decline or tentatively accept. It saves the answer on the event and emails it to the organizer, which cannot be recalled. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. It works only when `getCalendarEvent` returns `replyable` true. An event the mailbox organizes or is not invited to is rejected with `403` and code `ERR_EVENT_NOT_REPLYABLE`, an event the organizer cancelled with `409` and code `ERR_EVENT_CANCELLED`. Send the `recurrenceId` of an item to answer one occurrence of a recurring event, or omit it to answer the whole series. Returns the event with the new `participationStatus`.
2395
+ * @summary Reply to calendar event
2396
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2397
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2398
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2399
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2400
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, the answer is not saved and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2401
+ * @param {*} [options] Override http request option.
2402
+ * @throws {RequiredError}
1176
2403
  */
1177
- 'description': string | null;
2404
+ replyToCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource>;
1178
2405
  /**
1179
- *
1180
- * @type {Array<string>}
1181
- * @memberof V1WebhooksWebhookWithSecret
2406
+ * Move an event to another time or change its length, keeping everything else (title, attendees, description and so on) as stored, so the event does not have to be fetched first. To change other fields use `updateCalendarEvent`. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. Only an event with `editable` true can be moved; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` moves only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) moves the whole series: only the time of day and the length apply and the series keeps the date of its first occurrence. Attendees receive an email update unless `notifyAttendees` is false. Returns the moved event, or the moved occurrence for `scope` `this`.
2407
+ * @summary Reschedule calendar event
2408
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2409
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2410
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2411
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2412
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2413
+ * @param {*} [options] Override http request option.
2414
+ * @throws {RequiredError}
1182
2415
  */
1183
- 'events': Array<V1WebhooksWebhookWithSecretEventsEnum>;
2416
+ rescheduleCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource>;
1184
2417
  /**
1185
- *
1186
- * @type {string}
1187
- * @memberof V1WebhooksWebhookWithSecret
2418
+ * Change the details of an event: title, times, description, location, attendees, recurrence and so on. Every field replaces the stored value and an omitted optional field is cleared, so call `getCalendarEvent` first and send back the values that should stay. To only move an event in time, use `rescheduleCalendarEvent`. Only an event with `editable` true can be changed; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` changes only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) changes the whole series, keeping the date of its first occurrence. Attendees receive an email update, added attendees an invitation and removed ones a cancellation, unless `notifyAttendees` is false. Returns the changed event, or the changed occurrence for `scope` `this`.
2419
+ * @summary Update calendar event
2420
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2421
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2422
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2423
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2424
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2425
+ * @param {*} [options] Override http request option.
2426
+ * @throws {RequiredError}
1188
2427
  */
1189
- 'status': V1WebhooksWebhookWithSecretStatusEnum;
2428
+ updateCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource>;
2429
+ };
2430
+ /**
2431
+ * CalendarEventsApi - object-oriented interface
2432
+ * @export
2433
+ * @class CalendarEventsApi
2434
+ * @extends {BaseAPI}
2435
+ */
2436
+ export declare class CalendarEventsApi extends BaseAPI {
1190
2437
  /**
1191
- *
1192
- * @type {string}
1193
- * @memberof V1WebhooksWebhookWithSecret
2438
+ * Create an event in one calendar of the mailbox. `calendarUuid` comes from `listCalendars`: use the calendar with `default` true unless another one is named. A calendar the mailbox can only read is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. The mailbox becomes the organizer and every address in `attendees` immediately receives an email invitation, which cannot be recalled. Without attendees no email is sent. A timed event needs `allDay` false, `start`, `end` and `timeZone`. An all-day event needs `allDay` true and a `start` date; `end` is optional. Set `recurrenceRule` for a repeating event and `reminder` for an alarm. Returns the created event. Its `uuid` is the `eventUuid` for `getCalendarEvent`, `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent`.
2439
+ * @summary Create calendar event
2440
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2441
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2442
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2443
+ * @param {*} [options] Override http request option.
2444
+ * @throws {RequiredError}
2445
+ * @memberof CalendarEventsApi
1194
2446
  */
1195
- 'url': string;
2447
+ createCalendarEvent(mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarEventsResource, any, {}, any>>;
1196
2448
  /**
1197
- *
1198
- * @type {string}
1199
- * @memberof V1WebhooksWebhookWithSecret
2449
+ * Delete an event, one occurrence of a recurring event, or a recurring event from one occurrence on. This cannot be undone. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. For a one-off event omit `scope` and `recurrenceId`. For a recurring event, `scope` `this` removes only the occurrence at `recurrenceId`, `future` removes it and every later one, `all` (the default) deletes the whole series. An event with `editable` true can be deleted with any scope, and its attendees receive a cancellation or the updated series by email. An invitation from someone else on the own calendar of the mailbox can be deleted with `all` or `this`: the organizer receives a decline for the removed occurrences. Any other event is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. `notifyAttendees` false deletes without sending any email.
2450
+ * @summary Delete calendar event
2451
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2452
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2453
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2454
+ * @param {DeleteCalendarEventScopeEnum} [scope] For a recurring event: &#x60;this&#x60; removes the occurrence at &#x60;recurrenceId&#x60;, &#x60;future&#x60; removes it and every later one, &#x60;all&#x60; deletes the whole series. Omitted means &#x60;all&#x60;. Required when &#x60;recurrenceId&#x60; is sent.
2455
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Required when &#x60;scope&#x60; is &#x60;this&#x60; or &#x60;future&#x60;. A value that matches no occurrence, or any value on a one-off event, returns &#x60;404&#x60;.
2456
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2457
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is deleted and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2458
+ * @param {*} [options] Override http request option.
2459
+ * @throws {RequiredError}
2460
+ * @memberof CalendarEventsApi
1200
2461
  */
1201
- 'createdAt': string;
2462
+ deleteCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
1202
2463
  /**
1203
- *
1204
- * @type {string}
1205
- * @memberof V1WebhooksWebhookWithSecret
2464
+ * Retrieve the full details of one event: title, times, description, location, meeting link, recurrence rule, reminder, organizer, attendees with their answers, and its `etag`. `calendarUuid` and `eventUuid` come from `listCalendarEvents` (the `calendarUuid` and `uuid` of an item). For one occurrence of a recurring event pass the `recurrenceId` of the item; without it the whole series is returned and `recurrenceId` is null. A `recurrenceId` that matches no occurrence returns `404`. Call it before `updateCalendarEvent`, which replaces every field, so the values that should stay can be sent back. `replyable` true means the mailbox was invited by someone else and can answer with `replyToCalendarEvent`. `editable` true means the event can be changed or moved.
2465
+ * @summary Get calendar event
2466
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2467
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2468
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2469
+ * @param {string} [recurrenceId] &#x60;recurrenceId&#x60; of one occurrence, copied unchanged from a &#x60;listCalendarEvents&#x60; item. Omit it for a one-off event or for the whole series.
2470
+ * @param {*} [options] Override http request option.
2471
+ * @throws {RequiredError}
2472
+ * @memberof CalendarEventsApi
1206
2473
  */
1207
- 'updatedAt': string;
2474
+ getCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarEventsResource, any, {}, any>>;
1208
2475
  /**
1209
- *
1210
- * @type {string}
1211
- * @memberof V1WebhooksWebhookWithSecret
2476
+ * List the events of one calendar that overlap a time range. It covers one calendar only: get the calendars from `listCalendars` and call it for each. The range runs from `start` (inclusive) to `end` (exclusive), at most 32 days; for a longer period call it again with the next range. Recurring events are expanded: each occurrence is a separate item with the same `uuid` and its own `recurrenceId`. Results are not paginated. Items hold summary fields only. For description, location, attendees and organizer call `getCalendarEvent` with the `calendarUuid`, `uuid` (as `eventUuid`) and `recurrenceId` of the item. Times are in UTC; `timeZone` is the zone the event was created in. `participationStatus` is the answer of the mailbox to an invitation from someone else, null for its own events. `status` CANCELLED means the organizer cancelled the event.
2477
+ * @summary List calendar events
2478
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2479
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2480
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2481
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2482
+ * @param {string} [timeZone] IANA time zone used to place all-day events and events without a time zone on days, also across a daylight saving change. Defaults to the fixed offset of &#x60;start&#x60;.
2483
+ * @param {*} [options] Override http request option.
2484
+ * @throws {RequiredError}
2485
+ * @memberof CalendarEventsApi
1212
2486
  */
1213
- 'secret': string;
2487
+ listCalendarEvents(mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarEventsCollection, any, {}, any>>;
2488
+ /**
2489
+ * Answer an invitation from someone else: accept, decline or tentatively accept. It saves the answer on the event and emails it to the organizer, which cannot be recalled. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. It works only when `getCalendarEvent` returns `replyable` true. An event the mailbox organizes or is not invited to is rejected with `403` and code `ERR_EVENT_NOT_REPLYABLE`, an event the organizer cancelled with `409` and code `ERR_EVENT_CANCELLED`. Send the `recurrenceId` of an item to answer one occurrence of a recurring event, or omit it to answer the whole series. Returns the event with the new `participationStatus`.
2490
+ * @summary Reply to calendar event
2491
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2492
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2493
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2494
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2495
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, the answer is not saved and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2496
+ * @param {*} [options] Override http request option.
2497
+ * @throws {RequiredError}
2498
+ * @memberof CalendarEventsApi
2499
+ */
2500
+ replyToCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarEventsResource, any, {}, any>>;
2501
+ /**
2502
+ * Move an event to another time or change its length, keeping everything else (title, attendees, description and so on) as stored, so the event does not have to be fetched first. To change other fields use `updateCalendarEvent`. `calendarUuid` and `eventUuid` come from `listCalendarEvents`. Only an event with `editable` true can be moved; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` moves only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) moves the whole series: only the time of day and the length apply and the series keeps the date of its first occurrence. Attendees receive an email update unless `notifyAttendees` is false. Returns the moved event, or the moved occurrence for `scope` `this`.
2503
+ * @summary Reschedule calendar event
2504
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2505
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2506
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2507
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2508
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2509
+ * @param {*} [options] Override http request option.
2510
+ * @throws {RequiredError}
2511
+ * @memberof CalendarEventsApi
2512
+ */
2513
+ rescheduleCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarEventsResource, any, {}, any>>;
2514
+ /**
2515
+ * Change the details of an event: title, times, description, location, attendees, recurrence and so on. Every field replaces the stored value and an omitted optional field is cleared, so call `getCalendarEvent` first and send back the values that should stay. To only move an event in time, use `rescheduleCalendarEvent`. Only an event with `editable` true can be changed; any other is rejected with `403` and code `ERR_EVENT_NOT_EDITABLE`. For a recurring event, `scope` `this` changes only the occurrence at `recurrenceId`, `future` ends the series before that occurrence and starts a new one with a new `uuid`, `all` (the default) changes the whole series, keeping the date of its first occurrence. Attendees receive an email update, added attendees an invitation and removed ones a cancellation, unless `notifyAttendees` is false. Returns the changed event, or the changed occurrence for `scope` `this`.
2516
+ * @summary Update calendar event
2517
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2518
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2519
+ * @param {string} eventUuid Event identifier: the &#x60;uuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;. Every occurrence of a recurring event has the same uuid; &#x60;recurrenceId&#x60; picks one occurrence.
2520
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2521
+ * @param {string} [ifMatch] Optional &#x60;etag&#x60; from &#x60;getCalendarEvent&#x60;. When the event changed since that call, nothing is changed and the request fails with &#x60;412&#x60;: fetch the event again and retry. Omit it to apply the request to the current version.
2522
+ * @param {*} [options] Override http request option.
2523
+ * @throws {RequiredError}
2524
+ * @memberof CalendarEventsApi
2525
+ */
2526
+ updateCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarEventsResource, any, {}, any>>;
1214
2527
  }
1215
- export declare const V1WebhooksWebhookWithSecretEventsEnum: {
1216
- readonly MessageReceived: "message.received";
2528
+ /**
2529
+ * @export
2530
+ */
2531
+ export declare const DeleteCalendarEventScopeEnum: {
2532
+ readonly This: "this";
2533
+ readonly Future: "future";
2534
+ readonly All: "all";
1217
2535
  };
1218
- export type V1WebhooksWebhookWithSecretEventsEnum = typeof V1WebhooksWebhookWithSecretEventsEnum[keyof typeof V1WebhooksWebhookWithSecretEventsEnum];
1219
- export declare const V1WebhooksWebhookWithSecretStatusEnum: {
1220
- readonly Active: "active";
1221
- readonly Paused: "paused";
1222
- readonly Disabled: "disabled";
2536
+ export type DeleteCalendarEventScopeEnum = typeof DeleteCalendarEventScopeEnum[keyof typeof DeleteCalendarEventScopeEnum];
2537
+ /**
2538
+ * @export
2539
+ */
2540
+ export declare const DeleteCalendarEventNotifyAttendeesEnum: {
2541
+ readonly True: "true";
2542
+ readonly False: "false";
2543
+ readonly _1: "1";
2544
+ readonly _0: "0";
1223
2545
  };
1224
- export type V1WebhooksWebhookWithSecretStatusEnum = typeof V1WebhooksWebhookWithSecretStatusEnum[keyof typeof V1WebhooksWebhookWithSecretStatusEnum];
2546
+ export type DeleteCalendarEventNotifyAttendeesEnum = typeof DeleteCalendarEventNotifyAttendeesEnum[keyof typeof DeleteCalendarEventNotifyAttendeesEnum];
1225
2547
  /**
1226
- * AccountApi - axios parameter creator
2548
+ * CalendarsApi - axios parameter creator
1227
2549
  * @export
1228
2550
  */
1229
- export declare const AccountApiAxiosParamCreator: (configuration?: Configuration) => {
2551
+ export declare const CalendarsApiAxiosParamCreator: (configuration?: Configuration) => {
1230
2552
  /**
1231
- * Returns the authenticated account and the mailboxes it can manage.
1232
- * @summary Get the authenticated account
2553
+ * Create a calendar owned by the mailbox. The number of calendars a mailbox can own is limited; when the limit is reached the request fails with `400` and code `ERR_CALENDAR_LIMIT_REACHED`.
2554
+ * @summary Create calendar
2555
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2556
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1233
2557
  * @param {*} [options] Override http request option.
1234
2558
  * @throws {RequiredError}
1235
2559
  */
1236
- getCurrentAccount: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2560
+ createCalendar: (mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2561
+ /**
2562
+ * Delete a calendar owned by the mailbox together with all its events, or remove a calendar shared with the mailbox from its list. This cannot be undone. A calendar that cannot be deleted is rejected with `403` and code `ERR_CALENDAR_NOT_DELETABLE`.
2563
+ * @summary Delete calendar
2564
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2565
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2566
+ * @param {*} [options] Override http request option.
2567
+ * @throws {RequiredError}
2568
+ */
2569
+ deleteCalendar: (mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2570
+ /**
2571
+ * Retrieve one calendar of a mailbox: its name, description, color, whether it is the default calendar and whether it is shown in the calendar view. It does not return events; use `listCalendarEvents` for those.
2572
+ * @summary Get calendar
2573
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2574
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2575
+ * @param {*} [options] Override http request option.
2576
+ * @throws {RequiredError}
2577
+ */
2578
+ getCalendar: (mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2579
+ /**
2580
+ * List the calendars of a mailbox: its own calendars and the calendars shared with it, in display order. Call it first to get the `calendarUuid` every calendar event operation needs: the `uuid` of each calendar. The calendar with `default` true is where new events go unless another one is named. `visible` false means the calendar is hidden in the calendar view; its events still exist.
2581
+ * @summary List calendars
2582
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2583
+ * @param {number} [page] Page number (1-based).
2584
+ * @param {number} [perPage] Items per page (max 200).
2585
+ * @param {*} [options] Override http request option.
2586
+ * @throws {RequiredError}
2587
+ */
2588
+ listCalendars: (mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
2589
+ /**
2590
+ * Update the name, description, color and visibility of a calendar. Name, description and color replace the stored values: an omitted `description` is cleared and an omitted `color` resets to the default color. An omitted `visible` keeps the current value.
2591
+ * @summary Update calendar
2592
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2593
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2594
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
2595
+ * @param {*} [options] Override http request option.
2596
+ * @throws {RequiredError}
2597
+ */
2598
+ updateCalendar: (mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
1237
2599
  };
1238
2600
  /**
1239
- * AccountApi - functional programming interface
2601
+ * CalendarsApi - functional programming interface
1240
2602
  * @export
1241
2603
  */
1242
- export declare const AccountApiFp: (configuration?: Configuration) => {
2604
+ export declare const CalendarsApiFp: (configuration?: Configuration) => {
1243
2605
  /**
1244
- * Returns the authenticated account and the mailboxes it can manage.
1245
- * @summary Get the authenticated account
2606
+ * Create a calendar owned by the mailbox. The number of calendars a mailbox can own is limited; when the limit is reached the request fails with `400` and code `ERR_CALENDAR_LIMIT_REACHED`.
2607
+ * @summary Create calendar
2608
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2609
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1246
2610
  * @param {*} [options] Override http request option.
1247
2611
  * @throws {RequiredError}
1248
2612
  */
1249
- getCurrentAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1MeResource>>;
2613
+ createCalendar(mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsResource>>;
2614
+ /**
2615
+ * Delete a calendar owned by the mailbox together with all its events, or remove a calendar shared with the mailbox from its list. This cannot be undone. A calendar that cannot be deleted is rejected with `403` and code `ERR_CALENDAR_NOT_DELETABLE`.
2616
+ * @summary Delete calendar
2617
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2618
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2619
+ * @param {*} [options] Override http request option.
2620
+ * @throws {RequiredError}
2621
+ */
2622
+ deleteCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
2623
+ /**
2624
+ * Retrieve one calendar of a mailbox: its name, description, color, whether it is the default calendar and whether it is shown in the calendar view. It does not return events; use `listCalendarEvents` for those.
2625
+ * @summary Get calendar
2626
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2627
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2628
+ * @param {*} [options] Override http request option.
2629
+ * @throws {RequiredError}
2630
+ */
2631
+ getCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsResource>>;
2632
+ /**
2633
+ * List the calendars of a mailbox: its own calendars and the calendars shared with it, in display order. Call it first to get the `calendarUuid` every calendar event operation needs: the `uuid` of each calendar. The calendar with `default` true is where new events go unless another one is named. `visible` false means the calendar is hidden in the calendar view; its events still exist.
2634
+ * @summary List calendars
2635
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2636
+ * @param {number} [page] Page number (1-based).
2637
+ * @param {number} [perPage] Items per page (max 200).
2638
+ * @param {*} [options] Override http request option.
2639
+ * @throws {RequiredError}
2640
+ */
2641
+ listCalendars(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsCollection>>;
2642
+ /**
2643
+ * Update the name, description, color and visibility of a calendar. Name, description and color replace the stored values: an omitted `description` is cleared and an omitted `color` resets to the default color. An omitted `visible` keeps the current value.
2644
+ * @summary Update calendar
2645
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2646
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2647
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
2648
+ * @param {*} [options] Override http request option.
2649
+ * @throws {RequiredError}
2650
+ */
2651
+ updateCalendar(mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsResource>>;
1250
2652
  };
1251
2653
  /**
1252
- * AccountApi - factory interface
2654
+ * CalendarsApi - factory interface
1253
2655
  * @export
1254
2656
  */
1255
- export declare const AccountApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2657
+ export declare const CalendarsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
1256
2658
  /**
1257
- * Returns the authenticated account and the mailboxes it can manage.
1258
- * @summary Get the authenticated account
2659
+ * Create a calendar owned by the mailbox. The number of calendars a mailbox can own is limited; when the limit is reached the request fails with `400` and code `ERR_CALENDAR_LIMIT_REACHED`.
2660
+ * @summary Create calendar
2661
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2662
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1259
2663
  * @param {*} [options] Override http request option.
1260
2664
  * @throws {RequiredError}
1261
2665
  */
1262
- getCurrentAccount(options?: RawAxiosRequestConfig): AxiosPromise<V1MeResource>;
2666
+ createCalendar(mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsResource>;
2667
+ /**
2668
+ * Delete a calendar owned by the mailbox together with all its events, or remove a calendar shared with the mailbox from its list. This cannot be undone. A calendar that cannot be deleted is rejected with `403` and code `ERR_CALENDAR_NOT_DELETABLE`.
2669
+ * @summary Delete calendar
2670
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2671
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2672
+ * @param {*} [options] Override http request option.
2673
+ * @throws {RequiredError}
2674
+ */
2675
+ deleteCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2676
+ /**
2677
+ * Retrieve one calendar of a mailbox: its name, description, color, whether it is the default calendar and whether it is shown in the calendar view. It does not return events; use `listCalendarEvents` for those.
2678
+ * @summary Get calendar
2679
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2680
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2681
+ * @param {*} [options] Override http request option.
2682
+ * @throws {RequiredError}
2683
+ */
2684
+ getCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsResource>;
2685
+ /**
2686
+ * List the calendars of a mailbox: its own calendars and the calendars shared with it, in display order. Call it first to get the `calendarUuid` every calendar event operation needs: the `uuid` of each calendar. The calendar with `default` true is where new events go unless another one is named. `visible` false means the calendar is hidden in the calendar view; its events still exist.
2687
+ * @summary List calendars
2688
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2689
+ * @param {number} [page] Page number (1-based).
2690
+ * @param {number} [perPage] Items per page (max 200).
2691
+ * @param {*} [options] Override http request option.
2692
+ * @throws {RequiredError}
2693
+ */
2694
+ listCalendars(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsCollection>;
2695
+ /**
2696
+ * Update the name, description, color and visibility of a calendar. Name, description and color replace the stored values: an omitted `description` is cleared and an omitted `color` resets to the default color. An omitted `visible` keeps the current value.
2697
+ * @summary Update calendar
2698
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2699
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2700
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
2701
+ * @param {*} [options] Override http request option.
2702
+ * @throws {RequiredError}
2703
+ */
2704
+ updateCalendar(mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsResource>;
1263
2705
  };
1264
2706
  /**
1265
- * AccountApi - object-oriented interface
2707
+ * CalendarsApi - object-oriented interface
1266
2708
  * @export
1267
- * @class AccountApi
2709
+ * @class CalendarsApi
1268
2710
  * @extends {BaseAPI}
1269
2711
  */
1270
- export declare class AccountApi extends BaseAPI {
2712
+ export declare class CalendarsApi extends BaseAPI {
1271
2713
  /**
1272
- * Returns the authenticated account and the mailboxes it can manage.
1273
- * @summary Get the authenticated account
2714
+ * Create a calendar owned by the mailbox. The number of calendars a mailbox can own is limited; when the limit is reached the request fails with `400` and code `ERR_CALENDAR_LIMIT_REACHED`.
2715
+ * @summary Create calendar
2716
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2717
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1274
2718
  * @param {*} [options] Override http request option.
1275
2719
  * @throws {RequiredError}
1276
- * @memberof AccountApi
2720
+ * @memberof CalendarsApi
1277
2721
  */
1278
- getCurrentAccount(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1MeResource, any, {}, any>>;
2722
+ createCalendar(mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarsResource, any, {}, any>>;
2723
+ /**
2724
+ * Delete a calendar owned by the mailbox together with all its events, or remove a calendar shared with the mailbox from its list. This cannot be undone. A calendar that cannot be deleted is rejected with `403` and code `ERR_CALENDAR_NOT_DELETABLE`.
2725
+ * @summary Delete calendar
2726
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2727
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2728
+ * @param {*} [options] Override http request option.
2729
+ * @throws {RequiredError}
2730
+ * @memberof CalendarsApi
2731
+ */
2732
+ deleteCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
2733
+ /**
2734
+ * Retrieve one calendar of a mailbox: its name, description, color, whether it is the default calendar and whether it is shown in the calendar view. It does not return events; use `listCalendarEvents` for those.
2735
+ * @summary Get calendar
2736
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2737
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2738
+ * @param {*} [options] Override http request option.
2739
+ * @throws {RequiredError}
2740
+ * @memberof CalendarsApi
2741
+ */
2742
+ getCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarsResource, any, {}, any>>;
2743
+ /**
2744
+ * List the calendars of a mailbox: its own calendars and the calendars shared with it, in display order. Call it first to get the `calendarUuid` every calendar event operation needs: the `uuid` of each calendar. The calendar with `default` true is where new events go unless another one is named. `visible` false means the calendar is hidden in the calendar view; its events still exist.
2745
+ * @summary List calendars
2746
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2747
+ * @param {number} [page] Page number (1-based).
2748
+ * @param {number} [perPage] Items per page (max 200).
2749
+ * @param {*} [options] Override http request option.
2750
+ * @throws {RequiredError}
2751
+ * @memberof CalendarsApi
2752
+ */
2753
+ listCalendars(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarsCollection, any, {}, any>>;
2754
+ /**
2755
+ * Update the name, description, color and visibility of a calendar. Name, description and color replace the stored values: an omitted `description` is cleared and an omitted `color` resets to the default color. An omitted `visible` keeps the current value.
2756
+ * @summary Update calendar
2757
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2758
+ * @param {string} calendarUuid Calendar identifier: the &#x60;uuid&#x60; of a calendar returned by &#x60;listCalendars&#x60;, or the &#x60;calendarUuid&#x60; of an event returned by &#x60;listCalendarEvents&#x60;.
2759
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
2760
+ * @param {*} [options] Override http request option.
2761
+ * @throws {RequiredError}
2762
+ * @memberof CalendarsApi
2763
+ */
2764
+ updateCalendar(mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<V1CalendarsResource, any, {}, any>>;
1279
2765
  }
1280
2766
  /**
1281
2767
  * FeedbackApi - axios parameter creator
@@ -2174,7 +3660,7 @@ export declare class QuotaApi extends BaseAPI {
2174
3660
  */
2175
3661
  export declare const SendApiAxiosParamCreator: (configuration?: Configuration) => {
2176
3662
  /**
2177
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
3663
+ * Send a message from the managed mailbox. The message is accepted for delivery and dispatched within a few seconds; a copy is saved to INBOX.Sent once it is sent. A delivery failure after acceptance is not reported on this call.
2178
3664
  * @summary Send email
2179
3665
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2180
3666
  * @param {V1SendRequest} v1SendRequest
@@ -2189,7 +3675,7 @@ export declare const SendApiAxiosParamCreator: (configuration?: Configuration) =
2189
3675
  */
2190
3676
  export declare const SendApiFp: (configuration?: Configuration) => {
2191
3677
  /**
2192
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
3678
+ * Send a message from the managed mailbox. The message is accepted for delivery and dispatched within a few seconds; a copy is saved to INBOX.Sent once it is sent. A delivery failure after acceptance is not reported on this call.
2193
3679
  * @summary Send email
2194
3680
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2195
3681
  * @param {V1SendRequest} v1SendRequest
@@ -2204,7 +3690,7 @@ export declare const SendApiFp: (configuration?: Configuration) => {
2204
3690
  */
2205
3691
  export declare const SendApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
2206
3692
  /**
2207
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
3693
+ * Send a message from the managed mailbox. The message is accepted for delivery and dispatched within a few seconds; a copy is saved to INBOX.Sent once it is sent. A delivery failure after acceptance is not reported on this call.
2208
3694
  * @summary Send email
2209
3695
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2210
3696
  * @param {V1SendRequest} v1SendRequest
@@ -2221,7 +3707,7 @@ export declare const SendApiFactory: (configuration?: Configuration, basePath?:
2221
3707
  */
2222
3708
  export declare class SendApi extends BaseAPI {
2223
3709
  /**
2224
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
3710
+ * Send a message from the managed mailbox. The message is accepted for delivery and dispatched within a few seconds; a copy is saved to INBOX.Sent once it is sent. A delivery failure after acceptance is not reported on this call.
2225
3711
  * @summary Send email
2226
3712
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2227
3713
  * @param {V1SendRequest} v1SendRequest