@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
|
@@ -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
|
+
|
|
@@ -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
|
+
import type { OrganizationDeletionBillingBlock } from './OrganizationDeletionBillingBlock';
|
|
17
|
+
import {
|
|
18
|
+
OrganizationDeletionBillingBlockFromJSON,
|
|
19
|
+
OrganizationDeletionBillingBlockFromJSONTyped,
|
|
20
|
+
OrganizationDeletionBillingBlockToJSON,
|
|
21
|
+
OrganizationDeletionBillingBlockToJSONTyped,
|
|
22
|
+
} from './OrganizationDeletionBillingBlock';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails
|
|
28
|
+
*/
|
|
29
|
+
export interface OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {OrganizationDeletionBillingBlock}
|
|
33
|
+
* @memberof OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails
|
|
34
|
+
*/
|
|
35
|
+
subscription?: OrganizationDeletionBillingBlock;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfOrganizationsOrganizationIdDeletionPost409ResponseErrorDetails(value: object): value is OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsFromJSON(json: any): OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails {
|
|
46
|
+
return OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'subscription': json['subscription'] == null ? undefined : OrganizationDeletionBillingBlockFromJSON(json['subscription']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsToJSON(json: any): OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails {
|
|
60
|
+
return OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function OrganizationsOrganizationIdDeletionPost409ResponseErrorDetailsToJSONTyped(value?: OrganizationsOrganizationIdDeletionPost409ResponseErrorDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'subscription': OrganizationDeletionBillingBlockToJSON(value['subscription']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
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 { AccountDeletionStatus } from './AccountDeletionStatus';
|
|
17
|
+
import {
|
|
18
|
+
AccountDeletionStatusFromJSON,
|
|
19
|
+
AccountDeletionStatusFromJSONTyped,
|
|
20
|
+
AccountDeletionStatusToJSON,
|
|
21
|
+
AccountDeletionStatusToJSONTyped,
|
|
22
|
+
} from './AccountDeletionStatus';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface Profile
|
|
28
|
+
*/
|
|
29
|
+
export interface Profile {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Profile
|
|
34
|
+
*/
|
|
35
|
+
id: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Profile
|
|
40
|
+
*/
|
|
41
|
+
email: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Profile
|
|
46
|
+
*/
|
|
47
|
+
name: string | null;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Profile
|
|
52
|
+
*/
|
|
53
|
+
avatar_url: string | null;
|
|
54
|
+
/**
|
|
55
|
+
* User preferred locale in BCP-47 format (for example en, en-US, hu-HU)
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Profile
|
|
58
|
+
*/
|
|
59
|
+
preferred_language: string | null;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {Date}
|
|
63
|
+
* @memberof Profile
|
|
64
|
+
*/
|
|
65
|
+
last_seen_at?: Date | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {AccountDeletionStatus}
|
|
69
|
+
* @memberof Profile
|
|
70
|
+
*/
|
|
71
|
+
deletion: AccountDeletionStatus;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Check if a given object implements the Profile interface.
|
|
76
|
+
*/
|
|
77
|
+
export function instanceOfProfile(value: object): value is Profile {
|
|
78
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
79
|
+
if (!('email' in value) || value['email'] === undefined) return false;
|
|
80
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
81
|
+
if (!('avatar_url' in value) || value['avatar_url'] === undefined) return false;
|
|
82
|
+
if (!('preferred_language' in value) || value['preferred_language'] === undefined) return false;
|
|
83
|
+
if (!('deletion' in value) || value['deletion'] === undefined) return false;
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export function ProfileFromJSON(json: any): Profile {
|
|
88
|
+
return ProfileFromJSONTyped(json, false);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function ProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): Profile {
|
|
92
|
+
if (json == null) {
|
|
93
|
+
return json;
|
|
94
|
+
}
|
|
95
|
+
return {
|
|
96
|
+
|
|
97
|
+
'id': json['id'],
|
|
98
|
+
'email': json['email'],
|
|
99
|
+
'name': json['name'],
|
|
100
|
+
'avatar_url': json['avatar_url'],
|
|
101
|
+
'preferred_language': json['preferred_language'],
|
|
102
|
+
'last_seen_at': json['last_seen_at'] == null ? undefined : (new Date(json['last_seen_at'])),
|
|
103
|
+
'deletion': AccountDeletionStatusFromJSON(json['deletion']),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function ProfileToJSON(json: any): Profile {
|
|
108
|
+
return ProfileToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function ProfileToJSONTyped(value?: Profile | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'id': value['id'],
|
|
119
|
+
'email': value['email'],
|
|
120
|
+
'name': value['name'],
|
|
121
|
+
'avatar_url': value['avatar_url'],
|
|
122
|
+
'preferred_language': value['preferred_language'],
|
|
123
|
+
'last_seen_at': value['last_seen_at'] == null ? value['last_seen_at'] : value['last_seen_at'].toISOString(),
|
|
124
|
+
'deletion': AccountDeletionStatusToJSON(value['deletion']),
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -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 { ProfileDeletionPost409ResponseError } from './ProfileDeletionPost409ResponseError';
|
|
17
|
+
import {
|
|
18
|
+
ProfileDeletionPost409ResponseErrorFromJSON,
|
|
19
|
+
ProfileDeletionPost409ResponseErrorFromJSONTyped,
|
|
20
|
+
ProfileDeletionPost409ResponseErrorToJSON,
|
|
21
|
+
ProfileDeletionPost409ResponseErrorToJSONTyped,
|
|
22
|
+
} from './ProfileDeletionPost409ResponseError';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProfileDeletionPost409Response
|
|
28
|
+
*/
|
|
29
|
+
export interface ProfileDeletionPost409Response {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ProfileDeletionPost409Response
|
|
34
|
+
*/
|
|
35
|
+
success?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {ProfileDeletionPost409ResponseError}
|
|
39
|
+
* @memberof ProfileDeletionPost409Response
|
|
40
|
+
*/
|
|
41
|
+
error?: ProfileDeletionPost409ResponseError;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the ProfileDeletionPost409Response interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfProfileDeletionPost409Response(value: object): value is ProfileDeletionPost409Response {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function ProfileDeletionPost409ResponseFromJSON(json: any): ProfileDeletionPost409Response {
|
|
52
|
+
return ProfileDeletionPost409ResponseFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function ProfileDeletionPost409ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileDeletionPost409Response {
|
|
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 : ProfileDeletionPost409ResponseErrorFromJSON(json['error']),
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function ProfileDeletionPost409ResponseToJSON(json: any): ProfileDeletionPost409Response {
|
|
67
|
+
return ProfileDeletionPost409ResponseToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ProfileDeletionPost409ResponseToJSONTyped(value?: ProfileDeletionPost409Response | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'success': value['success'],
|
|
78
|
+
'error': ProfileDeletionPost409ResponseErrorToJSON(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 { ProfileDeletionPost409ResponseErrorDetails } from './ProfileDeletionPost409ResponseErrorDetails';
|
|
17
|
+
import {
|
|
18
|
+
ProfileDeletionPost409ResponseErrorDetailsFromJSON,
|
|
19
|
+
ProfileDeletionPost409ResponseErrorDetailsFromJSONTyped,
|
|
20
|
+
ProfileDeletionPost409ResponseErrorDetailsToJSON,
|
|
21
|
+
ProfileDeletionPost409ResponseErrorDetailsToJSONTyped,
|
|
22
|
+
} from './ProfileDeletionPost409ResponseErrorDetails';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProfileDeletionPost409ResponseError
|
|
28
|
+
*/
|
|
29
|
+
export interface ProfileDeletionPost409ResponseError {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ProfileDeletionPost409ResponseError
|
|
34
|
+
*/
|
|
35
|
+
code?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProfileDeletionPost409ResponseError
|
|
40
|
+
*/
|
|
41
|
+
message?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {ProfileDeletionPost409ResponseErrorDetails}
|
|
45
|
+
* @memberof ProfileDeletionPost409ResponseError
|
|
46
|
+
*/
|
|
47
|
+
details?: ProfileDeletionPost409ResponseErrorDetails;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Check if a given object implements the ProfileDeletionPost409ResponseError interface.
|
|
52
|
+
*/
|
|
53
|
+
export function instanceOfProfileDeletionPost409ResponseError(value: object): value is ProfileDeletionPost409ResponseError {
|
|
54
|
+
return true;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export function ProfileDeletionPost409ResponseErrorFromJSON(json: any): ProfileDeletionPost409ResponseError {
|
|
58
|
+
return ProfileDeletionPost409ResponseErrorFromJSONTyped(json, false);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ProfileDeletionPost409ResponseErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileDeletionPost409ResponseError {
|
|
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 : ProfileDeletionPost409ResponseErrorDetailsFromJSON(json['details']),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ProfileDeletionPost409ResponseErrorToJSON(json: any): ProfileDeletionPost409ResponseError {
|
|
74
|
+
return ProfileDeletionPost409ResponseErrorToJSONTyped(json, false);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function ProfileDeletionPost409ResponseErrorToJSONTyped(value?: ProfileDeletionPost409ResponseError | 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': ProfileDeletionPost409ResponseErrorDetailsToJSON(value['details']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|