@l7mp/tivadar-ai-api-sdk 0.2.20 → 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/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/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/index.ts +21 -0
|
@@ -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
|
+
|
|
@@ -0,0 +1,98 @@
|
|
|
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 OrganizationDeletionStatus
|
|
20
|
+
*/
|
|
21
|
+
export interface OrganizationDeletionStatus {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {boolean}
|
|
25
|
+
* @memberof OrganizationDeletionStatus
|
|
26
|
+
*/
|
|
27
|
+
pending: boolean;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {Date}
|
|
31
|
+
* @memberof OrganizationDeletionStatus
|
|
32
|
+
*/
|
|
33
|
+
requested_at?: Date | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof OrganizationDeletionStatus
|
|
38
|
+
*/
|
|
39
|
+
requested_by?: string | null;
|
|
40
|
+
/**
|
|
41
|
+
* When the purge becomes eligible. Must be cancelled manually before then.
|
|
42
|
+
* @type {Date}
|
|
43
|
+
* @memberof OrganizationDeletionStatus
|
|
44
|
+
*/
|
|
45
|
+
scheduled_for?: Date | null;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof OrganizationDeletionStatus
|
|
50
|
+
*/
|
|
51
|
+
days_remaining?: number | null;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Check if a given object implements the OrganizationDeletionStatus interface.
|
|
56
|
+
*/
|
|
57
|
+
export function instanceOfOrganizationDeletionStatus(value: object): value is OrganizationDeletionStatus {
|
|
58
|
+
if (!('pending' in value) || value['pending'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function OrganizationDeletionStatusFromJSON(json: any): OrganizationDeletionStatus {
|
|
63
|
+
return OrganizationDeletionStatusFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function OrganizationDeletionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationDeletionStatus {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'pending': json['pending'],
|
|
73
|
+
'requested_at': json['requested_at'] == null ? undefined : (new Date(json['requested_at'])),
|
|
74
|
+
'requested_by': json['requested_by'] == null ? undefined : json['requested_by'],
|
|
75
|
+
'scheduled_for': json['scheduled_for'] == null ? undefined : (new Date(json['scheduled_for'])),
|
|
76
|
+
'days_remaining': json['days_remaining'] == null ? undefined : json['days_remaining'],
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function OrganizationDeletionStatusToJSON(json: any): OrganizationDeletionStatus {
|
|
81
|
+
return OrganizationDeletionStatusToJSONTyped(json, false);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function OrganizationDeletionStatusToJSONTyped(value?: OrganizationDeletionStatus | null, ignoreDiscriminator: boolean = false): any {
|
|
85
|
+
if (value == null) {
|
|
86
|
+
return value;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'pending': value['pending'],
|
|
92
|
+
'requested_at': value['requested_at'] == null ? value['requested_at'] : value['requested_at'].toISOString(),
|
|
93
|
+
'requested_by': value['requested_by'],
|
|
94
|
+
'scheduled_for': value['scheduled_for'] == null ? value['scheduled_for'] : value['scheduled_for'].toISOString(),
|
|
95
|
+
'days_remaining': value['days_remaining'],
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
import type { OrganizationsOrganizationIdDeletionPost409ResponseError } from './OrganizationsOrganizationIdDeletionPost409ResponseError';
|
|
17
|
+
import {
|
|
18
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorFromJSON,
|
|
19
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorFromJSONTyped,
|
|
20
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorToJSON,
|
|
21
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorToJSONTyped,
|
|
22
|
+
} from './OrganizationsOrganizationIdDeletionPost409ResponseError';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OrganizationsOrganizationIdDeletionPost409Response
|
|
28
|
+
*/
|
|
29
|
+
export interface OrganizationsOrganizationIdDeletionPost409Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof OrganizationsOrganizationIdDeletionPost409Response
|
|
34
|
+
*/
|
|
35
|
+
success?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {OrganizationsOrganizationIdDeletionPost409ResponseError}
|
|
39
|
+
* @memberof OrganizationsOrganizationIdDeletionPost409Response
|
|
40
|
+
*/
|
|
41
|
+
error?: OrganizationsOrganizationIdDeletionPost409ResponseError;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the OrganizationsOrganizationIdDeletionPost409Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfOrganizationsOrganizationIdDeletionPost409Response(value: object): value is OrganizationsOrganizationIdDeletionPost409Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseFromJSON(json: any): OrganizationsOrganizationIdDeletionPost409Response {
|
|
52
|
+
return OrganizationsOrganizationIdDeletionPost409ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdDeletionPost409Response {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'success': json['success'] == null ? undefined : json['success'],
|
|
62
|
+
'error': json['error'] == null ? undefined : OrganizationsOrganizationIdDeletionPost409ResponseErrorFromJSON(json['error']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseToJSON(json: any): OrganizationsOrganizationIdDeletionPost409Response {
|
|
67
|
+
return OrganizationsOrganizationIdDeletionPost409ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseToJSONTyped(value?: OrganizationsOrganizationIdDeletionPost409Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'success': value['success'],
|
|
78
|
+
'error': OrganizationsOrganizationIdDeletionPost409ResponseErrorToJSON(value['error']),
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
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
|
+
import type { OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails } from './OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails';
|
|
17
|
+
import {
|
|
18
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsFromJSON,
|
|
19
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsFromJSONTyped,
|
|
20
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsToJSON,
|
|
21
|
+
OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsToJSONTyped,
|
|
22
|
+
} from './OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OrganizationsOrganizationIdDeletionPost409ResponseError
|
|
28
|
+
*/
|
|
29
|
+
export interface OrganizationsOrganizationIdDeletionPost409ResponseError {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OrganizationsOrganizationIdDeletionPost409ResponseError
|
|
34
|
+
*/
|
|
35
|
+
code?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof OrganizationsOrganizationIdDeletionPost409ResponseError
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails}
|
|
45
|
+
* @memberof OrganizationsOrganizationIdDeletionPost409ResponseError
|
|
46
|
+
*/
|
|
47
|
+
details?: OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the OrganizationsOrganizationIdDeletionPost409ResponseError interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfOrganizationsOrganizationIdDeletionPost409ResponseError(value: object): value is OrganizationsOrganizationIdDeletionPost409ResponseError {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorFromJSON(json: any): OrganizationsOrganizationIdDeletionPost409ResponseError {
|
|
58
|
+
return OrganizationsOrganizationIdDeletionPost409ResponseErrorFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdDeletionPost409ResponseError {
|
|
62
|
+
if (json == null) {
|
|
63
|
+
return json;
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
|
|
67
|
+
'code': json['code'] == null ? undefined : json['code'],
|
|
68
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
69
|
+
'details': json['details'] == null ? undefined : OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsFromJSON(json['details']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorToJSON(json: any): OrganizationsOrganizationIdDeletionPost409ResponseError {
|
|
74
|
+
return OrganizationsOrganizationIdDeletionPost409ResponseErrorToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorToJSONTyped(value?: OrganizationsOrganizationIdDeletionPost409ResponseError | null, ignoreDiscriminator: boolean = false): any {
|
|
78
|
+
if (value == null) {
|
|
79
|
+
return value;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
'code': value['code'],
|
|
85
|
+
'message': value['message'],
|
|
86
|
+
'details': OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsToJSON(value['details']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|