hostinger-mail-api-sdk 1.19.8 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.github/workflows/build-release.yaml +58 -35
  2. package/README.md +2 -2
  3. package/api.ts +2905 -760
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2206 -720
  8. package/dist/api.js +1249 -6
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +2206 -720
  16. package/dist/esm/api.js +1239 -5
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/CalendarEventsApi.md +505 -0
  28. package/docs/CalendarsApi.md +317 -0
  29. package/docs/MessagesApi.md +3 -0
  30. package/docs/SendApi.md +2 -2
  31. package/docs/V1CalendarEventsAttendee.md +25 -0
  32. package/docs/V1CalendarEventsAttendeeInput.md +23 -0
  33. package/docs/V1CalendarEventsCollection.md +23 -0
  34. package/docs/V1CalendarEventsCollectionMeta.md +20 -0
  35. package/docs/V1CalendarEventsCreateRequest.md +43 -0
  36. package/docs/V1CalendarEventsEvent.md +61 -0
  37. package/docs/V1CalendarEventsEventListItem.md +43 -0
  38. package/docs/V1CalendarEventsOrganizer.md +23 -0
  39. package/docs/V1CalendarEventsRecurrenceDay.md +23 -0
  40. package/docs/V1CalendarEventsRecurrenceRule.md +35 -0
  41. package/docs/V1CalendarEventsReminder.md +23 -0
  42. package/docs/V1CalendarEventsReplyRequest.md +23 -0
  43. package/docs/V1CalendarEventsRescheduleRequest.md +33 -0
  44. package/docs/V1CalendarEventsResource.md +21 -0
  45. package/docs/V1CalendarEventsUpdateRequest.md +49 -0
  46. package/docs/V1CalendarsCalendar.md +31 -0
  47. package/docs/V1CalendarsCollection.md +23 -0
  48. package/docs/V1CalendarsCreateRequest.md +27 -0
  49. package/docs/V1CalendarsResource.md +21 -0
  50. package/docs/V1CalendarsUpdateRequest.md +27 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
package/api.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger Mail API
5
5
  *
6
- * API Version: 1.3.0
6
+ * API Version: 1.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -77,1190 +77,3172 @@ export interface Pagination {
77
77
  'totalPages': number;
78
78
  }
79
79
  /**
80
- * 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.
80
+ * Attendee of an event with their answer to the invitation.
81
81
  * @export
82
- * @interface V1FeedbackSubmitRequest
82
+ * @interface V1CalendarEventsAttendee
83
83
  */
84
- export interface V1FeedbackSubmitRequest {
84
+ export interface V1CalendarEventsAttendee {
85
85
  /**
86
- * The user\'s rating of the Hostinger Email API: 1 (poor) to 10 (excellent).
87
- * @type {number}
88
- * @memberof V1FeedbackSubmitRequest
86
+ *
87
+ * @type {string}
88
+ * @memberof V1CalendarEventsAttendee
89
89
  */
90
- 'score': number;
90
+ 'name': string | null;
91
91
  /**
92
- * The user\'s feedback in their own words. Never include tokens, passwords or email contents.
92
+ *
93
93
  * @type {string}
94
- * @memberof V1FeedbackSubmitRequest
94
+ * @memberof V1CalendarEventsAttendee
95
95
  */
96
- 'message': string;
96
+ 'email': string;
97
+ /**
98
+ * Answer of the attendee. NEEDS-ACTION means no answer yet.
99
+ * @type {string}
100
+ * @memberof V1CalendarEventsAttendee
101
+ */
102
+ 'participationStatus': V1CalendarEventsAttendeeParticipationStatusEnum;
97
103
  }
104
+
105
+ export const V1CalendarEventsAttendeeParticipationStatusEnum = {
106
+ NeedsAction: 'NEEDS-ACTION',
107
+ Accepted: 'ACCEPTED',
108
+ Declined: 'DECLINED',
109
+ Tentative: 'TENTATIVE',
110
+ Delegated: 'DELEGATED'
111
+ } as const;
112
+
113
+ export type V1CalendarEventsAttendeeParticipationStatusEnum = typeof V1CalendarEventsAttendeeParticipationStatusEnum[keyof typeof V1CalendarEventsAttendeeParticipationStatusEnum];
114
+
98
115
  /**
99
- * Paginated list of messages.
116
+ * Person to invite to an event.
100
117
  * @export
101
- * @interface V1FolderMessagesCollection
118
+ * @interface V1CalendarEventsAttendeeInput
102
119
  */
103
- export interface V1FolderMessagesCollection {
120
+ export interface V1CalendarEventsAttendeeInput {
121
+ /**
122
+ * Display name of the attendee, null when unknown.
123
+ * @type {string}
124
+ * @memberof V1CalendarEventsAttendeeInput
125
+ */
126
+ 'name': string | null;
127
+ /**
128
+ * Email address of the attendee.
129
+ * @type {string}
130
+ * @memberof V1CalendarEventsAttendeeInput
131
+ */
132
+ 'email': string;
133
+ }
134
+ /**
135
+ * Calendar events overlapping the requested time range. Not paginated.
136
+ * @export
137
+ * @interface V1CalendarEventsCollection
138
+ */
139
+ export interface V1CalendarEventsCollection {
104
140
  /**
105
141
  *
106
- * @type {Array<V1FolderMessagesMessage>}
107
- * @memberof V1FolderMessagesCollection
142
+ * @type {Array<V1CalendarEventsEventListItem>}
143
+ * @memberof V1CalendarEventsCollection
108
144
  */
109
- 'data': Array<V1FolderMessagesMessage>;
145
+ 'data': Array<V1CalendarEventsEventListItem>;
110
146
  /**
111
147
  *
112
- * @type {Pagination}
113
- * @memberof V1FolderMessagesCollection
148
+ * @type {V1CalendarEventsCollectionMeta}
149
+ * @memberof V1CalendarEventsCollection
114
150
  */
115
- 'pagination': Pagination;
151
+ 'meta': V1CalendarEventsCollectionMeta;
116
152
  }
117
153
  /**
118
- * Body for permanently deleting multiple messages.
154
+ *
119
155
  * @export
120
- * @interface V1FolderMessagesDeleteBulkRequest
156
+ * @interface V1CalendarEventsCollectionMeta
121
157
  */
122
- export interface V1FolderMessagesDeleteBulkRequest {
158
+ export interface V1CalendarEventsCollectionMeta {
123
159
  /**
124
- * Message UIDs to delete. 1-100 entries, each > 0.
125
- * @type {Array<number>}
126
- * @memberof V1FolderMessagesDeleteBulkRequest
160
+ * Whether some events were left out because the calendar holds too many to list in one request.
161
+ * @type {boolean}
162
+ * @memberof V1CalendarEventsCollectionMeta
127
163
  */
128
- 'uids': Array<number>;
164
+ 'truncated': boolean;
129
165
  }
130
166
  /**
131
- * Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
167
+ * Body for creating a calendar event.
132
168
  * @export
133
- * @interface V1FolderMessagesFlagsBulkRequest
169
+ * @interface V1CalendarEventsCreateRequest
134
170
  */
135
- export interface V1FolderMessagesFlagsBulkRequest {
171
+ export interface V1CalendarEventsCreateRequest {
136
172
  /**
137
- * Message UIDs to update. 1-100 entries, each > 0.
138
- * @type {Array<number>}
139
- * @memberof V1FolderMessagesFlagsBulkRequest
173
+ * Title of the event.
174
+ * @type {string}
175
+ * @memberof V1CalendarEventsCreateRequest
140
176
  */
141
- 'uids': Array<number>;
177
+ 'title': string;
142
178
  /**
143
- * IMAP flags to set on every listed message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
144
- * @type {Array<string>}
145
- * @memberof V1FolderMessagesFlagsBulkRequest
179
+ * 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).
180
+ * @type {string}
181
+ * @memberof V1CalendarEventsCreateRequest
146
182
  */
147
- 'addFlags': Array<string>;
183
+ 'start': string;
148
184
  /**
149
- * IMAP flags to clear from every listed message.
150
- * @type {Array<string>}
151
- * @memberof V1FolderMessagesFlagsBulkRequest
185
+ * 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.
186
+ * @type {string}
187
+ * @memberof V1CalendarEventsCreateRequest
152
188
  */
153
- 'removeFlags': Array<string>;
154
- }
155
- /**
156
- * Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
157
- * @export
158
- * @interface V1FolderMessagesFlagsRequest
159
- */
160
- export interface V1FolderMessagesFlagsRequest {
189
+ 'end': string | null;
161
190
  /**
162
- * IMAP flags to set on the message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
163
- * @type {Array<string>}
164
- * @memberof V1FolderMessagesFlagsRequest
191
+ * `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day.
192
+ * @type {boolean}
193
+ * @memberof V1CalendarEventsCreateRequest
165
194
  */
166
- 'addFlags': Array<string>;
195
+ 'allDay': boolean;
167
196
  /**
168
- * IMAP flags to clear from the message.
169
- * @type {Array<string>}
170
- * @memberof V1FolderMessagesFlagsRequest
197
+ * IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true.
198
+ * @type {string}
199
+ * @memberof V1CalendarEventsCreateRequest
171
200
  */
172
- 'removeFlags': Array<string>;
201
+ 'timeZone': string | null;
202
+ /**
203
+ * Notes of the event. Omitted or null for none.
204
+ * @type {string}
205
+ * @memberof V1CalendarEventsCreateRequest
206
+ */
207
+ 'description': string | null;
208
+ /**
209
+ * Place of the event. Omitted or null for none.
210
+ * @type {string}
211
+ * @memberof V1CalendarEventsCreateRequest
212
+ */
213
+ 'location': string | null;
214
+ /**
215
+ * http or https URL of the online meeting. Omitted or null for none.
216
+ * @type {string}
217
+ * @memberof V1CalendarEventsCreateRequest
218
+ */
219
+ 'meetingLink': string | null;
220
+ /**
221
+ * Color of the event as #RRGGBB or #RRGGBBAA. Omitted or null uses the calendar color.
222
+ * @type {string}
223
+ * @memberof V1CalendarEventsCreateRequest
224
+ */
225
+ 'color': string | null;
226
+ /**
227
+ * 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.
228
+ * @type {V1CalendarEventsRecurrenceRule}
229
+ * @memberof V1CalendarEventsCreateRequest
230
+ */
231
+ 'recurrenceRule': V1CalendarEventsRecurrenceRule | null;
232
+ /**
233
+ * Alarm before the start: `value` 0 to 1000 and `unit`. Omitted or null for none.
234
+ * @type {V1CalendarEventsReminder}
235
+ * @memberof V1CalendarEventsCreateRequest
236
+ */
237
+ 'reminder': V1CalendarEventsReminder | null;
238
+ /**
239
+ * 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.
240
+ * @type {Array<V1CalendarEventsAttendeeInput>}
241
+ * @memberof V1CalendarEventsCreateRequest
242
+ */
243
+ 'attendees': Array<V1CalendarEventsAttendeeInput> | null;
173
244
  }
174
245
  /**
175
- * A message in a folder of the managed mailbox.
246
+ * 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.
176
247
  * @export
177
- * @interface V1FolderMessagesMessage
248
+ * @interface V1CalendarEventsEvent
178
249
  */
179
- export interface V1FolderMessagesMessage {
250
+ export interface V1CalendarEventsEvent {
180
251
  /**
181
- *
182
- * @type {number}
183
- * @memberof V1FolderMessagesMessage
252
+ * Event identifier, the `eventUuid` of the calendar event endpoints. Every occurrence of a recurring event has the same uuid.
253
+ * @type {string}
254
+ * @memberof V1CalendarEventsEvent
184
255
  */
185
- 'uid': number;
256
+ 'uuid': string;
186
257
  /**
187
- *
258
+ * Identifier of the calendar the event is stored in.
188
259
  * @type {string}
189
- * @memberof V1FolderMessagesMessage
260
+ * @memberof V1CalendarEventsEvent
190
261
  */
191
- 'path': string;
262
+ 'calendarUuid': string;
192
263
  /**
193
- *
264
+ * Identifies one occurrence of a recurring event. Null for a one-off event or for the series itself.
194
265
  * @type {string}
195
- * @memberof V1FolderMessagesMessage
266
+ * @memberof V1CalendarEventsEvent
196
267
  */
197
- 'date': string;
268
+ 'recurrenceId': string | null;
198
269
  /**
199
270
  *
200
- * @type {Array<string>}
201
- * @memberof V1FolderMessagesMessage
271
+ * @type {string}
272
+ * @memberof V1CalendarEventsEvent
202
273
  */
203
- 'flags': Array<string>;
274
+ 'title': string;
275
+ /**
276
+ * 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).
277
+ * @type {string}
278
+ * @memberof V1CalendarEventsEvent
279
+ */
280
+ 'start': string;
281
+ /**
282
+ * 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).
283
+ * @type {string}
284
+ * @memberof V1CalendarEventsEvent
285
+ */
286
+ 'end': string;
204
287
  /**
205
288
  *
206
289
  * @type {boolean}
207
- * @memberof V1FolderMessagesMessage
290
+ * @memberof V1CalendarEventsEvent
208
291
  */
209
- 'unseen': boolean;
292
+ 'allDay': boolean;
210
293
  /**
211
- *
212
- * @type {number}
213
- * @memberof V1FolderMessagesMessage
294
+ * IANA time zone the event is stored in. Null when it has none.
295
+ * @type {string}
296
+ * @memberof V1CalendarEventsEvent
214
297
  */
215
- 'size': number;
298
+ 'timeZone': string | null;
216
299
  /**
217
- *
300
+ * Whether `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent` can change the event.
301
+ * @type {boolean}
302
+ * @memberof V1CalendarEventsEvent
303
+ */
304
+ 'editable': boolean;
305
+ /**
306
+ * Color of the event. The calendar color when the event has none or is an invitation from someone else.
218
307
  * @type {string}
219
- * @memberof V1FolderMessagesMessage
308
+ * @memberof V1CalendarEventsEvent
220
309
  */
221
- 'subject': string | null;
310
+ 'color': string | null;
222
311
  /**
223
- *
224
- * @type {V1FolderMessagesMessageAddress}
225
- * @memberof V1FolderMessagesMessage
312
+ * Answer of the mailbox to an invitation from someone else. Null for its own events.
313
+ * @type {string}
314
+ * @memberof V1CalendarEventsEvent
226
315
  */
227
- 'from': V1FolderMessagesMessageAddress | null;
316
+ 'participationStatus': V1CalendarEventsEventParticipationStatusEnum | null;
228
317
  /**
229
- *
230
- * @type {Array<V1FolderMessagesMessageAddress>}
231
- * @memberof V1FolderMessagesMessage
318
+ * CANCELLED when the organizer cancelled the event, CONFIRMED otherwise.
319
+ * @type {string}
320
+ * @memberof V1CalendarEventsEvent
232
321
  */
233
- 'to': Array<V1FolderMessagesMessageAddress>;
322
+ 'status': V1CalendarEventsEventStatusEnum;
234
323
  /**
235
- *
236
- * @type {Array<V1FolderMessagesMessageAddress>}
237
- * @memberof V1FolderMessagesMessage
324
+ * Version of the event. Send it as `If-Match` on a write to fail instead of overwriting a newer version.
325
+ * @type {string}
326
+ * @memberof V1CalendarEventsEvent
238
327
  */
239
- 'cc': Array<V1FolderMessagesMessageAddress>;
328
+ 'etag': string;
329
+ /**
330
+ * Whether the mailbox is invited by someone else and the event is not cancelled, so `replyToCalendarEvent` can answer it.
331
+ * @type {boolean}
332
+ * @memberof V1CalendarEventsEvent
333
+ */
334
+ 'replyable': boolean;
240
335
  /**
241
336
  *
242
- * @type {Array<V1FolderMessagesMessageAddress>}
243
- * @memberof V1FolderMessagesMessage
337
+ * @type {string}
338
+ * @memberof V1CalendarEventsEvent
244
339
  */
245
- 'bcc': Array<V1FolderMessagesMessageAddress>;
340
+ 'description': string | null;
246
341
  /**
247
342
  *
248
343
  * @type {string}
249
- * @memberof V1FolderMessagesMessage
344
+ * @memberof V1CalendarEventsEvent
250
345
  */
251
- 'messageId': string | null;
346
+ 'location': string | null;
252
347
  /**
253
348
  *
254
349
  * @type {string}
255
- * @memberof V1FolderMessagesMessage
350
+ * @memberof V1CalendarEventsEvent
256
351
  */
257
- 'inReplyTo': string | null;
352
+ 'meetingLink': string | null;
353
+ /**
354
+ * How the event repeats. Null for a one-off event.
355
+ * @type {V1CalendarEventsRecurrenceRule}
356
+ * @memberof V1CalendarEventsEvent
357
+ */
358
+ 'recurrenceRule': V1CalendarEventsRecurrenceRule | null;
359
+ /**
360
+ * Alarm before the start. Null for none.
361
+ * @type {V1CalendarEventsReminder}
362
+ * @memberof V1CalendarEventsEvent
363
+ */
364
+ 'reminder': V1CalendarEventsReminder | null;
365
+ /**
366
+ * Who organizes the event. Null when the event has no organizer.
367
+ * @type {V1CalendarEventsOrganizer}
368
+ * @memberof V1CalendarEventsEvent
369
+ */
370
+ 'organizer': V1CalendarEventsOrganizer | null;
258
371
  /**
259
372
  *
260
- * @type {Array<V1FolderMessagesMessageAttachment>}
261
- * @memberof V1FolderMessagesMessage
373
+ * @type {Array<V1CalendarEventsAttendee>}
374
+ * @memberof V1CalendarEventsEvent
262
375
  */
263
- 'attachments': Array<V1FolderMessagesMessageAttachment>;
376
+ 'attendees': Array<V1CalendarEventsAttendee>;
264
377
  }
378
+
379
+ export const V1CalendarEventsEventParticipationStatusEnum = {
380
+ NeedsAction: 'NEEDS-ACTION',
381
+ Accepted: 'ACCEPTED',
382
+ Declined: 'DECLINED',
383
+ Tentative: 'TENTATIVE',
384
+ Delegated: 'DELEGATED'
385
+ } as const;
386
+
387
+ export type V1CalendarEventsEventParticipationStatusEnum = typeof V1CalendarEventsEventParticipationStatusEnum[keyof typeof V1CalendarEventsEventParticipationStatusEnum];
388
+ export const V1CalendarEventsEventStatusEnum = {
389
+ Confirmed: 'CONFIRMED',
390
+ Cancelled: 'CANCELLED'
391
+ } as const;
392
+
393
+ export type V1CalendarEventsEventStatusEnum = typeof V1CalendarEventsEventStatusEnum[keyof typeof V1CalendarEventsEventStatusEnum];
394
+
265
395
  /**
266
- * A single email address with optional display name.
396
+ * Summary of one calendar event or of one occurrence of a recurring event.
267
397
  * @export
268
- * @interface V1FolderMessagesMessageAddress
398
+ * @interface V1CalendarEventsEventListItem
269
399
  */
270
- export interface V1FolderMessagesMessageAddress {
400
+ export interface V1CalendarEventsEventListItem {
271
401
  /**
272
- *
402
+ * Event identifier, the `eventUuid` of the calendar event endpoints. Every occurrence of a recurring event has the same uuid.
273
403
  * @type {string}
274
- * @memberof V1FolderMessagesMessageAddress
404
+ * @memberof V1CalendarEventsEventListItem
275
405
  */
276
- 'name': string;
406
+ 'uuid': string;
277
407
  /**
278
- *
408
+ * Identifier of the calendar the event is stored in.
279
409
  * @type {string}
280
- * @memberof V1FolderMessagesMessageAddress
410
+ * @memberof V1CalendarEventsEventListItem
281
411
  */
282
- 'address': string;
283
- }
284
- /**
285
- * Attachment metadata attached to a message.
286
- * @export
287
- * @interface V1FolderMessagesMessageAttachment
288
- */
289
- export interface V1FolderMessagesMessageAttachment {
412
+ 'calendarUuid': string;
290
413
  /**
291
- * Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint.
414
+ * Identifies one occurrence of a recurring event. Null for a one-off event or for the series itself.
292
415
  * @type {string}
293
- * @memberof V1FolderMessagesMessageAttachment
416
+ * @memberof V1CalendarEventsEventListItem
294
417
  */
295
- 'id': string;
418
+ 'recurrenceId': string | null;
296
419
  /**
297
420
  *
298
421
  * @type {string}
299
- * @memberof V1FolderMessagesMessageAttachment
422
+ * @memberof V1CalendarEventsEventListItem
300
423
  */
301
- 'contentType': string;
424
+ 'title': string;
302
425
  /**
303
- *
304
- * @type {number}
305
- * @memberof V1FolderMessagesMessageAttachment
426
+ * 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).
427
+ * @type {string}
428
+ * @memberof V1CalendarEventsEventListItem
306
429
  */
307
- 'sizeBytes': number;
430
+ 'start': string;
431
+ /**
432
+ * 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).
433
+ * @type {string}
434
+ * @memberof V1CalendarEventsEventListItem
435
+ */
436
+ 'end': string;
308
437
  /**
309
438
  *
310
439
  * @type {boolean}
311
- * @memberof V1FolderMessagesMessageAttachment
440
+ * @memberof V1CalendarEventsEventListItem
312
441
  */
313
- 'inline': boolean;
442
+ 'allDay': boolean;
314
443
  /**
315
- *
444
+ * IANA time zone the event is stored in. Null when it has none.
316
445
  * @type {string}
317
- * @memberof V1FolderMessagesMessageAttachment
446
+ * @memberof V1CalendarEventsEventListItem
318
447
  */
319
- 'filename': string | null;
448
+ 'timeZone': string | null;
320
449
  /**
321
- *
450
+ * Whether `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent` can change the event.
451
+ * @type {boolean}
452
+ * @memberof V1CalendarEventsEventListItem
453
+ */
454
+ 'editable': boolean;
455
+ /**
456
+ * Color of the event. The calendar color when the event has none or is an invitation from someone else.
322
457
  * @type {string}
323
- * @memberof V1FolderMessagesMessageAttachment
458
+ * @memberof V1CalendarEventsEventListItem
324
459
  */
325
- 'contentId': string | null;
460
+ 'color': string | null;
461
+ /**
462
+ * Answer of the mailbox to an invitation from someone else. Null for its own events.
463
+ * @type {string}
464
+ * @memberof V1CalendarEventsEventListItem
465
+ */
466
+ 'participationStatus': V1CalendarEventsEventListItemParticipationStatusEnum | null;
467
+ /**
468
+ * CANCELLED when the organizer cancelled the event, CONFIRMED otherwise.
469
+ * @type {string}
470
+ * @memberof V1CalendarEventsEventListItem
471
+ */
472
+ 'status': V1CalendarEventsEventListItemStatusEnum;
326
473
  }
474
+
475
+ export const V1CalendarEventsEventListItemParticipationStatusEnum = {
476
+ NeedsAction: 'NEEDS-ACTION',
477
+ Accepted: 'ACCEPTED',
478
+ Declined: 'DECLINED',
479
+ Tentative: 'TENTATIVE',
480
+ Delegated: 'DELEGATED'
481
+ } as const;
482
+
483
+ export type V1CalendarEventsEventListItemParticipationStatusEnum = typeof V1CalendarEventsEventListItemParticipationStatusEnum[keyof typeof V1CalendarEventsEventListItemParticipationStatusEnum];
484
+ export const V1CalendarEventsEventListItemStatusEnum = {
485
+ Confirmed: 'CONFIRMED',
486
+ Cancelled: 'CANCELLED'
487
+ } as const;
488
+
489
+ export type V1CalendarEventsEventListItemStatusEnum = typeof V1CalendarEventsEventListItemStatusEnum[keyof typeof V1CalendarEventsEventListItemStatusEnum];
490
+
327
491
  /**
328
- * Rendered text and HTML parts of a message.
492
+ * Organizer of an event.
329
493
  * @export
330
- * @interface V1FolderMessagesMessageText
494
+ * @interface V1CalendarEventsOrganizer
331
495
  */
332
- export interface V1FolderMessagesMessageText {
496
+ export interface V1CalendarEventsOrganizer {
333
497
  /**
334
498
  *
335
499
  * @type {string}
336
- * @memberof V1FolderMessagesMessageText
500
+ * @memberof V1CalendarEventsOrganizer
337
501
  */
338
- 'text': string;
502
+ 'name': string | null;
339
503
  /**
340
504
  *
341
505
  * @type {string}
342
- * @memberof V1FolderMessagesMessageText
506
+ * @memberof V1CalendarEventsOrganizer
343
507
  */
344
- 'html': string;
508
+ 'email': string;
345
509
  }
346
510
  /**
347
- * Single message text payload.
511
+ * One weekday of a recurrence rule.
348
512
  * @export
349
- * @interface V1FolderMessagesMessageTextResource
513
+ * @interface V1CalendarEventsRecurrenceDay
350
514
  */
351
- export interface V1FolderMessagesMessageTextResource {
515
+ export interface V1CalendarEventsRecurrenceDay {
352
516
  /**
353
517
  *
354
- * @type {V1FolderMessagesMessageText}
355
- * @memberof V1FolderMessagesMessageTextResource
518
+ * @type {string}
519
+ * @memberof V1CalendarEventsRecurrenceDay
356
520
  */
357
- 'data': V1FolderMessagesMessageText;
521
+ 'day': V1CalendarEventsRecurrenceDayDayEnum;
522
+ /**
523
+ * 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.
524
+ * @type {number}
525
+ * @memberof V1CalendarEventsRecurrenceDay
526
+ */
527
+ 'position': number | null;
358
528
  }
529
+
530
+ export const V1CalendarEventsRecurrenceDayDayEnum = {
531
+ Monday: 'monday',
532
+ Tuesday: 'tuesday',
533
+ Wednesday: 'wednesday',
534
+ Thursday: 'thursday',
535
+ Friday: 'friday',
536
+ Saturday: 'saturday',
537
+ Sunday: 'sunday'
538
+ } as const;
539
+
540
+ export type V1CalendarEventsRecurrenceDayDayEnum = typeof V1CalendarEventsRecurrenceDayDayEnum[keyof typeof V1CalendarEventsRecurrenceDayDayEnum];
541
+
359
542
  /**
360
- * Body for moving multiple messages to a target folder.
543
+ * How an event repeats. Every field is always present, null when unused.
361
544
  * @export
362
- * @interface V1FolderMessagesMoveBulkRequest
545
+ * @interface V1CalendarEventsRecurrenceRule
363
546
  */
364
- export interface V1FolderMessagesMoveBulkRequest {
547
+ export interface V1CalendarEventsRecurrenceRule {
365
548
  /**
366
- * Message UIDs to move. 1-100 entries, each > 0.
549
+ * 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.
550
+ * @type {string}
551
+ * @memberof V1CalendarEventsRecurrenceRule
552
+ */
553
+ 'frequency': V1CalendarEventsRecurrenceRuleFrequencyEnum;
554
+ /**
555
+ * Repeat every this many units of `frequency`. 1 to 1000 when writing.
556
+ * @type {number}
557
+ * @memberof V1CalendarEventsRecurrenceRule
558
+ */
559
+ 'interval': number;
560
+ /**
561
+ * Weekdays the event repeats on. Null when unused.
562
+ * @type {Array<V1CalendarEventsRecurrenceDay>}
563
+ * @memberof V1CalendarEventsRecurrenceRule
564
+ */
565
+ 'byDay': Array<V1CalendarEventsRecurrenceDay> | null;
566
+ /**
567
+ * 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.
367
568
  * @type {Array<number>}
368
- * @memberof V1FolderMessagesMoveBulkRequest
569
+ * @memberof V1CalendarEventsRecurrenceRule
369
570
  */
370
- 'uids': Array<number>;
571
+ 'byMonthDay': Array<number> | null;
371
572
  /**
372
- * Destination folder path.
573
+ * Months, 1 is January. Null when unused.
574
+ * @type {Array<number>}
575
+ * @memberof V1CalendarEventsRecurrenceRule
576
+ */
577
+ 'byMonth': Array<number> | null;
578
+ /**
579
+ * Number of occurrences after which the series ends, at most 1000 when writing. Never set together with `until`.
580
+ * @type {number}
581
+ * @memberof V1CalendarEventsRecurrenceRule
582
+ */
583
+ 'count': number | null;
584
+ /**
585
+ * Moment after which the series ends, not before the start of the event. Never set together with `count`.
373
586
  * @type {string}
374
- * @memberof V1FolderMessagesMoveBulkRequest
587
+ * @memberof V1CalendarEventsRecurrenceRule
375
588
  */
376
- 'targetFolder': string;
589
+ 'until': string | null;
590
+ /**
591
+ * First day of the week used by the rule. Null when not set.
592
+ * @type {string}
593
+ * @memberof V1CalendarEventsRecurrenceRule
594
+ */
595
+ 'weekStart': V1CalendarEventsRecurrenceRuleWeekStartEnum | null;
377
596
  }
597
+
598
+ export const V1CalendarEventsRecurrenceRuleFrequencyEnum = {
599
+ Secondly: 'SECONDLY',
600
+ Minutely: 'MINUTELY',
601
+ Hourly: 'HOURLY',
602
+ Daily: 'DAILY',
603
+ Weekly: 'WEEKLY',
604
+ Monthly: 'MONTHLY',
605
+ Yearly: 'YEARLY'
606
+ } as const;
607
+
608
+ export type V1CalendarEventsRecurrenceRuleFrequencyEnum = typeof V1CalendarEventsRecurrenceRuleFrequencyEnum[keyof typeof V1CalendarEventsRecurrenceRuleFrequencyEnum];
609
+ export const V1CalendarEventsRecurrenceRuleWeekStartEnum = {
610
+ Monday: 'monday',
611
+ Tuesday: 'tuesday',
612
+ Wednesday: 'wednesday',
613
+ Thursday: 'thursday',
614
+ Friday: 'friday',
615
+ Saturday: 'saturday',
616
+ Sunday: 'sunday'
617
+ } as const;
618
+
619
+ export type V1CalendarEventsRecurrenceRuleWeekStartEnum = typeof V1CalendarEventsRecurrenceRuleWeekStartEnum[keyof typeof V1CalendarEventsRecurrenceRuleWeekStartEnum];
620
+
378
621
  /**
379
- * Body for moving a single message to a target folder.
622
+ * Alarm of an event: how long before the start it fires.
380
623
  * @export
381
- * @interface V1FolderMessagesMoveRequest
624
+ * @interface V1CalendarEventsReminder
382
625
  */
383
- export interface V1FolderMessagesMoveRequest {
626
+ export interface V1CalendarEventsReminder {
384
627
  /**
385
- * Destination folder path.
628
+ * How many units before the start. 0 is at the start time. At most 1000 when writing.
629
+ * @type {number}
630
+ * @memberof V1CalendarEventsReminder
631
+ */
632
+ 'value': number;
633
+ /**
634
+ *
386
635
  * @type {string}
387
- * @memberof V1FolderMessagesMoveRequest
636
+ * @memberof V1CalendarEventsReminder
388
637
  */
389
- 'targetFolder': string;
638
+ 'unit': V1CalendarEventsReminderUnitEnum;
390
639
  }
640
+
641
+ export const V1CalendarEventsReminderUnitEnum = {
642
+ Minutes: 'minutes',
643
+ Hours: 'hours',
644
+ Days: 'days',
645
+ Weeks: 'weeks'
646
+ } as const;
647
+
648
+ export type V1CalendarEventsReminderUnitEnum = typeof V1CalendarEventsReminderUnitEnum[keyof typeof V1CalendarEventsReminderUnitEnum];
649
+
391
650
  /**
392
- * Single message payload.
651
+ * Body for answering an invitation.
393
652
  * @export
394
- * @interface V1FolderMessagesResource
653
+ * @interface V1CalendarEventsReplyRequest
395
654
  */
396
- export interface V1FolderMessagesResource {
655
+ export interface V1CalendarEventsReplyRequest {
397
656
  /**
398
- *
399
- * @type {V1FolderMessagesMessage}
400
- * @memberof V1FolderMessagesResource
657
+ * The answer to the invitation.
658
+ * @type {string}
659
+ * @memberof V1CalendarEventsReplyRequest
401
660
  */
402
- 'data': V1FolderMessagesMessage;
661
+ 'participationStatus': V1CalendarEventsReplyRequestParticipationStatusEnum;
662
+ /**
663
+ * `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item, to answer only that occurrence. Omitted or null answers the whole event.
664
+ * @type {string}
665
+ * @memberof V1CalendarEventsReplyRequest
666
+ */
667
+ 'recurrenceId': string | null;
403
668
  }
669
+
670
+ export const V1CalendarEventsReplyRequestParticipationStatusEnum = {
671
+ Accepted: 'ACCEPTED',
672
+ Declined: 'DECLINED',
673
+ Tentative: 'TENTATIVE'
674
+ } as const;
675
+
676
+ export type V1CalendarEventsReplyRequestParticipationStatusEnum = typeof V1CalendarEventsReplyRequestParticipationStatusEnum[keyof typeof V1CalendarEventsReplyRequestParticipationStatusEnum];
677
+
404
678
  /**
405
- * 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.
679
+ * Body for moving a calendar event to another time or changing its length.
406
680
  * @export
407
- * @interface V1FolderMessagesSearchRequest
681
+ * @interface V1CalendarEventsRescheduleRequest
408
682
  */
409
- export interface V1FolderMessagesSearchRequest {
683
+ export interface V1CalendarEventsRescheduleRequest {
410
684
  /**
411
- * Only messages received on or after this date (YYYY-MM-DD).
685
+ * 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).
412
686
  * @type {string}
413
- * @memberof V1FolderMessagesSearchRequest
687
+ * @memberof V1CalendarEventsRescheduleRequest
414
688
  */
415
- 'since': string;
689
+ 'start': string;
416
690
  /**
417
- * Only messages received before this date (YYYY-MM-DD).
691
+ * 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.
418
692
  * @type {string}
419
- * @memberof V1FolderMessagesSearchRequest
693
+ * @memberof V1CalendarEventsRescheduleRequest
420
694
  */
421
- 'before': string;
695
+ 'end': string | null;
422
696
  /**
423
- * Only messages carrying all of these IMAP flags, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
424
- * @type {Array<string>}
425
- * @memberof V1FolderMessagesSearchRequest
697
+ * `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day.
698
+ * @type {boolean}
699
+ * @memberof V1CalendarEventsRescheduleRequest
426
700
  */
427
- 'flags': Array<string>;
701
+ 'allDay': boolean;
428
702
  /**
429
- * IMAP UID set: single UID, range (1:100), open range (100:*), or comma-separated list.
703
+ * IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true.
430
704
  * @type {string}
431
- * @memberof V1FolderMessagesSearchRequest
705
+ * @memberof V1CalendarEventsRescheduleRequest
432
706
  */
433
- 'uid': string;
707
+ 'timeZone': string | null;
434
708
  /**
435
- * Case-insensitive substring match on the Subject header. OR-combined with from/to/cc/body.
709
+ * 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.
436
710
  * @type {string}
437
- * @memberof V1FolderMessagesSearchRequest
711
+ * @memberof V1CalendarEventsRescheduleRequest
438
712
  */
439
- 'subject': string;
713
+ 'scope': V1CalendarEventsRescheduleRequestScopeEnum | null;
440
714
  /**
441
- * Case-insensitive substring match on the From header. OR-combined with subject/to/cc/body.
715
+ * `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item. Required when `scope` is `this` or `future`, ignored for `all`.
442
716
  * @type {string}
443
- * @memberof V1FolderMessagesSearchRequest
717
+ * @memberof V1CalendarEventsRescheduleRequest
444
718
  */
445
- 'from': string;
719
+ 'recurrenceId': string | null;
446
720
  /**
447
- * Case-insensitive substring match on the To header. OR-combined with subject/from/cc/body.
721
+ * `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`.
722
+ * @type {boolean}
723
+ * @memberof V1CalendarEventsRescheduleRequest
724
+ */
725
+ 'notifyAttendees': boolean | null;
726
+ }
727
+
728
+ export const V1CalendarEventsRescheduleRequestScopeEnum = {
729
+ This: 'this',
730
+ Future: 'future',
731
+ All: 'all'
732
+ } as const;
733
+
734
+ export type V1CalendarEventsRescheduleRequestScopeEnum = typeof V1CalendarEventsRescheduleRequestScopeEnum[keyof typeof V1CalendarEventsRescheduleRequestScopeEnum];
735
+
736
+ /**
737
+ * Single calendar event payload.
738
+ * @export
739
+ * @interface V1CalendarEventsResource
740
+ */
741
+ export interface V1CalendarEventsResource {
742
+ /**
743
+ *
744
+ * @type {V1CalendarEventsEvent}
745
+ * @memberof V1CalendarEventsResource
746
+ */
747
+ 'data': V1CalendarEventsEvent;
748
+ }
749
+ /**
750
+ * Body for updating a calendar event. Every field replaces the stored value and an omitted optional field is cleared.
751
+ * @export
752
+ * @interface V1CalendarEventsUpdateRequest
753
+ */
754
+ export interface V1CalendarEventsUpdateRequest {
755
+ /**
756
+ * Title of the event.
448
757
  * @type {string}
449
- * @memberof V1FolderMessagesSearchRequest
758
+ * @memberof V1CalendarEventsUpdateRequest
450
759
  */
451
- 'to': string;
760
+ 'title': string;
452
761
  /**
453
- * Case-insensitive substring match on the Cc header. OR-combined with subject/from/to/body.
762
+ * 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).
454
763
  * @type {string}
455
- * @memberof V1FolderMessagesSearchRequest
764
+ * @memberof V1CalendarEventsUpdateRequest
456
765
  */
457
- 'cc': string;
766
+ 'start': string;
458
767
  /**
459
- * Case-insensitive substring match on the message body only (headers excluded). OR-combined with subject/from/to/cc.
768
+ * 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.
460
769
  * @type {string}
461
- * @memberof V1FolderMessagesSearchRequest
770
+ * @memberof V1CalendarEventsUpdateRequest
462
771
  */
463
- 'body': string;
772
+ 'end': string | null;
464
773
  /**
465
- * Match a specific header as Name:value, e.g. X-Custom-Header:value. Value match is a substring.
774
+ * `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day.
775
+ * @type {boolean}
776
+ * @memberof V1CalendarEventsUpdateRequest
777
+ */
778
+ 'allDay': boolean;
779
+ /**
780
+ * IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true.
466
781
  * @type {string}
467
- * @memberof V1FolderMessagesSearchRequest
782
+ * @memberof V1CalendarEventsUpdateRequest
468
783
  */
469
- 'header': string;
784
+ 'timeZone': string | null;
470
785
  /**
471
- * Only messages larger than this size in bytes.
472
- * @type {number}
473
- * @memberof V1FolderMessagesSearchRequest
786
+ * Notes of the event. Omitted or null clears it.
787
+ * @type {string}
788
+ * @memberof V1CalendarEventsUpdateRequest
474
789
  */
475
- 'larger': number;
790
+ 'description': string | null;
476
791
  /**
477
- * Only messages smaller than this size in bytes.
478
- * @type {number}
479
- * @memberof V1FolderMessagesSearchRequest
792
+ * Place of the event. Omitted or null clears it.
793
+ * @type {string}
794
+ * @memberof V1CalendarEventsUpdateRequest
480
795
  */
481
- 'smaller': number;
796
+ 'location': string | null;
482
797
  /**
483
- * Case-insensitive substring match across headers and body.
798
+ * http or https URL of the online meeting. Omitted or null clears it.
484
799
  * @type {string}
485
- * @memberof V1FolderMessagesSearchRequest
800
+ * @memberof V1CalendarEventsUpdateRequest
486
801
  */
487
- 'text': string;
488
- }
489
- /**
490
- * Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
491
- * @export
492
- * @interface V1FolderMessagesUpdateFlagsResult
493
- */
494
- export interface V1FolderMessagesUpdateFlagsResult {
802
+ 'meetingLink': string | null;
495
803
  /**
496
- *
497
- * @type {V1FolderMessagesUpdateFlagsResultData}
498
- * @memberof V1FolderMessagesUpdateFlagsResult
804
+ * Color of the event as #RRGGBB or #RRGGBBAA. Omitted or null uses the calendar color.
805
+ * @type {string}
806
+ * @memberof V1CalendarEventsUpdateRequest
499
807
  */
500
- 'data': V1FolderMessagesUpdateFlagsResultData;
501
- }
502
- /**
503
- *
504
- * @export
505
- * @interface V1FolderMessagesUpdateFlagsResultData
506
- */
507
- export interface V1FolderMessagesUpdateFlagsResultData {
808
+ 'color': string | null;
508
809
  /**
509
- *
510
- * @type {Array<number>}
511
- * @memberof V1FolderMessagesUpdateFlagsResultData
810
+ * 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.
811
+ * @type {V1CalendarEventsRecurrenceRule}
812
+ * @memberof V1CalendarEventsUpdateRequest
512
813
  */
513
- 'successful': Array<number>;
814
+ 'recurrenceRule': V1CalendarEventsRecurrenceRule | null;
514
815
  /**
515
- *
516
- * @type {Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>}
517
- * @memberof V1FolderMessagesUpdateFlagsResultData
816
+ * Alarm before the start: `value` 0 to 1000 and `unit`. Omitted or null clears it.
817
+ * @type {V1CalendarEventsReminder}
818
+ * @memberof V1CalendarEventsUpdateRequest
518
819
  */
519
- 'failed': Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>;
820
+ 'reminder': V1CalendarEventsReminder | null;
821
+ /**
822
+ * 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.
823
+ * @type {Array<V1CalendarEventsAttendeeInput>}
824
+ * @memberof V1CalendarEventsUpdateRequest
825
+ */
826
+ 'attendees': Array<V1CalendarEventsAttendeeInput> | null;
827
+ /**
828
+ * 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.
829
+ * @type {string}
830
+ * @memberof V1CalendarEventsUpdateRequest
831
+ */
832
+ 'scope': V1CalendarEventsUpdateRequestScopeEnum | null;
833
+ /**
834
+ * `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item. Required when `scope` is `this` or `future`, ignored for `all`.
835
+ * @type {string}
836
+ * @memberof V1CalendarEventsUpdateRequest
837
+ */
838
+ 'recurrenceId': string | null;
839
+ /**
840
+ * `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`.
841
+ * @type {boolean}
842
+ * @memberof V1CalendarEventsUpdateRequest
843
+ */
844
+ 'notifyAttendees': boolean | null;
520
845
  }
846
+
847
+ export const V1CalendarEventsUpdateRequestScopeEnum = {
848
+ This: 'this',
849
+ Future: 'future',
850
+ All: 'all'
851
+ } as const;
852
+
853
+ export type V1CalendarEventsUpdateRequestScopeEnum = typeof V1CalendarEventsUpdateRequestScopeEnum[keyof typeof V1CalendarEventsUpdateRequestScopeEnum];
854
+
521
855
  /**
522
- *
856
+ * Calendar of a managed mailbox: one it owns or one shared with it.
523
857
  * @export
524
- * @interface V1FolderMessagesUpdateFlagsResultDataFailedInner
858
+ * @interface V1CalendarsCalendar
525
859
  */
526
- export interface V1FolderMessagesUpdateFlagsResultDataFailedInner {
860
+ export interface V1CalendarsCalendar {
861
+ /**
862
+ * Calendar identifier, the `calendarUuid` of the calendar and calendar event endpoints.
863
+ * @type {string}
864
+ * @memberof V1CalendarsCalendar
865
+ */
866
+ 'uuid': string;
527
867
  /**
528
868
  *
529
- * @type {number}
530
- * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
869
+ * @type {string}
870
+ * @memberof V1CalendarsCalendar
531
871
  */
532
- 'uid': number;
872
+ 'displayName': string | null;
533
873
  /**
534
874
  *
535
875
  * @type {string}
536
- * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
876
+ * @memberof V1CalendarsCalendar
537
877
  */
538
- 'reason': string;
878
+ 'description': string | null;
879
+ /**
880
+ * Hex color as #RRGGBB or #RRGGBBAA.
881
+ * @type {string}
882
+ * @memberof V1CalendarsCalendar
883
+ */
884
+ 'color': string | null;
885
+ /**
886
+ * Whether this is the default calendar of the mailbox. New events go here unless another calendar is named.
887
+ * @type {boolean}
888
+ * @memberof V1CalendarsCalendar
889
+ */
890
+ 'default': boolean;
891
+ /**
892
+ * 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.
893
+ * @type {boolean}
894
+ * @memberof V1CalendarsCalendar
895
+ */
896
+ 'visible': boolean;
539
897
  }
540
898
  /**
541
- * Paginated list of folders.
899
+ * Paginated list of calendars.
542
900
  * @export
543
- * @interface V1FoldersCollection
901
+ * @interface V1CalendarsCollection
544
902
  */
545
- export interface V1FoldersCollection {
903
+ export interface V1CalendarsCollection {
546
904
  /**
547
905
  *
548
- * @type {Array<V1FoldersFolder>}
549
- * @memberof V1FoldersCollection
906
+ * @type {Array<V1CalendarsCalendar>}
907
+ * @memberof V1CalendarsCollection
550
908
  */
551
- 'data': Array<V1FoldersFolder>;
909
+ 'data': Array<V1CalendarsCalendar>;
552
910
  /**
553
911
  *
554
912
  * @type {Pagination}
555
- * @memberof V1FoldersCollection
913
+ * @memberof V1CalendarsCollection
556
914
  */
557
915
  'pagination': Pagination;
558
916
  }
559
917
  /**
560
- * Body for creating a folder.
561
- * @export
562
- * @interface V1FoldersCreateRequest
563
- */
564
- export interface V1FoldersCreateRequest {
565
- /**
566
- * Folder name. Length 1-100 after trimming.
567
- * @type {string}
568
- * @memberof V1FoldersCreateRequest
569
- */
570
- 'name': string;
571
- }
572
- /**
573
- * A folder (IMAP mailbox) in the managed mailbox.
918
+ * Body for creating a calendar.
574
919
  * @export
575
- * @interface V1FoldersFolder
920
+ * @interface V1CalendarsCreateRequest
576
921
  */
577
- export interface V1FoldersFolder {
922
+ export interface V1CalendarsCreateRequest {
578
923
  /**
579
- * Full hierarchical folder path including the delimiter.
580
- * @type {string}
581
- * @memberof V1FoldersFolder
582
- */
583
- 'path': string;
584
- /**
585
- * Leaf name of the folder.
924
+ * Name of the calendar.
586
925
  * @type {string}
587
- * @memberof V1FoldersFolder
926
+ * @memberof V1CalendarsCreateRequest
588
927
  */
589
- 'name': string;
928
+ 'displayName': string;
590
929
  /**
591
- * Hierarchy delimiter used by the IMAP server.
930
+ * Optional free-text note about the calendar.
592
931
  * @type {string}
593
- * @memberof V1FoldersFolder
932
+ * @memberof V1CalendarsCreateRequest
594
933
  */
595
- 'delimiter': string;
934
+ 'description': string | null;
596
935
  /**
597
- * IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders.
936
+ * Hex color as #RRGGBB or #RRGGBBAA. Omitted or null uses the default color.
598
937
  * @type {string}
599
- * @memberof V1FoldersFolder
938
+ * @memberof V1CalendarsCreateRequest
600
939
  */
601
- 'specialUse': string | null;
602
- /**
603
- * Total number of messages in the folder.
604
- * @type {number}
605
- * @memberof V1FoldersFolder
606
- */
607
- 'messageCount': number;
940
+ 'color': string | null;
608
941
  /**
609
- * Number of unread messages in the folder.
610
- * @type {number}
611
- * @memberof V1FoldersFolder
942
+ * Whether the mailbox shows the calendar in its calendar view. Omitted or null means true.
943
+ * @type {boolean}
944
+ * @memberof V1CalendarsCreateRequest
612
945
  */
613
- 'unreadCount': number;
946
+ 'visible': boolean | null;
614
947
  }
615
948
  /**
616
- * Single folder payload.
949
+ * Single calendar payload.
617
950
  * @export
618
- * @interface V1FoldersResource
951
+ * @interface V1CalendarsResource
619
952
  */
620
- export interface V1FoldersResource {
953
+ export interface V1CalendarsResource {
621
954
  /**
622
955
  *
623
- * @type {V1FoldersFolder}
624
- * @memberof V1FoldersResource
956
+ * @type {V1CalendarsCalendar}
957
+ * @memberof V1CalendarsResource
625
958
  */
626
- 'data': V1FoldersFolder;
959
+ 'data': V1CalendarsCalendar;
627
960
  }
628
961
  /**
629
- * Body for renaming a folder.
962
+ * Body for updating a calendar. Name, description and color replace the stored values.
630
963
  * @export
631
- * @interface V1FoldersUpdateRequest
964
+ * @interface V1CalendarsUpdateRequest
632
965
  */
633
- export interface V1FoldersUpdateRequest {
966
+ export interface V1CalendarsUpdateRequest {
634
967
  /**
635
- * New folder name. Length 1-100 after trimming.
968
+ * Name of the calendar.
636
969
  * @type {string}
637
- * @memberof V1FoldersUpdateRequest
970
+ * @memberof V1CalendarsUpdateRequest
638
971
  */
639
- 'name': string;
972
+ 'displayName': string;
973
+ /**
974
+ * Free-text note about the calendar. Omitted or null clears it.
975
+ * @type {string}
976
+ * @memberof V1CalendarsUpdateRequest
977
+ */
978
+ 'description': string | null;
979
+ /**
980
+ * Hex color as #RRGGBB or #RRGGBBAA. Omitted or null resets it to the default color.
981
+ * @type {string}
982
+ * @memberof V1CalendarsUpdateRequest
983
+ */
984
+ 'color': string | null;
985
+ /**
986
+ * Whether the mailbox shows the calendar in its calendar view. Omitted or null keeps the current value.
987
+ * @type {boolean}
988
+ * @memberof V1CalendarsUpdateRequest
989
+ */
990
+ 'visible': boolean | null;
640
991
  }
641
992
  /**
642
- * A mailbox the authenticated API token can manage.
993
+ * 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.
643
994
  * @export
644
- * @interface V1MeMailbox
995
+ * @interface V1FeedbackSubmitRequest
645
996
  */
646
- export interface V1MeMailbox {
997
+ export interface V1FeedbackSubmitRequest {
647
998
  /**
648
- * Unique identifier of the mailbox.
649
- * @type {string}
650
- * @memberof V1MeMailbox
999
+ * The user\'s rating of the Hostinger Email API: 1 (poor) to 10 (excellent).
1000
+ * @type {number}
1001
+ * @memberof V1FeedbackSubmitRequest
651
1002
  */
652
- 'resourceId': string;
1003
+ 'score': number;
653
1004
  /**
654
- * Email address of the mailbox.
1005
+ * The user\'s feedback in their own words. Never include tokens, passwords or email contents.
655
1006
  * @type {string}
656
- * @memberof V1MeMailbox
1007
+ * @memberof V1FeedbackSubmitRequest
657
1008
  */
658
- 'address': string;
1009
+ 'message': string;
659
1010
  }
660
1011
  /**
661
- * Authenticated account payload.
1012
+ * Paginated list of messages.
662
1013
  * @export
663
- * @interface V1MeResource
1014
+ * @interface V1FolderMessagesCollection
664
1015
  */
665
- export interface V1MeResource {
1016
+ export interface V1FolderMessagesCollection {
666
1017
  /**
667
1018
  *
668
- * @type {V1MeResourceData}
669
- * @memberof V1MeResource
1019
+ * @type {Array<V1FolderMessagesMessage>}
1020
+ * @memberof V1FolderMessagesCollection
670
1021
  */
671
- 'data': V1MeResourceData;
1022
+ 'data': Array<V1FolderMessagesMessage>;
1023
+ /**
1024
+ *
1025
+ * @type {Pagination}
1026
+ * @memberof V1FolderMessagesCollection
1027
+ */
1028
+ 'pagination': Pagination;
672
1029
  }
673
1030
  /**
674
- *
1031
+ * Body for permanently deleting multiple messages.
675
1032
  * @export
676
- * @interface V1MeResourceData
1033
+ * @interface V1FolderMessagesDeleteBulkRequest
677
1034
  */
678
- export interface V1MeResourceData {
679
- /**
680
- * Identifier of the order this API token is scoped to.
681
- * @type {string}
682
- * @memberof V1MeResourceData
683
- */
684
- 'orderResourceId': string;
1035
+ export interface V1FolderMessagesDeleteBulkRequest {
685
1036
  /**
686
- * Mailboxes that the authenticated API token can manage.
687
- * @type {Array<V1MeMailbox>}
688
- * @memberof V1MeResourceData
1037
+ * Message UIDs to delete. 1-100 entries, each > 0.
1038
+ * @type {Array<number>}
1039
+ * @memberof V1FolderMessagesDeleteBulkRequest
689
1040
  */
690
- 'mailboxes': Array<V1MeMailbox>;
1041
+ 'uids': Array<number>;
691
1042
  }
692
1043
  /**
693
- * Storage and message quota usage for the managed mailbox.
1044
+ * Add and/or remove flags on multiple messages. At least one of addFlags or removeFlags must be set.
694
1045
  * @export
695
- * @interface V1QuotaQuota
1046
+ * @interface V1FolderMessagesFlagsBulkRequest
696
1047
  */
697
- export interface V1QuotaQuota {
1048
+ export interface V1FolderMessagesFlagsBulkRequest {
698
1049
  /**
699
- * Per-resource quota breakdown reported by the IMAP server.
700
- * @type {Array<V1QuotaQuotaResource>}
701
- * @memberof V1QuotaQuota
1050
+ * Message UIDs to update. 1-100 entries, each > 0.
1051
+ * @type {Array<number>}
1052
+ * @memberof V1FolderMessagesFlagsBulkRequest
702
1053
  */
703
- 'quotas': Array<V1QuotaQuotaResource>;
1054
+ 'uids': Array<number>;
704
1055
  /**
705
- * Aggregate storage usage across all resources, in bytes.
706
- * @type {number}
707
- * @memberof V1QuotaQuota
1056
+ * IMAP flags to set on every listed message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
1057
+ * @type {Array<string>}
1058
+ * @memberof V1FolderMessagesFlagsBulkRequest
708
1059
  */
709
- 'totalUsage': number;
1060
+ 'addFlags': Array<string>;
710
1061
  /**
711
- * Aggregate storage limit across all resources, in bytes.
712
- * @type {number}
713
- * @memberof V1QuotaQuota
1062
+ * IMAP flags to clear from every listed message.
1063
+ * @type {Array<string>}
1064
+ * @memberof V1FolderMessagesFlagsBulkRequest
714
1065
  */
715
- 'totalLimit': number;
1066
+ 'removeFlags': Array<string>;
1067
+ }
1068
+ /**
1069
+ * Add and/or remove flags on a message. At least one of addFlags or removeFlags must be set.
1070
+ * @export
1071
+ * @interface V1FolderMessagesFlagsRequest
1072
+ */
1073
+ export interface V1FolderMessagesFlagsRequest {
716
1074
  /**
717
- * Aggregate storage usage as a percentage of the total limit.
718
- * @type {number}
719
- * @memberof V1QuotaQuota
1075
+ * IMAP flags to set on the message, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
1076
+ * @type {Array<string>}
1077
+ * @memberof V1FolderMessagesFlagsRequest
720
1078
  */
721
- 'totalPercentage': number;
1079
+ 'addFlags': Array<string>;
722
1080
  /**
723
- * Whether the IMAP server reports quota information for this mailbox.
724
- * @type {boolean}
725
- * @memberof V1QuotaQuota
1081
+ * IMAP flags to clear from the message.
1082
+ * @type {Array<string>}
1083
+ * @memberof V1FolderMessagesFlagsRequest
726
1084
  */
727
- 'supported': boolean;
1085
+ 'removeFlags': Array<string>;
728
1086
  }
729
1087
  /**
730
- * Usage and limit for a single IMAP quota resource.
1088
+ * A message in a folder of the managed mailbox.
731
1089
  * @export
732
- * @interface V1QuotaQuotaResource
1090
+ * @interface V1FolderMessagesMessage
733
1091
  */
734
- export interface V1QuotaQuotaResource {
1092
+ export interface V1FolderMessagesMessage {
735
1093
  /**
736
- * Name of the quota resource as reported by the IMAP server.
1094
+ *
1095
+ * @type {number}
1096
+ * @memberof V1FolderMessagesMessage
1097
+ */
1098
+ 'uid': number;
1099
+ /**
1100
+ *
737
1101
  * @type {string}
738
- * @memberof V1QuotaQuotaResource
1102
+ * @memberof V1FolderMessagesMessage
739
1103
  */
740
- 'resourceName': string;
1104
+ 'path': string;
741
1105
  /**
742
- * Current usage of the resource (bytes for STORAGE, count for MESSAGE).
743
- * @type {number}
744
- * @memberof V1QuotaQuotaResource
1106
+ *
1107
+ * @type {string}
1108
+ * @memberof V1FolderMessagesMessage
745
1109
  */
746
- 'usage': number;
1110
+ 'date': string;
747
1111
  /**
748
- * Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE).
749
- * @type {number}
750
- * @memberof V1QuotaQuotaResource
1112
+ *
1113
+ * @type {Array<string>}
1114
+ * @memberof V1FolderMessagesMessage
751
1115
  */
752
- 'limit': number;
1116
+ 'flags': Array<string>;
753
1117
  /**
754
- * Usage as a percentage of the limit.
755
- * @type {number}
756
- * @memberof V1QuotaQuotaResource
1118
+ *
1119
+ * @type {boolean}
1120
+ * @memberof V1FolderMessagesMessage
757
1121
  */
758
- 'percentage': number;
759
- }
760
- /**
761
- * Mailbox quota payload.
762
- * @export
763
- * @interface V1QuotaResource
764
- */
765
- export interface V1QuotaResource {
1122
+ 'unseen': boolean;
766
1123
  /**
767
1124
  *
768
- * @type {V1QuotaQuota}
769
- * @memberof V1QuotaResource
1125
+ * @type {number}
1126
+ * @memberof V1FolderMessagesMessage
770
1127
  */
771
- 'data': V1QuotaQuota;
772
- }
773
- /**
774
- * Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
775
- * @export
776
- * @interface V1SendAttachment
777
- */
778
- export interface V1SendAttachment {
1128
+ 'size': number;
779
1129
  /**
780
- * File name shown to the recipient, including extension.
1130
+ *
781
1131
  * @type {string}
782
- * @memberof V1SendAttachment
1132
+ * @memberof V1FolderMessagesMessage
783
1133
  */
784
- 'filename': string;
1134
+ 'subject': string | null;
785
1135
  /**
786
- * Attachment body. Base64-encoded by default; set encoding to switch.
787
- * @type {string}
788
- * @memberof V1SendAttachment
1136
+ *
1137
+ * @type {V1FolderMessagesMessageAddress}
1138
+ * @memberof V1FolderMessagesMessage
789
1139
  */
790
- 'content': string;
1140
+ 'from': V1FolderMessagesMessageAddress | null;
791
1141
  /**
792
- * MIME type of the attachment, e.g. application/pdf. Not inferred from filename; set it explicitly so clients render the attachment correctly.
793
- * @type {string}
794
- * @memberof V1SendAttachment
1142
+ *
1143
+ * @type {Array<V1FolderMessagesMessageAddress>}
1144
+ * @memberof V1FolderMessagesMessage
795
1145
  */
796
- 'contentType': string;
1146
+ 'to': Array<V1FolderMessagesMessageAddress>;
797
1147
  /**
798
- * Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">.
1148
+ *
1149
+ * @type {Array<V1FolderMessagesMessageAddress>}
1150
+ * @memberof V1FolderMessagesMessage
1151
+ */
1152
+ 'cc': Array<V1FolderMessagesMessageAddress>;
1153
+ /**
1154
+ *
1155
+ * @type {Array<V1FolderMessagesMessageAddress>}
1156
+ * @memberof V1FolderMessagesMessage
1157
+ */
1158
+ 'bcc': Array<V1FolderMessagesMessageAddress>;
1159
+ /**
1160
+ *
799
1161
  * @type {string}
800
- * @memberof V1SendAttachment
1162
+ * @memberof V1FolderMessagesMessage
801
1163
  */
802
- 'cid': string;
1164
+ 'messageId': string | null;
803
1165
  /**
804
- * Encoding of content. Defaults to base64.
1166
+ *
805
1167
  * @type {string}
806
- * @memberof V1SendAttachment
1168
+ * @memberof V1FolderMessagesMessage
807
1169
  */
808
- 'encoding': string;
1170
+ 'inReplyTo': string | null;
1171
+ /**
1172
+ *
1173
+ * @type {Array<V1FolderMessagesMessageAttachment>}
1174
+ * @memberof V1FolderMessagesMessage
1175
+ */
1176
+ 'attachments': Array<V1FolderMessagesMessageAttachment>;
809
1177
  }
810
1178
  /**
811
- * Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
1179
+ * A single email address with optional display name.
812
1180
  * @export
813
- * @interface V1SendMessageRef
1181
+ * @interface V1FolderMessagesMessageAddress
814
1182
  */
815
- export interface V1SendMessageRef {
1183
+ export interface V1FolderMessagesMessageAddress {
816
1184
  /**
817
- * UID of the source message.
818
- * @type {number}
819
- * @memberof V1SendMessageRef
1185
+ *
1186
+ * @type {string}
1187
+ * @memberof V1FolderMessagesMessageAddress
820
1188
  */
821
- 'uid': number;
1189
+ 'name': string;
822
1190
  /**
823
- * Folder containing the source message.
1191
+ *
824
1192
  * @type {string}
825
- * @memberof V1SendMessageRef
1193
+ * @memberof V1FolderMessagesMessageAddress
826
1194
  */
827
- 'folder': string;
1195
+ 'address': string;
828
1196
  }
829
1197
  /**
830
- * Outgoing message payload. At least one of to, cc, or bcc must be present.
1198
+ * Attachment metadata attached to a message.
831
1199
  * @export
832
- * @interface V1SendRequest
1200
+ * @interface V1FolderMessagesMessageAttachment
833
1201
  */
834
- export interface V1SendRequest {
835
- /**
836
- * Primary recipient email addresses.
837
- * @type {Array<string>}
838
- * @memberof V1SendRequest
839
- */
840
- 'to': Array<string>;
1202
+ export interface V1FolderMessagesMessageAttachment {
841
1203
  /**
842
- * Sender display name shown in the From header alongside the mailbox address.
1204
+ * Opaque attachment identifier. Use as the {attachmentId} path parameter on the download endpoint.
843
1205
  * @type {string}
844
- * @memberof V1SendRequest
1206
+ * @memberof V1FolderMessagesMessageAttachment
845
1207
  */
846
- 'displayName': string;
1208
+ 'id': string;
847
1209
  /**
848
- * Carbon-copy recipient email addresses.
849
- * @type {Array<string>}
850
- * @memberof V1SendRequest
1210
+ *
1211
+ * @type {string}
1212
+ * @memberof V1FolderMessagesMessageAttachment
851
1213
  */
852
- 'cc': Array<string>;
1214
+ 'contentType': string;
853
1215
  /**
854
- * Blind-carbon-copy recipient email addresses. Not visible to other recipients.
855
- * @type {Array<string>}
856
- * @memberof V1SendRequest
1216
+ *
1217
+ * @type {number}
1218
+ * @memberof V1FolderMessagesMessageAttachment
857
1219
  */
858
- 'bcc': Array<string>;
1220
+ 'sizeBytes': number;
859
1221
  /**
860
- * Message subject line.
861
- * @type {string}
862
- * @memberof V1SendRequest
1222
+ *
1223
+ * @type {boolean}
1224
+ * @memberof V1FolderMessagesMessageAttachment
863
1225
  */
864
- 'subject': string;
1226
+ 'inline': boolean;
865
1227
  /**
866
- * Plain-text body. Optional; if both text and html are omitted the message is sent without a body.
1228
+ *
867
1229
  * @type {string}
868
- * @memberof V1SendRequest
1230
+ * @memberof V1FolderMessagesMessageAttachment
869
1231
  */
870
- 'text': string;
1232
+ 'filename': string | null;
871
1233
  /**
872
- * 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.
1234
+ *
873
1235
  * @type {string}
874
- * @memberof V1SendRequest
875
- */
876
- 'html': string;
877
- /**
878
- * Files to attach. Inline images set cid; regular attachments omit it.
879
- * @type {Array<V1SendAttachment>}
880
- * @memberof V1SendRequest
881
- */
882
- 'attachments': Array<V1SendAttachment>;
883
- /**
884
- * 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.
885
- * @type {V1SendMessageRef}
886
- * @memberof V1SendRequest
887
- */
888
- 'inReplyTo': V1SendMessageRef;
889
- /**
890
- * 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.
891
- * @type {V1SendMessageRef}
892
- * @memberof V1SendRequest
1236
+ * @memberof V1FolderMessagesMessageAttachment
893
1237
  */
894
- 'forwardOf': V1SendMessageRef;
1238
+ 'contentId': string | null;
895
1239
  }
896
1240
  /**
897
- * Paginated list of webhooks.
1241
+ * Rendered text and HTML parts of a message.
898
1242
  * @export
899
- * @interface V1WebhooksCollection
1243
+ * @interface V1FolderMessagesMessageText
900
1244
  */
901
- export interface V1WebhooksCollection {
1245
+ export interface V1FolderMessagesMessageText {
902
1246
  /**
903
1247
  *
904
- * @type {Array<V1WebhooksWebhook>}
905
- * @memberof V1WebhooksCollection
1248
+ * @type {string}
1249
+ * @memberof V1FolderMessagesMessageText
906
1250
  */
907
- 'data': Array<V1WebhooksWebhook>;
1251
+ 'text': string;
908
1252
  /**
909
1253
  *
910
- * @type {Pagination}
911
- * @memberof V1WebhooksCollection
1254
+ * @type {string}
1255
+ * @memberof V1FolderMessagesMessageText
912
1256
  */
913
- 'pagination': Pagination;
1257
+ 'html': string;
914
1258
  }
915
1259
  /**
916
- * Body for creating a webhook.
1260
+ * Single message text payload.
917
1261
  * @export
918
- * @interface V1WebhooksCreateRequest
1262
+ * @interface V1FolderMessagesMessageTextResource
919
1263
  */
920
- export interface V1WebhooksCreateRequest {
921
- /**
922
- * Human-readable webhook name.
923
- * @type {string}
924
- * @memberof V1WebhooksCreateRequest
925
- */
926
- 'name': string;
927
- /**
928
- * Optional free-text note about the webhook purpose.
929
- * @type {string}
930
- * @memberof V1WebhooksCreateRequest
931
- */
932
- 'description': string | null;
1264
+ export interface V1FolderMessagesMessageTextResource {
933
1265
  /**
934
- * Event types that trigger a delivery.
935
- * @type {Array<string>}
936
- * @memberof V1WebhooksCreateRequest
1266
+ *
1267
+ * @type {V1FolderMessagesMessageText}
1268
+ * @memberof V1FolderMessagesMessageTextResource
937
1269
  */
938
- 'events': Array<V1WebhooksCreateRequestEventsEnum>;
1270
+ 'data': V1FolderMessagesMessageText;
1271
+ }
1272
+ /**
1273
+ * Body for moving multiple messages to a target folder.
1274
+ * @export
1275
+ * @interface V1FolderMessagesMoveBulkRequest
1276
+ */
1277
+ export interface V1FolderMessagesMoveBulkRequest {
939
1278
  /**
940
- * Initial delivery state. Only active webhooks receive events.
941
- * @type {string}
942
- * @memberof V1WebhooksCreateRequest
1279
+ * Message UIDs to move. 1-100 entries, each > 0.
1280
+ * @type {Array<number>}
1281
+ * @memberof V1FolderMessagesMoveBulkRequest
943
1282
  */
944
- 'status': V1WebhooksCreateRequestStatusEnum;
1283
+ 'uids': Array<number>;
945
1284
  /**
946
- * 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).
1285
+ * Destination folder path.
947
1286
  * @type {string}
948
- * @memberof V1WebhooksCreateRequest
1287
+ * @memberof V1FolderMessagesMoveBulkRequest
949
1288
  */
950
- 'url': string;
1289
+ 'targetFolder': string;
951
1290
  }
952
-
953
- export const V1WebhooksCreateRequestEventsEnum = {
954
- MessageReceived: 'message.received'
955
- } as const;
956
-
957
- export type V1WebhooksCreateRequestEventsEnum = typeof V1WebhooksCreateRequestEventsEnum[keyof typeof V1WebhooksCreateRequestEventsEnum];
958
- export const V1WebhooksCreateRequestStatusEnum = {
959
- Active: 'active',
960
- Paused: 'paused',
961
- Disabled: 'disabled'
962
- } as const;
963
-
964
- export type V1WebhooksCreateRequestStatusEnum = typeof V1WebhooksCreateRequestStatusEnum[keyof typeof V1WebhooksCreateRequestStatusEnum];
965
-
966
1291
  /**
967
- * Single webhook payload.
1292
+ * Body for moving a single message to a target folder.
968
1293
  * @export
969
- * @interface V1WebhooksResource
1294
+ * @interface V1FolderMessagesMoveRequest
970
1295
  */
971
- export interface V1WebhooksResource {
1296
+ export interface V1FolderMessagesMoveRequest {
972
1297
  /**
973
- *
974
- * @type {V1WebhooksWebhook}
975
- * @memberof V1WebhooksResource
1298
+ * Destination folder path.
1299
+ * @type {string}
1300
+ * @memberof V1FolderMessagesMoveRequest
976
1301
  */
977
- 'data': V1WebhooksWebhook;
1302
+ 'targetFolder': string;
978
1303
  }
979
1304
  /**
980
- * Single webhook payload including the one-time secret.
1305
+ * Single message payload.
981
1306
  * @export
982
- * @interface V1WebhooksResourceWithSecret
1307
+ * @interface V1FolderMessagesResource
983
1308
  */
984
- export interface V1WebhooksResourceWithSecret {
1309
+ export interface V1FolderMessagesResource {
985
1310
  /**
986
1311
  *
987
- * @type {V1WebhooksWebhookWithSecret}
988
- * @memberof V1WebhooksResourceWithSecret
1312
+ * @type {V1FolderMessagesMessage}
1313
+ * @memberof V1FolderMessagesResource
989
1314
  */
990
- 'data': V1WebhooksWebhookWithSecret;
1315
+ 'data': V1FolderMessagesMessage;
991
1316
  }
992
1317
  /**
993
- * Result of a webhook test delivery.
1318
+ * 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.
994
1319
  * @export
995
- * @interface V1WebhooksTestResult
1320
+ * @interface V1FolderMessagesSearchRequest
996
1321
  */
997
- export interface V1WebhooksTestResult {
1322
+ export interface V1FolderMessagesSearchRequest {
998
1323
  /**
999
- *
1000
- * @type {V1WebhooksTestResultData}
1001
- * @memberof V1WebhooksTestResult
1324
+ * Only messages received on or after this date (YYYY-MM-DD).
1325
+ * @type {string}
1326
+ * @memberof V1FolderMessagesSearchRequest
1002
1327
  */
1003
- 'data': V1WebhooksTestResultData;
1004
- }
1005
- /**
1006
- *
1007
- * @export
1008
- * @interface V1WebhooksTestResultData
1009
- */
1010
- export interface V1WebhooksTestResultData {
1328
+ 'since': string;
1011
1329
  /**
1012
- *
1013
- * @type {number}
1014
- * @memberof V1WebhooksTestResultData
1330
+ * Only messages received before this date (YYYY-MM-DD).
1331
+ * @type {string}
1332
+ * @memberof V1FolderMessagesSearchRequest
1015
1333
  */
1016
- 'httpStatus': number;
1334
+ 'before': string;
1017
1335
  /**
1018
- *
1019
- * @type {boolean}
1020
- * @memberof V1WebhooksTestResultData
1336
+ * Only messages carrying all of these IMAP flags, e.g. \\Seen, \\Flagged, \\Answered, $forwarded.
1337
+ * @type {Array<string>}
1338
+ * @memberof V1FolderMessagesSearchRequest
1021
1339
  */
1022
- 'success': boolean;
1340
+ 'flags': Array<string>;
1023
1341
  /**
1024
- *
1342
+ * IMAP UID set: single UID, range (1:100), open range (100:*), or comma-separated list.
1025
1343
  * @type {string}
1026
- * @memberof V1WebhooksTestResultData
1344
+ * @memberof V1FolderMessagesSearchRequest
1027
1345
  */
1028
- 'error': string | null;
1029
- }
1030
- /**
1031
- * Body for partially updating a webhook. All fields optional; only present fields are applied.
1032
- * @export
1033
- * @interface V1WebhooksUpdateRequest
1034
- */
1035
- export interface V1WebhooksUpdateRequest {
1346
+ 'uid': string;
1036
1347
  /**
1037
- * Human-readable webhook name.
1348
+ * Case-insensitive substring match on the Subject header. OR-combined with from/to/cc/body.
1038
1349
  * @type {string}
1039
- * @memberof V1WebhooksUpdateRequest
1350
+ * @memberof V1FolderMessagesSearchRequest
1040
1351
  */
1041
- 'name': string;
1352
+ 'subject': string;
1042
1353
  /**
1043
- * Free-text note about the webhook purpose. Send null to clear.
1354
+ * Case-insensitive substring match on the From header. OR-combined with subject/to/cc/body.
1044
1355
  * @type {string}
1045
- * @memberof V1WebhooksUpdateRequest
1356
+ * @memberof V1FolderMessagesSearchRequest
1046
1357
  */
1047
- 'description': string | null;
1358
+ 'from': string;
1048
1359
  /**
1049
- * Event types that trigger a delivery. Replaces the current list.
1050
- * @type {Array<string>}
1051
- * @memberof V1WebhooksUpdateRequest
1360
+ * Case-insensitive substring match on the To header. OR-combined with subject/from/cc/body.
1361
+ * @type {string}
1362
+ * @memberof V1FolderMessagesSearchRequest
1052
1363
  */
1053
- 'events': Array<V1WebhooksUpdateRequestEventsEnum>;
1364
+ 'to': string;
1054
1365
  /**
1055
- * Delivery state. Only active webhooks receive events; paused keeps config but stops deliveries.
1366
+ * Case-insensitive substring match on the Cc header. OR-combined with subject/from/to/body.
1056
1367
  * @type {string}
1057
- * @memberof V1WebhooksUpdateRequest
1368
+ * @memberof V1FolderMessagesSearchRequest
1058
1369
  */
1059
- 'status': V1WebhooksUpdateRequestStatusEnum;
1370
+ 'cc': string;
1060
1371
  /**
1061
- * 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).
1372
+ * Case-insensitive substring match on the message body only (headers excluded). OR-combined with subject/from/to/cc.
1062
1373
  * @type {string}
1063
- * @memberof V1WebhooksUpdateRequest
1374
+ * @memberof V1FolderMessagesSearchRequest
1064
1375
  */
1065
- 'url': string;
1376
+ 'body': string;
1377
+ /**
1378
+ * Match a specific header as Name:value, e.g. X-Custom-Header:value. Value match is a substring.
1379
+ * @type {string}
1380
+ * @memberof V1FolderMessagesSearchRequest
1381
+ */
1382
+ 'header': string;
1383
+ /**
1384
+ * Only messages larger than this size in bytes.
1385
+ * @type {number}
1386
+ * @memberof V1FolderMessagesSearchRequest
1387
+ */
1388
+ 'larger': number;
1389
+ /**
1390
+ * Only messages smaller than this size in bytes.
1391
+ * @type {number}
1392
+ * @memberof V1FolderMessagesSearchRequest
1393
+ */
1394
+ 'smaller': number;
1395
+ /**
1396
+ * Case-insensitive substring match across headers and body.
1397
+ * @type {string}
1398
+ * @memberof V1FolderMessagesSearchRequest
1399
+ */
1400
+ 'text': string;
1066
1401
  }
1067
-
1068
- export const V1WebhooksUpdateRequestEventsEnum = {
1069
- MessageReceived: 'message.received'
1070
- } as const;
1071
-
1072
- export type V1WebhooksUpdateRequestEventsEnum = typeof V1WebhooksUpdateRequestEventsEnum[keyof typeof V1WebhooksUpdateRequestEventsEnum];
1073
- export const V1WebhooksUpdateRequestStatusEnum = {
1074
- Active: 'active',
1075
- Paused: 'paused',
1076
- Disabled: 'disabled'
1077
- } as const;
1078
-
1079
- export type V1WebhooksUpdateRequestStatusEnum = typeof V1WebhooksUpdateRequestStatusEnum[keyof typeof V1WebhooksUpdateRequestStatusEnum];
1080
-
1081
1402
  /**
1082
- * Webhook configured for a managed mailbox.
1403
+ * Per-UID outcome of a bulk flag update. 200 when every UID succeeded, 207 when at least one failed.
1083
1404
  * @export
1084
- * @interface V1WebhooksWebhook
1405
+ * @interface V1FolderMessagesUpdateFlagsResult
1085
1406
  */
1086
- export interface V1WebhooksWebhook {
1407
+ export interface V1FolderMessagesUpdateFlagsResult {
1087
1408
  /**
1088
- * Unique webhook identifier (UUID v7).
1409
+ *
1410
+ * @type {V1FolderMessagesUpdateFlagsResultData}
1411
+ * @memberof V1FolderMessagesUpdateFlagsResult
1412
+ */
1413
+ 'data': V1FolderMessagesUpdateFlagsResultData;
1414
+ }
1415
+ /**
1416
+ *
1417
+ * @export
1418
+ * @interface V1FolderMessagesUpdateFlagsResultData
1419
+ */
1420
+ export interface V1FolderMessagesUpdateFlagsResultData {
1421
+ /**
1422
+ *
1423
+ * @type {Array<number>}
1424
+ * @memberof V1FolderMessagesUpdateFlagsResultData
1425
+ */
1426
+ 'successful': Array<number>;
1427
+ /**
1428
+ *
1429
+ * @type {Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>}
1430
+ * @memberof V1FolderMessagesUpdateFlagsResultData
1431
+ */
1432
+ 'failed': Array<V1FolderMessagesUpdateFlagsResultDataFailedInner>;
1433
+ }
1434
+ /**
1435
+ *
1436
+ * @export
1437
+ * @interface V1FolderMessagesUpdateFlagsResultDataFailedInner
1438
+ */
1439
+ export interface V1FolderMessagesUpdateFlagsResultDataFailedInner {
1440
+ /**
1441
+ *
1442
+ * @type {number}
1443
+ * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
1444
+ */
1445
+ 'uid': number;
1446
+ /**
1447
+ *
1089
1448
  * @type {string}
1090
- * @memberof V1WebhooksWebhook
1449
+ * @memberof V1FolderMessagesUpdateFlagsResultDataFailedInner
1091
1450
  */
1092
- 'id': string;
1451
+ 'reason': string;
1452
+ }
1453
+ /**
1454
+ * Paginated list of folders.
1455
+ * @export
1456
+ * @interface V1FoldersCollection
1457
+ */
1458
+ export interface V1FoldersCollection {
1093
1459
  /**
1094
- * Resource ID of the mailbox this webhook is attached to.
1460
+ *
1461
+ * @type {Array<V1FoldersFolder>}
1462
+ * @memberof V1FoldersCollection
1463
+ */
1464
+ 'data': Array<V1FoldersFolder>;
1465
+ /**
1466
+ *
1467
+ * @type {Pagination}
1468
+ * @memberof V1FoldersCollection
1469
+ */
1470
+ 'pagination': Pagination;
1471
+ }
1472
+ /**
1473
+ * Body for creating a folder.
1474
+ * @export
1475
+ * @interface V1FoldersCreateRequest
1476
+ */
1477
+ export interface V1FoldersCreateRequest {
1478
+ /**
1479
+ * Folder name. Length 1-100 after trimming.
1095
1480
  * @type {string}
1096
- * @memberof V1WebhooksWebhook
1481
+ * @memberof V1FoldersCreateRequest
1097
1482
  */
1098
- 'accountResourceId': string;
1483
+ 'name': string;
1484
+ }
1485
+ /**
1486
+ * A folder (IMAP mailbox) in the managed mailbox.
1487
+ * @export
1488
+ * @interface V1FoldersFolder
1489
+ */
1490
+ export interface V1FoldersFolder {
1099
1491
  /**
1100
- * Email address of the mailbox.
1492
+ * Full hierarchical folder path including the delimiter.
1101
1493
  * @type {string}
1102
- * @memberof V1WebhooksWebhook
1494
+ * @memberof V1FoldersFolder
1103
1495
  */
1104
- 'mailbox': string;
1496
+ 'path': string;
1105
1497
  /**
1106
- *
1498
+ * Leaf name of the folder.
1107
1499
  * @type {string}
1108
- * @memberof V1WebhooksWebhook
1500
+ * @memberof V1FoldersFolder
1109
1501
  */
1110
1502
  'name': string;
1111
1503
  /**
1112
- *
1504
+ * Hierarchy delimiter used by the IMAP server.
1113
1505
  * @type {string}
1114
- * @memberof V1WebhooksWebhook
1506
+ * @memberof V1FoldersFolder
1115
1507
  */
1116
- 'description': string | null;
1508
+ 'delimiter': string;
1117
1509
  /**
1118
- *
1119
- * @type {Array<string>}
1120
- * @memberof V1WebhooksWebhook
1510
+ * IMAP SPECIAL-USE attribute (RFC 6154). `null` for regular folders.
1511
+ * @type {string}
1512
+ * @memberof V1FoldersFolder
1121
1513
  */
1122
- 'events': Array<V1WebhooksWebhookEventsEnum>;
1514
+ 'specialUse': string | null;
1515
+ /**
1516
+ * Total number of messages in the folder.
1517
+ * @type {number}
1518
+ * @memberof V1FoldersFolder
1519
+ */
1520
+ 'messageCount': number;
1521
+ /**
1522
+ * Number of unread messages in the folder.
1523
+ * @type {number}
1524
+ * @memberof V1FoldersFolder
1525
+ */
1526
+ 'unreadCount': number;
1527
+ }
1528
+ /**
1529
+ * Single folder payload.
1530
+ * @export
1531
+ * @interface V1FoldersResource
1532
+ */
1533
+ export interface V1FoldersResource {
1123
1534
  /**
1124
1535
  *
1536
+ * @type {V1FoldersFolder}
1537
+ * @memberof V1FoldersResource
1538
+ */
1539
+ 'data': V1FoldersFolder;
1540
+ }
1541
+ /**
1542
+ * Body for renaming a folder.
1543
+ * @export
1544
+ * @interface V1FoldersUpdateRequest
1545
+ */
1546
+ export interface V1FoldersUpdateRequest {
1547
+ /**
1548
+ * New folder name. Length 1-100 after trimming.
1125
1549
  * @type {string}
1126
- * @memberof V1WebhooksWebhook
1550
+ * @memberof V1FoldersUpdateRequest
1127
1551
  */
1128
- 'status': V1WebhooksWebhookStatusEnum;
1552
+ 'name': string;
1553
+ }
1554
+ /**
1555
+ * A mailbox the authenticated API token can manage.
1556
+ * @export
1557
+ * @interface V1MeMailbox
1558
+ */
1559
+ export interface V1MeMailbox {
1129
1560
  /**
1130
- *
1561
+ * Unique identifier of the mailbox.
1131
1562
  * @type {string}
1132
- * @memberof V1WebhooksWebhook
1563
+ * @memberof V1MeMailbox
1133
1564
  */
1134
- 'url': string;
1565
+ 'resourceId': string;
1135
1566
  /**
1136
- *
1567
+ * Email address of the mailbox.
1137
1568
  * @type {string}
1138
- * @memberof V1WebhooksWebhook
1569
+ * @memberof V1MeMailbox
1139
1570
  */
1140
- 'createdAt': string;
1571
+ 'address': string;
1572
+ }
1573
+ /**
1574
+ * Authenticated account payload.
1575
+ * @export
1576
+ * @interface V1MeResource
1577
+ */
1578
+ export interface V1MeResource {
1141
1579
  /**
1142
1580
  *
1581
+ * @type {V1MeResourceData}
1582
+ * @memberof V1MeResource
1583
+ */
1584
+ 'data': V1MeResourceData;
1585
+ }
1586
+ /**
1587
+ *
1588
+ * @export
1589
+ * @interface V1MeResourceData
1590
+ */
1591
+ export interface V1MeResourceData {
1592
+ /**
1593
+ * Identifier of the order this API token is scoped to.
1143
1594
  * @type {string}
1144
- * @memberof V1WebhooksWebhook
1595
+ * @memberof V1MeResourceData
1145
1596
  */
1146
- 'updatedAt': string;
1597
+ 'orderResourceId': string;
1598
+ /**
1599
+ * Mailboxes that the authenticated API token can manage.
1600
+ * @type {Array<V1MeMailbox>}
1601
+ * @memberof V1MeResourceData
1602
+ */
1603
+ 'mailboxes': Array<V1MeMailbox>;
1147
1604
  }
1605
+ /**
1606
+ * Storage and message quota usage for the managed mailbox.
1607
+ * @export
1608
+ * @interface V1QuotaQuota
1609
+ */
1610
+ export interface V1QuotaQuota {
1611
+ /**
1612
+ * Per-resource quota breakdown reported by the IMAP server.
1613
+ * @type {Array<V1QuotaQuotaResource>}
1614
+ * @memberof V1QuotaQuota
1615
+ */
1616
+ 'quotas': Array<V1QuotaQuotaResource>;
1617
+ /**
1618
+ * Aggregate storage usage across all resources, in bytes.
1619
+ * @type {number}
1620
+ * @memberof V1QuotaQuota
1621
+ */
1622
+ 'totalUsage': number;
1623
+ /**
1624
+ * Aggregate storage limit across all resources, in bytes.
1625
+ * @type {number}
1626
+ * @memberof V1QuotaQuota
1627
+ */
1628
+ 'totalLimit': number;
1629
+ /**
1630
+ * Aggregate storage usage as a percentage of the total limit.
1631
+ * @type {number}
1632
+ * @memberof V1QuotaQuota
1633
+ */
1634
+ 'totalPercentage': number;
1635
+ /**
1636
+ * Whether the IMAP server reports quota information for this mailbox.
1637
+ * @type {boolean}
1638
+ * @memberof V1QuotaQuota
1639
+ */
1640
+ 'supported': boolean;
1641
+ }
1642
+ /**
1643
+ * Usage and limit for a single IMAP quota resource.
1644
+ * @export
1645
+ * @interface V1QuotaQuotaResource
1646
+ */
1647
+ export interface V1QuotaQuotaResource {
1648
+ /**
1649
+ * Name of the quota resource as reported by the IMAP server.
1650
+ * @type {string}
1651
+ * @memberof V1QuotaQuotaResource
1652
+ */
1653
+ 'resourceName': string;
1654
+ /**
1655
+ * Current usage of the resource (bytes for STORAGE, count for MESSAGE).
1656
+ * @type {number}
1657
+ * @memberof V1QuotaQuotaResource
1658
+ */
1659
+ 'usage': number;
1660
+ /**
1661
+ * Maximum allowed value for the resource (bytes for STORAGE, count for MESSAGE).
1662
+ * @type {number}
1663
+ * @memberof V1QuotaQuotaResource
1664
+ */
1665
+ 'limit': number;
1666
+ /**
1667
+ * Usage as a percentage of the limit.
1668
+ * @type {number}
1669
+ * @memberof V1QuotaQuotaResource
1670
+ */
1671
+ 'percentage': number;
1672
+ }
1673
+ /**
1674
+ * Mailbox quota payload.
1675
+ * @export
1676
+ * @interface V1QuotaResource
1677
+ */
1678
+ export interface V1QuotaResource {
1679
+ /**
1680
+ *
1681
+ * @type {V1QuotaQuota}
1682
+ * @memberof V1QuotaResource
1683
+ */
1684
+ 'data': V1QuotaQuota;
1685
+ }
1686
+ /**
1687
+ * Attachment payload for outgoing mail. Supports regular attachments and inline images linked via Content-ID.
1688
+ * @export
1689
+ * @interface V1SendAttachment
1690
+ */
1691
+ export interface V1SendAttachment {
1692
+ /**
1693
+ * File name shown to the recipient, including extension.
1694
+ * @type {string}
1695
+ * @memberof V1SendAttachment
1696
+ */
1697
+ 'filename': string;
1698
+ /**
1699
+ * Attachment body. Base64-encoded by default; set encoding to switch.
1700
+ * @type {string}
1701
+ * @memberof V1SendAttachment
1702
+ */
1703
+ 'content': string;
1704
+ /**
1705
+ * MIME type of the attachment, e.g. application/pdf. Not inferred from filename; set it explicitly so clients render the attachment correctly.
1706
+ * @type {string}
1707
+ * @memberof V1SendAttachment
1708
+ */
1709
+ 'contentType': string;
1710
+ /**
1711
+ * Content-ID for inline images. Reference from HTML as <img src=\"cid:logo\">.
1712
+ * @type {string}
1713
+ * @memberof V1SendAttachment
1714
+ */
1715
+ 'cid': string;
1716
+ /**
1717
+ * Encoding of content. Defaults to base64.
1718
+ * @type {string}
1719
+ * @memberof V1SendAttachment
1720
+ */
1721
+ 'encoding': string;
1722
+ }
1723
+ /**
1724
+ * Reference to a source message by UID within a folder, used for reply/forward threading. Both fields are required.
1725
+ * @export
1726
+ * @interface V1SendMessageRef
1727
+ */
1728
+ export interface V1SendMessageRef {
1729
+ /**
1730
+ * UID of the source message.
1731
+ * @type {number}
1732
+ * @memberof V1SendMessageRef
1733
+ */
1734
+ 'uid': number;
1735
+ /**
1736
+ * Folder containing the source message.
1737
+ * @type {string}
1738
+ * @memberof V1SendMessageRef
1739
+ */
1740
+ 'folder': string;
1741
+ }
1742
+ /**
1743
+ * Outgoing message payload. At least one of to, cc, or bcc must be present.
1744
+ * @export
1745
+ * @interface V1SendRequest
1746
+ */
1747
+ export interface V1SendRequest {
1748
+ /**
1749
+ * Primary recipient email addresses.
1750
+ * @type {Array<string>}
1751
+ * @memberof V1SendRequest
1752
+ */
1753
+ 'to': Array<string>;
1754
+ /**
1755
+ * Sender display name shown in the From header alongside the mailbox address.
1756
+ * @type {string}
1757
+ * @memberof V1SendRequest
1758
+ */
1759
+ 'displayName': string;
1760
+ /**
1761
+ * Carbon-copy recipient email addresses.
1762
+ * @type {Array<string>}
1763
+ * @memberof V1SendRequest
1764
+ */
1765
+ 'cc': Array<string>;
1766
+ /**
1767
+ * Blind-carbon-copy recipient email addresses. Not visible to other recipients.
1768
+ * @type {Array<string>}
1769
+ * @memberof V1SendRequest
1770
+ */
1771
+ 'bcc': Array<string>;
1772
+ /**
1773
+ * Message subject line.
1774
+ * @type {string}
1775
+ * @memberof V1SendRequest
1776
+ */
1777
+ 'subject': string;
1778
+ /**
1779
+ * Plain-text body. Optional; if both text and html are omitted the message is sent without a body.
1780
+ * @type {string}
1781
+ * @memberof V1SendRequest
1782
+ */
1783
+ 'text': string;
1784
+ /**
1785
+ * 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.
1786
+ * @type {string}
1787
+ * @memberof V1SendRequest
1788
+ */
1789
+ 'html': string;
1790
+ /**
1791
+ * Files to attach. Inline images set cid; regular attachments omit it.
1792
+ * @type {Array<V1SendAttachment>}
1793
+ * @memberof V1SendRequest
1794
+ */
1795
+ 'attachments': Array<V1SendAttachment>;
1796
+ /**
1797
+ * 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.
1798
+ * @type {V1SendMessageRef}
1799
+ * @memberof V1SendRequest
1800
+ */
1801
+ 'inReplyTo': V1SendMessageRef;
1802
+ /**
1803
+ * 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.
1804
+ * @type {V1SendMessageRef}
1805
+ * @memberof V1SendRequest
1806
+ */
1807
+ 'forwardOf': V1SendMessageRef;
1808
+ }
1809
+ /**
1810
+ * Paginated list of webhooks.
1811
+ * @export
1812
+ * @interface V1WebhooksCollection
1813
+ */
1814
+ export interface V1WebhooksCollection {
1815
+ /**
1816
+ *
1817
+ * @type {Array<V1WebhooksWebhook>}
1818
+ * @memberof V1WebhooksCollection
1819
+ */
1820
+ 'data': Array<V1WebhooksWebhook>;
1821
+ /**
1822
+ *
1823
+ * @type {Pagination}
1824
+ * @memberof V1WebhooksCollection
1825
+ */
1826
+ 'pagination': Pagination;
1827
+ }
1828
+ /**
1829
+ * Body for creating a webhook.
1830
+ * @export
1831
+ * @interface V1WebhooksCreateRequest
1832
+ */
1833
+ export interface V1WebhooksCreateRequest {
1834
+ /**
1835
+ * Human-readable webhook name.
1836
+ * @type {string}
1837
+ * @memberof V1WebhooksCreateRequest
1838
+ */
1839
+ 'name': string;
1840
+ /**
1841
+ * Optional free-text note about the webhook purpose.
1842
+ * @type {string}
1843
+ * @memberof V1WebhooksCreateRequest
1844
+ */
1845
+ 'description': string | null;
1846
+ /**
1847
+ * Event types that trigger a delivery.
1848
+ * @type {Array<string>}
1849
+ * @memberof V1WebhooksCreateRequest
1850
+ */
1851
+ 'events': Array<V1WebhooksCreateRequestEventsEnum>;
1852
+ /**
1853
+ * Initial delivery state. Only active webhooks receive events.
1854
+ * @type {string}
1855
+ * @memberof V1WebhooksCreateRequest
1856
+ */
1857
+ 'status': V1WebhooksCreateRequestStatusEnum;
1858
+ /**
1859
+ * 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).
1860
+ * @type {string}
1861
+ * @memberof V1WebhooksCreateRequest
1862
+ */
1863
+ 'url': string;
1864
+ }
1865
+
1866
+ export const V1WebhooksCreateRequestEventsEnum = {
1867
+ MessageReceived: 'message.received'
1868
+ } as const;
1869
+
1870
+ export type V1WebhooksCreateRequestEventsEnum = typeof V1WebhooksCreateRequestEventsEnum[keyof typeof V1WebhooksCreateRequestEventsEnum];
1871
+ export const V1WebhooksCreateRequestStatusEnum = {
1872
+ Active: 'active',
1873
+ Paused: 'paused',
1874
+ Disabled: 'disabled'
1875
+ } as const;
1876
+
1877
+ export type V1WebhooksCreateRequestStatusEnum = typeof V1WebhooksCreateRequestStatusEnum[keyof typeof V1WebhooksCreateRequestStatusEnum];
1878
+
1879
+ /**
1880
+ * Single webhook payload.
1881
+ * @export
1882
+ * @interface V1WebhooksResource
1883
+ */
1884
+ export interface V1WebhooksResource {
1885
+ /**
1886
+ *
1887
+ * @type {V1WebhooksWebhook}
1888
+ * @memberof V1WebhooksResource
1889
+ */
1890
+ 'data': V1WebhooksWebhook;
1891
+ }
1892
+ /**
1893
+ * Single webhook payload including the one-time secret.
1894
+ * @export
1895
+ * @interface V1WebhooksResourceWithSecret
1896
+ */
1897
+ export interface V1WebhooksResourceWithSecret {
1898
+ /**
1899
+ *
1900
+ * @type {V1WebhooksWebhookWithSecret}
1901
+ * @memberof V1WebhooksResourceWithSecret
1902
+ */
1903
+ 'data': V1WebhooksWebhookWithSecret;
1904
+ }
1905
+ /**
1906
+ * Result of a webhook test delivery.
1907
+ * @export
1908
+ * @interface V1WebhooksTestResult
1909
+ */
1910
+ export interface V1WebhooksTestResult {
1911
+ /**
1912
+ *
1913
+ * @type {V1WebhooksTestResultData}
1914
+ * @memberof V1WebhooksTestResult
1915
+ */
1916
+ 'data': V1WebhooksTestResultData;
1917
+ }
1918
+ /**
1919
+ *
1920
+ * @export
1921
+ * @interface V1WebhooksTestResultData
1922
+ */
1923
+ export interface V1WebhooksTestResultData {
1924
+ /**
1925
+ *
1926
+ * @type {number}
1927
+ * @memberof V1WebhooksTestResultData
1928
+ */
1929
+ 'httpStatus': number;
1930
+ /**
1931
+ *
1932
+ * @type {boolean}
1933
+ * @memberof V1WebhooksTestResultData
1934
+ */
1935
+ 'success': boolean;
1936
+ /**
1937
+ *
1938
+ * @type {string}
1939
+ * @memberof V1WebhooksTestResultData
1940
+ */
1941
+ 'error': string | null;
1942
+ }
1943
+ /**
1944
+ * Body for partially updating a webhook. All fields optional; only present fields are applied.
1945
+ * @export
1946
+ * @interface V1WebhooksUpdateRequest
1947
+ */
1948
+ export interface V1WebhooksUpdateRequest {
1949
+ /**
1950
+ * Human-readable webhook name.
1951
+ * @type {string}
1952
+ * @memberof V1WebhooksUpdateRequest
1953
+ */
1954
+ 'name': string;
1955
+ /**
1956
+ * Free-text note about the webhook purpose. Send null to clear.
1957
+ * @type {string}
1958
+ * @memberof V1WebhooksUpdateRequest
1959
+ */
1960
+ 'description': string | null;
1961
+ /**
1962
+ * Event types that trigger a delivery. Replaces the current list.
1963
+ * @type {Array<string>}
1964
+ * @memberof V1WebhooksUpdateRequest
1965
+ */
1966
+ 'events': Array<V1WebhooksUpdateRequestEventsEnum>;
1967
+ /**
1968
+ * Delivery state. Only active webhooks receive events; paused keeps config but stops deliveries.
1969
+ * @type {string}
1970
+ * @memberof V1WebhooksUpdateRequest
1971
+ */
1972
+ 'status': V1WebhooksUpdateRequestStatusEnum;
1973
+ /**
1974
+ * 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).
1975
+ * @type {string}
1976
+ * @memberof V1WebhooksUpdateRequest
1977
+ */
1978
+ 'url': string;
1979
+ }
1980
+
1981
+ export const V1WebhooksUpdateRequestEventsEnum = {
1982
+ MessageReceived: 'message.received'
1983
+ } as const;
1984
+
1985
+ export type V1WebhooksUpdateRequestEventsEnum = typeof V1WebhooksUpdateRequestEventsEnum[keyof typeof V1WebhooksUpdateRequestEventsEnum];
1986
+ export const V1WebhooksUpdateRequestStatusEnum = {
1987
+ Active: 'active',
1988
+ Paused: 'paused',
1989
+ Disabled: 'disabled'
1990
+ } as const;
1991
+
1992
+ export type V1WebhooksUpdateRequestStatusEnum = typeof V1WebhooksUpdateRequestStatusEnum[keyof typeof V1WebhooksUpdateRequestStatusEnum];
1993
+
1994
+ /**
1995
+ * Webhook configured for a managed mailbox.
1996
+ * @export
1997
+ * @interface V1WebhooksWebhook
1998
+ */
1999
+ export interface V1WebhooksWebhook {
2000
+ /**
2001
+ * Unique webhook identifier (UUID v7).
2002
+ * @type {string}
2003
+ * @memberof V1WebhooksWebhook
2004
+ */
2005
+ 'id': string;
2006
+ /**
2007
+ * Resource ID of the mailbox this webhook is attached to.
2008
+ * @type {string}
2009
+ * @memberof V1WebhooksWebhook
2010
+ */
2011
+ 'accountResourceId': string;
2012
+ /**
2013
+ * Email address of the mailbox.
2014
+ * @type {string}
2015
+ * @memberof V1WebhooksWebhook
2016
+ */
2017
+ 'mailbox': string;
2018
+ /**
2019
+ *
2020
+ * @type {string}
2021
+ * @memberof V1WebhooksWebhook
2022
+ */
2023
+ 'name': string;
2024
+ /**
2025
+ *
2026
+ * @type {string}
2027
+ * @memberof V1WebhooksWebhook
2028
+ */
2029
+ 'description': string | null;
2030
+ /**
2031
+ *
2032
+ * @type {Array<string>}
2033
+ * @memberof V1WebhooksWebhook
2034
+ */
2035
+ 'events': Array<V1WebhooksWebhookEventsEnum>;
2036
+ /**
2037
+ *
2038
+ * @type {string}
2039
+ * @memberof V1WebhooksWebhook
2040
+ */
2041
+ 'status': V1WebhooksWebhookStatusEnum;
2042
+ /**
2043
+ *
2044
+ * @type {string}
2045
+ * @memberof V1WebhooksWebhook
2046
+ */
2047
+ 'url': string;
2048
+ /**
2049
+ *
2050
+ * @type {string}
2051
+ * @memberof V1WebhooksWebhook
2052
+ */
2053
+ 'createdAt': string;
2054
+ /**
2055
+ *
2056
+ * @type {string}
2057
+ * @memberof V1WebhooksWebhook
2058
+ */
2059
+ 'updatedAt': string;
2060
+ }
2061
+
2062
+ export const V1WebhooksWebhookEventsEnum = {
2063
+ MessageReceived: 'message.received'
2064
+ } as const;
2065
+
2066
+ export type V1WebhooksWebhookEventsEnum = typeof V1WebhooksWebhookEventsEnum[keyof typeof V1WebhooksWebhookEventsEnum];
2067
+ export const V1WebhooksWebhookStatusEnum = {
2068
+ Active: 'active',
2069
+ Paused: 'paused',
2070
+ Disabled: 'disabled'
2071
+ } as const;
2072
+
2073
+ export type V1WebhooksWebhookStatusEnum = typeof V1WebhooksWebhookStatusEnum[keyof typeof V1WebhooksWebhookStatusEnum];
2074
+
2075
+ /**
2076
+ * 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.
2077
+ * @export
2078
+ * @interface V1WebhooksWebhookWithSecret
2079
+ */
2080
+ export interface V1WebhooksWebhookWithSecret {
2081
+ /**
2082
+ * Unique webhook identifier (UUID v7).
2083
+ * @type {string}
2084
+ * @memberof V1WebhooksWebhookWithSecret
2085
+ */
2086
+ 'id': string;
2087
+ /**
2088
+ * Resource ID of the mailbox this webhook is attached to.
2089
+ * @type {string}
2090
+ * @memberof V1WebhooksWebhookWithSecret
2091
+ */
2092
+ 'accountResourceId': string;
2093
+ /**
2094
+ * Email address of the mailbox.
2095
+ * @type {string}
2096
+ * @memberof V1WebhooksWebhookWithSecret
2097
+ */
2098
+ 'mailbox': string;
2099
+ /**
2100
+ *
2101
+ * @type {string}
2102
+ * @memberof V1WebhooksWebhookWithSecret
2103
+ */
2104
+ 'name': string;
2105
+ /**
2106
+ *
2107
+ * @type {string}
2108
+ * @memberof V1WebhooksWebhookWithSecret
2109
+ */
2110
+ 'description': string | null;
2111
+ /**
2112
+ *
2113
+ * @type {Array<string>}
2114
+ * @memberof V1WebhooksWebhookWithSecret
2115
+ */
2116
+ 'events': Array<V1WebhooksWebhookWithSecretEventsEnum>;
2117
+ /**
2118
+ *
2119
+ * @type {string}
2120
+ * @memberof V1WebhooksWebhookWithSecret
2121
+ */
2122
+ 'status': V1WebhooksWebhookWithSecretStatusEnum;
2123
+ /**
2124
+ *
2125
+ * @type {string}
2126
+ * @memberof V1WebhooksWebhookWithSecret
2127
+ */
2128
+ 'url': string;
2129
+ /**
2130
+ *
2131
+ * @type {string}
2132
+ * @memberof V1WebhooksWebhookWithSecret
2133
+ */
2134
+ 'createdAt': string;
2135
+ /**
2136
+ *
2137
+ * @type {string}
2138
+ * @memberof V1WebhooksWebhookWithSecret
2139
+ */
2140
+ 'updatedAt': string;
2141
+ /**
2142
+ *
2143
+ * @type {string}
2144
+ * @memberof V1WebhooksWebhookWithSecret
2145
+ */
2146
+ 'secret': string;
2147
+ }
2148
+
2149
+ export const V1WebhooksWebhookWithSecretEventsEnum = {
2150
+ MessageReceived: 'message.received'
2151
+ } as const;
2152
+
2153
+ export type V1WebhooksWebhookWithSecretEventsEnum = typeof V1WebhooksWebhookWithSecretEventsEnum[keyof typeof V1WebhooksWebhookWithSecretEventsEnum];
2154
+ export const V1WebhooksWebhookWithSecretStatusEnum = {
2155
+ Active: 'active',
2156
+ Paused: 'paused',
2157
+ Disabled: 'disabled'
2158
+ } as const;
2159
+
2160
+ export type V1WebhooksWebhookWithSecretStatusEnum = typeof V1WebhooksWebhookWithSecretStatusEnum[keyof typeof V1WebhooksWebhookWithSecretStatusEnum];
2161
+
2162
+
2163
+ /**
2164
+ * AccountApi - axios parameter creator
2165
+ * @export
2166
+ */
2167
+ export const AccountApiAxiosParamCreator = function (configuration?: Configuration) {
2168
+ return {
2169
+ /**
2170
+ * Returns the authenticated account and the mailboxes it can manage.
2171
+ * @summary Get the authenticated account
2172
+ * @param {*} [options] Override http request option.
2173
+ * @throws {RequiredError}
2174
+ */
2175
+ getCurrentAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2176
+ const localVarPath = `/api/v1/me`;
2177
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2178
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2179
+ let baseOptions;
2180
+ if (configuration) {
2181
+ baseOptions = configuration.baseOptions;
2182
+ }
2183
+
2184
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2185
+ const localVarHeaderParameter = {} as any;
2186
+ const localVarQueryParameter = {} as any;
2187
+
2188
+ // authentication BearerAuth required
2189
+ // http bearer authentication required
2190
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2191
+
2192
+
2193
+
2194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2196
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2197
+
2198
+ return {
2199
+ url: toPathString(localVarUrlObj),
2200
+ options: localVarRequestOptions,
2201
+ };
2202
+ },
2203
+ }
2204
+ };
2205
+
2206
+ /**
2207
+ * AccountApi - functional programming interface
2208
+ * @export
2209
+ */
2210
+ export const AccountApiFp = function(configuration?: Configuration) {
2211
+ const localVarAxiosParamCreator = AccountApiAxiosParamCreator(configuration)
2212
+ return {
2213
+ /**
2214
+ * Returns the authenticated account and the mailboxes it can manage.
2215
+ * @summary Get the authenticated account
2216
+ * @param {*} [options] Override http request option.
2217
+ * @throws {RequiredError}
2218
+ */
2219
+ async getCurrentAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1MeResource>> {
2220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentAccount(options);
2221
+ const localVarOperationServerBasePath = operationServerMap['AccountApi.getCurrentAccount']?.[0]?.url;
2222
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2223
+ },
2224
+ }
2225
+ };
2226
+
2227
+ /**
2228
+ * AccountApi - factory interface
2229
+ * @export
2230
+ */
2231
+ export const AccountApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2232
+ const localVarFp = AccountApiFp(configuration)
2233
+ return {
2234
+ /**
2235
+ * Returns the authenticated account and the mailboxes it can manage.
2236
+ * @summary Get the authenticated account
2237
+ * @param {*} [options] Override http request option.
2238
+ * @throws {RequiredError}
2239
+ */
2240
+ getCurrentAccount(options?: RawAxiosRequestConfig): AxiosPromise<V1MeResource> {
2241
+ return localVarFp.getCurrentAccount(options).then((request) => request(axios, basePath));
2242
+ },
2243
+ };
2244
+ };
2245
+
2246
+ /**
2247
+ * AccountApi - object-oriented interface
2248
+ * @export
2249
+ * @class AccountApi
2250
+ * @extends {BaseAPI}
2251
+ */
2252
+ export class AccountApi extends BaseAPI {
2253
+ /**
2254
+ * Returns the authenticated account and the mailboxes it can manage.
2255
+ * @summary Get the authenticated account
2256
+ * @param {*} [options] Override http request option.
2257
+ * @throws {RequiredError}
2258
+ * @memberof AccountApi
2259
+ */
2260
+ public getCurrentAccount(options?: RawAxiosRequestConfig) {
2261
+ return AccountApiFp(this.configuration).getCurrentAccount(options).then((request) => request(this.axios, this.basePath));
2262
+ }
2263
+ }
2264
+
2265
+
2266
+
2267
+ /**
2268
+ * CalendarEventsApi - axios parameter creator
2269
+ * @export
2270
+ */
2271
+ export const CalendarEventsApiAxiosParamCreator = function (configuration?: Configuration) {
2272
+ return {
2273
+ /**
2274
+ * 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`.
2275
+ * @summary Create calendar event
2276
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2277
+ * @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;.
2278
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2279
+ * @param {*} [options] Override http request option.
2280
+ * @throws {RequiredError}
2281
+ */
2282
+ createCalendarEvent: async (mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2283
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2284
+ assertParamExists('createCalendarEvent', 'mailboxResourceId', mailboxResourceId)
2285
+ // verify required parameter 'calendarUuid' is not null or undefined
2286
+ assertParamExists('createCalendarEvent', 'calendarUuid', calendarUuid)
2287
+ // verify required parameter 'v1CalendarEventsCreateRequest' is not null or undefined
2288
+ assertParamExists('createCalendarEvent', 'v1CalendarEventsCreateRequest', v1CalendarEventsCreateRequest)
2289
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events`
2290
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2291
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid));
2292
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2293
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2294
+ let baseOptions;
2295
+ if (configuration) {
2296
+ baseOptions = configuration.baseOptions;
2297
+ }
2298
+
2299
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2300
+ const localVarHeaderParameter = {} as any;
2301
+ const localVarQueryParameter = {} as any;
2302
+
2303
+ // authentication BearerAuth required
2304
+ // http bearer authentication required
2305
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2306
+
2307
+
2308
+
2309
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2310
+
2311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2313
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2314
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CalendarEventsCreateRequest, localVarRequestOptions, configuration)
2315
+
2316
+ return {
2317
+ url: toPathString(localVarUrlObj),
2318
+ options: localVarRequestOptions,
2319
+ };
2320
+ },
2321
+ /**
2322
+ * 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.
2323
+ * @summary Delete calendar event
2324
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2325
+ * @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;.
2326
+ * @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.
2327
+ * @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.
2328
+ * @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;.
2329
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2330
+ * @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.
2331
+ * @param {*} [options] Override http request option.
2332
+ * @throws {RequiredError}
2333
+ */
2334
+ deleteCalendarEvent: async (mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2335
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2336
+ assertParamExists('deleteCalendarEvent', 'mailboxResourceId', mailboxResourceId)
2337
+ // verify required parameter 'calendarUuid' is not null or undefined
2338
+ assertParamExists('deleteCalendarEvent', 'calendarUuid', calendarUuid)
2339
+ // verify required parameter 'eventUuid' is not null or undefined
2340
+ assertParamExists('deleteCalendarEvent', 'eventUuid', eventUuid)
2341
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events/{eventUuid}`
2342
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2343
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid))
2344
+ .replace(`{${"eventUuid"}}`, encodePathParam('eventUuid', eventUuid));
2345
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2346
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2347
+ let baseOptions;
2348
+ if (configuration) {
2349
+ baseOptions = configuration.baseOptions;
2350
+ }
2351
+
2352
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
2353
+ const localVarHeaderParameter = {} as any;
2354
+ const localVarQueryParameter = {} as any;
2355
+
2356
+ // authentication BearerAuth required
2357
+ // http bearer authentication required
2358
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2359
+
2360
+ if (scope !== undefined) {
2361
+ localVarQueryParameter['scope'] = scope;
2362
+ }
2363
+
2364
+ if (recurrenceId !== undefined) {
2365
+ localVarQueryParameter['recurrenceId'] = (recurrenceId as any instanceof Date) ?
2366
+ (recurrenceId as any).toISOString() :
2367
+ recurrenceId;
2368
+ }
2369
+
2370
+ if (notifyAttendees !== undefined) {
2371
+ localVarQueryParameter['notifyAttendees'] = notifyAttendees;
2372
+ }
2373
+
2374
+
2375
+
2376
+ if (ifMatch != null) {
2377
+ localVarHeaderParameter['If-Match'] = String(ifMatch);
2378
+ }
2379
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2380
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2381
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2382
+
2383
+ return {
2384
+ url: toPathString(localVarUrlObj),
2385
+ options: localVarRequestOptions,
2386
+ };
2387
+ },
2388
+ /**
2389
+ * 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.
2390
+ * @summary Get calendar event
2391
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2392
+ * @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;.
2393
+ * @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.
2394
+ * @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.
2395
+ * @param {*} [options] Override http request option.
2396
+ * @throws {RequiredError}
2397
+ */
2398
+ getCalendarEvent: async (mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2399
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2400
+ assertParamExists('getCalendarEvent', 'mailboxResourceId', mailboxResourceId)
2401
+ // verify required parameter 'calendarUuid' is not null or undefined
2402
+ assertParamExists('getCalendarEvent', 'calendarUuid', calendarUuid)
2403
+ // verify required parameter 'eventUuid' is not null or undefined
2404
+ assertParamExists('getCalendarEvent', 'eventUuid', eventUuid)
2405
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events/{eventUuid}`
2406
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2407
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid))
2408
+ .replace(`{${"eventUuid"}}`, encodePathParam('eventUuid', eventUuid));
2409
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2410
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2411
+ let baseOptions;
2412
+ if (configuration) {
2413
+ baseOptions = configuration.baseOptions;
2414
+ }
2415
+
2416
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2417
+ const localVarHeaderParameter = {} as any;
2418
+ const localVarQueryParameter = {} as any;
2419
+
2420
+ // authentication BearerAuth required
2421
+ // http bearer authentication required
2422
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2423
+
2424
+ if (recurrenceId !== undefined) {
2425
+ localVarQueryParameter['recurrenceId'] = (recurrenceId as any instanceof Date) ?
2426
+ (recurrenceId as any).toISOString() :
2427
+ recurrenceId;
2428
+ }
2429
+
2430
+
2431
+
2432
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2433
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2434
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2435
+
2436
+ return {
2437
+ url: toPathString(localVarUrlObj),
2438
+ options: localVarRequestOptions,
2439
+ };
2440
+ },
2441
+ /**
2442
+ * 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.
2443
+ * @summary List calendar events
2444
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2445
+ * @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;.
2446
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2447
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2448
+ * @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;.
2449
+ * @param {*} [options] Override http request option.
2450
+ * @throws {RequiredError}
2451
+ */
2452
+ listCalendarEvents: async (mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2453
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2454
+ assertParamExists('listCalendarEvents', 'mailboxResourceId', mailboxResourceId)
2455
+ // verify required parameter 'calendarUuid' is not null or undefined
2456
+ assertParamExists('listCalendarEvents', 'calendarUuid', calendarUuid)
2457
+ // verify required parameter 'start' is not null or undefined
2458
+ assertParamExists('listCalendarEvents', 'start', start)
2459
+ // verify required parameter 'end' is not null or undefined
2460
+ assertParamExists('listCalendarEvents', 'end', end)
2461
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events`
2462
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2463
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid));
2464
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2465
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2466
+ let baseOptions;
2467
+ if (configuration) {
2468
+ baseOptions = configuration.baseOptions;
2469
+ }
2470
+
2471
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2472
+ const localVarHeaderParameter = {} as any;
2473
+ const localVarQueryParameter = {} as any;
2474
+
2475
+ // authentication BearerAuth required
2476
+ // http bearer authentication required
2477
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2478
+
2479
+ if (start !== undefined) {
2480
+ localVarQueryParameter['start'] = (start as any instanceof Date) ?
2481
+ (start as any).toISOString() :
2482
+ start;
2483
+ }
2484
+
2485
+ if (end !== undefined) {
2486
+ localVarQueryParameter['end'] = (end as any instanceof Date) ?
2487
+ (end as any).toISOString() :
2488
+ end;
2489
+ }
2490
+
2491
+ if (timeZone !== undefined) {
2492
+ localVarQueryParameter['timeZone'] = timeZone;
2493
+ }
2494
+
2495
+
2496
+
2497
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2498
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2499
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2500
+
2501
+ return {
2502
+ url: toPathString(localVarUrlObj),
2503
+ options: localVarRequestOptions,
2504
+ };
2505
+ },
2506
+ /**
2507
+ * 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`.
2508
+ * @summary Reply to calendar event
2509
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2510
+ * @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;.
2511
+ * @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.
2512
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2513
+ * @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.
2514
+ * @param {*} [options] Override http request option.
2515
+ * @throws {RequiredError}
2516
+ */
2517
+ replyToCalendarEvent: async (mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2518
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2519
+ assertParamExists('replyToCalendarEvent', 'mailboxResourceId', mailboxResourceId)
2520
+ // verify required parameter 'calendarUuid' is not null or undefined
2521
+ assertParamExists('replyToCalendarEvent', 'calendarUuid', calendarUuid)
2522
+ // verify required parameter 'eventUuid' is not null or undefined
2523
+ assertParamExists('replyToCalendarEvent', 'eventUuid', eventUuid)
2524
+ // verify required parameter 'v1CalendarEventsReplyRequest' is not null or undefined
2525
+ assertParamExists('replyToCalendarEvent', 'v1CalendarEventsReplyRequest', v1CalendarEventsReplyRequest)
2526
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events/{eventUuid}/reply`
2527
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2528
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid))
2529
+ .replace(`{${"eventUuid"}}`, encodePathParam('eventUuid', eventUuid));
2530
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2531
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2532
+ let baseOptions;
2533
+ if (configuration) {
2534
+ baseOptions = configuration.baseOptions;
2535
+ }
2536
+
2537
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2538
+ const localVarHeaderParameter = {} as any;
2539
+ const localVarQueryParameter = {} as any;
2540
+
2541
+ // authentication BearerAuth required
2542
+ // http bearer authentication required
2543
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2544
+
2545
+
2546
+
2547
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2548
+
2549
+ if (ifMatch != null) {
2550
+ localVarHeaderParameter['If-Match'] = String(ifMatch);
2551
+ }
2552
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2553
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2554
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2555
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CalendarEventsReplyRequest, localVarRequestOptions, configuration)
2556
+
2557
+ return {
2558
+ url: toPathString(localVarUrlObj),
2559
+ options: localVarRequestOptions,
2560
+ };
2561
+ },
2562
+ /**
2563
+ * 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`.
2564
+ * @summary Reschedule calendar event
2565
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2566
+ * @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;.
2567
+ * @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.
2568
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2569
+ * @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.
2570
+ * @param {*} [options] Override http request option.
2571
+ * @throws {RequiredError}
2572
+ */
2573
+ rescheduleCalendarEvent: async (mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2574
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2575
+ assertParamExists('rescheduleCalendarEvent', 'mailboxResourceId', mailboxResourceId)
2576
+ // verify required parameter 'calendarUuid' is not null or undefined
2577
+ assertParamExists('rescheduleCalendarEvent', 'calendarUuid', calendarUuid)
2578
+ // verify required parameter 'eventUuid' is not null or undefined
2579
+ assertParamExists('rescheduleCalendarEvent', 'eventUuid', eventUuid)
2580
+ // verify required parameter 'v1CalendarEventsRescheduleRequest' is not null or undefined
2581
+ assertParamExists('rescheduleCalendarEvent', 'v1CalendarEventsRescheduleRequest', v1CalendarEventsRescheduleRequest)
2582
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events/{eventUuid}/reschedule`
2583
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2584
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid))
2585
+ .replace(`{${"eventUuid"}}`, encodePathParam('eventUuid', eventUuid));
2586
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2587
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2588
+ let baseOptions;
2589
+ if (configuration) {
2590
+ baseOptions = configuration.baseOptions;
2591
+ }
2592
+
2593
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2594
+ const localVarHeaderParameter = {} as any;
2595
+ const localVarQueryParameter = {} as any;
2596
+
2597
+ // authentication BearerAuth required
2598
+ // http bearer authentication required
2599
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2600
+
2601
+
2602
+
2603
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2604
+
2605
+ if (ifMatch != null) {
2606
+ localVarHeaderParameter['If-Match'] = String(ifMatch);
2607
+ }
2608
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2609
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2610
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2611
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CalendarEventsRescheduleRequest, localVarRequestOptions, configuration)
2612
+
2613
+ return {
2614
+ url: toPathString(localVarUrlObj),
2615
+ options: localVarRequestOptions,
2616
+ };
2617
+ },
2618
+ /**
2619
+ * 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`.
2620
+ * @summary Update calendar event
2621
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2622
+ * @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;.
2623
+ * @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.
2624
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2625
+ * @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.
2626
+ * @param {*} [options] Override http request option.
2627
+ * @throws {RequiredError}
2628
+ */
2629
+ updateCalendarEvent: async (mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
2630
+ // verify required parameter 'mailboxResourceId' is not null or undefined
2631
+ assertParamExists('updateCalendarEvent', 'mailboxResourceId', mailboxResourceId)
2632
+ // verify required parameter 'calendarUuid' is not null or undefined
2633
+ assertParamExists('updateCalendarEvent', 'calendarUuid', calendarUuid)
2634
+ // verify required parameter 'eventUuid' is not null or undefined
2635
+ assertParamExists('updateCalendarEvent', 'eventUuid', eventUuid)
2636
+ // verify required parameter 'v1CalendarEventsUpdateRequest' is not null or undefined
2637
+ assertParamExists('updateCalendarEvent', 'v1CalendarEventsUpdateRequest', v1CalendarEventsUpdateRequest)
2638
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}/events/{eventUuid}`
2639
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
2640
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid))
2641
+ .replace(`{${"eventUuid"}}`, encodePathParam('eventUuid', eventUuid));
2642
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2643
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2644
+ let baseOptions;
2645
+ if (configuration) {
2646
+ baseOptions = configuration.baseOptions;
2647
+ }
2648
+
2649
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
2650
+ const localVarHeaderParameter = {} as any;
2651
+ const localVarQueryParameter = {} as any;
2652
+
2653
+ // authentication BearerAuth required
2654
+ // http bearer authentication required
2655
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
2656
+
2657
+
2658
+
2659
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2660
+
2661
+ if (ifMatch != null) {
2662
+ localVarHeaderParameter['If-Match'] = String(ifMatch);
2663
+ }
2664
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2665
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2666
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2667
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CalendarEventsUpdateRequest, localVarRequestOptions, configuration)
2668
+
2669
+ return {
2670
+ url: toPathString(localVarUrlObj),
2671
+ options: localVarRequestOptions,
2672
+ };
2673
+ },
2674
+ }
2675
+ };
2676
+
2677
+ /**
2678
+ * CalendarEventsApi - functional programming interface
2679
+ * @export
2680
+ */
2681
+ export const CalendarEventsApiFp = function(configuration?: Configuration) {
2682
+ const localVarAxiosParamCreator = CalendarEventsApiAxiosParamCreator(configuration)
2683
+ return {
2684
+ /**
2685
+ * 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`.
2686
+ * @summary Create calendar event
2687
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2688
+ * @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;.
2689
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2690
+ * @param {*} [options] Override http request option.
2691
+ * @throws {RequiredError}
2692
+ */
2693
+ async createCalendarEvent(mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>> {
2694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCalendarEvent(mailboxResourceId, calendarUuid, v1CalendarEventsCreateRequest, options);
2695
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.createCalendarEvent']?.[0]?.url;
2696
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2697
+ },
2698
+ /**
2699
+ * 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.
2700
+ * @summary Delete calendar event
2701
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2702
+ * @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;.
2703
+ * @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.
2704
+ * @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.
2705
+ * @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;.
2706
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2707
+ * @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.
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ */
2711
+ async deleteCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
2712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, scope, recurrenceId, notifyAttendees, ifMatch, options);
2713
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.deleteCalendarEvent']?.[0]?.url;
2714
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2715
+ },
2716
+ /**
2717
+ * 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.
2718
+ * @summary Get calendar event
2719
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2720
+ * @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;.
2721
+ * @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.
2722
+ * @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.
2723
+ * @param {*} [options] Override http request option.
2724
+ * @throws {RequiredError}
2725
+ */
2726
+ async getCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>> {
2727
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, recurrenceId, options);
2728
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.getCalendarEvent']?.[0]?.url;
2729
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2730
+ },
2731
+ /**
2732
+ * 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.
2733
+ * @summary List calendar events
2734
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2735
+ * @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;.
2736
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2737
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2738
+ * @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;.
2739
+ * @param {*} [options] Override http request option.
2740
+ * @throws {RequiredError}
2741
+ */
2742
+ async listCalendarEvents(mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsCollection>> {
2743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCalendarEvents(mailboxResourceId, calendarUuid, start, end, timeZone, options);
2744
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.listCalendarEvents']?.[0]?.url;
2745
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2746
+ },
2747
+ /**
2748
+ * 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`.
2749
+ * @summary Reply to calendar event
2750
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2751
+ * @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;.
2752
+ * @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.
2753
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2754
+ * @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.
2755
+ * @param {*} [options] Override http request option.
2756
+ * @throws {RequiredError}
2757
+ */
2758
+ async replyToCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>> {
2759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.replyToCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsReplyRequest, ifMatch, options);
2760
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.replyToCalendarEvent']?.[0]?.url;
2761
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2762
+ },
2763
+ /**
2764
+ * 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`.
2765
+ * @summary Reschedule calendar event
2766
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2767
+ * @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;.
2768
+ * @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.
2769
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2770
+ * @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.
2771
+ * @param {*} [options] Override http request option.
2772
+ * @throws {RequiredError}
2773
+ */
2774
+ async rescheduleCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>> {
2775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rescheduleCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsRescheduleRequest, ifMatch, options);
2776
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.rescheduleCalendarEvent']?.[0]?.url;
2777
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2778
+ },
2779
+ /**
2780
+ * 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`.
2781
+ * @summary Update calendar event
2782
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2783
+ * @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;.
2784
+ * @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.
2785
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2786
+ * @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.
2787
+ * @param {*} [options] Override http request option.
2788
+ * @throws {RequiredError}
2789
+ */
2790
+ async updateCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarEventsResource>> {
2791
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsUpdateRequest, ifMatch, options);
2792
+ const localVarOperationServerBasePath = operationServerMap['CalendarEventsApi.updateCalendarEvent']?.[0]?.url;
2793
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2794
+ },
2795
+ }
2796
+ };
2797
+
2798
+ /**
2799
+ * CalendarEventsApi - factory interface
2800
+ * @export
2801
+ */
2802
+ export const CalendarEventsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
2803
+ const localVarFp = CalendarEventsApiFp(configuration)
2804
+ return {
2805
+ /**
2806
+ * 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`.
2807
+ * @summary Create calendar event
2808
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2809
+ * @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;.
2810
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2811
+ * @param {*} [options] Override http request option.
2812
+ * @throws {RequiredError}
2813
+ */
2814
+ createCalendarEvent(mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource> {
2815
+ return localVarFp.createCalendarEvent(mailboxResourceId, calendarUuid, v1CalendarEventsCreateRequest, options).then((request) => request(axios, basePath));
2816
+ },
2817
+ /**
2818
+ * 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.
2819
+ * @summary Delete calendar event
2820
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2821
+ * @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;.
2822
+ * @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.
2823
+ * @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.
2824
+ * @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;.
2825
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2826
+ * @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.
2827
+ * @param {*} [options] Override http request option.
2828
+ * @throws {RequiredError}
2829
+ */
2830
+ deleteCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2831
+ return localVarFp.deleteCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, scope, recurrenceId, notifyAttendees, ifMatch, options).then((request) => request(axios, basePath));
2832
+ },
2833
+ /**
2834
+ * 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.
2835
+ * @summary Get calendar event
2836
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2837
+ * @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;.
2838
+ * @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.
2839
+ * @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.
2840
+ * @param {*} [options] Override http request option.
2841
+ * @throws {RequiredError}
2842
+ */
2843
+ getCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource> {
2844
+ return localVarFp.getCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, recurrenceId, options).then((request) => request(axios, basePath));
2845
+ },
2846
+ /**
2847
+ * 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.
2848
+ * @summary List calendar events
2849
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2850
+ * @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;.
2851
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2852
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2853
+ * @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;.
2854
+ * @param {*} [options] Override http request option.
2855
+ * @throws {RequiredError}
2856
+ */
2857
+ listCalendarEvents(mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsCollection> {
2858
+ return localVarFp.listCalendarEvents(mailboxResourceId, calendarUuid, start, end, timeZone, options).then((request) => request(axios, basePath));
2859
+ },
2860
+ /**
2861
+ * 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`.
2862
+ * @summary Reply to calendar event
2863
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2864
+ * @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;.
2865
+ * @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.
2866
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2867
+ * @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.
2868
+ * @param {*} [options] Override http request option.
2869
+ * @throws {RequiredError}
2870
+ */
2871
+ replyToCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource> {
2872
+ return localVarFp.replyToCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsReplyRequest, ifMatch, options).then((request) => request(axios, basePath));
2873
+ },
2874
+ /**
2875
+ * 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`.
2876
+ * @summary Reschedule calendar event
2877
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2878
+ * @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;.
2879
+ * @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.
2880
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2881
+ * @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.
2882
+ * @param {*} [options] Override http request option.
2883
+ * @throws {RequiredError}
2884
+ */
2885
+ rescheduleCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource> {
2886
+ return localVarFp.rescheduleCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsRescheduleRequest, ifMatch, options).then((request) => request(axios, basePath));
2887
+ },
2888
+ /**
2889
+ * 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`.
2890
+ * @summary Update calendar event
2891
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2892
+ * @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;.
2893
+ * @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.
2894
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
2895
+ * @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.
2896
+ * @param {*} [options] Override http request option.
2897
+ * @throws {RequiredError}
2898
+ */
2899
+ updateCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarEventsResource> {
2900
+ return localVarFp.updateCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsUpdateRequest, ifMatch, options).then((request) => request(axios, basePath));
2901
+ },
2902
+ };
2903
+ };
2904
+
2905
+ /**
2906
+ * CalendarEventsApi - object-oriented interface
2907
+ * @export
2908
+ * @class CalendarEventsApi
2909
+ * @extends {BaseAPI}
2910
+ */
2911
+ export class CalendarEventsApi extends BaseAPI {
2912
+ /**
2913
+ * 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`.
2914
+ * @summary Create calendar event
2915
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2916
+ * @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;.
2917
+ * @param {V1CalendarEventsCreateRequest} v1CalendarEventsCreateRequest
2918
+ * @param {*} [options] Override http request option.
2919
+ * @throws {RequiredError}
2920
+ * @memberof CalendarEventsApi
2921
+ */
2922
+ public createCalendarEvent(mailboxResourceId: string, calendarUuid: string, v1CalendarEventsCreateRequest: V1CalendarEventsCreateRequest, options?: RawAxiosRequestConfig) {
2923
+ return CalendarEventsApiFp(this.configuration).createCalendarEvent(mailboxResourceId, calendarUuid, v1CalendarEventsCreateRequest, options).then((request) => request(this.axios, this.basePath));
2924
+ }
2925
+
2926
+ /**
2927
+ * 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.
2928
+ * @summary Delete calendar event
2929
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2930
+ * @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;.
2931
+ * @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.
2932
+ * @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.
2933
+ * @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;.
2934
+ * @param {DeleteCalendarEventNotifyAttendeesEnum} [notifyAttendees] &#x60;false&#x60; deletes without emailing attendees a cancellation or update, or the organizer a decline. Omitted means &#x60;true&#x60;.
2935
+ * @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.
2936
+ * @param {*} [options] Override http request option.
2937
+ * @throws {RequiredError}
2938
+ * @memberof CalendarEventsApi
2939
+ */
2940
+ public deleteCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, scope?: DeleteCalendarEventScopeEnum, recurrenceId?: string, notifyAttendees?: DeleteCalendarEventNotifyAttendeesEnum, ifMatch?: string, options?: RawAxiosRequestConfig) {
2941
+ return CalendarEventsApiFp(this.configuration).deleteCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, scope, recurrenceId, notifyAttendees, ifMatch, options).then((request) => request(this.axios, this.basePath));
2942
+ }
2943
+
2944
+ /**
2945
+ * 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.
2946
+ * @summary Get calendar event
2947
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2948
+ * @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;.
2949
+ * @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.
2950
+ * @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.
2951
+ * @param {*} [options] Override http request option.
2952
+ * @throws {RequiredError}
2953
+ * @memberof CalendarEventsApi
2954
+ */
2955
+ public getCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, recurrenceId?: string, options?: RawAxiosRequestConfig) {
2956
+ return CalendarEventsApiFp(this.configuration).getCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, recurrenceId, options).then((request) => request(this.axios, this.basePath));
2957
+ }
2958
+
2959
+ /**
2960
+ * 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.
2961
+ * @summary List calendar events
2962
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2963
+ * @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;.
2964
+ * @param {string} start Start of the range, inclusive. ISO 8601 date-time with offset.
2965
+ * @param {string} end End of the range, exclusive. ISO 8601 date-time after &#x60;start&#x60; and at most 32 days after it.
2966
+ * @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;.
2967
+ * @param {*} [options] Override http request option.
2968
+ * @throws {RequiredError}
2969
+ * @memberof CalendarEventsApi
2970
+ */
2971
+ public listCalendarEvents(mailboxResourceId: string, calendarUuid: string, start: string, end: string, timeZone?: string, options?: RawAxiosRequestConfig) {
2972
+ return CalendarEventsApiFp(this.configuration).listCalendarEvents(mailboxResourceId, calendarUuid, start, end, timeZone, options).then((request) => request(this.axios, this.basePath));
2973
+ }
2974
+
2975
+ /**
2976
+ * 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`.
2977
+ * @summary Reply to calendar event
2978
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2979
+ * @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;.
2980
+ * @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.
2981
+ * @param {V1CalendarEventsReplyRequest} v1CalendarEventsReplyRequest
2982
+ * @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.
2983
+ * @param {*} [options] Override http request option.
2984
+ * @throws {RequiredError}
2985
+ * @memberof CalendarEventsApi
2986
+ */
2987
+ public replyToCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsReplyRequest: V1CalendarEventsReplyRequest, ifMatch?: string, options?: RawAxiosRequestConfig) {
2988
+ return CalendarEventsApiFp(this.configuration).replyToCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsReplyRequest, ifMatch, options).then((request) => request(this.axios, this.basePath));
2989
+ }
2990
+
2991
+ /**
2992
+ * 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`.
2993
+ * @summary Reschedule calendar event
2994
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
2995
+ * @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;.
2996
+ * @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.
2997
+ * @param {V1CalendarEventsRescheduleRequest} v1CalendarEventsRescheduleRequest
2998
+ * @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.
2999
+ * @param {*} [options] Override http request option.
3000
+ * @throws {RequiredError}
3001
+ * @memberof CalendarEventsApi
3002
+ */
3003
+ public rescheduleCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsRescheduleRequest: V1CalendarEventsRescheduleRequest, ifMatch?: string, options?: RawAxiosRequestConfig) {
3004
+ return CalendarEventsApiFp(this.configuration).rescheduleCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsRescheduleRequest, ifMatch, options).then((request) => request(this.axios, this.basePath));
3005
+ }
3006
+
3007
+ /**
3008
+ * 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`.
3009
+ * @summary Update calendar event
3010
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3011
+ * @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;.
3012
+ * @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.
3013
+ * @param {V1CalendarEventsUpdateRequest} v1CalendarEventsUpdateRequest
3014
+ * @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.
3015
+ * @param {*} [options] Override http request option.
3016
+ * @throws {RequiredError}
3017
+ * @memberof CalendarEventsApi
3018
+ */
3019
+ public updateCalendarEvent(mailboxResourceId: string, calendarUuid: string, eventUuid: string, v1CalendarEventsUpdateRequest: V1CalendarEventsUpdateRequest, ifMatch?: string, options?: RawAxiosRequestConfig) {
3020
+ return CalendarEventsApiFp(this.configuration).updateCalendarEvent(mailboxResourceId, calendarUuid, eventUuid, v1CalendarEventsUpdateRequest, ifMatch, options).then((request) => request(this.axios, this.basePath));
3021
+ }
3022
+ }
3023
+
3024
+ /**
3025
+ * @export
3026
+ */
3027
+ export const DeleteCalendarEventScopeEnum = {
3028
+ This: 'this',
3029
+ Future: 'future',
3030
+ All: 'all'
3031
+ } as const;
3032
+ export type DeleteCalendarEventScopeEnum = typeof DeleteCalendarEventScopeEnum[keyof typeof DeleteCalendarEventScopeEnum];
3033
+ /**
3034
+ * @export
3035
+ */
3036
+ export const DeleteCalendarEventNotifyAttendeesEnum = {
3037
+ True: 'true',
3038
+ False: 'false',
3039
+ _1: '1',
3040
+ _0: '0'
3041
+ } as const;
3042
+ export type DeleteCalendarEventNotifyAttendeesEnum = typeof DeleteCalendarEventNotifyAttendeesEnum[keyof typeof DeleteCalendarEventNotifyAttendeesEnum];
3043
+
3044
+
3045
+ /**
3046
+ * CalendarsApi - axios parameter creator
3047
+ * @export
3048
+ */
3049
+ export const CalendarsApiAxiosParamCreator = function (configuration?: Configuration) {
3050
+ return {
3051
+ /**
3052
+ * 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`.
3053
+ * @summary Create calendar
3054
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3055
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
3056
+ * @param {*} [options] Override http request option.
3057
+ * @throws {RequiredError}
3058
+ */
3059
+ createCalendar: async (mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3060
+ // verify required parameter 'mailboxResourceId' is not null or undefined
3061
+ assertParamExists('createCalendar', 'mailboxResourceId', mailboxResourceId)
3062
+ // verify required parameter 'v1CalendarsCreateRequest' is not null or undefined
3063
+ assertParamExists('createCalendar', 'v1CalendarsCreateRequest', v1CalendarsCreateRequest)
3064
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars`
3065
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId));
3066
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3067
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3068
+ let baseOptions;
3069
+ if (configuration) {
3070
+ baseOptions = configuration.baseOptions;
3071
+ }
3072
+
3073
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3074
+ const localVarHeaderParameter = {} as any;
3075
+ const localVarQueryParameter = {} as any;
3076
+
3077
+ // authentication BearerAuth required
3078
+ // http bearer authentication required
3079
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3080
+
3081
+
3082
+
3083
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3084
+
3085
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3086
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3087
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3088
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CalendarsCreateRequest, localVarRequestOptions, configuration)
3089
+
3090
+ return {
3091
+ url: toPathString(localVarUrlObj),
3092
+ options: localVarRequestOptions,
3093
+ };
3094
+ },
3095
+ /**
3096
+ * 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`.
3097
+ * @summary Delete calendar
3098
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3099
+ * @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;.
3100
+ * @param {*} [options] Override http request option.
3101
+ * @throws {RequiredError}
3102
+ */
3103
+ deleteCalendar: async (mailboxResourceId: string, calendarUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3104
+ // verify required parameter 'mailboxResourceId' is not null or undefined
3105
+ assertParamExists('deleteCalendar', 'mailboxResourceId', mailboxResourceId)
3106
+ // verify required parameter 'calendarUuid' is not null or undefined
3107
+ assertParamExists('deleteCalendar', 'calendarUuid', calendarUuid)
3108
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}`
3109
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
3110
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid));
3111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3113
+ let baseOptions;
3114
+ if (configuration) {
3115
+ baseOptions = configuration.baseOptions;
3116
+ }
3117
+
3118
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3119
+ const localVarHeaderParameter = {} as any;
3120
+ const localVarQueryParameter = {} as any;
3121
+
3122
+ // authentication BearerAuth required
3123
+ // http bearer authentication required
3124
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3125
+
3126
+
3127
+
3128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3131
+
3132
+ return {
3133
+ url: toPathString(localVarUrlObj),
3134
+ options: localVarRequestOptions,
3135
+ };
3136
+ },
3137
+ /**
3138
+ * 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.
3139
+ * @summary Get calendar
3140
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3141
+ * @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;.
3142
+ * @param {*} [options] Override http request option.
3143
+ * @throws {RequiredError}
3144
+ */
3145
+ getCalendar: async (mailboxResourceId: string, calendarUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3146
+ // verify required parameter 'mailboxResourceId' is not null or undefined
3147
+ assertParamExists('getCalendar', 'mailboxResourceId', mailboxResourceId)
3148
+ // verify required parameter 'calendarUuid' is not null or undefined
3149
+ assertParamExists('getCalendar', 'calendarUuid', calendarUuid)
3150
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}`
3151
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
3152
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid));
3153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3155
+ let baseOptions;
3156
+ if (configuration) {
3157
+ baseOptions = configuration.baseOptions;
3158
+ }
3159
+
3160
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3161
+ const localVarHeaderParameter = {} as any;
3162
+ const localVarQueryParameter = {} as any;
3163
+
3164
+ // authentication BearerAuth required
3165
+ // http bearer authentication required
3166
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3167
+
3168
+
3169
+
3170
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3172
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1148
3173
 
1149
- export const V1WebhooksWebhookEventsEnum = {
1150
- MessageReceived: 'message.received'
1151
- } as const;
1152
-
1153
- export type V1WebhooksWebhookEventsEnum = typeof V1WebhooksWebhookEventsEnum[keyof typeof V1WebhooksWebhookEventsEnum];
1154
- export const V1WebhooksWebhookStatusEnum = {
1155
- Active: 'active',
1156
- Paused: 'paused',
1157
- Disabled: 'disabled'
1158
- } as const;
3174
+ return {
3175
+ url: toPathString(localVarUrlObj),
3176
+ options: localVarRequestOptions,
3177
+ };
3178
+ },
3179
+ /**
3180
+ * 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.
3181
+ * @summary List calendars
3182
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3183
+ * @param {number} [page] Page number (1-based).
3184
+ * @param {number} [perPage] Items per page (max 200).
3185
+ * @param {*} [options] Override http request option.
3186
+ * @throws {RequiredError}
3187
+ */
3188
+ listCalendars: async (mailboxResourceId: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3189
+ // verify required parameter 'mailboxResourceId' is not null or undefined
3190
+ assertParamExists('listCalendars', 'mailboxResourceId', mailboxResourceId)
3191
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars`
3192
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId));
3193
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3194
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3195
+ let baseOptions;
3196
+ if (configuration) {
3197
+ baseOptions = configuration.baseOptions;
3198
+ }
1159
3199
 
1160
- export type V1WebhooksWebhookStatusEnum = typeof V1WebhooksWebhookStatusEnum[keyof typeof V1WebhooksWebhookStatusEnum];
3200
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3201
+ const localVarHeaderParameter = {} as any;
3202
+ const localVarQueryParameter = {} as any;
1161
3203
 
1162
- /**
1163
- * 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.
1164
- * @export
1165
- * @interface V1WebhooksWebhookWithSecret
1166
- */
1167
- export interface V1WebhooksWebhookWithSecret {
1168
- /**
1169
- * Unique webhook identifier (UUID v7).
1170
- * @type {string}
1171
- * @memberof V1WebhooksWebhookWithSecret
1172
- */
1173
- 'id': string;
1174
- /**
1175
- * Resource ID of the mailbox this webhook is attached to.
1176
- * @type {string}
1177
- * @memberof V1WebhooksWebhookWithSecret
1178
- */
1179
- 'accountResourceId': string;
1180
- /**
1181
- * Email address of the mailbox.
1182
- * @type {string}
1183
- * @memberof V1WebhooksWebhookWithSecret
1184
- */
1185
- 'mailbox': string;
1186
- /**
1187
- *
1188
- * @type {string}
1189
- * @memberof V1WebhooksWebhookWithSecret
1190
- */
1191
- 'name': string;
1192
- /**
1193
- *
1194
- * @type {string}
1195
- * @memberof V1WebhooksWebhookWithSecret
1196
- */
1197
- 'description': string | null;
1198
- /**
1199
- *
1200
- * @type {Array<string>}
1201
- * @memberof V1WebhooksWebhookWithSecret
1202
- */
1203
- 'events': Array<V1WebhooksWebhookWithSecretEventsEnum>;
1204
- /**
1205
- *
1206
- * @type {string}
1207
- * @memberof V1WebhooksWebhookWithSecret
1208
- */
1209
- 'status': V1WebhooksWebhookWithSecretStatusEnum;
1210
- /**
1211
- *
1212
- * @type {string}
1213
- * @memberof V1WebhooksWebhookWithSecret
1214
- */
1215
- 'url': string;
1216
- /**
1217
- *
1218
- * @type {string}
1219
- * @memberof V1WebhooksWebhookWithSecret
1220
- */
1221
- 'createdAt': string;
1222
- /**
1223
- *
1224
- * @type {string}
1225
- * @memberof V1WebhooksWebhookWithSecret
1226
- */
1227
- 'updatedAt': string;
1228
- /**
1229
- *
1230
- * @type {string}
1231
- * @memberof V1WebhooksWebhookWithSecret
1232
- */
1233
- 'secret': string;
1234
- }
3204
+ // authentication BearerAuth required
3205
+ // http bearer authentication required
3206
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1235
3207
 
1236
- export const V1WebhooksWebhookWithSecretEventsEnum = {
1237
- MessageReceived: 'message.received'
1238
- } as const;
3208
+ if (page !== undefined) {
3209
+ localVarQueryParameter['page'] = page;
3210
+ }
1239
3211
 
1240
- export type V1WebhooksWebhookWithSecretEventsEnum = typeof V1WebhooksWebhookWithSecretEventsEnum[keyof typeof V1WebhooksWebhookWithSecretEventsEnum];
1241
- export const V1WebhooksWebhookWithSecretStatusEnum = {
1242
- Active: 'active',
1243
- Paused: 'paused',
1244
- Disabled: 'disabled'
1245
- } as const;
3212
+ if (perPage !== undefined) {
3213
+ localVarQueryParameter['perPage'] = perPage;
3214
+ }
1246
3215
 
1247
- export type V1WebhooksWebhookWithSecretStatusEnum = typeof V1WebhooksWebhookWithSecretStatusEnum[keyof typeof V1WebhooksWebhookWithSecretStatusEnum];
1248
3216
 
3217
+
3218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1249
3221
 
1250
- /**
1251
- * AccountApi - axios parameter creator
1252
- * @export
1253
- */
1254
- export const AccountApiAxiosParamCreator = function (configuration?: Configuration) {
1255
- return {
3222
+ return {
3223
+ url: toPathString(localVarUrlObj),
3224
+ options: localVarRequestOptions,
3225
+ };
3226
+ },
1256
3227
  /**
1257
- * Returns the authenticated account and the mailboxes it can manage.
1258
- * @summary Get the authenticated account
3228
+ * 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.
3229
+ * @summary Update calendar
3230
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3231
+ * @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;.
3232
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
1259
3233
  * @param {*} [options] Override http request option.
1260
3234
  * @throws {RequiredError}
1261
3235
  */
1262
- getCurrentAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1263
- const localVarPath = `/api/v1/me`;
3236
+ updateCalendar: async (mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3237
+ // verify required parameter 'mailboxResourceId' is not null or undefined
3238
+ assertParamExists('updateCalendar', 'mailboxResourceId', mailboxResourceId)
3239
+ // verify required parameter 'calendarUuid' is not null or undefined
3240
+ assertParamExists('updateCalendar', 'calendarUuid', calendarUuid)
3241
+ // verify required parameter 'v1CalendarsUpdateRequest' is not null or undefined
3242
+ assertParamExists('updateCalendar', 'v1CalendarsUpdateRequest', v1CalendarsUpdateRequest)
3243
+ const localVarPath = `/api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid}`
3244
+ .replace(`{${"mailboxResourceId"}}`, encodePathParam('mailboxResourceId', mailboxResourceId))
3245
+ .replace(`{${"calendarUuid"}}`, encodePathParam('calendarUuid', calendarUuid));
1264
3246
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1265
3247
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1266
3248
  let baseOptions;
@@ -1268,7 +3250,7 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
1268
3250
  baseOptions = configuration.baseOptions;
1269
3251
  }
1270
3252
 
1271
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3253
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1272
3254
  const localVarHeaderParameter = {} as any;
1273
3255
  const localVarQueryParameter = {} as any;
1274
3256
 
@@ -1278,9 +3260,12 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
1278
3260
 
1279
3261
 
1280
3262
 
3263
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3264
+
1281
3265
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1282
3266
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1283
3267
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3268
+ localVarRequestOptions.data = serializeDataIfNeeded(v1CalendarsUpdateRequest, localVarRequestOptions, configuration)
1284
3269
 
1285
3270
  return {
1286
3271
  url: toPathString(localVarUrlObj),
@@ -1291,61 +3276,221 @@ export const AccountApiAxiosParamCreator = function (configuration?: Configurati
1291
3276
  };
1292
3277
 
1293
3278
  /**
1294
- * AccountApi - functional programming interface
3279
+ * CalendarsApi - functional programming interface
1295
3280
  * @export
1296
3281
  */
1297
- export const AccountApiFp = function(configuration?: Configuration) {
1298
- const localVarAxiosParamCreator = AccountApiAxiosParamCreator(configuration)
3282
+ export const CalendarsApiFp = function(configuration?: Configuration) {
3283
+ const localVarAxiosParamCreator = CalendarsApiAxiosParamCreator(configuration)
1299
3284
  return {
1300
3285
  /**
1301
- * Returns the authenticated account and the mailboxes it can manage.
1302
- * @summary Get the authenticated account
3286
+ * 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`.
3287
+ * @summary Create calendar
3288
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3289
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1303
3290
  * @param {*} [options] Override http request option.
1304
3291
  * @throws {RequiredError}
1305
3292
  */
1306
- async getCurrentAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1MeResource>> {
1307
- const localVarAxiosArgs = await localVarAxiosParamCreator.getCurrentAccount(options);
1308
- const localVarOperationServerBasePath = operationServerMap['AccountApi.getCurrentAccount']?.[0]?.url;
3293
+ async createCalendar(mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsResource>> {
3294
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCalendar(mailboxResourceId, v1CalendarsCreateRequest, options);
3295
+ const localVarOperationServerBasePath = operationServerMap['CalendarsApi.createCalendar']?.[0]?.url;
3296
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3297
+ },
3298
+ /**
3299
+ * 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`.
3300
+ * @summary Delete calendar
3301
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3302
+ * @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;.
3303
+ * @param {*} [options] Override http request option.
3304
+ * @throws {RequiredError}
3305
+ */
3306
+ async deleteCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
3307
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCalendar(mailboxResourceId, calendarUuid, options);
3308
+ const localVarOperationServerBasePath = operationServerMap['CalendarsApi.deleteCalendar']?.[0]?.url;
3309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3310
+ },
3311
+ /**
3312
+ * 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.
3313
+ * @summary Get calendar
3314
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3315
+ * @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;.
3316
+ * @param {*} [options] Override http request option.
3317
+ * @throws {RequiredError}
3318
+ */
3319
+ async getCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsResource>> {
3320
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCalendar(mailboxResourceId, calendarUuid, options);
3321
+ const localVarOperationServerBasePath = operationServerMap['CalendarsApi.getCalendar']?.[0]?.url;
3322
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3323
+ },
3324
+ /**
3325
+ * 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.
3326
+ * @summary List calendars
3327
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3328
+ * @param {number} [page] Page number (1-based).
3329
+ * @param {number} [perPage] Items per page (max 200).
3330
+ * @param {*} [options] Override http request option.
3331
+ * @throws {RequiredError}
3332
+ */
3333
+ async listCalendars(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsCollection>> {
3334
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCalendars(mailboxResourceId, page, perPage, options);
3335
+ const localVarOperationServerBasePath = operationServerMap['CalendarsApi.listCalendars']?.[0]?.url;
3336
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3337
+ },
3338
+ /**
3339
+ * 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.
3340
+ * @summary Update calendar
3341
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3342
+ * @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;.
3343
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
3344
+ * @param {*} [options] Override http request option.
3345
+ * @throws {RequiredError}
3346
+ */
3347
+ async updateCalendar(mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V1CalendarsResource>> {
3348
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCalendar(mailboxResourceId, calendarUuid, v1CalendarsUpdateRequest, options);
3349
+ const localVarOperationServerBasePath = operationServerMap['CalendarsApi.updateCalendar']?.[0]?.url;
1309
3350
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1310
3351
  },
1311
3352
  }
1312
3353
  };
1313
3354
 
1314
3355
  /**
1315
- * AccountApi - factory interface
3356
+ * CalendarsApi - factory interface
1316
3357
  * @export
1317
3358
  */
1318
- export const AccountApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1319
- const localVarFp = AccountApiFp(configuration)
3359
+ export const CalendarsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
3360
+ const localVarFp = CalendarsApiFp(configuration)
1320
3361
  return {
1321
3362
  /**
1322
- * Returns the authenticated account and the mailboxes it can manage.
1323
- * @summary Get the authenticated account
3363
+ * 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`.
3364
+ * @summary Create calendar
3365
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3366
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1324
3367
  * @param {*} [options] Override http request option.
1325
3368
  * @throws {RequiredError}
1326
3369
  */
1327
- getCurrentAccount(options?: RawAxiosRequestConfig): AxiosPromise<V1MeResource> {
1328
- return localVarFp.getCurrentAccount(options).then((request) => request(axios, basePath));
3370
+ createCalendar(mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsResource> {
3371
+ return localVarFp.createCalendar(mailboxResourceId, v1CalendarsCreateRequest, options).then((request) => request(axios, basePath));
3372
+ },
3373
+ /**
3374
+ * 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`.
3375
+ * @summary Delete calendar
3376
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3377
+ * @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;.
3378
+ * @param {*} [options] Override http request option.
3379
+ * @throws {RequiredError}
3380
+ */
3381
+ deleteCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3382
+ return localVarFp.deleteCalendar(mailboxResourceId, calendarUuid, options).then((request) => request(axios, basePath));
3383
+ },
3384
+ /**
3385
+ * 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.
3386
+ * @summary Get calendar
3387
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3388
+ * @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;.
3389
+ * @param {*} [options] Override http request option.
3390
+ * @throws {RequiredError}
3391
+ */
3392
+ getCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsResource> {
3393
+ return localVarFp.getCalendar(mailboxResourceId, calendarUuid, options).then((request) => request(axios, basePath));
3394
+ },
3395
+ /**
3396
+ * 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.
3397
+ * @summary List calendars
3398
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3399
+ * @param {number} [page] Page number (1-based).
3400
+ * @param {number} [perPage] Items per page (max 200).
3401
+ * @param {*} [options] Override http request option.
3402
+ * @throws {RequiredError}
3403
+ */
3404
+ listCalendars(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsCollection> {
3405
+ return localVarFp.listCalendars(mailboxResourceId, page, perPage, options).then((request) => request(axios, basePath));
3406
+ },
3407
+ /**
3408
+ * 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.
3409
+ * @summary Update calendar
3410
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3411
+ * @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;.
3412
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
3413
+ * @param {*} [options] Override http request option.
3414
+ * @throws {RequiredError}
3415
+ */
3416
+ updateCalendar(mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<V1CalendarsResource> {
3417
+ return localVarFp.updateCalendar(mailboxResourceId, calendarUuid, v1CalendarsUpdateRequest, options).then((request) => request(axios, basePath));
1329
3418
  },
1330
3419
  };
1331
3420
  };
1332
3421
 
1333
3422
  /**
1334
- * AccountApi - object-oriented interface
3423
+ * CalendarsApi - object-oriented interface
1335
3424
  * @export
1336
- * @class AccountApi
3425
+ * @class CalendarsApi
1337
3426
  * @extends {BaseAPI}
1338
3427
  */
1339
- export class AccountApi extends BaseAPI {
3428
+ export class CalendarsApi extends BaseAPI {
1340
3429
  /**
1341
- * Returns the authenticated account and the mailboxes it can manage.
1342
- * @summary Get the authenticated account
3430
+ * 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`.
3431
+ * @summary Create calendar
3432
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3433
+ * @param {V1CalendarsCreateRequest} v1CalendarsCreateRequest
1343
3434
  * @param {*} [options] Override http request option.
1344
3435
  * @throws {RequiredError}
1345
- * @memberof AccountApi
3436
+ * @memberof CalendarsApi
1346
3437
  */
1347
- public getCurrentAccount(options?: RawAxiosRequestConfig) {
1348
- return AccountApiFp(this.configuration).getCurrentAccount(options).then((request) => request(this.axios, this.basePath));
3438
+ public createCalendar(mailboxResourceId: string, v1CalendarsCreateRequest: V1CalendarsCreateRequest, options?: RawAxiosRequestConfig) {
3439
+ return CalendarsApiFp(this.configuration).createCalendar(mailboxResourceId, v1CalendarsCreateRequest, options).then((request) => request(this.axios, this.basePath));
3440
+ }
3441
+
3442
+ /**
3443
+ * 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`.
3444
+ * @summary Delete calendar
3445
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3446
+ * @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;.
3447
+ * @param {*} [options] Override http request option.
3448
+ * @throws {RequiredError}
3449
+ * @memberof CalendarsApi
3450
+ */
3451
+ public deleteCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig) {
3452
+ return CalendarsApiFp(this.configuration).deleteCalendar(mailboxResourceId, calendarUuid, options).then((request) => request(this.axios, this.basePath));
3453
+ }
3454
+
3455
+ /**
3456
+ * 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.
3457
+ * @summary Get calendar
3458
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3459
+ * @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;.
3460
+ * @param {*} [options] Override http request option.
3461
+ * @throws {RequiredError}
3462
+ * @memberof CalendarsApi
3463
+ */
3464
+ public getCalendar(mailboxResourceId: string, calendarUuid: string, options?: RawAxiosRequestConfig) {
3465
+ return CalendarsApiFp(this.configuration).getCalendar(mailboxResourceId, calendarUuid, options).then((request) => request(this.axios, this.basePath));
3466
+ }
3467
+
3468
+ /**
3469
+ * 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.
3470
+ * @summary List calendars
3471
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3472
+ * @param {number} [page] Page number (1-based).
3473
+ * @param {number} [perPage] Items per page (max 200).
3474
+ * @param {*} [options] Override http request option.
3475
+ * @throws {RequiredError}
3476
+ * @memberof CalendarsApi
3477
+ */
3478
+ public listCalendars(mailboxResourceId: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
3479
+ return CalendarsApiFp(this.configuration).listCalendars(mailboxResourceId, page, perPage, options).then((request) => request(this.axios, this.basePath));
3480
+ }
3481
+
3482
+ /**
3483
+ * 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.
3484
+ * @summary Update calendar
3485
+ * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3486
+ * @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;.
3487
+ * @param {V1CalendarsUpdateRequest} v1CalendarsUpdateRequest
3488
+ * @param {*} [options] Override http request option.
3489
+ * @throws {RequiredError}
3490
+ * @memberof CalendarsApi
3491
+ */
3492
+ public updateCalendar(mailboxResourceId: string, calendarUuid: string, v1CalendarsUpdateRequest: V1CalendarsUpdateRequest, options?: RawAxiosRequestConfig) {
3493
+ return CalendarsApiFp(this.configuration).updateCalendar(mailboxResourceId, calendarUuid, v1CalendarsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
1349
3494
  }
1350
3495
  }
1351
3496
 
@@ -3186,7 +5331,7 @@ export class QuotaApi extends BaseAPI {
3186
5331
  export const SendApiAxiosParamCreator = function (configuration?: Configuration) {
3187
5332
  return {
3188
5333
  /**
3189
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
5334
+ * 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.
3190
5335
  * @summary Send email
3191
5336
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3192
5337
  * @param {V1SendRequest} v1SendRequest
@@ -3240,7 +5385,7 @@ export const SendApiFp = function(configuration?: Configuration) {
3240
5385
  const localVarAxiosParamCreator = SendApiAxiosParamCreator(configuration)
3241
5386
  return {
3242
5387
  /**
3243
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
5388
+ * 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.
3244
5389
  * @summary Send email
3245
5390
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3246
5391
  * @param {V1SendRequest} v1SendRequest
@@ -3263,7 +5408,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
3263
5408
  const localVarFp = SendApiFp(configuration)
3264
5409
  return {
3265
5410
  /**
3266
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
5411
+ * 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.
3267
5412
  * @summary Send email
3268
5413
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3269
5414
  * @param {V1SendRequest} v1SendRequest
@@ -3284,7 +5429,7 @@ export const SendApiFactory = function (configuration?: Configuration, basePath?
3284
5429
  */
3285
5430
  export class SendApi extends BaseAPI {
3286
5431
  /**
3287
- * Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
5432
+ * 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.
3288
5433
  * @summary Send email
3289
5434
  * @param {string} mailboxResourceId Resource ID of the managed mailbox the bearer token is authorized for.
3290
5435
  * @param {V1SendRequest} v1SendRequest