@l7mp/tivadar-ai-api-sdk 0.2.4 → 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/CalendarEvent.d.ts +6 -0
- package/dist/esm/models/CalendarEvent.js +2 -0
- package/dist/esm/models/CalendarEventCreate.d.ts +6 -0
- package/dist/esm/models/CalendarEventCreate.js +2 -0
- package/dist/esm/models/CalendarEventUpdate.d.ts +6 -0
- package/dist/esm/models/CalendarEventUpdate.js +2 -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/CalendarEvent.d.ts +6 -0
- package/dist/models/CalendarEvent.js +2 -0
- package/dist/models/CalendarEventCreate.d.ts +6 -0
- package/dist/models/CalendarEventCreate.js +2 -0
- package/dist/models/CalendarEventUpdate.d.ts +6 -0
- package/dist/models/CalendarEventUpdate.js +2 -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 +8 -0
- package/src/models/CalendarEventCreate.ts +8 -0
- package/src/models/CalendarEventUpdate.ts +8 -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,84 @@
|
|
|
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 ToolCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolCreate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolCreate
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolCreate
|
|
28
|
+
*/
|
|
29
|
+
label: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolCreate
|
|
34
|
+
*/
|
|
35
|
+
description?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolCreate
|
|
40
|
+
*/
|
|
41
|
+
icon?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ToolCreate
|
|
46
|
+
*/
|
|
47
|
+
feature_key: string;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {{ [key: string]: any; }}
|
|
51
|
+
* @memberof ToolCreate
|
|
52
|
+
*/
|
|
53
|
+
config_schema?: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {{ [key: string]: any; }}
|
|
59
|
+
* @memberof ToolCreate
|
|
60
|
+
*/
|
|
61
|
+
ui_schema?: {
|
|
62
|
+
[key: string]: any;
|
|
63
|
+
};
|
|
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
|
+
* Check if a given object implements the ToolCreate interface.
|
|
79
|
+
*/
|
|
80
|
+
export declare function instanceOfToolCreate(value: object): value is ToolCreate;
|
|
81
|
+
export declare function ToolCreateFromJSON(json: any): ToolCreate;
|
|
82
|
+
export declare function ToolCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolCreate;
|
|
83
|
+
export declare function ToolCreateToJSON(json: any): ToolCreate;
|
|
84
|
+
export declare function ToolCreateToJSONTyped(value?: ToolCreate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,63 @@
|
|
|
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 ToolCreate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfToolCreate(value) {
|
|
18
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('feature_key' in value) || value['feature_key'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
export function ToolCreateFromJSON(json) {
|
|
27
|
+
return ToolCreateFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
export function ToolCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'name': json['name'],
|
|
35
|
+
'label': json['label'],
|
|
36
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
38
|
+
'feature_key': json['feature_key'],
|
|
39
|
+
'config_schema': json['config_schema'] == null ? undefined : json['config_schema'],
|
|
40
|
+
'ui_schema': json['ui_schema'] == null ? undefined : json['ui_schema'],
|
|
41
|
+
'secret_fields': json['secret_fields'] == null ? undefined : json['secret_fields'],
|
|
42
|
+
'enabled_globally': json['enabled_globally'] == null ? undefined : json['enabled_globally'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export function ToolCreateToJSON(json) {
|
|
46
|
+
return ToolCreateToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
export function ToolCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
49
|
+
if (value == null) {
|
|
50
|
+
return value;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value['name'],
|
|
54
|
+
'label': value['label'],
|
|
55
|
+
'description': value['description'],
|
|
56
|
+
'icon': value['icon'],
|
|
57
|
+
'feature_key': value['feature_key'],
|
|
58
|
+
'config_schema': value['config_schema'],
|
|
59
|
+
'ui_schema': value['ui_schema'],
|
|
60
|
+
'secret_fields': value['secret_fields'],
|
|
61
|
+
'enabled_globally': value['enabled_globally'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
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 ToolUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface ToolUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ToolUpdate
|
|
22
|
+
*/
|
|
23
|
+
label?: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ToolUpdate
|
|
28
|
+
*/
|
|
29
|
+
description?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ToolUpdate
|
|
34
|
+
*/
|
|
35
|
+
icon?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ToolUpdate
|
|
40
|
+
*/
|
|
41
|
+
feature_key?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {{ [key: string]: any; }}
|
|
45
|
+
* @memberof ToolUpdate
|
|
46
|
+
*/
|
|
47
|
+
config_schema?: {
|
|
48
|
+
[key: string]: any;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {{ [key: string]: any; }}
|
|
53
|
+
* @memberof ToolUpdate
|
|
54
|
+
*/
|
|
55
|
+
ui_schema?: {
|
|
56
|
+
[key: string]: any;
|
|
57
|
+
};
|
|
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
|
+
* Check if a given object implements the ToolUpdate interface.
|
|
73
|
+
*/
|
|
74
|
+
export declare function instanceOfToolUpdate(value: object): value is ToolUpdate;
|
|
75
|
+
export declare function ToolUpdateFromJSON(json: any): ToolUpdate;
|
|
76
|
+
export declare function ToolUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): ToolUpdate;
|
|
77
|
+
export declare function ToolUpdateToJSON(json: any): ToolUpdate;
|
|
78
|
+
export declare function ToolUpdateToJSONTyped(value?: ToolUpdate | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,55 @@
|
|
|
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 ToolUpdate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfToolUpdate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function ToolUpdateFromJSON(json) {
|
|
21
|
+
return ToolUpdateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function ToolUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'label': json['label'] == null ? undefined : json['label'],
|
|
29
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
30
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
31
|
+
'feature_key': json['feature_key'] == null ? undefined : json['feature_key'],
|
|
32
|
+
'config_schema': json['config_schema'] == null ? undefined : json['config_schema'],
|
|
33
|
+
'ui_schema': json['ui_schema'] == null ? undefined : json['ui_schema'],
|
|
34
|
+
'secret_fields': json['secret_fields'] == null ? undefined : json['secret_fields'],
|
|
35
|
+
'enabled_globally': json['enabled_globally'] == null ? undefined : json['enabled_globally'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
export function ToolUpdateToJSON(json) {
|
|
39
|
+
return ToolUpdateToJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
export function ToolUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
42
|
+
if (value == null) {
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'label': value['label'],
|
|
47
|
+
'description': value['description'],
|
|
48
|
+
'icon': value['icon'],
|
|
49
|
+
'feature_key': value['feature_key'],
|
|
50
|
+
'config_schema': value['config_schema'],
|
|
51
|
+
'ui_schema': value['ui_schema'],
|
|
52
|
+
'secret_fields': value['secret_fields'],
|
|
53
|
+
'enabled_globally': value['enabled_globally'],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
export function instanceOfUserPreferences(value) {
|
|
18
18
|
if (!('user_id' in value) || value['user_id'] === undefined)
|
|
19
19
|
return false;
|
|
20
|
+
if (!('preferred_language' in value) || value['preferred_language'] === undefined)
|
|
21
|
+
return false;
|
|
20
22
|
return true;
|
|
21
23
|
}
|
|
22
24
|
export function UserPreferencesFromJSON(json) {
|
|
@@ -28,7 +30,7 @@ export function UserPreferencesFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28
30
|
}
|
|
29
31
|
return {
|
|
30
32
|
'user_id': json['user_id'],
|
|
31
|
-
'preferred_language': json['preferred_language']
|
|
33
|
+
'preferred_language': json['preferred_language'],
|
|
32
34
|
};
|
|
33
35
|
}
|
|
34
36
|
export function UserPreferencesToJSON(json) {
|
|
@@ -20,7 +20,7 @@ export interface UserPreferencesUpdate {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof UserPreferencesUpdate
|
|
22
22
|
*/
|
|
23
|
-
preferred_language
|
|
23
|
+
preferred_language: string | null;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
26
|
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
* Check if a given object implements the UserPreferencesUpdate interface.
|
|
16
16
|
*/
|
|
17
17
|
export function instanceOfUserPreferencesUpdate(value) {
|
|
18
|
+
if (!('preferred_language' in value) || value['preferred_language'] === undefined)
|
|
19
|
+
return false;
|
|
18
20
|
return true;
|
|
19
21
|
}
|
|
20
22
|
export function UserPreferencesUpdateFromJSON(json) {
|
|
@@ -25,7 +27,7 @@ export function UserPreferencesUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25
27
|
return json;
|
|
26
28
|
}
|
|
27
29
|
return {
|
|
28
|
-
'preferred_language': json['preferred_language']
|
|
30
|
+
'preferred_language': json['preferred_language'],
|
|
29
31
|
};
|
|
30
32
|
}
|
|
31
33
|
export function UserPreferencesUpdateToJSON(json) {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from './AgentTool';
|
|
2
|
+
export * from './AgentToolUpsert';
|
|
1
3
|
export * from './BillingPortalRequest';
|
|
2
4
|
export * from './BillingPortalResponse';
|
|
3
5
|
export * from './Calendar';
|
|
@@ -37,6 +39,7 @@ export * from './Member';
|
|
|
37
39
|
export * from './Notification';
|
|
38
40
|
export * from './NotificationChannel';
|
|
39
41
|
export * from './NotificationCreate';
|
|
42
|
+
export * from './NotificationLocalizedContentValue';
|
|
40
43
|
export * from './NotificationScope';
|
|
41
44
|
export * from './NotificationSeverity';
|
|
42
45
|
export * from './NotificationType';
|
|
@@ -76,7 +79,10 @@ export * from './SubscriptionStatus';
|
|
|
76
79
|
export * from './SubscriptionStatusPlan';
|
|
77
80
|
export * from './SubscriptionStatusService';
|
|
78
81
|
export * from './SubscriptionStatusSubscription';
|
|
82
|
+
export * from './Tool';
|
|
79
83
|
export * from './ToolConfig';
|
|
84
|
+
export * from './ToolCreate';
|
|
85
|
+
export * from './ToolUpdate';
|
|
80
86
|
export * from './TtsProvider';
|
|
81
87
|
export * from './TtsProviderModel';
|
|
82
88
|
export * from './TtsProviderVoice';
|
package/dist/esm/models/index.js
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';
|
|
@@ -0,0 +1,79 @@
|
|
|
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
|
+
import type { Tool } from './Tool';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AgentTool
|
|
17
|
+
*/
|
|
18
|
+
export interface AgentTool {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof AgentTool
|
|
23
|
+
*/
|
|
24
|
+
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof AgentTool
|
|
29
|
+
*/
|
|
30
|
+
voice_agent_id: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Tool}
|
|
34
|
+
* @memberof AgentTool
|
|
35
|
+
*/
|
|
36
|
+
tool: Tool;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof AgentTool
|
|
41
|
+
*/
|
|
42
|
+
enabled: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Non-secret config values. Secret fields are stored encrypted server-side and returned as `null` placeholders for fields that have a value set.
|
|
45
|
+
* @type {{ [key: string]: any; }}
|
|
46
|
+
* @memberof AgentTool
|
|
47
|
+
*/
|
|
48
|
+
config: {
|
|
49
|
+
[key: string]: any;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* For each secret field, whether a value is currently stored.
|
|
53
|
+
* @type {{ [key: string]: boolean; }}
|
|
54
|
+
* @memberof AgentTool
|
|
55
|
+
*/
|
|
56
|
+
secret_field_status?: {
|
|
57
|
+
[key: string]: boolean;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof AgentTool
|
|
63
|
+
*/
|
|
64
|
+
created_at?: Date;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Date}
|
|
68
|
+
* @memberof AgentTool
|
|
69
|
+
*/
|
|
70
|
+
updated_at?: Date;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Check if a given object implements the AgentTool interface.
|
|
74
|
+
*/
|
|
75
|
+
export declare function instanceOfAgentTool(value: object): value is AgentTool;
|
|
76
|
+
export declare function AgentToolFromJSON(json: any): AgentTool;
|
|
77
|
+
export declare function AgentToolFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentTool;
|
|
78
|
+
export declare function AgentToolToJSON(json: any): AgentTool;
|
|
79
|
+
export declare function AgentToolToJSONTyped(value?: AgentTool | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
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.instanceOfAgentTool = instanceOfAgentTool;
|
|
17
|
+
exports.AgentToolFromJSON = AgentToolFromJSON;
|
|
18
|
+
exports.AgentToolFromJSONTyped = AgentToolFromJSONTyped;
|
|
19
|
+
exports.AgentToolToJSON = AgentToolToJSON;
|
|
20
|
+
exports.AgentToolToJSONTyped = AgentToolToJSONTyped;
|
|
21
|
+
const Tool_1 = require("./Tool");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AgentTool interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAgentTool(value) {
|
|
26
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('voice_agent_id' in value) || value['voice_agent_id'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('tool' in value) || value['tool'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('config' in value) || value['config'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
return true;
|
|
37
|
+
}
|
|
38
|
+
function AgentToolFromJSON(json) {
|
|
39
|
+
return AgentToolFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
function AgentToolFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'id': json['id'],
|
|
47
|
+
'voice_agent_id': json['voice_agent_id'],
|
|
48
|
+
'tool': (0, Tool_1.ToolFromJSON)(json['tool']),
|
|
49
|
+
'enabled': json['enabled'],
|
|
50
|
+
'config': json['config'],
|
|
51
|
+
'secret_field_status': json['secret_field_status'] == null ? undefined : json['secret_field_status'],
|
|
52
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
53
|
+
'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AgentToolToJSON(json) {
|
|
57
|
+
return AgentToolToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AgentToolToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'voice_agent_id': value['voice_agent_id'],
|
|
66
|
+
'tool': (0, Tool_1.ToolToJSON)(value['tool']),
|
|
67
|
+
'enabled': value['enabled'],
|
|
68
|
+
'config': value['config'],
|
|
69
|
+
'secret_field_status': value['secret_field_status'],
|
|
70
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
71
|
+
'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(),
|
|
72
|
+
};
|
|
73
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 AgentToolUpsert
|
|
16
|
+
*/
|
|
17
|
+
export interface AgentToolUpsert {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof AgentToolUpsert
|
|
22
|
+
*/
|
|
23
|
+
enabled: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Full config object including secret fields. Secrets sent here are encrypted server-side; omit a secret field to keep its existing value.
|
|
26
|
+
* @type {{ [key: string]: any; }}
|
|
27
|
+
* @memberof AgentToolUpsert
|
|
28
|
+
*/
|
|
29
|
+
config?: {
|
|
30
|
+
[key: string]: any;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AgentToolUpsert interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfAgentToolUpsert(value: object): value is AgentToolUpsert;
|
|
37
|
+
export declare function AgentToolUpsertFromJSON(json: any): AgentToolUpsert;
|
|
38
|
+
export declare function AgentToolUpsertFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentToolUpsert;
|
|
39
|
+
export declare function AgentToolUpsertToJSON(json: any): AgentToolUpsert;
|
|
40
|
+
export declare function AgentToolUpsertToJSONTyped(value?: AgentToolUpsert | 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.instanceOfAgentToolUpsert = instanceOfAgentToolUpsert;
|
|
17
|
+
exports.AgentToolUpsertFromJSON = AgentToolUpsertFromJSON;
|
|
18
|
+
exports.AgentToolUpsertFromJSONTyped = AgentToolUpsertFromJSONTyped;
|
|
19
|
+
exports.AgentToolUpsertToJSON = AgentToolUpsertToJSON;
|
|
20
|
+
exports.AgentToolUpsertToJSONTyped = AgentToolUpsertToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AgentToolUpsert interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAgentToolUpsert(value) {
|
|
25
|
+
if (!('enabled' in value) || value['enabled'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
function AgentToolUpsertFromJSON(json) {
|
|
30
|
+
return AgentToolUpsertFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
function AgentToolUpsertFromJSONTyped(json, ignoreDiscriminator) {
|
|
33
|
+
if (json == null) {
|
|
34
|
+
return json;
|
|
35
|
+
}
|
|
36
|
+
return {
|
|
37
|
+
'enabled': json['enabled'],
|
|
38
|
+
'config': json['config'] == null ? undefined : json['config'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
function AgentToolUpsertToJSON(json) {
|
|
42
|
+
return AgentToolUpsertToJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AgentToolUpsertToJSONTyped(value, ignoreDiscriminator = false) {
|
|
45
|
+
if (value == null) {
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'enabled': value['enabled'],
|
|
50
|
+
'config': value['config'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -45,6 +45,7 @@ function CalendarEventFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
45
45
|
'id': json['id'],
|
|
46
46
|
'name': json['name'],
|
|
47
47
|
'description': json['description'] == null ? undefined : json['description'],
|
|
48
|
+
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
48
49
|
'start_time': (new Date(json['start_time'])),
|
|
49
50
|
'end_time': (new Date(json['end_time'])),
|
|
50
51
|
'calendar_id': json['calendar_id'],
|
|
@@ -61,6 +62,7 @@ function CalendarEventToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
61
62
|
'id': value['id'],
|
|
62
63
|
'name': value['name'],
|
|
63
64
|
'description': value['description'],
|
|
65
|
+
'caller': value['caller'],
|
|
64
66
|
'start_time': value['start_time'].toISOString(),
|
|
65
67
|
'end_time': value['end_time'].toISOString(),
|
|
66
68
|
'calendar_id': value['calendar_id'],
|