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/README.md CHANGED
@@ -1,9 +1,9 @@
1
- ## @hostinger/sdk@3.0.0
1
+ ## @hostinger/sdk@3.0.2
2
2
 
3
3
  For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
4
4
 
5
5
  ### Usage
6
6
 
7
7
  ```
8
- npm install @hostinger/sdk@3.0.0 --save
8
+ npm install @hostinger/sdk@3.0.2 --save
9
9
  ```
package/api.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
@@ -9661,101 +9661,6 @@ export const HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = {
9661
9661
 
9662
9662
  export type HostingV1NodeJsBuildSettingsResourcePackageManagerEnum = typeof HostingV1NodeJsBuildSettingsResourcePackageManagerEnum[keyof typeof HostingV1NodeJsBuildSettingsResourcePackageManagerEnum];
9663
9663
 
9664
- /**
9665
- *
9666
- * @export
9667
- * @interface HostingV1NodeJsCreateFromArchiveRequest
9668
- */
9669
- export interface HostingV1NodeJsCreateFromArchiveRequest {
9670
- /**
9671
- * Project archive file (.zip, .tar.gz, or .tgz), maximum 50MB
9672
- * @type {string}
9673
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9674
- */
9675
- 'archive': string;
9676
- /**
9677
- * Node.js version override (auto-detected from package.json if omitted)
9678
- * @type {number}
9679
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9680
- */
9681
- 'node_version': HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum | null;
9682
- /**
9683
- * Node.js application type override
9684
- * @type {string}
9685
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9686
- */
9687
- 'app_type': HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum | null;
9688
- /**
9689
- * Application root directory override (where package.json is located) relative to public_html
9690
- * @type {string}
9691
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9692
- */
9693
- 'root_directory': string | null;
9694
- /**
9695
- * Build output directory override relative to the root directory
9696
- * @type {string}
9697
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9698
- */
9699
- 'output_directory': string | null;
9700
- /**
9701
- * Build script override
9702
- * @type {string}
9703
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9704
- */
9705
- 'build_script': string | null;
9706
- /**
9707
- * Main entry point file override
9708
- * @type {string}
9709
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9710
- */
9711
- 'entry_file': string | null;
9712
- /**
9713
- * Package manager override
9714
- * @type {string}
9715
- * @memberof HostingV1NodeJsCreateFromArchiveRequest
9716
- */
9717
- 'package_manager': HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum | null;
9718
- }
9719
-
9720
- export const HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = {
9721
- NUMBER_18: 18,
9722
- NUMBER_20: 20,
9723
- NUMBER_22: 22,
9724
- NUMBER_24: 24
9725
- } as const;
9726
-
9727
- export type HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum = typeof HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestNodeVersionEnum];
9728
- export const HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = {
9729
- CreateReactApp: 'create-react-app',
9730
- Gatsby: 'gatsby',
9731
- Vite: 'vite',
9732
- Angular: 'angular',
9733
- React: 'react',
9734
- Vue: 'vue',
9735
- Parcel: 'parcel',
9736
- Next: 'next',
9737
- Nuxt: 'nuxt',
9738
- Nest: 'nest',
9739
- Express: 'express',
9740
- Fastify: 'fastify',
9741
- Astro: 'astro',
9742
- Svelte: 'svelte',
9743
- SvelteKit: 'svelte-kit',
9744
- Hono: 'hono',
9745
- ReactRouter: 'react-router',
9746
- Nitro: 'nitro',
9747
- Other: 'other'
9748
- } as const;
9749
-
9750
- export type HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum = typeof HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestAppTypeEnum];
9751
- export const HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = {
9752
- Npm: 'npm',
9753
- Yarn: 'yarn',
9754
- Pnpm: 'pnpm'
9755
- } as const;
9756
-
9757
- export type HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum = typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum[keyof typeof HostingV1NodeJsCreateFromArchiveRequestPackageManagerEnum];
9758
-
9759
9664
  /**
9760
9665
  *
9761
9666
  * @export
@@ -11251,58 +11156,6 @@ export interface HostingV1WebsitesDeployArchiveRequest {
11251
11156
  */
11252
11157
  'archive_path': string;
11253
11158
  }
11254
- /**
11255
- *
11256
- * @export
11257
- * @interface HostingV1WebsitesTriggerEventRequest
11258
- */
11259
- export interface HostingV1WebsitesTriggerEventRequest {
11260
- /**
11261
- *
11262
- * @type {HostingV1WebsitesTriggerEventRequestEvent}
11263
- * @memberof HostingV1WebsitesTriggerEventRequest
11264
- */
11265
- 'event': HostingV1WebsitesTriggerEventRequestEvent;
11266
- }
11267
- /**
11268
- * Event to trigger; `name` decides which `params` it takes
11269
- * @export
11270
- * @interface HostingV1WebsitesTriggerEventRequestEvent
11271
- */
11272
- export interface HostingV1WebsitesTriggerEventRequestEvent {
11273
- /**
11274
- * Name of the event: - `headless_onboarding.tool.connected`: an AI coding tool started building this website with the Hostinger headless skill. Takes `params.tool`.
11275
- * @type {string}
11276
- * @memberof HostingV1WebsitesTriggerEventRequestEvent
11277
- */
11278
- 'name': HostingV1WebsitesTriggerEventRequestEventNameEnum;
11279
- /**
11280
- *
11281
- * @type {HostingV1WebsitesTriggerEventRequestEventParams}
11282
- * @memberof HostingV1WebsitesTriggerEventRequestEvent
11283
- */
11284
- 'params': HostingV1WebsitesTriggerEventRequestEventParams;
11285
- }
11286
-
11287
- export const HostingV1WebsitesTriggerEventRequestEventNameEnum = {
11288
- HeadlessOnboardingToolConnected: 'headless_onboarding.tool.connected'
11289
- } as const;
11290
-
11291
- export type HostingV1WebsitesTriggerEventRequestEventNameEnum = typeof HostingV1WebsitesTriggerEventRequestEventNameEnum[keyof typeof HostingV1WebsitesTriggerEventRequestEventNameEnum];
11292
-
11293
- /**
11294
- * Fields of the event
11295
- * @export
11296
- * @interface HostingV1WebsitesTriggerEventRequestEventParams
11297
- */
11298
- export interface HostingV1WebsitesTriggerEventRequestEventParams {
11299
- /**
11300
- * 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.
11301
- * @type {string}
11302
- * @memberof HostingV1WebsitesTriggerEventRequestEventParams
11303
- */
11304
- 'tool': string;
11305
- }
11306
11159
  /**
11307
11160
  *
11308
11161
  * @export
@@ -17334,7 +17187,9 @@ export const VPSV1ActionActionResourceStateEnum = {
17334
17187
  Error: 'error',
17335
17188
  Delayed: 'delayed',
17336
17189
  Sent: 'sent',
17337
- Created: 'created'
17190
+ Created: 'created',
17191
+ Started: 'started',
17192
+ Cancelled: 'cancelled'
17338
17193
  } as const;
17339
17194
 
17340
17195
  export type VPSV1ActionActionResourceStateEnum = typeof VPSV1ActionActionResourceStateEnum[keyof typeof VPSV1ActionActionResourceStateEnum];
@@ -18478,7 +18333,7 @@ export interface VPSV1VirtualMachinePTRStoreRequest {
18478
18333
  */
18479
18334
  export interface VPSV1VirtualMachinePanelPasswordUpdateRequest {
18480
18335
  /**
18481
- * Panel password for the virtual machine
18336
+ * 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.
18482
18337
  * @type {string}
18483
18338
  * @memberof VPSV1VirtualMachinePanelPasswordUpdateRequest
18484
18339
  */
@@ -18541,13 +18396,13 @@ export interface VPSV1VirtualMachineRecreateRequest {
18541
18396
  */
18542
18397
  'template_id': number;
18543
18398
  /**
18544
- * Root password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
18399
+ * 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.
18545
18400
  * @type {string}
18546
18401
  * @memberof VPSV1VirtualMachineRecreateRequest
18547
18402
  */
18548
18403
  'password': string;
18549
18404
  /**
18550
- * 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.
18405
+ * 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.
18551
18406
  * @type {string}
18552
18407
  * @memberof VPSV1VirtualMachineRecreateRequest
18553
18408
  */
@@ -18566,7 +18421,7 @@ export interface VPSV1VirtualMachineRecreateRequest {
18566
18421
  */
18567
18422
  export interface VPSV1VirtualMachineRootPasswordUpdateRequest {
18568
18423
  /**
18569
- * Root password for the virtual machine
18424
+ * 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.
18570
18425
  * @type {string}
18571
18426
  * @memberof VPSV1VirtualMachineRootPasswordUpdateRequest
18572
18427
  */
@@ -18597,7 +18452,7 @@ export interface VPSV1VirtualMachineSetupRequest {
18597
18452
  */
18598
18453
  'post_install_script_id': number;
18599
18454
  /**
18600
- * Password for the virtual machine. If not provided, random password will be generated. Password will not be shown in the response.
18455
+ * 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.
18601
18456
  * @type {string}
18602
18457
  * @memberof VPSV1VirtualMachineSetupRequest
18603
18458
  */
@@ -19443,74 +19298,6 @@ export interface WordPressV1InstallationsWordPressInstallationResource {
19443
19298
  */
19444
19299
  'created_at': string;
19445
19300
  }
19446
- /**
19447
- *
19448
- * @export
19449
- * @interface WordPressV1InstallationsWordPressMcpDetailsResource
19450
- */
19451
- export interface WordPressV1InstallationsWordPressMcpDetailsResource {
19452
- /**
19453
- * JWT used to authenticate against the installation MCP server
19454
- * @type {string}
19455
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19456
- */
19457
- 'token': string;
19458
- /**
19459
- * MCP (Model Context Protocol) endpoint URL for the WordPress installation
19460
- * @type {string}
19461
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19462
- */
19463
- 'mcp_url': string;
19464
- /**
19465
- * Token lifetime in seconds from the moment it was issued
19466
- * @type {number}
19467
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19468
- */
19469
- 'expires_in': number;
19470
- /**
19471
- * Date-time at which the token expires
19472
- * @type {string}
19473
- * @memberof WordPressV1InstallationsWordPressMcpDetailsResource
19474
- */
19475
- 'expires_at': string | null;
19476
- }
19477
- /**
19478
- *
19479
- * @export
19480
- * @interface WordPressV1InstallationsWordPressMcpInstallationResource
19481
- */
19482
- export interface WordPressV1InstallationsWordPressMcpInstallationResource {
19483
- /**
19484
- * WordPress installation (software) id
19485
- * @type {string}
19486
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19487
- */
19488
- 'id': string;
19489
- /**
19490
- * Hosting account username
19491
- * @type {string}
19492
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19493
- */
19494
- 'username': string;
19495
- /**
19496
- * Domain the installation belongs to
19497
- * @type {string}
19498
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19499
- */
19500
- 'domain': string;
19501
- /**
19502
- * Installation directory on the server
19503
- * @type {string}
19504
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19505
- */
19506
- 'directory': string;
19507
- /**
19508
- *
19509
- * @type {WordPressV1InstallationsWordPressMcpDetailsResource}
19510
- * @memberof WordPressV1InstallationsWordPressMcpInstallationResource
19511
- */
19512
- 'mcp_details': WordPressV1InstallationsWordPressMcpDetailsResource | null;
19513
- }
19514
19301
  /**
19515
19302
  *
19516
19303
  * @export
@@ -19589,39 +19376,6 @@ export interface WordPressV1MaintenanceToggleMaintenanceRequest {
19589
19376
  */
19590
19377
  'enabled': boolean;
19591
19378
  }
19592
- /**
19593
- *
19594
- * @export
19595
- * @interface WordPressV1McpExecuteMcpToolRequest
19596
- */
19597
- export interface WordPressV1McpExecuteMcpToolRequest {
19598
- /**
19599
- * Tool name as returned by the List MCP tools endpoint.
19600
- * @type {string}
19601
- * @memberof WordPressV1McpExecuteMcpToolRequest
19602
- */
19603
- 'tool_name': string;
19604
- /**
19605
- * Tool input matching the input schema returned by the Show MCP tool info endpoint.
19606
- * @type {{ [key: string]: any; }}
19607
- * @memberof WordPressV1McpExecuteMcpToolRequest
19608
- */
19609
- 'parameters': { [key: string]: any; };
19610
- /**
19611
- * MCP server exposing the tool. Defaults to the mcp-adapter default server.
19612
- * @type {string}
19613
- * @memberof WordPressV1McpExecuteMcpToolRequest
19614
- */
19615
- 'server': WordPressV1McpExecuteMcpToolRequestServerEnum | null;
19616
- }
19617
-
19618
- export const WordPressV1McpExecuteMcpToolRequestServerEnum = {
19619
- McpAdapterDefaultServer: 'mcp-adapter-default-server',
19620
- HostingerAiAssistantMcpServer: 'hostinger-ai-assistant-mcp-server'
19621
- } as const;
19622
-
19623
- export type WordPressV1McpExecuteMcpToolRequestServerEnum = typeof WordPressV1McpExecuteMcpToolRequestServerEnum[keyof typeof WordPressV1McpExecuteMcpToolRequestServerEnum];
19624
-
19625
19379
  /**
19626
19380
  *
19627
19381
  * @export
package/base.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/common.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/configuration.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
@@ -48,7 +48,7 @@ export class Configuration {
48
48
  this.baseOptions = {
49
49
  ...param.baseOptions,
50
50
  headers: {
51
- 'User-Agent': "hostinger-typescript-sdk/3.0.0",
51
+ 'User-Agent': "hostinger-typescript-sdk/3.0.2",
52
52
  ...param.baseOptions?.headers,
53
53
  },
54
54
  };