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