@hostinger/mail-sdk 1.19.9 → 1.20.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/README.md +2 -2
  2. package/api.ts +2905 -760
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +2206 -720
  7. package/dist/api.js +1249 -6
  8. package/dist/base.d.ts +1 -1
  9. package/dist/base.js +1 -1
  10. package/dist/common.d.ts +1 -1
  11. package/dist/common.js +1 -1
  12. package/dist/configuration.d.ts +1 -1
  13. package/dist/configuration.js +2 -2
  14. package/dist/esm/api.d.ts +2206 -720
  15. package/dist/esm/api.js +1239 -5
  16. package/dist/esm/base.d.ts +1 -1
  17. package/dist/esm/base.js +1 -1
  18. package/dist/esm/common.d.ts +1 -1
  19. package/dist/esm/common.js +1 -1
  20. package/dist/esm/configuration.d.ts +1 -1
  21. package/dist/esm/configuration.js +2 -2
  22. package/dist/esm/index.d.ts +1 -1
  23. package/dist/esm/index.js +1 -1
  24. package/dist/index.d.ts +1 -1
  25. package/dist/index.js +1 -1
  26. package/docs/CalendarEventsApi.md +505 -0
  27. package/docs/CalendarsApi.md +317 -0
  28. package/docs/MessagesApi.md +3 -0
  29. package/docs/SendApi.md +2 -2
  30. package/docs/V1CalendarEventsAttendee.md +25 -0
  31. package/docs/V1CalendarEventsAttendeeInput.md +23 -0
  32. package/docs/V1CalendarEventsCollection.md +23 -0
  33. package/docs/V1CalendarEventsCollectionMeta.md +20 -0
  34. package/docs/V1CalendarEventsCreateRequest.md +43 -0
  35. package/docs/V1CalendarEventsEvent.md +61 -0
  36. package/docs/V1CalendarEventsEventListItem.md +43 -0
  37. package/docs/V1CalendarEventsOrganizer.md +23 -0
  38. package/docs/V1CalendarEventsRecurrenceDay.md +23 -0
  39. package/docs/V1CalendarEventsRecurrenceRule.md +35 -0
  40. package/docs/V1CalendarEventsReminder.md +23 -0
  41. package/docs/V1CalendarEventsReplyRequest.md +23 -0
  42. package/docs/V1CalendarEventsRescheduleRequest.md +33 -0
  43. package/docs/V1CalendarEventsResource.md +21 -0
  44. package/docs/V1CalendarEventsUpdateRequest.md +49 -0
  45. package/docs/V1CalendarsCalendar.md +31 -0
  46. package/docs/V1CalendarsCollection.md +23 -0
  47. package/docs/V1CalendarsCreateRequest.md +27 -0
  48. package/docs/V1CalendarsResource.md +21 -0
  49. package/docs/V1CalendarsUpdateRequest.md +27 -0
  50. package/index.ts +1 -1
  51. package/package.json +2 -2
@@ -0,0 +1,35 @@
1
+ # V1CalendarEventsRecurrenceRule
2
+
3
+ How an event repeats. Every field is always present, null when unused.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **frequency** | **string** | 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. | [default to undefined]
10
+ **interval** | **number** | Repeat every this many units of `frequency`. 1 to 1000 when writing. | [default to undefined]
11
+ **byDay** | [**Array<V1CalendarEventsRecurrenceDay>**](V1CalendarEventsRecurrenceDay.md) | Weekdays the event repeats on. Null when unused. | [default to undefined]
12
+ **byMonthDay** | **Array<number>** | 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. | [default to undefined]
13
+ **byMonth** | **Array<number>** | Months, 1 is January. Null when unused. | [default to undefined]
14
+ **count** | **number** | Number of occurrences after which the series ends, at most 1000 when writing. Never set together with `until`. | [default to undefined]
15
+ **until** | **string** | Moment after which the series ends, not before the start of the event. Never set together with `count`. | [default to undefined]
16
+ **weekStart** | **string** | First day of the week used by the rule. Null when not set. | [default to undefined]
17
+
18
+ ## Example
19
+
20
+ ```typescript
21
+ import { V1CalendarEventsRecurrenceRule } from '@hostinger/mail-sdk';
22
+
23
+ const instance: V1CalendarEventsRecurrenceRule = {
24
+ frequency,
25
+ interval,
26
+ byDay,
27
+ byMonthDay,
28
+ byMonth,
29
+ count,
30
+ until,
31
+ weekStart,
32
+ };
33
+ ```
34
+
35
+ [[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
+ # V1CalendarEventsReminder
2
+
3
+ Alarm of an event: how long before the start it fires.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **value** | **number** | How many units before the start. 0 is at the start time. At most 1000 when writing. | [default to undefined]
10
+ **unit** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarEventsReminder } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarEventsReminder = {
18
+ value,
19
+ unit,
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
+ # V1CalendarEventsReplyRequest
2
+
3
+ Body for answering an invitation.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **participationStatus** | **string** | The answer to the invitation. | [default to undefined]
10
+ **recurrenceId** | **string** | `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item, to answer only that occurrence. Omitted or null answers the whole event. | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarEventsReplyRequest } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarEventsReplyRequest = {
18
+ participationStatus,
19
+ recurrenceId,
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,33 @@
1
+ # V1CalendarEventsRescheduleRequest
2
+
3
+ Body for moving a calendar event to another time or changing its length.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **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]
10
+ **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]
11
+ **allDay** | **boolean** | `true` for an all-day event (dates only, `timeZone` ignored), `false` for an event at a time of day. | [default to undefined]
12
+ **timeZone** | **string** | IANA time zone of the event. Required when `allDay` is false, ignored when `allDay` is true. | [optional] [default to undefined]
13
+ **scope** | **string** | 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. | [optional] [default to undefined]
14
+ **recurrenceId** | **string** | `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item. Required when `scope` is `this` or `future`, ignored for `all`. | [optional] [default to undefined]
15
+ **notifyAttendees** | **boolean** | `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`. | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { V1CalendarEventsRescheduleRequest } from '@hostinger/mail-sdk';
21
+
22
+ const instance: V1CalendarEventsRescheduleRequest = {
23
+ start,
24
+ end,
25
+ allDay,
26
+ timeZone,
27
+ scope,
28
+ recurrenceId,
29
+ notifyAttendees,
30
+ };
31
+ ```
32
+
33
+ [[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,21 @@
1
+ # V1CalendarEventsResource
2
+
3
+ Single calendar event payload.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**V1CalendarEventsEvent**](V1CalendarEventsEvent.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1CalendarEventsResource } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1CalendarEventsResource = {
17
+ data,
18
+ };
19
+ ```
20
+
21
+ [[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,49 @@
1
+ # V1CalendarEventsUpdateRequest
2
+
3
+ Body for updating a calendar event. Every field replaces the stored value and an omitted optional field is cleared.
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 clears it. | [optional] [default to undefined]
15
+ **location** | **string** | Place of the event. Omitted or null clears it. | [optional] [default to undefined]
16
+ **meetingLink** | **string** | http or https URL of the online meeting. Omitted or null clears it. | [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 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. | [optional] [default to undefined]
19
+ **reminder** | [**V1CalendarEventsReminder**](V1CalendarEventsReminder.md) | Alarm before the start: `value` 0 to 1000 and `unit`. Omitted or null clears it. | [optional] [default to undefined]
20
+ **attendees** | [**Array<V1CalendarEventsAttendeeInput>**](V1CalendarEventsAttendeeInput.md) | 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. | [optional] [default to undefined]
21
+ **scope** | **string** | 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. | [optional] [default to undefined]
22
+ **recurrenceId** | **string** | `recurrenceId` of one occurrence, copied unchanged from a `listCalendarEvents` item. Required when `scope` is `this` or `future`, ignored for `all`. | [optional] [default to undefined]
23
+ **notifyAttendees** | **boolean** | `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`. | [optional] [default to undefined]
24
+
25
+ ## Example
26
+
27
+ ```typescript
28
+ import { V1CalendarEventsUpdateRequest } from '@hostinger/mail-sdk';
29
+
30
+ const instance: V1CalendarEventsUpdateRequest = {
31
+ title,
32
+ start,
33
+ end,
34
+ allDay,
35
+ timeZone,
36
+ description,
37
+ location,
38
+ meetingLink,
39
+ color,
40
+ recurrenceRule,
41
+ reminder,
42
+ attendees,
43
+ scope,
44
+ recurrenceId,
45
+ notifyAttendees,
46
+ };
47
+ ```
48
+
49
+ [[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,31 @@
1
+ # V1CalendarsCalendar
2
+
3
+ Calendar of a managed mailbox: one it owns or one shared with it.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **uuid** | **string** | Calendar identifier, the `calendarUuid` of the calendar and calendar event endpoints. | [default to undefined]
10
+ **displayName** | **string** | | [default to undefined]
11
+ **description** | **string** | | [default to undefined]
12
+ **color** | **string** | Hex color as #RRGGBB or #RRGGBBAA. | [default to undefined]
13
+ **_default** | **boolean** | Whether this is the default calendar of the mailbox. New events go here unless another calendar is named. | [default to undefined]
14
+ **visible** | **boolean** | 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. | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { V1CalendarsCalendar } from '@hostinger/mail-sdk';
20
+
21
+ const instance: V1CalendarsCalendar = {
22
+ uuid,
23
+ displayName,
24
+ description,
25
+ color,
26
+ _default,
27
+ visible,
28
+ };
29
+ ```
30
+
31
+ [[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
+ # V1CalendarsCollection
2
+
3
+ Paginated list of calendars.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**Array<V1CalendarsCalendar>**](V1CalendarsCalendar.md) | | [default to undefined]
10
+ **pagination** | [**Pagination**](Pagination.md) | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { V1CalendarsCollection } from '@hostinger/mail-sdk';
16
+
17
+ const instance: V1CalendarsCollection = {
18
+ data,
19
+ pagination,
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,27 @@
1
+ # V1CalendarsCreateRequest
2
+
3
+ Body for creating a calendar.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **displayName** | **string** | Name of the calendar. | [default to undefined]
10
+ **description** | **string** | Optional free-text note about the calendar. | [optional] [default to undefined]
11
+ **color** | **string** | Hex color as #RRGGBB or #RRGGBBAA. Omitted or null uses the default color. | [optional] [default to undefined]
12
+ **visible** | **boolean** | Whether the mailbox shows the calendar in its calendar view. Omitted or null means true. | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { V1CalendarsCreateRequest } from '@hostinger/mail-sdk';
18
+
19
+ const instance: V1CalendarsCreateRequest = {
20
+ displayName,
21
+ description,
22
+ color,
23
+ visible,
24
+ };
25
+ ```
26
+
27
+ [[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,21 @@
1
+ # V1CalendarsResource
2
+
3
+ Single calendar payload.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **data** | [**V1CalendarsCalendar**](V1CalendarsCalendar.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { V1CalendarsResource } from '@hostinger/mail-sdk';
15
+
16
+ const instance: V1CalendarsResource = {
17
+ data,
18
+ };
19
+ ```
20
+
21
+ [[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,27 @@
1
+ # V1CalendarsUpdateRequest
2
+
3
+ Body for updating a calendar. Name, description and color replace the stored values.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **displayName** | **string** | Name of the calendar. | [default to undefined]
10
+ **description** | **string** | Free-text note about the calendar. Omitted or null clears it. | [optional] [default to undefined]
11
+ **color** | **string** | Hex color as #RRGGBB or #RRGGBBAA. Omitted or null resets it to the default color. | [optional] [default to undefined]
12
+ **visible** | **boolean** | Whether the mailbox shows the calendar in its calendar view. Omitted or null keeps the current value. | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { V1CalendarsUpdateRequest } from '@hostinger/mail-sdk';
18
+
19
+ const instance: V1CalendarsUpdateRequest = {
20
+ displayName,
21
+ description,
22
+ color,
23
+ visible,
24
+ };
25
+ ```
26
+
27
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger Mail API
5
5
  *
6
- * API Version: 1.3.0
6
+ * API Version: 1.4.0
7
7
  *
8
8
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
9
9
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostinger/mail-sdk",
3
- "version": "1.19.9",
3
+ "version": "1.20.1",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {
@@ -28,7 +28,7 @@
28
28
  "axios": "^1.8.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@types/node": "12.11.5 - 26.6.7",
31
+ "@types/node": "12.11.5 - 26.6.12",
32
32
  "typescript": "^4.0 || ^5.0"
33
33
  }
34
34
  }