@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
|
@@ -40,6 +40,7 @@ function CalendarEventCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
return {
|
|
41
41
|
'name': json['name'],
|
|
42
42
|
'description': json['description'] == null ? undefined : json['description'],
|
|
43
|
+
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
43
44
|
'start_time': (new Date(json['start_time'])),
|
|
44
45
|
'end_time': (new Date(json['end_time'])),
|
|
45
46
|
};
|
|
@@ -54,6 +55,7 @@ function CalendarEventCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
54
55
|
return {
|
|
55
56
|
'name': value['name'],
|
|
56
57
|
'description': value['description'],
|
|
58
|
+
'caller': value['caller'],
|
|
57
59
|
'start_time': value['start_time'].toISOString(),
|
|
58
60
|
'end_time': value['end_time'].toISOString(),
|
|
59
61
|
};
|
|
@@ -34,6 +34,7 @@ function CalendarEventUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
34
34
|
return {
|
|
35
35
|
'name': json['name'] == null ? undefined : json['name'],
|
|
36
36
|
'description': json['description'] == null ? undefined : json['description'],
|
|
37
|
+
'caller': json['caller'] == null ? undefined : json['caller'],
|
|
37
38
|
'start_time': json['start_time'] == null ? undefined : (new Date(json['start_time'])),
|
|
38
39
|
'end_time': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
|
|
39
40
|
};
|
|
@@ -48,6 +49,7 @@ function CalendarEventUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
48
49
|
return {
|
|
49
50
|
'name': value['name'],
|
|
50
51
|
'description': value['description'],
|
|
52
|
+
'caller': value['caller'],
|
|
51
53
|
'start_time': value['start_time'] == null ? value['start_time'] : value['start_time'].toISOString(),
|
|
52
54
|
'end_time': value['end_time'] == null ? value['end_time'] : value['end_time'].toISOString(),
|
|
53
55
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NotificationChannel } from './NotificationChannel';
|
|
13
|
+
import type { NotificationLocalizedContentValue } from './NotificationLocalizedContentValue';
|
|
13
14
|
import type { NotificationType } from './NotificationType';
|
|
14
15
|
import type { NotificationScope } from './NotificationScope';
|
|
15
16
|
import type { NotificationSeverity } from './NotificationSeverity';
|
|
@@ -85,21 +86,31 @@ export interface Notification {
|
|
|
85
86
|
* @memberof Notification
|
|
86
87
|
*/
|
|
87
88
|
expires_at?: Date | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Date}
|
|
92
|
+
* @memberof Notification
|
|
93
|
+
*/
|
|
94
|
+
created_at: Date;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {Date}
|
|
98
|
+
* @memberof Notification
|
|
99
|
+
*/
|
|
100
|
+
updated_at: Date;
|
|
88
101
|
/**
|
|
89
102
|
* Whether an email should also be sent to recipients
|
|
90
103
|
* @type {boolean}
|
|
91
104
|
* @memberof Notification
|
|
92
105
|
*/
|
|
93
|
-
send_email
|
|
106
|
+
send_email?: boolean;
|
|
94
107
|
/**
|
|
95
108
|
* Localized notification title/content variants keyed by language tag (for example en, en-US, hu-HU)
|
|
96
|
-
* @type {{ [key: string]:
|
|
109
|
+
* @type {{ [key: string]: NotificationLocalizedContentValue; }}
|
|
97
110
|
* @memberof Notification
|
|
98
111
|
*/
|
|
99
112
|
localized_content?: {
|
|
100
|
-
[key: string]:
|
|
101
|
-
[key: string]: any;
|
|
102
|
-
};
|
|
113
|
+
[key: string]: NotificationLocalizedContentValue;
|
|
103
114
|
} | null;
|
|
104
115
|
/**
|
|
105
116
|
* Fallback language key to use when recipient preferred language translation is missing
|
|
@@ -107,18 +118,6 @@ export interface Notification {
|
|
|
107
118
|
* @memberof Notification
|
|
108
119
|
*/
|
|
109
120
|
default_language?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* @type {Date}
|
|
113
|
-
* @memberof Notification
|
|
114
|
-
*/
|
|
115
|
-
created_at: Date;
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @type {Date}
|
|
119
|
-
* @memberof Notification
|
|
120
|
-
*/
|
|
121
|
-
updated_at: Date;
|
|
122
121
|
/**
|
|
123
122
|
* When the current user read this notification (present in list responses)
|
|
124
123
|
* @type {Date}
|
|
@@ -18,7 +18,9 @@ exports.NotificationFromJSON = NotificationFromJSON;
|
|
|
18
18
|
exports.NotificationFromJSONTyped = NotificationFromJSONTyped;
|
|
19
19
|
exports.NotificationToJSON = NotificationToJSON;
|
|
20
20
|
exports.NotificationToJSONTyped = NotificationToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
21
22
|
const NotificationChannel_1 = require("./NotificationChannel");
|
|
23
|
+
const NotificationLocalizedContentValue_1 = require("./NotificationLocalizedContentValue");
|
|
22
24
|
const NotificationType_1 = require("./NotificationType");
|
|
23
25
|
const NotificationScope_1 = require("./NotificationScope");
|
|
24
26
|
const NotificationSeverity_1 = require("./NotificationSeverity");
|
|
@@ -40,8 +42,6 @@ function instanceOfNotification(value) {
|
|
|
40
42
|
return false;
|
|
41
43
|
if (!('content' in value) || value['content'] === undefined)
|
|
42
44
|
return false;
|
|
43
|
-
if (!('send_email' in value) || value['send_email'] === undefined)
|
|
44
|
-
return false;
|
|
45
45
|
if (!('created_at' in value) || value['created_at'] === undefined)
|
|
46
46
|
return false;
|
|
47
47
|
if (!('updated_at' in value) || value['updated_at'] === undefined)
|
|
@@ -67,11 +67,11 @@ function NotificationFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
67
67
|
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
68
68
|
'created_by': json['created_by'] == null ? undefined : json['created_by'],
|
|
69
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'],
|
|
73
70
|
'created_at': (new Date(json['created_at'])),
|
|
74
71
|
'updated_at': (new Date(json['updated_at'])),
|
|
72
|
+
'send_email': json['send_email'] == null ? undefined : json['send_email'],
|
|
73
|
+
'localized_content': json['localized_content'] == null ? undefined : ((0, runtime_1.mapValues)(json['localized_content'], NotificationLocalizedContentValue_1.NotificationLocalizedContentValueFromJSON)),
|
|
74
|
+
'default_language': json['default_language'] == null ? undefined : json['default_language'],
|
|
75
75
|
'read_at': json['read_at'] == null ? undefined : (new Date(json['read_at'])),
|
|
76
76
|
'dismissed_at': json['dismissed_at'] == null ? undefined : (new Date(json['dismissed_at'])),
|
|
77
77
|
};
|
|
@@ -95,11 +95,11 @@ function NotificationToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
95
|
'user_id': value['user_id'],
|
|
96
96
|
'created_by': value['created_by'],
|
|
97
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'],
|
|
101
98
|
'created_at': value['created_at'].toISOString(),
|
|
102
99
|
'updated_at': value['updated_at'].toISOString(),
|
|
100
|
+
'send_email': value['send_email'],
|
|
101
|
+
'localized_content': value['localized_content'] == null ? undefined : ((0, runtime_1.mapValues)(value['localized_content'], NotificationLocalizedContentValue_1.NotificationLocalizedContentValueToJSON)),
|
|
102
|
+
'default_language': value['default_language'],
|
|
103
103
|
'read_at': value['read_at'] == null ? value['read_at'] : value['read_at'].toISOString(),
|
|
104
104
|
'dismissed_at': value['dismissed_at'] == null ? value['dismissed_at'] : value['dismissed_at'].toISOString(),
|
|
105
105
|
};
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NotificationChannel } from './NotificationChannel';
|
|
13
|
+
import type { NotificationLocalizedContentValue } from './NotificationLocalizedContentValue';
|
|
13
14
|
import type { NotificationType } from './NotificationType';
|
|
14
15
|
import type { NotificationScope } from './NotificationScope';
|
|
15
16
|
import type { NotificationSeverity } from './NotificationSeverity';
|
|
@@ -75,13 +76,11 @@ export interface NotificationCreate {
|
|
|
75
76
|
send_email?: boolean;
|
|
76
77
|
/**
|
|
77
78
|
*
|
|
78
|
-
* @type {{ [key: string]:
|
|
79
|
+
* @type {{ [key: string]: NotificationLocalizedContentValue; }}
|
|
79
80
|
* @memberof NotificationCreate
|
|
80
81
|
*/
|
|
81
82
|
localized_content?: {
|
|
82
|
-
[key: string]:
|
|
83
|
-
[key: string]: any;
|
|
84
|
-
};
|
|
83
|
+
[key: string]: NotificationLocalizedContentValue;
|
|
85
84
|
} | null;
|
|
86
85
|
/**
|
|
87
86
|
*
|
|
@@ -18,7 +18,9 @@ exports.NotificationCreateFromJSON = NotificationCreateFromJSON;
|
|
|
18
18
|
exports.NotificationCreateFromJSONTyped = NotificationCreateFromJSONTyped;
|
|
19
19
|
exports.NotificationCreateToJSON = NotificationCreateToJSON;
|
|
20
20
|
exports.NotificationCreateToJSONTyped = NotificationCreateToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
21
22
|
const NotificationChannel_1 = require("./NotificationChannel");
|
|
23
|
+
const NotificationLocalizedContentValue_1 = require("./NotificationLocalizedContentValue");
|
|
22
24
|
const NotificationType_1 = require("./NotificationType");
|
|
23
25
|
const NotificationScope_1 = require("./NotificationScope");
|
|
24
26
|
const NotificationSeverity_1 = require("./NotificationSeverity");
|
|
@@ -49,7 +51,7 @@ function NotificationCreateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
49
51
|
'user_id': json['user_id'] == null ? undefined : json['user_id'],
|
|
50
52
|
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
51
53
|
'send_email': json['send_email'] == null ? undefined : json['send_email'],
|
|
52
|
-
'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
|
|
54
|
+
'localized_content': json['localized_content'] == null ? undefined : ((0, runtime_1.mapValues)(json['localized_content'], NotificationLocalizedContentValue_1.NotificationLocalizedContentValueFromJSON)),
|
|
53
55
|
'default_language': json['default_language'] == null ? undefined : json['default_language'],
|
|
54
56
|
};
|
|
55
57
|
}
|
|
@@ -70,7 +72,7 @@ function NotificationCreateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
70
72
|
'user_id': value['user_id'],
|
|
71
73
|
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
72
74
|
'send_email': value['send_email'],
|
|
73
|
-
'localized_content': value['localized_content'],
|
|
75
|
+
'localized_content': value['localized_content'] == null ? undefined : ((0, runtime_1.mapValues)(value['localized_content'], NotificationLocalizedContentValue_1.NotificationLocalizedContentValueToJSON)),
|
|
74
76
|
'default_language': value['default_language'],
|
|
75
77
|
};
|
|
76
78
|
}
|
|
@@ -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 NotificationLocalizedContentValue
|
|
16
|
+
*/
|
|
17
|
+
export interface NotificationLocalizedContentValue {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotificationLocalizedContentValue
|
|
22
|
+
*/
|
|
23
|
+
title: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof NotificationLocalizedContentValue
|
|
28
|
+
*/
|
|
29
|
+
content: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the NotificationLocalizedContentValue interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfNotificationLocalizedContentValue(value: object): value is NotificationLocalizedContentValue;
|
|
35
|
+
export declare function NotificationLocalizedContentValueFromJSON(json: any): NotificationLocalizedContentValue;
|
|
36
|
+
export declare function NotificationLocalizedContentValueFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotificationLocalizedContentValue;
|
|
37
|
+
export declare function NotificationLocalizedContentValueToJSON(json: any): NotificationLocalizedContentValue;
|
|
38
|
+
export declare function NotificationLocalizedContentValueToJSONTyped(value?: NotificationLocalizedContentValue | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfNotificationLocalizedContentValue = instanceOfNotificationLocalizedContentValue;
|
|
17
|
+
exports.NotificationLocalizedContentValueFromJSON = NotificationLocalizedContentValueFromJSON;
|
|
18
|
+
exports.NotificationLocalizedContentValueFromJSONTyped = NotificationLocalizedContentValueFromJSONTyped;
|
|
19
|
+
exports.NotificationLocalizedContentValueToJSON = NotificationLocalizedContentValueToJSON;
|
|
20
|
+
exports.NotificationLocalizedContentValueToJSONTyped = NotificationLocalizedContentValueToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the NotificationLocalizedContentValue interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfNotificationLocalizedContentValue(value) {
|
|
25
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('content' in value) || value['content'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function NotificationLocalizedContentValueFromJSON(json) {
|
|
32
|
+
return NotificationLocalizedContentValueFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function NotificationLocalizedContentValueFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'title': json['title'],
|
|
40
|
+
'content': json['content'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function NotificationLocalizedContentValueToJSON(json) {
|
|
44
|
+
return NotificationLocalizedContentValueToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function NotificationLocalizedContentValueToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'title': value['title'],
|
|
52
|
+
'content': value['content'],
|
|
53
|
+
};
|
|
54
|
+
}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import type { NotificationChannel } from './NotificationChannel';
|
|
13
|
+
import type { NotificationLocalizedContentValue } from './NotificationLocalizedContentValue';
|
|
13
14
|
import type { NotificationSeverity } from './NotificationSeverity';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
@@ -55,13 +56,11 @@ export interface NotificationUpdate {
|
|
|
55
56
|
send_email?: boolean;
|
|
56
57
|
/**
|
|
57
58
|
*
|
|
58
|
-
* @type {{ [key: string]:
|
|
59
|
+
* @type {{ [key: string]: NotificationLocalizedContentValue; }}
|
|
59
60
|
* @memberof NotificationUpdate
|
|
60
61
|
*/
|
|
61
62
|
localized_content?: {
|
|
62
|
-
[key: string]:
|
|
63
|
-
[key: string]: any;
|
|
64
|
-
};
|
|
63
|
+
[key: string]: NotificationLocalizedContentValue;
|
|
65
64
|
} | null;
|
|
66
65
|
/**
|
|
67
66
|
*
|
|
@@ -18,7 +18,9 @@ exports.NotificationUpdateFromJSON = NotificationUpdateFromJSON;
|
|
|
18
18
|
exports.NotificationUpdateFromJSONTyped = NotificationUpdateFromJSONTyped;
|
|
19
19
|
exports.NotificationUpdateToJSON = NotificationUpdateToJSON;
|
|
20
20
|
exports.NotificationUpdateToJSONTyped = NotificationUpdateToJSONTyped;
|
|
21
|
+
const runtime_1 = require("../runtime");
|
|
21
22
|
const NotificationChannel_1 = require("./NotificationChannel");
|
|
23
|
+
const NotificationLocalizedContentValue_1 = require("./NotificationLocalizedContentValue");
|
|
22
24
|
const NotificationSeverity_1 = require("./NotificationSeverity");
|
|
23
25
|
/**
|
|
24
26
|
* Check if a given object implements the NotificationUpdate interface.
|
|
@@ -40,7 +42,7 @@ function NotificationUpdateFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
42
|
'content': json['content'] == null ? undefined : json['content'],
|
|
41
43
|
'expires_at': json['expires_at'] == null ? undefined : (new Date(json['expires_at'])),
|
|
42
44
|
'send_email': json['send_email'] == null ? undefined : json['send_email'],
|
|
43
|
-
'localized_content': json['localized_content'] == null ? undefined : json['localized_content'],
|
|
45
|
+
'localized_content': json['localized_content'] == null ? undefined : ((0, runtime_1.mapValues)(json['localized_content'], NotificationLocalizedContentValue_1.NotificationLocalizedContentValueFromJSON)),
|
|
44
46
|
'default_language': json['default_language'] == null ? undefined : json['default_language'],
|
|
45
47
|
};
|
|
46
48
|
}
|
|
@@ -58,7 +60,7 @@ function NotificationUpdateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
58
60
|
'content': value['content'],
|
|
59
61
|
'expires_at': value['expires_at'] == null ? value['expires_at'] : value['expires_at'].toISOString(),
|
|
60
62
|
'send_email': value['send_email'],
|
|
61
|
-
'localized_content': value['localized_content'],
|
|
63
|
+
'localized_content': value['localized_content'] == null ? undefined : ((0, runtime_1.mapValues)(value['localized_content'], NotificationLocalizedContentValue_1.NotificationLocalizedContentValueToJSON)),
|
|
62
64
|
'default_language': value['default_language'],
|
|
63
65
|
};
|
|
64
66
|
}
|
|
@@ -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,84 @@
|
|
|
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.instanceOfTool = instanceOfTool;
|
|
17
|
+
exports.ToolFromJSON = ToolFromJSON;
|
|
18
|
+
exports.ToolFromJSONTyped = ToolFromJSONTyped;
|
|
19
|
+
exports.ToolToJSON = ToolToJSON;
|
|
20
|
+
exports.ToolToJSONTyped = ToolToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the Tool interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfTool(value) {
|
|
25
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('label' in value) || value['label'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('feature_key' in value) || value['feature_key'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('config_schema' in value) || value['config_schema'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('ui_schema' in value) || value['ui_schema'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('secret_fields' in value) || value['secret_fields'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function ToolFromJSON(json) {
|
|
42
|
+
return ToolFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function ToolFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'id': json['id'],
|
|
50
|
+
'name': json['name'],
|
|
51
|
+
'label': json['label'],
|
|
52
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
53
|
+
'icon': json['icon'] == null ? undefined : json['icon'],
|
|
54
|
+
'feature_key': json['feature_key'],
|
|
55
|
+
'config_schema': json['config_schema'],
|
|
56
|
+
'ui_schema': json['ui_schema'],
|
|
57
|
+
'secret_fields': json['secret_fields'],
|
|
58
|
+
'enabled_globally': json['enabled_globally'] == null ? undefined : json['enabled_globally'],
|
|
59
|
+
'created_at': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
60
|
+
'updated_at': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function ToolToJSON(json) {
|
|
64
|
+
return ToolToJSONTyped(json, false);
|
|
65
|
+
}
|
|
66
|
+
function ToolToJSONTyped(value, ignoreDiscriminator = false) {
|
|
67
|
+
if (value == null) {
|
|
68
|
+
return value;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
'id': value['id'],
|
|
72
|
+
'name': value['name'],
|
|
73
|
+
'label': value['label'],
|
|
74
|
+
'description': value['description'],
|
|
75
|
+
'icon': value['icon'],
|
|
76
|
+
'feature_key': value['feature_key'],
|
|
77
|
+
'config_schema': value['config_schema'],
|
|
78
|
+
'ui_schema': value['ui_schema'],
|
|
79
|
+
'secret_fields': value['secret_fields'],
|
|
80
|
+
'enabled_globally': value['enabled_globally'],
|
|
81
|
+
'created_at': value['created_at'] == null ? value['created_at'] : value['created_at'].toISOString(),
|
|
82
|
+
'updated_at': value['updated_at'] == null ? value['updated_at'] : value['updated_at'].toISOString(),
|
|
83
|
+
};
|
|
84
|
+
}
|
|
@@ -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;
|