ch-admin-api-client-typescript 5.4.5 → 5.4.7

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 (145) hide show
  1. package/lib/api/deals-api.d.ts +0 -303
  2. package/lib/api/deals-api.d.ts.map +1 -1
  3. package/lib/api/deals-api.js +0 -424
  4. package/lib/api/survey-forms-api.d.ts +12 -3
  5. package/lib/api/survey-forms-api.d.ts.map +1 -1
  6. package/lib/api/survey-forms-api.js +12 -6
  7. package/lib/api/vonage-accounts-api.d.ts +220 -129
  8. package/lib/api/vonage-accounts-api.d.ts.map +1 -1
  9. package/lib/api/vonage-accounts-api.js +309 -178
  10. package/lib/api/vonage-applications-api.d.ts +12 -4
  11. package/lib/api/vonage-applications-api.d.ts.map +1 -1
  12. package/lib/api/vonage-applications-api.js +12 -4
  13. package/lib/api/vonage-numbers-api.d.ts +8 -4
  14. package/lib/api/vonage-numbers-api.d.ts.map +1 -1
  15. package/lib/api/vonage-numbers-api.js +8 -4
  16. package/lib/api/vonage-users-api.d.ts +95 -5
  17. package/lib/api/vonage-users-api.d.ts.map +1 -1
  18. package/lib/api/vonage-users-api.js +120 -7
  19. package/lib/models/appointment-type.d.ts +0 -1
  20. package/lib/models/appointment-type.d.ts.map +1 -1
  21. package/lib/models/appointment-type.js +0 -1
  22. package/lib/models/create-deal-command.d.ts +0 -20
  23. package/lib/models/create-deal-command.d.ts.map +1 -1
  24. package/lib/models/create-doctor-affiliation-command.d.ts +0 -13
  25. package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
  26. package/lib/models/create-hospital-command.d.ts +3 -9
  27. package/lib/models/create-hospital-command.d.ts.map +1 -1
  28. package/lib/models/deal-item-model.d.ts +0 -13
  29. package/lib/models/deal-item-model.d.ts.map +1 -1
  30. package/lib/models/deal-model.d.ts +0 -13
  31. package/lib/models/deal-model.d.ts.map +1 -1
  32. package/lib/models/doctor-affiliation-item-model.d.ts +6 -19
  33. package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
  34. package/lib/models/doctor-affiliation-model.d.ts +6 -19
  35. package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
  36. package/lib/models/hospital-domain-input-model.d.ts +50 -0
  37. package/lib/models/hospital-domain-input-model.d.ts.map +1 -0
  38. package/lib/models/hospital-domain-model.d.ts +50 -0
  39. package/lib/models/hospital-domain-model.d.ts.map +1 -0
  40. package/lib/models/hospital-feature-detail-input-model.d.ts +49 -0
  41. package/lib/models/hospital-feature-detail-input-model.d.ts.map +1 -0
  42. package/lib/models/hospital-feature-detail-model.d.ts +56 -0
  43. package/lib/models/hospital-feature-detail-model.d.ts.map +1 -0
  44. package/lib/models/hospital-feature-input-model.d.ts +32 -0
  45. package/lib/models/hospital-feature-input-model.d.ts.map +1 -0
  46. package/lib/models/{feature-model.d.ts → hospital-feature-model.d.ts} +10 -15
  47. package/lib/models/hospital-feature-model.d.ts.map +1 -0
  48. package/lib/models/hospital-item-model.d.ts +28 -4
  49. package/lib/models/hospital-item-model.d.ts.map +1 -1
  50. package/lib/models/hospital-model.d.ts +28 -4
  51. package/lib/models/hospital-model.d.ts.map +1 -1
  52. package/lib/models/index.d.ts +12 -8
  53. package/lib/models/index.d.ts.map +1 -1
  54. package/lib/models/index.js +12 -8
  55. package/lib/models/links.d.ts +19 -9
  56. package/lib/models/links.d.ts.map +1 -1
  57. package/lib/models/{get-users-result-embedded.d.ts → list-users-result-embedded.d.ts} +4 -4
  58. package/lib/models/list-users-result-embedded.d.ts.map +1 -0
  59. package/lib/models/{get-users-result.d.ts → list-users-result.d.ts} +10 -10
  60. package/lib/models/list-users-result.d.ts.map +1 -0
  61. package/lib/models/notification-code.d.ts +2 -0
  62. package/lib/models/notification-code.d.ts.map +1 -1
  63. package/lib/models/notification-code.js +2 -0
  64. package/lib/models/survey-form-model.d.ts +6 -0
  65. package/lib/models/survey-form-model.d.ts.map +1 -1
  66. package/lib/models/survey-form-simple-mapping-model.d.ts +39 -0
  67. package/lib/models/survey-form-simple-mapping-model.d.ts.map +1 -0
  68. package/lib/models/survey-form-simple-mapping-model.js +15 -0
  69. package/lib/models/transfer-number-command.d.ts +43 -0
  70. package/lib/models/transfer-number-command.d.ts.map +1 -0
  71. package/lib/models/transfer-number-command.js +15 -0
  72. package/lib/models/transfer-number-result.d.ts +49 -0
  73. package/lib/models/transfer-number-result.d.ts.map +1 -0
  74. package/lib/models/transfer-number-result.js +15 -0
  75. package/lib/models/translation-simple-model.d.ts +55 -0
  76. package/lib/models/translation-simple-model.d.ts.map +1 -0
  77. package/lib/models/translation-simple-model.js +15 -0
  78. package/lib/models/update-deal-command.d.ts +0 -20
  79. package/lib/models/update-deal-command.d.ts.map +1 -1
  80. package/lib/models/update-doctor-affiliation-command.d.ts +0 -13
  81. package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
  82. package/lib/models/update-hospital-command.d.ts +3 -9
  83. package/lib/models/update-hospital-command.d.ts.map +1 -1
  84. package/package.json +1 -1
  85. package/src/.openapi-generator/FILES +12 -8
  86. package/src/api/deals-api.ts +0 -532
  87. package/src/api/survey-forms-api.ts +20 -6
  88. package/src/api/vonage-accounts-api.ts +354 -227
  89. package/src/api/vonage-applications-api.ts +12 -4
  90. package/src/api/vonage-numbers-api.ts +8 -4
  91. package/src/api/vonage-users-api.ts +153 -8
  92. package/src/models/appointment-type.ts +0 -1
  93. package/src/models/create-deal-command.ts +0 -24
  94. package/src/models/create-doctor-affiliation-command.ts +0 -15
  95. package/src/models/create-hospital-command.ts +4 -10
  96. package/src/models/deal-item-model.ts +0 -15
  97. package/src/models/deal-model.ts +0 -15
  98. package/src/models/doctor-affiliation-item-model.ts +6 -21
  99. package/src/models/doctor-affiliation-model.ts +6 -21
  100. package/src/models/hospital-domain-input-model.ts +57 -0
  101. package/src/models/hospital-domain-model.ts +57 -0
  102. package/src/models/hospital-feature-detail-input-model.ts +54 -0
  103. package/src/models/hospital-feature-detail-model.ts +63 -0
  104. package/src/models/hospital-feature-input-model.ts +39 -0
  105. package/src/models/{save-deal-appointment-timetable-overrides-command.ts → hospital-feature-model.ts} +12 -6
  106. package/src/models/hospital-item-model.ts +30 -6
  107. package/src/models/hospital-model.ts +30 -6
  108. package/src/models/index.ts +12 -8
  109. package/src/models/links.ts +19 -13
  110. package/src/models/{get-users-result-embedded.ts → list-users-result-embedded.ts} +3 -3
  111. package/src/models/{get-users-result.ts → list-users-result.ts} +10 -10
  112. package/src/models/notification-code.ts +2 -0
  113. package/src/models/survey-form-model.ts +6 -0
  114. package/src/models/survey-form-simple-mapping-model.ts +48 -0
  115. package/src/models/{feature-model.ts → transfer-number-command.ts} +17 -11
  116. package/src/models/transfer-number-result.ts +54 -0
  117. package/src/models/translation-simple-model.ts +60 -0
  118. package/src/models/update-deal-command.ts +0 -24
  119. package/src/models/update-doctor-affiliation-command.ts +0 -15
  120. package/src/models/update-hospital-command.ts +4 -10
  121. package/lib/models/batch-deal-appointment-timetables-command.d.ts +0 -39
  122. package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +0 -1
  123. package/lib/models/feature-model.d.ts.map +0 -1
  124. package/lib/models/first.d.ts +0 -25
  125. package/lib/models/first.d.ts.map +0 -1
  126. package/lib/models/get-users-result-embedded.d.ts.map +0 -1
  127. package/lib/models/get-users-result.d.ts.map +0 -1
  128. package/lib/models/last.d.ts +0 -25
  129. package/lib/models/last.d.ts.map +0 -1
  130. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +0 -26
  131. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +0 -1
  132. package/lib/models/self.d.ts +0 -25
  133. package/lib/models/self.d.ts.map +0 -1
  134. package/src/models/batch-deal-appointment-timetables-command.ts +0 -48
  135. package/src/models/first.ts +0 -30
  136. package/src/models/last.ts +0 -30
  137. package/src/models/self.ts +0 -30
  138. /package/lib/models/{batch-deal-appointment-timetables-command.js → hospital-domain-input-model.js} +0 -0
  139. /package/lib/models/{feature-model.js → hospital-domain-model.js} +0 -0
  140. /package/lib/models/{first.js → hospital-feature-detail-input-model.js} +0 -0
  141. /package/lib/models/{get-users-result-embedded.js → hospital-feature-detail-model.js} +0 -0
  142. /package/lib/models/{get-users-result.js → hospital-feature-input-model.js} +0 -0
  143. /package/lib/models/{last.js → hospital-feature-model.js} +0 -0
  144. /package/lib/models/{save-deal-appointment-timetable-overrides-command.js → list-users-result-embedded.js} +0 -0
  145. /package/lib/models/{self.js → list-users-result.js} +0 -0
@@ -23,6 +23,8 @@ import { SecretsRequestResult } from '../models';
23
23
  import { SubAccount } from '../models';
24
24
  import { TransferBalanceCommand } from '../models';
25
25
  import { TransferBalanceResult } from '../models';
26
+ import { TransferNumberCommand } from '../models';
27
+ import { TransferNumberResult } from '../models';
26
28
  import { UpdateAccountCommand } from '../models';
27
29
  /**
28
30
  * VonageAccountsApi - axios parameter creator
@@ -31,93 +33,113 @@ import { UpdateAccountCommand } from '../models';
31
33
  export declare const VonageAccountsApiAxiosParamCreator: (configuration?: Configuration) => {
32
34
  /**
33
35
  *
36
+ * @summary Retrieve the balance of the account.
34
37
  * @param {*} [options] Override http request option.
35
38
  * @throws {RequiredError}
36
39
  */
37
40
  apiV1VonageaccountsBalanceGet: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
38
41
  /**
39
42
  *
40
- * @param {TransferBalanceCommand} [transferBalanceCommand]
43
+ * @summary Retrieve the balanceTransfer history of the account.
44
+ * @param {string} [apiKey]
45
+ * @param {Date} [startDate]
46
+ * @param {Date} [endDate]
41
47
  * @param {*} [options] Override http request option.
42
48
  * @throws {RequiredError}
43
49
  */
44
- apiV1VonageaccountsBalanceTransferPost: (transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
+ apiV1VonageaccountsBalancetransfersGet: (apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
51
  /**
46
52
  *
53
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
47
54
  * @param {string} [apiKey]
48
- * @param {Date} [startDate]
49
- * @param {Date} [endDate]
50
55
  * @param {*} [options] Override http request option.
51
56
  * @throws {RequiredError}
52
57
  */
53
- apiV1VonageaccountsBalancetransfersGet: (apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
58
+ apiV1VonageaccountsSecretsGet: (apiKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
59
  /**
55
60
  *
61
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
62
+ * @param {CreateSecretCommand} [createSecretCommand]
56
63
  * @param {*} [options] Override http request option.
57
64
  * @throws {RequiredError}
58
65
  */
59
- apiV1VonageaccountsGet: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ apiV1VonageaccountsSecretsPost: (createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
67
  /**
61
68
  *
62
- * @param {CreateSubAccountCommand} [createSubAccountCommand]
69
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
70
+ * @param {string} secretId
71
+ * @param {string} [apiKey]
63
72
  * @param {*} [options] Override http request option.
64
73
  * @throws {RequiredError}
65
74
  */
66
- apiV1VonageaccountsPost: (createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
+ apiV1VonageaccountsSecretsSecretIdDelete: (secretId: string, apiKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
76
  /**
68
77
  *
78
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
79
+ * @param {string} secretId
69
80
  * @param {string} [apiKey]
70
81
  * @param {*} [options] Override http request option.
71
82
  * @throws {RequiredError}
72
83
  */
73
- apiV1VonageaccountsSecretsGet: (apiKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
+ apiV1VonageaccountsSecretsSecretIdGet: (secretId: string, apiKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
85
  /**
75
86
  *
76
- * @param {CreateSecretCommand} [createSecretCommand]
87
+ * @summary Only main account can retrieve sub accounts.
77
88
  * @param {*} [options] Override http request option.
78
89
  * @throws {RequiredError}
79
90
  */
80
- apiV1VonageaccountsSecretsPost: (createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
91
+ apiV1VonageaccountsSubaccountsGet: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
81
92
  /**
82
93
  *
83
- * @param {string} secretId
84
- * @param {string} [apiKey]
94
+ * @summary Create sub account. Only main account can create sub account.
95
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
85
96
  * @param {*} [options] Override http request option.
86
97
  * @throws {RequiredError}
87
98
  */
88
- apiV1VonageaccountsSecretsSecretIdDelete: (secretId: string, apiKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
99
+ apiV1VonageaccountsSubaccountsPost: (createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
89
100
  /**
90
101
  *
91
- * @param {string} secretId
92
- * @param {string} [secretId2]
93
- * @param {string} [apiKey]
102
+ * @summary Only main account can suspend sub account.
103
+ * @param {string} subAccountKey
94
104
  * @param {*} [options] Override http request option.
95
105
  * @throws {RequiredError}
96
106
  */
97
- apiV1VonageaccountsSecretsSecretIdGet: (secretId: string, secretId2?: string, apiKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
107
+ apiV1VonageaccountsSubaccountsSubAccountKeyDelete: (subAccountKey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
98
108
  /**
99
109
  *
110
+ * @summary Only main account can retrieve sub account.
100
111
  * @param {string} subAccountKey
101
112
  * @param {*} [options] Override http request option.
102
113
  * @throws {RequiredError}
103
114
  */
104
- apiV1VonageaccountsSubAccountKeyDelete: (subAccountKey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
115
+ apiV1VonageaccountsSubaccountsSubAccountKeyGet: (subAccountKey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
105
116
  /**
106
117
  *
118
+ * @summary Only main account can reactivate sub account.
107
119
  * @param {string} subAccountKey
108
120
  * @param {*} [options] Override http request option.
109
121
  * @throws {RequiredError}
110
122
  */
111
- apiV1VonageaccountsSubAccountKeyGet: (subAccountKey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
123
+ apiV1VonageaccountsSubaccountsSubAccountKeyPut: (subAccountKey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
112
124
  /**
113
125
  *
114
- * @param {string} subAccountKey
126
+ * @summary Transfer balance between accounts.
127
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ apiV1VonageaccountsTransferbalancePost: (transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
132
+ /**
133
+ *
134
+ * @summary Transfer number from main account to subAccount.
135
+ * @param {TransferNumberCommand} [transferNumberCommand]
115
136
  * @param {*} [options] Override http request option.
116
137
  * @throws {RequiredError}
117
138
  */
118
- apiV1VonageaccountsSubAccountKeyPut: (subAccountKey: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
139
+ apiV1VonageaccountsTrnasfernumberPost: (transferNumberCommand?: TransferNumberCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
119
140
  /**
120
141
  *
142
+ * @summary Update account settings
121
143
  * @param {UpdateAccountCommand} [updateAccountCommand]
122
144
  * @param {*} [options] Override http request option.
123
145
  * @throws {RequiredError}
@@ -131,93 +153,113 @@ export declare const VonageAccountsApiAxiosParamCreator: (configuration?: Config
131
153
  export declare const VonageAccountsApiFp: (configuration?: Configuration) => {
132
154
  /**
133
155
  *
156
+ * @summary Retrieve the balance of the account.
134
157
  * @param {*} [options] Override http request option.
135
158
  * @throws {RequiredError}
136
159
  */
137
160
  apiV1VonageaccountsBalanceGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Balance>>;
138
161
  /**
139
162
  *
140
- * @param {TransferBalanceCommand} [transferBalanceCommand]
163
+ * @summary Retrieve the balanceTransfer history of the account.
164
+ * @param {string} [apiKey]
165
+ * @param {Date} [startDate]
166
+ * @param {Date} [endDate]
141
167
  * @param {*} [options] Override http request option.
142
168
  * @throws {RequiredError}
143
169
  */
144
- apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferBalanceResult>>;
170
+ apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransferBalanceResult>>;
145
171
  /**
146
172
  *
173
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
147
174
  * @param {string} [apiKey]
148
- * @param {Date} [startDate]
149
- * @param {Date} [endDate]
150
175
  * @param {*} [options] Override http request option.
151
176
  * @throws {RequiredError}
152
177
  */
153
- apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetTransferBalanceResult>>;
178
+ apiV1VonageaccountsSecretsGet(apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretsRequestResult>>;
154
179
  /**
155
180
  *
181
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
182
+ * @param {CreateSecretCommand} [createSecretCommand]
156
183
  * @param {*} [options] Override http request option.
157
184
  * @throws {RequiredError}
158
185
  */
159
- apiV1VonageaccountsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveSubAccountsResult>>;
186
+ apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>>;
160
187
  /**
161
188
  *
162
- * @param {CreateSubAccountCommand} [createSubAccountCommand]
189
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
190
+ * @param {string} secretId
191
+ * @param {string} [apiKey]
163
192
  * @param {*} [options] Override http request option.
164
193
  * @throws {RequiredError}
165
194
  */
166
- apiV1VonageaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
195
+ apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
167
196
  /**
168
197
  *
198
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
199
+ * @param {string} secretId
169
200
  * @param {string} [apiKey]
170
201
  * @param {*} [options] Override http request option.
171
202
  * @throws {RequiredError}
172
203
  */
173
- apiV1VonageaccountsSecretsGet(apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretsRequestResult>>;
204
+ apiV1VonageaccountsSecretsSecretIdGet(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>>;
174
205
  /**
175
206
  *
176
- * @param {CreateSecretCommand} [createSecretCommand]
207
+ * @summary Only main account can retrieve sub accounts.
177
208
  * @param {*} [options] Override http request option.
178
209
  * @throws {RequiredError}
179
210
  */
180
- apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>>;
211
+ apiV1VonageaccountsSubaccountsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RetrieveSubAccountsResult>>;
181
212
  /**
182
213
  *
183
- * @param {string} secretId
184
- * @param {string} [apiKey]
214
+ * @summary Create sub account. Only main account can create sub account.
215
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
185
216
  * @param {*} [options] Override http request option.
186
217
  * @throws {RequiredError}
187
218
  */
188
- apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
219
+ apiV1VonageaccountsSubaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
189
220
  /**
190
221
  *
191
- * @param {string} secretId
192
- * @param {string} [secretId2]
193
- * @param {string} [apiKey]
222
+ * @summary Only main account can suspend sub account.
223
+ * @param {string} subAccountKey
194
224
  * @param {*} [options] Override http request option.
195
225
  * @throws {RequiredError}
196
226
  */
197
- apiV1VonageaccountsSecretsSecretIdGet(secretId: string, secretId2?: string, apiKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>>;
227
+ apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
198
228
  /**
199
229
  *
230
+ * @summary Only main account can retrieve sub account.
200
231
  * @param {string} subAccountKey
201
232
  * @param {*} [options] Override http request option.
202
233
  * @throws {RequiredError}
203
234
  */
204
- apiV1VonageaccountsSubAccountKeyDelete(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
235
+ apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
205
236
  /**
206
237
  *
238
+ * @summary Only main account can reactivate sub account.
207
239
  * @param {string} subAccountKey
208
240
  * @param {*} [options] Override http request option.
209
241
  * @throws {RequiredError}
210
242
  */
211
- apiV1VonageaccountsSubAccountKeyGet(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
243
+ apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
212
244
  /**
213
245
  *
214
- * @param {string} subAccountKey
246
+ * @summary Transfer balance between accounts.
247
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ apiV1VonageaccountsTransferbalancePost(transferBalanceCommand?: TransferBalanceCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferBalanceResult>>;
252
+ /**
253
+ *
254
+ * @summary Transfer number from main account to subAccount.
255
+ * @param {TransferNumberCommand} [transferNumberCommand]
215
256
  * @param {*} [options] Override http request option.
216
257
  * @throws {RequiredError}
217
258
  */
218
- apiV1VonageaccountsSubAccountKeyPut(subAccountKey: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SubAccount>>;
259
+ apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand?: TransferNumberCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransferNumberResult>>;
219
260
  /**
220
261
  *
262
+ * @summary Update account settings
221
263
  * @param {UpdateAccountCommand} [updateAccountCommand]
222
264
  * @param {*} [options] Override http request option.
223
265
  * @throws {RequiredError}
@@ -231,112 +273,119 @@ export declare const VonageAccountsApiFp: (configuration?: Configuration) => {
231
273
  export declare const VonageAccountsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
232
274
  /**
233
275
  *
276
+ * @summary Retrieve the balance of the account.
234
277
  * @param {*} [options] Override http request option.
235
278
  * @throws {RequiredError}
236
279
  */
237
280
  apiV1VonageaccountsBalanceGet(options?: any): AxiosPromise<Balance>;
238
281
  /**
239
282
  *
240
- * @param {TransferBalanceCommand} [transferBalanceCommand]
283
+ * @summary Retrieve the balanceTransfer history of the account.
284
+ * @param {string} [apiKey]
285
+ * @param {Date} [startDate]
286
+ * @param {Date} [endDate]
241
287
  * @param {*} [options] Override http request option.
242
288
  * @throws {RequiredError}
243
289
  */
244
- apiV1VonageaccountsBalanceTransferPost(transferBalanceCommand?: TransferBalanceCommand, options?: any): AxiosPromise<TransferBalanceResult>;
290
+ apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: any): AxiosPromise<GetTransferBalanceResult>;
245
291
  /**
246
292
  *
293
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
247
294
  * @param {string} [apiKey]
248
- * @param {Date} [startDate]
249
- * @param {Date} [endDate]
250
295
  * @param {*} [options] Override http request option.
251
296
  * @throws {RequiredError}
252
297
  */
253
- apiV1VonageaccountsBalancetransfersGet(apiKey?: string, startDate?: Date, endDate?: Date, options?: any): AxiosPromise<GetTransferBalanceResult>;
298
+ apiV1VonageaccountsSecretsGet(apiKey?: string, options?: any): AxiosPromise<SecretsRequestResult>;
254
299
  /**
255
300
  *
301
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
302
+ * @param {CreateSecretCommand} [createSecretCommand]
256
303
  * @param {*} [options] Override http request option.
257
304
  * @throws {RequiredError}
258
305
  */
259
- apiV1VonageaccountsGet(options?: any): AxiosPromise<RetrieveSubAccountsResult>;
306
+ apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: any): AxiosPromise<Secret>;
260
307
  /**
261
308
  *
262
- * @param {CreateSubAccountCommand} [createSubAccountCommand]
309
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
310
+ * @param {string} secretId
311
+ * @param {string} [apiKey]
263
312
  * @param {*} [options] Override http request option.
264
313
  * @throws {RequiredError}
265
314
  */
266
- apiV1VonageaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: any): AxiosPromise<SubAccount>;
315
+ apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: any): AxiosPromise<boolean>;
267
316
  /**
268
317
  *
318
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
319
+ * @param {string} secretId
269
320
  * @param {string} [apiKey]
270
321
  * @param {*} [options] Override http request option.
271
322
  * @throws {RequiredError}
272
323
  */
273
- apiV1VonageaccountsSecretsGet(apiKey?: string, options?: any): AxiosPromise<SecretsRequestResult>;
324
+ apiV1VonageaccountsSecretsSecretIdGet(secretId: string, apiKey?: string, options?: any): AxiosPromise<Secret>;
274
325
  /**
275
326
  *
276
- * @param {CreateSecretCommand} [createSecretCommand]
327
+ * @summary Only main account can retrieve sub accounts.
277
328
  * @param {*} [options] Override http request option.
278
329
  * @throws {RequiredError}
279
330
  */
280
- apiV1VonageaccountsSecretsPost(createSecretCommand?: CreateSecretCommand, options?: any): AxiosPromise<Secret>;
331
+ apiV1VonageaccountsSubaccountsGet(options?: any): AxiosPromise<RetrieveSubAccountsResult>;
281
332
  /**
282
333
  *
283
- * @param {string} secretId
284
- * @param {string} [apiKey]
334
+ * @summary Create sub account. Only main account can create sub account.
335
+ * @param {CreateSubAccountCommand} [createSubAccountCommand]
285
336
  * @param {*} [options] Override http request option.
286
337
  * @throws {RequiredError}
287
338
  */
288
- apiV1VonageaccountsSecretsSecretIdDelete(secretId: string, apiKey?: string, options?: any): AxiosPromise<boolean>;
339
+ apiV1VonageaccountsSubaccountsPost(createSubAccountCommand?: CreateSubAccountCommand, options?: any): AxiosPromise<SubAccount>;
289
340
  /**
290
341
  *
291
- * @param {string} secretId
292
- * @param {string} [secretId2]
293
- * @param {string} [apiKey]
342
+ * @summary Only main account can suspend sub account.
343
+ * @param {string} subAccountKey
294
344
  * @param {*} [options] Override http request option.
295
345
  * @throws {RequiredError}
296
346
  */
297
- apiV1VonageaccountsSecretsSecretIdGet(secretId: string, secretId2?: string, apiKey?: string, options?: any): AxiosPromise<Secret>;
347
+ apiV1VonageaccountsSubaccountsSubAccountKeyDelete(subAccountKey: string, options?: any): AxiosPromise<SubAccount>;
298
348
  /**
299
349
  *
350
+ * @summary Only main account can retrieve sub account.
300
351
  * @param {string} subAccountKey
301
352
  * @param {*} [options] Override http request option.
302
353
  * @throws {RequiredError}
303
354
  */
304
- apiV1VonageaccountsSubAccountKeyDelete(subAccountKey: string, options?: any): AxiosPromise<SubAccount>;
355
+ apiV1VonageaccountsSubaccountsSubAccountKeyGet(subAccountKey: string, options?: any): AxiosPromise<SubAccount>;
305
356
  /**
306
357
  *
358
+ * @summary Only main account can reactivate sub account.
307
359
  * @param {string} subAccountKey
308
360
  * @param {*} [options] Override http request option.
309
361
  * @throws {RequiredError}
310
362
  */
311
- apiV1VonageaccountsSubAccountKeyGet(subAccountKey: string, options?: any): AxiosPromise<SubAccount>;
363
+ apiV1VonageaccountsSubaccountsSubAccountKeyPut(subAccountKey: string, options?: any): AxiosPromise<SubAccount>;
312
364
  /**
313
365
  *
314
- * @param {string} subAccountKey
366
+ * @summary Transfer balance between accounts.
367
+ * @param {TransferBalanceCommand} [transferBalanceCommand]
315
368
  * @param {*} [options] Override http request option.
316
369
  * @throws {RequiredError}
317
370
  */
318
- apiV1VonageaccountsSubAccountKeyPut(subAccountKey: string, options?: any): AxiosPromise<SubAccount>;
371
+ apiV1VonageaccountsTransferbalancePost(transferBalanceCommand?: TransferBalanceCommand, options?: any): AxiosPromise<TransferBalanceResult>;
319
372
  /**
320
373
  *
321
- * @param {UpdateAccountCommand} [updateAccountCommand]
374
+ * @summary Transfer number from main account to subAccount.
375
+ * @param {TransferNumberCommand} [transferNumberCommand]
322
376
  * @param {*} [options] Override http request option.
323
377
  * @throws {RequiredError}
324
378
  */
325
- apiV1VonageaccountsUpdatePut(updateAccountCommand?: UpdateAccountCommand, options?: any): AxiosPromise<AccountSettingsResult>;
326
- };
327
- /**
328
- * Request parameters for apiV1VonageaccountsBalanceTransferPost operation in VonageAccountsApi.
329
- * @export
330
- * @interface VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest
331
- */
332
- export interface VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest {
379
+ apiV1VonageaccountsTrnasfernumberPost(transferNumberCommand?: TransferNumberCommand, options?: any): AxiosPromise<TransferNumberResult>;
333
380
  /**
334
381
  *
335
- * @type {TransferBalanceCommand}
336
- * @memberof VonageAccountsApiApiV1VonageaccountsBalanceTransferPost
382
+ * @summary Update account settings
383
+ * @param {UpdateAccountCommand} [updateAccountCommand]
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
337
386
  */
338
- readonly transferBalanceCommand?: TransferBalanceCommand;
339
- }
387
+ apiV1VonageaccountsUpdatePut(updateAccountCommand?: UpdateAccountCommand, options?: any): AxiosPromise<AccountSettingsResult>;
388
+ };
340
389
  /**
341
390
  * Request parameters for apiV1VonageaccountsBalancetransfersGet operation in VonageAccountsApi.
342
391
  * @export
@@ -362,19 +411,6 @@ export interface VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest
362
411
  */
363
412
  readonly endDate?: Date;
364
413
  }
365
- /**
366
- * Request parameters for apiV1VonageaccountsPost operation in VonageAccountsApi.
367
- * @export
368
- * @interface VonageAccountsApiApiV1VonageaccountsPostRequest
369
- */
370
- export interface VonageAccountsApiApiV1VonageaccountsPostRequest {
371
- /**
372
- *
373
- * @type {CreateSubAccountCommand}
374
- * @memberof VonageAccountsApiApiV1VonageaccountsPost
375
- */
376
- readonly createSubAccountCommand?: CreateSubAccountCommand;
377
- }
378
414
  /**
379
415
  * Request parameters for apiV1VonageaccountsSecretsGet operation in VonageAccountsApi.
380
416
  * @export
@@ -437,53 +473,86 @@ export interface VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest {
437
473
  * @type {string}
438
474
  * @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
439
475
  */
440
- readonly secretId2?: string;
476
+ readonly apiKey?: string;
477
+ }
478
+ /**
479
+ * Request parameters for apiV1VonageaccountsSubaccountsPost operation in VonageAccountsApi.
480
+ * @export
481
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest
482
+ */
483
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest {
441
484
  /**
442
485
  *
443
- * @type {string}
444
- * @memberof VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGet
486
+ * @type {CreateSubAccountCommand}
487
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsPost
445
488
  */
446
- readonly apiKey?: string;
489
+ readonly createSubAccountCommand?: CreateSubAccountCommand;
447
490
  }
448
491
  /**
449
- * Request parameters for apiV1VonageaccountsSubAccountKeyDelete operation in VonageAccountsApi.
492
+ * Request parameters for apiV1VonageaccountsSubaccountsSubAccountKeyDelete operation in VonageAccountsApi.
450
493
  * @export
451
- * @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest
494
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest
452
495
  */
453
- export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest {
496
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest {
454
497
  /**
455
498
  *
456
499
  * @type {string}
457
- * @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyDelete
500
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDelete
458
501
  */
459
502
  readonly subAccountKey: string;
460
503
  }
461
504
  /**
462
- * Request parameters for apiV1VonageaccountsSubAccountKeyGet operation in VonageAccountsApi.
505
+ * Request parameters for apiV1VonageaccountsSubaccountsSubAccountKeyGet operation in VonageAccountsApi.
463
506
  * @export
464
- * @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest
507
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest
465
508
  */
466
- export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest {
509
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest {
467
510
  /**
468
511
  *
469
512
  * @type {string}
470
- * @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyGet
513
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGet
471
514
  */
472
515
  readonly subAccountKey: string;
473
516
  }
474
517
  /**
475
- * Request parameters for apiV1VonageaccountsSubAccountKeyPut operation in VonageAccountsApi.
518
+ * Request parameters for apiV1VonageaccountsSubaccountsSubAccountKeyPut operation in VonageAccountsApi.
476
519
  * @export
477
- * @interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest
520
+ * @interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest
478
521
  */
479
- export interface VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest {
522
+ export interface VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest {
480
523
  /**
481
524
  *
482
525
  * @type {string}
483
- * @memberof VonageAccountsApiApiV1VonageaccountsSubAccountKeyPut
526
+ * @memberof VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPut
484
527
  */
485
528
  readonly subAccountKey: string;
486
529
  }
530
+ /**
531
+ * Request parameters for apiV1VonageaccountsTransferbalancePost operation in VonageAccountsApi.
532
+ * @export
533
+ * @interface VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest
534
+ */
535
+ export interface VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest {
536
+ /**
537
+ *
538
+ * @type {TransferBalanceCommand}
539
+ * @memberof VonageAccountsApiApiV1VonageaccountsTransferbalancePost
540
+ */
541
+ readonly transferBalanceCommand?: TransferBalanceCommand;
542
+ }
543
+ /**
544
+ * Request parameters for apiV1VonageaccountsTrnasfernumberPost operation in VonageAccountsApi.
545
+ * @export
546
+ * @interface VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest
547
+ */
548
+ export interface VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest {
549
+ /**
550
+ *
551
+ * @type {TransferNumberCommand}
552
+ * @memberof VonageAccountsApiApiV1VonageaccountsTrnasfernumberPost
553
+ */
554
+ readonly transferNumberCommand?: TransferNumberCommand;
555
+ }
487
556
  /**
488
557
  * Request parameters for apiV1VonageaccountsUpdatePut operation in VonageAccountsApi.
489
558
  * @export
@@ -506,6 +575,7 @@ export interface VonageAccountsApiApiV1VonageaccountsUpdatePutRequest {
506
575
  export declare class VonageAccountsApi extends BaseAPI {
507
576
  /**
508
577
  *
578
+ * @summary Retrieve the balance of the account.
509
579
  * @param {*} [options] Override http request option.
510
580
  * @throws {RequiredError}
511
581
  * @memberof VonageAccountsApi
@@ -513,93 +583,114 @@ export declare class VonageAccountsApi extends BaseAPI {
513
583
  apiV1VonageaccountsBalanceGet(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Balance, any>>;
514
584
  /**
515
585
  *
516
- * @param {VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest} requestParameters Request parameters.
586
+ * @summary Retrieve the balanceTransfer history of the account.
587
+ * @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
517
588
  * @param {*} [options] Override http request option.
518
589
  * @throws {RequiredError}
519
590
  * @memberof VonageAccountsApi
520
591
  */
521
- apiV1VonageaccountsBalanceTransferPost(requestParameters?: VonageAccountsApiApiV1VonageaccountsBalanceTransferPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransferBalanceResult, any>>;
592
+ apiV1VonageaccountsBalancetransfersGet(requestParameters?: VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTransferBalanceResult, any>>;
522
593
  /**
523
594
  *
524
- * @param {VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest} requestParameters Request parameters.
595
+ * @summary Retrieve all secrets for account. ApiKey is optional, if not provided, the default ApiKey will be used.
596
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
525
597
  * @param {*} [options] Override http request option.
526
598
  * @throws {RequiredError}
527
599
  * @memberof VonageAccountsApi
528
600
  */
529
- apiV1VonageaccountsBalancetransfersGet(requestParameters?: VonageAccountsApiApiV1VonageaccountsBalancetransfersGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTransferBalanceResult, any>>;
601
+ apiV1VonageaccountsSecretsGet(requestParameters?: VonageAccountsApiApiV1VonageaccountsSecretsGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecretsRequestResult, any>>;
530
602
  /**
531
603
  *
604
+ * @summary Create a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
605
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
532
606
  * @param {*} [options] Override http request option.
533
607
  * @throws {RequiredError}
534
608
  * @memberof VonageAccountsApi
535
609
  */
536
- apiV1VonageaccountsGet(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveSubAccountsResult, any>>;
610
+ apiV1VonageaccountsSecretsPost(requestParameters?: VonageAccountsApiApiV1VonageaccountsSecretsPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Secret, any>>;
537
611
  /**
538
612
  *
539
- * @param {VonageAccountsApiApiV1VonageaccountsPostRequest} requestParameters Request parameters.
613
+ * @summary Revoke a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
614
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
540
615
  * @param {*} [options] Override http request option.
541
616
  * @throws {RequiredError}
542
617
  * @memberof VonageAccountsApi
543
618
  */
544
- apiV1VonageaccountsPost(requestParameters?: VonageAccountsApiApiV1VonageaccountsPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
619
+ apiV1VonageaccountsSecretsSecretIdDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
545
620
  /**
546
621
  *
547
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsGetRequest} requestParameters Request parameters.
622
+ * @summary Retrieve a secret for account. ApiKey is optional, if not provided, the default ApiKey will be used.
623
+ * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
548
624
  * @param {*} [options] Override http request option.
549
625
  * @throws {RequiredError}
550
626
  * @memberof VonageAccountsApi
551
627
  */
552
- apiV1VonageaccountsSecretsGet(requestParameters?: VonageAccountsApiApiV1VonageaccountsSecretsGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SecretsRequestResult, any>>;
628
+ apiV1VonageaccountsSecretsSecretIdGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Secret, any>>;
553
629
  /**
554
630
  *
555
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsPostRequest} requestParameters Request parameters.
631
+ * @summary Only main account can retrieve sub accounts.
556
632
  * @param {*} [options] Override http request option.
557
633
  * @throws {RequiredError}
558
634
  * @memberof VonageAccountsApi
559
635
  */
560
- apiV1VonageaccountsSecretsPost(requestParameters?: VonageAccountsApiApiV1VonageaccountsSecretsPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Secret, any>>;
636
+ apiV1VonageaccountsSubaccountsGet(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RetrieveSubAccountsResult, any>>;
561
637
  /**
562
638
  *
563
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest} requestParameters Request parameters.
639
+ * @summary Create sub account. Only main account can create sub account.
640
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest} requestParameters Request parameters.
564
641
  * @param {*} [options] Override http request option.
565
642
  * @throws {RequiredError}
566
643
  * @memberof VonageAccountsApi
567
644
  */
568
- apiV1VonageaccountsSecretsSecretIdDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdDeleteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
645
+ apiV1VonageaccountsSubaccountsPost(requestParameters?: VonageAccountsApiApiV1VonageaccountsSubaccountsPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
569
646
  /**
570
647
  *
571
- * @param {VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest} requestParameters Request parameters.
648
+ * @summary Only main account can suspend sub account.
649
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
572
650
  * @param {*} [options] Override http request option.
573
651
  * @throws {RequiredError}
574
652
  * @memberof VonageAccountsApi
575
653
  */
576
- apiV1VonageaccountsSecretsSecretIdGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSecretsSecretIdGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<Secret, any>>;
654
+ apiV1VonageaccountsSubaccountsSubAccountKeyDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyDeleteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
655
+ /**
656
+ *
657
+ * @summary Only main account can retrieve sub account.
658
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ * @memberof VonageAccountsApi
662
+ */
663
+ apiV1VonageaccountsSubaccountsSubAccountKeyGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
577
664
  /**
578
665
  *
579
- * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest} requestParameters Request parameters.
666
+ * @summary Only main account can reactivate sub account.
667
+ * @param {VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
580
668
  * @param {*} [options] Override http request option.
581
669
  * @throws {RequiredError}
582
670
  * @memberof VonageAccountsApi
583
671
  */
584
- apiV1VonageaccountsSubAccountKeyDelete(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyDeleteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
672
+ apiV1VonageaccountsSubaccountsSubAccountKeyPut(requestParameters: VonageAccountsApiApiV1VonageaccountsSubaccountsSubAccountKeyPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
585
673
  /**
586
674
  *
587
- * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest} requestParameters Request parameters.
675
+ * @summary Transfer balance between accounts.
676
+ * @param {VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest} requestParameters Request parameters.
588
677
  * @param {*} [options] Override http request option.
589
678
  * @throws {RequiredError}
590
679
  * @memberof VonageAccountsApi
591
680
  */
592
- apiV1VonageaccountsSubAccountKeyGet(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
681
+ apiV1VonageaccountsTransferbalancePost(requestParameters?: VonageAccountsApiApiV1VonageaccountsTransferbalancePostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransferBalanceResult, any>>;
593
682
  /**
594
683
  *
595
- * @param {VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest} requestParameters Request parameters.
684
+ * @summary Transfer number from main account to subAccount.
685
+ * @param {VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest} requestParameters Request parameters.
596
686
  * @param {*} [options] Override http request option.
597
687
  * @throws {RequiredError}
598
688
  * @memberof VonageAccountsApi
599
689
  */
600
- apiV1VonageaccountsSubAccountKeyPut(requestParameters: VonageAccountsApiApiV1VonageaccountsSubAccountKeyPutRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SubAccount, any>>;
690
+ apiV1VonageaccountsTrnasfernumberPost(requestParameters?: VonageAccountsApiApiV1VonageaccountsTrnasfernumberPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<TransferNumberResult, any>>;
601
691
  /**
602
692
  *
693
+ * @summary Update account settings
603
694
  * @param {VonageAccountsApiApiV1VonageaccountsUpdatePutRequest} requestParameters Request parameters.
604
695
  * @param {*} [options] Override http request option.
605
696
  * @throws {RequiredError}