hostinger-api-sdk 2.16.0 → 3.0.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.
@@ -0,0 +1,30 @@
1
+ # GPUV1LlmModelVariantLlmModelVariantResource
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **number** | LLM model variant ID | [optional] [default to undefined]
9
+ **model_tag** | **string** | | [optional] [default to undefined]
10
+ **parameter_count** | **number** | | [optional] [default to undefined]
11
+ **capabilities** | **Array<string>** | | [optional] [default to undefined]
12
+ **dark_image_id** | **string** | Dark theme icon image ID | [optional] [default to undefined]
13
+ **light_image_id** | **string** | Light theme icon image ID | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { GPUV1LlmModelVariantLlmModelVariantResource } from '@hostinger/sdk';
19
+
20
+ const instance: GPUV1LlmModelVariantLlmModelVariantResource = {
21
+ id,
22
+ model_tag,
23
+ parameter_count,
24
+ capabilities,
25
+ dark_image_id,
26
+ light_image_id,
27
+ };
28
+ ```
29
+
30
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -8,7 +8,6 @@ Name | Type | Description | Notes
8
8
  **id** | **number** | OS template ID | [optional] [default to undefined]
9
9
  **name** | **string** | | [optional] [default to undefined]
10
10
  **kb_url** | **string** | Knowledge base article about the template | [optional] [default to undefined]
11
- **image** | **string** | Icon image ID | [optional] [default to undefined]
12
11
  **dark_image_id** | **string** | Dark theme icon image ID | [optional] [default to undefined]
13
12
  **light_image_id** | **string** | Light theme icon image ID | [optional] [default to undefined]
14
13
 
@@ -21,7 +20,6 @@ const instance: GPUV1OsTemplateOsTemplateResource = {
21
20
  id,
22
21
  name,
23
22
  kb_url,
24
- image,
25
23
  dark_image_id,
26
24
  light_image_id,
27
25
  };
@@ -7,9 +7,11 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **number** | GPU pool group ID | [optional] [default to undefined]
9
9
  **name** | **string** | | [optional] [default to undefined]
10
+ **description** | **string** | | [optional] [default to undefined]
11
+ **feature** | **string** | | [optional] [default to undefined]
10
12
  **vram** | **number** | Total VRAM in bytes | [optional] [default to undefined]
11
13
  **is_available** | **boolean** | Whether the group has any available pools | [optional] [default to undefined]
12
- **min_price_per_hour** | **number** | Lowest hourly price of the group instance types, in the requested currency | [optional] [default to undefined]
14
+ **min_price_per_hour** | **number** | Lowest hourly price of the group instance types, in credits | [optional] [default to undefined]
13
15
  **pools** | [**Array<GPUV1PoolPoolResource>**](GPUV1PoolPoolResource.md) | Array of [`GPU.V1.Pool.PoolResource`](#model/gpuv1poolpoolresource) | [optional] [default to undefined]
14
16
 
15
17
  ## Example
@@ -20,6 +22,8 @@ import { GPUV1PoolPoolGroupResource } from '@hostinger/sdk';
20
22
  const instance: GPUV1PoolPoolGroupResource = {
21
23
  id,
22
24
  name,
25
+ description,
26
+ feature,
23
27
  vram,
24
28
  is_available,
25
29
  min_price_per_hour,
@@ -11,7 +11,7 @@ Name | Type | Description | Notes
11
11
  **cpu_cores** | **number** | Number of CPU cores | [optional] [default to undefined]
12
12
  **ram** | **number** | Total RAM in bytes | [optional] [default to undefined]
13
13
  **storage** | **number** | Total storage in bytes | [optional] [default to undefined]
14
- **price_per_hour** | **number** | Hourly price in cents (USD) | [optional] [default to undefined]
14
+ **price_per_hour** | **number** | Hourly price in credits | [optional] [default to undefined]
15
15
 
16
16
  ## Example
17
17
 
@@ -8,6 +8,8 @@ All URIs are relative to *https://developers.hostinger.com*
8
8
  |[**getCampaignDetailsV1**](#getcampaigndetailsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid} | Get campaign details|
9
9
  |[**getCampaignPerformanceV1**](#getcampaignperformancev1) | **GET** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/statistics | Get campaign performance|
10
10
  |[**listCampaignsV1**](#listcampaignsv1) | **GET** /api/reach/v1/profiles/{profileUuid}/campaigns | List campaigns|
11
+ |[**sendCampaignV1**](#sendcampaignv1) | **POST** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid}/send | Send campaign|
12
+ |[**updateCampaignV1**](#updatecampaignv1) | **PATCH** /api/reach/v1/profiles/{profileUuid}/campaigns/{campaignUuid} | Update campaign|
11
13
 
12
14
  # **createADraftCampaignV1**
13
15
  > ReachV1CampaignsCreatedCampaignResource createADraftCampaignV1(reachV1CampaignsStoreRequest)
@@ -247,3 +249,120 @@ const { status, data } = await apiInstance.listCampaignsV1(
247
249
 
248
250
  [[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)
249
251
 
252
+ # **sendCampaignV1**
253
+ > CommonSuccessEmptyResource sendCampaignV1()
254
+
255
+ Send a campaign now to the audience stored on it. This is irreversible: once accepted, the emails go out and cannot be recalled. Confirm with the customer before calling. The campaign needs a subject, sender, template and audience first - set them with the update endpoint. Delivery is asynchronous, so success means accepted, not delivered: the campaign moves to `sending` and later to `publish`, or to `failed`. Read the campaign to follow it. The request is rejected when the campaign has no recipients, its sender domain is not verified or is blocked, the plan\'s sending limits would be exceeded, or the campaign is already being sent.
256
+
257
+ ### Example
258
+
259
+ ```typescript
260
+ import {
261
+ ReachCampaignsApi,
262
+ Configuration
263
+ } from '@hostinger/sdk';
264
+
265
+ const configuration = new Configuration();
266
+ const apiInstance = new ReachCampaignsApi(configuration);
267
+
268
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
269
+ let campaignUuid: string; //Campaign uuid parameter (default to undefined)
270
+
271
+ const { status, data } = await apiInstance.sendCampaignV1(
272
+ profileUuid,
273
+ campaignUuid
274
+ );
275
+ ```
276
+
277
+ ### Parameters
278
+
279
+ |Name | Type | Description | Notes|
280
+ |------------- | ------------- | ------------- | -------------|
281
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
282
+ | **campaignUuid** | [**string**] | Campaign uuid parameter | defaults to undefined|
283
+
284
+
285
+ ### Return type
286
+
287
+ **CommonSuccessEmptyResource**
288
+
289
+ ### Authorization
290
+
291
+ [apiToken](../README.md#apiToken)
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: Not defined
296
+ - **Accept**: application/json
297
+
298
+
299
+ ### HTTP response details
300
+ | Status code | Description | Response headers |
301
+ |-------------|-------------|------------------|
302
+ |**200** | Success empty response | - |
303
+ |**401** | Unauthenticated response | - |
304
+ |**500** | Error response | - |
305
+
306
+ [[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)
307
+
308
+ # **updateCampaignV1**
309
+ > ReachV1CampaignsCreatedCampaignResource updateCampaignV1(reachV1CampaignsUpdateRequest)
310
+
311
+ Update a campaign\'s content, sender, template and audience. Only `draft`, `scheduled` and `failed` campaigns can be updated; a campaign that is sending or already sent is rejected. Updating a `failed` campaign moves it back to `draft`. Audience changes replace rather than merge: `all_contacts: true` targets every contact of the profile, while `segment_uuids` replaces the segments currently targeted. Leave both out to keep the audience as it is. This does not send the campaign - use the send endpoint for that.
312
+
313
+ ### Example
314
+
315
+ ```typescript
316
+ import {
317
+ ReachCampaignsApi,
318
+ Configuration,
319
+ ReachV1CampaignsUpdateRequest
320
+ } from '@hostinger/sdk';
321
+
322
+ const configuration = new Configuration();
323
+ const apiInstance = new ReachCampaignsApi(configuration);
324
+
325
+ let profileUuid: string; //Profile uuid parameter (default to undefined)
326
+ let campaignUuid: string; //Campaign uuid parameter (default to undefined)
327
+ let reachV1CampaignsUpdateRequest: ReachV1CampaignsUpdateRequest; //
328
+
329
+ const { status, data } = await apiInstance.updateCampaignV1(
330
+ profileUuid,
331
+ campaignUuid,
332
+ reachV1CampaignsUpdateRequest
333
+ );
334
+ ```
335
+
336
+ ### Parameters
337
+
338
+ |Name | Type | Description | Notes|
339
+ |------------- | ------------- | ------------- | -------------|
340
+ | **reachV1CampaignsUpdateRequest** | **ReachV1CampaignsUpdateRequest**| | |
341
+ | **profileUuid** | [**string**] | Profile uuid parameter | defaults to undefined|
342
+ | **campaignUuid** | [**string**] | Campaign uuid parameter | defaults to undefined|
343
+
344
+
345
+ ### Return type
346
+
347
+ **ReachV1CampaignsCreatedCampaignResource**
348
+
349
+ ### Authorization
350
+
351
+ [apiToken](../README.md#apiToken)
352
+
353
+ ### HTTP request headers
354
+
355
+ - **Content-Type**: application/json
356
+ - **Accept**: application/json
357
+
358
+
359
+ ### HTTP response details
360
+ | Status code | Description | Response headers |
361
+ |-------------|-------------|------------------|
362
+ |**200** | Success response | - |
363
+ |**422** | Validation error response | - |
364
+ |**401** | Unauthenticated response | - |
365
+ |**500** | Error response | - |
366
+
367
+ [[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)
368
+
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
12
12
  **sender_name** | **string** | | [optional] [default to undefined]
13
13
  **sender_email** | **string** | | [optional] [default to undefined]
14
14
  **template_uuid** | **string** | | [optional] [default to undefined]
15
- **status** | **string** | Always `draft` for a campaign that was just created. | [optional] [default to undefined]
15
+ **status** | **string** | Always `draft` for a campaign that was just created; the current status after an update. | [optional] [default to undefined]
16
16
  **type** | **string** | | [optional] [default to undefined]
17
17
  **is_all_contacts** | **boolean** | Whether the campaign targets every contact instead of selected segments. | [optional] [default to undefined]
18
18
  **metadata** | **{ [key: string]: string; }** | The stored extra fields, including the ones Reach sets itself. | [optional] [default to undefined]
@@ -0,0 +1,37 @@
1
+ # ReachV1CampaignsUpdateRequest
2
+
3
+ Update a campaign. Send at least one field; fields left out keep their current value.
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **title** | **string** | Name the campaign is listed under. Not shown to the recipients. | [optional] [default to undefined]
10
+ **subject** | **string** | Subject line of the email. | [optional] [default to undefined]
11
+ **sender_name** | **string** | From name shown to the recipients. | [optional] [default to undefined]
12
+ **sender_email** | **string** | From address of the campaign. Its domain has to be verified on the profile before the campaign can be sent. | [optional] [default to undefined]
13
+ **template_uuid** | **string** | Template to send, as returned by the template endpoints. | [optional] [default to undefined]
14
+ **all_contacts** | **boolean** | `true` targets every contact of the profile, `false` targets only `segment_uuids`. Required when `segment_uuids` or `excluded_segment_uuids` is sent. | [optional] [default to undefined]
15
+ **segment_uuids** | **Array<string>** | Segments to target. Replaces the segments currently targeted. | [optional] [default to undefined]
16
+ **excluded_segment_uuids** | **Array<string>** | Segments to leave out. Only allowed together with `all_contacts: true`. | [optional] [default to undefined]
17
+ **metadata** | [**ReachV1CampaignsStoreRequestMetadata**](ReachV1CampaignsStoreRequestMetadata.md) | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { ReachV1CampaignsUpdateRequest } from '@hostinger/sdk';
23
+
24
+ const instance: ReachV1CampaignsUpdateRequest = {
25
+ title,
26
+ subject,
27
+ sender_name,
28
+ sender_email,
29
+ template_uuid,
30
+ all_contacts,
31
+ segment_uuids,
32
+ excluded_segment_uuids,
33
+ metadata,
34
+ };
35
+ ```
36
+
37
+ [[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: 2.16.0
6
+ * API Version: 3.0.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-api-sdk",
3
- "version": "2.16.0",
3
+ "version": "3.0.0",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {