@hostinger/sdk 1.63.0 → 1.64.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.
@@ -4,11 +4,132 @@ All URIs are relative to *https://developers.hostinger.com*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**connectSendingDomainV1**](#connectsendingdomainv1) | **POST** /api/reach/v1/profiles/{profileUuid}/domains | Connect sending domain|
8
+ |[**deleteSendingDomainV1**](#deletesendingdomainv1) | **DELETE** /api/reach/v1/profiles/{profileUuid}/domains | Delete sending domain|
7
9
  |[**getConnectedSendingDomainV1**](#getconnectedsendingdomainv1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains | Get connected sending domain|
8
10
  |[**getProfileDomainDNSStatusV1**](#getprofiledomaindnsstatusv1) | **GET** /api/reach/v1/profiles/{profileUuid}/domains/dns-status | Get profile domain DNS status|
11
+ |[**getProfileSettingsV1**](#getprofilesettingsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/settings | Get profile settings|
9
12
  |[**getRemainingPlanLimitsV1**](#getremainingplanlimitsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/limits | Get remaining plan limits|
10
13
  |[**listPlanFeatureAccessV1**](#listplanfeatureaccessv1) | **GET** /api/reach/v1/profiles/{profileUuid}/features | List plan feature access|
11
14
  |[**listProfilesV1**](#listprofilesv1) | **GET** /api/reach/v1/profiles | List Profiles|
15
+ |[**updateProfileSettingsV1**](#updateprofilesettingsv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/settings | Update profile settings|
16
+
17
+ # **connectSendingDomainV1**
18
+ > CommonSuccessEmptyResource connectSendingDomainV1(reachV1ProfilesDomainsConnectRequest)
19
+
20
+ Connect a sending domain to the profile so emails can be sent from addresses on it. Connecting does not make the domain ready to send: check the DNS status endpoint next for records that are still missing. A domain the account owns or has already verified connects immediately. Any other domain starts a TXT ownership verification and returns `409`; complete the verification in Reach, then retry. Returns `422` when the profile or another profile already has the domain, the domain is blocked, or its ownership cannot be verified. An already connected domain is never replaced. On success the sender address of draft and scheduled campaigns, and of published automation and double opt-in emails, moves onto the new domain in the background, keeping the part before the `@`.
21
+
22
+ ### Example
23
+
24
+ ```typescript
25
+ import {
26
+ ReachProfilesApi,
27
+ Configuration,
28
+ ReachV1ProfilesDomainsConnectRequest
29
+ } from '@hostinger/sdk';
30
+
31
+ const configuration = new Configuration();
32
+ const apiInstance = new ReachProfilesApi(configuration);
33
+
34
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
35
+ let reachV1ProfilesDomainsConnectRequest: ReachV1ProfilesDomainsConnectRequest; //
36
+
37
+ const { status, data } = await apiInstance.connectSendingDomainV1(
38
+ profileUuid,
39
+ reachV1ProfilesDomainsConnectRequest
40
+ );
41
+ ```
42
+
43
+ ### Parameters
44
+
45
+ |Name | Type | Description | Notes|
46
+ |------------- | ------------- | ------------- | -------------|
47
+ | **reachV1ProfilesDomainsConnectRequest** | **ReachV1ProfilesDomainsConnectRequest**| | |
48
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
49
+
50
+
51
+ ### Return type
52
+
53
+ **CommonSuccessEmptyResource**
54
+
55
+ ### Authorization
56
+
57
+ [apiToken](../README.md#apiToken)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: application/json
62
+ - **Accept**: application/json
63
+
64
+
65
+ ### HTTP response details
66
+ | Status code | Description | Response headers |
67
+ |-------------|-------------|------------------|
68
+ |**200** | Success empty response | - |
69
+ |**401** | Unauthenticated response | - |
70
+ |**409** | Conflict response. &#x60;Retry-After&#x60;, when present, is the number of seconds to wait before retrying. | * Retry-After - Seconds to wait before retrying the request <br> |
71
+ |**422** | Validation error response | - |
72
+ |**500** | Error response | - |
73
+
74
+ [[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)
75
+
76
+ # **deleteSendingDomainV1**
77
+ > CommonSuccessEmptyResource deleteSendingDomainV1(reachV1ProfilesDomainsDisconnectRequest)
78
+
79
+ Disconnect the sending domain from the profile. The domain record is removed, so the profile has no sending domain afterwards and campaigns cannot be sent until a domain is connected again. Sender addresses already stored on campaigns, automations and settings are left untouched and keep pointing at the removed domain. A domain that is not connected to the profile also succeeds, so success is not proof that anything was deleted. DNS records at the DNS provider are not removed. To switch domains, delete this one and connect the new one. Confirm the domain with the customer before calling.
80
+
81
+ ### Example
82
+
83
+ ```typescript
84
+ import {
85
+ ReachProfilesApi,
86
+ Configuration,
87
+ ReachV1ProfilesDomainsDisconnectRequest
88
+ } from '@hostinger/sdk';
89
+
90
+ const configuration = new Configuration();
91
+ const apiInstance = new ReachProfilesApi(configuration);
92
+
93
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
94
+ let reachV1ProfilesDomainsDisconnectRequest: ReachV1ProfilesDomainsDisconnectRequest; //
95
+
96
+ const { status, data } = await apiInstance.deleteSendingDomainV1(
97
+ profileUuid,
98
+ reachV1ProfilesDomainsDisconnectRequest
99
+ );
100
+ ```
101
+
102
+ ### Parameters
103
+
104
+ |Name | Type | Description | Notes|
105
+ |------------- | ------------- | ------------- | -------------|
106
+ | **reachV1ProfilesDomainsDisconnectRequest** | **ReachV1ProfilesDomainsDisconnectRequest**| | |
107
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
108
+
109
+
110
+ ### Return type
111
+
112
+ **CommonSuccessEmptyResource**
113
+
114
+ ### Authorization
115
+
116
+ [apiToken](../README.md#apiToken)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: application/json
121
+ - **Accept**: application/json
122
+
123
+
124
+ ### HTTP response details
125
+ | Status code | Description | Response headers |
126
+ |-------------|-------------|------------------|
127
+ |**200** | Success empty response | - |
128
+ |**422** | Validation error response | - |
129
+ |**401** | Unauthenticated response | - |
130
+ |**500** | Error response | - |
131
+
132
+ [[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)
12
133
 
13
134
  # **getConnectedSendingDomainV1**
14
135
  > ReachV1ProfilesDomainsSendingDomainResource getConnectedSendingDomainV1()
@@ -107,6 +228,59 @@ const { status, data } = await apiInstance.getProfileDomainDNSStatusV1(
107
228
  - **Accept**: application/json
108
229
 
109
230
 
231
+ ### HTTP response details
232
+ | Status code | Description | Response headers |
233
+ |-------------|-------------|------------------|
234
+ |**200** | Success response | - |
235
+ |**401** | Unauthenticated response | - |
236
+ |**500** | Error response | - |
237
+
238
+ [[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)
239
+
240
+ # **getProfileSettingsV1**
241
+ > ReachV1ProfilesSettingsSettingsResource getProfileSettingsV1()
242
+
243
+ Get the profile\'s saved sender identity and brand details. Read the default sender before creating a campaign instead of asking the customer, and reuse the brand fields when generating email content. Any field can be `null` for a profile that never filled its settings in. This does not check that the sending domain is verified, use the connected sending domain endpoint for that.
244
+
245
+ ### Example
246
+
247
+ ```typescript
248
+ import {
249
+ ReachProfilesApi,
250
+ Configuration
251
+ } from '@hostinger/sdk';
252
+
253
+ const configuration = new Configuration();
254
+ const apiInstance = new ReachProfilesApi(configuration);
255
+
256
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
257
+
258
+ const { status, data } = await apiInstance.getProfileSettingsV1(
259
+ profileUuid
260
+ );
261
+ ```
262
+
263
+ ### Parameters
264
+
265
+ |Name | Type | Description | Notes|
266
+ |------------- | ------------- | ------------- | -------------|
267
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
268
+
269
+
270
+ ### Return type
271
+
272
+ **ReachV1ProfilesSettingsSettingsResource**
273
+
274
+ ### Authorization
275
+
276
+ [apiToken](../README.md#apiToken)
277
+
278
+ ### HTTP request headers
279
+
280
+ - **Content-Type**: Not defined
281
+ - **Accept**: application/json
282
+
283
+
110
284
  ### HTTP response details
111
285
  | Status code | Description | Response headers |
112
286
  |-------------|-------------|------------------|
@@ -268,3 +442,61 @@ This endpoint does not have any parameters.
268
442
 
269
443
  [[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)
270
444
 
445
+ # **updateProfileSettingsV1**
446
+ > ReachV1ProfilesSettingsSettingsResource updateProfileSettingsV1(reachV1ProfilesSettingsUpdateRequest)
447
+
448
+ Change the profile\'s default sender and brand details. Send only the fields to change: every omitted field keeps its value, and `null` or an empty string clears a text field. The default sender is what campaigns created afterwards start from; existing campaigns keep their own sender. `sender_email` is only the part before the `@`, because Reach combines it with the profile\'s connected sending domain, so an address outside that domain cannot be set. Connecting a sending domain is a separate endpoint and a connected domain cannot be changed here. Returns the settings after the change.
449
+
450
+ ### Example
451
+
452
+ ```typescript
453
+ import {
454
+ ReachProfilesApi,
455
+ Configuration,
456
+ ReachV1ProfilesSettingsUpdateRequest
457
+ } from '@hostinger/sdk';
458
+
459
+ const configuration = new Configuration();
460
+ const apiInstance = new ReachProfilesApi(configuration);
461
+
462
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
463
+ let reachV1ProfilesSettingsUpdateRequest: ReachV1ProfilesSettingsUpdateRequest; //
464
+
465
+ const { status, data } = await apiInstance.updateProfileSettingsV1(
466
+ profileUuid,
467
+ reachV1ProfilesSettingsUpdateRequest
468
+ );
469
+ ```
470
+
471
+ ### Parameters
472
+
473
+ |Name | Type | Description | Notes|
474
+ |------------- | ------------- | ------------- | -------------|
475
+ | **reachV1ProfilesSettingsUpdateRequest** | **ReachV1ProfilesSettingsUpdateRequest**| | |
476
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
477
+
478
+
479
+ ### Return type
480
+
481
+ **ReachV1ProfilesSettingsSettingsResource**
482
+
483
+ ### Authorization
484
+
485
+ [apiToken](../README.md#apiToken)
486
+
487
+ ### HTTP request headers
488
+
489
+ - **Content-Type**: application/json
490
+ - **Accept**: application/json
491
+
492
+
493
+ ### HTTP response details
494
+ | Status code | Description | Response headers |
495
+ |-------------|-------------|------------------|
496
+ |**200** | Success response | - |
497
+ |**422** | Validation error response | - |
498
+ |**401** | Unauthenticated response | - |
499
+ |**500** | Error response | - |
500
+
501
+ [[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)
502
+
@@ -0,0 +1,21 @@
1
+ # ReachV1ProfilesDomainsConnectRequest
2
+
3
+ Sending domain to connect to the profile
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **domain** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ProfilesDomainsConnectRequest } from '@hostinger/sdk';
15
+
16
+ const instance: ReachV1ProfilesDomainsConnectRequest = {
17
+ domain,
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,21 @@
1
+ # ReachV1ProfilesDomainsDisconnectRequest
2
+
3
+ Sending domain to disconnect from the profile
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **domain** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ReachV1ProfilesDomainsDisconnectRequest } from '@hostinger/sdk';
15
+
16
+ const instance: ReachV1ProfilesDomainsDisconnectRequest = {
17
+ domain,
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)
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
10
10
  **spf** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
11
11
  **dkim** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
12
12
  **dmarc** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
13
+ **a** | [**ReachV1ProfilesDomainsDnsRecordStatus**](ReachV1ProfilesDomainsDnsRecordStatus.md) | | [optional] [default to undefined]
13
14
 
14
15
  ## Example
15
16
 
@@ -22,6 +23,7 @@ const instance: ReachV1ProfilesDomainsDnsStatusResource = {
22
23
  spf,
23
24
  dkim,
24
25
  dmarc,
26
+ a,
25
27
  };
26
28
  ```
27
29
 
@@ -0,0 +1,63 @@
1
+ # ReachV1ProfilesSettingsSettingsResource
2
+
3
+ Sender identity and brand details saved on the profile. A profile that never filled its settings in returns empty values, so every field can be `null`.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **brand_name** | **string** | | [optional] [default to undefined]
10
+ **website_url** | **string** | | [optional] [default to undefined]
11
+ **business_address** | **string** | | [optional] [default to undefined]
12
+ **privacy_policy_url** | **string** | | [optional] [default to undefined]
13
+ **accent_color** | **string** | | [optional] [default to undefined]
14
+ **button_color** | **string** | | [optional] [default to undefined]
15
+ **background_color** | **string** | | [optional] [default to undefined]
16
+ **text_color** | **string** | | [optional] [default to undefined]
17
+ **links_color** | **string** | | [optional] [default to undefined]
18
+ **button_text** | **string** | Button text colour. | [optional] [default to undefined]
19
+ **button_corners** | **number** | Button corner radius in pixels. | [optional] [default to undefined]
20
+ **font_family** | **string** | Body and button font. | [optional] [default to undefined]
21
+ **heading_font_family** | **string** | | [optional] [default to undefined]
22
+ **logo_url** | **string** | | [optional] [default to undefined]
23
+ **social_links** | **Array&lt;string&gt;** | | [optional] [default to undefined]
24
+ **socials** | **{ [key: string]: string; }** | Social profile links keyed by platform. | [optional] [default to undefined]
25
+ **about** | **string** | | [optional] [default to undefined]
26
+ **keywords** | **Array&lt;string&gt;** | | [optional] [default to undefined]
27
+ **topics** | **Array&lt;string&gt;** | | [optional] [default to undefined]
28
+ **selling_points** | **Array&lt;string&gt;** | | [optional] [default to undefined]
29
+ **sender_name** | **string** | Default sender name that campaigns created afterwards start from. | [optional] [default to undefined]
30
+ **sender_email** | **string** | Part of the default sender address before the &#x60;@&#x60;. It is combined with the profile\&#39;s connected sending domain, see the connected sending domain endpoint. | [optional] [default to undefined]
31
+
32
+ ## Example
33
+
34
+ ```typescript
35
+ import { ReachV1ProfilesSettingsSettingsResource } from '@hostinger/sdk';
36
+
37
+ const instance: ReachV1ProfilesSettingsSettingsResource = {
38
+ brand_name,
39
+ website_url,
40
+ business_address,
41
+ privacy_policy_url,
42
+ accent_color,
43
+ button_color,
44
+ background_color,
45
+ text_color,
46
+ links_color,
47
+ button_text,
48
+ button_corners,
49
+ font_family,
50
+ heading_font_family,
51
+ logo_url,
52
+ social_links,
53
+ socials,
54
+ about,
55
+ keywords,
56
+ topics,
57
+ selling_points,
58
+ sender_name,
59
+ sender_email,
60
+ };
61
+ ```
62
+
63
+ [[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,63 @@
1
+ # ReachV1ProfilesSettingsUpdateRequest
2
+
3
+ Settings to change. Only the fields sent are changed; `null` or an empty string clears a text field.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **brand_name** | **string** | | [optional] [default to undefined]
10
+ **website_url** | **string** | | [optional] [default to undefined]
11
+ **business_address** | **string** | | [optional] [default to undefined]
12
+ **privacy_policy_url** | **string** | | [optional] [default to undefined]
13
+ **accent_color** | **string** | | [optional] [default to undefined]
14
+ **button_color** | **string** | | [optional] [default to undefined]
15
+ **background_color** | **string** | | [optional] [default to undefined]
16
+ **text_color** | **string** | | [optional] [default to undefined]
17
+ **links_color** | **string** | | [optional] [default to undefined]
18
+ **button_text** | **string** | Button text colour. | [optional] [default to undefined]
19
+ **button_corners** | **number** | | [optional] [default to undefined]
20
+ **font_family** | **string** | | [optional] [default to undefined]
21
+ **heading_font_family** | **string** | | [optional] [default to undefined]
22
+ **logo_url** | **string** | Public image URL. Logo uploads are not supported. | [optional] [default to undefined]
23
+ **social_links** | **Array&lt;string&gt;** | | [optional] [default to undefined]
24
+ **socials** | **{ [key: string]: string; }** | Social profile links keyed by platform. | [optional] [default to undefined]
25
+ **about** | **string** | | [optional] [default to undefined]
26
+ **keywords** | **Array&lt;string&gt;** | | [optional] [default to undefined]
27
+ **topics** | **Array&lt;string&gt;** | | [optional] [default to undefined]
28
+ **selling_points** | **Array&lt;string&gt;** | | [optional] [default to undefined]
29
+ **sender_name** | **string** | Default sender name. Letters, numbers and spaces only. | [optional] [default to undefined]
30
+ **sender_email** | **string** | Part of the default sender address before the &#x60;@&#x60;, for example &#x60;hello&#x60;. Never send a full address: Reach adds the profile\&#39;s connected sending domain itself. | [optional] [default to undefined]
31
+
32
+ ## Example
33
+
34
+ ```typescript
35
+ import { ReachV1ProfilesSettingsUpdateRequest } from '@hostinger/sdk';
36
+
37
+ const instance: ReachV1ProfilesSettingsUpdateRequest = {
38
+ brand_name,
39
+ website_url,
40
+ business_address,
41
+ privacy_policy_url,
42
+ accent_color,
43
+ button_color,
44
+ background_color,
45
+ text_color,
46
+ links_color,
47
+ button_text,
48
+ button_corners,
49
+ font_family,
50
+ heading_font_family,
51
+ logo_url,
52
+ social_links,
53
+ socials,
54
+ about,
55
+ keywords,
56
+ topics,
57
+ selling_points,
58
+ sender_name,
59
+ sender_email,
60
+ };
61
+ ```
62
+
63
+ [[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 API
5
5
  *
6
- * API Version: 1.63.0
6
+ * API Version: 1.64.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/sdk",
3
- "version": "1.63.0",
3
+ "version": "1.64.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {