hostinger-mail-api-sdk 1.19.8 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/.github/workflows/build-release.yaml +58 -35
  2. package/README.md +2 -2
  3. package/api.ts +2905 -760
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +2 -2
  7. package/dist/api.d.ts +2206 -720
  8. package/dist/api.js +1249 -6
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +2 -2
  15. package/dist/esm/api.d.ts +2206 -720
  16. package/dist/esm/api.js +1239 -5
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +2 -2
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/CalendarEventsApi.md +505 -0
  28. package/docs/CalendarsApi.md +317 -0
  29. package/docs/MessagesApi.md +3 -0
  30. package/docs/SendApi.md +2 -2
  31. package/docs/V1CalendarEventsAttendee.md +25 -0
  32. package/docs/V1CalendarEventsAttendeeInput.md +23 -0
  33. package/docs/V1CalendarEventsCollection.md +23 -0
  34. package/docs/V1CalendarEventsCollectionMeta.md +20 -0
  35. package/docs/V1CalendarEventsCreateRequest.md +43 -0
  36. package/docs/V1CalendarEventsEvent.md +61 -0
  37. package/docs/V1CalendarEventsEventListItem.md +43 -0
  38. package/docs/V1CalendarEventsOrganizer.md +23 -0
  39. package/docs/V1CalendarEventsRecurrenceDay.md +23 -0
  40. package/docs/V1CalendarEventsRecurrenceRule.md +35 -0
  41. package/docs/V1CalendarEventsReminder.md +23 -0
  42. package/docs/V1CalendarEventsReplyRequest.md +23 -0
  43. package/docs/V1CalendarEventsRescheduleRequest.md +33 -0
  44. package/docs/V1CalendarEventsResource.md +21 -0
  45. package/docs/V1CalendarEventsUpdateRequest.md +49 -0
  46. package/docs/V1CalendarsCalendar.md +31 -0
  47. package/docs/V1CalendarsCollection.md +23 -0
  48. package/docs/V1CalendarsCreateRequest.md +27 -0
  49. package/docs/V1CalendarsResource.md +21 -0
  50. package/docs/V1CalendarsUpdateRequest.md +27 -0
  51. package/index.ts +1 -1
  52. package/package.json +1 -1
@@ -0,0 +1,317 @@
1
+ # CalendarsApi
2
+
3
+ All URIs are relative to *https://api.mail.hostinger.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**createCalendar**](#createcalendar) | **POST** /api/v1/mailboxes/{mailboxResourceId}/calendars | Create calendar|
8
+ |[**deleteCalendar**](#deletecalendar) | **DELETE** /api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid} | Delete calendar|
9
+ |[**getCalendar**](#getcalendar) | **GET** /api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid} | Get calendar|
10
+ |[**listCalendars**](#listcalendars) | **GET** /api/v1/mailboxes/{mailboxResourceId}/calendars | List calendars|
11
+ |[**updateCalendar**](#updatecalendar) | **PUT** /api/v1/mailboxes/{mailboxResourceId}/calendars/{calendarUuid} | Update calendar|
12
+
13
+ # **createCalendar**
14
+ > V1CalendarsResource createCalendar(v1CalendarsCreateRequest)
15
+
16
+ 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`.
17
+
18
+ ### Example
19
+
20
+ ```typescript
21
+ import {
22
+ CalendarsApi,
23
+ Configuration,
24
+ V1CalendarsCreateRequest
25
+ } from '@hostinger/mail-sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new CalendarsApi(configuration);
29
+
30
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
31
+ let v1CalendarsCreateRequest: V1CalendarsCreateRequest; //
32
+
33
+ const { status, data } = await apiInstance.createCalendar(
34
+ mailboxResourceId,
35
+ v1CalendarsCreateRequest
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **v1CalendarsCreateRequest** | **V1CalendarsCreateRequest**| | |
44
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
45
+
46
+
47
+ ### Return type
48
+
49
+ **V1CalendarsResource**
50
+
51
+ ### Authorization
52
+
53
+ [BearerAuth](../README.md#BearerAuth)
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: application/json
58
+ - **Accept**: application/json
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**201** | Calendar created. | - |
65
+ |**400** | The mailbox already owns as many calendars as allowed. Calendars shared with the mailbox are not counted. `params.maxCalendars` holds the limit. | - |
66
+ |**401** | Missing or invalid credentials. | - |
67
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
68
+ |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
69
+ |**500** | Server-side failure. | - |
70
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
71
+
72
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
73
+
74
+ # **deleteCalendar**
75
+ > deleteCalendar()
76
+
77
+ 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`.
78
+
79
+ ### Example
80
+
81
+ ```typescript
82
+ import {
83
+ CalendarsApi,
84
+ Configuration
85
+ } from '@hostinger/mail-sdk';
86
+
87
+ const configuration = new Configuration();
88
+ const apiInstance = new CalendarsApi(configuration);
89
+
90
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
91
+ let calendarUuid: string; //Calendar identifier: the `uuid` of a calendar returned by `listCalendars`, or the `calendarUuid` of an event returned by `listCalendarEvents`. (default to undefined)
92
+
93
+ const { status, data } = await apiInstance.deleteCalendar(
94
+ mailboxResourceId,
95
+ calendarUuid
96
+ );
97
+ ```
98
+
99
+ ### Parameters
100
+
101
+ |Name | Type | Description | Notes|
102
+ |------------- | ------------- | ------------- | -------------|
103
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
104
+ | **calendarUuid** | [**string**] | Calendar identifier: the `uuid` of a calendar returned by `listCalendars`, or the `calendarUuid` of an event returned by `listCalendarEvents`. | defaults to undefined|
105
+
106
+
107
+ ### Return type
108
+
109
+ void (empty response body)
110
+
111
+ ### Authorization
112
+
113
+ [BearerAuth](../README.md#BearerAuth)
114
+
115
+ ### HTTP request headers
116
+
117
+ - **Content-Type**: Not defined
118
+ - **Accept**: application/json
119
+
120
+
121
+ ### HTTP response details
122
+ | Status code | Description | Response headers |
123
+ |-------------|-------------|------------------|
124
+ |**204** | Calendar deleted. | - |
125
+ |**401** | Missing or invalid credentials. | - |
126
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
127
+ |**404** | Resource not found. | - |
128
+ |**500** | Server-side failure. | - |
129
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
130
+
131
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
132
+
133
+ # **getCalendar**
134
+ > V1CalendarsResource getCalendar()
135
+
136
+ 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.
137
+
138
+ ### Example
139
+
140
+ ```typescript
141
+ import {
142
+ CalendarsApi,
143
+ Configuration
144
+ } from '@hostinger/mail-sdk';
145
+
146
+ const configuration = new Configuration();
147
+ const apiInstance = new CalendarsApi(configuration);
148
+
149
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
150
+ let calendarUuid: string; //Calendar identifier: the `uuid` of a calendar returned by `listCalendars`, or the `calendarUuid` of an event returned by `listCalendarEvents`. (default to undefined)
151
+
152
+ const { status, data } = await apiInstance.getCalendar(
153
+ mailboxResourceId,
154
+ calendarUuid
155
+ );
156
+ ```
157
+
158
+ ### Parameters
159
+
160
+ |Name | Type | Description | Notes|
161
+ |------------- | ------------- | ------------- | -------------|
162
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
163
+ | **calendarUuid** | [**string**] | Calendar identifier: the `uuid` of a calendar returned by `listCalendars`, or the `calendarUuid` of an event returned by `listCalendarEvents`. | defaults to undefined|
164
+
165
+
166
+ ### Return type
167
+
168
+ **V1CalendarsResource**
169
+
170
+ ### Authorization
171
+
172
+ [BearerAuth](../README.md#BearerAuth)
173
+
174
+ ### HTTP request headers
175
+
176
+ - **Content-Type**: Not defined
177
+ - **Accept**: application/json
178
+
179
+
180
+ ### HTTP response details
181
+ | Status code | Description | Response headers |
182
+ |-------------|-------------|------------------|
183
+ |**200** | Calendar payload. | - |
184
+ |**401** | Missing or invalid credentials. | - |
185
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
186
+ |**404** | Resource not found. | - |
187
+ |**500** | Server-side failure. | - |
188
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
189
+
190
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
191
+
192
+ # **listCalendars**
193
+ > V1CalendarsCollection listCalendars()
194
+
195
+ 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.
196
+
197
+ ### Example
198
+
199
+ ```typescript
200
+ import {
201
+ CalendarsApi,
202
+ Configuration
203
+ } from '@hostinger/mail-sdk';
204
+
205
+ const configuration = new Configuration();
206
+ const apiInstance = new CalendarsApi(configuration);
207
+
208
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
209
+ let page: number; //Page number (1-based). (optional) (default to 1)
210
+ let perPage: number; //Items per page (max 200). (optional) (default to 25)
211
+
212
+ const { status, data } = await apiInstance.listCalendars(
213
+ mailboxResourceId,
214
+ page,
215
+ perPage
216
+ );
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+ |Name | Type | Description | Notes|
222
+ |------------- | ------------- | ------------- | -------------|
223
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
224
+ | **page** | [**number**] | Page number (1-based). | (optional) defaults to 1|
225
+ | **perPage** | [**number**] | Items per page (max 200). | (optional) defaults to 25|
226
+
227
+
228
+ ### Return type
229
+
230
+ **V1CalendarsCollection**
231
+
232
+ ### Authorization
233
+
234
+ [BearerAuth](../README.md#BearerAuth)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: application/json
240
+
241
+
242
+ ### HTTP response details
243
+ | Status code | Description | Response headers |
244
+ |-------------|-------------|------------------|
245
+ |**200** | Paginated list of calendars. | - |
246
+ |**401** | Missing or invalid credentials. | - |
247
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
248
+ |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
249
+ |**500** | Server-side failure. | - |
250
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
251
+
252
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
253
+
254
+ # **updateCalendar**
255
+ > V1CalendarsResource updateCalendar(v1CalendarsUpdateRequest)
256
+
257
+ 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.
258
+
259
+ ### Example
260
+
261
+ ```typescript
262
+ import {
263
+ CalendarsApi,
264
+ Configuration,
265
+ V1CalendarsUpdateRequest
266
+ } from '@hostinger/mail-sdk';
267
+
268
+ const configuration = new Configuration();
269
+ const apiInstance = new CalendarsApi(configuration);
270
+
271
+ let mailboxResourceId: string; //Resource ID of the managed mailbox the bearer token is authorized for. (default to undefined)
272
+ let calendarUuid: string; //Calendar identifier: the `uuid` of a calendar returned by `listCalendars`, or the `calendarUuid` of an event returned by `listCalendarEvents`. (default to undefined)
273
+ let v1CalendarsUpdateRequest: V1CalendarsUpdateRequest; //
274
+
275
+ const { status, data } = await apiInstance.updateCalendar(
276
+ mailboxResourceId,
277
+ calendarUuid,
278
+ v1CalendarsUpdateRequest
279
+ );
280
+ ```
281
+
282
+ ### Parameters
283
+
284
+ |Name | Type | Description | Notes|
285
+ |------------- | ------------- | ------------- | -------------|
286
+ | **v1CalendarsUpdateRequest** | **V1CalendarsUpdateRequest**| | |
287
+ | **mailboxResourceId** | [**string**] | Resource ID of the managed mailbox the bearer token is authorized for. | defaults to undefined|
288
+ | **calendarUuid** | [**string**] | Calendar identifier: the `uuid` of a calendar returned by `listCalendars`, or the `calendarUuid` of an event returned by `listCalendarEvents`. | defaults to undefined|
289
+
290
+
291
+ ### Return type
292
+
293
+ **V1CalendarsResource**
294
+
295
+ ### Authorization
296
+
297
+ [BearerAuth](../README.md#BearerAuth)
298
+
299
+ ### HTTP request headers
300
+
301
+ - **Content-Type**: application/json
302
+ - **Accept**: application/json
303
+
304
+
305
+ ### HTTP response details
306
+ | Status code | Description | Response headers |
307
+ |-------------|-------------|------------------|
308
+ |**200** | Updated calendar. | - |
309
+ |**401** | Missing or invalid credentials. | - |
310
+ |**403** | Token is not authorized to manage the requested mailbox. | - |
311
+ |**404** | Resource not found. | - |
312
+ |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
313
+ |**500** | Server-side failure. | - |
314
+ |**502** | Upstream service is unavailable or returned an unexpected response. | - |
315
+
316
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
317
+
@@ -329,6 +329,7 @@ const { status, data } = await apiInstance.getMessageAttachment(
329
329
  |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
330
330
  |**500** | Server-side failure. | - |
331
331
  |**502** | Upstream service is unavailable or returned an unexpected response. | - |
332
+ |**504** | Upstream service did not respond within the configured timeout. | - |
332
333
 
333
334
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
334
335
 
@@ -392,6 +393,7 @@ const { status, data } = await apiInstance.getMessageSource(
392
393
  |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
393
394
  |**500** | Server-side failure. | - |
394
395
  |**502** | Upstream service is unavailable or returned an unexpected response. | - |
396
+ |**504** | Upstream service did not respond within the configured timeout. | - |
395
397
 
396
398
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
397
399
 
@@ -791,6 +793,7 @@ const { status, data } = await apiInstance.searchMessages(
791
793
  |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
792
794
  |**500** | Server-side failure. | - |
793
795
  |**502** | Upstream service is unavailable or returned an unexpected response. | - |
796
+ |**504** | Upstream service did not respond within the configured timeout. | - |
794
797
 
795
798
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
796
799
 
package/docs/SendApi.md CHANGED
@@ -9,7 +9,7 @@ All URIs are relative to *https://api.mail.hostinger.com*
9
9
  # **sendEmail**
10
10
  > sendEmail(v1SendRequest)
11
11
 
12
- Send a message from the managed mailbox. Saves a copy to INBOX.Sent.
12
+ 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.
13
13
 
14
14
  ### Example
15
15
 
@@ -57,7 +57,7 @@ void (empty response body)
57
57
  ### HTTP response details
58
58
  | Status code | Description | Response headers |
59
59
  |-------------|-------------|------------------|
60
- |**204** | Message sent and saved to sent folder. | - |
60
+ |**204** | Message accepted for delivery. It is dispatched within a few seconds and then saved to the sent folder; a delivery failure is not reported on this call. | - |
61
61
  |**401** | Missing or invalid credentials. | - |
62
62
  |**403** | Token is not authorized to manage the requested mailbox. | - |
63
63
  |**422** | Request payload failed validation. `params` maps field name to an array of error messages. | - |
@@ -0,0 +1,25 @@
1
+ # V1CalendarEventsAttendee
2
+
3
+ Attendee of an event with their answer to the invitation.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **email** | **string** | | [default to undefined]
11
+ **participationStatus** | **string** | Answer of the attendee. NEEDS-ACTION means no answer yet. | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { V1CalendarEventsAttendee } from '@hostinger/mail-sdk';
17
+
18
+ const instance: V1CalendarEventsAttendee = {
19
+ name,
20
+ email,
21
+ participationStatus,
22
+ };
23
+ ```
24
+
25
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # V1CalendarEventsAttendeeInput
2
+
3
+ Person to invite to an event.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | Display name of the attendee, null when unknown. | [optional] [default to undefined]
10
+ **email** | **string** | Email address of the attendee. | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarEventsAttendeeInput } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarEventsAttendeeInput = {
18
+ name,
19
+ email,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # V1CalendarEventsCollection
2
+
3
+ Calendar events overlapping the requested time range. Not paginated.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**Array<V1CalendarEventsEventListItem>**](V1CalendarEventsEventListItem.md) | | [default to undefined]
10
+ **meta** | [**V1CalendarEventsCollectionMeta**](V1CalendarEventsCollectionMeta.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarEventsCollection } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarEventsCollection = {
18
+ data,
19
+ meta,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # V1CalendarEventsCollectionMeta
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **truncated** | **boolean** | Whether some events were left out because the calendar holds too many to list in one request. | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { V1CalendarEventsCollectionMeta } from '@hostinger/mail-sdk';
14
+
15
+ const instance: V1CalendarEventsCollectionMeta = {
16
+ truncated,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,43 @@
1
+ # V1CalendarEventsCreateRequest
2
+
3
+ Body for creating a calendar event.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **title** | **string** | Title of the event. | [default to undefined]
10
+ **start** | **string** | 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). | [default to undefined]
11
+ **end** | **string** | 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. | [optional] [default to undefined]
12
+ **allDay** | **boolean** | `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day. | [default to undefined]
13
+ **timeZone** | **string** | IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true. | [optional] [default to undefined]
14
+ **description** | **string** | Notes of the event. Omitted or null for none. | [optional] [default to undefined]
15
+ **location** | **string** | Place of the event. Omitted or null for none. | [optional] [default to undefined]
16
+ **meetingLink** | **string** | http or https URL of the online meeting. Omitted or null for none. | [optional] [default to undefined]
17
+ **color** | **string** | Color of the event as #RRGGBB or #RRGGBBAA. Omitted or null uses the calendar color. | [optional] [default to undefined]
18
+ **recurrenceRule** | [**V1CalendarEventsRecurrenceRule**](V1CalendarEventsRecurrenceRule.md) | 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. | [optional] [default to undefined]
19
+ **reminder** | [**V1CalendarEventsReminder**](V1CalendarEventsReminder.md) | Alarm before the start: `value` 0 to 1000 and `unit`. Omitted or null for none. | [optional] [default to undefined]
20
+ **attendees** | [**Array<V1CalendarEventsAttendeeInput>**](V1CalendarEventsAttendeeInput.md) | 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. | [optional] [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { V1CalendarEventsCreateRequest } from '@hostinger/mail-sdk';
26
+
27
+ const instance: V1CalendarEventsCreateRequest = {
28
+ title,
29
+ start,
30
+ end,
31
+ allDay,
32
+ timeZone,
33
+ description,
34
+ location,
35
+ meetingLink,
36
+ color,
37
+ recurrenceRule,
38
+ reminder,
39
+ attendees,
40
+ };
41
+ ```
42
+
43
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,61 @@
1
+ # V1CalendarEventsEvent
2
+
3
+ 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.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uuid** | **string** | Event identifier, the `eventUuid` of the calendar event endpoints. Every occurrence of a recurring event has the same uuid. | [default to undefined]
10
+ **calendarUuid** | **string** | Identifier of the calendar the event is stored in. | [default to undefined]
11
+ **recurrenceId** | **string** | Identifies one occurrence of a recurring event. Null for a one-off event or for the series itself. | [default to undefined]
12
+ **title** | **string** | | [default to undefined]
13
+ **start** | **string** | 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). | [default to undefined]
14
+ **end** | **string** | 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). | [default to undefined]
15
+ **allDay** | **boolean** | | [default to undefined]
16
+ **timeZone** | **string** | IANA time zone the event is stored in. Null when it has none. | [default to undefined]
17
+ **editable** | **boolean** | Whether `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent` can change the event. | [default to undefined]
18
+ **color** | **string** | Color of the event. The calendar color when the event has none or is an invitation from someone else. | [default to undefined]
19
+ **participationStatus** | **string** | Answer of the mailbox to an invitation from someone else. Null for its own events. | [default to undefined]
20
+ **status** | **string** | CANCELLED when the organizer cancelled the event, CONFIRMED otherwise. | [default to undefined]
21
+ **etag** | **string** | Version of the event. Send it as `If-Match` on a write to fail instead of overwriting a newer version. | [default to undefined]
22
+ **replyable** | **boolean** | Whether the mailbox is invited by someone else and the event is not cancelled, so `replyToCalendarEvent` can answer it. | [default to undefined]
23
+ **description** | **string** | | [default to undefined]
24
+ **location** | **string** | | [default to undefined]
25
+ **meetingLink** | **string** | | [default to undefined]
26
+ **recurrenceRule** | [**V1CalendarEventsRecurrenceRule**](V1CalendarEventsRecurrenceRule.md) | How the event repeats. Null for a one-off event. | [default to undefined]
27
+ **reminder** | [**V1CalendarEventsReminder**](V1CalendarEventsReminder.md) | Alarm before the start. Null for none. | [default to undefined]
28
+ **organizer** | [**V1CalendarEventsOrganizer**](V1CalendarEventsOrganizer.md) | Who organizes the event. Null when the event has no organizer. | [default to undefined]
29
+ **attendees** | [**Array<V1CalendarEventsAttendee>**](V1CalendarEventsAttendee.md) | | [default to undefined]
30
+
31
+ ## Example
32
+
33
+ ```typescript
34
+ import { V1CalendarEventsEvent } from '@hostinger/mail-sdk';
35
+
36
+ const instance: V1CalendarEventsEvent = {
37
+ uuid,
38
+ calendarUuid,
39
+ recurrenceId,
40
+ title,
41
+ start,
42
+ end,
43
+ allDay,
44
+ timeZone,
45
+ editable,
46
+ color,
47
+ participationStatus,
48
+ status,
49
+ etag,
50
+ replyable,
51
+ description,
52
+ location,
53
+ meetingLink,
54
+ recurrenceRule,
55
+ reminder,
56
+ organizer,
57
+ attendees,
58
+ };
59
+ ```
60
+
61
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,43 @@
1
+ # V1CalendarEventsEventListItem
2
+
3
+ Summary of one calendar event or of one occurrence of a recurring event.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uuid** | **string** | Event identifier, the `eventUuid` of the calendar event endpoints. Every occurrence of a recurring event has the same uuid. | [default to undefined]
10
+ **calendarUuid** | **string** | Identifier of the calendar the event is stored in. | [default to undefined]
11
+ **recurrenceId** | **string** | Identifies one occurrence of a recurring event. Null for a one-off event or for the series itself. | [default to undefined]
12
+ **title** | **string** | | [default to undefined]
13
+ **start** | **string** | 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). | [default to undefined]
14
+ **end** | **string** | 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). | [default to undefined]
15
+ **allDay** | **boolean** | | [default to undefined]
16
+ **timeZone** | **string** | IANA time zone the event is stored in. Null when it has none. | [default to undefined]
17
+ **editable** | **boolean** | Whether `updateCalendarEvent`, `rescheduleCalendarEvent` and `deleteCalendarEvent` can change the event. | [default to undefined]
18
+ **color** | **string** | Color of the event. The calendar color when the event has none or is an invitation from someone else. | [default to undefined]
19
+ **participationStatus** | **string** | Answer of the mailbox to an invitation from someone else. Null for its own events. | [default to undefined]
20
+ **status** | **string** | CANCELLED when the organizer cancelled the event, CONFIRMED otherwise. | [default to undefined]
21
+
22
+ ## Example
23
+
24
+ ```typescript
25
+ import { V1CalendarEventsEventListItem } from '@hostinger/mail-sdk';
26
+
27
+ const instance: V1CalendarEventsEventListItem = {
28
+ uuid,
29
+ calendarUuid,
30
+ recurrenceId,
31
+ title,
32
+ start,
33
+ end,
34
+ allDay,
35
+ timeZone,
36
+ editable,
37
+ color,
38
+ participationStatus,
39
+ status,
40
+ };
41
+ ```
42
+
43
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # V1CalendarEventsOrganizer
2
+
3
+ Organizer of an event.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **name** | **string** | | [default to undefined]
10
+ **email** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarEventsOrganizer } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarEventsOrganizer = {
18
+ name,
19
+ email,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,23 @@
1
+ # V1CalendarEventsRecurrenceDay
2
+
3
+ One weekday of a recurrence rule.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **day** | **string** | | [default to undefined]
10
+ **position** | **number** | 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. | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarEventsRecurrenceDay } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarEventsRecurrenceDay = {
18
+ day,
19
+ position,
20
+ };
21
+ ```
22
+
23
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)