@l7mp/tivadar-ai-api-sdk 0.2.19 → 0.2.21
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.
- package/dist/api-client.d.ts +36 -1
- package/dist/api-client.js +13 -0
- package/dist/apis/AdminSIPApi.d.ts +16 -1
- package/dist/apis/AdminSIPApi.js +43 -0
- package/dist/apis/OrganizationsApi.d.ts +40 -1
- package/dist/apis/OrganizationsApi.js +117 -0
- package/dist/apis/ProfileApi.d.ts +53 -1
- package/dist/apis/ProfileApi.js +181 -0
- package/dist/esm/api-client.d.ts +36 -1
- package/dist/esm/api-client.js +13 -0
- package/dist/esm/apis/AdminSIPApi.d.ts +16 -1
- package/dist/esm/apis/AdminSIPApi.js +44 -1
- package/dist/esm/apis/OrganizationsApi.d.ts +40 -1
- package/dist/esm/apis/OrganizationsApi.js +118 -1
- package/dist/esm/apis/ProfileApi.d.ts +53 -1
- package/dist/esm/apis/ProfileApi.js +182 -1
- package/dist/esm/models/AccountDeletionBlocker.d.ts +44 -0
- package/dist/esm/models/AccountDeletionBlocker.js +51 -0
- package/dist/esm/models/AccountDeletionStatus.d.ts +50 -0
- package/dist/esm/models/AccountDeletionStatus.js +49 -0
- package/dist/esm/models/AdminSipReconcilePostRequest.d.ts +38 -0
- package/dist/esm/models/AdminSipReconcilePostRequest.js +43 -0
- package/dist/esm/models/Organization.d.ts +7 -0
- package/dist/esm/models/Organization.js +3 -0
- package/dist/esm/models/OrganizationDeletionBillingBlock.d.ts +44 -0
- package/dist/esm/models/OrganizationDeletionBillingBlock.js +51 -0
- package/dist/esm/models/OrganizationDeletionStatus.d.ts +56 -0
- package/dist/esm/models/OrganizationDeletionStatus.js +51 -0
- package/dist/esm/models/OrganizationsOrganizationIdDeletionPost409Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrganizationIdDeletionPost409Response.js +44 -0
- package/dist/esm/models/OrganizationsOrganizationIdDeletionPost409ResponseError.d.ts +45 -0
- package/dist/esm/models/OrganizationsOrganizationIdDeletionPost409ResponseError.js +46 -0
- package/dist/esm/models/OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails.js +42 -0
- package/dist/esm/models/Profile.d.ts +69 -0
- package/dist/esm/models/Profile.js +66 -0
- package/dist/esm/models/ProfileDeletionPost409Response.d.ts +39 -0
- package/dist/esm/models/ProfileDeletionPost409Response.js +44 -0
- package/dist/esm/models/ProfileDeletionPost409ResponseError.d.ts +45 -0
- package/dist/esm/models/ProfileDeletionPost409ResponseError.js +46 -0
- package/dist/esm/models/ProfileDeletionPost409ResponseErrorDetails.d.ts +33 -0
- package/dist/esm/models/ProfileDeletionPost409ResponseErrorDetails.js +42 -0
- package/dist/esm/models/ProfileDeletionPostRequest.d.ts +45 -0
- package/dist/esm/models/ProfileDeletionPostRequest.js +51 -0
- package/dist/esm/models/ProfileUpdate.d.ts +44 -0
- package/dist/esm/models/ProfileUpdate.js +45 -0
- package/dist/esm/models/SipReconciliationReport.d.ts +80 -0
- package/dist/esm/models/SipReconciliationReport.js +61 -0
- package/dist/esm/models/SipReconciliationReportDeleted.d.ts +44 -0
- package/dist/esm/models/SipReconciliationReportDeleted.js +45 -0
- package/dist/esm/models/SipReconciliationReportFailedInner.d.ts +53 -0
- package/dist/esm/models/SipReconciliationReportFailedInner.js +53 -0
- package/dist/esm/models/SipReconciliationReportMissingDispatchRulesInner.d.ts +44 -0
- package/dist/esm/models/SipReconciliationReportMissingDispatchRulesInner.js +45 -0
- package/dist/esm/models/SipReconciliationReportMissingTrunksInner.d.ts +44 -0
- package/dist/esm/models/SipReconciliationReportMissingTrunksInner.js +45 -0
- package/dist/esm/models/SipReconciliationReportOrphanDispatchRulesInner.d.ts +44 -0
- package/dist/esm/models/SipReconciliationReportOrphanDispatchRulesInner.js +45 -0
- package/dist/esm/models/SipReconciliationReportOrphanTrunksInner.d.ts +44 -0
- package/dist/esm/models/SipReconciliationReportOrphanTrunksInner.js +45 -0
- package/dist/esm/models/SubscriptionStatus.d.ts +6 -0
- package/dist/esm/models/SubscriptionStatus.js +2 -0
- package/dist/esm/models/index.d.ts +21 -0
- package/dist/esm/models/index.js +21 -0
- package/dist/models/AccountDeletionBlocker.d.ts +44 -0
- package/dist/models/AccountDeletionBlocker.js +58 -0
- package/dist/models/AccountDeletionStatus.d.ts +50 -0
- package/dist/models/AccountDeletionStatus.js +56 -0
- package/dist/models/AdminSipReconcilePostRequest.d.ts +38 -0
- package/dist/models/AdminSipReconcilePostRequest.js +50 -0
- package/dist/models/Organization.d.ts +7 -0
- package/dist/models/Organization.js +3 -0
- package/dist/models/OrganizationDeletionBillingBlock.d.ts +44 -0
- package/dist/models/OrganizationDeletionBillingBlock.js +58 -0
- package/dist/models/OrganizationDeletionStatus.d.ts +56 -0
- package/dist/models/OrganizationDeletionStatus.js +58 -0
- package/dist/models/OrganizationsOrganizationIdDeletionPost409Response.d.ts +39 -0
- package/dist/models/OrganizationsOrganizationIdDeletionPost409Response.js +51 -0
- package/dist/models/OrganizationsOrganizationIdDeletionPost409ResponseError.d.ts +45 -0
- package/dist/models/OrganizationsOrganizationIdDeletionPost409ResponseError.js +53 -0
- package/dist/models/OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails.d.ts +33 -0
- package/dist/models/OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails.js +49 -0
- package/dist/models/Profile.d.ts +69 -0
- package/dist/models/Profile.js +73 -0
- package/dist/models/ProfileDeletionPost409Response.d.ts +39 -0
- package/dist/models/ProfileDeletionPost409Response.js +51 -0
- package/dist/models/ProfileDeletionPost409ResponseError.d.ts +45 -0
- package/dist/models/ProfileDeletionPost409ResponseError.js +53 -0
- package/dist/models/ProfileDeletionPost409ResponseErrorDetails.d.ts +33 -0
- package/dist/models/ProfileDeletionPost409ResponseErrorDetails.js +49 -0
- package/dist/models/ProfileDeletionPostRequest.d.ts +45 -0
- package/dist/models/ProfileDeletionPostRequest.js +59 -0
- package/dist/models/ProfileUpdate.d.ts +44 -0
- package/dist/models/ProfileUpdate.js +52 -0
- package/dist/models/SipReconciliationReport.d.ts +80 -0
- package/dist/models/SipReconciliationReport.js +68 -0
- package/dist/models/SipReconciliationReportDeleted.d.ts +44 -0
- package/dist/models/SipReconciliationReportDeleted.js +52 -0
- package/dist/models/SipReconciliationReportFailedInner.d.ts +53 -0
- package/dist/models/SipReconciliationReportFailedInner.js +61 -0
- package/dist/models/SipReconciliationReportMissingDispatchRulesInner.d.ts +44 -0
- package/dist/models/SipReconciliationReportMissingDispatchRulesInner.js +52 -0
- package/dist/models/SipReconciliationReportMissingTrunksInner.d.ts +44 -0
- package/dist/models/SipReconciliationReportMissingTrunksInner.js +52 -0
- package/dist/models/SipReconciliationReportOrphanDispatchRulesInner.d.ts +44 -0
- package/dist/models/SipReconciliationReportOrphanDispatchRulesInner.js +52 -0
- package/dist/models/SipReconciliationReportOrphanTrunksInner.d.ts +44 -0
- package/dist/models/SipReconciliationReportOrphanTrunksInner.js +52 -0
- package/dist/models/SubscriptionStatus.d.ts +6 -0
- package/dist/models/SubscriptionStatus.js +2 -0
- package/dist/models/index.d.ts +21 -0
- package/dist/models/index.js +21 -0
- package/package.json +1 -1
- package/src/api-client.ts +47 -0
- package/src/apis/AdminSIPApi.ts +62 -0
- package/src/apis/OrganizationsApi.ts +159 -0
- package/src/apis/ProfileApi.ts +234 -0
- package/src/models/AccountDeletionBlocker.ts +84 -0
- package/src/models/AccountDeletionStatus.ts +90 -0
- package/src/models/AdminSipReconcilePostRequest.ts +73 -0
- package/src/models/Organization.ts +16 -0
- package/src/models/OrganizationDeletionBillingBlock.ts +84 -0
- package/src/models/OrganizationDeletionStatus.ts +98 -0
- package/src/models/OrganizationsOrganizationIdDeletionPost409Response.ts +81 -0
- package/src/models/OrganizationsOrganizationIdDeletionPost409ResponseError.ts +89 -0
- package/src/models/OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails.ts +73 -0
- package/src/models/Profile.ts +127 -0
- package/src/models/ProfileDeletionPost409Response.ts +81 -0
- package/src/models/ProfileDeletionPost409ResponseError.ts +89 -0
- package/src/models/ProfileDeletionPost409ResponseErrorDetails.ts +73 -0
- package/src/models/ProfileDeletionPostRequest.ts +84 -0
- package/src/models/ProfileUpdate.ts +81 -0
- package/src/models/SipReconciliationReport.ts +164 -0
- package/src/models/SipReconciliationReportDeleted.ts +81 -0
- package/src/models/SipReconciliationReportFailedInner.ts +93 -0
- package/src/models/SipReconciliationReportMissingDispatchRulesInner.ts +81 -0
- package/src/models/SipReconciliationReportMissingTrunksInner.ts +81 -0
- package/src/models/SipReconciliationReportOrphanDispatchRulesInner.ts +81 -0
- package/src/models/SipReconciliationReportOrphanTrunksInner.ts +81 -0
- package/src/models/SubscriptionStatus.ts +8 -0
- package/src/models/index.ts +21 -0
package/src/apis/ProfileApi.ts
CHANGED
|
@@ -15,10 +15,25 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
AccountDeletionStatus,
|
|
19
|
+
Profile,
|
|
20
|
+
ProfileDeletionPost409Response,
|
|
21
|
+
ProfileDeletionPostRequest,
|
|
22
|
+
ProfileUpdate,
|
|
18
23
|
UserPreferences,
|
|
19
24
|
UserPreferencesUpdate,
|
|
20
25
|
} from '../models/index';
|
|
21
26
|
import {
|
|
27
|
+
AccountDeletionStatusFromJSON,
|
|
28
|
+
AccountDeletionStatusToJSON,
|
|
29
|
+
ProfileFromJSON,
|
|
30
|
+
ProfileToJSON,
|
|
31
|
+
ProfileDeletionPost409ResponseFromJSON,
|
|
32
|
+
ProfileDeletionPost409ResponseToJSON,
|
|
33
|
+
ProfileDeletionPostRequestFromJSON,
|
|
34
|
+
ProfileDeletionPostRequestToJSON,
|
|
35
|
+
ProfileUpdateFromJSON,
|
|
36
|
+
ProfileUpdateToJSON,
|
|
22
37
|
UserPreferencesFromJSON,
|
|
23
38
|
UserPreferencesToJSON,
|
|
24
39
|
UserPreferencesUpdateFromJSON,
|
|
@@ -34,6 +49,14 @@ export interface OrganizationsOrganizationIdProfilePreferencesPutRequest {
|
|
|
34
49
|
userPreferencesUpdate: UserPreferencesUpdate;
|
|
35
50
|
}
|
|
36
51
|
|
|
52
|
+
export interface ProfileDeletionPostOperationRequest {
|
|
53
|
+
profileDeletionPostRequest: ProfileDeletionPostRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface ProfilePatchRequest {
|
|
57
|
+
profileUpdate: ProfileUpdate;
|
|
58
|
+
}
|
|
59
|
+
|
|
37
60
|
/**
|
|
38
61
|
*
|
|
39
62
|
*/
|
|
@@ -139,4 +162,215 @@ export class ProfileApi extends runtime.BaseAPI {
|
|
|
139
162
|
return await response.value();
|
|
140
163
|
}
|
|
141
164
|
|
|
165
|
+
/**
|
|
166
|
+
* Idempotent - succeeds whether or not a deletion was pending.
|
|
167
|
+
* Cancel a pending account deletion
|
|
168
|
+
*/
|
|
169
|
+
async profileDeletionDeleteRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
|
|
170
|
+
const queryParameters: any = {};
|
|
171
|
+
|
|
172
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
173
|
+
|
|
174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
175
|
+
const token = this.configuration.accessToken;
|
|
176
|
+
const tokenString = await token("bearerAuth", []);
|
|
177
|
+
|
|
178
|
+
if (tokenString) {
|
|
179
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
let urlPath = `/profile/deletion`;
|
|
184
|
+
|
|
185
|
+
const response = await this.request({
|
|
186
|
+
path: urlPath,
|
|
187
|
+
method: 'DELETE',
|
|
188
|
+
headers: headerParameters,
|
|
189
|
+
query: queryParameters,
|
|
190
|
+
}, initOverrides);
|
|
191
|
+
|
|
192
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Idempotent - succeeds whether or not a deletion was pending.
|
|
197
|
+
* Cancel a pending account deletion
|
|
198
|
+
*/
|
|
199
|
+
async profileDeletionDelete(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
|
|
200
|
+
const response = await this.profileDeletionDeleteRaw(initOverrides);
|
|
201
|
+
return await response.value();
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Get the status of a pending account deletion
|
|
206
|
+
*/
|
|
207
|
+
async profileDeletionGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AccountDeletionStatus>> {
|
|
208
|
+
const queryParameters: any = {};
|
|
209
|
+
|
|
210
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
211
|
+
|
|
212
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
213
|
+
const token = this.configuration.accessToken;
|
|
214
|
+
const tokenString = await token("bearerAuth", []);
|
|
215
|
+
|
|
216
|
+
if (tokenString) {
|
|
217
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
let urlPath = `/profile/deletion`;
|
|
222
|
+
|
|
223
|
+
const response = await this.request({
|
|
224
|
+
path: urlPath,
|
|
225
|
+
method: 'GET',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
}, initOverrides);
|
|
229
|
+
|
|
230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => AccountDeletionStatusFromJSON(jsonValue));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* Get the status of a pending account deletion
|
|
235
|
+
*/
|
|
236
|
+
async profileDeletionGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountDeletionStatus> {
|
|
237
|
+
const response = await this.profileDeletionGetRaw(initOverrides);
|
|
238
|
+
return await response.value();
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Nothing is erased immediately. The account and every organization the user solely owns are purged after a grace period (15 days by default), and only if the user has not signed in since the request — any authenticated request cancels the deletion.
|
|
243
|
+
* Schedule the authenticated user\'s account for deletion
|
|
244
|
+
*/
|
|
245
|
+
async profileDeletionPostRaw(requestParameters: ProfileDeletionPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
|
|
246
|
+
if (requestParameters['profileDeletionPostRequest'] == null) {
|
|
247
|
+
throw new runtime.RequiredError(
|
|
248
|
+
'profileDeletionPostRequest',
|
|
249
|
+
'Required parameter "profileDeletionPostRequest" was null or undefined when calling profileDeletionPost().'
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
const queryParameters: any = {};
|
|
254
|
+
|
|
255
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
256
|
+
|
|
257
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
258
|
+
|
|
259
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
260
|
+
const token = this.configuration.accessToken;
|
|
261
|
+
const tokenString = await token("bearerAuth", []);
|
|
262
|
+
|
|
263
|
+
if (tokenString) {
|
|
264
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
let urlPath = `/profile/deletion`;
|
|
269
|
+
|
|
270
|
+
const response = await this.request({
|
|
271
|
+
path: urlPath,
|
|
272
|
+
method: 'POST',
|
|
273
|
+
headers: headerParameters,
|
|
274
|
+
query: queryParameters,
|
|
275
|
+
body: ProfileDeletionPostRequestToJSON(requestParameters['profileDeletionPostRequest']),
|
|
276
|
+
}, initOverrides);
|
|
277
|
+
|
|
278
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Nothing is erased immediately. The account and every organization the user solely owns are purged after a grace period (15 days by default), and only if the user has not signed in since the request — any authenticated request cancels the deletion.
|
|
283
|
+
* Schedule the authenticated user\'s account for deletion
|
|
284
|
+
*/
|
|
285
|
+
async profileDeletionPost(requestParameters: ProfileDeletionPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
|
|
286
|
+
const response = await this.profileDeletionPostRaw(requestParameters, initOverrides);
|
|
287
|
+
return await response.value();
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* Get the authenticated user\'s own profile
|
|
292
|
+
*/
|
|
293
|
+
async profileGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
|
|
294
|
+
const queryParameters: any = {};
|
|
295
|
+
|
|
296
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
297
|
+
|
|
298
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
299
|
+
const token = this.configuration.accessToken;
|
|
300
|
+
const tokenString = await token("bearerAuth", []);
|
|
301
|
+
|
|
302
|
+
if (tokenString) {
|
|
303
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
let urlPath = `/profile`;
|
|
308
|
+
|
|
309
|
+
const response = await this.request({
|
|
310
|
+
path: urlPath,
|
|
311
|
+
method: 'GET',
|
|
312
|
+
headers: headerParameters,
|
|
313
|
+
query: queryParameters,
|
|
314
|
+
}, initOverrides);
|
|
315
|
+
|
|
316
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* Get the authenticated user\'s own profile
|
|
321
|
+
*/
|
|
322
|
+
async profileGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
|
|
323
|
+
const response = await this.profileGetRaw(initOverrides);
|
|
324
|
+
return await response.value();
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Only the supplied fields are changed. Email is owned by the identity provider and cannot be set here.
|
|
329
|
+
* Update the authenticated user\'s own profile
|
|
330
|
+
*/
|
|
331
|
+
async profilePatchRaw(requestParameters: ProfilePatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Profile>> {
|
|
332
|
+
if (requestParameters['profileUpdate'] == null) {
|
|
333
|
+
throw new runtime.RequiredError(
|
|
334
|
+
'profileUpdate',
|
|
335
|
+
'Required parameter "profileUpdate" was null or undefined when calling profilePatch().'
|
|
336
|
+
);
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
const queryParameters: any = {};
|
|
340
|
+
|
|
341
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
342
|
+
|
|
343
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
344
|
+
|
|
345
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
346
|
+
const token = this.configuration.accessToken;
|
|
347
|
+
const tokenString = await token("bearerAuth", []);
|
|
348
|
+
|
|
349
|
+
if (tokenString) {
|
|
350
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
let urlPath = `/profile`;
|
|
355
|
+
|
|
356
|
+
const response = await this.request({
|
|
357
|
+
path: urlPath,
|
|
358
|
+
method: 'PATCH',
|
|
359
|
+
headers: headerParameters,
|
|
360
|
+
query: queryParameters,
|
|
361
|
+
body: ProfileUpdateToJSON(requestParameters['profileUpdate']),
|
|
362
|
+
}, initOverrides);
|
|
363
|
+
|
|
364
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => ProfileFromJSON(jsonValue));
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Only the supplied fields are changed. Email is owned by the identity provider and cannot be set here.
|
|
369
|
+
* Update the authenticated user\'s own profile
|
|
370
|
+
*/
|
|
371
|
+
async profilePatch(requestParameters: ProfilePatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Profile> {
|
|
372
|
+
const response = await this.profilePatchRaw(requestParameters, initOverrides);
|
|
373
|
+
return await response.value();
|
|
374
|
+
}
|
|
375
|
+
|
|
142
376
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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';
|
|
16
|
+
/**
|
|
17
|
+
* An organization owned by the user that still has other members, preventing deletion.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AccountDeletionBlocker
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountDeletionBlocker {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AccountDeletionBlocker
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AccountDeletionBlocker
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof AccountDeletionBlocker
|
|
38
|
+
*/
|
|
39
|
+
member_count: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AccountDeletionBlocker interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAccountDeletionBlocker(value: object): value is AccountDeletionBlocker {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
48
|
+
if (!('member_count' in value) || value['member_count'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AccountDeletionBlockerFromJSON(json: any): AccountDeletionBlocker {
|
|
53
|
+
return AccountDeletionBlockerFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AccountDeletionBlockerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDeletionBlocker {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'name': json['name'],
|
|
64
|
+
'member_count': json['member_count'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AccountDeletionBlockerToJSON(json: any): AccountDeletionBlocker {
|
|
69
|
+
return AccountDeletionBlockerToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AccountDeletionBlockerToJSONTyped(value?: AccountDeletionBlocker | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'name': value['name'],
|
|
81
|
+
'member_count': value['member_count'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AccountDeletionStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface AccountDeletionStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AccountDeletionStatus
|
|
26
|
+
*/
|
|
27
|
+
pending: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof AccountDeletionStatus
|
|
32
|
+
*/
|
|
33
|
+
requested_at?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
* When the purge becomes eligible. Signing in before this cancels the deletion.
|
|
36
|
+
* @type {Date}
|
|
37
|
+
* @memberof AccountDeletionStatus
|
|
38
|
+
*/
|
|
39
|
+
scheduled_for?: Date | null;
|
|
40
|
+
/**
|
|
41
|
+
* Whole days left before the account becomes eligible for purging.
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof AccountDeletionStatus
|
|
44
|
+
*/
|
|
45
|
+
days_remaining?: number | null;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the AccountDeletionStatus interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfAccountDeletionStatus(value: object): value is AccountDeletionStatus {
|
|
52
|
+
if (!('pending' in value) || value['pending'] === undefined) return false;
|
|
53
|
+
return true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AccountDeletionStatusFromJSON(json: any): AccountDeletionStatus {
|
|
57
|
+
return AccountDeletionStatusFromJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AccountDeletionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDeletionStatus {
|
|
61
|
+
if (json == null) {
|
|
62
|
+
return json;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
|
|
66
|
+
'pending': json['pending'],
|
|
67
|
+
'requested_at': json['requested_at'] == null ? undefined : (new Date(json['requested_at'])),
|
|
68
|
+
'scheduled_for': json['scheduled_for'] == null ? undefined : (new Date(json['scheduled_for'])),
|
|
69
|
+
'days_remaining': json['days_remaining'] == null ? undefined : json['days_remaining'],
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function AccountDeletionStatusToJSON(json: any): AccountDeletionStatus {
|
|
74
|
+
return AccountDeletionStatusToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AccountDeletionStatusToJSONTyped(value?: AccountDeletionStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'pending': value['pending'],
|
|
85
|
+
'requested_at': value['requested_at'] == null ? value['requested_at'] : value['requested_at'].toISOString(),
|
|
86
|
+
'scheduled_for': value['scheduled_for'] == null ? value['scheduled_for'] : value['scheduled_for'].toISOString(),
|
|
87
|
+
'days_remaining': value['days_remaining'],
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AdminSipReconcilePostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface AdminSipReconcilePostRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Delete the orphaned LiveKit resources instead of only reporting them. Also accepted as `?apply=true`.
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof AdminSipReconcilePostRequest
|
|
26
|
+
*/
|
|
27
|
+
apply?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Override the guard that refuses to apply when the database tracks no trunks at all (the signature of the wrong database).
|
|
30
|
+
* @type {boolean}
|
|
31
|
+
* @memberof AdminSipReconcilePostRequest
|
|
32
|
+
*/
|
|
33
|
+
force?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the AdminSipReconcilePostRequest interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfAdminSipReconcilePostRequest(value: object): value is AdminSipReconcilePostRequest {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AdminSipReconcilePostRequestFromJSON(json: any): AdminSipReconcilePostRequest {
|
|
44
|
+
return AdminSipReconcilePostRequestFromJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AdminSipReconcilePostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminSipReconcilePostRequest {
|
|
48
|
+
if (json == null) {
|
|
49
|
+
return json;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
|
|
53
|
+
'apply': json['apply'] == null ? undefined : json['apply'],
|
|
54
|
+
'force': json['force'] == null ? undefined : json['force'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AdminSipReconcilePostRequestToJSON(json: any): AdminSipReconcilePostRequest {
|
|
59
|
+
return AdminSipReconcilePostRequestToJSONTyped(json, false);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AdminSipReconcilePostRequestToJSONTyped(value?: AdminSipReconcilePostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
63
|
+
if (value == null) {
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
return {
|
|
68
|
+
|
|
69
|
+
'apply': value['apply'],
|
|
70
|
+
'force': value['force'],
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { OrganizationDeletionStatus } from './OrganizationDeletionStatus';
|
|
17
|
+
import {
|
|
18
|
+
OrganizationDeletionStatusFromJSON,
|
|
19
|
+
OrganizationDeletionStatusFromJSONTyped,
|
|
20
|
+
OrganizationDeletionStatusToJSON,
|
|
21
|
+
OrganizationDeletionStatusToJSONTyped,
|
|
22
|
+
} from './OrganizationDeletionStatus';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -49,6 +57,12 @@ export interface Organization {
|
|
|
49
57
|
* @memberof Organization
|
|
50
58
|
*/
|
|
51
59
|
created_at?: Date;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {OrganizationDeletionStatus}
|
|
63
|
+
* @memberof Organization
|
|
64
|
+
*/
|
|
65
|
+
deletion?: OrganizationDeletionStatus;
|
|
52
66
|
}
|
|
53
67
|
|
|
54
68
|
/**
|
|
@@ -74,6 +88,7 @@ export function OrganizationFromJSONTyped(json: any, ignoreDiscriminator: boolea
|
|
|
74
88
|
'owner_user_id': json['owner_user_id'] == null ? undefined : json['owner_user_id'],
|
|
75
89
|
'metadata': json['metadata'] == null ? undefined : json['metadata'],
|
|
76
90
|
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
91
|
+
'deletion': json['deletion'] == null ? undefined : OrganizationDeletionStatusFromJSON(json['deletion']),
|
|
77
92
|
};
|
|
78
93
|
}
|
|
79
94
|
|
|
@@ -93,6 +108,7 @@ export function OrganizationToJSONTyped(value?: Organization | null, ignoreDiscr
|
|
|
93
108
|
'owner_user_id': value['owner_user_id'],
|
|
94
109
|
'metadata': value['metadata'],
|
|
95
110
|
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
111
|
+
'deletion': OrganizationDeletionStatusToJSON(value['deletion']),
|
|
96
112
|
};
|
|
97
113
|
}
|
|
98
114
|
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Tivadar AI Backend API
|
|
5
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0.0
|
|
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';
|
|
16
|
+
/**
|
|
17
|
+
* The still-open billing relationship preventing deletion.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface OrganizationDeletionBillingBlock
|
|
20
|
+
*/
|
|
21
|
+
export interface OrganizationDeletionBillingBlock {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OrganizationDeletionBillingBlock
|
|
26
|
+
*/
|
|
27
|
+
status: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OrganizationDeletionBillingBlock
|
|
32
|
+
*/
|
|
33
|
+
plan_slug: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof OrganizationDeletionBillingBlock
|
|
38
|
+
*/
|
|
39
|
+
cancel_at_period_end: boolean;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the OrganizationDeletionBillingBlock interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfOrganizationDeletionBillingBlock(value: object): value is OrganizationDeletionBillingBlock {
|
|
46
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
47
|
+
if (!('plan_slug' in value) || value['plan_slug'] === undefined) return false;
|
|
48
|
+
if (!('cancel_at_period_end' in value) || value['cancel_at_period_end'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function OrganizationDeletionBillingBlockFromJSON(json: any): OrganizationDeletionBillingBlock {
|
|
53
|
+
return OrganizationDeletionBillingBlockFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function OrganizationDeletionBillingBlockFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationDeletionBillingBlock {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'status': json['status'],
|
|
63
|
+
'plan_slug': json['plan_slug'],
|
|
64
|
+
'cancel_at_period_end': json['cancel_at_period_end'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function OrganizationDeletionBillingBlockToJSON(json: any): OrganizationDeletionBillingBlock {
|
|
69
|
+
return OrganizationDeletionBillingBlockToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function OrganizationDeletionBillingBlockToJSONTyped(value?: OrganizationDeletionBillingBlock | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'status': value['status'],
|
|
80
|
+
'plan_slug': value['plan_slug'],
|
|
81
|
+
'cancel_at_period_end': value['cancel_at_period_end'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|