hostinger-api-sdk 3.0.0 → 3.0.2

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 (38) hide show
  1. package/README.md +2 -2
  2. package/api.ts +9 -255
  3. package/base.ts +1 -1
  4. package/common.ts +1 -1
  5. package/configuration.ts +2 -2
  6. package/dist/api.d.ts +8 -245
  7. package/dist/api.js +16 -53
  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 +8 -245
  15. package/dist/esm/api.js +4 -41
  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/VPSV1VirtualMachinePanelPasswordUpdateRequest.md +1 -1
  27. package/docs/VPSV1VirtualMachineRecreateRequest.md +2 -2
  28. package/docs/VPSV1VirtualMachineRootPasswordUpdateRequest.md +1 -1
  29. package/docs/VPSV1VirtualMachineSetupRequest.md +1 -1
  30. package/index.ts +1 -1
  31. package/package.json +1 -1
  32. package/docs/HostingV1NodeJsCreateFromArchiveRequest.md +0 -34
  33. package/docs/HostingV1WebsitesTriggerEventRequest.md +0 -20
  34. package/docs/HostingV1WebsitesTriggerEventRequestEvent.md +0 -23
  35. package/docs/HostingV1WebsitesTriggerEventRequestEventParams.md +0 -21
  36. package/docs/WordPressV1InstallationsWordPressMcpDetailsResource.md +0 -26
  37. package/docs/WordPressV1InstallationsWordPressMcpInstallationResource.md +0 -28
  38. package/docs/WordPressV1McpExecuteMcpToolRequest.md +0 -24
package/dist/esm/api.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.0.0
4
+ * API Version: 3.0.2
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
@@ -9452,96 +9452,6 @@ export declare const HostingV1NodeJsBuildSettingsResourcePackageManagerEnum: {
9452
9452
  readonly Pnpm: "pnpm";
9453
9453
  };
9454
9454
  export type HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = typeof HostingV1NodeJsBuildSettingsResourcePackageManagerEnum[keyof typeof HostingV1NodeJsBuildSettingsResourcePackageManagerEnum];
9455
- /**
9456
- *
9457
- * @export
9458
- * @interface HostingV1NodeJsCreateFromArchiveRequest
9459
- */
9460
- export interface HostingV1NodeJsCreateFromArchiveRequest {
9461
- /**
9462
- * Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB
9463
- * @type {string}
9464
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9465
- */
9466
- 'archive': string;
9467
- /**
9468
- * Node.js version override (auto-detected from package.json if omitted)
9469
- * @type {number}
9470
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9471
- */
9472
- 'node_version': HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum | null;
9473
- /**
9474
- * Node.js application type override
9475
- * @type {string}
9476
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9477
- */
9478
- 'app_type': HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum | null;
9479
- /**
9480
- * Application root directory override (where package.json is located) relative to public_html
9481
- * @type {string}
9482
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9483
- */
9484
- 'root_directory': string | null;
9485
- /**
9486
- * Build output directory override relative to the root directory
9487
- * @type {string}
9488
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9489
- */
9490
- 'output_directory': string | null;
9491
- /**
9492
- * Build script override
9493
- * @type {string}
9494
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9495
- */
9496
- 'build_script': string | null;
9497
- /**
9498
- * Main entry point file override
9499
- * @type {string}
9500
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9501
- */
9502
- 'entry_file': string | null;
9503
- /**
9504
- * Package manager override
9505
- * @type {string}
9506
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9507
- */
9508
- 'package_manager': HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum | null;
9509
- }
9510
- export declare const HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum: {
9511
- readonly NUMBER_18: 18;
9512
- readonly NUMBER_20: 20;
9513
- readonly NUMBER_22: 22;
9514
- readonly NUMBER_24: 24;
9515
- };
9516
- export type HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = typeof HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum];
9517
- export declare const HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum: {
9518
- readonly CreateReactApp: "create-react-app";
9519
- readonly Gatsby: "gatsby";
9520
- readonly Vite: "vite";
9521
- readonly Angular: "angular";
9522
- readonly React: "react";
9523
- readonly Vue: "vue";
9524
- readonly Parcel: "parcel";
9525
- readonly Next: "next";
9526
- readonly Nuxt: "nuxt";
9527
- readonly Nest: "nest";
9528
- readonly Express: "express";
9529
- readonly Fastify: "fastify";
9530
- readonly Astro: "astro";
9531
- readonly Svelte: "svelte";
9532
- readonly SvelteKit: "svelte-kit";
9533
- readonly Hono: "hono";
9534
- readonly ReactRouter: "react-router";
9535
- readonly Nitro: "nitro";
9536
- readonly Other: "other";
9537
- };
9538
- export type HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = typeof HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum];
9539
- export declare const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum: {
9540
- readonly Npm: "npm";
9541
- readonly Yarn: "yarn";
9542
- readonly Pnpm: "pnpm";
9543
- };
9544
- export type HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum];
9545
9455
  /**
9546
9456
  *
9547
9457
  * @export
@@ -11001,55 +10911,6 @@ export interface HostingV1WebsitesDeployArchiveRequest {
11001
10911
  */
11002
10912
  'archive_path': string;
11003
10913
  }
11004
- /**
11005
- *
11006
- * @export
11007
- * @interface HostingV1WebsitesTriggerEventRequest
11008
- */
11009
- export interface HostingV1WebsitesTriggerEventRequest {
11010
- /**
11011
- *
11012
- * @type {HostingV1WebsitesTriggerEventRequestEvent}
11013
- * @memberof HostingV1WebsitesTriggerEventRequest
11014
- */
11015
- 'event': HostingV1WebsitesTriggerEventRequestEvent;
11016
- }
11017
- /**
11018
- * Event to trigger; `name` decides which `params` it takes
11019
- * @export
11020
- * @interface HostingV1WebsitesTriggerEventRequestEvent
11021
- */
11022
- export interface HostingV1WebsitesTriggerEventRequestEvent {
11023
- /**
11024
- * Name of the event: - `headless_onboarding.tool.connected`: an AI coding tool started building this website with the Hostinger headless skill. Takes `params.tool`.
11025
- * @type {string}
11026
- * @memberof HostingV1WebsitesTriggerEventRequestEvent
11027
- */
11028
- 'name': HostingV1WebsitesTriggerEventRequestEventNameEnum;
11029
- /**
11030
- *
11031
- * @type {HostingV1WebsitesTriggerEventRequestEventParams}
11032
- * @memberof HostingV1WebsitesTriggerEventRequestEvent
11033
- */
11034
- 'params': HostingV1WebsitesTriggerEventRequestEventParams;
11035
- }
11036
- export declare const HostingV1WebsitesTriggerEventRequestEventNameEnum: {
11037
- readonly HeadlessOnboardingToolConnected: "headless_onboarding.tool.connected";
11038
- };
11039
- export type HostingV1WebsitesTriggerEventRequestEventNameEnum = typeof HostingV1WebsitesTriggerEventRequestEventNameEnum[keyof typeof HostingV1WebsitesTriggerEventRequestEventNameEnum];
11040
- /**
11041
- * Fields of the event
11042
- * @export
11043
- * @interface HostingV1WebsitesTriggerEventRequestEventParams
11044
- */
11045
- export interface HostingV1WebsitesTriggerEventRequestEventParams {
11046
- /**
11047
- * Lowercase slug of the AI coding tool. Known slugs: `claude` (Claude Code), `cursor` (Cursor), `codex` (Codex), `vscode` (VS Code), `antigravity` (Antigravity) and `devin` (Devin). For any other tool, send its own slug.
11048
- * @type {string}
11049
- * @memberof HostingV1WebsitesTriggerEventRequestEventParams
11050
- */
11051
- 'tool': string;
11052
- }
11053
10914
  /**
11054
10915
  *
11055
10916
  * @export
@@ -16937,6 +16798,8 @@ export declare const VPSV1ActionActionResourceStateEnum: {
16937
16798
  readonly Delayed: "delayed";
16938
16799
  readonly Sent: "sent";
16939
16800
  readonly Created: "created";
16801
+ readonly Started: "started";
16802
+ readonly Cancelled: "cancelled";
16940
16803
  };
16941
16804
  export type VPSV1ActionActionResourceStateEnum = typeof VPSV1ActionActionResourceStateEnum[keyof typeof VPSV1ActionActionResourceStateEnum];
16942
16805
  /**
@@ -18059,7 +17922,7 @@ export interface VPSV1VirtualMachinePTRStoreRequest {
18059
17922
  */
18060
17923
  export interface VPSV1VirtualMachinePanelPasswordUpdateRequest {
18061
17924
  /**
18062
- * Panel password for the virtual machine
17925
+ * Panel password for the virtual machine. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of #%+:?@ (no other symbols). Known compromised passwords are rejected.
18063
17926
  * @type {string}
18064
17927
  * @memberof VPSV1VirtualMachinePanelPasswordUpdateRequest
18065
17928
  */
@@ -18122,13 +17985,13 @@ export interface VPSV1VirtualMachineRecreateRequest {
18122
17985
  */
18123
17986
  'template_id': number;
18124
17987
  /**
18125
- * Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
17988
+ * Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of -().&@?\'#;/,+ (no other symbols). Known compromised passwords are rejected.
18126
17989
  * @type {string}
18127
17990
  * @memberof VPSV1VirtualMachineRecreateRequest
18128
17991
  */
18129
17992
  'password': string;
18130
17993
  /**
18131
- * Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response.
17994
+ * Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of #%+:?@ (no other symbols). Known compromised passwords are rejected.
18132
17995
  * @type {string}
18133
17996
  * @memberof VPSV1VirtualMachineRecreateRequest
18134
17997
  */
@@ -18147,7 +18010,7 @@ export interface VPSV1VirtualMachineRecreateRequest {
18147
18010
  */
18148
18011
  export interface VPSV1VirtualMachineRootPasswordUpdateRequest {
18149
18012
  /**
18150
- * Root password for the virtual machine
18013
+ * Root password for the virtual machine. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of -().&@?\'#;/,+ (no other symbols). Known compromised passwords are rejected.
18151
18014
  * @type {string}
18152
18015
  * @memberof VPSV1VirtualMachineRootPasswordUpdateRequest
18153
18016
  */
@@ -18178,7 +18041,7 @@ export interface VPSV1VirtualMachineSetupRequest {
18178
18041
  */
18179
18042
  'post_install_script_id': number;
18180
18043
  /**
18181
- * Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
18044
+ * Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. Used as both the root and the panel password, so it must pass both rules: 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of # + ? @ (no other symbols). Known compromised passwords are rejected.
18182
18045
  * @type {string}
18183
18046
  * @memberof VPSV1VirtualMachineSetupRequest
18184
18047
  */
@@ -19003,74 +18866,6 @@ export interface WordPressV1InstallationsWordPressInstallationResource {
19003
18866
  */
19004
18867
  'created_at': string;
19005
18868
  }
19006
- /**
19007
- *
19008
- * @export
19009
- * @interface WordPressV1InstallationsWordPressMcpDetailsResource
19010
- */
19011
- export interface WordPressV1InstallationsWordPressMcpDetailsResource {
19012
- /**
19013
- * JWT used to authenticate against the installation MCP server
19014
- * @type {string}
19015
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19016
- */
19017
- 'token': string;
19018
- /**
19019
- * MCP (Model Context Protocol) endpoint URL for the WordPress installation
19020
- * @type {string}
19021
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19022
- */
19023
- 'mcp_url': string;
19024
- /**
19025
- * Token lifetime in seconds from the moment it was issued
19026
- * @type {number}
19027
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19028
- */
19029
- 'expires_in': number;
19030
- /**
19031
- * Date-time at which the token expires
19032
- * @type {string}
19033
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19034
- */
19035
- 'expires_at': string | null;
19036
- }
19037
- /**
19038
- *
19039
- * @export
19040
- * @interface WordPressV1InstallationsWordPressMcpInstallationResource
19041
- */
19042
- export interface WordPressV1InstallationsWordPressMcpInstallationResource {
19043
- /**
19044
- * WordPress installation (software) id
19045
- * @type {string}
19046
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19047
- */
19048
- 'id': string;
19049
- /**
19050
- * Hosting account username
19051
- * @type {string}
19052
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19053
- */
19054
- 'username': string;
19055
- /**
19056
- * Domain the installation belongs to
19057
- * @type {string}
19058
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19059
- */
19060
- 'domain': string;
19061
- /**
19062
- * Installation directory on the server
19063
- * @type {string}
19064
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19065
- */
19066
- 'directory': string;
19067
- /**
19068
- *
19069
- * @type {WordPressV1InstallationsWordPressMcpDetailsResource}
19070
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19071
- */
19072
- 'mcp_details': WordPressV1InstallationsWordPressMcpDetailsResource | null;
19073
- }
19074
18869
  /**
19075
18870
  *
19076
18871
  * @export
@@ -19146,38 +18941,6 @@ export interface WordPressV1MaintenanceToggleMaintenanceRequest {
19146
18941
  */
19147
18942
  'enabled': boolean;
19148
18943
  }
19149
- /**
19150
- *
19151
- * @export
19152
- * @interface WordPressV1McpExecuteMcpToolRequest
19153
- */
19154
- export interface WordPressV1McpExecuteMcpToolRequest {
19155
- /**
19156
- * Tool name as returned by the List MCP tools endpoint.
19157
- * @type {string}
19158
- * @memberof WordPressV1McpExecuteMcpToolRequest
19159
- */
19160
- 'tool_name': string;
19161
- /**
19162
- * Tool input matching the input schema returned by the Show MCP tool info endpoint.
19163
- * @type {{ [key: string]: any; }}
19164
- * @memberof WordPressV1McpExecuteMcpToolRequest
19165
- */
19166
- 'parameters': {
19167
- [key: string]: any;
19168
- };
19169
- /**
19170
- * MCP server exposing the tool. Defaults to the mcp-adapter default server.
19171
- * @type {string}
19172
- * @memberof WordPressV1McpExecuteMcpToolRequest
19173
- */
19174
- 'server': WordPressV1McpExecuteMcpToolRequestServerEnum | null;
19175
- }
19176
- export declare const WordPressV1McpExecuteMcpToolRequestServerEnum: {
19177
- readonly McpAdapterDefaultServer: "mcp-adapter-default-server";
19178
- readonly HostingerAiAssistantMcpServer: "hostinger-ai-assistant-mcp-server";
19179
- };
19180
- export type WordPressV1McpExecuteMcpToolRequestServerEnum = typeof WordPressV1McpExecuteMcpToolRequestServerEnum[keyof typeof WordPressV1McpExecuteMcpToolRequestServerEnum];
19181
18944
  /**
19182
18945
  *
19183
18946
  * @export
package/dist/esm/api.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.0.0
6
+ * API Version: 3.0.2
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
@@ -503,38 +503,6 @@ export const HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = {
503
503
  Yarn: 'yarn',
504
504
  Pnpm: 'pnpm'
505
505
  };
506
- export const HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
507
- NUMBER_18: 18,
508
- NUMBER_20: 20,
509
- NUMBER_22: 22,
510
- NUMBER_24: 24
511
- };
512
- export const HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = {
513
- CreateReactApp: 'create-react-app',
514
- Gatsby: 'gatsby',
515
- Vite: 'vite',
516
- Angular: 'angular',
517
- React: 'react',
518
- Vue: 'vue',
519
- Parcel: 'parcel',
520
- Next: 'next',
521
- Nuxt: 'nuxt',
522
- Nest: 'nest',
523
- Express: 'express',
524
- Fastify: 'fastify',
525
- Astro: 'astro',
526
- Svelte: 'svelte',
527
- SvelteKit: 'svelte-kit',
528
- Hono: 'hono',
529
- ReactRouter: 'react-router',
530
- Nitro: 'nitro',
531
- Other: 'other'
532
- };
533
- export const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
534
- Npm: 'npm',
535
- Yarn: 'yarn',
536
- Pnpm: 'pnpm'
537
- };
538
506
  export const HostingV1NodeJsStartBuildRequestNodeVersionEnum = {
539
507
  NUMBER_18: 18,
540
508
  NUMBER_20: 20,
@@ -701,9 +669,6 @@ export const HostingV1SslSslStatusResourceProviderEnum = {
701
669
  Googlessl: 'googlessl',
702
670
  Hssl: 'hssl'
703
671
  };
704
- export const HostingV1WebsitesTriggerEventRequestEventNameEnum = {
705
- HeadlessOnboardingToolConnected: 'headless_onboarding.tool.connected'
706
- };
707
672
  export const HostingV1WebsitesWebsiteResourceVhostTypeEnum = {
708
673
  Main: 'main',
709
674
  Addon: 'addon',
@@ -1196,7 +1161,9 @@ export const VPSV1ActionActionResourceStateEnum = {
1196
1161
  Error: 'error',
1197
1162
  Delayed: 'delayed',
1198
1163
  Sent: 'sent',
1199
- Created: 'created'
1164
+ Created: 'created',
1165
+ Started: 'started',
1166
+ Cancelled: 'cancelled'
1200
1167
  };
1201
1168
  export const VPSV1DockerManagerContainerPortResourceTypeEnum = {
1202
1169
  Published: 'published',
@@ -1328,10 +1295,6 @@ export const WordPressV1MaintenanceMaintenanceStatusResourceStatusEnum = {
1328
1295
  Enabled: 'enabled',
1329
1296
  Disabled: 'disabled'
1330
1297
  };
1331
- export const WordPressV1McpExecuteMcpToolRequestServerEnum = {
1332
- McpAdapterDefaultServer: 'mcp-adapter-default-server',
1333
- HostingerAiAssistantMcpServer: 'hostinger-ai-assistant-mcp-server'
1334
- };
1335
1298
  export const WordPressV1MemcachedMemcachedStatusResourceStatusEnum = {
1336
1299
  Active: 'active',
1337
1300
  Inactive: 'inactive'
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.0.0
4
+ * API Version: 3.0.2
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
package/dist/esm/base.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.0.0
6
+ * API Version: 3.0.2
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.0.0
4
+ * API Version: 3.0.2
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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.0.0
6
+ * API Version: 3.0.2
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
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.0.0
4
+ * API Version: 3.0.2
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
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.0.0
6
+ * API Version: 3.0.2
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
@@ -13,7 +13,7 @@ export class Configuration {
13
13
  var _a;
14
14
  this.accessToken = param.accessToken;
15
15
  this.basePath = param.basePath;
16
- this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.0.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
16
+ this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.0.2" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
17
17
  this.formDataCtor = param.formDataCtor;
18
18
  }
19
19
  /**
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.0.0
4
+ * API Version: 3.0.2
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
package/dist/esm/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.0.0
6
+ * API Version: 3.0.2
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/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Hostinger API
3
3
  *
4
- * API Version: 3.0.0
4
+ * API Version: 3.0.2
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
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  /**
5
5
  * Hostinger API
6
6
  *
7
- * API Version: 3.0.0
7
+ * API Version: 3.0.2
8
8
  *
9
9
  * NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
10
10
  * If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **password** | **string** | Panel password for the virtual machine | [default to undefined]
8
+ **password** | **string** | Panel password for the virtual machine. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of #%+:?@ (no other symbols). Known compromised passwords are rejected. | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
@@ -6,8 +6,8 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **template_id** | **number** | Template ID | [default to undefined]
9
- **password** | **string** | Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | [optional] [default to undefined]
10
- **panel_password** | **string** | Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response. | [optional] [default to undefined]
9
+ **password** | **string** | Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of -().&@?\'#;/,+ (no other symbols). Known compromised passwords are rejected. | [optional] [default to undefined]
10
+ **panel_password** | **string** | Panel password for the panel-based OS template. If not provided, random password will be generated. If OS does not support panel_password this field will be ignored. Password will not be shown in the response. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of #%+:?@ (no other symbols). Known compromised passwords are rejected. | [optional] [default to undefined]
11
11
  **post_install_script_id** | **number** | Post-install script to execute after virtual machine was recreated | [optional] [default to undefined]
12
12
 
13
13
  ## Example
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **password** | **string** | Root password for the virtual machine | [default to undefined]
8
+ **password** | **string** | Root password for the virtual machine. 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of -().&@?\'#;/,+ (no other symbols). Known compromised passwords are rejected. | [default to undefined]
9
9
 
10
10
  ## Example
11
11
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **template_id** | **number** | Template ID | [default to undefined]
9
9
  **data_center_id** | **number** | Data center ID | [default to undefined]
10
10
  **post_install_script_id** | **number** | Post-install script ID | [optional] [default to undefined]
11
- **password** | **string** | Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. | [optional] [default to undefined]
11
+ **password** | **string** | Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response. Used as both the root and the panel password, so it must pass both rules: 12 to 50 characters with an uppercase letter, a lowercase letter, a number and at least one of # + ? @ (no other symbols). Known compromised passwords are rejected. | [optional] [default to undefined]
12
12
  **hostname** | **string** | Override default hostname of the virtual machine | [optional] [default to undefined]
13
13
  **install_monarx** | **boolean** | Install Monarx malware scanner (if supported) | [optional] [default to false]
14
14
  **enable_backups** | **boolean** | Enable weekly backup schedule | [optional] [default to true]
package/index.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  /**
4
4
  * Hostinger API
5
5
  *
6
- * API Version: 3.0.0
6
+ * API Version: 3.0.2
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": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Hostinger API TypeScript SDK",
5
5
  "author": "Hostinger",
6
6
  "repository": {
@@ -1,34 +0,0 @@
1
- # HostingV1NodeJsCreateFromArchiveRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **archive** | **string** | Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB | [default to undefined]
9
- **node_version** | **number** | Node.js version override (auto-detected from package.json if omitted) | [optional] [default to undefined]
10
- **app_type** | **string** | Node.js application type override | [optional] [default to undefined]
11
- **root_directory** | **string** | Application root directory override (where package.json is located) relative to public_html | [optional] [default to undefined]
12
- **output_directory** | **string** | Build output directory override relative to the root directory | [optional] [default to undefined]
13
- **build_script** | **string** | Build script override | [optional] [default to undefined]
14
- **entry_file** | **string** | Main entry point file override | [optional] [default to undefined]
15
- **package_manager** | **string** | Package manager override | [optional] [default to undefined]
16
-
17
- ## Example
18
-
19
- ```typescript
20
- import { HostingV1NodeJsCreateFromArchiveRequest } from '@hostinger/sdk';
21
-
22
- const instance: HostingV1NodeJsCreateFromArchiveRequest = {
23
- archive,
24
- node_version,
25
- app_type,
26
- root_directory,
27
- output_directory,
28
- build_script,
29
- entry_file,
30
- package_manager,
31
- };
32
- ```
33
-
34
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,20 +0,0 @@
1
- # HostingV1WebsitesTriggerEventRequest
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **event** | [**HostingV1WebsitesTriggerEventRequestEvent**](HostingV1WebsitesTriggerEventRequestEvent.md) | | [default to undefined]
9
-
10
- ## Example
11
-
12
- ```typescript
13
- import { HostingV1WebsitesTriggerEventRequest } from '@hostinger/sdk';
14
-
15
- const instance: HostingV1WebsitesTriggerEventRequest = {
16
- event,
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)
@@ -1,23 +0,0 @@
1
- # HostingV1WebsitesTriggerEventRequestEvent
2
-
3
- Event to trigger; `name` decides which `params` it takes
4
-
5
- ## Properties
6
-
7
- Name | Type | Description | Notes
8
- ------------ | ------------- | ------------- | -------------
9
- **name** | **string** | Name of the event: - `headless_onboarding.tool.connected`: an AI coding tool started building this website with the Hostinger headless skill. Takes `params.tool`. | [default to undefined]
10
- **params** | [**HostingV1WebsitesTriggerEventRequestEventParams**](HostingV1WebsitesTriggerEventRequestEventParams.md) | | [default to undefined]
11
-
12
- ## Example
13
-
14
- ```typescript
15
- import { HostingV1WebsitesTriggerEventRequestEvent } from '@hostinger/sdk';
16
-
17
- const instance: HostingV1WebsitesTriggerEventRequestEvent = {
18
- name,
19
- params,
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)