@l7mp/tivadar-ai-api-sdk 0.2.5 → 0.2.6
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 +10 -2
- package/dist/api-client.js +9 -1
- package/dist/apis/RAGApi.d.ts +15 -13
- package/dist/apis/RAGApi.js +47 -45
- package/dist/apis/ToolsApi.d.ts +68 -0
- package/dist/apis/ToolsApi.js +205 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/api-client.d.ts +10 -2
- package/dist/esm/api-client.js +9 -1
- package/dist/esm/apis/RAGApi.d.ts +15 -13
- package/dist/esm/apis/RAGApi.js +47 -45
- package/dist/esm/apis/ToolsApi.d.ts +68 -0
- package/dist/esm/apis/ToolsApi.js +201 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentTool.d.ts +79 -0
- package/dist/esm/models/AgentTool.js +66 -0
- package/dist/esm/models/AgentToolUpsert.d.ts +40 -0
- package/dist/esm/models/AgentToolUpsert.js +45 -0
- package/dist/esm/models/Notification.d.ts +16 -17
- package/dist/esm/models/Notification.js +8 -8
- package/dist/esm/models/NotificationCreate.d.ts +3 -4
- package/dist/esm/models/NotificationCreate.js +4 -2
- package/dist/esm/models/NotificationLocalizedContentValue.d.ts +38 -0
- package/dist/esm/models/NotificationLocalizedContentValue.js +47 -0
- package/dist/esm/models/NotificationUpdate.d.ts +3 -4
- package/dist/esm/models/NotificationUpdate.js +4 -2
- package/dist/esm/models/Tool.d.ts +102 -0
- package/dist/esm/models/Tool.js +77 -0
- package/dist/esm/models/ToolCreate.d.ts +84 -0
- package/dist/esm/models/ToolCreate.js +63 -0
- package/dist/esm/models/ToolUpdate.d.ts +78 -0
- package/dist/esm/models/ToolUpdate.js +55 -0
- package/dist/esm/models/UserPreferences.d.ts +1 -1
- package/dist/esm/models/UserPreferences.js +3 -1
- package/dist/esm/models/UserPreferencesUpdate.d.ts +1 -1
- package/dist/esm/models/UserPreferencesUpdate.js +3 -1
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/AgentTool.d.ts +79 -0
- package/dist/models/AgentTool.js +73 -0
- package/dist/models/AgentToolUpsert.d.ts +40 -0
- package/dist/models/AgentToolUpsert.js +52 -0
- package/dist/models/Notification.d.ts +16 -17
- package/dist/models/Notification.js +8 -8
- package/dist/models/NotificationCreate.d.ts +3 -4
- package/dist/models/NotificationCreate.js +4 -2
- package/dist/models/NotificationLocalizedContentValue.d.ts +38 -0
- package/dist/models/NotificationLocalizedContentValue.js +54 -0
- package/dist/models/NotificationUpdate.d.ts +3 -4
- package/dist/models/NotificationUpdate.js +4 -2
- package/dist/models/Tool.d.ts +102 -0
- package/dist/models/Tool.js +84 -0
- package/dist/models/ToolCreate.d.ts +84 -0
- package/dist/models/ToolCreate.js +70 -0
- package/dist/models/ToolUpdate.d.ts +78 -0
- package/dist/models/ToolUpdate.js +62 -0
- package/dist/models/UserPreferences.d.ts +1 -1
- package/dist/models/UserPreferences.js +3 -1
- package/dist/models/UserPreferencesUpdate.d.ts +1 -1
- package/dist/models/UserPreferencesUpdate.js +3 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/api-client.ts +21 -2
- package/src/apis/RAGApi.ts +69 -67
- package/src/apis/ToolsApi.ts +287 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AgentTool.ts +134 -0
- package/src/models/AgentToolUpsert.ts +74 -0
- package/src/models/CalendarEvent.ts +1 -0
- package/src/models/CalendarEventCreate.ts +1 -0
- package/src/models/CalendarEventUpdate.ts +1 -0
- package/src/models/Call.ts +1 -0
- package/src/models/CallCreate.ts +1 -0
- package/src/models/CallUpdate.ts +1 -0
- package/src/models/Notification.ts +29 -22
- package/src/models/NotificationCreate.ts +12 -4
- package/src/models/NotificationLocalizedContentValue.ts +75 -0
- package/src/models/NotificationUpdate.ts +12 -4
- package/src/models/Tool.ts +160 -0
- package/src/models/ToolCreate.ts +132 -0
- package/src/models/ToolUpdate.ts +121 -0
- package/src/models/UserPreferences.ts +4 -4
- package/src/models/UserPreferencesUpdate.ts +4 -4
- package/src/models/index.ts +6 -0
|
@@ -0,0 +1,132 @@
|
|
|
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 ToolCreate
|
|
20
|
+
*/
|
|
21
|
+
export interface ToolCreate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ToolCreate
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ToolCreate
|
|
32
|
+
*/
|
|
33
|
+
label: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ToolCreate
|
|
38
|
+
*/
|
|
39
|
+
description?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ToolCreate
|
|
44
|
+
*/
|
|
45
|
+
icon?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {string}
|
|
49
|
+
* @memberof ToolCreate
|
|
50
|
+
*/
|
|
51
|
+
feature_key: string;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof ToolCreate
|
|
56
|
+
*/
|
|
57
|
+
config_schema?: { [key: string]: any; };
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {{ [key: string]: any; }}
|
|
61
|
+
* @memberof ToolCreate
|
|
62
|
+
*/
|
|
63
|
+
ui_schema?: { [key: string]: any; };
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<string>}
|
|
67
|
+
* @memberof ToolCreate
|
|
68
|
+
*/
|
|
69
|
+
secret_fields?: Array<string>;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {boolean}
|
|
73
|
+
* @memberof ToolCreate
|
|
74
|
+
*/
|
|
75
|
+
enabled_globally?: boolean;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Check if a given object implements the ToolCreate interface.
|
|
80
|
+
*/
|
|
81
|
+
export function instanceOfToolCreate(value: object): value is ToolCreate {
|
|
82
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
83
|
+
if (!('label' in value) || value['label'] === undefined) return false;
|
|
84
|
+
if (!('feature_key' in value) || value['feature_key'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function ToolCreateFromJSON(json: any): ToolCreate {
|
|
89
|
+
return ToolCreateFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function ToolCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCreate {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'name': json['name'],
|
|
99
|
+
'label': json['label'],
|
|
100
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
101
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
102
|
+
'feature_key': json['feature_key'],
|
|
103
|
+
'config_schema': json['config_schema'] == null ? undefined : json['config_schema'],
|
|
104
|
+
'ui_schema': json['ui_schema'] == null ? undefined : json['ui_schema'],
|
|
105
|
+
'secret_fields': json['secret_fields'] == null ? undefined : json['secret_fields'],
|
|
106
|
+
'enabled_globally': json['enabled_globally'] == null ? undefined : json['enabled_globally'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function ToolCreateToJSON(json: any): ToolCreate {
|
|
111
|
+
return ToolCreateToJSONTyped(json, false);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export function ToolCreateToJSONTyped(value?: ToolCreate | null, ignoreDiscriminator: boolean = false): any {
|
|
115
|
+
if (value == null) {
|
|
116
|
+
return value;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return {
|
|
120
|
+
|
|
121
|
+
'name': value['name'],
|
|
122
|
+
'label': value['label'],
|
|
123
|
+
'description': value['description'],
|
|
124
|
+
'icon': value['icon'],
|
|
125
|
+
'feature_key': value['feature_key'],
|
|
126
|
+
'config_schema': value['config_schema'],
|
|
127
|
+
'ui_schema': value['ui_schema'],
|
|
128
|
+
'secret_fields': value['secret_fields'],
|
|
129
|
+
'enabled_globally': value['enabled_globally'],
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
@@ -0,0 +1,121 @@
|
|
|
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 ToolUpdate
|
|
20
|
+
*/
|
|
21
|
+
export interface ToolUpdate {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ToolUpdate
|
|
26
|
+
*/
|
|
27
|
+
label?: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof ToolUpdate
|
|
32
|
+
*/
|
|
33
|
+
description?: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof ToolUpdate
|
|
38
|
+
*/
|
|
39
|
+
icon?: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof ToolUpdate
|
|
44
|
+
*/
|
|
45
|
+
feature_key?: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof ToolUpdate
|
|
50
|
+
*/
|
|
51
|
+
config_schema?: { [key: string]: any; };
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {{ [key: string]: any; }}
|
|
55
|
+
* @memberof ToolUpdate
|
|
56
|
+
*/
|
|
57
|
+
ui_schema?: { [key: string]: any; };
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<string>}
|
|
61
|
+
* @memberof ToolUpdate
|
|
62
|
+
*/
|
|
63
|
+
secret_fields?: Array<string>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof ToolUpdate
|
|
68
|
+
*/
|
|
69
|
+
enabled_globally?: boolean;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the ToolUpdate interface.
|
|
74
|
+
*/
|
|
75
|
+
export function instanceOfToolUpdate(value: object): value is ToolUpdate {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function ToolUpdateFromJSON(json: any): ToolUpdate {
|
|
80
|
+
return ToolUpdateFromJSONTyped(json, false);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export function ToolUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolUpdate {
|
|
84
|
+
if (json == null) {
|
|
85
|
+
return json;
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
90
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
91
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
92
|
+
'feature_key': json['feature_key'] == null ? undefined : json['feature_key'],
|
|
93
|
+
'config_schema': json['config_schema'] == null ? undefined : json['config_schema'],
|
|
94
|
+
'ui_schema': json['ui_schema'] == null ? undefined : json['ui_schema'],
|
|
95
|
+
'secret_fields': json['secret_fields'] == null ? undefined : json['secret_fields'],
|
|
96
|
+
'enabled_globally': json['enabled_globally'] == null ? undefined : json['enabled_globally'],
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function ToolUpdateToJSON(json: any): ToolUpdate {
|
|
101
|
+
return ToolUpdateToJSONTyped(json, false);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function ToolUpdateToJSONTyped(value?: ToolUpdate | null, ignoreDiscriminator: boolean = false): any {
|
|
105
|
+
if (value == null) {
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'label': value['label'],
|
|
112
|
+
'description': value['description'],
|
|
113
|
+
'icon': value['icon'],
|
|
114
|
+
'feature_key': value['feature_key'],
|
|
115
|
+
'config_schema': value['config_schema'],
|
|
116
|
+
'ui_schema': value['ui_schema'],
|
|
117
|
+
'secret_fields': value['secret_fields'],
|
|
118
|
+
'enabled_globally': value['enabled_globally'],
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
|
|
@@ -30,16 +30,15 @@ export interface UserPreferences {
|
|
|
30
30
|
* @type {string}
|
|
31
31
|
* @memberof UserPreferences
|
|
32
32
|
*/
|
|
33
|
-
preferred_language
|
|
33
|
+
preferred_language: string | null;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
36
|
/**
|
|
39
37
|
* Check if a given object implements the UserPreferences interface.
|
|
40
38
|
*/
|
|
41
39
|
export function instanceOfUserPreferences(value: object): value is UserPreferences {
|
|
42
40
|
if (!('user_id' in value) || value['user_id'] === undefined) return false;
|
|
41
|
+
if (!('preferred_language' in value) || value['preferred_language'] === undefined) return false;
|
|
43
42
|
return true;
|
|
44
43
|
}
|
|
45
44
|
|
|
@@ -54,7 +53,7 @@ export function UserPreferencesFromJSONTyped(json: any, ignoreDiscriminator: boo
|
|
|
54
53
|
return {
|
|
55
54
|
|
|
56
55
|
'user_id': json['user_id'],
|
|
57
|
-
'preferred_language': json['preferred_language']
|
|
56
|
+
'preferred_language': json['preferred_language'],
|
|
58
57
|
};
|
|
59
58
|
}
|
|
60
59
|
|
|
@@ -73,3 +72,4 @@ export function UserPreferencesToJSONTyped(value?: UserPreferences | null, ignor
|
|
|
73
72
|
'preferred_language': value['preferred_language'],
|
|
74
73
|
};
|
|
75
74
|
}
|
|
75
|
+
|
|
@@ -24,15 +24,14 @@ export interface UserPreferencesUpdate {
|
|
|
24
24
|
* @type {string}
|
|
25
25
|
* @memberof UserPreferencesUpdate
|
|
26
26
|
*/
|
|
27
|
-
preferred_language
|
|
27
|
+
preferred_language: string | null;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
|
|
31
|
-
|
|
32
30
|
/**
|
|
33
31
|
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
34
32
|
*/
|
|
35
33
|
export function instanceOfUserPreferencesUpdate(value: object): value is UserPreferencesUpdate {
|
|
34
|
+
if (!('preferred_language' in value) || value['preferred_language'] === undefined) return false;
|
|
36
35
|
return true;
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -46,7 +45,7 @@ export function UserPreferencesUpdateFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
46
45
|
}
|
|
47
46
|
return {
|
|
48
47
|
|
|
49
|
-
'preferred_language': json['preferred_language']
|
|
48
|
+
'preferred_language': json['preferred_language'],
|
|
50
49
|
};
|
|
51
50
|
}
|
|
52
51
|
|
|
@@ -64,3 +63,4 @@ export function UserPreferencesUpdateToJSONTyped(value?: UserPreferencesUpdate |
|
|
|
64
63
|
'preferred_language': value['preferred_language'],
|
|
65
64
|
};
|
|
66
65
|
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AgentTool';
|
|
4
|
+
export * from './AgentToolUpsert';
|
|
3
5
|
export * from './BillingPortalRequest';
|
|
4
6
|
export * from './BillingPortalResponse';
|
|
5
7
|
export * from './Calendar';
|
|
@@ -39,6 +41,7 @@ export * from './Member';
|
|
|
39
41
|
export * from './Notification';
|
|
40
42
|
export * from './NotificationChannel';
|
|
41
43
|
export * from './NotificationCreate';
|
|
44
|
+
export * from './NotificationLocalizedContentValue';
|
|
42
45
|
export * from './NotificationScope';
|
|
43
46
|
export * from './NotificationSeverity';
|
|
44
47
|
export * from './NotificationType';
|
|
@@ -78,7 +81,10 @@ export * from './SubscriptionStatus';
|
|
|
78
81
|
export * from './SubscriptionStatusPlan';
|
|
79
82
|
export * from './SubscriptionStatusService';
|
|
80
83
|
export * from './SubscriptionStatusSubscription';
|
|
84
|
+
export * from './Tool';
|
|
81
85
|
export * from './ToolConfig';
|
|
86
|
+
export * from './ToolCreate';
|
|
87
|
+
export * from './ToolUpdate';
|
|
82
88
|
export * from './TtsProvider';
|
|
83
89
|
export * from './TtsProviderModel';
|
|
84
90
|
export * from './TtsProviderVoice';
|