@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,55 @@
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
+ * Check if a given object implements the PasswordEncryptionInfo interface.
16
+ */
17
+ export function instanceOfPasswordEncryptionInfo(value) {
18
+ if (!('algorithm' in value) || value['algorithm'] === undefined)
19
+ return false;
20
+ if (!('hash' in value) || value['hash'] === undefined)
21
+ return false;
22
+ if (!('keySize' in value) || value['keySize'] === undefined)
23
+ return false;
24
+ if (!('encoding' in value) || value['encoding'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function PasswordEncryptionInfoFromJSON(json) {
29
+ return PasswordEncryptionInfoFromJSONTyped(json, false);
30
+ }
31
+ export function PasswordEncryptionInfoFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'algorithm': json['algorithm'],
37
+ 'hash': json['hash'],
38
+ 'keySize': json['keySize'],
39
+ 'encoding': json['encoding'],
40
+ };
41
+ }
42
+ export function PasswordEncryptionInfoToJSON(json) {
43
+ return PasswordEncryptionInfoToJSONTyped(json, false);
44
+ }
45
+ export function PasswordEncryptionInfoToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'algorithm': value['algorithm'],
51
+ 'hash': value['hash'],
52
+ 'keySize': value['keySize'],
53
+ 'encoding': value['encoding'],
54
+ };
55
+ }
@@ -22,7 +22,7 @@ export interface VpsCredentials {
22
22
  */
23
23
  username: string;
24
24
  /**
25
- * Password for VPS access
25
+ * Password for VPS access. Always returned as "<redacted>" from get-details; plaintext passwords are never included in API responses.
26
26
  * @type {string}
27
27
  * @memberof VpsCredentials
28
28
  */
@@ -15,6 +15,7 @@ import type { VpsCredentials } from './VpsCredentials.js';
15
15
  import type { VpsOsInfo } from './VpsOsInfo.js';
16
16
  import type { VpsCpuInfo } from './VpsCpuInfo.js';
17
17
  import type { VpsNetworkRate } from './VpsNetworkRate.js';
18
+ import type { VpsIpAddressDetail } from './VpsIpAddressDetail.js';
18
19
  import type { VpsMemoryInfo } from './VpsMemoryInfo.js';
19
20
  import type { VpsVmInfo } from './VpsVmInfo.js';
20
21
  /**
@@ -60,11 +61,11 @@ export interface VpsDetailsResponse {
60
61
  */
61
62
  networkRate?: VpsNetworkRate;
62
63
  /**
63
- * List of IP addresses assigned to the VPS
64
- * @type {Array<string>}
64
+ * List of IP addresses assigned to the VPS, including subnet, gateway, and MAC
65
+ * @type {Array<VpsIpAddressDetail>}
65
66
  * @memberof VpsDetailsResponse
66
67
  */
67
- ipAddresses: Array<string>;
68
+ ipAddresses: Array<VpsIpAddressDetail>;
68
69
  /**
69
70
  *
70
71
  * @type {VpsCredentials}
@@ -17,6 +17,7 @@ import { VpsCredentialsFromJSON, VpsCredentialsToJSON, } from './VpsCredentials.
17
17
  import { VpsOsInfoFromJSON, VpsOsInfoToJSON, } from './VpsOsInfo.js';
18
18
  import { VpsCpuInfoFromJSON, VpsCpuInfoToJSON, } from './VpsCpuInfo.js';
19
19
  import { VpsNetworkRateFromJSON, VpsNetworkRateToJSON, } from './VpsNetworkRate.js';
20
+ import { VpsIpAddressDetailFromJSON, VpsIpAddressDetailToJSON, } from './VpsIpAddressDetail.js';
20
21
  import { VpsMemoryInfoFromJSON, VpsMemoryInfoToJSON, } from './VpsMemoryInfo.js';
21
22
  import { VpsVmInfoFromJSON, VpsVmInfoToJSON, } from './VpsVmInfo.js';
22
23
  /**
@@ -55,7 +56,7 @@ export function VpsDetailsResponseFromJSONTyped(json, ignoreDiscriminator) {
55
56
  'memory': VpsMemoryInfoFromJSON(json['memory']),
56
57
  'disk': VpsDiskInfoFromJSON(json['disk']),
57
58
  'networkRate': json['network_rate'] == null ? undefined : VpsNetworkRateFromJSON(json['network_rate']),
58
- 'ipAddresses': json['ip_addresses'],
59
+ 'ipAddresses': (json['ip_addresses'].map(VpsIpAddressDetailFromJSON)),
59
60
  'credentials': VpsCredentialsFromJSON(json['credentials']),
60
61
  'availableFeatures': VpsAvailableFeaturesFromJSON(json['available_features']),
61
62
  'osInfo': json['os_info'] == null ? undefined : VpsOsInfoFromJSON(json['os_info']),
@@ -75,7 +76,7 @@ export function VpsDetailsResponseToJSONTyped(value, ignoreDiscriminator = false
75
76
  'memory': VpsMemoryInfoToJSON(value['memory']),
76
77
  'disk': VpsDiskInfoToJSON(value['disk']),
77
78
  'network_rate': VpsNetworkRateToJSON(value['networkRate']),
78
- 'ip_addresses': value['ipAddresses'],
79
+ 'ip_addresses': (value['ipAddresses'].map(VpsIpAddressDetailToJSON)),
79
80
  'credentials': VpsCredentialsToJSON(value['credentials']),
80
81
  'available_features': VpsAvailableFeaturesToJSON(value['availableFeatures']),
81
82
  'os_info': VpsOsInfoToJSON(value['osInfo']),
@@ -0,0 +1,56 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Detailed IP address assignment for a VPS
14
+ * @export
15
+ * @interface VpsIpAddressDetail
16
+ */
17
+ export interface VpsIpAddressDetail {
18
+ /**
19
+ * Primary IP address
20
+ * @type {string}
21
+ * @memberof VpsIpAddressDetail
22
+ */
23
+ ip: string;
24
+ /**
25
+ * IP address (may mirror ip)
26
+ * @type {string}
27
+ * @memberof VpsIpAddressDetail
28
+ */
29
+ address?: string;
30
+ /**
31
+ * Subnet mask
32
+ * @type {string}
33
+ * @memberof VpsIpAddressDetail
34
+ */
35
+ subnet?: string;
36
+ /**
37
+ * Gateway address
38
+ * @type {string}
39
+ * @memberof VpsIpAddressDetail
40
+ */
41
+ gateway?: string;
42
+ /**
43
+ * MAC address when available
44
+ * @type {string}
45
+ * @memberof VpsIpAddressDetail
46
+ */
47
+ mac?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the VpsIpAddressDetail interface.
51
+ */
52
+ export declare function instanceOfVpsIpAddressDetail(value: object): value is VpsIpAddressDetail;
53
+ export declare function VpsIpAddressDetailFromJSON(json: any): VpsIpAddressDetail;
54
+ export declare function VpsIpAddressDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): VpsIpAddressDetail;
55
+ export declare function VpsIpAddressDetailToJSON(json: any): VpsIpAddressDetail;
56
+ export declare function VpsIpAddressDetailToJSONTyped(value?: VpsIpAddressDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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
+ * Check if a given object implements the VpsIpAddressDetail interface.
16
+ */
17
+ export function instanceOfVpsIpAddressDetail(value) {
18
+ if (!('ip' in value) || value['ip'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function VpsIpAddressDetailFromJSON(json) {
23
+ return VpsIpAddressDetailFromJSONTyped(json, false);
24
+ }
25
+ export function VpsIpAddressDetailFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'ip': json['ip'],
31
+ 'address': json['address'] == null ? undefined : json['address'],
32
+ 'subnet': json['subnet'] == null ? undefined : json['subnet'],
33
+ 'gateway': json['gateway'] == null ? undefined : json['gateway'],
34
+ 'mac': json['mac'] == null ? undefined : json['mac'],
35
+ };
36
+ }
37
+ export function VpsIpAddressDetailToJSON(json) {
38
+ return VpsIpAddressDetailToJSONTyped(json, false);
39
+ }
40
+ export function VpsIpAddressDetailToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'ip': value['ip'],
46
+ 'address': value['address'],
47
+ 'subnet': value['subnet'],
48
+ 'gateway': value['gateway'],
49
+ 'mac': value['mac'],
50
+ };
51
+ }
@@ -40,11 +40,11 @@ export interface VpsVmInfo {
40
40
  */
41
41
  hostname?: string;
42
42
  /**
43
- * Boot devices configuration
44
- * @type {string}
43
+ * Boot devices configuration (e.g., scsi0, scsi1)
44
+ * @type {Array<string>}
45
45
  * @memberof VpsVmInfo
46
46
  */
47
- bootDevices?: string;
47
+ bootDevices?: Array<string>;
48
48
  /**
49
49
  * Proxmox VM ID
50
50
  * @type {string}
@@ -95,6 +95,7 @@ export * from './EditBackupScheduleRequestContent.js';
95
95
  export * from './EditBackupScheduleResponseContent.js';
96
96
  export * from './EditDnsRecordRequestContent.js';
97
97
  export * from './EditDnsRecordResponseContent.js';
98
+ export * from './EncryptedPasswordResponseData.js';
98
99
  export * from './FirewallListResponseData.js';
99
100
  export * from './FirewallMoveDirection.js';
100
101
  export * from './FirewallMoveResponseData.js';
@@ -114,6 +115,8 @@ export * from './GetDomainContactsResponseContent.js';
114
115
  export * from './GetDomainData.js';
115
116
  export * from './GetDomainRequestContent.js';
116
117
  export * from './GetDomainResponseContent.js';
118
+ export * from './GetEncryptedPasswordRequestContent.js';
119
+ export * from './GetEncryptedPasswordResponseContent.js';
117
120
  export * from './GetNoVncConsoleRequestContent.js';
118
121
  export * from './GetNoVncConsoleResponseContent.js';
119
122
  export * from './GetVpsConfigRequestContent.js';
@@ -174,6 +177,7 @@ export * from './OperationStatus.js';
174
177
  export * from './Order.js';
175
178
  export * from './OrderLastAttempt.js';
176
179
  export * from './OrderWarning.js';
180
+ export * from './PasswordEncryptionInfo.js';
177
181
  export * from './PaymentError.js';
178
182
  export * from './PaymentStatus.js';
179
183
  export * from './PowerTask.js';
@@ -270,6 +274,7 @@ export * from './VpsCpuInfo.js';
270
274
  export * from './VpsCredentials.js';
271
275
  export * from './VpsDetailsResponse.js';
272
276
  export * from './VpsDiskInfo.js';
277
+ export * from './VpsIpAddressDetail.js';
273
278
  export * from './VpsMemoryInfo.js';
274
279
  export * from './VpsNetworkRate.js';
275
280
  export * from './VpsOsInfo.js';
@@ -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';
@@ -6,6 +6,7 @@
6
6
  export const RETRYABLE_PATHS = new Set([
7
7
  "/vps/list-vps-services",
8
8
  "/vps/get-details",
9
+ "/vps/get-encrypted-password",
9
10
  "/vps/get-config",
10
11
  "/vps/novnc-console",
11
12
  "/vps/list-backups",
@@ -0,0 +1,45 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { PasswordEncryptionInfo } from './PasswordEncryptionInfo.js';
13
+ /**
14
+ * Response data for get-encrypted-password
15
+ * @export
16
+ * @interface EncryptedPasswordResponseData
17
+ */
18
+ export interface EncryptedPasswordResponseData {
19
+ /**
20
+ * Username for VPS access (plaintext)
21
+ * @type {string}
22
+ * @memberof EncryptedPasswordResponseData
23
+ */
24
+ username: string;
25
+ /**
26
+ * Base64-encoded ciphertext of the VPS password. Produced with RSA-OAEP (SHA-256) and the request public_key. Decode from base64, then decrypt with the matching private key via openssl pkeyutl -decrypt -pkeyopt rsa_padding_mode:oaep -pkeyopt rsa_oaep_md:sha256 -pkeyopt rsa_mgf1_md:sha256.
27
+ * @type {string}
28
+ * @memberof EncryptedPasswordResponseData
29
+ */
30
+ password: string;
31
+ /**
32
+ *
33
+ * @type {PasswordEncryptionInfo}
34
+ * @memberof EncryptedPasswordResponseData
35
+ */
36
+ encryption: PasswordEncryptionInfo;
37
+ }
38
+ /**
39
+ * Check if a given object implements the EncryptedPasswordResponseData interface.
40
+ */
41
+ export declare function instanceOfEncryptedPasswordResponseData(value: object): value is EncryptedPasswordResponseData;
42
+ export declare function EncryptedPasswordResponseDataFromJSON(json: any): EncryptedPasswordResponseData;
43
+ export declare function EncryptedPasswordResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): EncryptedPasswordResponseData;
44
+ export declare function EncryptedPasswordResponseDataToJSON(json: any): EncryptedPasswordResponseData;
45
+ export declare function EncryptedPasswordResponseDataToJSONTyped(value?: EncryptedPasswordResponseData | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEncryptedPasswordResponseData = instanceOfEncryptedPasswordResponseData;
17
+ exports.EncryptedPasswordResponseDataFromJSON = EncryptedPasswordResponseDataFromJSON;
18
+ exports.EncryptedPasswordResponseDataFromJSONTyped = EncryptedPasswordResponseDataFromJSONTyped;
19
+ exports.EncryptedPasswordResponseDataToJSON = EncryptedPasswordResponseDataToJSON;
20
+ exports.EncryptedPasswordResponseDataToJSONTyped = EncryptedPasswordResponseDataToJSONTyped;
21
+ const PasswordEncryptionInfo_js_1 = require("./PasswordEncryptionInfo.js");
22
+ /**
23
+ * Check if a given object implements the EncryptedPasswordResponseData interface.
24
+ */
25
+ function instanceOfEncryptedPasswordResponseData(value) {
26
+ if (!('username' in value) || value['username'] === undefined)
27
+ return false;
28
+ if (!('password' in value) || value['password'] === undefined)
29
+ return false;
30
+ if (!('encryption' in value) || value['encryption'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function EncryptedPasswordResponseDataFromJSON(json) {
35
+ return EncryptedPasswordResponseDataFromJSONTyped(json, false);
36
+ }
37
+ function EncryptedPasswordResponseDataFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'username': json['username'],
43
+ 'password': json['password'],
44
+ 'encryption': (0, PasswordEncryptionInfo_js_1.PasswordEncryptionInfoFromJSON)(json['encryption']),
45
+ };
46
+ }
47
+ function EncryptedPasswordResponseDataToJSON(json) {
48
+ return EncryptedPasswordResponseDataToJSONTyped(json, false);
49
+ }
50
+ function EncryptedPasswordResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'username': value['username'],
56
+ 'password': value['password'],
57
+ 'encryption': (0, PasswordEncryptionInfo_js_1.PasswordEncryptionInfoToJSON)(value['encryption']),
58
+ };
59
+ }
@@ -0,0 +1,38 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetEncryptedPasswordRequestContent
16
+ */
17
+ export interface GetEncryptedPasswordRequestContent {
18
+ /**
19
+ * Service ID - must be sent as a string
20
+ * @type {string}
21
+ * @memberof GetEncryptedPasswordRequestContent
22
+ */
23
+ serviceId: string;
24
+ /**
25
+ * PEM-encoded RSA public key only (never the private key). Accepts SPKI (`-----BEGIN PUBLIC KEY-----`) or PKCS#1 (`-----BEGIN RSA PUBLIC KEY-----`). Must be exactly 4096-bit. Used with RSA-OAEP and SHA-256 to encrypt the password.
26
+ * @type {string}
27
+ * @memberof GetEncryptedPasswordRequestContent
28
+ */
29
+ publicKey: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GetEncryptedPasswordRequestContent interface.
33
+ */
34
+ export declare function instanceOfGetEncryptedPasswordRequestContent(value: object): value is GetEncryptedPasswordRequestContent;
35
+ export declare function GetEncryptedPasswordRequestContentFromJSON(json: any): GetEncryptedPasswordRequestContent;
36
+ export declare function GetEncryptedPasswordRequestContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEncryptedPasswordRequestContent;
37
+ export declare function GetEncryptedPasswordRequestContentToJSON(json: any): GetEncryptedPasswordRequestContent;
38
+ export declare function GetEncryptedPasswordRequestContentToJSONTyped(value?: GetEncryptedPasswordRequestContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetEncryptedPasswordRequestContent = instanceOfGetEncryptedPasswordRequestContent;
17
+ exports.GetEncryptedPasswordRequestContentFromJSON = GetEncryptedPasswordRequestContentFromJSON;
18
+ exports.GetEncryptedPasswordRequestContentFromJSONTyped = GetEncryptedPasswordRequestContentFromJSONTyped;
19
+ exports.GetEncryptedPasswordRequestContentToJSON = GetEncryptedPasswordRequestContentToJSON;
20
+ exports.GetEncryptedPasswordRequestContentToJSONTyped = GetEncryptedPasswordRequestContentToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the GetEncryptedPasswordRequestContent interface.
23
+ */
24
+ function instanceOfGetEncryptedPasswordRequestContent(value) {
25
+ if (!('serviceId' in value) || value['serviceId'] === undefined)
26
+ return false;
27
+ if (!('publicKey' in value) || value['publicKey'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function GetEncryptedPasswordRequestContentFromJSON(json) {
32
+ return GetEncryptedPasswordRequestContentFromJSONTyped(json, false);
33
+ }
34
+ function GetEncryptedPasswordRequestContentFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'serviceId': json['service_id'],
40
+ 'publicKey': json['public_key'],
41
+ };
42
+ }
43
+ function GetEncryptedPasswordRequestContentToJSON(json) {
44
+ return GetEncryptedPasswordRequestContentToJSONTyped(json, false);
45
+ }
46
+ function GetEncryptedPasswordRequestContentToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'service_id': value['serviceId'],
52
+ 'public_key': value['publicKey'],
53
+ };
54
+ }
@@ -0,0 +1,40 @@
1
+ /**
2
+ * HostAfricaApi
3
+ * HostAfrica API
4
+ *
5
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { OperationStatus } from './OperationStatus.js';
13
+ import type { EncryptedPasswordResponseData } from './EncryptedPasswordResponseData.js';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface GetEncryptedPasswordResponseContent
18
+ */
19
+ export interface GetEncryptedPasswordResponseContent {
20
+ /**
21
+ *
22
+ * @type {OperationStatus}
23
+ * @memberof GetEncryptedPasswordResponseContent
24
+ */
25
+ status: OperationStatus;
26
+ /**
27
+ *
28
+ * @type {EncryptedPasswordResponseData}
29
+ * @memberof GetEncryptedPasswordResponseContent
30
+ */
31
+ data: EncryptedPasswordResponseData;
32
+ }
33
+ /**
34
+ * Check if a given object implements the GetEncryptedPasswordResponseContent interface.
35
+ */
36
+ export declare function instanceOfGetEncryptedPasswordResponseContent(value: object): value is GetEncryptedPasswordResponseContent;
37
+ export declare function GetEncryptedPasswordResponseContentFromJSON(json: any): GetEncryptedPasswordResponseContent;
38
+ export declare function GetEncryptedPasswordResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetEncryptedPasswordResponseContent;
39
+ export declare function GetEncryptedPasswordResponseContentToJSON(json: any): GetEncryptedPasswordResponseContent;
40
+ export declare function GetEncryptedPasswordResponseContentToJSONTyped(value?: GetEncryptedPasswordResponseContent | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * HostAfricaApi
6
+ * HostAfrica API
7
+ *
8
+ * The version of the OpenAPI document: 1.1.0 - 2026-07-16
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfGetEncryptedPasswordResponseContent = instanceOfGetEncryptedPasswordResponseContent;
17
+ exports.GetEncryptedPasswordResponseContentFromJSON = GetEncryptedPasswordResponseContentFromJSON;
18
+ exports.GetEncryptedPasswordResponseContentFromJSONTyped = GetEncryptedPasswordResponseContentFromJSONTyped;
19
+ exports.GetEncryptedPasswordResponseContentToJSON = GetEncryptedPasswordResponseContentToJSON;
20
+ exports.GetEncryptedPasswordResponseContentToJSONTyped = GetEncryptedPasswordResponseContentToJSONTyped;
21
+ const OperationStatus_js_1 = require("./OperationStatus.js");
22
+ const EncryptedPasswordResponseData_js_1 = require("./EncryptedPasswordResponseData.js");
23
+ /**
24
+ * Check if a given object implements the GetEncryptedPasswordResponseContent interface.
25
+ */
26
+ function instanceOfGetEncryptedPasswordResponseContent(value) {
27
+ if (!('status' in value) || value['status'] === undefined)
28
+ return false;
29
+ if (!('data' in value) || value['data'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function GetEncryptedPasswordResponseContentFromJSON(json) {
34
+ return GetEncryptedPasswordResponseContentFromJSONTyped(json, false);
35
+ }
36
+ function GetEncryptedPasswordResponseContentFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'status': (0, OperationStatus_js_1.OperationStatusFromJSON)(json['status']),
42
+ 'data': (0, EncryptedPasswordResponseData_js_1.EncryptedPasswordResponseDataFromJSON)(json['data']),
43
+ };
44
+ }
45
+ function GetEncryptedPasswordResponseContentToJSON(json) {
46
+ return GetEncryptedPasswordResponseContentToJSONTyped(json, false);
47
+ }
48
+ function GetEncryptedPasswordResponseContentToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'status': (0, OperationStatus_js_1.OperationStatusToJSON)(value['status']),
54
+ 'data': (0, EncryptedPasswordResponseData_js_1.EncryptedPasswordResponseDataToJSON)(value['data']),
55
+ };
56
+ }
@@ -20,7 +20,25 @@ export interface NoVncConsoleDetails {
20
20
  * @type {string}
21
21
  * @memberof NoVncConsoleDetails
22
22
  */
23
- novncRedirectUrl: string;
23
+ novncRedirectUrl?: string;
24
+ /**
25
+ * Console connection mode
26
+ * @type {string}
27
+ * @memberof NoVncConsoleDetails
28
+ */
29
+ mode?: string;
30
+ /**
31
+ * WebSocket URL for proxied console access
32
+ * @type {string}
33
+ * @memberof NoVncConsoleDetails
34
+ */
35
+ websocketUrl?: string;
36
+ /**
37
+ * Password for proxied console access
38
+ * @type {string}
39
+ * @memberof NoVncConsoleDetails
40
+ */
41
+ password?: string;
24
42
  }
25
43
  /**
26
44
  * Check if a given object implements the NoVncConsoleDetails interface.
@@ -22,8 +22,6 @@ exports.NoVncConsoleDetailsToJSONTyped = NoVncConsoleDetailsToJSONTyped;
22
22
  * Check if a given object implements the NoVncConsoleDetails interface.
23
23
  */
24
24
  function instanceOfNoVncConsoleDetails(value) {
25
- if (!('novncRedirectUrl' in value) || value['novncRedirectUrl'] === undefined)
26
- return false;
27
25
  return true;
28
26
  }
29
27
  function NoVncConsoleDetailsFromJSON(json) {
@@ -34,7 +32,10 @@ function NoVncConsoleDetailsFromJSONTyped(json, ignoreDiscriminator) {
34
32
  return json;
35
33
  }
36
34
  return {
37
- 'novncRedirectUrl': json['novnc_redirect_url'],
35
+ 'novncRedirectUrl': json['novnc_redirect_url'] == null ? undefined : json['novnc_redirect_url'],
36
+ 'mode': json['mode'] == null ? undefined : json['mode'],
37
+ 'websocketUrl': json['websocket_url'] == null ? undefined : json['websocket_url'],
38
+ 'password': json['password'] == null ? undefined : json['password'],
38
39
  };
39
40
  }
40
41
  function NoVncConsoleDetailsToJSON(json) {
@@ -46,5 +47,8 @@ function NoVncConsoleDetailsToJSONTyped(value, ignoreDiscriminator = false) {
46
47
  }
47
48
  return {
48
49
  'novnc_redirect_url': value['novncRedirectUrl'],
50
+ 'mode': value['mode'],
51
+ 'websocket_url': value['websocketUrl'],
52
+ 'password': value['password'],
49
53
  };
50
54
  }