@l7mp/tivadar-ai-api-sdk 0.2.5 → 0.2.7
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 +29 -2
- package/dist/api-client.js +24 -1
- package/dist/apis/PhonebookApi.d.ts +133 -0
- package/dist/apis/PhonebookApi.js +434 -0
- 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 +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/esm/api-client.d.ts +29 -2
- package/dist/esm/api-client.js +24 -1
- package/dist/esm/apis/PhonebookApi.d.ts +133 -0
- package/dist/esm/apis/PhonebookApi.js +430 -0
- 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 +2 -0
- package/dist/esm/apis/index.js +2 -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/Phonebook.d.ts +56 -0
- package/dist/esm/models/Phonebook.js +59 -0
- package/dist/esm/models/PhonebookEntry.d.ts +89 -0
- package/dist/esm/models/PhonebookEntry.js +79 -0
- package/dist/esm/models/PhonebookEntryCreate.d.ts +50 -0
- package/dist/esm/models/PhonebookEntryCreate.js +51 -0
- package/dist/esm/models/PhonebookEntryUpdate.d.ts +50 -0
- package/dist/esm/models/PhonebookEntryUpdate.js +47 -0
- package/dist/esm/models/PhonebookImportResult.d.ts +57 -0
- package/dist/esm/models/PhonebookImportResult.js +60 -0
- package/dist/esm/models/PhonebookImportResultErrorsInner.d.ts +38 -0
- package/dist/esm/models/PhonebookImportResultErrorsInner.js +47 -0
- package/dist/esm/models/PhonebookUpdate.d.ts +32 -0
- package/dist/esm/models/PhonebookUpdate.js +41 -0
- 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 +13 -0
- package/dist/esm/models/index.js +13 -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/Phonebook.d.ts +56 -0
- package/dist/models/Phonebook.js +66 -0
- package/dist/models/PhonebookEntry.d.ts +89 -0
- package/dist/models/PhonebookEntry.js +87 -0
- package/dist/models/PhonebookEntryCreate.d.ts +50 -0
- package/dist/models/PhonebookEntryCreate.js +58 -0
- package/dist/models/PhonebookEntryUpdate.d.ts +50 -0
- package/dist/models/PhonebookEntryUpdate.js +54 -0
- package/dist/models/PhonebookImportResult.d.ts +57 -0
- package/dist/models/PhonebookImportResult.js +67 -0
- package/dist/models/PhonebookImportResultErrorsInner.d.ts +38 -0
- package/dist/models/PhonebookImportResultErrorsInner.js +54 -0
- package/dist/models/PhonebookUpdate.d.ts +32 -0
- package/dist/models/PhonebookUpdate.js +48 -0
- 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 +13 -0
- package/dist/models/index.js +13 -0
- package/package.json +1 -1
- package/src/api-client.ts +54 -2
- package/src/apis/PhonebookApi.ts +599 -0
- package/src/apis/RAGApi.ts +69 -67
- package/src/apis/ToolsApi.ts +287 -0
- package/src/apis/index.ts +2 -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/Phonebook.ts +102 -0
- package/src/models/PhonebookEntry.ts +148 -0
- package/src/models/PhonebookEntryCreate.ts +91 -0
- package/src/models/PhonebookEntryUpdate.ts +89 -0
- package/src/models/PhonebookImportResult.ts +110 -0
- package/src/models/PhonebookImportResultErrorsInner.ts +75 -0
- package/src/models/PhonebookUpdate.ts +65 -0
- 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 +13 -0
|
@@ -0,0 +1,60 @@
|
|
|
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
|
+
import { PhonebookImportResultErrorsInnerFromJSON, PhonebookImportResultErrorsInnerToJSON, } from './PhonebookImportResultErrorsInner';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the PhonebookImportResult interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfPhonebookImportResult(value) {
|
|
19
|
+
if (!('total' in value) || value['total'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('created' in value) || value['created'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
if (!('updated' in value) || value['updated'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('skipped' in value) || value['skipped'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('errors' in value) || value['errors'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
export function PhonebookImportResultFromJSON(json) {
|
|
32
|
+
return PhonebookImportResultFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PhonebookImportResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'total': json['total'],
|
|
40
|
+
'created': json['created'],
|
|
41
|
+
'updated': json['updated'],
|
|
42
|
+
'skipped': json['skipped'],
|
|
43
|
+
'errors': (json['errors'].map(PhonebookImportResultErrorsInnerFromJSON)),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export function PhonebookImportResultToJSON(json) {
|
|
47
|
+
return PhonebookImportResultToJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
export function PhonebookImportResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'total': value['total'],
|
|
55
|
+
'created': value['created'],
|
|
56
|
+
'updated': value['updated'],
|
|
57
|
+
'skipped': value['skipped'],
|
|
58
|
+
'errors': (value['errors'].map(PhonebookImportResultErrorsInnerToJSON)),
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -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 PhonebookImportResultErrorsInner
|
|
16
|
+
*/
|
|
17
|
+
export interface PhonebookImportResultErrorsInner {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PhonebookImportResultErrorsInner
|
|
22
|
+
*/
|
|
23
|
+
row: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PhonebookImportResultErrorsInner
|
|
28
|
+
*/
|
|
29
|
+
message: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the PhonebookImportResultErrorsInner interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfPhonebookImportResultErrorsInner(value: object): value is PhonebookImportResultErrorsInner;
|
|
35
|
+
export declare function PhonebookImportResultErrorsInnerFromJSON(json: any): PhonebookImportResultErrorsInner;
|
|
36
|
+
export declare function PhonebookImportResultErrorsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookImportResultErrorsInner;
|
|
37
|
+
export declare function PhonebookImportResultErrorsInnerToJSON(json: any): PhonebookImportResultErrorsInner;
|
|
38
|
+
export declare function PhonebookImportResultErrorsInnerToJSONTyped(value?: PhonebookImportResultErrorsInner | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
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 PhonebookImportResultErrorsInner interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPhonebookImportResultErrorsInner(value) {
|
|
18
|
+
if (!('row' in value) || value['row'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('message' in value) || value['message'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function PhonebookImportResultErrorsInnerFromJSON(json) {
|
|
25
|
+
return PhonebookImportResultErrorsInnerFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function PhonebookImportResultErrorsInnerFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'row': json['row'],
|
|
33
|
+
'message': json['message'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function PhonebookImportResultErrorsInnerToJSON(json) {
|
|
37
|
+
return PhonebookImportResultErrorsInnerToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function PhonebookImportResultErrorsInnerToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'row': value['row'],
|
|
45
|
+
'message': value['message'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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 PhonebookUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface PhonebookUpdate {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof PhonebookUpdate
|
|
22
|
+
*/
|
|
23
|
+
auto_populate?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the PhonebookUpdate interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfPhonebookUpdate(value: object): value is PhonebookUpdate;
|
|
29
|
+
export declare function PhonebookUpdateFromJSON(json: any): PhonebookUpdate;
|
|
30
|
+
export declare function PhonebookUpdateFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhonebookUpdate;
|
|
31
|
+
export declare function PhonebookUpdateToJSON(json: any): PhonebookUpdate;
|
|
32
|
+
export declare function PhonebookUpdateToJSONTyped(value?: PhonebookUpdate | 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 PhonebookUpdate interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfPhonebookUpdate(value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
export function PhonebookUpdateFromJSON(json) {
|
|
21
|
+
return PhonebookUpdateFromJSONTyped(json, false);
|
|
22
|
+
}
|
|
23
|
+
export function PhonebookUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if (json == null) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'auto_populate': json['auto_populate'] == null ? undefined : json['auto_populate'],
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export function PhonebookUpdateToJSON(json) {
|
|
32
|
+
return PhonebookUpdateToJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
export function PhonebookUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
35
|
+
if (value == null) {
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'auto_populate': value['auto_populate'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 Tool
|
|
16
|
+
*/
|
|
17
|
+
export interface Tool {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof Tool
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique tool identifier matching the LangChain function name.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof Tool
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof Tool
|
|
34
|
+
*/
|
|
35
|
+
label: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Tool
|
|
40
|
+
*/
|
|
41
|
+
description?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof Tool
|
|
46
|
+
*/
|
|
47
|
+
icon?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Subscription feature key gating this tool (e.g. `tools.call_redirect`).
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Tool
|
|
52
|
+
*/
|
|
53
|
+
feature_key: string;
|
|
54
|
+
/**
|
|
55
|
+
* JSON Schema (draft-07) describing the tool's config fields.
|
|
56
|
+
* @type {{ [key: string]: any; }}
|
|
57
|
+
* @memberof Tool
|
|
58
|
+
*/
|
|
59
|
+
config_schema: {
|
|
60
|
+
[key: string]: any;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Optional react-jsonschema-form UI Schema for widget hints.
|
|
64
|
+
* @type {{ [key: string]: any; }}
|
|
65
|
+
* @memberof Tool
|
|
66
|
+
*/
|
|
67
|
+
ui_schema: {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Names of fields that should be stored encrypted and never echoed back.
|
|
72
|
+
* @type {Array<string>}
|
|
73
|
+
* @memberof Tool
|
|
74
|
+
*/
|
|
75
|
+
secret_fields: Array<string>;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {boolean}
|
|
79
|
+
* @memberof Tool
|
|
80
|
+
*/
|
|
81
|
+
enabled_globally?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {Date}
|
|
85
|
+
* @memberof Tool
|
|
86
|
+
*/
|
|
87
|
+
created_at?: Date;
|
|
88
|
+
/**
|
|
89
|
+
*
|
|
90
|
+
* @type {Date}
|
|
91
|
+
* @memberof Tool
|
|
92
|
+
*/
|
|
93
|
+
updated_at?: Date;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Check if a given object implements the Tool interface.
|
|
97
|
+
*/
|
|
98
|
+
export declare function instanceOfTool(value: object): value is Tool;
|
|
99
|
+
export declare function ToolFromJSON(json: any): Tool;
|
|
100
|
+
export declare function ToolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Tool;
|
|
101
|
+
export declare function ToolToJSON(json: any): Tool;
|
|
102
|
+
export declare function ToolToJSONTyped(value?: Tool | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,77 @@
|
|
|
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 Tool interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfTool(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('feature_key' in value) || value['feature_key'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('config_schema' in value) || value['config_schema'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('ui_schema' in value) || value['ui_schema'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('secret_fields' in value) || value['secret_fields'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function ToolFromJSON(json) {
|
|
35
|
+
return ToolFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function ToolFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'id': json['id'],
|
|
43
|
+
'name': json['name'],
|
|
44
|
+
'label': json['label'],
|
|
45
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
46
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
47
|
+
'feature_key': json['feature_key'],
|
|
48
|
+
'config_schema': json['config_schema'],
|
|
49
|
+
'ui_schema': json['ui_schema'],
|
|
50
|
+
'secret_fields': json['secret_fields'],
|
|
51
|
+
'enabled_globally': json['enabled_globally'] == null ? undefined : json['enabled_globally'],
|
|
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
|
+
export function ToolToJSON(json) {
|
|
57
|
+
return ToolToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
export function ToolToJSONTyped(value, ignoreDiscriminator = false) {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
return {
|
|
64
|
+
'id': value['id'],
|
|
65
|
+
'name': value['name'],
|
|
66
|
+
'label': value['label'],
|
|
67
|
+
'description': value['description'],
|
|
68
|
+
'icon': value['icon'],
|
|
69
|
+
'feature_key': value['feature_key'],
|
|
70
|
+
'config_schema': value['config_schema'],
|
|
71
|
+
'ui_schema': value['ui_schema'],
|
|
72
|
+
'secret_fields': value['secret_fields'],
|
|
73
|
+
'enabled_globally': value['enabled_globally'],
|
|
74
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
75
|
+
'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(),
|
|
76
|
+
};
|
|
77
|
+
}
|
|
@@ -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
|
+
}
|