@hostafrica/ha-sdk-typescript 1.1.3 → 1.1.5

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 (194) hide show
  1. package/dist/apis/BillingApi.d.ts +45 -0
  2. package/dist/apis/BillingApi.js +122 -0
  3. package/dist/apis/DNSApi.d.ts +8 -8
  4. package/dist/apis/DNSApi.js +8 -8
  5. package/dist/apis/VPSManagementApi.d.ts +18 -3
  6. package/dist/apis/VPSManagementApi.js +49 -2
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/BillingApi.d.ts +45 -0
  10. package/dist/esm/apis/BillingApi.js +118 -0
  11. package/dist/esm/apis/DNSApi.d.ts +8 -8
  12. package/dist/esm/apis/DNSApi.js +8 -8
  13. package/dist/esm/apis/VPSManagementApi.d.ts +18 -3
  14. package/dist/esm/apis/VPSManagementApi.js +50 -3
  15. package/dist/esm/apis/index.d.ts +1 -0
  16. package/dist/esm/apis/index.js +1 -0
  17. package/dist/esm/models/AddDnsRecordRequestContent.d.ts +22 -3
  18. package/dist/esm/models/AddDnsRecordRequestContent.js +8 -3
  19. package/dist/esm/models/DeleteDnsRecordRequestContent.d.ts +22 -3
  20. package/dist/esm/models/DeleteDnsRecordRequestContent.js +8 -3
  21. package/dist/esm/models/DnsBackend.d.ts +28 -0
  22. package/dist/esm/models/DnsBackend.js +46 -0
  23. package/dist/esm/models/DnsRecordMutationRecord.d.ts +3 -2
  24. package/dist/esm/models/DnsZoneInfo.d.ts +7 -0
  25. package/dist/esm/models/DnsZoneInfo.js +3 -0
  26. package/dist/esm/models/EditDnsRecordRequestContent.d.ts +22 -3
  27. package/dist/esm/models/EditDnsRecordRequestContent.js +8 -3
  28. package/dist/esm/models/EncryptedPasswordResponseData.d.ts +45 -0
  29. package/dist/esm/models/EncryptedPasswordResponseData.js +52 -0
  30. package/dist/esm/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
  31. package/dist/esm/models/GetDnsZoneDetailsRequestContent.js +3 -0
  32. package/dist/esm/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
  33. package/dist/esm/models/GetEncryptedPasswordRequestContent.js +47 -0
  34. package/dist/esm/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
  35. package/dist/esm/models/GetEncryptedPasswordResponseContent.js +49 -0
  36. package/dist/esm/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
  37. package/dist/esm/models/GetInvoiceDetailsRequestContent.js +43 -0
  38. package/dist/esm/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
  39. package/dist/esm/models/GetInvoiceDetailsResponseContent.js +49 -0
  40. package/dist/esm/models/GetInvoiceDetailsResponseData.d.ts +40 -0
  41. package/dist/esm/models/GetInvoiceDetailsResponseData.js +47 -0
  42. package/dist/esm/models/InvoiceDetails.d.ts +143 -0
  43. package/dist/esm/models/InvoiceDetails.js +112 -0
  44. package/dist/esm/models/InvoiceIssuedTo.d.ts +69 -0
  45. package/dist/esm/models/InvoiceIssuedTo.js +66 -0
  46. package/dist/esm/models/InvoiceIssuedToTax.d.ts +44 -0
  47. package/dist/esm/models/InvoiceIssuedToTax.js +51 -0
  48. package/dist/esm/models/InvoiceItem.d.ts +56 -0
  49. package/dist/esm/models/InvoiceItem.js +59 -0
  50. package/dist/esm/models/InvoiceSummary.d.ts +98 -0
  51. package/dist/esm/models/InvoiceSummary.js +83 -0
  52. package/dist/esm/models/InvoiceTransaction.d.ts +74 -0
  53. package/dist/esm/models/InvoiceTransaction.js +57 -0
  54. package/dist/esm/models/ListInvoicesResponseContent.d.ts +40 -0
  55. package/dist/esm/models/ListInvoicesResponseContent.js +49 -0
  56. package/dist/esm/models/ListInvoicesResponseData.d.ts +39 -0
  57. package/dist/esm/models/ListInvoicesResponseData.js +48 -0
  58. package/dist/esm/models/NoVncConsoleDetails.d.ts +19 -1
  59. package/dist/esm/models/NoVncConsoleDetails.js +7 -3
  60. package/dist/esm/models/PasswordEncryptionInfo.d.ts +50 -0
  61. package/dist/esm/models/PasswordEncryptionInfo.js +55 -0
  62. package/dist/esm/models/SelcomMetadata.d.ts +56 -0
  63. package/dist/esm/models/SelcomMetadata.js +59 -0
  64. package/dist/esm/models/VpsCredentials.d.ts +1 -1
  65. package/dist/esm/models/VpsDetailsResponse.d.ts +4 -3
  66. package/dist/esm/models/VpsDetailsResponse.js +3 -2
  67. package/dist/esm/models/VpsIpAddressDetail.d.ts +56 -0
  68. package/dist/esm/models/VpsIpAddressDetail.js +51 -0
  69. package/dist/esm/models/VpsVmInfo.d.ts +3 -3
  70. package/dist/esm/models/index.d.ts +18 -0
  71. package/dist/esm/models/index.js +18 -0
  72. package/dist/esm/retryablePaths.js +3 -0
  73. package/dist/models/AddDnsRecordRequestContent.d.ts +22 -3
  74. package/dist/models/AddDnsRecordRequestContent.js +8 -3
  75. package/dist/models/DeleteDnsRecordRequestContent.d.ts +22 -3
  76. package/dist/models/DeleteDnsRecordRequestContent.js +8 -3
  77. package/dist/models/DnsBackend.d.ts +28 -0
  78. package/dist/models/DnsBackend.js +54 -0
  79. package/dist/models/DnsRecordMutationRecord.d.ts +3 -2
  80. package/dist/models/DnsZoneInfo.d.ts +7 -0
  81. package/dist/models/DnsZoneInfo.js +3 -0
  82. package/dist/models/EditDnsRecordRequestContent.d.ts +22 -3
  83. package/dist/models/EditDnsRecordRequestContent.js +8 -3
  84. package/dist/models/EncryptedPasswordResponseData.d.ts +45 -0
  85. package/dist/models/EncryptedPasswordResponseData.js +59 -0
  86. package/dist/models/GetDnsZoneDetailsRequestContent.d.ts +7 -0
  87. package/dist/models/GetDnsZoneDetailsRequestContent.js +3 -0
  88. package/dist/models/GetEncryptedPasswordRequestContent.d.ts +38 -0
  89. package/dist/models/GetEncryptedPasswordRequestContent.js +54 -0
  90. package/dist/models/GetEncryptedPasswordResponseContent.d.ts +40 -0
  91. package/dist/models/GetEncryptedPasswordResponseContent.js +56 -0
  92. package/dist/models/GetInvoiceDetailsRequestContent.d.ts +32 -0
  93. package/dist/models/GetInvoiceDetailsRequestContent.js +50 -0
  94. package/dist/models/GetInvoiceDetailsResponseContent.d.ts +40 -0
  95. package/dist/models/GetInvoiceDetailsResponseContent.js +56 -0
  96. package/dist/models/GetInvoiceDetailsResponseData.d.ts +40 -0
  97. package/dist/models/GetInvoiceDetailsResponseData.js +54 -0
  98. package/dist/models/InvoiceDetails.d.ts +143 -0
  99. package/dist/models/InvoiceDetails.js +119 -0
  100. package/dist/models/InvoiceIssuedTo.d.ts +69 -0
  101. package/dist/models/InvoiceIssuedTo.js +73 -0
  102. package/dist/models/InvoiceIssuedToTax.d.ts +44 -0
  103. package/dist/models/InvoiceIssuedToTax.js +58 -0
  104. package/dist/models/InvoiceItem.d.ts +56 -0
  105. package/dist/models/InvoiceItem.js +66 -0
  106. package/dist/models/InvoiceSummary.d.ts +98 -0
  107. package/dist/models/InvoiceSummary.js +90 -0
  108. package/dist/models/InvoiceTransaction.d.ts +74 -0
  109. package/dist/models/InvoiceTransaction.js +64 -0
  110. package/dist/models/ListInvoicesResponseContent.d.ts +40 -0
  111. package/dist/models/ListInvoicesResponseContent.js +56 -0
  112. package/dist/models/ListInvoicesResponseData.d.ts +39 -0
  113. package/dist/models/ListInvoicesResponseData.js +55 -0
  114. package/dist/models/NoVncConsoleDetails.d.ts +19 -1
  115. package/dist/models/NoVncConsoleDetails.js +7 -3
  116. package/dist/models/PasswordEncryptionInfo.d.ts +50 -0
  117. package/dist/models/PasswordEncryptionInfo.js +62 -0
  118. package/dist/models/SelcomMetadata.d.ts +56 -0
  119. package/dist/models/SelcomMetadata.js +66 -0
  120. package/dist/models/VpsCredentials.d.ts +1 -1
  121. package/dist/models/VpsDetailsResponse.d.ts +4 -3
  122. package/dist/models/VpsDetailsResponse.js +3 -2
  123. package/dist/models/VpsIpAddressDetail.d.ts +56 -0
  124. package/dist/models/VpsIpAddressDetail.js +58 -0
  125. package/dist/models/VpsVmInfo.d.ts +3 -3
  126. package/dist/models/index.d.ts +18 -0
  127. package/dist/models/index.js +18 -0
  128. package/dist/retryablePaths.js +3 -0
  129. package/dist.zip +0 -0
  130. package/docs/AddDnsRecordRequestContent.md +6 -0
  131. package/docs/BillingApi.md +159 -0
  132. package/docs/DNSApi.md +4 -4
  133. package/docs/DeleteDnsRecordRequestContent.md +6 -0
  134. package/docs/DnsBackend.md +33 -0
  135. package/docs/DnsRecordMutationRecord.md +1 -1
  136. package/docs/DnsZoneInfo.md +2 -0
  137. package/docs/EditDnsRecordRequestContent.md +6 -0
  138. package/docs/EncryptedPasswordResponseData.md +39 -0
  139. package/docs/GetDnsZoneDetailsRequestContent.md +2 -0
  140. package/docs/GetEncryptedPasswordRequestContent.md +36 -0
  141. package/docs/GetEncryptedPasswordResponseContent.md +36 -0
  142. package/docs/GetInvoiceDetailsRequestContent.md +34 -0
  143. package/docs/GetInvoiceDetailsResponseContent.md +36 -0
  144. package/docs/GetInvoiceDetailsResponseData.md +37 -0
  145. package/docs/InvoiceDetails.md +71 -0
  146. package/docs/InvoiceIssuedTo.md +47 -0
  147. package/docs/InvoiceIssuedToTax.md +39 -0
  148. package/docs/InvoiceItem.md +43 -0
  149. package/docs/InvoiceSummary.md +57 -0
  150. package/docs/InvoiceTransaction.md +49 -0
  151. package/docs/ListInvoicesResponseContent.md +36 -0
  152. package/docs/ListInvoicesResponseData.md +37 -0
  153. package/docs/NoVncConsoleDetails.md +6 -0
  154. package/docs/PasswordEncryptionInfo.md +41 -0
  155. package/docs/SelcomMetadata.md +43 -0
  156. package/docs/VPSManagementApi.md +81 -1
  157. package/docs/VpsDetailsResponse.md +1 -1
  158. package/docs/VpsIpAddressDetail.md +43 -0
  159. package/docs/VpsVmInfo.md +1 -1
  160. package/package.json +1 -1
  161. package/src/apis/BillingApi.ts +164 -0
  162. package/src/apis/DNSApi.ts +8 -8
  163. package/src/apis/VPSManagementApi.ts +67 -2
  164. package/src/apis/index.ts +1 -0
  165. package/src/models/AddDnsRecordRequestContent.ts +37 -5
  166. package/src/models/DeleteDnsRecordRequestContent.ts +37 -5
  167. package/src/models/DnsBackend.ts +56 -0
  168. package/src/models/DnsRecordMutationRecord.ts +3 -2
  169. package/src/models/DnsZoneInfo.ts +17 -0
  170. package/src/models/EditDnsRecordRequestContent.ts +37 -5
  171. package/src/models/EncryptedPasswordResponseData.ts +92 -0
  172. package/src/models/GetDnsZoneDetailsRequestContent.ts +18 -0
  173. package/src/models/GetEncryptedPasswordRequestContent.ts +75 -0
  174. package/src/models/GetEncryptedPasswordResponseContent.ts +92 -0
  175. package/src/models/GetInvoiceDetailsRequestContent.ts +66 -0
  176. package/src/models/GetInvoiceDetailsResponseContent.ts +92 -0
  177. package/src/models/GetInvoiceDetailsResponseData.ts +89 -0
  178. package/src/models/InvoiceDetails.ts +247 -0
  179. package/src/models/InvoiceIssuedTo.ts +127 -0
  180. package/src/models/InvoiceIssuedToTax.ts +84 -0
  181. package/src/models/InvoiceItem.ts +102 -0
  182. package/src/models/InvoiceSummary.ts +163 -0
  183. package/src/models/InvoiceTransaction.ts +122 -0
  184. package/src/models/ListInvoicesResponseContent.ts +92 -0
  185. package/src/models/ListInvoicesResponseData.ts +83 -0
  186. package/src/models/NoVncConsoleDetails.ts +26 -3
  187. package/src/models/PasswordEncryptionInfo.ts +93 -0
  188. package/src/models/SelcomMetadata.ts +102 -0
  189. package/src/models/VpsCredentials.ts +1 -1
  190. package/src/models/VpsDetailsResponse.ts +12 -5
  191. package/src/models/VpsIpAddressDetail.ts +98 -0
  192. package/src/models/VpsVmInfo.ts +3 -3
  193. package/src/models/index.ts +18 -0
  194. package/src/retryablePaths.ts +3 -0
@@ -0,0 +1,163 @@
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
+ * Summary of an invoice in the list-invoices response
18
+ * @export
19
+ * @interface InvoiceSummary
20
+ */
21
+ export interface InvoiceSummary {
22
+ /**
23
+ * Unique invoice identifier - must be sent as a string
24
+ * @type {string}
25
+ * @memberof InvoiceSummary
26
+ */
27
+ invoiceId: string;
28
+ /**
29
+ * Human-readable invoice number when assigned
30
+ * @type {string}
31
+ * @memberof InvoiceSummary
32
+ */
33
+ invoiceNumber: string;
34
+ /**
35
+ * Invoice issue date (ISO 8601)
36
+ * @type {string}
37
+ * @memberof InvoiceSummary
38
+ */
39
+ date: string;
40
+ /**
41
+ * Invoice due date (ISO 8601)
42
+ * @type {string}
43
+ * @memberof InvoiceSummary
44
+ */
45
+ dueDate: string;
46
+ /**
47
+ * Invoice status (e.g. Paid, Unpaid, Cancelled, Refunded)
48
+ * @type {string}
49
+ * @memberof InvoiceSummary
50
+ */
51
+ status: string;
52
+ /**
53
+ * Primary tax amount as a decimal string
54
+ * @type {string}
55
+ * @memberof InvoiceSummary
56
+ */
57
+ tax: string;
58
+ /**
59
+ * Secondary tax amount as a decimal string. Omitted when a second tax is not configured.
60
+ * @type {string}
61
+ * @memberof InvoiceSummary
62
+ */
63
+ tax2?: string;
64
+ /**
65
+ * Primary tax rate as a decimal string
66
+ * @type {string}
67
+ * @memberof InvoiceSummary
68
+ */
69
+ taxRate: string;
70
+ /**
71
+ * Secondary tax rate as a decimal string. Omitted when a second tax is not configured.
72
+ * @type {string}
73
+ * @memberof InvoiceSummary
74
+ */
75
+ taxRate2?: string;
76
+ /**
77
+ * Invoice total including tax as a decimal string
78
+ * @type {string}
79
+ * @memberof InvoiceSummary
80
+ */
81
+ total: string;
82
+ /**
83
+ * Invoice subtotal excluding tax as a decimal string
84
+ * @type {string}
85
+ * @memberof InvoiceSummary
86
+ */
87
+ subtotal: string;
88
+ /**
89
+ * Grand total as a decimal string
90
+ * @type {string}
91
+ * @memberof InvoiceSummary
92
+ */
93
+ grandTotal: string;
94
+ }
95
+
96
+ /**
97
+ * Check if a given object implements the InvoiceSummary interface.
98
+ */
99
+ export function instanceOfInvoiceSummary(value: object): value is InvoiceSummary {
100
+ if (!('invoiceId' in value) || value['invoiceId'] === undefined) return false;
101
+ if (!('invoiceNumber' in value) || value['invoiceNumber'] === undefined) return false;
102
+ if (!('date' in value) || value['date'] === undefined) return false;
103
+ if (!('dueDate' in value) || value['dueDate'] === undefined) return false;
104
+ if (!('status' in value) || value['status'] === undefined) return false;
105
+ if (!('tax' in value) || value['tax'] === undefined) return false;
106
+ if (!('taxRate' in value) || value['taxRate'] === undefined) return false;
107
+ if (!('total' in value) || value['total'] === undefined) return false;
108
+ if (!('subtotal' in value) || value['subtotal'] === undefined) return false;
109
+ if (!('grandTotal' in value) || value['grandTotal'] === undefined) return false;
110
+ return true;
111
+ }
112
+
113
+ export function InvoiceSummaryFromJSON(json: any): InvoiceSummary {
114
+ return InvoiceSummaryFromJSONTyped(json, false);
115
+ }
116
+
117
+ export function InvoiceSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceSummary {
118
+ if (json == null) {
119
+ return json;
120
+ }
121
+ return {
122
+
123
+ 'invoiceId': json['invoice_id'],
124
+ 'invoiceNumber': json['invoice_number'],
125
+ 'date': json['date'],
126
+ 'dueDate': json['due_date'],
127
+ 'status': json['status'],
128
+ 'tax': json['tax'],
129
+ 'tax2': json['tax2'] == null ? undefined : json['tax2'],
130
+ 'taxRate': json['tax_rate'],
131
+ 'taxRate2': json['tax_rate2'] == null ? undefined : json['tax_rate2'],
132
+ 'total': json['total'],
133
+ 'subtotal': json['subtotal'],
134
+ 'grandTotal': json['grand_total'],
135
+ };
136
+ }
137
+
138
+ export function InvoiceSummaryToJSON(json: any): InvoiceSummary {
139
+ return InvoiceSummaryToJSONTyped(json, false);
140
+ }
141
+
142
+ export function InvoiceSummaryToJSONTyped(value?: InvoiceSummary | null, ignoreDiscriminator: boolean = false): any {
143
+ if (value == null) {
144
+ return value;
145
+ }
146
+
147
+ return {
148
+
149
+ 'invoice_id': value['invoiceId'],
150
+ 'invoice_number': value['invoiceNumber'],
151
+ 'date': value['date'],
152
+ 'due_date': value['dueDate'],
153
+ 'status': value['status'],
154
+ 'tax': value['tax'],
155
+ 'tax2': value['tax2'],
156
+ 'tax_rate': value['taxRate'],
157
+ 'tax_rate2': value['taxRate2'],
158
+ 'total': value['total'],
159
+ 'subtotal': value['subtotal'],
160
+ 'grand_total': value['grandTotal'],
161
+ };
162
+ }
163
+
@@ -0,0 +1,122 @@
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
+ * A payment or refund transaction recorded against an invoice
18
+ * @export
19
+ * @interface InvoiceTransaction
20
+ */
21
+ export interface InvoiceTransaction {
22
+ /**
23
+ * Transaction identifier
24
+ * @type {number}
25
+ * @memberof InvoiceTransaction
26
+ */
27
+ id: number;
28
+ /**
29
+ * Payment gateway identifier
30
+ * @type {string}
31
+ * @memberof InvoiceTransaction
32
+ */
33
+ gateway?: string;
34
+ /**
35
+ * Transaction date (ISO 8601 or upstream date string)
36
+ * @type {string}
37
+ * @memberof InvoiceTransaction
38
+ */
39
+ date?: string;
40
+ /**
41
+ * Transaction description
42
+ * @type {string}
43
+ * @memberof InvoiceTransaction
44
+ */
45
+ description?: string;
46
+ /**
47
+ * Amount received as a decimal string
48
+ * @type {string}
49
+ * @memberof InvoiceTransaction
50
+ */
51
+ amountIn?: string;
52
+ /**
53
+ * Gateway fees as a decimal string
54
+ * @type {string}
55
+ * @memberof InvoiceTransaction
56
+ */
57
+ fees?: string;
58
+ /**
59
+ * Amount paid out (e.g. refund) as a decimal string
60
+ * @type {string}
61
+ * @memberof InvoiceTransaction
62
+ */
63
+ amountOut?: string;
64
+ /**
65
+ * Gateway transaction reference
66
+ * @type {string}
67
+ * @memberof InvoiceTransaction
68
+ */
69
+ transId?: string;
70
+ }
71
+
72
+ /**
73
+ * Check if a given object implements the InvoiceTransaction interface.
74
+ */
75
+ export function instanceOfInvoiceTransaction(value: object): value is InvoiceTransaction {
76
+ if (!('id' in value) || value['id'] === undefined) return false;
77
+ return true;
78
+ }
79
+
80
+ export function InvoiceTransactionFromJSON(json: any): InvoiceTransaction {
81
+ return InvoiceTransactionFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function InvoiceTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): InvoiceTransaction {
85
+ if (json == null) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'id': json['id'],
91
+ 'gateway': json['gateway'] == null ? undefined : json['gateway'],
92
+ 'date': json['date'] == null ? undefined : json['date'],
93
+ 'description': json['description'] == null ? undefined : json['description'],
94
+ 'amountIn': json['amount_in'] == null ? undefined : json['amount_in'],
95
+ 'fees': json['fees'] == null ? undefined : json['fees'],
96
+ 'amountOut': json['amount_out'] == null ? undefined : json['amount_out'],
97
+ 'transId': json['trans_id'] == null ? undefined : json['trans_id'],
98
+ };
99
+ }
100
+
101
+ export function InvoiceTransactionToJSON(json: any): InvoiceTransaction {
102
+ return InvoiceTransactionToJSONTyped(json, false);
103
+ }
104
+
105
+ export function InvoiceTransactionToJSONTyped(value?: InvoiceTransaction | null, ignoreDiscriminator: boolean = false): any {
106
+ if (value == null) {
107
+ return value;
108
+ }
109
+
110
+ return {
111
+
112
+ 'id': value['id'],
113
+ 'gateway': value['gateway'],
114
+ 'date': value['date'],
115
+ 'description': value['description'],
116
+ 'amount_in': value['amountIn'],
117
+ 'fees': value['fees'],
118
+ 'amount_out': value['amountOut'],
119
+ 'trans_id': value['transId'],
120
+ };
121
+ }
122
+
@@ -0,0 +1,92 @@
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
+ import type { ListInvoicesResponseData } from './ListInvoicesResponseData.js';
17
+ import {
18
+ ListInvoicesResponseDataFromJSON,
19
+ ListInvoicesResponseDataFromJSONTyped,
20
+ ListInvoicesResponseDataToJSON,
21
+ ListInvoicesResponseDataToJSONTyped,
22
+ } from './ListInvoicesResponseData.js';
23
+ import type { OperationStatus } from './OperationStatus.js';
24
+ import {
25
+ OperationStatusFromJSON,
26
+ OperationStatusFromJSONTyped,
27
+ OperationStatusToJSON,
28
+ OperationStatusToJSONTyped,
29
+ } from './OperationStatus.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface ListInvoicesResponseContent
35
+ */
36
+ export interface ListInvoicesResponseContent {
37
+ /**
38
+ *
39
+ * @type {OperationStatus}
40
+ * @memberof ListInvoicesResponseContent
41
+ */
42
+ status: OperationStatus;
43
+ /**
44
+ *
45
+ * @type {ListInvoicesResponseData}
46
+ * @memberof ListInvoicesResponseContent
47
+ */
48
+ data: ListInvoicesResponseData;
49
+ }
50
+
51
+
52
+
53
+ /**
54
+ * Check if a given object implements the ListInvoicesResponseContent interface.
55
+ */
56
+ export function instanceOfListInvoicesResponseContent(value: object): value is ListInvoicesResponseContent {
57
+ if (!('status' in value) || value['status'] === undefined) return false;
58
+ if (!('data' in value) || value['data'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function ListInvoicesResponseContentFromJSON(json: any): ListInvoicesResponseContent {
63
+ return ListInvoicesResponseContentFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function ListInvoicesResponseContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseContent {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'status': OperationStatusFromJSON(json['status']),
73
+ 'data': ListInvoicesResponseDataFromJSON(json['data']),
74
+ };
75
+ }
76
+
77
+ export function ListInvoicesResponseContentToJSON(json: any): ListInvoicesResponseContent {
78
+ return ListInvoicesResponseContentToJSONTyped(json, false);
79
+ }
80
+
81
+ export function ListInvoicesResponseContentToJSONTyped(value?: ListInvoicesResponseContent | null, ignoreDiscriminator: boolean = false): any {
82
+ if (value == null) {
83
+ return value;
84
+ }
85
+
86
+ return {
87
+
88
+ 'status': OperationStatusToJSON(value['status']),
89
+ 'data': ListInvoicesResponseDataToJSON(value['data']),
90
+ };
91
+ }
92
+
@@ -0,0 +1,83 @@
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
+ import type { InvoiceSummary } from './InvoiceSummary.js';
17
+ import {
18
+ InvoiceSummaryFromJSON,
19
+ InvoiceSummaryFromJSONTyped,
20
+ InvoiceSummaryToJSON,
21
+ InvoiceSummaryToJSONTyped,
22
+ } from './InvoiceSummary.js';
23
+
24
+ /**
25
+ * Top-level data payload for the ListInvoices response
26
+ * @export
27
+ * @interface ListInvoicesResponseData
28
+ */
29
+ export interface ListInvoicesResponseData {
30
+ /**
31
+ * List of invoices for the authenticated user
32
+ * @type {Array<InvoiceSummary>}
33
+ * @memberof ListInvoicesResponseData
34
+ */
35
+ invoices: Array<InvoiceSummary>;
36
+ /**
37
+ * Total number of invoices returned
38
+ * @type {number}
39
+ * @memberof ListInvoicesResponseData
40
+ */
41
+ totalCount: number;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the ListInvoicesResponseData interface.
46
+ */
47
+ export function instanceOfListInvoicesResponseData(value: object): value is ListInvoicesResponseData {
48
+ if (!('invoices' in value) || value['invoices'] === undefined) return false;
49
+ if (!('totalCount' in value) || value['totalCount'] === undefined) return false;
50
+ return true;
51
+ }
52
+
53
+ export function ListInvoicesResponseDataFromJSON(json: any): ListInvoicesResponseData {
54
+ return ListInvoicesResponseDataFromJSONTyped(json, false);
55
+ }
56
+
57
+ export function ListInvoicesResponseDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListInvoicesResponseData {
58
+ if (json == null) {
59
+ return json;
60
+ }
61
+ return {
62
+
63
+ 'invoices': ((json['invoices'] as Array<any>).map(InvoiceSummaryFromJSON)),
64
+ 'totalCount': json['total_count'],
65
+ };
66
+ }
67
+
68
+ export function ListInvoicesResponseDataToJSON(json: any): ListInvoicesResponseData {
69
+ return ListInvoicesResponseDataToJSONTyped(json, false);
70
+ }
71
+
72
+ export function ListInvoicesResponseDataToJSONTyped(value?: ListInvoicesResponseData | null, ignoreDiscriminator: boolean = false): any {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+
77
+ return {
78
+
79
+ 'invoices': ((value['invoices'] as Array<any>).map(InvoiceSummaryToJSON)),
80
+ 'total_count': value['totalCount'],
81
+ };
82
+ }
83
+
@@ -24,14 +24,31 @@ export interface NoVncConsoleDetails {
24
24
  * @type {string}
25
25
  * @memberof NoVncConsoleDetails
26
26
  */
27
- novncRedirectUrl: string;
27
+ novncRedirectUrl?: string;
28
+ /**
29
+ * Console connection mode
30
+ * @type {string}
31
+ * @memberof NoVncConsoleDetails
32
+ */
33
+ mode?: string;
34
+ /**
35
+ * WebSocket URL for proxied console access
36
+ * @type {string}
37
+ * @memberof NoVncConsoleDetails
38
+ */
39
+ websocketUrl?: string;
40
+ /**
41
+ * Password for proxied console access
42
+ * @type {string}
43
+ * @memberof NoVncConsoleDetails
44
+ */
45
+ password?: string;
28
46
  }
29
47
 
30
48
  /**
31
49
  * Check if a given object implements the NoVncConsoleDetails interface.
32
50
  */
33
51
  export function instanceOfNoVncConsoleDetails(value: object): value is NoVncConsoleDetails {
34
- if (!('novncRedirectUrl' in value) || value['novncRedirectUrl'] === undefined) return false;
35
52
  return true;
36
53
  }
37
54
 
@@ -45,7 +62,10 @@ export function NoVncConsoleDetailsFromJSONTyped(json: any, ignoreDiscriminator:
45
62
  }
46
63
  return {
47
64
 
48
- 'novncRedirectUrl': json['novnc_redirect_url'],
65
+ 'novncRedirectUrl': json['novnc_redirect_url'] == null ? undefined : json['novnc_redirect_url'],
66
+ 'mode': json['mode'] == null ? undefined : json['mode'],
67
+ 'websocketUrl': json['websocket_url'] == null ? undefined : json['websocket_url'],
68
+ 'password': json['password'] == null ? undefined : json['password'],
49
69
  };
50
70
  }
51
71
 
@@ -61,6 +81,9 @@ export function NoVncConsoleDetailsToJSONTyped(value?: NoVncConsoleDetails | nul
61
81
  return {
62
82
 
63
83
  'novnc_redirect_url': value['novncRedirectUrl'],
84
+ 'mode': value['mode'],
85
+ 'websocket_url': value['websocketUrl'],
86
+ 'password': value['password'],
64
87
  };
65
88
  }
66
89
 
@@ -0,0 +1,93 @@
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
+ * Encryption metadata for an RSA-OAEP encrypted password
18
+ * @export
19
+ * @interface PasswordEncryptionInfo
20
+ */
21
+ export interface PasswordEncryptionInfo {
22
+ /**
23
+ * Asymmetric encryption algorithm. Always "RSA-OAEP".
24
+ * @type {string}
25
+ * @memberof PasswordEncryptionInfo
26
+ */
27
+ algorithm: string;
28
+ /**
29
+ * OAEP hash / MGF1 hash function. Always "SHA-256".
30
+ * @type {string}
31
+ * @memberof PasswordEncryptionInfo
32
+ */
33
+ hash: string;
34
+ /**
35
+ * RSA modulus size in bits. Always 4096.
36
+ * @type {number}
37
+ * @memberof PasswordEncryptionInfo
38
+ */
39
+ keySize: number;
40
+ /**
41
+ * Encoding of the password ciphertext field. Always "base64" (standard alphabet, not URL-safe).
42
+ * @type {string}
43
+ * @memberof PasswordEncryptionInfo
44
+ */
45
+ encoding: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the PasswordEncryptionInfo interface.
50
+ */
51
+ export function instanceOfPasswordEncryptionInfo(value: object): value is PasswordEncryptionInfo {
52
+ if (!('algorithm' in value) || value['algorithm'] === undefined) return false;
53
+ if (!('hash' in value) || value['hash'] === undefined) return false;
54
+ if (!('keySize' in value) || value['keySize'] === undefined) return false;
55
+ if (!('encoding' in value) || value['encoding'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function PasswordEncryptionInfoFromJSON(json: any): PasswordEncryptionInfo {
60
+ return PasswordEncryptionInfoFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function PasswordEncryptionInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PasswordEncryptionInfo {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'algorithm': json['algorithm'],
70
+ 'hash': json['hash'],
71
+ 'keySize': json['keySize'],
72
+ 'encoding': json['encoding'],
73
+ };
74
+ }
75
+
76
+ export function PasswordEncryptionInfoToJSON(json: any): PasswordEncryptionInfo {
77
+ return PasswordEncryptionInfoToJSONTyped(json, false);
78
+ }
79
+
80
+ export function PasswordEncryptionInfoToJSONTyped(value?: PasswordEncryptionInfo | null, ignoreDiscriminator: boolean = false): any {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+
85
+ return {
86
+
87
+ 'algorithm': value['algorithm'],
88
+ 'hash': value['hash'],
89
+ 'keySize': value['keySize'],
90
+ 'encoding': value['encoding'],
91
+ };
92
+ }
93
+