@l7mp/tivadar-ai-api-sdk 0.2.3 → 0.2.4
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 +7 -1
- package/dist/api-client.js +6 -0
- package/dist/apis/ProfileApi.d.ts +41 -0
- package/dist/apis/ProfileApi.js +112 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +7 -1
- package/dist/esm/api-client.js +6 -0
- package/dist/esm/apis/ProfileApi.d.ts +41 -0
- package/dist/esm/apis/ProfileApi.js +108 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/Notification.d.ts +22 -0
- package/dist/esm/models/Notification.js +8 -0
- package/dist/esm/models/NotificationCreate.d.ts +22 -0
- package/dist/esm/models/NotificationCreate.js +6 -0
- package/dist/esm/models/NotificationUpdate.d.ts +22 -0
- package/dist/esm/models/NotificationUpdate.js +6 -0
- package/dist/esm/models/UserPreferences.d.ts +38 -0
- package/dist/esm/models/UserPreferences.js +45 -0
- package/dist/esm/models/UserPreferencesUpdate.d.ts +32 -0
- package/dist/esm/models/UserPreferencesUpdate.js +41 -0
- package/dist/esm/models/index.d.ts +2 -0
- package/dist/esm/models/index.js +2 -0
- package/dist/models/Notification.d.ts +22 -0
- package/dist/models/Notification.js +8 -0
- package/dist/models/NotificationCreate.d.ts +22 -0
- package/dist/models/NotificationCreate.js +6 -0
- package/dist/models/NotificationUpdate.d.ts +22 -0
- package/dist/models/NotificationUpdate.js +6 -0
- package/dist/models/UserPreferences.d.ts +38 -0
- package/dist/models/UserPreferences.js +52 -0
- package/dist/models/UserPreferencesUpdate.d.ts +32 -0
- package/dist/models/UserPreferencesUpdate.js +48 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/package.json +1 -1
- package/src/api-client.ts +13 -0
- package/src/apis/ProfileApi.ts +142 -0
- package/src/apis/index.ts +1 -0
- package/src/models/Notification.ts +25 -1
- package/src/models/NotificationCreate.ts +24 -1
- package/src/models/NotificationUpdate.ts +24 -1
- package/src/models/UserPreferences.ts +75 -0
- package/src/models/UserPreferencesUpdate.ts +66 -0
- package/src/models/index.ts +2 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserPreferences
|
|
16
|
+
*/
|
|
17
|
+
export interface UserPreferences {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserPreferences
|
|
22
|
+
*/
|
|
23
|
+
user_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* User preferred locale in BCP-47 format (for example en, en-US, hu-HU)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserPreferences
|
|
28
|
+
*/
|
|
29
|
+
preferred_language?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserPreferences interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUserPreferences(value: object): value is UserPreferences;
|
|
35
|
+
export declare function UserPreferencesFromJSON(json: any): UserPreferences;
|
|
36
|
+
export declare function UserPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferences;
|
|
37
|
+
export declare function UserPreferencesToJSON(json: any): UserPreferences;
|
|
38
|
+
export declare function UserPreferencesToJSONTyped(value?: UserPreferences | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
* Check if a given object implements the UserPreferences interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUserPreferences(value) {
|
|
18
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
export function UserPreferencesFromJSON(json) {
|
|
23
|
+
return UserPreferencesFromJSONTyped(json, false);
|
|
24
|
+
}
|
|
25
|
+
export function UserPreferencesFromJSONTyped(json, ignoreDiscriminator) {
|
|
26
|
+
if (json == null) {
|
|
27
|
+
return json;
|
|
28
|
+
}
|
|
29
|
+
return {
|
|
30
|
+
'user_id': json['user_id'],
|
|
31
|
+
'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export function UserPreferencesToJSON(json) {
|
|
35
|
+
return UserPreferencesToJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function UserPreferencesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'user_id': value['user_id'],
|
|
43
|
+
'preferred_language': value['preferred_language'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserPreferencesUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface UserPreferencesUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* User preferred locale in BCP-47 format, or null to unset
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserPreferencesUpdate
|
|
22
|
+
*/
|
|
23
|
+
preferred_language?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUserPreferencesUpdate(value: object): value is UserPreferencesUpdate;
|
|
29
|
+
export declare function UserPreferencesUpdateFromJSON(json: any): UserPreferencesUpdate;
|
|
30
|
+
export declare function UserPreferencesUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferencesUpdate;
|
|
31
|
+
export declare function UserPreferencesUpdateToJSON(json: any): UserPreferencesUpdate;
|
|
32
|
+
export declare function UserPreferencesUpdateToJSONTyped(value?: UserPreferencesUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfUserPreferencesUpdate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function UserPreferencesUpdateFromJSON(json) {
|
|
21
|
+
return UserPreferencesUpdateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function UserPreferencesUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function UserPreferencesUpdateToJSON(json) {
|
|
32
|
+
return UserPreferencesUpdateToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function UserPreferencesUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'preferred_language': value['preferred_language'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -83,6 +83,8 @@ export * from './TtsProviderVoice';
|
|
|
83
83
|
export * from './UnpauseSubscriptionResponse';
|
|
84
84
|
export * from './UpdatePlanRequest';
|
|
85
85
|
export * from './UpdatePlanResponse';
|
|
86
|
+
export * from './UserPreferences';
|
|
87
|
+
export * from './UserPreferencesUpdate';
|
|
86
88
|
export * from './VoiceAgent';
|
|
87
89
|
export * from './VoiceAgentCreate';
|
|
88
90
|
export * from './VoiceAgentMetadata';
|
package/dist/esm/models/index.js
CHANGED
|
@@ -85,6 +85,8 @@ export * from './TtsProviderVoice';
|
|
|
85
85
|
export * from './UnpauseSubscriptionResponse';
|
|
86
86
|
export * from './UpdatePlanRequest';
|
|
87
87
|
export * from './UpdatePlanResponse';
|
|
88
|
+
export * from './UserPreferences';
|
|
89
|
+
export * from './UserPreferencesUpdate';
|
|
88
90
|
export * from './VoiceAgent';
|
|
89
91
|
export * from './VoiceAgentCreate';
|
|
90
92
|
export * from './VoiceAgentMetadata';
|
|
@@ -85,6 +85,28 @@ export interface Notification {
|
|
|
85
85
|
* @memberof Notification
|
|
86
86
|
*/
|
|
87
87
|
expires_at?: Date | null;
|
|
88
|
+
/**
|
|
89
|
+
* Whether an email should also be sent to recipients
|
|
90
|
+
* @type {boolean}
|
|
91
|
+
* @memberof Notification
|
|
92
|
+
*/
|
|
93
|
+
send_email: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Localized notification title/content variants keyed by language tag (for example en, en-US, hu-HU)
|
|
96
|
+
* @type {{ [key: string]: { [key: string]: any; }; }}
|
|
97
|
+
* @memberof Notification
|
|
98
|
+
*/
|
|
99
|
+
localized_content?: {
|
|
100
|
+
[key: string]: {
|
|
101
|
+
[key: string]: any;
|
|
102
|
+
};
|
|
103
|
+
} | null;
|
|
104
|
+
/**
|
|
105
|
+
* Fallback language key to use when recipient preferred language translation is missing
|
|
106
|
+
* @type {string}
|
|
107
|
+
* @memberof Notification
|
|
108
|
+
*/
|
|
109
|
+
default_language?: string | null;
|
|
88
110
|
/**
|
|
89
111
|
*
|
|
90
112
|
* @type {Date}
|
|
@@ -40,6 +40,8 @@ function instanceOfNotification(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('content' in value) || value['content'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('send_email' in value) || value['send_email'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
@@ -65,6 +67,9 @@ function NotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
65
67
|
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
66
68
|
'created_by': json['created_by'] == null ? undefined : json['created_by'],
|
|
67
69
|
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
70
|
+
'send_email': json['send_email'],
|
|
71
|
+
'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
|
|
72
|
+
'default_language': json['default_language'] == null ? undefined : json['default_language'],
|
|
68
73
|
'created_at': (new Date(json['created_at'])),
|
|
69
74
|
'updated_at': (new Date(json['updated_at'])),
|
|
70
75
|
'read_at': json['read_at'] == null ? undefined : (new Date(json['read_at'])),
|
|
@@ -90,6 +95,9 @@ function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
90
95
|
'user_id': value['user_id'],
|
|
91
96
|
'created_by': value['created_by'],
|
|
92
97
|
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
98
|
+
'send_email': value['send_email'],
|
|
99
|
+
'localized_content': value['localized_content'],
|
|
100
|
+
'default_language': value['default_language'],
|
|
93
101
|
'created_at': value['created_at'].toISOString(),
|
|
94
102
|
'updated_at': value['updated_at'].toISOString(),
|
|
95
103
|
'read_at': value['read_at'] == null ? value['read_at'] : value['read_at'].toISOString(),
|
|
@@ -67,6 +67,28 @@ export interface NotificationCreate {
|
|
|
67
67
|
* @memberof NotificationCreate
|
|
68
68
|
*/
|
|
69
69
|
expires_at?: Date | null;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof NotificationCreate
|
|
74
|
+
*/
|
|
75
|
+
send_email?: boolean;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {{ [key: string]: { [key: string]: any; }; }}
|
|
79
|
+
* @memberof NotificationCreate
|
|
80
|
+
*/
|
|
81
|
+
localized_content?: {
|
|
82
|
+
[key: string]: {
|
|
83
|
+
[key: string]: any;
|
|
84
|
+
};
|
|
85
|
+
} | null;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof NotificationCreate
|
|
90
|
+
*/
|
|
91
|
+
default_language?: string | null;
|
|
70
92
|
}
|
|
71
93
|
/**
|
|
72
94
|
* Check if a given object implements the NotificationCreate interface.
|
|
@@ -48,6 +48,9 @@ function NotificationCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
48
48
|
'content': json['content'],
|
|
49
49
|
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
50
50
|
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
51
|
+
'send_email': json['send_email'] == null ? undefined : json['send_email'],
|
|
52
|
+
'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
|
|
53
|
+
'default_language': json['default_language'] == null ? undefined : json['default_language'],
|
|
51
54
|
};
|
|
52
55
|
}
|
|
53
56
|
function NotificationCreateToJSON(json) {
|
|
@@ -66,5 +69,8 @@ function NotificationCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
66
69
|
'content': value['content'],
|
|
67
70
|
'user_id': value['user_id'],
|
|
68
71
|
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
72
|
+
'send_email': value['send_email'],
|
|
73
|
+
'localized_content': value['localized_content'],
|
|
74
|
+
'default_language': value['default_language'],
|
|
69
75
|
};
|
|
70
76
|
}
|
|
@@ -47,6 +47,28 @@ export interface NotificationUpdate {
|
|
|
47
47
|
* @memberof NotificationUpdate
|
|
48
48
|
*/
|
|
49
49
|
expires_at?: Date | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {boolean}
|
|
53
|
+
* @memberof NotificationUpdate
|
|
54
|
+
*/
|
|
55
|
+
send_email?: boolean;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {{ [key: string]: { [key: string]: any; }; }}
|
|
59
|
+
* @memberof NotificationUpdate
|
|
60
|
+
*/
|
|
61
|
+
localized_content?: {
|
|
62
|
+
[key: string]: {
|
|
63
|
+
[key: string]: any;
|
|
64
|
+
};
|
|
65
|
+
} | null;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof NotificationUpdate
|
|
70
|
+
*/
|
|
71
|
+
default_language?: string | null;
|
|
50
72
|
}
|
|
51
73
|
/**
|
|
52
74
|
* Check if a given object implements the NotificationUpdate interface.
|
|
@@ -39,6 +39,9 @@ function NotificationUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
39
39
|
'title': json['title'] == null ? undefined : json['title'],
|
|
40
40
|
'content': json['content'] == null ? undefined : json['content'],
|
|
41
41
|
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
42
|
+
'send_email': json['send_email'] == null ? undefined : json['send_email'],
|
|
43
|
+
'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
|
|
44
|
+
'default_language': json['default_language'] == null ? undefined : json['default_language'],
|
|
42
45
|
};
|
|
43
46
|
}
|
|
44
47
|
function NotificationUpdateToJSON(json) {
|
|
@@ -54,5 +57,8 @@ function NotificationUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
57
|
'title': value['title'],
|
|
55
58
|
'content': value['content'],
|
|
56
59
|
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
60
|
+
'send_email': value['send_email'],
|
|
61
|
+
'localized_content': value['localized_content'],
|
|
62
|
+
'default_language': value['default_language'],
|
|
57
63
|
};
|
|
58
64
|
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserPreferences
|
|
16
|
+
*/
|
|
17
|
+
export interface UserPreferences {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserPreferences
|
|
22
|
+
*/
|
|
23
|
+
user_id: string;
|
|
24
|
+
/**
|
|
25
|
+
* User preferred locale in BCP-47 format (for example en, en-US, hu-HU)
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof UserPreferences
|
|
28
|
+
*/
|
|
29
|
+
preferred_language?: string | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the UserPreferences interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfUserPreferences(value: object): value is UserPreferences;
|
|
35
|
+
export declare function UserPreferencesFromJSON(json: any): UserPreferences;
|
|
36
|
+
export declare function UserPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferences;
|
|
37
|
+
export declare function UserPreferencesToJSON(json: any): UserPreferences;
|
|
38
|
+
export declare function UserPreferencesToJSONTyped(value?: UserPreferences | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUserPreferences = instanceOfUserPreferences;
|
|
17
|
+
exports.UserPreferencesFromJSON = UserPreferencesFromJSON;
|
|
18
|
+
exports.UserPreferencesFromJSONTyped = UserPreferencesFromJSONTyped;
|
|
19
|
+
exports.UserPreferencesToJSON = UserPreferencesToJSON;
|
|
20
|
+
exports.UserPreferencesToJSONTyped = UserPreferencesToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserPreferences interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserPreferences(value) {
|
|
25
|
+
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function UserPreferencesFromJSON(json) {
|
|
30
|
+
return UserPreferencesFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function UserPreferencesFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'user_id': json['user_id'],
|
|
38
|
+
'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function UserPreferencesToJSON(json) {
|
|
42
|
+
return UserPreferencesToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function UserPreferencesToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'user_id': value['user_id'],
|
|
50
|
+
'preferred_language': value['preferred_language'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tivadar AI Backend API
|
|
3
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserPreferencesUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface UserPreferencesUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* User preferred locale in BCP-47 format, or null to unset
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof UserPreferencesUpdate
|
|
22
|
+
*/
|
|
23
|
+
preferred_language?: string | null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUserPreferencesUpdate(value: object): value is UserPreferencesUpdate;
|
|
29
|
+
export declare function UserPreferencesUpdateFromJSON(json: any): UserPreferencesUpdate;
|
|
30
|
+
export declare function UserPreferencesUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserPreferencesUpdate;
|
|
31
|
+
export declare function UserPreferencesUpdateToJSON(json: any): UserPreferencesUpdate;
|
|
32
|
+
export declare function UserPreferencesUpdateToJSONTyped(value?: UserPreferencesUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Tivadar AI Backend API
|
|
6
|
+
* Unified REST API for Tivadar AI Voice Agents platform
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfUserPreferencesUpdate = instanceOfUserPreferencesUpdate;
|
|
17
|
+
exports.UserPreferencesUpdateFromJSON = UserPreferencesUpdateFromJSON;
|
|
18
|
+
exports.UserPreferencesUpdateFromJSONTyped = UserPreferencesUpdateFromJSONTyped;
|
|
19
|
+
exports.UserPreferencesUpdateToJSON = UserPreferencesUpdateToJSON;
|
|
20
|
+
exports.UserPreferencesUpdateToJSONTyped = UserPreferencesUpdateToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfUserPreferencesUpdate(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
function UserPreferencesUpdateFromJSON(json) {
|
|
28
|
+
return UserPreferencesUpdateFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
function UserPreferencesUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'preferred_language': json['preferred_language'] == null ? undefined : json['preferred_language'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function UserPreferencesUpdateToJSON(json) {
|
|
39
|
+
return UserPreferencesUpdateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function UserPreferencesUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'preferred_language': value['preferred_language'],
|
|
47
|
+
};
|
|
48
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -83,6 +83,8 @@ export * from './TtsProviderVoice';
|
|
|
83
83
|
export * from './UnpauseSubscriptionResponse';
|
|
84
84
|
export * from './UpdatePlanRequest';
|
|
85
85
|
export * from './UpdatePlanResponse';
|
|
86
|
+
export * from './UserPreferences';
|
|
87
|
+
export * from './UserPreferencesUpdate';
|
|
86
88
|
export * from './VoiceAgent';
|
|
87
89
|
export * from './VoiceAgentCreate';
|
|
88
90
|
export * from './VoiceAgentMetadata';
|
package/dist/models/index.js
CHANGED
|
@@ -101,6 +101,8 @@ __exportStar(require("./TtsProviderVoice"), exports);
|
|
|
101
101
|
__exportStar(require("./UnpauseSubscriptionResponse"), exports);
|
|
102
102
|
__exportStar(require("./UpdatePlanRequest"), exports);
|
|
103
103
|
__exportStar(require("./UpdatePlanResponse"), exports);
|
|
104
|
+
__exportStar(require("./UserPreferences"), exports);
|
|
105
|
+
__exportStar(require("./UserPreferencesUpdate"), exports);
|
|
104
106
|
__exportStar(require("./VoiceAgent"), exports);
|
|
105
107
|
__exportStar(require("./VoiceAgentCreate"), exports);
|
|
106
108
|
__exportStar(require("./VoiceAgentMetadata"), exports);
|
package/package.json
CHANGED
package/src/api-client.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { MembersApi } from "./apis/MembersApi";
|
|
|
7
7
|
import { NotificationsApi, type OrganizationsOrganizationIdNotificationsGetIncludeDismissedEnum, type OrganizationsOrganizationIdNotificationsGetIncludeExpiredEnum } from "./apis/NotificationsApi";
|
|
8
8
|
import { OrganizationsApi } from "./apis/OrganizationsApi";
|
|
9
9
|
import { PlaygroundApi } from "./apis/PlaygroundApi";
|
|
10
|
+
import { ProfileApi } from "./apis/ProfileApi";
|
|
10
11
|
import { RAGApi, type OrganizationsOrganizationIdRagRagConfigNameDocumentsGetStatusEnum } from "./apis/RAGApi";
|
|
11
12
|
import { RecordingsApi } from "./apis/RecordingsApi";
|
|
12
13
|
import { SIPApi } from "./apis/SIPApi";
|
|
@@ -47,6 +48,7 @@ import type {
|
|
|
47
48
|
PauseSubscriptionRequest,
|
|
48
49
|
BillingPortalRequest,
|
|
49
50
|
OrganizationsOrganizationIdNotificationsGet200Response,
|
|
51
|
+
UserPreferencesUpdate,
|
|
50
52
|
} from "./models";
|
|
51
53
|
|
|
52
54
|
export interface ApiClientConfig {
|
|
@@ -117,6 +119,10 @@ export class Api {
|
|
|
117
119
|
public readonly playground: {
|
|
118
120
|
sandboxToken: (organizationId: string, voiceAgentId: string, options?: RequestInit) => ReturnType<PlaygroundApi["organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPost"]>;
|
|
119
121
|
};
|
|
122
|
+
public readonly profile: {
|
|
123
|
+
getPreferences: (organizationId: string, options?: RequestInit) => ReturnType<ProfileApi["organizationsOrganizationIdProfilePreferencesGet"]>;
|
|
124
|
+
updatePreferences: (organizationId: string, userPreferencesUpdate: UserPreferencesUpdate, options?: RequestInit) => ReturnType<ProfileApi["organizationsOrganizationIdProfilePreferencesPut"]>;
|
|
125
|
+
};
|
|
120
126
|
public readonly rag: {
|
|
121
127
|
list: (organizationId: string, options?: RequestInit) => ReturnType<RAGApi["organizationsOrganizationIdRagGet"]>;
|
|
122
128
|
create: (organizationId: string, ragConfigCreate: RagConfigCreate, options?: RequestInit) => ReturnType<RAGApi["organizationsOrganizationIdRagPost"]>;
|
|
@@ -183,6 +189,7 @@ export class Api {
|
|
|
183
189
|
private readonly membersApi: MembersApi;
|
|
184
190
|
private readonly organizationsApi: OrganizationsApi;
|
|
185
191
|
private readonly playgroundApi: PlaygroundApi;
|
|
192
|
+
private readonly profileApi: ProfileApi;
|
|
186
193
|
private readonly ragApi: RAGApi;
|
|
187
194
|
private readonly recordingsApi: RecordingsApi;
|
|
188
195
|
private readonly sipApi: SIPApi;
|
|
@@ -221,6 +228,7 @@ export class Api {
|
|
|
221
228
|
this.membersApi = new MembersApi(configuration);
|
|
222
229
|
this.organizationsApi = new OrganizationsApi(configuration);
|
|
223
230
|
this.playgroundApi = new PlaygroundApi(configuration);
|
|
231
|
+
this.profileApi = new ProfileApi(configuration);
|
|
224
232
|
this.ragApi = new RAGApi(configuration);
|
|
225
233
|
this.recordingsApi = new RecordingsApi(configuration);
|
|
226
234
|
this.sipApi = new SIPApi(configuration);
|
|
@@ -304,6 +312,11 @@ export class Api {
|
|
|
304
312
|
sandboxToken: (organizationId, voiceAgentId, options) => this.playgroundApi.organizationsOrganizationIdVoiceAgentsVoiceAgentIdSandboxTokenPost({ organizationId, voiceAgentId }, options),
|
|
305
313
|
};
|
|
306
314
|
|
|
315
|
+
this.profile = {
|
|
316
|
+
getPreferences: (organizationId, options) => this.profileApi.organizationsOrganizationIdProfilePreferencesGet({ organizationId }, options),
|
|
317
|
+
updatePreferences: (organizationId, userPreferencesUpdate, options) => this.profileApi.organizationsOrganizationIdProfilePreferencesPut({ organizationId, userPreferencesUpdate }, options),
|
|
318
|
+
};
|
|
319
|
+
|
|
307
320
|
this.rag = {
|
|
308
321
|
list: (organizationId, options) => this.ragApi.organizationsOrganizationIdRagGet({ organizationId }, options),
|
|
309
322
|
create: (organizationId, ragConfigCreate, options) => this.ragApi.organizationsOrganizationIdRagPost({ organizationId, ragConfigCreate }, options),
|