@hostafrica/ha-sdk-typescript 1.1.3 → 1.1.4

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 (65) hide show
  1. package/dist/apis/VPSManagementApi.d.ts +18 -3
  2. package/dist/apis/VPSManagementApi.js +49 -2
  3. package/dist/esm/apis/VPSManagementApi.d.ts +18 -3
  4. package/dist/esm/apis/VPSManagementApi.js +50 -3
  5. package/dist/esm/models/EncryptedPasswordResponseData.d.ts +45 -0
  6. package/dist/esm/models/EncryptedPasswordResponseData.js +52 -0
  7. package/dist/esm/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
  8. package/dist/esm/models/GetEncryptedPasswordRequestContent.js +47 -0
  9. package/dist/esm/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
  10. package/dist/esm/models/GetEncryptedPasswordResponseContent.js +49 -0
  11. package/dist/esm/models/NoVncConsoleDetails.d.ts +19 -1
  12. package/dist/esm/models/NoVncConsoleDetails.js +7 -3
  13. package/dist/esm/models/PasswordEncryptionInfo.d.ts +50 -0
  14. package/dist/esm/models/PasswordEncryptionInfo.js +55 -0
  15. package/dist/esm/models/VpsCredentials.d.ts +1 -1
  16. package/dist/esm/models/VpsDetailsResponse.d.ts +4 -3
  17. package/dist/esm/models/VpsDetailsResponse.js +3 -2
  18. package/dist/esm/models/VpsIpAddressDetail.d.ts +56 -0
  19. package/dist/esm/models/VpsIpAddressDetail.js +51 -0
  20. package/dist/esm/models/VpsVmInfo.d.ts +3 -3
  21. package/dist/esm/models/index.d.ts +5 -0
  22. package/dist/esm/models/index.js +5 -0
  23. package/dist/esm/retryablePaths.js +1 -0
  24. package/dist/models/EncryptedPasswordResponseData.d.ts +45 -0
  25. package/dist/models/EncryptedPasswordResponseData.js +59 -0
  26. package/dist/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
  27. package/dist/models/GetEncryptedPasswordRequestContent.js +54 -0
  28. package/dist/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
  29. package/dist/models/GetEncryptedPasswordResponseContent.js +56 -0
  30. package/dist/models/NoVncConsoleDetails.d.ts +19 -1
  31. package/dist/models/NoVncConsoleDetails.js +7 -3
  32. package/dist/models/PasswordEncryptionInfo.d.ts +50 -0
  33. package/dist/models/PasswordEncryptionInfo.js +62 -0
  34. package/dist/models/VpsCredentials.d.ts +1 -1
  35. package/dist/models/VpsDetailsResponse.d.ts +4 -3
  36. package/dist/models/VpsDetailsResponse.js +3 -2
  37. package/dist/models/VpsIpAddressDetail.d.ts +56 -0
  38. package/dist/models/VpsIpAddressDetail.js +58 -0
  39. package/dist/models/VpsVmInfo.d.ts +3 -3
  40. package/dist/models/index.d.ts +5 -0
  41. package/dist/models/index.js +5 -0
  42. package/dist/retryablePaths.js +1 -0
  43. package/dist.zip +0 -0
  44. package/docs/EncryptedPasswordResponseData.md +39 -0
  45. package/docs/GetEncryptedPasswordRequestContent.md +36 -0
  46. package/docs/GetEncryptedPasswordResponseContent.md +36 -0
  47. package/docs/NoVncConsoleDetails.md +6 -0
  48. package/docs/PasswordEncryptionInfo.md +41 -0
  49. package/docs/VPSManagementApi.md +81 -1
  50. package/docs/VpsDetailsResponse.md +1 -1
  51. package/docs/VpsIpAddressDetail.md +43 -0
  52. package/docs/VpsVmInfo.md +1 -1
  53. package/package.json +1 -1
  54. package/src/apis/VPSManagementApi.ts +67 -2
  55. package/src/models/EncryptedPasswordResponseData.ts +92 -0
  56. package/src/models/GetEncryptedPasswordRequestContent.ts +75 -0
  57. package/src/models/GetEncryptedPasswordResponseContent.ts +92 -0
  58. package/src/models/NoVncConsoleDetails.ts +26 -3
  59. package/src/models/PasswordEncryptionInfo.ts +93 -0
  60. package/src/models/VpsCredentials.ts +1 -1
  61. package/src/models/VpsDetailsResponse.ts +12 -5
  62. package/src/models/VpsIpAddressDetail.ts +98 -0
  63. package/src/models/VpsVmInfo.ts +3 -3
  64. package/src/models/index.ts +5 -0
  65. package/src/retryablePaths.ts +1 -0
@@ -0,0 +1,98 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * HostAfricaApi
5
+ * HostAfrica API
6
+ *
7
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ * Detailed IP address assignment for a VPS
18
+ * @export
19
+ * @interface VpsIpAddressDetail
20
+ */
21
+ export interface VpsIpAddressDetail {
22
+ /**
23
+ * Primary IP address
24
+ * @type {string}
25
+ * @memberof VpsIpAddressDetail
26
+ */
27
+ ip: string;
28
+ /**
29
+ * IP address (may mirror ip)
30
+ * @type {string}
31
+ * @memberof VpsIpAddressDetail
32
+ */
33
+ address?: string;
34
+ /**
35
+ * Subnet mask
36
+ * @type {string}
37
+ * @memberof VpsIpAddressDetail
38
+ */
39
+ subnet?: string;
40
+ /**
41
+ * Gateway address
42
+ * @type {string}
43
+ * @memberof VpsIpAddressDetail
44
+ */
45
+ gateway?: string;
46
+ /**
47
+ * MAC address when available
48
+ * @type {string}
49
+ * @memberof VpsIpAddressDetail
50
+ */
51
+ mac?: string;
52
+ }
53
+
54
+ /**
55
+ * Check if a given object implements the VpsIpAddressDetail interface.
56
+ */
57
+ export function instanceOfVpsIpAddressDetail(value: object): value is VpsIpAddressDetail {
58
+ if (!('ip' in value) || value['ip'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function VpsIpAddressDetailFromJSON(json: any): VpsIpAddressDetail {
63
+ return VpsIpAddressDetailFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function VpsIpAddressDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpsIpAddressDetail {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'ip': json['ip'],
73
+ 'address': json['address'] == null ? undefined : json['address'],
74
+ 'subnet': json['subnet'] == null ? undefined : json['subnet'],
75
+ 'gateway': json['gateway'] == null ? undefined : json['gateway'],
76
+ 'mac': json['mac'] == null ? undefined : json['mac'],
77
+ };
78
+ }
79
+
80
+ export function VpsIpAddressDetailToJSON(json: any): VpsIpAddressDetail {
81
+ return VpsIpAddressDetailToJSONTyped(json, false);
82
+ }
83
+
84
+ export function VpsIpAddressDetailToJSONTyped(value?: VpsIpAddressDetail | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'ip': value['ip'],
92
+ 'address': value['address'],
93
+ 'subnet': value['subnet'],
94
+ 'gateway': value['gateway'],
95
+ 'mac': value['mac'],
96
+ };
97
+ }
98
+
@@ -44,11 +44,11 @@ export interface VpsVmInfo {
44
44
  */
45
45
  hostname?: string;
46
46
  /**
47
- * Boot devices configuration
48
- * @type {string}
47
+ * Boot devices configuration (e.g., scsi0, scsi1)
48
+ * @type {Array<string>}
49
49
  * @memberof VpsVmInfo
50
50
  */
51
- bootDevices?: string;
51
+ bootDevices?: Array<string>;
52
52
  /**
53
53
  * Proxmox VM ID
54
54
  * @type {string}
@@ -97,6 +97,7 @@ export * from './EditBackupScheduleRequestContent.js';
97
97
  export * from './EditBackupScheduleResponseContent.js';
98
98
  export * from './EditDnsRecordRequestContent.js';
99
99
  export * from './EditDnsRecordResponseContent.js';
100
+ export * from './EncryptedPasswordResponseData.js';
100
101
  export * from './FirewallListResponseData.js';
101
102
  export * from './FirewallMoveDirection.js';
102
103
  export * from './FirewallMoveResponseData.js';
@@ -116,6 +117,8 @@ export * from './GetDomainContactsResponseContent.js';
116
117
  export * from './GetDomainData.js';
117
118
  export * from './GetDomainRequestContent.js';
118
119
  export * from './GetDomainResponseContent.js';
120
+ export * from './GetEncryptedPasswordRequestContent.js';
121
+ export * from './GetEncryptedPasswordResponseContent.js';
119
122
  export * from './GetNoVncConsoleRequestContent.js';
120
123
  export * from './GetNoVncConsoleResponseContent.js';
121
124
  export * from './GetVpsConfigRequestContent.js';
@@ -176,6 +179,7 @@ export * from './OperationStatus.js';
176
179
  export * from './Order.js';
177
180
  export * from './OrderLastAttempt.js';
178
181
  export * from './OrderWarning.js';
182
+ export * from './PasswordEncryptionInfo.js';
179
183
  export * from './PaymentError.js';
180
184
  export * from './PaymentStatus.js';
181
185
  export * from './PowerTask.js';
@@ -272,6 +276,7 @@ export * from './VpsCpuInfo.js';
272
276
  export * from './VpsCredentials.js';
273
277
  export * from './VpsDetailsResponse.js';
274
278
  export * from './VpsDiskInfo.js';
279
+ export * from './VpsIpAddressDetail.js';
275
280
  export * from './VpsMemoryInfo.js';
276
281
  export * from './VpsNetworkRate.js';
277
282
  export * from './VpsOsInfo.js';
@@ -7,6 +7,7 @@
7
7
  export const RETRYABLE_PATHS = new Set<string>([
8
8
  "/vps/list-vps-services",
9
9
  "/vps/get-details",
10
+ "/vps/get-encrypted-password",
10
11
  "/vps/get-config",
11
12
  "/vps/novnc-console",
12
13
  "/vps/list-backups",