@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,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
|
+
|
|
@@ -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 { AccountDeletionBlocker } from './AccountDeletionBlocker';
|
|
17
|
+
import {
|
|
18
|
+
AccountDeletionBlockerFromJSON,
|
|
19
|
+
AccountDeletionBlockerFromJSONTyped,
|
|
20
|
+
AccountDeletionBlockerToJSON,
|
|
21
|
+
AccountDeletionBlockerToJSONTyped,
|
|
22
|
+
} from './AccountDeletionBlocker';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface ProfileDeletionPost409ResponseErrorDetails
|
|
28
|
+
*/
|
|
29
|
+
export interface ProfileDeletionPost409ResponseErrorDetails {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {Array<AccountDeletionBlocker>}
|
|
33
|
+
* @memberof ProfileDeletionPost409ResponseErrorDetails
|
|
34
|
+
*/
|
|
35
|
+
organizations?: Array<AccountDeletionBlocker>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the ProfileDeletionPost409ResponseErrorDetails interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfProfileDeletionPost409ResponseErrorDetails(value: object): value is ProfileDeletionPost409ResponseErrorDetails {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function ProfileDeletionPost409ResponseErrorDetailsFromJSON(json: any): ProfileDeletionPost409ResponseErrorDetails {
|
|
46
|
+
return ProfileDeletionPost409ResponseErrorDetailsFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProfileDeletionPost409ResponseErrorDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileDeletionPost409ResponseErrorDetails {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'organizations': json['organizations'] == null ? undefined : ((json['organizations'] as Array<any>).map(AccountDeletionBlockerFromJSON)),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function ProfileDeletionPost409ResponseErrorDetailsToJSON(json: any): ProfileDeletionPost409ResponseErrorDetails {
|
|
60
|
+
return ProfileDeletionPost409ResponseErrorDetailsToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function ProfileDeletionPost409ResponseErrorDetailsToJSONTyped(value?: ProfileDeletionPost409ResponseErrorDetails | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'organizations': value['organizations'] == null ? undefined : ((value['organizations'] as Array<any>).map(AccountDeletionBlockerToJSON)),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProfileDeletionPostRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface ProfileDeletionPostRequest {
|
|
22
|
+
/**
|
|
23
|
+
* Exact confirmation phrase, required to prevent accidental requests.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProfileDeletionPostRequest
|
|
26
|
+
*/
|
|
27
|
+
confirm: ProfileDeletionPostRequestConfirmEnum;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProfileDeletionPostRequest
|
|
32
|
+
*/
|
|
33
|
+
reason?: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @export
|
|
39
|
+
*/
|
|
40
|
+
export const ProfileDeletionPostRequestConfirmEnum = {
|
|
41
|
+
DeleteMyAccount: 'DELETE MY ACCOUNT'
|
|
42
|
+
} as const;
|
|
43
|
+
export type ProfileDeletionPostRequestConfirmEnum = typeof ProfileDeletionPostRequestConfirmEnum[keyof typeof ProfileDeletionPostRequestConfirmEnum];
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Check if a given object implements the ProfileDeletionPostRequest interface.
|
|
48
|
+
*/
|
|
49
|
+
export function instanceOfProfileDeletionPostRequest(value: object): value is ProfileDeletionPostRequest {
|
|
50
|
+
if (!('confirm' in value) || value['confirm'] === undefined) return false;
|
|
51
|
+
return true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ProfileDeletionPostRequestFromJSON(json: any): ProfileDeletionPostRequest {
|
|
55
|
+
return ProfileDeletionPostRequestFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ProfileDeletionPostRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileDeletionPostRequest {
|
|
59
|
+
if (json == null) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'confirm': json['confirm'],
|
|
65
|
+
'reason': json['reason'] == null ? undefined : json['reason'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ProfileDeletionPostRequestToJSON(json: any): ProfileDeletionPostRequest {
|
|
70
|
+
return ProfileDeletionPostRequestToJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function ProfileDeletionPostRequestToJSONTyped(value?: ProfileDeletionPostRequest | null, ignoreDiscriminator: boolean = false): any {
|
|
74
|
+
if (value == null) {
|
|
75
|
+
return value;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
|
|
80
|
+
'confirm': value['confirm'],
|
|
81
|
+
'reason': value['reason'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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
|
+
/**
|
|
17
|
+
* Only the supplied fields are changed. Email is not editable here - it is owned by the identity provider.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface ProfileUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface ProfileUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProfileUpdate
|
|
26
|
+
*/
|
|
27
|
+
name?: string | null;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ProfileUpdate
|
|
32
|
+
*/
|
|
33
|
+
avatar_url?: string | null;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ProfileUpdate
|
|
38
|
+
*/
|
|
39
|
+
preferred_language?: string | null;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProfileUpdate interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProfileUpdate(value: object): value is ProfileUpdate {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ProfileUpdateFromJSON(json: any): ProfileUpdate {
|
|
50
|
+
return ProfileUpdateFromJSONTyped(json, false);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export function ProfileUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileUpdate {
|
|
54
|
+
if (json == null) {
|
|
55
|
+
return json;
|
|
56
|
+
}
|
|
57
|
+
return {
|
|
58
|
+
|
|
59
|
+
'name': json['name'] == null ? undefined : json['name'],
|
|
60
|
+
'avatar_url': json['avatar_url'] == null ? undefined : json['avatar_url'],
|
|
61
|
+
'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ProfileUpdateToJSON(json: any): ProfileUpdate {
|
|
66
|
+
return ProfileUpdateToJSONTyped(json, false);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function ProfileUpdateToJSONTyped(value?: ProfileUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
70
|
+
if (value == null) {
|
|
71
|
+
return value;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return {
|
|
75
|
+
|
|
76
|
+
'name': value['name'],
|
|
77
|
+
'avatar_url': value['avatar_url'],
|
|
78
|
+
'preferred_language': value['preferred_language'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|